@realsee/dnalogel 2.2.5 → 2.2.6
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/ModelEntryDoorGuidePlugin/Plugin.d.ts +1 -0
- package/dist/index.cjs.js +17 -17
- package/dist/index.js +849 -887
- package/dist/index.umd.js +17 -17
- package/dist/shared-utils/three/{transfromToMeshBasicMaterial.d.ts → transformToMeshBasicMaterial.d.ts} +0 -0
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +39 -39
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +12 -12
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/LinkType.html +7 -7
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/ContentTypeMap.html +12 -12
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +8 -8
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/PointJson.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeyArray.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -6
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/VERSION.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +2 -2
- package/libs/ItemLabelPlugin/ItemLabelItem.js +11 -11
- package/libs/ModelChassisCompassPlugin/Plugin.js +1 -1
- package/libs/ModelEntryDoorGuidePlugin/Plugin.d.ts +1 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +42 -39
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +2 -2
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +12 -12
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +13 -13
- package/libs/PanoRulerProPlugin/RulerItem.js +59 -69
- package/libs/PanoSpatialTagPlugin/Components/origins.js +39 -39
- package/libs/PanoTagPlugin/Components/Common/Audio.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Media.js +53 -53
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +2 -2
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +8 -8
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +13 -13
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +5 -5
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +12 -12
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +48 -78
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +25 -25
- package/libs/PanoTagPlugin/Components/Tag/index.js +35 -35
- package/libs/PanoTagPlugin/Components/TagContainer.js +2 -2
- package/libs/PanoTagPlugin/Components/TagWrapper.js +2 -2
- package/libs/floorplan/Components/Camera.js +23 -23
- package/libs/floorplan/Components/Compass.js +2 -2
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +31 -31
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +51 -51
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +2 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +2 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +26 -26
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +16 -16
- package/libs/index.js +1 -1
- package/libs/shared-utils/three/{transfromToMeshBasicMaterial.d.ts → transformToMeshBasicMaterial.d.ts} +0 -0
- package/libs/shared-utils/three/{transfromToMeshBasicMaterial.js → transformToMeshBasicMaterial.js} +0 -0
- package/libs/vendor/svelte/internal/index.js +151 -152
- package/package.json +1 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as T, init as Y, safe_not_equal as J, append_styles as U, element as G, attr as k, toggle_class as
|
|
1
|
+
import { SvelteComponent as T, init as Y, safe_not_equal as J, append_styles as U, element as G, attr as k, toggle_class as u, set_style as M, insert as W, append as y, listen as H, stop_propagation as P, transition_out as B, check_outros as S, transition_in as p, detach as F, setContext as I, group_outros as O, create_component as w, mount_component as C, destroy_component as D } from "../../../vendor/svelte/internal/index.js";
|
|
2
2
|
import { ContentType as h } from "../../typings/tag.js";
|
|
3
3
|
import x from "./TextTag.js";
|
|
4
4
|
import L from "./ImageTextTag.js";
|
|
@@ -59,10 +59,10 @@ function q(i) {
|
|
|
59
59
|
t & 2 && (o.tag = s(e[1])), A.$set(o);
|
|
60
60
|
},
|
|
61
61
|
i(e) {
|
|
62
|
-
n || (
|
|
62
|
+
n || (p(A.$$.fragment, e), n = !0);
|
|
63
63
|
},
|
|
64
64
|
o(e) {
|
|
65
|
-
|
|
65
|
+
B(A.$$.fragment, e), n = !1;
|
|
66
66
|
},
|
|
67
67
|
d(e) {
|
|
68
68
|
D(A, e);
|
|
@@ -85,10 +85,10 @@ function X(i) {
|
|
|
85
85
|
t & 2 && (o.tag = s(e[1])), A.$set(o);
|
|
86
86
|
},
|
|
87
87
|
i(e) {
|
|
88
|
-
n || (
|
|
88
|
+
n || (p(A.$$.fragment, e), n = !0);
|
|
89
89
|
},
|
|
90
90
|
o(e) {
|
|
91
|
-
|
|
91
|
+
B(A.$$.fragment, e), n = !1;
|
|
92
92
|
},
|
|
93
93
|
d(e) {
|
|
94
94
|
D(A, e);
|
|
@@ -111,10 +111,10 @@ function j(i) {
|
|
|
111
111
|
t & 2 && (o.tag = s(e[1])), A.$set(o);
|
|
112
112
|
},
|
|
113
113
|
i(e) {
|
|
114
|
-
n || (
|
|
114
|
+
n || (p(A.$$.fragment, e), n = !0);
|
|
115
115
|
},
|
|
116
116
|
o(e) {
|
|
117
|
-
|
|
117
|
+
B(A.$$.fragment, e), n = !1;
|
|
118
118
|
},
|
|
119
119
|
d(e) {
|
|
120
120
|
D(A, e);
|
|
@@ -137,10 +137,10 @@ function $(i) {
|
|
|
137
137
|
t & 2 && (o.tag = s(e[1])), A.$set(o);
|
|
138
138
|
},
|
|
139
139
|
i(e) {
|
|
140
|
-
n || (
|
|
140
|
+
n || (p(A.$$.fragment, e), n = !0);
|
|
141
141
|
},
|
|
142
142
|
o(e) {
|
|
143
|
-
|
|
143
|
+
B(A.$$.fragment, e), n = !1;
|
|
144
144
|
},
|
|
145
145
|
d(e) {
|
|
146
146
|
D(A, e);
|
|
@@ -163,10 +163,10 @@ function AA(i) {
|
|
|
163
163
|
t & 2 && (o.tag = s(e[1])), A.$set(o);
|
|
164
164
|
},
|
|
165
165
|
i(e) {
|
|
166
|
-
n || (
|
|
166
|
+
n || (p(A.$$.fragment, e), n = !0);
|
|
167
167
|
},
|
|
168
168
|
o(e) {
|
|
169
|
-
|
|
169
|
+
B(A.$$.fragment, e), n = !1;
|
|
170
170
|
},
|
|
171
171
|
d(e) {
|
|
172
172
|
D(A, e);
|
|
@@ -189,10 +189,10 @@ function eA(i) {
|
|
|
189
189
|
t & 2 && (o.tag = s(e[1])), A.$set(o);
|
|
190
190
|
},
|
|
191
191
|
i(e) {
|
|
192
|
-
n || (
|
|
192
|
+
n || (p(A.$$.fragment, e), n = !0);
|
|
193
193
|
},
|
|
194
194
|
o(e) {
|
|
195
|
-
|
|
195
|
+
B(A.$$.fragment, e), n = !1;
|
|
196
196
|
},
|
|
197
197
|
d(e) {
|
|
198
198
|
D(A, e);
|
|
@@ -215,10 +215,10 @@ function tA(i) {
|
|
|
215
215
|
t & 2 && (o.tag = s(e[1])), A.$set(o);
|
|
216
216
|
},
|
|
217
217
|
i(e) {
|
|
218
|
-
n || (
|
|
218
|
+
n || (p(A.$$.fragment, e), n = !0);
|
|
219
219
|
},
|
|
220
220
|
o(e) {
|
|
221
|
-
|
|
221
|
+
B(A.$$.fragment, e), n = !1;
|
|
222
222
|
},
|
|
223
223
|
d(e) {
|
|
224
224
|
D(A, e);
|
|
@@ -226,7 +226,7 @@ function tA(i) {
|
|
|
226
226
|
};
|
|
227
227
|
}
|
|
228
228
|
function nA(i) {
|
|
229
|
-
let A, n, e, t, o,
|
|
229
|
+
let A, n, e, t, o, d, f, g, c;
|
|
230
230
|
const E = [
|
|
231
231
|
tA,
|
|
232
232
|
eA,
|
|
@@ -235,56 +235,56 @@ function nA(i) {
|
|
|
235
235
|
j,
|
|
236
236
|
X,
|
|
237
237
|
q
|
|
238
|
-
],
|
|
238
|
+
], m = [];
|
|
239
239
|
function b(r, l) {
|
|
240
240
|
return r[1].element ? 0 : r[1].contentType === h.Text ? 1 : r[1].contentType === h.ImageText ? 2 : r[1].contentType === h.Audio ? 3 : r[1].contentType === h.Marketing ? 4 : r[1].contentType === h.Link ? 5 : r[1].contentType === h.MediaPlane ? 6 : -1;
|
|
241
241
|
}
|
|
242
|
-
return ~(t = b(i)) && (o =
|
|
242
|
+
return ~(t = b(i)) && (o = m[t] = E[t](i)), {
|
|
243
243
|
c() {
|
|
244
244
|
var r, l, Q;
|
|
245
|
-
A = G("div"), n = G("div"), e = G("div"), o && o.c(), k(e, "class", "content svelte-95x526"),
|
|
245
|
+
A = G("div"), n = G("div"), e = G("div"), o && o.c(), k(e, "class", "content svelte-95x526"), u(e, "unfolded", (r = i[1].state) == null ? void 0 : r.unfolded), k(n, "class", "content__wrapper svelte-95x526"), k(A, "class", "content__container svelte-95x526"), k(A, "data-id", d = i[1].id), u(A, "disable", i[1].enabled === !1 || ((l = i[1].temporaryState) == null ? void 0 : l.visible) === !1), u(A, "hide", !i[3].visible || !i[3].enabled || !i[4].visible || !((Q = i[1].state) != null && Q.visible)), u(A, "withAnimation", i[0]), u(A, "unClickable", i[1].clickable === !1), M(A, "width", i[1].pointType === "PointTag" ? 0 : "100%"), M(A, "height", i[1].pointType === "PointTag" ? 0 : "100%");
|
|
246
246
|
},
|
|
247
247
|
m(r, l) {
|
|
248
|
-
W(r, A, l), y(A, n), y(n, e), ~t &&
|
|
248
|
+
W(r, A, l), y(A, n), y(n, e), ~t && m[t].m(e, null), f = !0, g || (c = H(A, "click", P(i[11])), g = !0);
|
|
249
249
|
},
|
|
250
250
|
p(r, [l]) {
|
|
251
251
|
var _, a, v;
|
|
252
252
|
let Q = t;
|
|
253
|
-
t = b(r), t === Q ? ~t &&
|
|
254
|
-
|
|
255
|
-
}), S()), ~t ? (o =
|
|
253
|
+
t = b(r), t === Q ? ~t && m[t].p(r, l) : (o && (O(), B(m[Q], 1, 1, () => {
|
|
254
|
+
m[Q] = null;
|
|
255
|
+
}), S()), ~t ? (o = m[t], o ? o.p(r, l) : (o = m[t] = E[t](r), o.c()), p(o, 1), o.m(e, null)) : o = null), (!f || l & 2) && u(e, "unfolded", (_ = r[1].state) == null ? void 0 : _.unfolded), (!f || l & 2 && d !== (d = r[1].id)) && k(A, "data-id", d), (!f || l & 2) && u(A, "disable", r[1].enabled === !1 || ((a = r[1].temporaryState) == null ? void 0 : a.visible) === !1), (!f || l & 26) && u(A, "hide", !r[3].visible || !r[3].enabled || !r[4].visible || !((v = r[1].state) != null && v.visible)), (!f || l & 1) && u(A, "withAnimation", r[0]), (!f || l & 2) && u(A, "unClickable", r[1].clickable === !1), l & 2 && M(A, "width", r[1].pointType === "PointTag" ? 0 : "100%"), l & 2 && M(A, "height", r[1].pointType === "PointTag" ? 0 : "100%");
|
|
256
256
|
},
|
|
257
257
|
i(r) {
|
|
258
|
-
|
|
258
|
+
f || (p(o), f = !0);
|
|
259
259
|
},
|
|
260
260
|
o(r) {
|
|
261
|
-
|
|
261
|
+
B(o), f = !1;
|
|
262
262
|
},
|
|
263
263
|
d(r) {
|
|
264
|
-
r && F(A), ~t &&
|
|
264
|
+
r && F(A), ~t && m[t].d(), g = !1, c();
|
|
265
265
|
}
|
|
266
266
|
};
|
|
267
267
|
}
|
|
268
268
|
function iA(i, A, n) {
|
|
269
|
-
let e, t, o,
|
|
270
|
-
I("hooks",
|
|
269
|
+
let e, t, o, d, { withAnimation: f = !1 } = A, { tag: g } = A, { hooks: c } = A, { state: E } = A, { mediaStore: m } = A, { temporaryState: b } = A;
|
|
270
|
+
I("hooks", c), I("mediaStore", m);
|
|
271
271
|
let r, l;
|
|
272
272
|
function Q(a) {
|
|
273
|
-
a ?
|
|
273
|
+
a ? c.emit("exposure", { id: d, type: "start" }) : c.emit("exposure", { id: d, type: "end" });
|
|
274
274
|
}
|
|
275
|
-
const _ = (a) =>
|
|
275
|
+
const _ = (a) => c.emit("click", { event: a, target: "TagContent", tag: g });
|
|
276
276
|
return i.$$set = (a) => {
|
|
277
|
-
"withAnimation" in a && n(0,
|
|
277
|
+
"withAnimation" in a && n(0, f = a.withAnimation), "tag" in a && n(1, g = a.tag), "hooks" in a && n(2, c = a.hooks), "state" in a && n(3, E = a.state), "mediaStore" in a && n(5, m = a.mediaStore), "temporaryState" in a && n(4, b = a.temporaryState);
|
|
278
278
|
}, i.$$.update = () => {
|
|
279
279
|
var a, v;
|
|
280
|
-
i.$$.dirty & 2 && n(9, e = (a = g.state) == null ? void 0 : a.unfolded), i.$$.dirty & 2 && n(8, t = (v = g.state) == null ? void 0 : v.visible), i.$$.dirty & 280 && n(10, o = E.visible && b.visible && t), i.$$.dirty & 2 && (
|
|
280
|
+
i.$$.dirty & 2 && n(9, e = (a = g.state) == null ? void 0 : a.unfolded), i.$$.dirty & 2 && n(8, t = (v = g.state) == null ? void 0 : v.visible), i.$$.dirty & 280 && n(10, o = E.visible && b.visible && t), i.$$.dirty & 2 && (d = g.id), i.$$.dirty & 1024 && Q(o), i.$$.dirty & 962 && g.hooks && (e !== void 0 && e !== l && (n(7, l = e), e ? g.hooks.emit("unfolded") : g.hooks.emit("folded")), t !== void 0 && t !== r && (n(6, r = t), t ? g.hooks.emit("show") : g.hooks.emit("hide")));
|
|
281
281
|
}, [
|
|
282
|
-
|
|
282
|
+
f,
|
|
283
283
|
g,
|
|
284
|
-
|
|
284
|
+
c,
|
|
285
285
|
E,
|
|
286
286
|
b,
|
|
287
|
-
|
|
287
|
+
m,
|
|
288
288
|
r,
|
|
289
289
|
l,
|
|
290
290
|
t,
|
|
@@ -71,7 +71,7 @@ function v(s) {
|
|
|
71
71
|
a = !0;
|
|
72
72
|
},
|
|
73
73
|
p(r, t) {
|
|
74
|
-
t & 63 && (l = r[1], T(), i = N(i, t, m, 1, r, l, o, e, W, y, null, k), S()), t & 40 && p(e, "hide", !r[3].visible || !r[5].visible), t & 1 && p(e, "withAnimation", r[0]);
|
|
74
|
+
t & 63 && (l = r[1], T(), i = N(i, t, m, 1, r, l, o, e, W, y, null, k), S()), (!a || t & 40) && p(e, "hide", !r[3].visible || !r[5].visible), (!a || t & 1) && p(e, "withAnimation", r[0]);
|
|
75
75
|
},
|
|
76
76
|
i(r) {
|
|
77
77
|
if (!a) {
|
|
@@ -130,7 +130,7 @@ function y(s, e) {
|
|
|
130
130
|
withAnimation: e[0]
|
|
131
131
|
}
|
|
132
132
|
]) : {};
|
|
133
|
-
o.$set(c), n & 2 && p(i, "hide", !((_ = e[6].pointTagStyle) != null && _.leftPercent) || !((d = e[6].pointTagStyle) != null && d.topPercent) || e[6].enabled === !1 || !e[6].state || ((b = e[6].temporaryState) == null ? void 0 : b.visible) === !1);
|
|
133
|
+
o.$set(c), (!l || n & 2) && p(i, "hide", !((_ = e[6].pointTagStyle) != null && _.leftPercent) || !((d = e[6].pointTagStyle) != null && d.topPercent) || e[6].enabled === !1 || !e[6].state || ((b = e[6].temporaryState) == null ? void 0 : b.visible) === !1);
|
|
134
134
|
},
|
|
135
135
|
i(t) {
|
|
136
136
|
l || (f(o.$$.fragment, t), l = !0);
|
|
@@ -107,7 +107,7 @@ function $(e) {
|
|
|
107
107
|
let t, n, r, m, i = e[1].dimensionType === q.Two && I(e), o = e[1].pointType === D.PointTag && ((s = (p = e[1].style) == null ? void 0 : p.point) == null ? void 0 : s.style) !== "noPoint" && L(e);
|
|
108
108
|
return {
|
|
109
109
|
c() {
|
|
110
|
-
t = W("div"), i && i.c(), n = Q(), o && o.c(), T(t, "class", "wrapper svelte-1vzhbu2"), T(t, "data-id", r = e[1].id), _(t, "hide", e[10]), _(t, "unfolded", e[6]), d(t, "left", e[9]
|
|
110
|
+
t = W("div"), i && i.c(), n = Q(), o && o.c(), T(t, "class", "wrapper svelte-1vzhbu2"), T(t, "data-id", r = e[1].id), _(t, "hide", e[10]), _(t, "unfolded", e[6]), d(t, "left", e[9]), d(t, "top", e[8]), d(t, "z-index", e[7]);
|
|
111
111
|
},
|
|
112
112
|
m(a, l) {
|
|
113
113
|
j(a, t, l), i && i.m(t, null), R(t, n), o && o.m(t, null), m = !0;
|
|
@@ -118,7 +118,7 @@ function $(e) {
|
|
|
118
118
|
i = null;
|
|
119
119
|
}), z()), a[1].pointType === D.PointTag && ((c = (g = a[1].style) == null ? void 0 : g.point) == null ? void 0 : c.style) !== "noPoint" ? o ? (o.p(a, l), l & 2 && u(o, 1)) : (o = L(a), o.c(), u(o, 1), o.m(t, null)) : o && (A(), h(o, 1, 1, () => {
|
|
120
120
|
o = null;
|
|
121
|
-
}), z()), (!m || l & 2 && r !== (r = a[1].id)) && T(t, "data-id", r), l & 1024 && _(t, "hide", a[10]), l & 64 && _(t, "unfolded", a[6]), l & 512 && d(t, "left", a[9]
|
|
121
|
+
}), z()), (!m || l & 2 && r !== (r = a[1].id)) && T(t, "data-id", r), (!m || l & 1024) && _(t, "hide", a[10]), (!m || l & 64) && _(t, "unfolded", a[6]), l & 512 && d(t, "left", a[9]), l & 256 && d(t, "top", a[8]), l & 128 && d(t, "z-index", a[7]);
|
|
122
122
|
},
|
|
123
123
|
i(a) {
|
|
124
124
|
m || (u(i), u(o), m = !0);
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { SvelteComponent as L, init as k, safe_not_equal as z, append_styles as P, element as
|
|
1
|
+
import { SvelteComponent as L, init as k, safe_not_equal as z, append_styles as P, element as c, attr as d, set_style as a, insert as U, append as A, noop as f, detach as C } from "../../vendor/svelte/internal/index.js";
|
|
2
2
|
import { CAMERA_IMAGE as g } from "../Assets/camera.js";
|
|
3
3
|
import { rad2Deg as R } from "../../shared-utils/math/rad2Deg.js";
|
|
4
|
-
function S(
|
|
5
|
-
P(
|
|
4
|
+
function S(t) {
|
|
5
|
+
P(t, "svelte-17cl35n", ".floorplan__camera-position.svelte-17cl35n{position:absolute;width:0;height:0}.floorplan__camera-rotate.svelte-17cl35n{position:absolute;background-repeat:no-repeat;background-size:100%}");
|
|
6
6
|
}
|
|
7
|
-
function w(
|
|
8
|
-
let
|
|
7
|
+
function w(t) {
|
|
8
|
+
let o, e;
|
|
9
9
|
return {
|
|
10
10
|
c() {
|
|
11
|
-
|
|
11
|
+
o = c("div"), e = c("div"), d(e, "class", "floorplan__camera-rotate svelte-17cl35n"), a(e, "background-image", `url(${t[0] || g})`), a(e, "width", t[4]), a(e, "height", t[4]), a(e, "left", "-" + t[4]), a(e, "top", "-" + t[4]), a(e, "transform", `rotate(${t[3]}deg)`), a(e, "transform-origin", `${t[4]} ${t[4]}`), d(o, "class", "floorplan__camera-position svelte-17cl35n"), a(o, "left", t[1]), a(o, "top", t[2]);
|
|
12
12
|
},
|
|
13
|
-
m(n,
|
|
14
|
-
U(n,
|
|
13
|
+
m(n, l) {
|
|
14
|
+
U(n, o, l), A(o, e);
|
|
15
15
|
},
|
|
16
|
-
p(n, [
|
|
17
|
-
|
|
16
|
+
p(n, [l]) {
|
|
17
|
+
l & 1 && a(e, "background-image", `url(${n[0] || g})`);
|
|
18
18
|
},
|
|
19
|
-
i:
|
|
20
|
-
o:
|
|
19
|
+
i: f,
|
|
20
|
+
o: f,
|
|
21
21
|
d(n) {
|
|
22
|
-
n && C(
|
|
22
|
+
n && C(o);
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
function E(
|
|
27
|
-
let { panoIndex: n } =
|
|
28
|
-
const { observers: u } =
|
|
29
|
-
return
|
|
30
|
-
"panoIndex" in
|
|
26
|
+
function E(t, o, e) {
|
|
27
|
+
let { panoIndex: n } = o, { floorplanData: l } = o, { lastPanoramaLongitude: r } = o, { cameraImageUrl: s } = o;
|
|
28
|
+
const { observers: u } = l, m = u[n], p = m.positionInImage.x, _ = m.positionInImage.y, I = p * 100 + "%", b = _ * 100 + "%", h = -R(r) + 45, v = document.body.clientWidth, y = document.body.clientHeight, D = `${(v < 500 || y < 500 ? 17 : 37) / 16}rem`;
|
|
29
|
+
return t.$$set = (i) => {
|
|
30
|
+
"panoIndex" in i && e(5, n = i.panoIndex), "floorplanData" in i && e(6, l = i.floorplanData), "lastPanoramaLongitude" in i && e(7, r = i.lastPanoramaLongitude), "cameraImageUrl" in i && e(0, s = i.cameraImageUrl);
|
|
31
31
|
}, [
|
|
32
|
-
|
|
32
|
+
s,
|
|
33
33
|
I,
|
|
34
34
|
b,
|
|
35
35
|
h,
|
|
36
36
|
D,
|
|
37
37
|
n,
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
l,
|
|
39
|
+
r
|
|
40
40
|
];
|
|
41
41
|
}
|
|
42
42
|
class G extends L {
|
|
43
|
-
constructor(
|
|
43
|
+
constructor(o) {
|
|
44
44
|
super(), k(
|
|
45
45
|
this,
|
|
46
|
-
|
|
46
|
+
o,
|
|
47
47
|
E,
|
|
48
48
|
w,
|
|
49
49
|
z,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as k, init as b, safe_not_equal as v, append_styles as D, empty as y, insert as d, noop as u, detach as g, element as
|
|
1
|
+
import { SvelteComponent as k, init as b, safe_not_equal as v, append_styles as D, empty as y, insert as d, noop as u, detach as g, element as c, space as w, text as S, attr as f, set_style as _, append as p, set_data as C } from "../../vendor/svelte/internal/index.js";
|
|
2
2
|
import { COMPASS_IMAGE as x } from "../Assets/compass.js";
|
|
3
3
|
function M(a) {
|
|
4
4
|
D(a, "svelte-rpkaro", ".floorplan-plugin__compass.svelte-rpkaro{position:absolute;left:50%;top:-2.875rem;width:14.4375rem;height:2.5625rem;will-change:opacity;transform-origin:center 11.5rem}.floorplan-plugin__compass-image.svelte-rpkaro{width:100%;height:100%;position:absolute;left:0;top:0;opacity:0.1;background-repeat:no-repeat;background-size:100% 100%}.floorplan-plugin__compass-text.svelte-rpkaro{position:absolute;left:50%;top:0.9375rem;transform:translateX(-50%);opacity:0.2;font-weight:bold;font-size:0.625rem;color:#fff}");
|
|
@@ -7,7 +7,7 @@ function z(a) {
|
|
|
7
7
|
let t, e, o, n, r;
|
|
8
8
|
return {
|
|
9
9
|
c() {
|
|
10
|
-
t =
|
|
10
|
+
t = c("div"), e = c("div"), o = w(), n = c("span"), r = S(a[0]), f(e, "class", "floorplan-plugin__compass-image svelte-rpkaro"), _(e, "background-image", `url(${x})`), f(n, "class", "floorplan-plugin__compass-text svelte-rpkaro"), f(t, "class", "floorplan-plugin__compass svelte-rpkaro"), _(t, "transform", a[2]);
|
|
11
11
|
},
|
|
12
12
|
m(s, l) {
|
|
13
13
|
d(s, t, l), p(t, e), p(t, o), p(t, n), p(n, r);
|
|
@@ -19,41 +19,41 @@ function se(i) {
|
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
let e, n = i[0].name + "", l, t, o,
|
|
22
|
+
function ce(i) {
|
|
23
|
+
let e, n = i[0].name + "", l, t, o, a;
|
|
24
24
|
return {
|
|
25
25
|
c() {
|
|
26
|
-
e = k("span"), l = V(n), t = ie(), o = k("span"),
|
|
26
|
+
e = k("span"), l = V(n), t = ie(), o = k("span"), a = V(i[5]), C(e, "class", "floorplan-plugin__room-name"), C(o, "class", "floorplan-plugin__room-size svelte-12pzct5");
|
|
27
27
|
},
|
|
28
|
-
m(
|
|
29
|
-
p(
|
|
28
|
+
m(f, c) {
|
|
29
|
+
p(f, e, c), A(e, l), p(f, t, c), p(f, o, c), A(o, a);
|
|
30
30
|
},
|
|
31
|
-
p(
|
|
32
|
-
|
|
31
|
+
p(f, c) {
|
|
32
|
+
c & 1 && n !== (n = f[0].name + "") && j(l, n), c & 32 && j(a, f[5]);
|
|
33
33
|
},
|
|
34
|
-
d(
|
|
35
|
-
|
|
34
|
+
d(f) {
|
|
35
|
+
f && g(e), f && g(t), f && g(o);
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function fe(i) {
|
|
40
40
|
let e;
|
|
41
|
-
function n(o,
|
|
41
|
+
function n(o, a) {
|
|
42
42
|
if (o[1] === void 0)
|
|
43
|
-
return
|
|
43
|
+
return ce;
|
|
44
44
|
if (o[4])
|
|
45
45
|
return se;
|
|
46
46
|
}
|
|
47
47
|
let l = n(i), t = l && l(i);
|
|
48
48
|
return {
|
|
49
49
|
c() {
|
|
50
|
-
e = k("div"), t && t.c(), C(e, "class", "floorplan-plugin__room-label-item svelte-12pzct5"), _(e, "left", i[6]
|
|
50
|
+
e = k("div"), t && t.c(), C(e, "class", "floorplan-plugin__room-label-item svelte-12pzct5"), _(e, "left", i[6]), _(e, "top", i[7]), _(e, "font-size", i[8]), _(e, "opacity", i[3] ? "1" : "0");
|
|
51
51
|
},
|
|
52
|
-
m(o,
|
|
53
|
-
p(o, e,
|
|
52
|
+
m(o, a) {
|
|
53
|
+
p(o, e, a), t && t.m(e, null), i[16](e);
|
|
54
54
|
},
|
|
55
|
-
p(o, [
|
|
56
|
-
l === (l = n(o)) && t ? t.p(o,
|
|
55
|
+
p(o, [a]) {
|
|
56
|
+
l === (l = n(o)) && t ? t.p(o, a) : (t && t.d(1), t = l && l(o), t && (t.c(), t.m(e, null))), a & 8 && _(e, "opacity", o[3] ? "1" : "0");
|
|
57
57
|
},
|
|
58
58
|
i: E,
|
|
59
59
|
o: E,
|
|
@@ -62,17 +62,17 @@ function ae(i) {
|
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function ae(i, e) {
|
|
66
66
|
const n = i[0], l = i[1];
|
|
67
67
|
let t = !1;
|
|
68
|
-
for (let o = 0,
|
|
69
|
-
const
|
|
70
|
-
|
|
68
|
+
for (let o = 0, a = e.length - 1; o < e.length; a = o++) {
|
|
69
|
+
const f = e[o][0], c = e[o][1], h = e[a][0], r = e[a][1];
|
|
70
|
+
c > l != r > l && n < (h - f) * (l - c) / (r - c) + f && (t = !t);
|
|
71
71
|
}
|
|
72
72
|
return t;
|
|
73
73
|
}
|
|
74
74
|
function re(i, e, n) {
|
|
75
|
-
let l, t, o,
|
|
75
|
+
let l, t, o, a, { pxmm: f } = e, { room: c } = e, { hoveredRoom: h } = e, { getRoomAreaText: r } = e, { getLabelElement: m } = e, { adaptiveRoomLabelVisibleEnable: v } = e;
|
|
76
76
|
function M(s, b) {
|
|
77
77
|
if (b.width === 0 || b.height === 0)
|
|
78
78
|
return () => !1;
|
|
@@ -84,13 +84,13 @@ function re(i, e, n) {
|
|
|
84
84
|
[z - R, w - L],
|
|
85
85
|
[z - R, w + L],
|
|
86
86
|
[z + R, w + L]
|
|
87
|
-
].every((T) =>
|
|
87
|
+
].every((T) => ae(T, K));
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
|
-
const W = document.body.clientWidth, x = document.body.clientHeight, I =
|
|
90
|
+
const W = document.body.clientWidth, x = document.body.clientHeight, I = c.roomLabel, D = I.positionInImage.x * 100 + "%", S = I.positionInImage.y * 100 + "%", q = (W < 500 || x < 500 ? 10 : 14) / 16 + "rem";
|
|
91
91
|
let H = !1, u, y;
|
|
92
92
|
h.subscribe(function(b) {
|
|
93
|
-
n(13, H = !!b && b.id ===
|
|
93
|
+
n(13, H = !!b && b.id === c.id);
|
|
94
94
|
}), ee(() => {
|
|
95
95
|
const s = u == null ? void 0 : u.getClientRects()[0];
|
|
96
96
|
n(14, y = {
|
|
@@ -104,20 +104,20 @@ function re(i, e, n) {
|
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
106
|
return i.$$set = (s) => {
|
|
107
|
-
"pxmm" in s && n(9,
|
|
107
|
+
"pxmm" in s && n(9, f = s.pxmm), "room" in s && n(0, c = s.room), "hoveredRoom" in s && n(10, h = s.hoveredRoom), "getRoomAreaText" in s && n(11, r = s.getRoomAreaText), "getLabelElement" in s && n(1, m = s.getLabelElement), "adaptiveRoomLabelVisibleEnable" in s && n(12, v = s.adaptiveRoomLabelVisibleEnable);
|
|
108
108
|
}, i.$$.update = () => {
|
|
109
|
-
i.$$.dirty & 2049 && n(5, l =
|
|
109
|
+
i.$$.dirty & 2049 && n(5, l = c.size ? r(c.size) : ""), i.$$.dirty & 16385 && n(15, t = y ? M(c, y) : void 0), i.$$.dirty & 3 && n(4, o = m == null ? void 0 : m(c)), i.$$.dirty & 45568 && n(3, a = v ? H ? !0 : !!(t != null && t(f)) : !0);
|
|
110
110
|
}, [
|
|
111
|
-
|
|
111
|
+
c,
|
|
112
112
|
m,
|
|
113
113
|
u,
|
|
114
|
-
|
|
114
|
+
a,
|
|
115
115
|
o,
|
|
116
116
|
l,
|
|
117
117
|
D,
|
|
118
118
|
S,
|
|
119
119
|
q,
|
|
120
|
-
|
|
120
|
+
f,
|
|
121
121
|
h,
|
|
122
122
|
r,
|
|
123
123
|
v,
|
|
@@ -133,7 +133,7 @@ class be extends O {
|
|
|
133
133
|
this,
|
|
134
134
|
e,
|
|
135
135
|
re,
|
|
136
|
-
|
|
136
|
+
fe,
|
|
137
137
|
Z,
|
|
138
138
|
{
|
|
139
139
|
pxmm: 9,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { SvelteComponent as N, init as O, safe_not_equal as P, append_styles as S, element as h, space as R, attr as d, toggle_class as x, set_style as j, insert as D, append as c, update_keyed_each as X, noop as T, detach as z, destroy_each as Y, text as A, set_data as B, destroy_block as E } from "../../../vendor/svelte/internal/index.js";
|
|
2
|
-
function F(
|
|
3
|
-
S(
|
|
2
|
+
function F(r) {
|
|
3
|
+
S(r, "svelte-djlmk4", ".floorplan-plugin__rule-labels.svelte-djlmk4.svelte-djlmk4{position:absolute;display:flex}.floorplan-plugin__rule-labels--top.svelte-djlmk4.svelte-djlmk4{left:0;top:-1.25rem}.floorplan-plugin__rule-labels--bottom.svelte-djlmk4.svelte-djlmk4{left:0;bottom:-1.25rem}.floorplan-plugin__rule-labels--left.svelte-djlmk4.svelte-djlmk4{top:0;left:-1.25rem}.floorplan-plugin__rule-labels--right.svelte-djlmk4.svelte-djlmk4{top:0;right:-1.25rem}.floorplan-plugin__rule-line.svelte-djlmk4.svelte-djlmk4{background:#fff;opacity:0.05;width:100%;height:100%}.floorplan-plugin__rule-scale-wrapper.svelte-djlmk4.svelte-djlmk4{position:absolute;width:0.3125rem;height:100%;left:50%;top:0;transform:translateX(-50%)}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-scale-wrapper.svelte-djlmk4{width:100%;height:0.3125rem;top:50%;left:0;transform:translateY(-50%)}.floorplan-plugin__rule-scale.svelte-djlmk4.svelte-djlmk4{position:absolute;background:#fff;opacity:0.05;width:100%;height:0.0625rem}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-scale.svelte-djlmk4{width:0.0625rem;height:100%}.floorplan-plugin__rule-text-wrapper.svelte-djlmk4.svelte-djlmk4{position:absolute}.floorplan-plugin__rule-labels--top.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:100%;height:0;top:0.625rem}.floorplan-plugin__rule-labels--bottom.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:100%;height:0;bottom:0.625rem}.floorplan-plugin__rule-labels--left.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:0;height:100%;left:0.625rem}.floorplan-plugin__rule-labels--right.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:0;height:100%;right:0.625rem}.floorplan-plugin__rule-text-item.svelte-djlmk4.svelte-djlmk4{width:0;height:0;position:absolute;transform:rotate(90deg)}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-text-item.svelte-djlmk4{transform:rotate(0)}.floorplan-plugin__rule-text.svelte-djlmk4.svelte-djlmk4{width:-moz-max-content;width:max-content;transform:translate(-50%, -50%);font-size:0.625rem;color:#fff;opacity:0.2}");
|
|
4
4
|
}
|
|
5
|
-
function q(
|
|
6
|
-
const i =
|
|
5
|
+
function q(r, e, n) {
|
|
6
|
+
const i = r.slice();
|
|
7
7
|
return i[11] = e[n], i[13] = n, i;
|
|
8
8
|
}
|
|
9
|
-
function C(
|
|
10
|
-
const i =
|
|
9
|
+
function C(r, e, n) {
|
|
10
|
+
const i = r.slice();
|
|
11
11
|
return i[14] = e[n], i;
|
|
12
12
|
}
|
|
13
|
-
function H(
|
|
13
|
+
function H(r) {
|
|
14
14
|
let e;
|
|
15
15
|
return {
|
|
16
16
|
c() {
|
|
17
|
-
e = h("div"), d(e, "class", "floorplan-plugin__rule-scale svelte-djlmk4"), j(e, "left",
|
|
17
|
+
e = h("div"), d(e, "class", "floorplan-plugin__rule-scale svelte-djlmk4"), j(e, "left", r[14].left * 100 + "%"), j(e, "bottom", r[14].bottom * 100 + "%");
|
|
18
18
|
},
|
|
19
19
|
m(n, i) {
|
|
20
20
|
D(n, e, i);
|
|
@@ -25,91 +25,91 @@ function H(s) {
|
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
function I(
|
|
29
|
-
let n, i,
|
|
28
|
+
function I(r, e) {
|
|
29
|
+
let n, i, p = e[1](e[11].distance) + "", u, m;
|
|
30
30
|
return {
|
|
31
|
-
key:
|
|
31
|
+
key: r,
|
|
32
32
|
first: null,
|
|
33
33
|
c() {
|
|
34
|
-
n = h("div"), i = h("div"), u = A(
|
|
34
|
+
n = h("div"), i = h("div"), u = A(p), m = R(), d(i, "class", "floorplan-plugin__rule-text svelte-djlmk4"), x(i, "is-row", e[2]), d(n, "class", "floorplan-plugin__rule-text-item svelte-djlmk4"), j(n, "left", e[11].left * 100 + "%"), j(n, "bottom", e[11].bottom * 100 + "%"), this.first = n;
|
|
35
35
|
},
|
|
36
|
-
m(
|
|
37
|
-
D(
|
|
36
|
+
m(s, _) {
|
|
37
|
+
D(s, n, _), c(n, i), c(i, u), c(n, m);
|
|
38
38
|
},
|
|
39
|
-
p(
|
|
40
|
-
e =
|
|
39
|
+
p(s, _) {
|
|
40
|
+
e = s, _ & 2 && p !== (p = e[1](e[11].distance) + "") && B(u, p);
|
|
41
41
|
},
|
|
42
|
-
d(
|
|
43
|
-
|
|
42
|
+
d(s) {
|
|
43
|
+
s && z(n);
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
function G(
|
|
48
|
-
let e, n, i,
|
|
49
|
-
for (let l = 0; l <
|
|
50
|
-
a[l] = H(C(
|
|
51
|
-
let v =
|
|
47
|
+
function G(r) {
|
|
48
|
+
let e, n, i, p, u, m, s = [], _ = /* @__PURE__ */ new Map(), g, f = r[3], a = [];
|
|
49
|
+
for (let l = 0; l < f.length; l += 1)
|
|
50
|
+
a[l] = H(C(r, f, l));
|
|
51
|
+
let v = r[4];
|
|
52
52
|
const w = (l) => l[13];
|
|
53
53
|
for (let l = 0; l < v.length; l += 1) {
|
|
54
|
-
let o = q(
|
|
55
|
-
_.set(t,
|
|
54
|
+
let o = q(r, v, l), t = w(o);
|
|
55
|
+
_.set(t, s[l] = I(t, o));
|
|
56
56
|
}
|
|
57
57
|
return {
|
|
58
58
|
c() {
|
|
59
|
-
e = h("div"), n = h("div"), i = R(),
|
|
59
|
+
e = h("div"), n = h("div"), i = R(), p = h("div");
|
|
60
60
|
for (let l = 0; l < a.length; l += 1)
|
|
61
61
|
a[l].c();
|
|
62
62
|
u = R(), m = h("div");
|
|
63
|
-
for (let l = 0; l <
|
|
64
|
-
|
|
65
|
-
d(n, "class", "floorplan-plugin__rule-line svelte-djlmk4"), d(
|
|
63
|
+
for (let l = 0; l < s.length; l += 1)
|
|
64
|
+
s[l].c();
|
|
65
|
+
d(n, "class", "floorplan-plugin__rule-line svelte-djlmk4"), d(p, "class", "floorplan-plugin__rule-scale-wrapper svelte-djlmk4"), x(p, "is-row", r[2]), d(m, "class", "floorplan-plugin__rule-text-wrapper svelte-djlmk4"), d(e, "class", g = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + r[0] + " svelte-djlmk4"), x(e, "is-row", r[2]), j(e, "width", r[2] ? "100%" : 1 / 16 + "rem"), j(e, "height", r[2] ? 1 / 16 + "rem" : "100%");
|
|
66
66
|
},
|
|
67
67
|
m(l, o) {
|
|
68
|
-
D(l, e, o), c(e, n), c(e, i), c(e,
|
|
68
|
+
D(l, e, o), c(e, n), c(e, i), c(e, p);
|
|
69
69
|
for (let t = 0; t < a.length; t += 1)
|
|
70
|
-
a[t].m(
|
|
70
|
+
a[t].m(p, null);
|
|
71
71
|
c(e, u), c(e, m);
|
|
72
|
-
for (let t = 0; t <
|
|
73
|
-
|
|
72
|
+
for (let t = 0; t < s.length; t += 1)
|
|
73
|
+
s[t].m(m, null);
|
|
74
74
|
},
|
|
75
75
|
p(l, [o]) {
|
|
76
76
|
if (o & 8) {
|
|
77
|
-
|
|
77
|
+
f = l[3];
|
|
78
78
|
let t;
|
|
79
|
-
for (t = 0; t <
|
|
80
|
-
const y = C(l,
|
|
81
|
-
a[t] ? a[t].p(y, o) : (a[t] = H(y), a[t].c(), a[t].m(
|
|
79
|
+
for (t = 0; t < f.length; t += 1) {
|
|
80
|
+
const y = C(l, f, t);
|
|
81
|
+
a[t] ? a[t].p(y, o) : (a[t] = H(y), a[t].c(), a[t].m(p, null));
|
|
82
82
|
}
|
|
83
83
|
for (; t < a.length; t += 1)
|
|
84
84
|
a[t].d(1);
|
|
85
|
-
a.length =
|
|
85
|
+
a.length = f.length;
|
|
86
86
|
}
|
|
87
|
-
o & 22 && (v = l[4],
|
|
87
|
+
o & 22 && (v = l[4], s = X(s, o, w, 1, l, v, _, m, E, I, null, q)), o & 1 && g !== (g = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + l[0] + " svelte-djlmk4") && d(e, "class", g), o & 5 && x(e, "is-row", l[2]);
|
|
88
88
|
},
|
|
89
89
|
i: T,
|
|
90
90
|
o: T,
|
|
91
91
|
d(l) {
|
|
92
92
|
l && z(e), Y(a, l);
|
|
93
|
-
for (let o = 0; o <
|
|
94
|
-
|
|
93
|
+
for (let o = 0; o < s.length; o += 1)
|
|
94
|
+
s[o].d();
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
98
|
const k = 1e3, b = 180;
|
|
99
|
-
function J(
|
|
100
|
-
let { type: i } = e, { data:
|
|
101
|
-
const
|
|
102
|
-
const o =
|
|
99
|
+
function J(r, e, n) {
|
|
100
|
+
let { type: i } = e, { data: p } = e, { bounding: u } = e, { getRuleDistanceText: m } = e;
|
|
101
|
+
const s = i === "top" || i === "bottom", _ = u.max.x - u.min.x - (k - b) * 2, g = u.max.y - u.min.y - (k - b) * 2, f = p.map(([l, o]) => s ? [l.x, o.x] : [l.y, o.y]).flat().sort().filter((l, o, t) => o === 0 ? !0 : l !== t[o - 1]), a = f.map((l) => {
|
|
102
|
+
const o = s ? (l - u.min.x - k + b) / _ : 0, t = s ? 0 : (l - u.min.y - k + b) / g;
|
|
103
103
|
return { left: o, bottom: t };
|
|
104
104
|
});
|
|
105
|
-
a.unshift({ left: 0, bottom: 0 }), a.push(
|
|
106
|
-
const v =
|
|
107
|
-
const y = o === 0 ? 0 : l - t[o - 1], W = o === 0 ? 0 : (l + t[o - 1]) / 2, L =
|
|
105
|
+
a.unshift({ left: 0, bottom: 0 }), a.push(s ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
|
|
106
|
+
const v = f[f.length - 1] - f[0], w = f.map((l, o, t) => {
|
|
107
|
+
const y = o === 0 ? 0 : l - t[o - 1], W = o === 0 ? 0 : (l + t[o - 1]) / 2, L = s ? (W - u.min.x - k + b) / _ : 0, M = s ? 0 : (W - u.min.y - k + b) / g;
|
|
108
108
|
return { left: L, bottom: M, distance: y };
|
|
109
109
|
}).filter(({ distance: l }) => l / v > 0.1);
|
|
110
|
-
return
|
|
111
|
-
"type" in l && n(0, i = l.type), "data" in l && n(5,
|
|
112
|
-
}, [i, m,
|
|
110
|
+
return r.$$set = (l) => {
|
|
111
|
+
"type" in l && n(0, i = l.type), "data" in l && n(5, p = l.data), "bounding" in l && n(6, u = l.bounding), "getRuleDistanceText" in l && n(1, m = l.getRuleDistanceText);
|
|
112
|
+
}, [i, m, s, a, w, p, u];
|
|
113
113
|
}
|
|
114
114
|
class Q extends N {
|
|
115
115
|
constructor(e) {
|