明确 Tiled fill_center 暂不支持
在前端预览与 Rust HTML 渲染两侧保留 repeat fallback 并添加 TODO。 在 UI 编辑器布局契约中明确 Tiled.fill_center=false 当前不支持及后续迁移要求。
This commit is contained in:
@@ -44,6 +44,7 @@ pub(in crate::ui_editor::html_renderer) fn image_styles(
|
||||
pixels_per_unit_multiplier,
|
||||
..
|
||||
} => {
|
||||
// TODO: Tiled.fill_center=false 当前暂不支持,保持整块 repeat fallback。
|
||||
let w = finite_positive(
|
||||
sprite.pixel_size.x
|
||||
/ (sprite.pixels_per_unit().get() * pixels_per_unit_multiplier.get()),
|
||||
|
||||
@@ -141,6 +141,7 @@ function imageTypeModel(
|
||||
const size = logicalSize(sprite, multiplier);
|
||||
|
||||
if ('Tiled' in imageType) {
|
||||
// TODO: Tiled.fill_center=false 当前暂不支持,保持浏览器 repeat fallback。
|
||||
return {
|
||||
kind: 'background',
|
||||
src,
|
||||
|
||||
@@ -35,6 +35,7 @@ Container 专属数据是互斥 tagged union:HBox/VBox 存 `alignment + separa
|
||||
- 不支持 Flex/Flow wrap;Grid 按行优先排列。
|
||||
- Margin 的 children 填满内侧矩形;Center 的 children 居中并可重叠。
|
||||
- v1 minimum size 只使用 `custom_minimum_size`。TODO:为文本、图片等组件提供 minimum-size,再与 custom minimum 逐轴取最大值。
|
||||
- `ImageType::Tiled.fill_center=false` 当前暂不支持,前端预览与 Rust HTML 生成均保持整块 `repeat` fallback;如需实现仅铺边框,必须先补充 CSS 输出与既有项目迁移契约。
|
||||
|
||||
## 编辑器交互
|
||||
|
||||
|
||||
Reference in New Issue
Block a user