Refactor code structure for improved readability and maintainability
This commit is contained in:
+305
-303
@@ -1,304 +1,306 @@
|
||||
{
|
||||
"version": "1.1",
|
||||
"prop_name": "Patterned Rug",
|
||||
"material_preset": "none",
|
||||
"tags": ["objects"],
|
||||
"shapes": [
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": -158,
|
||||
"y": -58
|
||||
},
|
||||
{
|
||||
"x": 158,
|
||||
"y": -58
|
||||
},
|
||||
{
|
||||
"x": 177,
|
||||
"y": 63
|
||||
},
|
||||
{
|
||||
"x": -177,
|
||||
"y": 63
|
||||
}
|
||||
],
|
||||
"fill_color": "#C77377",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 4,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": -132,
|
||||
"y": -38
|
||||
},
|
||||
{
|
||||
"x": 132,
|
||||
"y": -38
|
||||
},
|
||||
{
|
||||
"x": 147,
|
||||
"y": 43
|
||||
},
|
||||
{
|
||||
"x": -147,
|
||||
"y": 43
|
||||
}
|
||||
],
|
||||
"fill_color": "#F0D29A",
|
||||
"outline_color": "#F0D29A",
|
||||
"outline_width": 2,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": -97,
|
||||
"y": -24
|
||||
},
|
||||
{
|
||||
"x": 97,
|
||||
"y": -24
|
||||
},
|
||||
{
|
||||
"x": 106,
|
||||
"y": 29
|
||||
},
|
||||
{
|
||||
"x": -106,
|
||||
"y": 29
|
||||
}
|
||||
],
|
||||
"fill_color": "#7E9B9C",
|
||||
"outline_color": "#7E9B9C",
|
||||
"outline_width": 2,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": 0,
|
||||
"y": -19
|
||||
},
|
||||
{
|
||||
"x": 35,
|
||||
"y": 3
|
||||
},
|
||||
{
|
||||
"x": 0,
|
||||
"y": 24
|
||||
},
|
||||
{
|
||||
"x": -35,
|
||||
"y": 3
|
||||
}
|
||||
],
|
||||
"fill_color": "#F6D69A",
|
||||
"outline_color": "#F6D69A",
|
||||
"outline_width": 1,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "line",
|
||||
"points": [
|
||||
{
|
||||
"x": -138,
|
||||
"y": 64
|
||||
},
|
||||
{
|
||||
"x": -138,
|
||||
"y": 77
|
||||
}
|
||||
],
|
||||
"fill_color": "#00000000",
|
||||
"outline_color": "#DBA389",
|
||||
"outline_width": 3,
|
||||
"closed": false,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "line",
|
||||
"points": [
|
||||
{
|
||||
"x": -92,
|
||||
"y": 64
|
||||
},
|
||||
{
|
||||
"x": -92,
|
||||
"y": 77
|
||||
}
|
||||
],
|
||||
"fill_color": "#00000000",
|
||||
"outline_color": "#DBA389",
|
||||
"outline_width": 3,
|
||||
"closed": false,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "line",
|
||||
"points": [
|
||||
{
|
||||
"x": -46,
|
||||
"y": 64
|
||||
},
|
||||
{
|
||||
"x": -46,
|
||||
"y": 77
|
||||
}
|
||||
],
|
||||
"fill_color": "#00000000",
|
||||
"outline_color": "#DBA389",
|
||||
"outline_width": 3,
|
||||
"closed": false,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "line",
|
||||
"points": [
|
||||
{
|
||||
"x": 0,
|
||||
"y": 64
|
||||
},
|
||||
{
|
||||
"x": 0,
|
||||
"y": 77
|
||||
}
|
||||
],
|
||||
"fill_color": "#00000000",
|
||||
"outline_color": "#DBA389",
|
||||
"outline_width": 3,
|
||||
"closed": false,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "line",
|
||||
"points": [
|
||||
{
|
||||
"x": 46,
|
||||
"y": 64
|
||||
},
|
||||
{
|
||||
"x": 46,
|
||||
"y": 77
|
||||
}
|
||||
],
|
||||
"fill_color": "#00000000",
|
||||
"outline_color": "#DBA389",
|
||||
"outline_width": 3,
|
||||
"closed": false,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "line",
|
||||
"points": [
|
||||
{
|
||||
"x": 92,
|
||||
"y": 64
|
||||
},
|
||||
{
|
||||
"x": 92,
|
||||
"y": 77
|
||||
}
|
||||
],
|
||||
"fill_color": "#00000000",
|
||||
"outline_color": "#DBA389",
|
||||
"outline_width": 3,
|
||||
"closed": false,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "line",
|
||||
"points": [
|
||||
{
|
||||
"x": 138,
|
||||
"y": 64
|
||||
},
|
||||
{
|
||||
"x": 138,
|
||||
"y": 77
|
||||
}
|
||||
],
|
||||
"fill_color": "#00000000",
|
||||
"outline_color": "#DBA389",
|
||||
"outline_width": 3,
|
||||
"closed": false,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
}
|
||||
],
|
||||
"anchors": {
|
||||
"origin": {
|
||||
"role": "pivot",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"rotation_deg": 0,
|
||||
"z_index_offset": 0,
|
||||
"allowed_hands": "both"
|
||||
}
|
||||
},
|
||||
"metadata": {
|
||||
"created_at": "2026-10-15T00:00:00",
|
||||
"modified_at": "2026-10-15T00:00:00"
|
||||
}
|
||||
}
|
||||
"anchors": {
|
||||
"origin": {
|
||||
"allowed_hands": "both",
|
||||
"role": "pivot",
|
||||
"rotation_deg": 0.0,
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z_index_offset": 0
|
||||
}
|
||||
},
|
||||
"material_preset": "none",
|
||||
"metadata": {
|
||||
"created_at": "2026-10-21T23:12:17",
|
||||
"modified_at": "2026-10-21T23:12:17"
|
||||
},
|
||||
"prop_name": "Patterned Rug",
|
||||
"shapes": [
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#C77377",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 5.324,
|
||||
"points": [
|
||||
{
|
||||
"x": -210.297988891602,
|
||||
"y": -89.8424987792969
|
||||
},
|
||||
{
|
||||
"x": 210.297988891602,
|
||||
"y": -89.8424987792969
|
||||
},
|
||||
{
|
||||
"x": 235.586990356445,
|
||||
"y": 71.20849609375
|
||||
},
|
||||
{
|
||||
"x": -235.586990356445,
|
||||
"y": 71.20849609375
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#F0D29A",
|
||||
"outline_color": "#F0D29A",
|
||||
"outline_width": 2.662,
|
||||
"points": [
|
||||
{
|
||||
"x": -175.692001342773,
|
||||
"y": -63.2224998474121
|
||||
},
|
||||
{
|
||||
"x": 175.692001342773,
|
||||
"y": -63.2224998474121
|
||||
},
|
||||
{
|
||||
"x": 195.656997680664,
|
||||
"y": 44.5884971618652
|
||||
},
|
||||
{
|
||||
"x": -195.656997680664,
|
||||
"y": 44.5884971618652
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#7E9B9C",
|
||||
"outline_color": "#7E9B9C",
|
||||
"outline_width": 2.662,
|
||||
"points": [
|
||||
{
|
||||
"x": -129.106994628906,
|
||||
"y": -44.5885009765625
|
||||
},
|
||||
{
|
||||
"x": 129.106994628906,
|
||||
"y": -44.5885009765625
|
||||
},
|
||||
{
|
||||
"x": 141.085998535156,
|
||||
"y": 25.9544982910156
|
||||
},
|
||||
{
|
||||
"x": -141.085998535156,
|
||||
"y": 25.9544982910156
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#F6D69A",
|
||||
"outline_color": "#F6D69A",
|
||||
"outline_width": 1.331,
|
||||
"points": [
|
||||
{
|
||||
"x": 0.0,
|
||||
"y": -37.9335021972656
|
||||
},
|
||||
{
|
||||
"x": 46.5849990844727,
|
||||
"y": -8.6515007019043
|
||||
},
|
||||
{
|
||||
"x": 0.0,
|
||||
"y": 19.2994995117188
|
||||
},
|
||||
{
|
||||
"x": -46.5849990844727,
|
||||
"y": -8.6515007019043
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": false,
|
||||
"fill_color": "#00000000",
|
||||
"outline_color": "#DBA389",
|
||||
"outline_width": 3.993,
|
||||
"points": [
|
||||
{
|
||||
"x": -183.677993774414,
|
||||
"y": 72.5394973754883
|
||||
},
|
||||
{
|
||||
"x": -183.677993774414,
|
||||
"y": 89.8424987792969
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "line",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": false,
|
||||
"fill_color": "#00000000",
|
||||
"outline_color": "#DBA389",
|
||||
"outline_width": 3.993,
|
||||
"points": [
|
||||
{
|
||||
"x": -122.451995849609,
|
||||
"y": 72.5394973754883
|
||||
},
|
||||
{
|
||||
"x": -122.451995849609,
|
||||
"y": 89.8424987792969
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "line",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": false,
|
||||
"fill_color": "#00000000",
|
||||
"outline_color": "#DBA389",
|
||||
"outline_width": 3.993,
|
||||
"points": [
|
||||
{
|
||||
"x": -61.2259979248047,
|
||||
"y": 72.5394973754883
|
||||
},
|
||||
{
|
||||
"x": -61.2259979248047,
|
||||
"y": 89.8424987792969
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "line",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": false,
|
||||
"fill_color": "#00000000",
|
||||
"outline_color": "#DBA389",
|
||||
"outline_width": 3.993,
|
||||
"points": [
|
||||
{
|
||||
"x": 0.0,
|
||||
"y": 72.5394973754883
|
||||
},
|
||||
{
|
||||
"x": 0.0,
|
||||
"y": 89.8424987792969
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "line",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": false,
|
||||
"fill_color": "#00000000",
|
||||
"outline_color": "#DBA389",
|
||||
"outline_width": 3.993,
|
||||
"points": [
|
||||
{
|
||||
"x": 61.2259979248047,
|
||||
"y": 72.5394973754883
|
||||
},
|
||||
{
|
||||
"x": 61.2259979248047,
|
||||
"y": 89.8424987792969
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "line",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": false,
|
||||
"fill_color": "#00000000",
|
||||
"outline_color": "#DBA389",
|
||||
"outline_width": 3.993,
|
||||
"points": [
|
||||
{
|
||||
"x": 122.451995849609,
|
||||
"y": 72.5394973754883
|
||||
},
|
||||
{
|
||||
"x": 122.451995849609,
|
||||
"y": 89.8424987792969
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "line",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": false,
|
||||
"fill_color": "#00000000",
|
||||
"outline_color": "#DBA389",
|
||||
"outline_width": 3.993,
|
||||
"points": [
|
||||
{
|
||||
"x": 183.677993774414,
|
||||
"y": 72.5394973754883
|
||||
},
|
||||
{
|
||||
"x": 183.677993774414,
|
||||
"y": 89.8424987792969
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "line",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"objects"
|
||||
],
|
||||
"version": "1.1"
|
||||
}
|
||||
Reference in New Issue
Block a user