Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -1,366 +1,368 @@
|
||||
{
|
||||
"version": "1.1",
|
||||
"prop_name": "City Skyline",
|
||||
"material_preset": "none",
|
||||
"tags": ["buildings"],
|
||||
"shapes": [
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": -320,
|
||||
"y": 70
|
||||
},
|
||||
{
|
||||
"x": -320,
|
||||
"y": -25
|
||||
},
|
||||
{
|
||||
"x": -278,
|
||||
"y": -25
|
||||
},
|
||||
{
|
||||
"x": -278,
|
||||
"y": -75
|
||||
},
|
||||
{
|
||||
"x": -220,
|
||||
"y": -75
|
||||
},
|
||||
{
|
||||
"x": -220,
|
||||
"y": -30
|
||||
},
|
||||
{
|
||||
"x": -184,
|
||||
"y": -30
|
||||
},
|
||||
{
|
||||
"x": -184,
|
||||
"y": -112
|
||||
},
|
||||
{
|
||||
"x": -136,
|
||||
"y": -112
|
||||
},
|
||||
{
|
||||
"x": -136,
|
||||
"y": -55
|
||||
},
|
||||
{
|
||||
"x": -86,
|
||||
"y": -55
|
||||
},
|
||||
{
|
||||
"x": -86,
|
||||
"y": -88
|
||||
},
|
||||
{
|
||||
"x": -38,
|
||||
"y": -88
|
||||
},
|
||||
{
|
||||
"x": -38,
|
||||
"y": -35
|
||||
},
|
||||
{
|
||||
"x": 15,
|
||||
"y": -35
|
||||
},
|
||||
{
|
||||
"x": 15,
|
||||
"y": -125
|
||||
},
|
||||
{
|
||||
"x": 62,
|
||||
"y": -125
|
||||
},
|
||||
{
|
||||
"x": 62,
|
||||
"y": -52
|
||||
},
|
||||
{
|
||||
"x": 110,
|
||||
"y": -52
|
||||
},
|
||||
{
|
||||
"x": 110,
|
||||
"y": -92
|
||||
},
|
||||
{
|
||||
"x": 160,
|
||||
"y": -92
|
||||
},
|
||||
{
|
||||
"x": 160,
|
||||
"y": -34
|
||||
},
|
||||
{
|
||||
"x": 207,
|
||||
"y": -34
|
||||
},
|
||||
{
|
||||
"x": 207,
|
||||
"y": -70
|
||||
},
|
||||
{
|
||||
"x": 259,
|
||||
"y": -70
|
||||
},
|
||||
{
|
||||
"x": 259,
|
||||
"y": -20
|
||||
},
|
||||
{
|
||||
"x": 320,
|
||||
"y": -20
|
||||
},
|
||||
{
|
||||
"x": 320,
|
||||
"y": 70
|
||||
}
|
||||
],
|
||||
"fill_color": "#879DB0",
|
||||
"outline_color": "#687F97",
|
||||
"outline_width": 3,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": -298,
|
||||
"y": -56
|
||||
},
|
||||
{
|
||||
"x": -286,
|
||||
"y": -56
|
||||
},
|
||||
{
|
||||
"x": -286,
|
||||
"y": -37
|
||||
},
|
||||
{
|
||||
"x": -298,
|
||||
"y": -37
|
||||
}
|
||||
],
|
||||
"fill_color": "#DDE7E8",
|
||||
"outline_color": "#DDE7E8",
|
||||
"outline_width": 0,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": -258,
|
||||
"y": -52
|
||||
},
|
||||
{
|
||||
"x": -246,
|
||||
"y": -52
|
||||
},
|
||||
{
|
||||
"x": -246,
|
||||
"y": -34
|
||||
},
|
||||
{
|
||||
"x": -258,
|
||||
"y": -34
|
||||
}
|
||||
],
|
||||
"fill_color": "#DDE7E8",
|
||||
"outline_color": "#DDE7E8",
|
||||
"outline_width": 0,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": -161,
|
||||
"y": -93
|
||||
},
|
||||
{
|
||||
"x": -149,
|
||||
"y": -93
|
||||
},
|
||||
{
|
||||
"x": -149,
|
||||
"y": -75
|
||||
},
|
||||
{
|
||||
"x": -161,
|
||||
"y": -75
|
||||
}
|
||||
],
|
||||
"fill_color": "#DDE7E8",
|
||||
"outline_color": "#DDE7E8",
|
||||
"outline_width": 0,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": 30,
|
||||
"y": -107
|
||||
},
|
||||
{
|
||||
"x": 42,
|
||||
"y": -107
|
||||
},
|
||||
{
|
||||
"x": 42,
|
||||
"y": -87
|
||||
},
|
||||
{
|
||||
"x": 30,
|
||||
"y": -87
|
||||
}
|
||||
],
|
||||
"fill_color": "#DDE7E8",
|
||||
"outline_color": "#DDE7E8",
|
||||
"outline_width": 0,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": 127,
|
||||
"y": -74
|
||||
},
|
||||
{
|
||||
"x": 139,
|
||||
"y": -74
|
||||
},
|
||||
{
|
||||
"x": 139,
|
||||
"y": -56
|
||||
},
|
||||
{
|
||||
"x": 127,
|
||||
"y": -56
|
||||
}
|
||||
],
|
||||
"fill_color": "#DDE7E8",
|
||||
"outline_color": "#DDE7E8",
|
||||
"outline_width": 0,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": 226,
|
||||
"y": -54
|
||||
},
|
||||
{
|
||||
"x": 238,
|
||||
"y": -54
|
||||
},
|
||||
{
|
||||
"x": 238,
|
||||
"y": -37
|
||||
},
|
||||
{
|
||||
"x": 226,
|
||||
"y": -37
|
||||
}
|
||||
],
|
||||
"fill_color": "#DDE7E8",
|
||||
"outline_color": "#DDE7E8",
|
||||
"outline_width": 0,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
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-21T21:43:32",
|
||||
"modified_at": "2026-10-21T21:43:32"
|
||||
},
|
||||
"prop_name": "City Skyline",
|
||||
"shapes": [
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#879DB0",
|
||||
"outline_color": "#687F97",
|
||||
"outline_width": 8.76671850699844,
|
||||
"points": [
|
||||
{
|
||||
"x": -935.116638183594,
|
||||
"y": 284.918365478516
|
||||
},
|
||||
{
|
||||
"x": -935.116638183594,
|
||||
"y": 7.30561065673828
|
||||
},
|
||||
{
|
||||
"x": -812.382568359375,
|
||||
"y": 7.30561065673828
|
||||
},
|
||||
{
|
||||
"x": -812.382568359375,
|
||||
"y": -138.806365966797
|
||||
},
|
||||
{
|
||||
"x": -642.892700195313,
|
||||
"y": -138.806365966797
|
||||
},
|
||||
{
|
||||
"x": -642.892700195313,
|
||||
"y": -7.30558013916016
|
||||
},
|
||||
{
|
||||
"x": -537.692077636719,
|
||||
"y": -7.30558013916016
|
||||
},
|
||||
{
|
||||
"x": -537.692077636719,
|
||||
"y": -246.929229736328
|
||||
},
|
||||
{
|
||||
"x": -397.424591064453,
|
||||
"y": -246.929229736328
|
||||
},
|
||||
{
|
||||
"x": -397.424591064453,
|
||||
"y": -80.361572265625
|
||||
},
|
||||
{
|
||||
"x": -251.312606811523,
|
||||
"y": -80.361572265625
|
||||
},
|
||||
{
|
||||
"x": -251.312606811523,
|
||||
"y": -176.795471191406
|
||||
},
|
||||
{
|
||||
"x": -111.045104980469,
|
||||
"y": -176.795471191406
|
||||
},
|
||||
{
|
||||
"x": -111.045104980469,
|
||||
"y": -21.9167785644531
|
||||
},
|
||||
{
|
||||
"x": 43.8335914611816,
|
||||
"y": -21.9167785644531
|
||||
},
|
||||
{
|
||||
"x": 43.8335914611816,
|
||||
"y": -284.918334960938
|
||||
},
|
||||
{
|
||||
"x": 181.178848266602,
|
||||
"y": -284.918334960938
|
||||
},
|
||||
{
|
||||
"x": 181.178848266602,
|
||||
"y": -71.5948486328125
|
||||
},
|
||||
{
|
||||
"x": 321.446350097656,
|
||||
"y": -71.5948486328125
|
||||
},
|
||||
{
|
||||
"x": 321.446350097656,
|
||||
"y": -188.484436035156
|
||||
},
|
||||
{
|
||||
"x": 467.558319091797,
|
||||
"y": -188.484436035156
|
||||
},
|
||||
{
|
||||
"x": 467.558319091797,
|
||||
"y": -18.9945449829102
|
||||
},
|
||||
{
|
||||
"x": 604.903564453125,
|
||||
"y": -18.9945449829102
|
||||
},
|
||||
{
|
||||
"x": 604.903564453125,
|
||||
"y": -124.195159912109
|
||||
},
|
||||
{
|
||||
"x": 756.860046386719,
|
||||
"y": -124.195159912109
|
||||
},
|
||||
{
|
||||
"x": 756.860046386719,
|
||||
"y": 21.9168128967285
|
||||
},
|
||||
{
|
||||
"x": 935.116638183594,
|
||||
"y": 21.9168128967285
|
||||
},
|
||||
{
|
||||
"x": 935.116638183594,
|
||||
"y": 284.918365478516
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#DDE7E8",
|
||||
"outline_color": "#DDE7E8",
|
||||
"outline_width": 0.0,
|
||||
"points": [
|
||||
{
|
||||
"x": -195.827392578125,
|
||||
"y": -154.283813476563
|
||||
},
|
||||
{
|
||||
"x": -160.760498046875,
|
||||
"y": -154.283813476563
|
||||
},
|
||||
{
|
||||
"x": -160.760498046875,
|
||||
"y": -98.7612609863281
|
||||
},
|
||||
{
|
||||
"x": -195.827392578125,
|
||||
"y": -98.7612609863281
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#DDE7E8",
|
||||
"outline_color": "#DDE7E8",
|
||||
"outline_width": 0.0,
|
||||
"points": [
|
||||
{
|
||||
"x": -753.937805175781,
|
||||
"y": -71.5948486328125
|
||||
},
|
||||
{
|
||||
"x": -718.870910644531,
|
||||
"y": -71.5948486328125
|
||||
},
|
||||
{
|
||||
"x": -718.870910644531,
|
||||
"y": -18.9945449829102
|
||||
},
|
||||
{
|
||||
"x": -753.937805175781,
|
||||
"y": -18.9945449829102
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#DDE7E8",
|
||||
"outline_color": "#DDE7E8",
|
||||
"outline_width": 0.0,
|
||||
"points": [
|
||||
{
|
||||
"x": -470.480560302734,
|
||||
"y": -191.406677246094
|
||||
},
|
||||
{
|
||||
"x": -435.413696289063,
|
||||
"y": -191.406677246094
|
||||
},
|
||||
{
|
||||
"x": -435.413696289063,
|
||||
"y": -138.806365966797
|
||||
},
|
||||
{
|
||||
"x": -470.480560302734,
|
||||
"y": -138.806365966797
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#DDE7E8",
|
||||
"outline_color": "#DDE7E8",
|
||||
"outline_width": 0.0,
|
||||
"points": [
|
||||
{
|
||||
"x": 87.6671829223633,
|
||||
"y": -232.318023681641
|
||||
},
|
||||
{
|
||||
"x": 122.734062194824,
|
||||
"y": -232.318023681641
|
||||
},
|
||||
{
|
||||
"x": 122.734062194824,
|
||||
"y": -173.873229980469
|
||||
},
|
||||
{
|
||||
"x": 87.6671829223633,
|
||||
"y": -173.873229980469
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#DDE7E8",
|
||||
"outline_color": "#DDE7E8",
|
||||
"outline_width": 0.0,
|
||||
"points": [
|
||||
{
|
||||
"x": 371.124420166016,
|
||||
"y": -135.884124755859
|
||||
},
|
||||
{
|
||||
"x": 406.191284179688,
|
||||
"y": -135.884124755859
|
||||
},
|
||||
{
|
||||
"x": 406.191284179688,
|
||||
"y": -83.2838134765625
|
||||
},
|
||||
{
|
||||
"x": 371.124420166016,
|
||||
"y": -83.2838134765625
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#DDE7E8",
|
||||
"outline_color": "#DDE7E8",
|
||||
"outline_width": 0.0,
|
||||
"points": [
|
||||
{
|
||||
"x": 660.426147460938,
|
||||
"y": -77.4393310546875
|
||||
},
|
||||
{
|
||||
"x": 695.492980957031,
|
||||
"y": -77.4393310546875
|
||||
},
|
||||
{
|
||||
"x": 695.492980957031,
|
||||
"y": -27.7612609863281
|
||||
},
|
||||
{
|
||||
"x": 660.426147460938,
|
||||
"y": -27.7612609863281
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"buildings"
|
||||
],
|
||||
"version": "1.1"
|
||||
}
|
||||
Reference in New Issue
Block a user