floor-editor-ts 1.4.6 → 1.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/floor-editor.es.js +180 -180
- package/dist/floor-editor.es.js.map +1 -1
- package/package.json +1 -1
package/dist/floor-editor.es.js
CHANGED
|
@@ -11309,10 +11309,9 @@ function drawZoneShape(cs, zone, selected) {
|
|
|
11309
11309
|
ctx.fillStyle = color;
|
|
11310
11310
|
ctx.fillText(zone.name, bx + 6, by + 4);
|
|
11311
11311
|
}
|
|
11312
|
-
|
|
11313
|
-
for (let i = 0; i < pts.length; i++) {
|
|
11312
|
+
if (selected) for (let i = 0; i < pts.length; i++) {
|
|
11314
11313
|
const s = wts(cs, pts[i].x, pts[i].y);
|
|
11315
|
-
drawVertexIndexBadge(ctx, s.x, s.y, i, color,
|
|
11314
|
+
drawVertexIndexBadge(ctx, s.x, s.y, i, color, 9);
|
|
11316
11315
|
}
|
|
11317
11316
|
ctx.restore();
|
|
11318
11317
|
}
|
|
@@ -63830,7 +63829,7 @@ function CameraFovEditor($$anchor, $$props) {
|
|
|
63830
63829
|
ctx.setLineDash([]);
|
|
63831
63830
|
ctx.globalAlpha = 1;
|
|
63832
63831
|
}
|
|
63833
|
-
for (let i = 0; i < placed.length; i++) drawVertexIndexBadge(ctx, placed[i].x * s, placed[i].y * s, i, color, 10);
|
|
63832
|
+
if (get(editing) || get(polySelected)) for (let i = 0; i < placed.length; i++) drawVertexIndexBadge(ctx, placed[i].x * s, placed[i].y * s, i, color, 10);
|
|
63834
63833
|
ctx.restore();
|
|
63835
63834
|
}
|
|
63836
63835
|
}
|
|
@@ -64149,7 +64148,7 @@ var root_31 = /* @__PURE__ */ from_html(`<button type="button"></button>`);
|
|
|
64149
64148
|
var root_29 = /* @__PURE__ */ from_html(`<div class="space-y-3"><h3 class="text-sm font-semibold text-gray-700 mb-3 flex items-center gap-2"><span class="w-6 h-6 rounded flex items-center justify-center text-xs">⬡</span> Zone</h3> <label class="block"><span class="text-xs text-gray-500">Name</span> <input type="text" class="w-full px-2 py-1 border border-gray-200 rounded text-sm" title="From assignedCameras.zone when linked"/></label> <!> <div class="text-xs text-gray-500">Shape: <span class="text-gray-700 capitalize"> </span></div> <label class="block"><span class="text-xs text-gray-500">Color</span> <div class="flex flex-wrap gap-1.5 mt-1"><!> <input type="color" class="w-8 h-6 rounded border border-gray-200 cursor-pointer"/></div></label> <label class="block"><span class="text-xs text-gray-500">Fill opacity</span> <input type="range" min="0" max="0.4" step="0.02" class="w-full"/></label></div>`);
|
|
64150
64149
|
var root_32 = /* @__PURE__ */ from_html(`<div class="space-y-3"><h3 class="text-sm font-semibold text-gray-700 mb-3 flex items-center gap-2"><span class="w-6 h-6 bg-emerald-100 rounded flex items-center justify-center text-xs">🏷️</span> Text Annotation</h3> <label class="block"><span class="text-xs text-gray-500">Text</span> <input type="text" class="w-full px-2 py-1 border border-gray-200 rounded text-sm"/></label> <label class="block"><span class="text-xs text-gray-500">Font Size</span> <input type="number" min="8" max="72" class="w-full px-2 py-1 border border-gray-200 rounded text-sm"/></label> <label class="block"><span class="text-xs text-gray-500">Color</span> <div class="flex items-center gap-2"><input type="color" class="w-8 h-6 rounded border border-gray-200 cursor-pointer"/> <span class="text-xs text-gray-400"> </span></div></label> <label class="block"><span class="text-xs text-gray-500">Rotation (°)</span> <input type="number" class="w-full px-2 py-1 border border-gray-200 rounded text-sm"/></label> <label class="block"><span class="text-xs text-gray-500">X</span> <input type="number" class="w-full px-2 py-1 border border-gray-200 rounded text-sm"/></label> <label class="block"><span class="text-xs text-gray-500">Y</span> <input type="number" class="w-full px-2 py-1 border border-gray-200 rounded text-sm"/></label></div>`);
|
|
64151
64150
|
var root_33 = /* @__PURE__ */ from_html(`<div class="mt-4 pt-3 border-t border-gray-200"><h3 class="text-sm font-semibold text-gray-700 mb-3 flex items-center gap-2"><span class="w-6 h-6 bg-blue-100 rounded flex items-center justify-center text-xs">🖼️</span> Background Image</h3> <div class="space-y-3"><label class="block"><span class="text-xs text-gray-500">Opacity</span> <input type="range" min="0.05" max="1" step="0.05" class="w-full"/></label> <label class="block"><span class="text-xs text-gray-500">Scale</span> <input type="range" min="0.1" max="5" step="0.05" class="w-full"/></label> <label class="block"><span class="text-xs text-gray-500">Rotation</span> <input type="number" class="w-full px-2 py-1 border border-gray-200 rounded text-sm"/></label> <div class="flex gap-2"><button> </button> <button class="flex-1 px-2 py-1.5 border rounded text-sm border-gray-200 hover:bg-gray-50">📏 Set Scale</button></div> <button class="w-full px-2 py-1.5 border border-red-300 rounded text-sm text-red-600 hover:bg-red-50">Remove Image</button></div></div>`);
|
|
64152
|
-
var root$3 = /* @__PURE__ */ from_html(`<div data-properties-panel=""><div role="separator" aria-orientation="vertical" aria-label="Resize properties panel" tabindex="0" style="cursor: col-resize;" title="Drag to resize"><div></div></div>
|
|
64151
|
+
var root$3 = /* @__PURE__ */ from_html(`<div data-properties-panel=""><div role="separator" aria-orientation="vertical" aria-label="Resize properties panel" tabindex="0" class="absolute top-0 bottom-0 z-[60] group touch-none flex items-center justify-center" style="left: -6px; width: 12px; cursor: col-resize;" title="Drag to resize"><div></div> <div aria-hidden="true"></div></div> <div class="flex-1 min-h-0 overflow-y-auto p-3"><!> <!></div></div>`);
|
|
64153
64152
|
function PropertiesPanel($$anchor, $$props) {
|
|
64154
64153
|
push($$props, true);
|
|
64155
64154
|
const $projectSettings = () => store_get(projectSettings, "$projectSettings", $$stores);
|
|
@@ -64739,14 +64738,15 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
64739
64738
|
let classes;
|
|
64740
64739
|
var div_1 = child(div);
|
|
64741
64740
|
set_attribute(div_1, "aria-valuemin", PANEL_MIN_W);
|
|
64742
|
-
let classes_1;
|
|
64743
64741
|
var div_2 = child(div_1);
|
|
64742
|
+
var div_3 = sibling(div_2, 2);
|
|
64744
64743
|
reset(div_1);
|
|
64745
|
-
var
|
|
64744
|
+
var div_4 = sibling(div_1, 2);
|
|
64745
|
+
var node = child(div_4);
|
|
64746
64746
|
var consequent_1 = ($$anchor) => {
|
|
64747
64747
|
var fragment = root_1$6();
|
|
64748
|
-
var
|
|
64749
|
-
var label = child(
|
|
64748
|
+
var div_5 = sibling(first_child(fragment), 2);
|
|
64749
|
+
var label = child(div_5);
|
|
64750
64750
|
var span = child(label);
|
|
64751
64751
|
var text = child(span);
|
|
64752
64752
|
reset(span);
|
|
@@ -64767,23 +64767,23 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
64767
64767
|
var input_2 = sibling(span_2, 2);
|
|
64768
64768
|
remove_input_defaults(input_2);
|
|
64769
64769
|
reset(label_2);
|
|
64770
|
-
var
|
|
64771
|
-
var button = sibling(child(
|
|
64770
|
+
var div_6 = sibling(label_2, 2);
|
|
64771
|
+
var button = sibling(child(div_6), 2);
|
|
64772
64772
|
var text_3 = child(button, true);
|
|
64773
64773
|
reset(button);
|
|
64774
|
-
reset(div_4);
|
|
64775
|
-
var div_5 = sibling(div_4, 2);
|
|
64776
|
-
var div_6 = child(div_5);
|
|
64777
|
-
var button_1 = child(div_6);
|
|
64778
|
-
var button_2 = sibling(button_1, 2);
|
|
64779
64774
|
reset(div_6);
|
|
64780
|
-
var
|
|
64775
|
+
var div_7 = sibling(div_6, 2);
|
|
64776
|
+
var div_8 = child(div_7);
|
|
64777
|
+
var button_1 = child(div_8);
|
|
64778
|
+
var button_2 = sibling(button_1, 2);
|
|
64779
|
+
reset(div_8);
|
|
64780
|
+
var node_1 = sibling(div_8, 2);
|
|
64781
64781
|
var consequent = ($$anchor) => {
|
|
64782
64782
|
const sideColor = /* @__PURE__ */ user_derived(() => get(selectedWall).interiorColor || get(selectedWall).color);
|
|
64783
64783
|
const sideTex = /* @__PURE__ */ user_derived(() => get(selectedWall).interiorTexture === "none" ? void 0 : get(selectedWall).interiorTexture || get(selectedWall).texture);
|
|
64784
|
-
var
|
|
64785
|
-
var
|
|
64786
|
-
each(
|
|
64784
|
+
var div_9 = root_2$7();
|
|
64785
|
+
var div_10 = sibling(child(div_9), 2);
|
|
64786
|
+
each(div_10, 21, () => wallColors, index$1, ($$anchor, wc) => {
|
|
64787
64787
|
var button_3 = root_3$6();
|
|
64788
64788
|
template_effect(() => {
|
|
64789
64789
|
var _$$get$color;
|
|
@@ -64796,13 +64796,13 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
64796
64796
|
});
|
|
64797
64797
|
append($$anchor, button_3);
|
|
64798
64798
|
});
|
|
64799
|
-
reset(
|
|
64800
|
-
var label_3 = sibling(
|
|
64799
|
+
reset(div_10);
|
|
64800
|
+
var label_3 = sibling(div_10, 2);
|
|
64801
64801
|
var input_3 = sibling(child(label_3), 2);
|
|
64802
64802
|
remove_input_defaults(input_3);
|
|
64803
64803
|
reset(label_3);
|
|
64804
|
-
var
|
|
64805
|
-
var button_4 = child(
|
|
64804
|
+
var div_11 = sibling(label_3, 4);
|
|
64805
|
+
var button_4 = child(div_11);
|
|
64806
64806
|
each(sibling(button_4, 2), 17, () => wallColors.filter((wc) => wc.texture), index$1, ($$anchor, wc) => {
|
|
64807
64807
|
const texPath = /* @__PURE__ */ user_derived(() => {
|
|
64808
64808
|
var _redBrick$exposedBr;
|
|
@@ -64833,8 +64833,8 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
64833
64833
|
});
|
|
64834
64834
|
append($$anchor, button_5);
|
|
64835
64835
|
});
|
|
64836
|
+
reset(div_11);
|
|
64836
64837
|
reset(div_9);
|
|
64837
|
-
reset(div_7);
|
|
64838
64838
|
template_effect(() => {
|
|
64839
64839
|
set_value(input_3, get(sideColor));
|
|
64840
64840
|
set_class(button_4, 1, `p-1.5 rounded-md border-2 text-[10px] text-center h-14 ${!get(sideTex) ? "border-blue-500 ring-1 ring-blue-200" : "border-gray-200 hover:border-gray-300"}`);
|
|
@@ -64845,14 +64845,14 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
64845
64845
|
delegated("click", button_4, () => {
|
|
64846
64846
|
if (get(selectedWall)) updateWall(get(selectedWall).id, { interiorTexture: "none" });
|
|
64847
64847
|
});
|
|
64848
|
-
append($$anchor,
|
|
64848
|
+
append($$anchor, div_9);
|
|
64849
64849
|
};
|
|
64850
64850
|
var alternate = ($$anchor) => {
|
|
64851
64851
|
const sideColor = /* @__PURE__ */ user_derived(() => get(selectedWall).exteriorColor || get(selectedWall).color);
|
|
64852
64852
|
const sideTex = /* @__PURE__ */ user_derived(() => get(selectedWall).exteriorTexture === "none" ? void 0 : get(selectedWall).exteriorTexture || get(selectedWall).texture);
|
|
64853
|
-
var
|
|
64854
|
-
var
|
|
64855
|
-
each(
|
|
64853
|
+
var div_12 = root_5$3();
|
|
64854
|
+
var div_13 = sibling(child(div_12), 2);
|
|
64855
|
+
each(div_13, 21, () => wallColors, index$1, ($$anchor, wc) => {
|
|
64856
64856
|
var button_6 = root_6$2();
|
|
64857
64857
|
template_effect(() => {
|
|
64858
64858
|
var _$$get$color2;
|
|
@@ -64865,13 +64865,13 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
64865
64865
|
});
|
|
64866
64866
|
append($$anchor, button_6);
|
|
64867
64867
|
});
|
|
64868
|
-
reset(
|
|
64869
|
-
var label_4 = sibling(
|
|
64868
|
+
reset(div_13);
|
|
64869
|
+
var label_4 = sibling(div_13, 2);
|
|
64870
64870
|
var input_4 = sibling(child(label_4), 2);
|
|
64871
64871
|
remove_input_defaults(input_4);
|
|
64872
64872
|
reset(label_4);
|
|
64873
|
-
var
|
|
64874
|
-
var button_7 = child(
|
|
64873
|
+
var div_14 = sibling(label_4, 4);
|
|
64874
|
+
var button_7 = child(div_14);
|
|
64875
64875
|
each(sibling(button_7, 2), 17, () => wallColors.filter((wc) => wc.texture), index$1, ($$anchor, wc) => {
|
|
64876
64876
|
const texPath = /* @__PURE__ */ user_derived(() => {
|
|
64877
64877
|
var _redBrick$exposedBr2;
|
|
@@ -64902,8 +64902,8 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
64902
64902
|
});
|
|
64903
64903
|
append($$anchor, button_8);
|
|
64904
64904
|
});
|
|
64905
|
+
reset(div_14);
|
|
64905
64906
|
reset(div_12);
|
|
64906
|
-
reset(div_10);
|
|
64907
64907
|
template_effect(() => {
|
|
64908
64908
|
set_value(input_4, get(sideColor));
|
|
64909
64909
|
set_class(button_7, 1, `p-1.5 rounded-md border-2 text-[10px] text-center h-14 ${!get(sideTex) ? "border-blue-500 ring-1 ring-blue-200" : "border-gray-200 hover:border-gray-300"}`);
|
|
@@ -64914,14 +64914,14 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
64914
64914
|
delegated("click", button_7, () => {
|
|
64915
64915
|
if (get(selectedWall)) updateWall(get(selectedWall).id, { exteriorTexture: "none" });
|
|
64916
64916
|
});
|
|
64917
|
-
append($$anchor,
|
|
64917
|
+
append($$anchor, div_12);
|
|
64918
64918
|
};
|
|
64919
64919
|
if_block(node_1, ($$render) => {
|
|
64920
64920
|
if (get(wallSideTab) === "interior") $$render(consequent);
|
|
64921
64921
|
else $$render(alternate, -1);
|
|
64922
64922
|
});
|
|
64923
|
+
reset(div_7);
|
|
64923
64924
|
reset(div_5);
|
|
64924
|
-
reset(div_3);
|
|
64925
64925
|
template_effect(($0, $1, $2, $3, $4, $5) => {
|
|
64926
64926
|
set_text(text, `Length (${$0 !== null && $0 !== void 0 ? $0 : ""})`);
|
|
64927
64927
|
set_value(input, $1);
|
|
@@ -64963,8 +64963,8 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
64963
64963
|
};
|
|
64964
64964
|
var consequent_2 = ($$anchor) => {
|
|
64965
64965
|
var fragment_1 = root_8$1();
|
|
64966
|
-
var
|
|
64967
|
-
var label_5 = child(
|
|
64966
|
+
var div_15 = sibling(first_child(fragment_1), 2);
|
|
64967
|
+
var label_5 = child(div_15);
|
|
64968
64968
|
var span_5 = child(label_5);
|
|
64969
64969
|
var text_6 = child(span_5);
|
|
64970
64970
|
reset(span_5);
|
|
@@ -65011,18 +65011,18 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65011
65011
|
init_select(select);
|
|
65012
65012
|
reset(label_9);
|
|
65013
65013
|
var label_10 = sibling(label_9, 2);
|
|
65014
|
-
var
|
|
65015
|
-
var button_9 = child(
|
|
65014
|
+
var div_16 = sibling(child(label_10), 2);
|
|
65015
|
+
var button_9 = child(div_16);
|
|
65016
65016
|
var button_10 = sibling(button_9, 2);
|
|
65017
|
-
reset(
|
|
65017
|
+
reset(div_16);
|
|
65018
65018
|
reset(label_10);
|
|
65019
65019
|
var label_11 = sibling(label_10, 2);
|
|
65020
|
-
var
|
|
65021
|
-
var button_11 = child(
|
|
65020
|
+
var div_17 = sibling(child(label_11), 2);
|
|
65021
|
+
var button_11 = child(div_17);
|
|
65022
65022
|
var button_12 = sibling(button_11, 2);
|
|
65023
|
-
reset(
|
|
65023
|
+
reset(div_17);
|
|
65024
65024
|
reset(label_11);
|
|
65025
|
-
reset(
|
|
65025
|
+
reset(div_15);
|
|
65026
65026
|
template_effect(($0, $1, $2, $3, $4, $5, $6, $7) => {
|
|
65027
65027
|
var _$$get17, _$$get18, _$$get19, _$$get20;
|
|
65028
65028
|
set_text(text_6, `Width (${$0 !== null && $0 !== void 0 ? $0 : ""})`);
|
|
@@ -65075,8 +65075,8 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65075
65075
|
};
|
|
65076
65076
|
var consequent_3 = ($$anchor) => {
|
|
65077
65077
|
var fragment_2 = root_9$1();
|
|
65078
|
-
var
|
|
65079
|
-
var label_12 = child(
|
|
65078
|
+
var div_18 = sibling(first_child(fragment_2), 2);
|
|
65079
|
+
var label_12 = child(div_18);
|
|
65080
65080
|
var select_1 = sibling(child(label_12), 2);
|
|
65081
65081
|
var option_6 = child(select_1);
|
|
65082
65082
|
option_6.value = option_6.__value = "standard";
|
|
@@ -65127,7 +65127,7 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65127
65127
|
var input_13 = sibling(span_13, 2);
|
|
65128
65128
|
remove_input_defaults(input_13);
|
|
65129
65129
|
reset(label_17);
|
|
65130
|
-
reset(
|
|
65130
|
+
reset(div_18);
|
|
65131
65131
|
template_effect(($0, $1, $2, $3, $4, $5, $6, $7, $8, $9) => {
|
|
65132
65132
|
var _$$get$type;
|
|
65133
65133
|
if (select_1_value !== (select_1_value = (_$$get$type = get(selectedWindow).type) !== null && _$$get$type !== void 0 ? _$$get$type : "standard")) {
|
|
@@ -65175,8 +65175,8 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65175
65175
|
var text_17 = child(button_13, true);
|
|
65176
65176
|
reset(button_13);
|
|
65177
65177
|
reset(h3);
|
|
65178
|
-
var
|
|
65179
|
-
var node_4 = child(
|
|
65178
|
+
var div_19 = sibling(h3, 2);
|
|
65179
|
+
var node_4 = child(div_19);
|
|
65180
65180
|
var consequent_8 = ($$anchor) => {
|
|
65181
65181
|
var fragment_4 = root_11$1();
|
|
65182
65182
|
var node_5 = first_child(fragment_4);
|
|
@@ -65236,8 +65236,8 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65236
65236
|
});
|
|
65237
65237
|
var node_9 = sibling(node_8, 2);
|
|
65238
65238
|
var consequent_6 = ($$anchor) => {
|
|
65239
|
-
var
|
|
65240
|
-
var node_10 = sibling(child(
|
|
65239
|
+
var div_20 = root_16();
|
|
65240
|
+
var node_10 = sibling(child(div_20), 2);
|
|
65241
65241
|
{
|
|
65242
65242
|
let $0 = /* @__PURE__ */ user_derived(() => {
|
|
65243
65243
|
var _$$get$props$coordina, _$$get$props2;
|
|
@@ -65269,8 +65269,8 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65269
65269
|
}
|
|
65270
65270
|
});
|
|
65271
65271
|
}
|
|
65272
|
-
reset(
|
|
65273
|
-
append($$anchor,
|
|
65272
|
+
reset(div_20);
|
|
65273
|
+
append($$anchor, div_20);
|
|
65274
65274
|
};
|
|
65275
65275
|
var consequent_7 = ($$anchor) => {
|
|
65276
65276
|
append($$anchor, root_17$1());
|
|
@@ -65288,9 +65288,9 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65288
65288
|
if_block(node_4, ($$render) => {
|
|
65289
65289
|
if (get(selectedFurniture).catalogId === "camera") $$render(consequent_8);
|
|
65290
65290
|
});
|
|
65291
|
-
var
|
|
65292
|
-
var
|
|
65293
|
-
each(
|
|
65291
|
+
var div_21 = sibling(node_4, 2);
|
|
65292
|
+
var div_22 = sibling(child(div_21), 2);
|
|
65293
|
+
each(div_22, 20, () => [
|
|
65294
65294
|
"#ffffff",
|
|
65295
65295
|
"#f5f5dc",
|
|
65296
65296
|
"#d2b48c",
|
|
@@ -65314,13 +65314,13 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65314
65314
|
delegated("click", button_14, () => onFurnitureColor(color));
|
|
65315
65315
|
append($$anchor, button_14);
|
|
65316
65316
|
});
|
|
65317
|
-
reset(
|
|
65318
|
-
var
|
|
65319
|
-
var input_15 = sibling(child(
|
|
65317
|
+
reset(div_22);
|
|
65318
|
+
var div_23 = sibling(div_22, 2);
|
|
65319
|
+
var input_15 = sibling(child(div_23), 2);
|
|
65320
65320
|
remove_input_defaults(input_15);
|
|
65321
|
+
reset(div_23);
|
|
65321
65322
|
reset(div_21);
|
|
65322
|
-
|
|
65323
|
-
var label_20 = sibling(div_19, 2);
|
|
65323
|
+
var label_20 = sibling(div_21, 2);
|
|
65324
65324
|
var span_16 = child(label_20);
|
|
65325
65325
|
var text_20 = child(span_16);
|
|
65326
65326
|
reset(span_16);
|
|
@@ -65367,16 +65367,16 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65367
65367
|
var input_19 = sibling(child(label_24), 2);
|
|
65368
65368
|
remove_input_defaults(input_19);
|
|
65369
65369
|
reset(label_24);
|
|
65370
|
-
var
|
|
65371
|
-
var button_15 = child(
|
|
65370
|
+
var div_24 = sibling(label_24, 2);
|
|
65371
|
+
var button_15 = child(div_24);
|
|
65372
65372
|
var button_16 = sibling(button_15, 2);
|
|
65373
|
-
reset(
|
|
65374
|
-
var
|
|
65375
|
-
var button_17 = child(
|
|
65373
|
+
reset(div_24);
|
|
65374
|
+
var div_25 = sibling(div_24, 2);
|
|
65375
|
+
var button_17 = child(div_25);
|
|
65376
65376
|
var button_18 = sibling(button_17, 2);
|
|
65377
|
-
reset(
|
|
65378
|
-
var button_19 = sibling(
|
|
65379
|
-
reset(
|
|
65377
|
+
reset(div_25);
|
|
65378
|
+
var button_19 = sibling(div_25, 2);
|
|
65379
|
+
reset(div_19);
|
|
65380
65380
|
template_effect(($0, $1, $2, $3, $4, $5, $6, $7, $8, $9) => {
|
|
65381
65381
|
var _$$get$material;
|
|
65382
65382
|
set_text(text_15, $0);
|
|
@@ -65466,8 +65466,8 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65466
65466
|
};
|
|
65467
65467
|
var consequent_11 = ($$anchor) => {
|
|
65468
65468
|
var fragment_5 = root_19$1();
|
|
65469
|
-
var
|
|
65470
|
-
var label_25 = child(
|
|
65469
|
+
var div_26 = sibling(first_child(fragment_5), 2);
|
|
65470
|
+
var label_25 = child(div_26);
|
|
65471
65471
|
var select_4 = sibling(child(label_25), 2);
|
|
65472
65472
|
each(select_4, 21, () => roomTypes, index$1, ($$anchor, rt) => {
|
|
65473
65473
|
var option_21 = root_20$1();
|
|
@@ -65506,14 +65506,14 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65506
65506
|
var select_5_value;
|
|
65507
65507
|
init_select(select_5);
|
|
65508
65508
|
reset(label_27);
|
|
65509
|
-
var
|
|
65510
|
-
var p_2 = sibling(child(
|
|
65509
|
+
var div_27 = sibling(label_27, 2);
|
|
65510
|
+
var p_2 = sibling(child(div_27), 2);
|
|
65511
65511
|
var text_24 = child(p_2, true);
|
|
65512
65512
|
reset(p_2);
|
|
65513
|
-
reset(
|
|
65514
|
-
var
|
|
65515
|
-
var
|
|
65516
|
-
each(
|
|
65513
|
+
reset(div_27);
|
|
65514
|
+
var div_28 = sibling(div_27, 2);
|
|
65515
|
+
var div_29 = sibling(child(div_28), 2);
|
|
65516
|
+
each(div_29, 21, () => roomColorPresets, index$1, ($$anchor, preset) => {
|
|
65517
65517
|
var button_20 = root_21$1();
|
|
65518
65518
|
template_effect(() => {
|
|
65519
65519
|
var _$$get$color5;
|
|
@@ -65524,21 +65524,21 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65524
65524
|
delegated("click", button_20, () => onRoomColor(get(preset).color));
|
|
65525
65525
|
append($$anchor, button_20);
|
|
65526
65526
|
});
|
|
65527
|
-
reset(
|
|
65528
|
-
var
|
|
65529
|
-
var input_21 = sibling(child(
|
|
65527
|
+
reset(div_29);
|
|
65528
|
+
var div_30 = sibling(div_29, 2);
|
|
65529
|
+
var input_21 = sibling(child(div_30), 2);
|
|
65530
65530
|
remove_input_defaults(input_21);
|
|
65531
|
+
reset(div_30);
|
|
65531
65532
|
reset(div_28);
|
|
65532
|
-
|
|
65533
|
-
var
|
|
65534
|
-
|
|
65535
|
-
|
|
65536
|
-
var
|
|
65537
|
-
var span_19 = child(div_31);
|
|
65533
|
+
var div_31 = sibling(div_28, 2);
|
|
65534
|
+
var div_32 = sibling(child(div_31), 2);
|
|
65535
|
+
each(div_32, 21, () => textureGroups, index$1, ($$anchor, group) => {
|
|
65536
|
+
var div_33 = root_22$1();
|
|
65537
|
+
var span_19 = child(div_33);
|
|
65538
65538
|
var text_25 = child(span_19, true);
|
|
65539
65539
|
reset(span_19);
|
|
65540
|
-
var
|
|
65541
|
-
each(
|
|
65540
|
+
var div_34 = sibling(span_19, 2);
|
|
65541
|
+
each(div_34, 21, () => get(group).ids, index$1, ($$anchor, matId) => {
|
|
65542
65542
|
const mat = /* @__PURE__ */ user_derived(() => floorMaterials.find((m) => m.id === get(matId)));
|
|
65543
65543
|
var fragment_6 = comment();
|
|
65544
65544
|
var node_11 = first_child(fragment_6);
|
|
@@ -65548,15 +65548,15 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65548
65548
|
return (_floorTexPaths$$$get$ = floorTexPaths[get(mat).id]) !== null && _floorTexPaths$$$get$ !== void 0 ? _floorTexPaths$$$get$ : "";
|
|
65549
65549
|
});
|
|
65550
65550
|
var button_21 = root_24$1();
|
|
65551
|
-
var
|
|
65552
|
-
var
|
|
65553
|
-
var text_26 = child(
|
|
65554
|
-
reset(
|
|
65551
|
+
var div_35 = child(button_21);
|
|
65552
|
+
var div_36 = sibling(div_35, 2);
|
|
65553
|
+
var text_26 = child(div_36, true);
|
|
65554
|
+
reset(div_36);
|
|
65555
65555
|
reset(button_21);
|
|
65556
65556
|
template_effect(() => {
|
|
65557
65557
|
set_class(button_21, 1, `p-1 rounded-lg border-2 hover:border-gray-300 transition-all text-xs ${get(selectedRoom).floorTexture === get(mat).id ? "border-blue-500 ring-2 ring-blue-200 shadow-sm" : "border-gray-200"}`);
|
|
65558
65558
|
set_attribute(button_21, "title", get(mat).name);
|
|
65559
|
-
set_style(
|
|
65559
|
+
set_style(div_35, get(texPath) ? `background-image: url(${get(texPath)}); background-size: cover; background-position: center;` : `background-color: ${get(mat).color}`);
|
|
65560
65560
|
set_text(text_26, get(mat).name);
|
|
65561
65561
|
});
|
|
65562
65562
|
delegated("click", button_21, () => onRoomFloor(get(mat).id));
|
|
@@ -65567,14 +65567,14 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65567
65567
|
});
|
|
65568
65568
|
append($$anchor, fragment_6);
|
|
65569
65569
|
});
|
|
65570
|
-
reset(
|
|
65571
|
-
reset(
|
|
65570
|
+
reset(div_34);
|
|
65571
|
+
reset(div_33);
|
|
65572
65572
|
template_effect(() => set_text(text_25, get(group).label));
|
|
65573
|
-
append($$anchor,
|
|
65573
|
+
append($$anchor, div_33);
|
|
65574
65574
|
});
|
|
65575
|
-
reset(
|
|
65576
|
-
reset(
|
|
65577
|
-
reset(
|
|
65575
|
+
reset(div_32);
|
|
65576
|
+
reset(div_31);
|
|
65577
|
+
reset(div_26);
|
|
65578
65578
|
template_effect(($0) => {
|
|
65579
65579
|
var _$$get$roomType, _$$get$color6;
|
|
65580
65580
|
if (select_4_value !== (select_4_value = get(selectedRoomType))) {
|
|
@@ -65603,8 +65603,8 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65603
65603
|
};
|
|
65604
65604
|
var consequent_12 = ($$anchor) => {
|
|
65605
65605
|
var fragment_7 = root_25();
|
|
65606
|
-
var
|
|
65607
|
-
var label_28 = child(
|
|
65606
|
+
var div_37 = sibling(first_child(fragment_7), 2);
|
|
65607
|
+
var label_28 = child(div_37);
|
|
65608
65608
|
var select_6 = sibling(child(label_28), 2);
|
|
65609
65609
|
var option_26 = child(select_6);
|
|
65610
65610
|
option_26.value = option_26.__value = "straight";
|
|
@@ -65637,16 +65637,16 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65637
65637
|
remove_input_defaults(input_24);
|
|
65638
65638
|
reset(label_31);
|
|
65639
65639
|
var label_32 = sibling(label_31, 2);
|
|
65640
|
-
var
|
|
65641
|
-
var button_22 = child(
|
|
65640
|
+
var div_38 = sibling(child(label_32), 2);
|
|
65641
|
+
var button_22 = child(div_38);
|
|
65642
65642
|
var button_23 = sibling(button_22, 2);
|
|
65643
|
-
reset(
|
|
65643
|
+
reset(div_38);
|
|
65644
65644
|
reset(label_32);
|
|
65645
65645
|
var label_33 = sibling(label_32, 2);
|
|
65646
65646
|
var input_25 = sibling(child(label_33), 2);
|
|
65647
65647
|
remove_input_defaults(input_25);
|
|
65648
65648
|
reset(label_33);
|
|
65649
|
-
reset(
|
|
65649
|
+
reset(div_37);
|
|
65650
65650
|
template_effect(($0, $1, $2, $3) => {
|
|
65651
65651
|
if (select_6_value !== (select_6_value = get(selectedStair).stairType || "straight")) {
|
|
65652
65652
|
var _select_6$__value;
|
|
@@ -65677,12 +65677,12 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65677
65677
|
};
|
|
65678
65678
|
var consequent_14 = ($$anchor) => {
|
|
65679
65679
|
var fragment_8 = root_26();
|
|
65680
|
-
var
|
|
65681
|
-
var label_34 = child(
|
|
65682
|
-
var
|
|
65683
|
-
var button_24 = child(
|
|
65680
|
+
var div_39 = sibling(first_child(fragment_8), 2);
|
|
65681
|
+
var label_34 = child(div_39);
|
|
65682
|
+
var div_40 = sibling(child(label_34), 2);
|
|
65683
|
+
var button_24 = child(div_40);
|
|
65684
65684
|
var button_25 = sibling(button_24, 2);
|
|
65685
|
-
reset(
|
|
65685
|
+
reset(div_40);
|
|
65686
65686
|
reset(label_34);
|
|
65687
65687
|
var label_35 = sibling(label_34, 2);
|
|
65688
65688
|
var span_22 = child(label_35);
|
|
@@ -65698,9 +65698,9 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65698
65698
|
var input_27 = sibling(span_23, 2);
|
|
65699
65699
|
remove_input_defaults(input_27);
|
|
65700
65700
|
reset(label_36);
|
|
65701
|
-
var
|
|
65702
|
-
var
|
|
65703
|
-
each(
|
|
65701
|
+
var div_41 = sibling(label_36, 2);
|
|
65702
|
+
var div_42 = sibling(child(div_41), 2);
|
|
65703
|
+
each(div_42, 21, () => columnColorPresets, index$1, ($$anchor, preset) => {
|
|
65704
65704
|
var button_26 = root_27();
|
|
65705
65705
|
template_effect(() => {
|
|
65706
65706
|
var _$$get$color7;
|
|
@@ -65711,13 +65711,13 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65711
65711
|
delegated("click", button_26, () => updateColumn(get(selectedColumn).id, { color: get(preset).color }));
|
|
65712
65712
|
append($$anchor, button_26);
|
|
65713
65713
|
});
|
|
65714
|
-
reset(
|
|
65715
|
-
var
|
|
65716
|
-
var input_28 = sibling(child(
|
|
65714
|
+
reset(div_42);
|
|
65715
|
+
var div_43 = sibling(div_42, 2);
|
|
65716
|
+
var input_28 = sibling(child(div_43), 2);
|
|
65717
65717
|
remove_input_defaults(input_28);
|
|
65718
|
+
reset(div_43);
|
|
65718
65719
|
reset(div_41);
|
|
65719
|
-
|
|
65720
|
-
var node_12 = sibling(div_39, 2);
|
|
65720
|
+
var node_12 = sibling(div_41, 2);
|
|
65721
65721
|
var consequent_13 = ($$anchor) => {
|
|
65722
65722
|
var label_37 = root_28();
|
|
65723
65723
|
var input_29 = sibling(child(label_37), 2);
|
|
@@ -65730,7 +65730,7 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65730
65730
|
if_block(node_12, ($$render) => {
|
|
65731
65731
|
if (get(selectedColumn).shape === "square") $$render(consequent_13);
|
|
65732
65732
|
});
|
|
65733
|
-
reset(
|
|
65733
|
+
reset(div_39);
|
|
65734
65734
|
template_effect(($0, $1, $2, $3) => {
|
|
65735
65735
|
set_class(button_24, 1, `flex-1 px-2 py-1.5 border rounded text-sm transition-colors ${get(selectedColumn).shape === "round" ? "bg-blue-100 border-blue-400 text-blue-700" : "border-gray-200 hover:bg-gray-50"}`);
|
|
65736
65736
|
set_class(button_25, 1, `flex-1 px-2 py-1.5 border rounded text-sm transition-colors ${get(selectedColumn).shape === "square" ? "bg-blue-100 border-blue-400 text-blue-700" : "border-gray-200 hover:bg-gray-50"}`);
|
|
@@ -65753,8 +65753,8 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65753
65753
|
append($$anchor, fragment_8);
|
|
65754
65754
|
};
|
|
65755
65755
|
var consequent_16 = ($$anchor) => {
|
|
65756
|
-
var
|
|
65757
|
-
var h3_1 = child(
|
|
65756
|
+
var div_44 = root_29();
|
|
65757
|
+
var h3_1 = child(div_44);
|
|
65758
65758
|
var span_24 = child(h3_1);
|
|
65759
65759
|
next();
|
|
65760
65760
|
reset(h3_1);
|
|
@@ -65764,25 +65764,25 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65764
65764
|
reset(label_38);
|
|
65765
65765
|
var node_13 = sibling(label_38, 2);
|
|
65766
65766
|
var consequent_15 = ($$anchor) => {
|
|
65767
|
-
var
|
|
65768
|
-
var span_25 = sibling(child(
|
|
65767
|
+
var div_45 = root_30();
|
|
65768
|
+
var span_25 = sibling(child(div_45));
|
|
65769
65769
|
var text_31 = child(span_25, true);
|
|
65770
65770
|
reset(span_25);
|
|
65771
|
-
reset(
|
|
65771
|
+
reset(div_45);
|
|
65772
65772
|
template_effect(() => set_text(text_31, get(selectedZone).cameraSerial));
|
|
65773
|
-
append($$anchor,
|
|
65773
|
+
append($$anchor, div_45);
|
|
65774
65774
|
};
|
|
65775
65775
|
if_block(node_13, ($$render) => {
|
|
65776
65776
|
if (get(selectedZone).cameraSerial) $$render(consequent_15);
|
|
65777
65777
|
});
|
|
65778
|
-
var
|
|
65779
|
-
var span_26 = sibling(child(
|
|
65778
|
+
var div_46 = sibling(node_13, 2);
|
|
65779
|
+
var span_26 = sibling(child(div_46));
|
|
65780
65780
|
var text_32 = child(span_26, true);
|
|
65781
65781
|
reset(span_26);
|
|
65782
|
-
reset(
|
|
65783
|
-
var label_39 = sibling(
|
|
65784
|
-
var
|
|
65785
|
-
var node_14 = child(
|
|
65782
|
+
reset(div_46);
|
|
65783
|
+
var label_39 = sibling(div_46, 2);
|
|
65784
|
+
var div_47 = sibling(child(label_39), 2);
|
|
65785
|
+
var node_14 = child(div_47);
|
|
65786
65786
|
each(node_14, 17, () => ZONE_COLOR_PALETTE, index$1, ($$anchor, c) => {
|
|
65787
65787
|
var button_27 = root_31();
|
|
65788
65788
|
template_effect(() => {
|
|
@@ -65795,13 +65795,13 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65795
65795
|
});
|
|
65796
65796
|
var input_31 = sibling(node_14, 2);
|
|
65797
65797
|
remove_input_defaults(input_31);
|
|
65798
|
-
reset(
|
|
65798
|
+
reset(div_47);
|
|
65799
65799
|
reset(label_39);
|
|
65800
65800
|
var label_40 = sibling(label_39, 2);
|
|
65801
65801
|
var input_32 = sibling(child(label_40), 2);
|
|
65802
65802
|
remove_input_defaults(input_32);
|
|
65803
65803
|
reset(label_40);
|
|
65804
|
-
reset(
|
|
65804
|
+
reset(div_44);
|
|
65805
65805
|
template_effect(() => {
|
|
65806
65806
|
var _$$get$color8, _$$get$color9, _$$get$fillOpacity;
|
|
65807
65807
|
set_style(span_24, `background:${(_$$get$color8 = get(selectedZone).color) !== null && _$$get$color8 !== void 0 ? _$$get$color8 : ""}22;color:${(_$$get$color9 = get(selectedZone).color) !== null && _$$get$color9 !== void 0 ? _$$get$color9 : ""}`);
|
|
@@ -65813,11 +65813,11 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65813
65813
|
delegated("input", input_30, (e) => updateZone(get(selectedZone).id, { name: e.target.value }));
|
|
65814
65814
|
delegated("input", input_31, (e) => updateZone(get(selectedZone).id, { color: e.target.value }));
|
|
65815
65815
|
delegated("input", input_32, (e) => updateZone(get(selectedZone).id, { fillOpacity: Number(e.target.value) }));
|
|
65816
|
-
append($$anchor,
|
|
65816
|
+
append($$anchor, div_44);
|
|
65817
65817
|
};
|
|
65818
65818
|
var consequent_17 = ($$anchor) => {
|
|
65819
|
-
var
|
|
65820
|
-
var label_41 = sibling(child(
|
|
65819
|
+
var div_48 = root_32();
|
|
65820
|
+
var label_41 = sibling(child(div_48), 2);
|
|
65821
65821
|
var input_33 = sibling(child(label_41), 2);
|
|
65822
65822
|
remove_input_defaults(input_33);
|
|
65823
65823
|
reset(label_41);
|
|
@@ -65826,13 +65826,13 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65826
65826
|
remove_input_defaults(input_34);
|
|
65827
65827
|
reset(label_42);
|
|
65828
65828
|
var label_43 = sibling(label_42, 2);
|
|
65829
|
-
var
|
|
65830
|
-
var input_35 = child(
|
|
65829
|
+
var div_49 = sibling(child(label_43), 2);
|
|
65830
|
+
var input_35 = child(div_49);
|
|
65831
65831
|
remove_input_defaults(input_35);
|
|
65832
65832
|
var span_27 = sibling(input_35, 2);
|
|
65833
65833
|
var text_33 = child(span_27, true);
|
|
65834
65834
|
reset(span_27);
|
|
65835
|
-
reset(
|
|
65835
|
+
reset(div_49);
|
|
65836
65836
|
reset(label_43);
|
|
65837
65837
|
var label_44 = sibling(label_43, 2);
|
|
65838
65838
|
var input_36 = sibling(child(label_44), 2);
|
|
@@ -65846,7 +65846,7 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65846
65846
|
var input_38 = sibling(child(label_46), 2);
|
|
65847
65847
|
remove_input_defaults(input_38);
|
|
65848
65848
|
reset(label_46);
|
|
65849
|
-
reset(
|
|
65849
|
+
reset(div_48);
|
|
65850
65850
|
template_effect(($0, $1) => {
|
|
65851
65851
|
set_value(input_33, get(selectedTextAnnotation).text);
|
|
65852
65852
|
set_value(input_34, get(selectedTextAnnotation).fontSize);
|
|
@@ -65862,7 +65862,7 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65862
65862
|
delegated("input", input_36, (e) => updateTextAnnotation(get(selectedTextAnnotation).id, { rotation: Number(e.target.value) }));
|
|
65863
65863
|
delegated("input", input_37, (e) => updateTextAnnotation(get(selectedTextAnnotation).id, { x: Number(e.target.value) }));
|
|
65864
65864
|
delegated("input", input_38, (e) => updateTextAnnotation(get(selectedTextAnnotation).id, { y: Number(e.target.value) }));
|
|
65865
|
-
append($$anchor,
|
|
65865
|
+
append($$anchor, div_48);
|
|
65866
65866
|
};
|
|
65867
65867
|
if_block(node, ($$render) => {
|
|
65868
65868
|
if (get(selectedWall)) $$render(consequent_1);
|
|
@@ -65877,9 +65877,9 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65877
65877
|
});
|
|
65878
65878
|
var node_15 = sibling(node, 2);
|
|
65879
65879
|
var consequent_18 = ($$anchor) => {
|
|
65880
|
-
var
|
|
65881
|
-
var
|
|
65882
|
-
var label_47 = child(
|
|
65880
|
+
var div_50 = root_33();
|
|
65881
|
+
var div_51 = sibling(child(div_50), 2);
|
|
65882
|
+
var label_47 = child(div_51);
|
|
65883
65883
|
var input_39 = sibling(child(label_47), 2);
|
|
65884
65884
|
remove_input_defaults(input_39);
|
|
65885
65885
|
reset(label_47);
|
|
@@ -65891,15 +65891,15 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65891
65891
|
var input_41 = sibling(child(label_49), 2);
|
|
65892
65892
|
remove_input_defaults(input_41);
|
|
65893
65893
|
reset(label_49);
|
|
65894
|
-
var
|
|
65895
|
-
var button_28 = child(
|
|
65894
|
+
var div_52 = sibling(label_49, 2);
|
|
65895
|
+
var button_28 = child(div_52);
|
|
65896
65896
|
var text_34 = child(button_28, true);
|
|
65897
65897
|
reset(button_28);
|
|
65898
65898
|
var button_29 = sibling(button_28, 2);
|
|
65899
|
+
reset(div_52);
|
|
65900
|
+
var button_30 = sibling(div_52, 2);
|
|
65901
|
+
reset(div_51);
|
|
65899
65902
|
reset(div_50);
|
|
65900
|
-
var button_30 = sibling(div_50, 2);
|
|
65901
|
-
reset(div_49);
|
|
65902
|
-
reset(div_48);
|
|
65903
65903
|
template_effect(() => {
|
|
65904
65904
|
set_value(input_39, get(floor).backgroundImage.opacity);
|
|
65905
65905
|
set_value(input_40, get(floor).backgroundImage.scale);
|
|
@@ -65916,21 +65916,22 @@ function PropertiesPanel($$anchor, $$props) {
|
|
|
65916
65916
|
calibrationMode.set(true);
|
|
65917
65917
|
});
|
|
65918
65918
|
delegated("click", button_30, () => setBackgroundImage(void 0));
|
|
65919
|
-
append($$anchor,
|
|
65919
|
+
append($$anchor, div_50);
|
|
65920
65920
|
};
|
|
65921
65921
|
if_block(node_15, ($$render) => {
|
|
65922
65922
|
var _$$get22;
|
|
65923
65923
|
if (get(hasBgImage) && ((_$$get22 = get(floor)) === null || _$$get22 === void 0 ? void 0 : _$$get22.backgroundImage)) $$render(consequent_18);
|
|
65924
65924
|
});
|
|
65925
|
+
reset(div_4);
|
|
65925
65926
|
reset(div);
|
|
65926
65927
|
bind_this(div, ($$value) => set(panelEl, $$value), () => get(panelEl));
|
|
65927
65928
|
template_effect(() => {
|
|
65928
65929
|
var _$$get23;
|
|
65929
|
-
classes = set_class(div, 1, "shrink-0 bg-white border-l border-gray-200 flex flex-col
|
|
65930
|
+
classes = set_class(div, 1, "shrink-0 bg-white border-l border-gray-200 flex flex-col absolute right-0 z-40 shadow-lg overflow-visible", null, classes, { hidden: !get(hasSelection) });
|
|
65930
65931
|
set_style(div, `top: 0; bottom: 0; width: ${(_$$get23 = get(panelWidth)) !== null && _$$get23 !== void 0 ? _$$get23 : ""}px; ${get(resizing) ? "will-change: width;" : ""}`);
|
|
65931
65932
|
set_attribute(div_1, "aria-valuenow", get(panelWidth));
|
|
65932
|
-
|
|
65933
|
-
set_class(
|
|
65933
|
+
set_class(div_2, 1, `h-full w-0.5 rounded-full transition-colors ${get(resizing) ? "bg-blue-500" : "bg-transparent group-hover:bg-blue-400"}`);
|
|
65934
|
+
set_class(div_3, 1, `absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-1 h-8 rounded-full transition-opacity ${get(resizing) ? "bg-blue-500 opacity-100" : "bg-gray-300 opacity-0 group-hover:opacity-100"}`);
|
|
65934
65935
|
});
|
|
65935
65936
|
delegated("keydown", div, stopShortcutBubble);
|
|
65936
65937
|
event("keydown", div, stopShortcutBubble, true);
|
|
@@ -67239,18 +67240,18 @@ function FloorPlanCanvas($$anchor, $$props) {
|
|
|
67239
67240
|
for (const fi of get(currentFloor).furniture) {
|
|
67240
67241
|
var _fi$props2, _fi$props3;
|
|
67241
67242
|
if (fi.catalogId !== "camera" || !fi.serial) continue;
|
|
67243
|
+
if (!(get(selectedFovSerial) === fi.serial || get(currentSelectedId) === fi.id)) continue;
|
|
67242
67244
|
const mapStr = (_fi$props2 = fi.props) === null || _fi$props2 === void 0 ? void 0 : _fi$props2.mapCoordinates;
|
|
67243
67245
|
if (!mapStr) continue;
|
|
67244
67246
|
const pts = mapCoordinatesToWorldPoints(mapStr, bounds);
|
|
67245
67247
|
if (pts.length < 2) continue;
|
|
67246
|
-
const isActive = get(selectedFovSerial) === fi.serial || (active === null || active === void 0 ? void 0 : active.id) === fi.id;
|
|
67247
67248
|
const color = ((_fi$props3 = fi.props) === null || _fi$props3 === void 0 ? void 0 : _fi$props3.zoneColor) || fi.color || "#22c55e";
|
|
67248
67249
|
ctx.save();
|
|
67249
67250
|
ctx.strokeStyle = color;
|
|
67250
67251
|
ctx.fillStyle = color;
|
|
67251
|
-
ctx.globalAlpha =
|
|
67252
|
-
ctx.lineWidth =
|
|
67253
|
-
ctx.setLineDash(
|
|
67252
|
+
ctx.globalAlpha = .22;
|
|
67253
|
+
ctx.lineWidth = 2.5;
|
|
67254
|
+
ctx.setLineDash([]);
|
|
67254
67255
|
ctx.beginPath();
|
|
67255
67256
|
const first = worldToScreen(pts[0].x, pts[0].y);
|
|
67256
67257
|
ctx.moveTo(first.x, first.y);
|
|
@@ -67262,10 +67263,9 @@ function FloorPlanCanvas($$anchor, $$props) {
|
|
|
67262
67263
|
ctx.fill();
|
|
67263
67264
|
ctx.globalAlpha = 1;
|
|
67264
67265
|
ctx.stroke();
|
|
67265
|
-
ctx.setLineDash([]);
|
|
67266
67266
|
for (let i = 0; i < pts.length; i++) {
|
|
67267
67267
|
const s = worldToScreen(pts[i].x, pts[i].y);
|
|
67268
|
-
drawVertexIndexBadge(ctx, s.x, s.y, i, color,
|
|
67268
|
+
drawVertexIndexBadge(ctx, s.x, s.y, i, color, 9);
|
|
67269
67269
|
}
|
|
67270
67270
|
ctx.restore();
|
|
67271
67271
|
}
|
|
@@ -69089,9 +69089,26 @@ function FloorPlanCanvas($$anchor, $$props) {
|
|
|
69089
69089
|
return;
|
|
69090
69090
|
}
|
|
69091
69091
|
if (tool === "select") {
|
|
69092
|
-
const
|
|
69093
|
-
if (!
|
|
69092
|
+
const objectAbove = get(showFurniture) && (!!findFurnitureAt$1(wp) || !!findHandleAt$1(wp)) || get(layerVis).columns && !!findColumnAt$1(wp) || get(showStairs) && !!findStairAt$1(wp);
|
|
69093
|
+
if (!objectAbove) {
|
|
69094
69094
|
var _$$get9;
|
|
69095
|
+
const fovHit = findFovCameraAt(wp);
|
|
69096
|
+
if (fovHit === null || fovHit === void 0 ? void 0 : fovHit.serial) {
|
|
69097
|
+
var _fovHit$props;
|
|
69098
|
+
const bounds = getInteriorFloorBounds(get(currentFloor));
|
|
69099
|
+
const pts = bounds ? mapCoordinatesToWorldPoints((_fovHit$props = fovHit.props) === null || _fovHit$props === void 0 ? void 0 : _fovHit$props.mapCoordinates, bounds) : [];
|
|
69100
|
+
const vIdx = pts.length ? findFovVertexAt(wp, pts) : -1;
|
|
69101
|
+
set(selectedFovSerial, fovHit.serial, true);
|
|
69102
|
+
set(fovSelectionOnly, true);
|
|
69103
|
+
set(draggingFovVertex, vIdx >= 0 ? vIdx : null, true);
|
|
69104
|
+
set(selectedZoneId, null);
|
|
69105
|
+
selectedElementId.set(fovHit.id);
|
|
69106
|
+
set(selectedTextAnnotationId, null);
|
|
69107
|
+
set(selectedAnnotationId, null);
|
|
69108
|
+
set(selectedMeasurementId, null);
|
|
69109
|
+
if (vIdx >= 0) beginUndoGroup();
|
|
69110
|
+
return;
|
|
69111
|
+
}
|
|
69095
69112
|
if (((_$$get9 = get(currentFloor)) === null || _$$get9 === void 0 || (_$$get9 = _$$get9.zones) === null || _$$get9 === void 0 ? void 0 : _$$get9.length) && get(layerVis).zones) {
|
|
69096
69113
|
const zHit = findZoneAt(wp, get(currentFloor).zones, get(zoom));
|
|
69097
69114
|
if (zHit) {
|
|
@@ -69118,26 +69135,9 @@ function FloorPlanCanvas($$anchor, $$props) {
|
|
|
69118
69135
|
return;
|
|
69119
69136
|
}
|
|
69120
69137
|
}
|
|
69121
|
-
const fovHit = findFovCameraAt(wp);
|
|
69122
|
-
if (fovHit === null || fovHit === void 0 ? void 0 : fovHit.serial) {
|
|
69123
|
-
var _fovHit$props;
|
|
69124
|
-
const bounds = getInteriorFloorBounds(get(currentFloor));
|
|
69125
|
-
const pts = bounds ? mapCoordinatesToWorldPoints((_fovHit$props = fovHit.props) === null || _fovHit$props === void 0 ? void 0 : _fovHit$props.mapCoordinates, bounds) : [];
|
|
69126
|
-
const vIdx = pts.length ? findFovVertexAt(wp, pts) : -1;
|
|
69127
|
-
set(selectedFovSerial, fovHit.serial, true);
|
|
69128
|
-
set(fovSelectionOnly, true);
|
|
69129
|
-
set(draggingFovVertex, vIdx >= 0 ? vIdx : null, true);
|
|
69130
|
-
set(selectedZoneId, null);
|
|
69131
|
-
selectedElementId.set(fovHit.id);
|
|
69132
|
-
set(selectedTextAnnotationId, null);
|
|
69133
|
-
set(selectedAnnotationId, null);
|
|
69134
|
-
set(selectedMeasurementId, null);
|
|
69135
|
-
if (vIdx >= 0) beginUndoGroup();
|
|
69136
|
-
return;
|
|
69137
|
-
}
|
|
69138
69138
|
}
|
|
69139
69139
|
set(selectedZoneId, null);
|
|
69140
|
-
if (!
|
|
69140
|
+
if (!objectAbove) {
|
|
69141
69141
|
set(selectedFovSerial, null);
|
|
69142
69142
|
set(fovSelectionOnly, false);
|
|
69143
69143
|
}
|