@realsee/dnalogel 2.2.2 → 2.2.4
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/index.cjs.js +63 -58
- package/dist/index.js +4972 -4332
- package/dist/index.umd.js +51 -46
- 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 +5 -5
- 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 +12 -13
- package/libs/ItemLabelPlugin/ItemLabelItem.js +1 -1
- package/libs/ItemLabelPlugin/index.js +3 -4
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +10 -11
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +1 -1
- package/libs/ModelItemLabelPlugin/index.js +3 -4
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +1 -1
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +17 -18
- package/libs/PanoDoorLabelPlugin/Controller.js +96 -97
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +1 -1
- package/libs/PanoRulerProPlugin/RulerItem.js +1 -1
- package/libs/PanoRulerProPlugin/RulerItems.js +18 -19
- package/libs/PanoSpatialTagPlugin/Components/origins.js +2 -2
- package/libs/PanoSpatialTagPlugin/Components/tag.js +8 -9
- package/libs/PanoSpatialTagPlugin/index.js +1 -3
- package/libs/PanoSpatialTagPlugin/store.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
- package/libs/PanoTagPlugin/Components/Common/Audio.js +25 -26
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +8 -8
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +30 -29
- package/libs/PanoTagPlugin/Components/Common/Media.js +27 -28
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +18 -19
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +3 -3
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +3 -3
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +9 -9
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +11 -10
- package/libs/PanoTagPlugin/Components/Common/Text.js +15 -16
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +10 -10
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +9 -10
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +27 -28
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +9 -10
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +7 -6
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +5 -4
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +10 -11
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +19 -20
- package/libs/PanoTagPlugin/Components/Tag/index.js +8 -9
- package/libs/PanoTagPlugin/Components/TagContainer.js +11 -12
- package/libs/PanoTagPlugin/Components/TagWrapper.js +8 -9
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/floorplan/Components/BaseImage.js +4 -4
- package/libs/floorplan/Components/Camera.js +1 -1
- package/libs/floorplan/Components/Compass.js +1 -1
- package/libs/floorplan/Components/CurrentFloor.js +9 -10
- package/libs/floorplan/Components/Main.js +24 -25
- package/libs/floorplan/Components/Normalmage.js +1 -1
- package/libs/floorplan/Components/RoomHighlight/Room.js +1 -1
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +7 -7
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +7 -8
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +39 -40
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +7 -7
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +1 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +1 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +1 -1
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +5 -5
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +7 -7
- package/libs/floorplan/Components/SvgImage.js +4 -4
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +3 -4
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +3 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +3 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +23 -24
- package/libs/floorplan/index.js +1 -5
- package/libs/index.js +94 -95
- package/libs/vendor/svelte/easing/index.js +12 -0
- package/libs/vendor/svelte/index.js +1 -0
- package/libs/vendor/svelte/internal/index.js +642 -0
- package/libs/vendor/svelte/store/index.js +31 -0
- package/libs/vendor/svelte/transition/index.js +37 -0
- package/libs/vendor/swiper/svelte/swiper-slide.js +10 -11
- package/libs/vendor/swiper/svelte/swiper-svelte.js +1 -2
- package/libs/vendor/swiper/svelte/swiper.js +9 -10
- package/package.json +2 -2
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as O, init as Q, safe_not_equal as Z, append_styles as $, element as k, attr as C, set_style as _, insert as p, noop as E, detach as g,
|
|
2
|
-
import { onMount as ie } from "svelte";
|
|
1
|
+
import { SvelteComponent as O, init as Q, safe_not_equal as Z, append_styles as $, element as k, attr as C, set_style as _, insert as p, noop as E, detach as g, onMount as ee, binding_callbacks as te, HtmlTag as oe, empty as ne, text as V, space as ie, append as A, set_data as j } from "../../../vendor/svelte/internal/index.js";
|
|
3
2
|
function le(i) {
|
|
4
3
|
$(i, "svelte-12pzct5", ".floorplan-plugin__room-label-item.svelte-12pzct5{position:absolute;display:flex;flex-flow:column;align-items:center;line-height:1;color:#fff;transform:translate(-50%, -50%);white-space:nowrap;will-change:opacity;transition:opacity 300ms}.floorplan-plugin__room-size.svelte-12pzct5{opacity:0.45}");
|
|
5
4
|
}
|
|
@@ -7,7 +6,7 @@ function se(i) {
|
|
|
7
6
|
let e, n = i[4].outerHTML + "", l;
|
|
8
7
|
return {
|
|
9
8
|
c() {
|
|
10
|
-
e = new
|
|
9
|
+
e = new oe(!1), l = ne(), e.a = l;
|
|
11
10
|
},
|
|
12
11
|
m(t, o) {
|
|
13
12
|
e.m(n, t, o), p(t, l, o);
|
|
@@ -24,7 +23,7 @@ function fe(i) {
|
|
|
24
23
|
let e, n = i[0].name + "", l, t, o, c;
|
|
25
24
|
return {
|
|
26
25
|
c() {
|
|
27
|
-
e = k("span"), l = V(n), t =
|
|
26
|
+
e = k("span"), l = V(n), t = ie(), o = k("span"), c = V(i[5]), C(e, "class", "floorplan-plugin__room-name"), C(o, "class", "floorplan-plugin__room-size svelte-12pzct5");
|
|
28
27
|
},
|
|
29
28
|
m(a, f) {
|
|
30
29
|
p(a, e, f), A(e, l), p(a, t, f), p(a, o, f), A(o, c);
|
|
@@ -92,7 +91,7 @@ function re(i, e, n) {
|
|
|
92
91
|
let H = !1, u, y;
|
|
93
92
|
h.subscribe(function(b) {
|
|
94
93
|
n(13, H = !!b && b.id === f.id);
|
|
95
|
-
}),
|
|
94
|
+
}), ee(() => {
|
|
96
95
|
const s = u == null ? void 0 : u.getClientRects()[0];
|
|
97
96
|
n(14, y = {
|
|
98
97
|
width: s.width,
|
|
@@ -100,7 +99,7 @@ function re(i, e, n) {
|
|
|
100
99
|
});
|
|
101
100
|
});
|
|
102
101
|
function U(s) {
|
|
103
|
-
|
|
102
|
+
te[s ? "unshift" : "push"](() => {
|
|
104
103
|
u = s, n(2, u);
|
|
105
104
|
});
|
|
106
105
|
}
|
|
@@ -128,7 +127,7 @@ function re(i, e, n) {
|
|
|
128
127
|
U
|
|
129
128
|
];
|
|
130
129
|
}
|
|
131
|
-
class
|
|
130
|
+
class be extends O {
|
|
132
131
|
constructor(e) {
|
|
133
132
|
super(), Q(
|
|
134
133
|
this,
|
|
@@ -149,5 +148,5 @@ class de extends O {
|
|
|
149
148
|
}
|
|
150
149
|
}
|
|
151
150
|
export {
|
|
152
|
-
|
|
151
|
+
be as default
|
|
153
152
|
};
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { SvelteComponent as A, init as T, safe_not_equal as V, append_styles as D, empty as v, insert as b, transition_in as _,
|
|
1
|
+
import { SvelteComponent as A, init as T, safe_not_equal as V, append_styles as D, empty as v, insert as b, transition_in as _, transition_out as d, check_outros as L, detach as c, element as z, attr as I, add_render_callback as w, add_resize_listener as W, group_outros as k, update_keyed_each as q, outro_and_destroy_block as C, assign as M, create_component as N, mount_component as S, get_spread_update as j, destroy_component as B } from "../../../vendor/svelte/internal/index.js";
|
|
2
2
|
import F from "./RoomLabel.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
D(a, "svelte-13xux0b", ".floorplan-plugin__room-labels.svelte-13xux0b{width:100%;height:100%;position:absolute;left:0;top:0;z-index:20;pointer-events:none}");
|
|
3
|
+
function G(r) {
|
|
4
|
+
D(r, "svelte-13xux0b", ".floorplan-plugin__room-labels.svelte-13xux0b{width:100%;height:100%;position:absolute;left:0;top:0;z-index:20;pointer-events:none}");
|
|
6
5
|
}
|
|
7
|
-
function g(
|
|
8
|
-
const t =
|
|
6
|
+
function g(r, e, o) {
|
|
7
|
+
const t = r.slice();
|
|
9
8
|
return t[10] = e[o], t;
|
|
10
9
|
}
|
|
11
|
-
function R(
|
|
12
|
-
let e, o = [], t = /* @__PURE__ */ new Map(), i, m, s =
|
|
13
|
-
const
|
|
10
|
+
function R(r) {
|
|
11
|
+
let e, o = [], t = /* @__PURE__ */ new Map(), i, m, s = r[6];
|
|
12
|
+
const a = (l) => l[10].id;
|
|
14
13
|
for (let l = 0; l < s.length; l += 1) {
|
|
15
|
-
let n = g(
|
|
14
|
+
let n = g(r, s, l), u = a(n);
|
|
16
15
|
t.set(u, o[l] = p(u, n));
|
|
17
16
|
}
|
|
18
17
|
return {
|
|
@@ -20,16 +19,16 @@ function R(a) {
|
|
|
20
19
|
e = z("div");
|
|
21
20
|
for (let l = 0; l < o.length; l += 1)
|
|
22
21
|
o[l].c();
|
|
23
|
-
I(e, "class", "floorplan-plugin__room-labels svelte-13xux0b"), w(() =>
|
|
22
|
+
I(e, "class", "floorplan-plugin__room-labels svelte-13xux0b"), w(() => r[9].call(e));
|
|
24
23
|
},
|
|
25
24
|
m(l, n) {
|
|
26
25
|
b(l, e, n);
|
|
27
26
|
for (let u = 0; u < o.length; u += 1)
|
|
28
27
|
o[u].m(e, null);
|
|
29
|
-
i = W(e,
|
|
28
|
+
i = W(e, r[9].bind(e)), m = !0;
|
|
30
29
|
},
|
|
31
30
|
p(l, n) {
|
|
32
|
-
n & 111 && (s = l[6],
|
|
31
|
+
n & 111 && (s = l[6], k(), o = q(o, n, a, 1, l, s, t, e, C, p, null, g), L());
|
|
33
32
|
},
|
|
34
33
|
i(l) {
|
|
35
34
|
if (!m) {
|
|
@@ -51,7 +50,7 @@ function R(a) {
|
|
|
51
50
|
}
|
|
52
51
|
};
|
|
53
52
|
}
|
|
54
|
-
function p(
|
|
53
|
+
function p(r, e) {
|
|
55
54
|
let o, t, i;
|
|
56
55
|
const m = [
|
|
57
56
|
{
|
|
@@ -64,19 +63,19 @@ function p(a, e) {
|
|
|
64
63
|
}
|
|
65
64
|
];
|
|
66
65
|
let s = {};
|
|
67
|
-
for (let
|
|
68
|
-
s = M(s, m[
|
|
66
|
+
for (let a = 0; a < m.length; a += 1)
|
|
67
|
+
s = M(s, m[a]);
|
|
69
68
|
return t = new F({ props: s }), {
|
|
70
|
-
key:
|
|
69
|
+
key: r,
|
|
71
70
|
first: null,
|
|
72
71
|
c() {
|
|
73
72
|
o = v(), N(t.$$.fragment), this.first = o;
|
|
74
73
|
},
|
|
75
|
-
m(
|
|
76
|
-
b(
|
|
74
|
+
m(a, l) {
|
|
75
|
+
b(a, o, l), S(t, a, l), i = !0;
|
|
77
76
|
},
|
|
78
|
-
p(
|
|
79
|
-
e =
|
|
77
|
+
p(a, l) {
|
|
78
|
+
e = a;
|
|
80
79
|
const n = l & 111 ? j(m, [
|
|
81
80
|
{
|
|
82
81
|
pxmm: e[5],
|
|
@@ -89,19 +88,19 @@ function p(a, e) {
|
|
|
89
88
|
]) : {};
|
|
90
89
|
t.$set(n);
|
|
91
90
|
},
|
|
92
|
-
i(
|
|
93
|
-
i || (_(t.$$.fragment,
|
|
91
|
+
i(a) {
|
|
92
|
+
i || (_(t.$$.fragment, a), i = !0);
|
|
94
93
|
},
|
|
95
|
-
o(
|
|
96
|
-
d(t.$$.fragment,
|
|
94
|
+
o(a) {
|
|
95
|
+
d(t.$$.fragment, a), i = !1;
|
|
97
96
|
},
|
|
98
|
-
d(
|
|
99
|
-
|
|
97
|
+
d(a) {
|
|
98
|
+
a && c(o), B(t, a);
|
|
100
99
|
}
|
|
101
100
|
};
|
|
102
101
|
}
|
|
103
|
-
function H(
|
|
104
|
-
let e, o, t =
|
|
102
|
+
function H(r) {
|
|
103
|
+
let e, o, t = r[6] && R(r);
|
|
105
104
|
return {
|
|
106
105
|
c() {
|
|
107
106
|
t && t.c(), e = v();
|
|
@@ -110,9 +109,9 @@ function H(a) {
|
|
|
110
109
|
t && t.m(i, m), b(i, e, m), o = !0;
|
|
111
110
|
},
|
|
112
111
|
p(i, [m]) {
|
|
113
|
-
i[6] ? t ? (t.p(i, m), m & 64 && _(t, 1)) : (t = R(i), t.c(), _(t, 1), t.m(e.parentNode, e)) : t && (
|
|
112
|
+
i[6] ? t ? (t.p(i, m), m & 64 && _(t, 1)) : (t = R(i), t.c(), _(t, 1), t.m(e.parentNode, e)) : t && (k(), d(t, 1, 1, () => {
|
|
114
113
|
t = null;
|
|
115
|
-
}),
|
|
114
|
+
}), L());
|
|
116
115
|
},
|
|
117
116
|
i(i) {
|
|
118
117
|
o || (_(t), o = !0);
|
|
@@ -125,21 +124,21 @@ function H(a) {
|
|
|
125
124
|
}
|
|
126
125
|
};
|
|
127
126
|
}
|
|
128
|
-
function J(
|
|
129
|
-
let t, { floorIndex: i } = e, { floorplanData: m } = e, { hoveredRoom: s } = e, { getRoomAreaText:
|
|
127
|
+
function J(r, e, o) {
|
|
128
|
+
let t, { floorIndex: i } = e, { floorplanData: m } = e, { hoveredRoom: s } = e, { getRoomAreaText: a } = e, { getLabelElement: l } = e, { adaptiveRoomLabelVisibleEnable: n } = e, u = 0, h = 0;
|
|
130
129
|
function E() {
|
|
131
130
|
u = this.clientWidth, o(4, u);
|
|
132
131
|
}
|
|
133
|
-
return
|
|
134
|
-
"floorIndex" in f && o(7, i = f.floorIndex), "floorplanData" in f && o(8, m = f.floorplanData), "hoveredRoom" in f && o(0, s = f.hoveredRoom), "getRoomAreaText" in f && o(1,
|
|
135
|
-
},
|
|
136
|
-
if (
|
|
132
|
+
return r.$$set = (f) => {
|
|
133
|
+
"floorIndex" in f && o(7, i = f.floorIndex), "floorplanData" in f && o(8, m = f.floorplanData), "hoveredRoom" in f && o(0, s = f.hoveredRoom), "getRoomAreaText" in f && o(1, a = f.getRoomAreaText), "getLabelElement" in f && o(2, l = f.getLabelElement), "adaptiveRoomLabelVisibleEnable" in f && o(3, n = f.adaptiveRoomLabelVisibleEnable);
|
|
134
|
+
}, r.$$.update = () => {
|
|
135
|
+
if (r.$$.dirty & 384 && o(6, t = m.floorDatas[i].rooms), r.$$.dirty & 272) {
|
|
137
136
|
const { max: f, min: x } = m.bounding, y = f.x - x.x;
|
|
138
137
|
o(5, h = u / y);
|
|
139
138
|
}
|
|
140
139
|
}, [
|
|
141
140
|
s,
|
|
142
|
-
|
|
141
|
+
a,
|
|
143
142
|
l,
|
|
144
143
|
n,
|
|
145
144
|
u,
|
|
@@ -150,7 +149,7 @@ function J(a, e, o) {
|
|
|
150
149
|
E
|
|
151
150
|
];
|
|
152
151
|
}
|
|
153
|
-
class
|
|
152
|
+
class P extends A {
|
|
154
153
|
constructor(e) {
|
|
155
154
|
super(), T(
|
|
156
155
|
this,
|
|
@@ -171,5 +170,5 @@ class Q extends A {
|
|
|
171
170
|
}
|
|
172
171
|
}
|
|
173
172
|
export {
|
|
174
|
-
|
|
173
|
+
P as default
|
|
175
174
|
};
|
|
@@ -10,7 +10,7 @@ var b = (l, e, o) => e in l ? M(l, e, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
q.call(e, o) && b(l, o, e[o]);
|
|
11
11
|
return l;
|
|
12
12
|
}, v = (l, e) => R(l, B(e));
|
|
13
|
-
import { SvelteComponent as C, init as F, safe_not_equal as H, append_styles as P, element as S, attr as m, insert as x, transition_in as c,
|
|
13
|
+
import { SvelteComponent as C, init as F, safe_not_equal as H, append_styles as P, element as S, attr as m, insert as x, transition_in as c, check_outros as w, transition_out as s, detach as D, destroy_each as W, svg_element as j, group_outros as I, create_component as p, mount_component as h, destroy_component as g } from "../../../vendor/svelte/internal/index.js";
|
|
14
14
|
import { formatFloorplanPoint as z } from "../../utils/formatPosition.js";
|
|
15
15
|
import A from "./RoomMaterial_0.js";
|
|
16
16
|
import E from "./RoomMaterial_1.js";
|
|
@@ -109,9 +109,9 @@ function $(l) {
|
|
|
109
109
|
},
|
|
110
110
|
p(r, u) {
|
|
111
111
|
let _ = o;
|
|
112
|
-
o = f(r), o === _ ? a[o].p(r, u) : (
|
|
112
|
+
o = f(r), o === _ ? a[o].p(r, u) : (I(), s(a[_], 1, 1, () => {
|
|
113
113
|
a[_] = null;
|
|
114
|
-
}),
|
|
114
|
+
}), w(), t = a[o], t ? t.p(r, u) : (t = a[o] = i[o](r), t.c()), c(t, 1), t.m(e, null));
|
|
115
115
|
},
|
|
116
116
|
i(r) {
|
|
117
117
|
n || (c(t), n = !0);
|
|
@@ -120,7 +120,7 @@ function $(l) {
|
|
|
120
120
|
s(t), n = !1;
|
|
121
121
|
},
|
|
122
122
|
d(r) {
|
|
123
|
-
r &&
|
|
123
|
+
r && D(e), a[o].d();
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
}
|
|
@@ -152,9 +152,9 @@ function O(l) {
|
|
|
152
152
|
const u = y(a, t, r);
|
|
153
153
|
n[r] ? (n[r].p(u, f), c(n[r], 1)) : (n[r] = $(u), n[r].c(), c(n[r], 1), n[r].m(e, null));
|
|
154
154
|
}
|
|
155
|
-
for (
|
|
155
|
+
for (I(), r = t.length; r < n.length; r += 1)
|
|
156
156
|
i(r);
|
|
157
|
-
|
|
157
|
+
w();
|
|
158
158
|
}
|
|
159
159
|
},
|
|
160
160
|
i(a) {
|
|
@@ -171,7 +171,7 @@ function O(l) {
|
|
|
171
171
|
o = !1;
|
|
172
172
|
},
|
|
173
173
|
d(a) {
|
|
174
|
-
a &&
|
|
174
|
+
a && D(e), W(n, a);
|
|
175
175
|
}
|
|
176
176
|
};
|
|
177
177
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as f, init as u, safe_not_equal as c, svg_element as d, attr as i, insert as h, noop as p, detach as m } from "svelte/internal";
|
|
1
|
+
import { SvelteComponent as f, init as u, safe_not_equal as c, svg_element as d, attr as i, insert as h, noop as p, detach as m } from "../../../vendor/svelte/internal/index.js";
|
|
2
2
|
import { pathD as s } from "../../utils/formatPosition.js";
|
|
3
3
|
function l(n) {
|
|
4
4
|
let t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as _, init as w, safe_not_equal as y, svg_element as l, space as k, attr as t, insert as h, append as d, noop as c, detach as m } from "svelte/internal";
|
|
1
|
+
import { SvelteComponent as _, init as w, safe_not_equal as y, svg_element as l, space as k, attr as t, insert as h, append as d, noop as c, detach as m } from "../../../vendor/svelte/internal/index.js";
|
|
2
2
|
import { pathD as M } from "../../utils/formatPosition.js";
|
|
3
3
|
function v(n) {
|
|
4
4
|
let i, e, p, a, f, o;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as S, init as c, safe_not_equal as x, svg_element as o, space as U, attr as t, insert as s, append as w, noop as y, detach as m } from "svelte/internal";
|
|
1
|
+
import { SvelteComponent as S, init as c, safe_not_equal as x, svg_element as o, space as U, attr as t, insert as s, append as w, noop as y, detach as m } from "../../../vendor/svelte/internal/index.js";
|
|
2
2
|
import { pathD as D } from "../../utils/formatPosition.js";
|
|
3
3
|
function O(f) {
|
|
4
4
|
let n, i, l, r, p, _, d, k, h, B, u;
|
|
@@ -1,4 +1,4 @@
|
|
|
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,
|
|
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
2
|
function F(s) {
|
|
3
3
|
S(s, "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
|
}
|
|
@@ -31,13 +31,13 @@ function I(s, e) {
|
|
|
31
31
|
key: s,
|
|
32
32
|
first: null,
|
|
33
33
|
c() {
|
|
34
|
-
n = h("div"), i = h("div"), u =
|
|
34
|
+
n = h("div"), i = h("div"), u = A(f), 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 + "%", !1), j(n, "bottom", e[11].bottom * 100 + "%", !1), this.first = n;
|
|
35
35
|
},
|
|
36
36
|
m(r, _) {
|
|
37
37
|
D(r, n, _), c(n, i), c(i, u), c(n, m);
|
|
38
38
|
},
|
|
39
39
|
p(r, _) {
|
|
40
|
-
e = r, _ & 2 && f !== (f = e[1](e[11].distance) + "") &&
|
|
40
|
+
e = r, _ & 2 && f !== (f = e[1](e[11].distance) + "") && B(u, f);
|
|
41
41
|
},
|
|
42
42
|
d(r) {
|
|
43
43
|
r && z(n);
|
|
@@ -84,12 +84,12 @@ function G(s) {
|
|
|
84
84
|
a[t].d(1);
|
|
85
85
|
a.length = p.length;
|
|
86
86
|
}
|
|
87
|
-
o & 22 && (v = l[4], r = X(r, o, w, 1, l, v, _, m,
|
|
87
|
+
o & 22 && (v = l[4], r = X(r, 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
|
-
l && z(e),
|
|
92
|
+
l && z(e), Y(a, l);
|
|
93
93
|
for (let o = 0; o < r.length; o += 1)
|
|
94
94
|
r[o].d();
|
|
95
95
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as I, init as j, safe_not_equal as L, append_styles as z, element as W, attr as H, set_style as _, insert as k,
|
|
1
|
+
import { SvelteComponent as I, init as j, safe_not_equal as L, append_styles as z, element as W, attr as H, set_style as _, insert as k, update_keyed_each as O, check_outros as q, transition_in as R, transition_out as w, detach as T, assign as A, empty as C, create_component as K, mount_component as M, get_spread_update as S, destroy_component as B, group_outros as E, outro_and_destroy_block as F } from "../../../vendor/svelte/internal/index.js";
|
|
2
2
|
import G from "./RuleItem.js";
|
|
3
3
|
function J(o) {
|
|
4
4
|
z(o, "svelte-1mzj9p3", ".floorplan-plugin__rule-labels-wrapper.svelte-1mzj9p3{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}");
|
|
@@ -19,19 +19,19 @@ function b(o, l) {
|
|
|
19
19
|
];
|
|
20
20
|
let s = {};
|
|
21
21
|
for (let e = 0; e < a.length; e += 1)
|
|
22
|
-
s =
|
|
22
|
+
s = A(s, a[e]);
|
|
23
23
|
return r = new G({ props: s }), {
|
|
24
24
|
key: o,
|
|
25
25
|
first: null,
|
|
26
26
|
c() {
|
|
27
|
-
t =
|
|
27
|
+
t = C(), K(r.$$.fragment), this.first = t;
|
|
28
28
|
},
|
|
29
29
|
m(e, n) {
|
|
30
|
-
k(e, t, n),
|
|
30
|
+
k(e, t, n), M(r, e, n), i = !0;
|
|
31
31
|
},
|
|
32
32
|
p(e, n) {
|
|
33
33
|
l = e;
|
|
34
|
-
const u = n & 19 ?
|
|
34
|
+
const u = n & 19 ? S(a, [
|
|
35
35
|
{
|
|
36
36
|
type: l[13],
|
|
37
37
|
data: l[14],
|
|
@@ -48,7 +48,7 @@ function b(o, l) {
|
|
|
48
48
|
w(r.$$.fragment, e), i = !1;
|
|
49
49
|
},
|
|
50
50
|
d(e) {
|
|
51
|
-
e && T(t),
|
|
51
|
+
e && T(t), B(r, e);
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
}
|
|
@@ -73,7 +73,7 @@ function N(o) {
|
|
|
73
73
|
i = !0;
|
|
74
74
|
},
|
|
75
75
|
p(e, [n]) {
|
|
76
|
-
n & 19 && (a = e[4],
|
|
76
|
+
n & 19 && (a = e[4], E(), t = O(t, n, s, 1, e, a, r, l, F, b, null, y), q()), n & 8 && _(l, "width", e[3], !1), n & 4 && _(l, "height", e[2], !1);
|
|
77
77
|
},
|
|
78
78
|
i(e) {
|
|
79
79
|
if (!i) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as p, init as r, safe_not_equal as g, append_styles as c, element as u,
|
|
1
|
+
import { SvelteComponent as p, init as r, safe_not_equal as g, append_styles as c, element as u, space as m, attr as _, insert as d, append as v, noop as o, detach as y, HtmlTag as i } from "../../vendor/svelte/internal/index.js";
|
|
2
2
|
function h(n) {
|
|
3
3
|
c(n, "svelte-ub47ya", ".floorplan-plugin__base-image.svelte-ub47ya{width:100%;height:100%}");
|
|
4
4
|
}
|
|
@@ -6,7 +6,7 @@ function b(n) {
|
|
|
6
6
|
let e, f, l, a;
|
|
7
7
|
return {
|
|
8
8
|
c() {
|
|
9
|
-
e = u("div"), f = new
|
|
9
|
+
e = u("div"), f = new i(!1), l = m(), a = new i(!1), f.a = l, a.a = null, _(e, "class", "floorplan-plugin__base-image svelte-ub47ya");
|
|
10
10
|
},
|
|
11
11
|
m(t, s) {
|
|
12
12
|
d(t, e, s), f.m(n[1], e), v(e, l), a.m(n[0], e);
|
|
@@ -14,8 +14,8 @@ function b(n) {
|
|
|
14
14
|
p(t, [s]) {
|
|
15
15
|
s & 1 && a.p(t[0]);
|
|
16
16
|
},
|
|
17
|
-
i,
|
|
18
|
-
o
|
|
17
|
+
i: o,
|
|
18
|
+
o,
|
|
19
19
|
d(t) {
|
|
20
20
|
t && y(e);
|
|
21
21
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as w, init as y, safe_not_equal as k, append_styles as T, element as p, attr as g, set_style as l, insert as W, append as x, noop as I, detach as P } from "svelte/internal";
|
|
2
|
-
import { onMount as S } from "svelte";
|
|
1
|
+
import { SvelteComponent as w, init as y, safe_not_equal as k, append_styles as T, element as p, attr as g, set_style as l, insert as W, append as x, noop as I, detach as P, onMount as S } from "../../../vendor/svelte/internal/index.js";
|
|
3
2
|
import { CAMERA_IMAGE as b } from "../../Assets/camera.js";
|
|
4
3
|
import { throttle as E } from "../../../shared-utils/throttle.js";
|
|
5
4
|
function F(n) {
|
|
@@ -62,7 +61,7 @@ function G(n, a, t) {
|
|
|
62
61
|
d
|
|
63
62
|
];
|
|
64
63
|
}
|
|
65
|
-
class
|
|
64
|
+
class B extends w {
|
|
66
65
|
constructor(a) {
|
|
67
66
|
super(), y(
|
|
68
67
|
this,
|
|
@@ -81,5 +80,5 @@ class J extends w {
|
|
|
81
80
|
}
|
|
82
81
|
}
|
|
83
82
|
export {
|
|
84
|
-
|
|
83
|
+
B as default
|
|
85
84
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as E, init as O, safe_not_equal as C, assign as D, create_component as c, space as j, empty as H, mount_component as p, insert as h, get_spread_update as k, transition_in as g,
|
|
1
|
+
import { SvelteComponent as E, init as O, safe_not_equal as C, assign as D, create_component as c, space as j, empty as H, mount_component as p, insert as h, get_spread_update as k, transition_in as g, transition_out as _, check_outros as R, destroy_component as d, detach as b, group_outros as w } from "../../../../vendor/svelte/internal/index.js";
|
|
2
2
|
import F from "./ExtraObjects.js";
|
|
3
3
|
import q from "../../../Components/BaseImage.js";
|
|
4
4
|
import B from "../../../Components/RoomHighlight/RoomHighlight.js";
|
|
@@ -83,9 +83,9 @@ function N(f) {
|
|
|
83
83
|
]) : {};
|
|
84
84
|
n.$set(v);
|
|
85
85
|
const I = {};
|
|
86
|
-
o & 32 && (I.extraObjects = e[5]), i.$set(I), e[3] ? r ? (r.p(e, o), o & 8 && g(r, 1)) : (r = x(e), r.c(), g(r, 1), r.m(t.parentNode, t)) : r && (
|
|
86
|
+
o & 32 && (I.extraObjects = e[5]), i.$set(I), e[3] ? r ? (r.p(e, o), o & 8 && g(r, 1)) : (r = x(e), r.c(), g(r, 1), r.m(t.parentNode, t)) : r && (w(), _(r, 1, 1, () => {
|
|
87
87
|
r = null;
|
|
88
|
-
}),
|
|
88
|
+
}), R());
|
|
89
89
|
},
|
|
90
90
|
i(e) {
|
|
91
91
|
a || (g(n.$$.fragment, e), g(i.$$.fragment, e), g(r), a = !0);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as j, init as k, safe_not_equal as $, append_styles as w, element as h, attr as _, insert as b, update_keyed_each as y,
|
|
1
|
+
import { SvelteComponent as j, init as k, safe_not_equal as $, append_styles as w, element as h, attr as _, insert as b, update_keyed_each as y, noop as u, detach as v, space as I, set_style as r, append as g, destroy_block as z } from "../../../../vendor/svelte/internal/index.js";
|
|
2
2
|
function x(a) {
|
|
3
3
|
w(a, "svelte-1i87fz7", ".plugin-pano-floorplan__extra-objects.svelte-1i87fz7{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.plugin-pano-floorplan__extra-object-item--position.svelte-1i87fz7{position:absolute;width:0;height:0}.plugin-pano-floorplan__extra-object-item.svelte-1i87fz7{transform:translate(-50%, -50%)}");
|
|
4
4
|
}
|
|
@@ -12,7 +12,7 @@ function m(a, t) {
|
|
|
12
12
|
key: a,
|
|
13
13
|
first: null,
|
|
14
14
|
c() {
|
|
15
|
-
e = h("div"), i = h("div"), l =
|
|
15
|
+
e = h("div"), i = h("div"), l = I(), _(i, "class", "plugin-pano-floorplan__extra-object-item svelte-1i87fz7"), r(i, "background-image", `url(${t[1].icon.url})`), r(i, "width", n, !1), r(i, "height", f, !1), _(e, "class", "plugin-pano-floorplan__extra-object-item--position svelte-1i87fz7"), r(e, "top", o, !1), r(e, "left", s, !1), this.first = e;
|
|
16
16
|
},
|
|
17
17
|
m(p, c) {
|
|
18
18
|
b(p, e, c), g(e, i), g(e, l);
|
|
@@ -45,7 +45,7 @@ function O(a) {
|
|
|
45
45
|
e[s].m(t, null);
|
|
46
46
|
},
|
|
47
47
|
p(l, [o]) {
|
|
48
|
-
o & 1 && (n = l[0], e = y(e, o, f, 1, l, n, i, t,
|
|
48
|
+
o & 1 && (n = l[0], e = y(e, o, f, 1, l, n, i, t, z, m, null, d));
|
|
49
49
|
},
|
|
50
50
|
i: u,
|
|
51
51
|
o: u,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as G, init as J, safe_not_equal as K, append_styles as L, empty as Q, insert as y, transition_in as u,
|
|
2
|
-
import { onMount as Y } from "svelte";
|
|
1
|
+
import { SvelteComponent as G, init as J, safe_not_equal as K, append_styles as L, empty as Q, insert as y, transition_in as u, transition_out as h, check_outros as M, detach as k, onMount as R, element as F, attr as N, add_render_callback as T, add_resize_listener as V, group_outros as P, assign as O, create_component as U, space as X, set_style as q, mount_component as C, append as Y, get_spread_update as H, destroy_component as S } from "../../../vendor/svelte/internal/index.js";
|
|
3
2
|
import Z from "./Camera.js";
|
|
4
3
|
import x from "./CurrentFloor/CurrentFloor.js";
|
|
5
4
|
import "../../Assets/camera.js";
|
|
@@ -18,15 +17,15 @@ function W(o) {
|
|
|
18
17
|
let t, l, n, e = o[6] !== 0 && A(o);
|
|
19
18
|
return {
|
|
20
19
|
c() {
|
|
21
|
-
t =
|
|
20
|
+
t = F("div"), e && e.c(), N(t, "class", "plugin-floorplan-radar svelte-1mvqyqq"), T(() => o[12].call(t));
|
|
22
21
|
},
|
|
23
22
|
m(i, f) {
|
|
24
|
-
y(i, t, f), e && e.m(t, null), l =
|
|
23
|
+
y(i, t, f), e && e.m(t, null), l = V(t, o[12].bind(t)), n = !0;
|
|
25
24
|
},
|
|
26
25
|
p(i, f) {
|
|
27
|
-
i[6] !== 0 ? e ? (e.p(i, f), f & 64 && u(e, 1)) : (e = A(i), e.c(), u(e, 1), e.m(t, null)) : e && (
|
|
26
|
+
i[6] !== 0 ? e ? (e.p(i, f), f & 64 && u(e, 1)) : (e = A(i), e.c(), u(e, 1), e.m(t, null)) : e && (P(), h(e, 1, 1, () => {
|
|
28
27
|
e = null;
|
|
29
|
-
}),
|
|
28
|
+
}), M());
|
|
30
29
|
},
|
|
31
30
|
i(i) {
|
|
32
31
|
n || (u(e), n = !0);
|
|
@@ -41,7 +40,7 @@ function W(o) {
|
|
|
41
40
|
}
|
|
42
41
|
function A(o) {
|
|
43
42
|
let t, l, n, e, i = `${o[8]}px`, f = `${o[11]}px`, c;
|
|
44
|
-
const
|
|
43
|
+
const d = [
|
|
45
44
|
{
|
|
46
45
|
five: o[0],
|
|
47
46
|
pxmm: o[9],
|
|
@@ -51,10 +50,10 @@ function A(o) {
|
|
|
51
50
|
extraObjects: o[5]
|
|
52
51
|
}
|
|
53
52
|
];
|
|
54
|
-
let
|
|
55
|
-
for (let r = 0; r <
|
|
56
|
-
|
|
57
|
-
l = new x({ props:
|
|
53
|
+
let p = {};
|
|
54
|
+
for (let r = 0; r < d.length; r += 1)
|
|
55
|
+
p = O(p, d[r]);
|
|
56
|
+
l = new x({ props: p });
|
|
58
57
|
const _ = [
|
|
59
58
|
{
|
|
60
59
|
pxmm: o[9],
|
|
@@ -68,13 +67,13 @@ function A(o) {
|
|
|
68
67
|
m = O(m, _[r]);
|
|
69
68
|
return e = new Z({ props: m }), {
|
|
70
69
|
c() {
|
|
71
|
-
t =
|
|
70
|
+
t = F("div"), U(l.$$.fragment), n = X(), U(e.$$.fragment), N(t, "class", "plugin-floorplan-radar-container svelte-1mvqyqq"), q(t, "width", i, !1), q(t, "height", f, !1);
|
|
72
71
|
},
|
|
73
72
|
m(r, s) {
|
|
74
|
-
y(r, t, s), C(l, t, null),
|
|
73
|
+
y(r, t, s), C(l, t, null), Y(t, n), C(e, t, null), c = !0;
|
|
75
74
|
},
|
|
76
75
|
p(r, s) {
|
|
77
|
-
const g = s & 1581 ? H(
|
|
76
|
+
const g = s & 1581 ? H(d, [
|
|
78
77
|
{
|
|
79
78
|
five: r[0],
|
|
80
79
|
pxmm: r[9],
|
|
@@ -116,9 +115,9 @@ function ee(o) {
|
|
|
116
115
|
n && n.m(e, i), y(e, t, i), l = !0;
|
|
117
116
|
},
|
|
118
117
|
p(e, [i]) {
|
|
119
|
-
e[1] ? n ? (n.p(e, i), i & 2 && u(n, 1)) : (n = W(e), n.c(), u(n, 1), n.m(t.parentNode, t)) : n && (
|
|
118
|
+
e[1] ? n ? (n.p(e, i), i & 2 && u(n, 1)) : (n = W(e), n.c(), u(n, 1), n.m(t.parentNode, t)) : n && (P(), h(n, 1, 1, () => {
|
|
120
119
|
n = null;
|
|
121
|
-
}),
|
|
120
|
+
}), M());
|
|
122
121
|
},
|
|
123
122
|
i(e) {
|
|
124
123
|
l || (u(n), l = !0);
|
|
@@ -133,24 +132,24 @@ function ee(o) {
|
|
|
133
132
|
}
|
|
134
133
|
function te(o, t, l) {
|
|
135
134
|
var w, D;
|
|
136
|
-
let { five: n } = t, { visible: e } = t, { hoverEnable: i } = t, { floorplanData: f } = t, { cameraImageUrl: c } = t, { extraObjects:
|
|
135
|
+
let { five: n } = t, { visible: e } = t, { hoverEnable: i } = t, { floorplanData: f } = t, { cameraImageUrl: c } = t, { extraObjects: d = [] } = t, p = 0, _ = (D = (w = n.work.observers[n.getCurrentState().panoIndex]) == null ? void 0 : w.floorIndex) != null ? D : 0, m = 0, r = 0, s = 0, g = 0;
|
|
137
136
|
function v(a) {
|
|
138
137
|
l(10, _ = n.work.observers[a].floorIndex);
|
|
139
138
|
}
|
|
140
|
-
|
|
139
|
+
R(() => (n.on("panoArrived", v), () => {
|
|
141
140
|
n.off("panoArrived", v);
|
|
142
141
|
}));
|
|
143
142
|
function B() {
|
|
144
143
|
m = this.clientWidth, r = this.clientHeight, l(6, m), l(7, r);
|
|
145
144
|
}
|
|
146
145
|
return o.$$set = (a) => {
|
|
147
|
-
"five" in a && l(0, n = a.five), "visible" in a && l(1, e = a.visible), "hoverEnable" in a && l(2, i = a.hoverEnable), "floorplanData" in a && l(3, f = a.floorplanData), "cameraImageUrl" in a && l(4, c = a.cameraImageUrl), "extraObjects" in a && l(5,
|
|
146
|
+
"five" in a && l(0, n = a.five), "visible" in a && l(1, e = a.visible), "hoverEnable" in a && l(2, i = a.hoverEnable), "floorplanData" in a && l(3, f = a.floorplanData), "cameraImageUrl" in a && l(4, c = a.cameraImageUrl), "extraObjects" in a && l(5, d = a.extraObjects);
|
|
148
147
|
}, o.$$.update = () => {
|
|
149
148
|
if (o.$$.dirty & 456) {
|
|
150
149
|
const a = Math.min(m, r), { max: j, min: z } = f.bounding, b = j.x - z.x, I = j.y - z.y, E = function() {
|
|
151
150
|
return b > I ? [a, a / b * I] : [a / I * b, a];
|
|
152
151
|
}();
|
|
153
|
-
l(8, s = E[0]), l(11, g = E[1]), l(9,
|
|
152
|
+
l(8, s = E[0]), l(11, g = E[1]), l(9, p = s / b);
|
|
154
153
|
}
|
|
155
154
|
}, [
|
|
156
155
|
n,
|
|
@@ -158,17 +157,17 @@ function te(o, t, l) {
|
|
|
158
157
|
i,
|
|
159
158
|
f,
|
|
160
159
|
c,
|
|
161
|
-
|
|
160
|
+
d,
|
|
162
161
|
m,
|
|
163
162
|
r,
|
|
164
163
|
s,
|
|
165
|
-
|
|
164
|
+
p,
|
|
166
165
|
_,
|
|
167
166
|
g,
|
|
168
167
|
B
|
|
169
168
|
];
|
|
170
169
|
}
|
|
171
|
-
class
|
|
170
|
+
class _e extends G {
|
|
172
171
|
constructor(t) {
|
|
173
172
|
super(), J(
|
|
174
173
|
this,
|
|
@@ -189,5 +188,5 @@ class he extends G {
|
|
|
189
188
|
}
|
|
190
189
|
}
|
|
191
190
|
export {
|
|
192
|
-
|
|
191
|
+
_e as default
|
|
193
192
|
};
|