Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -1,274 +1,277 @@
|
||||
{
|
||||
"version": "1.1",
|
||||
"prop_name": "Framed Picture",
|
||||
"material_preset": "none",
|
||||
"tags": ["objects", "walls"],
|
||||
"shapes": [
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": -110,
|
||||
"y": -82
|
||||
},
|
||||
{
|
||||
"x": 110,
|
||||
"y": -82
|
||||
},
|
||||
{
|
||||
"x": 110,
|
||||
"y": 82
|
||||
},
|
||||
{
|
||||
"x": -110,
|
||||
"y": 82
|
||||
}
|
||||
],
|
||||
"fill_color": "#B68165",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 4,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": -91,
|
||||
"y": -64
|
||||
},
|
||||
{
|
||||
"x": 91,
|
||||
"y": -64
|
||||
},
|
||||
{
|
||||
"x": 91,
|
||||
"y": 64
|
||||
},
|
||||
{
|
||||
"x": -91,
|
||||
"y": 64
|
||||
}
|
||||
],
|
||||
"fill_color": "#F4DEAF",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 4,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": -80,
|
||||
"y": -54
|
||||
},
|
||||
{
|
||||
"x": 80,
|
||||
"y": -54
|
||||
},
|
||||
{
|
||||
"x": 80,
|
||||
"y": 54
|
||||
},
|
||||
{
|
||||
"x": -80,
|
||||
"y": 54
|
||||
}
|
||||
],
|
||||
"fill_color": "#A4CFCD",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 4,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": 58.0,
|
||||
"y": -30.0
|
||||
},
|
||||
{
|
||||
"x": 56.86,
|
||||
"y": -24.26
|
||||
},
|
||||
{
|
||||
"x": 53.61,
|
||||
"y": -19.39
|
||||
},
|
||||
{
|
||||
"x": 48.74,
|
||||
"y": -16.14
|
||||
},
|
||||
{
|
||||
"x": 43.0,
|
||||
"y": -15.0
|
||||
},
|
||||
{
|
||||
"x": 37.26,
|
||||
"y": -16.14
|
||||
},
|
||||
{
|
||||
"x": 32.39,
|
||||
"y": -19.39
|
||||
},
|
||||
{
|
||||
"x": 29.14,
|
||||
"y": -24.26
|
||||
},
|
||||
{
|
||||
"x": 28.0,
|
||||
"y": -30.0
|
||||
},
|
||||
{
|
||||
"x": 29.14,
|
||||
"y": -35.74
|
||||
},
|
||||
{
|
||||
"x": 32.39,
|
||||
"y": -40.61
|
||||
},
|
||||
{
|
||||
"x": 37.26,
|
||||
"y": -43.86
|
||||
},
|
||||
{
|
||||
"x": 43.0,
|
||||
"y": -45.0
|
||||
},
|
||||
{
|
||||
"x": 48.74,
|
||||
"y": -43.86
|
||||
},
|
||||
{
|
||||
"x": 53.61,
|
||||
"y": -40.61
|
||||
},
|
||||
{
|
||||
"x": 56.86,
|
||||
"y": -35.74
|
||||
}
|
||||
],
|
||||
"fill_color": "#F3D68C",
|
||||
"outline_color": "#F3D68C",
|
||||
"outline_width": 0,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": -80,
|
||||
"y": 54
|
||||
},
|
||||
{
|
||||
"x": -20,
|
||||
"y": -11
|
||||
},
|
||||
{
|
||||
"x": 10,
|
||||
"y": 23
|
||||
},
|
||||
{
|
||||
"x": 40,
|
||||
"y": -18
|
||||
},
|
||||
{
|
||||
"x": 80,
|
||||
"y": 39
|
||||
},
|
||||
{
|
||||
"x": 80,
|
||||
"y": 54
|
||||
}
|
||||
],
|
||||
"fill_color": "#88B798",
|
||||
"outline_color": "#88B798",
|
||||
"outline_width": 0,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "line",
|
||||
"points": [
|
||||
{
|
||||
"x": -64,
|
||||
"y": 42
|
||||
},
|
||||
{
|
||||
"x": -8,
|
||||
"y": 42
|
||||
}
|
||||
],
|
||||
"fill_color": "#00000000",
|
||||
"outline_color": "#F0E1BC",
|
||||
"outline_width": 4,
|
||||
"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:11:48",
|
||||
"modified_at": "2026-10-21T23:11:48"
|
||||
},
|
||||
"prop_name": "Framed Picture",
|
||||
"shapes": [
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#B68165",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 5.324,
|
||||
"points": [
|
||||
{
|
||||
"x": -146.410003662109,
|
||||
"y": -109.141998291016
|
||||
},
|
||||
{
|
||||
"x": 146.410003662109,
|
||||
"y": -109.141998291016
|
||||
},
|
||||
{
|
||||
"x": 146.410003662109,
|
||||
"y": 109.141998291016
|
||||
},
|
||||
{
|
||||
"x": -146.410003662109,
|
||||
"y": 109.141998291016
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#F4DEAF",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 5.324,
|
||||
"points": [
|
||||
{
|
||||
"x": -121.120994567871,
|
||||
"y": -85.1839981079102
|
||||
},
|
||||
{
|
||||
"x": 121.120994567871,
|
||||
"y": -85.1839981079102
|
||||
},
|
||||
{
|
||||
"x": 121.120994567871,
|
||||
"y": 85.1839981079102
|
||||
},
|
||||
{
|
||||
"x": -121.120994567871,
|
||||
"y": 85.1839981079102
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#A4CFCD",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 5.324,
|
||||
"points": [
|
||||
{
|
||||
"x": -106.479995727539,
|
||||
"y": -71.8740005493164
|
||||
},
|
||||
{
|
||||
"x": 106.479995727539,
|
||||
"y": -71.8740005493164
|
||||
},
|
||||
{
|
||||
"x": 106.479995727539,
|
||||
"y": 71.8740005493164
|
||||
},
|
||||
{
|
||||
"x": -106.479995727539,
|
||||
"y": 71.8740005493164
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#F3D68C",
|
||||
"outline_color": "#F3D68C",
|
||||
"outline_width": 0.0,
|
||||
"points": [
|
||||
{
|
||||
"x": 77.197998046875,
|
||||
"y": -39.9300003051758
|
||||
},
|
||||
{
|
||||
"x": 75.6806564331055,
|
||||
"y": -32.2900581359863
|
||||
},
|
||||
{
|
||||
"x": 71.3549118041992,
|
||||
"y": -25.8080883026123
|
||||
},
|
||||
{
|
||||
"x": 64.8729400634766,
|
||||
"y": -21.4823379516602
|
||||
},
|
||||
{
|
||||
"x": 57.2329978942871,
|
||||
"y": -19.9650001525879
|
||||
},
|
||||
{
|
||||
"x": 49.5930557250977,
|
||||
"y": -21.4823379516602
|
||||
},
|
||||
{
|
||||
"x": 43.1110877990723,
|
||||
"y": -25.8080883026123
|
||||
},
|
||||
{
|
||||
"x": 38.7853393554688,
|
||||
"y": -32.2900581359863
|
||||
},
|
||||
{
|
||||
"x": 37.2679977416992,
|
||||
"y": -39.9300003051758
|
||||
},
|
||||
{
|
||||
"x": 38.7853393554688,
|
||||
"y": -47.5699424743652
|
||||
},
|
||||
{
|
||||
"x": 43.1110877990723,
|
||||
"y": -54.0519104003906
|
||||
},
|
||||
{
|
||||
"x": 49.5930557250977,
|
||||
"y": -58.3776588439941
|
||||
},
|
||||
{
|
||||
"x": 57.2329978942871,
|
||||
"y": -59.8950004577637
|
||||
},
|
||||
{
|
||||
"x": 64.8729400634766,
|
||||
"y": -58.3776588439941
|
||||
},
|
||||
{
|
||||
"x": 71.3549118041992,
|
||||
"y": -54.0519104003906
|
||||
},
|
||||
{
|
||||
"x": 75.6806564331055,
|
||||
"y": -47.5699424743652
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#88B798",
|
||||
"outline_color": "#88B798",
|
||||
"outline_width": 0.0,
|
||||
"points": [
|
||||
{
|
||||
"x": -106.479995727539,
|
||||
"y": 71.8740005493164
|
||||
},
|
||||
{
|
||||
"x": -26.6199989318848,
|
||||
"y": -14.6409997940063
|
||||
},
|
||||
{
|
||||
"x": 13.3099994659424,
|
||||
"y": 30.6129989624023
|
||||
},
|
||||
{
|
||||
"x": 53.2399978637695,
|
||||
"y": -23.9580001831055
|
||||
},
|
||||
{
|
||||
"x": 106.479995727539,
|
||||
"y": 51.9090003967285
|
||||
},
|
||||
{
|
||||
"x": 106.479995727539,
|
||||
"y": 71.8740005493164
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": false,
|
||||
"fill_color": "#00000000",
|
||||
"outline_color": "#F0E1BC",
|
||||
"outline_width": 5.324,
|
||||
"points": [
|
||||
{
|
||||
"x": -85.1839981079102,
|
||||
"y": 55.9020004272461
|
||||
},
|
||||
{
|
||||
"x": -10.6479997634888,
|
||||
"y": 55.9020004272461
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "line",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"objects",
|
||||
"walls"
|
||||
],
|
||||
"version": "1.1"
|
||||
}
|
||||
Reference in New Issue
Block a user