更新 UI 编辑器节点布局与字体配置
增加自定义尺寸与排列模式支持,调整字体属性结构以适应绑定格式
This commit is contained in:
@@ -1119,11 +1119,18 @@ mod tests {
|
||||
"src_ui_design": "page",
|
||||
"root": {
|
||||
"id": "root",
|
||||
"transform": {
|
||||
"anchor_min": [0.0, 0.0],
|
||||
"anchor_max": [1.0, 1.0],
|
||||
"offset_min": [0.0, 0.0],
|
||||
"offset_max": [0.0, 0.0]
|
||||
"layout": {
|
||||
"transform": {
|
||||
"anchor_min": [0.0, 0.0],
|
||||
"anchor_max": [1.0, 1.0],
|
||||
"offset_min": [0.0, 0.0],
|
||||
"offset_max": [0.0, 0.0]
|
||||
},
|
||||
"custom_minimum_size": [0.0, 0.0],
|
||||
"size_flags_horizontal": 1,
|
||||
"size_flags_vertical": 1,
|
||||
"size_flags_stretch_ratio": 1.0,
|
||||
"container": "None"
|
||||
},
|
||||
"metadata": {
|
||||
"name": "根节点",
|
||||
@@ -1137,7 +1144,7 @@ mod tests {
|
||||
"components": [{
|
||||
"Text": {
|
||||
"content": "标题",
|
||||
"font": "missing-font",
|
||||
"font": {"Bound": "missing-font"},
|
||||
"font_style": "Normal",
|
||||
"font_sizing": {"Fixed": 14},
|
||||
"color": [255, 255, 255, 255],
|
||||
@@ -1147,6 +1154,7 @@ mod tests {
|
||||
"line_spacing": 1.0
|
||||
}
|
||||
}],
|
||||
"children_display_mode": "Stack",
|
||||
"children": []
|
||||
}
|
||||
}],
|
||||
|
||||
Reference in New Issue
Block a user