@realsee/dnalogel 2.0.0-alpha.35 → 2.0.0-alpha.38
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/ItemLabelPlugin/index.js +21 -41
- package/dist/ModelItemLabelPlugin/index.js +16 -36
- package/dist/ModelViewPlugin/Plugin.d.ts +4 -4
- package/dist/ModelViewPlugin/index.js +2 -3
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +0 -4
- package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +0 -3
- package/dist/PanoMeasurePlugin/Modules/UIController/mobileHTML.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/{NewMainBtnController.d.ts → mobileMainBtnController.d.ts} +1 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -3
- package/dist/PanoMeasurePlugin/Modules/rangePiece/html.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +2 -0
- package/dist/PanoMeasurePlugin/index.js +298 -331
- package/dist/PanoMeasurePlugin/typings/data.d.ts +5 -0
- package/dist/PanoMeasurePlugin/utils/mouseGroup.d.ts +6 -1
- package/dist/PanoRulerProPlugin/Controller.d.ts +15 -0
- package/dist/PanoRulerProPlugin/index.d.ts +8 -0
- package/dist/PanoRulerProPlugin/index.js +1006 -0
- package/dist/PanoRulerProPlugin/typings.d.ts +46 -0
- package/dist/base/BasePlugin.d.ts +100 -0
- package/dist/base/BasePluginWithData.d.ts +34 -0
- package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +71 -78
- package/dist/floorplan/ModelFloorplanPlugin/index.d.ts +5 -7
- package/dist/floorplan/ModelFloorplanPlugin/index.js +1064 -567
- package/dist/floorplan/ModelFloorplanPlugin/typing.d.ts +107 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +23 -14
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.d.ts +5 -6
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +489 -129
- package/dist/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +52 -0
- package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +50 -58
- package/dist/floorplan/TopviewFloorplanPlugin/index.d.ts +5 -3
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +1031 -443
- package/dist/floorplan/TopviewFloorplanPlugin/typing.d.ts +86 -0
- package/{libs/floorplan/ModelFloorplanPlugin → dist/floorplan}/utils/constant.d.ts +10 -3
- package/{libs/floorplan/ModelFloorplanPlugin → dist/floorplan}/utils/correctFiveState.d.ts +2 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +3173 -1633
- package/dist/index.js +3194 -1653
- package/dist/index.umd.js +3090 -1549
- package/dist/shared-utils/five/changeMode.d.ts +4 -1
- package/dist/shared-utils/getPxmm.d.ts +8 -0
- package/dist/shared-utils/logger.d.ts +16 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/DIRECTION.html +1 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/Rotation.html +2 -2
- package/docs/index.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginExportType.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +7 -7
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +6 -6
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +1 -1
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerEntrance.html +7 -7
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +1 -1
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/LineJson.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
- package/docs/interfaces/ModelViewPluginExportType.html +1 -1
- package/docs/interfaces/OpenParameter.html +2 -2
- package/docs/interfaces/PanoCompassPluginData.html +1 -1
- package/docs/interfaces/PanoCompassPluginParameterType.html +1 -1
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +1 -1
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginExportType.html +1 -0
- package/docs/interfaces/PanoRulerProPluginOptions.html +1 -0
- package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -0
- package/docs/interfaces/PanoRulerProPluginState.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
- package/docs/interfaces/Point.html +1 -1
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/Room.html +1 -1
- package/docs/interfaces/RoomInfo.html +1 -1
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/modules.html +19 -27
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +21 -41
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +16 -36
- package/libs/ModelViewPlugin/Plugin.d.ts +4 -4
- package/libs/ModelViewPlugin/Plugin.js +2 -3
- package/libs/PanoMeasurePlugin/Controller/index.js +4 -2
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/GuideController.js +2 -2
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +0 -4
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +66 -55
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +0 -3
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +51 -73
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +7 -4
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +10 -12
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +2 -2
- package/libs/PanoMeasurePlugin/Modules/UIController/{NewMainBtnController.d.ts → mobileMainBtnController.d.ts} +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/{NewMainBtnController.js → mobileMainBtnController.js} +4 -4
- package/libs/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -3
- package/libs/PanoMeasurePlugin/Modules/UIController/style.js +7 -24
- package/libs/PanoMeasurePlugin/Modules/rangePiece/html.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +1 -2
- package/libs/PanoMeasurePlugin/typings/data.d.ts +5 -0
- package/libs/PanoMeasurePlugin/utils/mouseGroup.d.ts +6 -1
- package/libs/PanoMeasurePlugin/utils/mouseGroup.js +55 -7
- package/libs/PanoRulerProPlugin/Controller.d.ts +15 -0
- package/libs/PanoRulerProPlugin/Controller.js +110 -0
- package/libs/PanoRulerProPlugin/RulerItem.js +314 -0
- package/libs/PanoRulerProPlugin/RulerItems.js +377 -0
- package/libs/PanoRulerProPlugin/index.d.ts +8 -0
- package/libs/PanoRulerProPlugin/index.js +8 -0
- package/libs/PanoRulerProPlugin/typings.d.ts +46 -0
- package/libs/{floorplan/ModelFloorplanPlugin/typings/events.type.js → PanoRulerProPlugin/typings.js} +0 -0
- package/libs/base/BasePlugin.d.ts +100 -0
- package/libs/base/BasePlugin.js +31 -0
- package/libs/base/BasePluginWithData.d.ts +34 -0
- package/libs/base/BasePluginWithData.js +4 -0
- package/libs/floorplan/Components/Compass.js +11 -11
- package/libs/floorplan/Components/CurrentFloor.js +24 -11
- package/libs/floorplan/Components/Main.js +21 -15
- package/libs/floorplan/Components/RoomHighlight/Room.js +44 -5
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +29 -12
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +164 -15
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +68 -24
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +1 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +11 -9
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +2 -2
- package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +71 -78
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +439 -272
- package/libs/floorplan/ModelFloorplanPlugin/index.d.ts +5 -7
- package/libs/floorplan/ModelFloorplanPlugin/index.js +2 -2
- package/libs/floorplan/ModelFloorplanPlugin/typing.d.ts +107 -0
- package/libs/floorplan/ModelFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +5 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +114 -53
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +23 -14
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +162 -52
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.d.ts +5 -6
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +2 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +52 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/typing.js +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +50 -58
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +320 -174
- package/libs/floorplan/TopviewFloorplanPlugin/index.d.ts +5 -3
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +2 -2
- package/libs/floorplan/TopviewFloorplanPlugin/style.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/typing.d.ts +86 -0
- package/libs/floorplan/TopviewFloorplanPlugin/typing.js +1 -0
- package/{dist/floorplan/ModelFloorplanPlugin → libs/floorplan}/utils/constant.d.ts +10 -3
- package/libs/floorplan/{ModelFloorplanPlugin/utils → utils}/constant.js +9 -2
- package/{dist/floorplan/ModelFloorplanPlugin → libs/floorplan}/utils/correctFiveState.d.ts +2 -1
- package/libs/floorplan/{ModelFloorplanPlugin/utils → utils}/correctFiveState.js +16 -16
- package/libs/index.d.ts +1 -0
- package/libs/index.js +2 -0
- package/libs/shared-utils/five/changeMode.d.ts +4 -1
- package/libs/shared-utils/five/changeMode.js +34 -13
- package/libs/shared-utils/getPxmm.d.ts +8 -0
- package/libs/shared-utils/getPxmm.js +25 -20
- package/libs/shared-utils/logger.d.ts +16 -0
- package/libs/shared-utils/logger.js +47 -0
- package/package.json +2 -2
- package/dist/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +0 -23
- package/docs/classes/PanoFloorplanRadarPluginController.html +0 -3
- package/docs/enums/ModelFloorplanErrorType.html +0 -1
- package/docs/interfaces/ModelFloorplanParameterType.html +0 -1
- package/docs/interfaces/ModelFloorplanViewEvent.html +0 -5
- package/docs/interfaces/PanoFloorplanRadarPluginControllerParameter.html +0 -1
- package/docs/interfaces/TopviewFloorplanPluginParameterType.html +0 -19
- package/libs/ModelSimulationPlugin/index.d.ts +0 -33
- package/libs/ModelSimulationPlugin/index.js +0 -166
- package/libs/ModelSimulationPlugin/shaders/fragment.d.ts +0 -2
- package/libs/ModelSimulationPlugin/shaders/fragment.js +0 -96
- package/libs/ModelSimulationPlugin/shaders/vertex.d.ts +0 -2
- package/libs/ModelSimulationPlugin/shaders/vertex.js +0 -23
- package/libs/floorplan/ModelFloorplanPlugin/Assets/compass.d.ts +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Assets/compass.js +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.js +0 -120
- package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.js +0 -106
- package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.js +0 -463
- package/libs/floorplan/ModelFloorplanPlugin/Components/Main.js +0 -375
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.js +0 -171
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.js +0 -265
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.js +0 -301
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.js +0 -219
- package/libs/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +0 -23
- package/libs/shared-utils/five/useFivePlugin.d.ts +0 -1
- package/libs/shared-utils/five/useFivePlugin.js +0 -8
- package/libs/shared-utils/useDebounce.d.ts +0 -8
- package/libs/shared-utils/useDebounce.js +0 -22
- package/libs/shared-utils/useThrottle.d.ts +0 -8
- package/libs/shared-utils/useThrottle.js +0 -25
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
transition_out
|
|
23
23
|
} from "svelte/internal";
|
|
24
24
|
|
|
25
|
+
import { writable } from 'svelte/store';
|
|
25
26
|
import BaseImage from './BaseImage';
|
|
26
27
|
import RoomLabels from './RoomLabels/RoomLabels';
|
|
27
28
|
import RuleLabels from './RuleLabels/RuleLabels';
|
|
@@ -32,7 +33,7 @@ function add_css(target) {
|
|
|
32
33
|
append_styles(target, "svelte-1oamigj", ".floorplan-plugin__floor.svelte-1oamigj{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;pointer-events:none}.floorplan-plugin__floor--is-current.svelte-1oamigj{opacity:1;pointer-events:auto}");
|
|
33
34
|
}
|
|
34
35
|
|
|
35
|
-
// (
|
|
36
|
+
// (20:2) {#if hoverEnable}
|
|
36
37
|
function create_if_block_2(ctx) {
|
|
37
38
|
let roomhighlight;
|
|
38
39
|
let current;
|
|
@@ -40,7 +41,8 @@ function create_if_block_2(ctx) {
|
|
|
40
41
|
const roomhighlight_spread_levels = [
|
|
41
42
|
{
|
|
42
43
|
floorIndex: /*floorIndex*/ ctx[1],
|
|
43
|
-
floorplanData: /*floorplanData*/ ctx[5]
|
|
44
|
+
floorplanData: /*floorplanData*/ ctx[5],
|
|
45
|
+
hoveredRoom: /*hoveredRoom*/ ctx[8]
|
|
44
46
|
}
|
|
45
47
|
];
|
|
46
48
|
|
|
@@ -61,11 +63,12 @@ function create_if_block_2(ctx) {
|
|
|
61
63
|
current = true;
|
|
62
64
|
},
|
|
63
65
|
p(ctx, dirty) {
|
|
64
|
-
const roomhighlight_changes = (dirty & /*floorIndex, floorplanData*/
|
|
66
|
+
const roomhighlight_changes = (dirty & /*floorIndex, floorplanData, hoveredRoom*/ 290)
|
|
65
67
|
? get_spread_update(roomhighlight_spread_levels, [
|
|
66
68
|
{
|
|
67
69
|
floorIndex: /*floorIndex*/ ctx[1],
|
|
68
|
-
floorplanData: /*floorplanData*/ ctx[5]
|
|
70
|
+
floorplanData: /*floorplanData*/ ctx[5],
|
|
71
|
+
hoveredRoom: /*hoveredRoom*/ ctx[8]
|
|
69
72
|
}
|
|
70
73
|
])
|
|
71
74
|
: {};
|
|
@@ -87,7 +90,7 @@ function create_if_block_2(ctx) {
|
|
|
87
90
|
};
|
|
88
91
|
}
|
|
89
92
|
|
|
90
|
-
// (
|
|
93
|
+
// (24:2) {#if roomLabelsEnable}
|
|
91
94
|
function create_if_block_1(ctx) {
|
|
92
95
|
let roomlabels;
|
|
93
96
|
let current;
|
|
@@ -96,7 +99,9 @@ function create_if_block_1(ctx) {
|
|
|
96
99
|
{
|
|
97
100
|
floorplanData: /*floorplanData*/ ctx[5],
|
|
98
101
|
floorIndex: /*floorIndex*/ ctx[1],
|
|
99
|
-
getLabelElement: /*getLabelElement*/ ctx[6]
|
|
102
|
+
getLabelElement: /*getLabelElement*/ ctx[6],
|
|
103
|
+
hoveredRoom: /*hoveredRoom*/ ctx[8],
|
|
104
|
+
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[7]
|
|
100
105
|
}
|
|
101
106
|
];
|
|
102
107
|
|
|
@@ -117,12 +122,14 @@ function create_if_block_1(ctx) {
|
|
|
117
122
|
current = true;
|
|
118
123
|
},
|
|
119
124
|
p(ctx, dirty) {
|
|
120
|
-
const roomlabels_changes = (dirty & /*floorplanData, floorIndex, getLabelElement*/
|
|
125
|
+
const roomlabels_changes = (dirty & /*floorplanData, floorIndex, getLabelElement, hoveredRoom, adaptiveRoomLabelVisibleEnable*/ 482)
|
|
121
126
|
? get_spread_update(roomlabels_spread_levels, [
|
|
122
127
|
{
|
|
123
128
|
floorplanData: /*floorplanData*/ ctx[5],
|
|
124
129
|
floorIndex: /*floorIndex*/ ctx[1],
|
|
125
|
-
getLabelElement: /*getLabelElement*/ ctx[6]
|
|
130
|
+
getLabelElement: /*getLabelElement*/ ctx[6],
|
|
131
|
+
hoveredRoom: /*hoveredRoom*/ ctx[8],
|
|
132
|
+
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[7]
|
|
126
133
|
}
|
|
127
134
|
])
|
|
128
135
|
: {};
|
|
@@ -144,7 +151,7 @@ function create_if_block_1(ctx) {
|
|
|
144
151
|
};
|
|
145
152
|
}
|
|
146
153
|
|
|
147
|
-
// (
|
|
154
|
+
// (27:2) {#if ruleLabelsEnable}
|
|
148
155
|
function create_if_block(ctx) {
|
|
149
156
|
let rulelabels;
|
|
150
157
|
let current;
|
|
@@ -407,6 +414,8 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
407
414
|
let { ruleLabelsEnable } = $$props;
|
|
408
415
|
let { floorplanData } = $$props;
|
|
409
416
|
let { getLabelElement } = $$props;
|
|
417
|
+
let { adaptiveRoomLabelVisibleEnable } = $$props;
|
|
418
|
+
const hoveredRoom = writable(undefined);
|
|
410
419
|
|
|
411
420
|
$$self.$$set = $$props => {
|
|
412
421
|
if ('isCurrent' in $$props) $$invalidate(0, isCurrent = $$props.isCurrent);
|
|
@@ -416,6 +425,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
416
425
|
if ('ruleLabelsEnable' in $$props) $$invalidate(4, ruleLabelsEnable = $$props.ruleLabelsEnable);
|
|
417
426
|
if ('floorplanData' in $$props) $$invalidate(5, floorplanData = $$props.floorplanData);
|
|
418
427
|
if ('getLabelElement' in $$props) $$invalidate(6, getLabelElement = $$props.getLabelElement);
|
|
428
|
+
if ('adaptiveRoomLabelVisibleEnable' in $$props) $$invalidate(7, adaptiveRoomLabelVisibleEnable = $$props.adaptiveRoomLabelVisibleEnable);
|
|
419
429
|
};
|
|
420
430
|
|
|
421
431
|
return [
|
|
@@ -425,7 +435,9 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
425
435
|
roomLabelsEnable,
|
|
426
436
|
ruleLabelsEnable,
|
|
427
437
|
floorplanData,
|
|
428
|
-
getLabelElement
|
|
438
|
+
getLabelElement,
|
|
439
|
+
adaptiveRoomLabelVisibleEnable,
|
|
440
|
+
hoveredRoom
|
|
429
441
|
];
|
|
430
442
|
}
|
|
431
443
|
|
|
@@ -446,7 +458,8 @@ class Component extends SvelteComponent {
|
|
|
446
458
|
roomLabelsEnable: 3,
|
|
447
459
|
ruleLabelsEnable: 4,
|
|
448
460
|
floorplanData: 5,
|
|
449
|
-
getLabelElement: 6
|
|
461
|
+
getLabelElement: 6,
|
|
462
|
+
adaptiveRoomLabelVisibleEnable: 7
|
|
450
463
|
},
|
|
451
464
|
add_css
|
|
452
465
|
);
|
|
@@ -37,11 +37,11 @@ function add_css(target) {
|
|
|
37
37
|
|
|
38
38
|
function get_each_context(ctx, list, i) {
|
|
39
39
|
const child_ctx = ctx.slice();
|
|
40
|
-
child_ctx[
|
|
40
|
+
child_ctx[14] = list[i];
|
|
41
41
|
return child_ctx;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
// (
|
|
44
|
+
// (22:0) {#if visible}
|
|
45
45
|
function create_if_block(ctx) {
|
|
46
46
|
let div;
|
|
47
47
|
let t0;
|
|
@@ -108,7 +108,7 @@ function create_if_block(ctx) {
|
|
|
108
108
|
p(new_ctx, dirty) {
|
|
109
109
|
ctx = new_ctx;
|
|
110
110
|
|
|
111
|
-
if (dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, floorIndex*/
|
|
111
|
+
if (dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable, floorIndex*/ 13232) {
|
|
112
112
|
each_value = /*floorplanData*/ ctx[9].floorDatas;
|
|
113
113
|
let i;
|
|
114
114
|
|
|
@@ -214,7 +214,7 @@ function create_if_block(ctx) {
|
|
|
214
214
|
};
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
-
// (
|
|
217
|
+
// (24:4) {#each floorplanData.floorDatas as floorData}
|
|
218
218
|
function create_each_block(ctx) {
|
|
219
219
|
let currentfloor;
|
|
220
220
|
let current;
|
|
@@ -225,13 +225,14 @@ function create_each_block(ctx) {
|
|
|
225
225
|
floorplanData: /*floorplanData*/ ctx[9],
|
|
226
226
|
getLabelElement: /*getLabelElement*/ ctx[12],
|
|
227
227
|
roomLabelsEnable: /*roomLabelsEnable*/ ctx[7],
|
|
228
|
-
ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[8]
|
|
228
|
+
ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[8],
|
|
229
|
+
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[13]
|
|
229
230
|
},
|
|
230
231
|
{
|
|
231
|
-
floorIndex: /*floorData*/ ctx[
|
|
232
|
+
floorIndex: /*floorData*/ ctx[14].floorIndex
|
|
232
233
|
},
|
|
233
234
|
{
|
|
234
|
-
isCurrent: /*floorData*/ ctx[
|
|
235
|
+
isCurrent: /*floorData*/ ctx[14].floorIndex === /*floorIndex*/ ctx[4]
|
|
235
236
|
}
|
|
236
237
|
];
|
|
237
238
|
|
|
@@ -252,20 +253,21 @@ function create_each_block(ctx) {
|
|
|
252
253
|
current = true;
|
|
253
254
|
},
|
|
254
255
|
p(ctx, dirty) {
|
|
255
|
-
const currentfloor_changes = (dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, floorIndex*/
|
|
256
|
+
const currentfloor_changes = (dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable, floorIndex*/ 13232)
|
|
256
257
|
? get_spread_update(currentfloor_spread_levels, [
|
|
257
|
-
dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable*/
|
|
258
|
+
dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable*/ 13216 && {
|
|
258
259
|
hoverEnable: /*hoverEnable*/ ctx[5],
|
|
259
260
|
floorplanData: /*floorplanData*/ ctx[9],
|
|
260
261
|
getLabelElement: /*getLabelElement*/ ctx[12],
|
|
261
262
|
roomLabelsEnable: /*roomLabelsEnable*/ ctx[7],
|
|
262
|
-
ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[8]
|
|
263
|
+
ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[8],
|
|
264
|
+
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[13]
|
|
263
265
|
},
|
|
264
266
|
dirty & /*floorplanData*/ 512 && {
|
|
265
|
-
floorIndex: /*floorData*/ ctx[
|
|
267
|
+
floorIndex: /*floorData*/ ctx[14].floorIndex
|
|
266
268
|
},
|
|
267
269
|
dirty & /*floorplanData, floorIndex*/ 528 && {
|
|
268
|
-
isCurrent: /*floorData*/ ctx[
|
|
270
|
+
isCurrent: /*floorData*/ ctx[14].floorIndex === /*floorIndex*/ ctx[4]
|
|
269
271
|
}
|
|
270
272
|
])
|
|
271
273
|
: {};
|
|
@@ -287,7 +289,7 @@ function create_each_block(ctx) {
|
|
|
287
289
|
};
|
|
288
290
|
}
|
|
289
291
|
|
|
290
|
-
// (
|
|
292
|
+
// (39:4) {#if compassEnable}
|
|
291
293
|
function create_if_block_1(ctx) {
|
|
292
294
|
let compass;
|
|
293
295
|
let current;
|
|
@@ -397,6 +399,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
397
399
|
let { lastPanoramaLongitude } = $$props;
|
|
398
400
|
let { cameraImageUrl } = $$props;
|
|
399
401
|
let { getLabelElement } = $$props;
|
|
402
|
+
let { adaptiveRoomLabelVisibleEnable } = $$props;
|
|
400
403
|
|
|
401
404
|
$$self.$$set = $$props => {
|
|
402
405
|
if ('duration' in $$props) $$invalidate(0, duration = $$props.duration);
|
|
@@ -412,6 +415,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
412
415
|
if ('lastPanoramaLongitude' in $$props) $$invalidate(10, lastPanoramaLongitude = $$props.lastPanoramaLongitude);
|
|
413
416
|
if ('cameraImageUrl' in $$props) $$invalidate(11, cameraImageUrl = $$props.cameraImageUrl);
|
|
414
417
|
if ('getLabelElement' in $$props) $$invalidate(12, getLabelElement = $$props.getLabelElement);
|
|
418
|
+
if ('adaptiveRoomLabelVisibleEnable' in $$props) $$invalidate(13, adaptiveRoomLabelVisibleEnable = $$props.adaptiveRoomLabelVisibleEnable);
|
|
415
419
|
};
|
|
416
420
|
|
|
417
421
|
return [
|
|
@@ -427,7 +431,8 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
427
431
|
floorplanData,
|
|
428
432
|
lastPanoramaLongitude,
|
|
429
433
|
cameraImageUrl,
|
|
430
|
-
getLabelElement
|
|
434
|
+
getLabelElement,
|
|
435
|
+
adaptiveRoomLabelVisibleEnable
|
|
431
436
|
];
|
|
432
437
|
}
|
|
433
438
|
|
|
@@ -454,7 +459,8 @@ class Component extends SvelteComponent {
|
|
|
454
459
|
floorplanData: 9,
|
|
455
460
|
lastPanoramaLongitude: 10,
|
|
456
461
|
cameraImageUrl: 11,
|
|
457
|
-
getLabelElement: 12
|
|
462
|
+
getLabelElement: 12,
|
|
463
|
+
adaptiveRoomLabelVisibleEnable: 13
|
|
458
464
|
},
|
|
459
465
|
add_css
|
|
460
466
|
);
|
|
@@ -6,7 +6,9 @@ import {
|
|
|
6
6
|
detach,
|
|
7
7
|
init,
|
|
8
8
|
insert,
|
|
9
|
+
listen,
|
|
9
10
|
noop,
|
|
11
|
+
run_all,
|
|
10
12
|
safe_not_equal,
|
|
11
13
|
svg_element
|
|
12
14
|
} from "svelte/internal";
|
|
@@ -20,22 +22,35 @@ function add_css(target) {
|
|
|
20
22
|
function create_fragment(ctx) {
|
|
21
23
|
let path;
|
|
22
24
|
let path_fill_value;
|
|
25
|
+
let mounted;
|
|
26
|
+
let dispose;
|
|
23
27
|
|
|
24
28
|
return {
|
|
25
29
|
c() {
|
|
26
30
|
path = svg_element("path");
|
|
27
|
-
attr(path, "d", /*_pathD*/ ctx[
|
|
31
|
+
attr(path, "d", /*_pathD*/ ctx[2]);
|
|
28
32
|
attr(path, "fill", path_fill_value = `#fff`);
|
|
29
33
|
attr(path, "class", "svelte-11takew");
|
|
30
34
|
},
|
|
31
35
|
m(target, anchor) {
|
|
32
36
|
insert(target, path, anchor);
|
|
37
|
+
|
|
38
|
+
if (!mounted) {
|
|
39
|
+
dispose = [
|
|
40
|
+
listen(path, "mouseenter", /*onMouseEnter*/ ctx[0]),
|
|
41
|
+
listen(path, "mouseleave", /*onMouseLeave*/ ctx[1])
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
mounted = true;
|
|
45
|
+
}
|
|
33
46
|
},
|
|
34
47
|
p: noop,
|
|
35
48
|
i: noop,
|
|
36
49
|
o: noop,
|
|
37
50
|
d(detaching) {
|
|
38
51
|
if (detaching) detach(path);
|
|
52
|
+
mounted = false;
|
|
53
|
+
run_all(dispose);
|
|
39
54
|
}
|
|
40
55
|
};
|
|
41
56
|
}
|
|
@@ -43,6 +58,16 @@ function create_fragment(ctx) {
|
|
|
43
58
|
function instance($$self, $$props, $$invalidate) {
|
|
44
59
|
let { room } = $$props;
|
|
45
60
|
let { floorplanData } = $$props;
|
|
61
|
+
let { hoveredRoom } = $$props;
|
|
62
|
+
|
|
63
|
+
function onMouseEnter() {
|
|
64
|
+
hoveredRoom.set(room);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function onMouseLeave() {
|
|
68
|
+
hoveredRoom.set(undefined);
|
|
69
|
+
}
|
|
70
|
+
|
|
46
71
|
const { bounding } = floorplanData;
|
|
47
72
|
|
|
48
73
|
const _pathD = pathD(room.path, {
|
|
@@ -51,17 +76,31 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
51
76
|
});
|
|
52
77
|
|
|
53
78
|
$$self.$$set = $$props => {
|
|
54
|
-
if ('room' in $$props) $$invalidate(
|
|
55
|
-
if ('floorplanData' in $$props) $$invalidate(
|
|
79
|
+
if ('room' in $$props) $$invalidate(3, room = $$props.room);
|
|
80
|
+
if ('floorplanData' in $$props) $$invalidate(4, floorplanData = $$props.floorplanData);
|
|
81
|
+
if ('hoveredRoom' in $$props) $$invalidate(5, hoveredRoom = $$props.hoveredRoom);
|
|
56
82
|
};
|
|
57
83
|
|
|
58
|
-
return [_pathD, room, floorplanData];
|
|
84
|
+
return [onMouseEnter, onMouseLeave, _pathD, room, floorplanData, hoveredRoom];
|
|
59
85
|
}
|
|
60
86
|
|
|
61
87
|
class Component extends SvelteComponent {
|
|
62
88
|
constructor(options) {
|
|
63
89
|
super();
|
|
64
|
-
|
|
90
|
+
|
|
91
|
+
init(
|
|
92
|
+
this,
|
|
93
|
+
options,
|
|
94
|
+
instance,
|
|
95
|
+
create_fragment,
|
|
96
|
+
safe_not_equal,
|
|
97
|
+
{
|
|
98
|
+
room: 3,
|
|
99
|
+
floorplanData: 4,
|
|
100
|
+
hoveredRoom: 5
|
|
101
|
+
},
|
|
102
|
+
add_css
|
|
103
|
+
);
|
|
65
104
|
}
|
|
66
105
|
}
|
|
67
106
|
|
|
@@ -32,11 +32,11 @@ function add_css(target) {
|
|
|
32
32
|
|
|
33
33
|
function get_each_context(ctx, list, i) {
|
|
34
34
|
const child_ctx = ctx.slice();
|
|
35
|
-
child_ctx[
|
|
35
|
+
child_ctx[5] = list[i];
|
|
36
36
|
return child_ctx;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
// (
|
|
39
|
+
// (11:4) {#each floorplanData.floorDatas[floorIndex].rooms as room (room.id)}
|
|
40
40
|
function create_each_block(key_1, ctx) {
|
|
41
41
|
let first;
|
|
42
42
|
let room;
|
|
@@ -44,8 +44,9 @@ function create_each_block(key_1, ctx) {
|
|
|
44
44
|
|
|
45
45
|
const room_spread_levels = [
|
|
46
46
|
{
|
|
47
|
-
room: /*room*/ ctx[
|
|
48
|
-
floorplanData: /*floorplanData*/ ctx[1]
|
|
47
|
+
room: /*room*/ ctx[5],
|
|
48
|
+
floorplanData: /*floorplanData*/ ctx[1],
|
|
49
|
+
hoveredRoom: /*hoveredRoom*/ ctx[2]
|
|
49
50
|
}
|
|
50
51
|
];
|
|
51
52
|
|
|
@@ -73,11 +74,12 @@ function create_each_block(key_1, ctx) {
|
|
|
73
74
|
p(new_ctx, dirty) {
|
|
74
75
|
ctx = new_ctx;
|
|
75
76
|
|
|
76
|
-
const room_changes = (dirty & /*floorplanData, floorIndex*/
|
|
77
|
+
const room_changes = (dirty & /*floorplanData, floorIndex, hoveredRoom*/ 7)
|
|
77
78
|
? get_spread_update(room_spread_levels, [
|
|
78
79
|
{
|
|
79
|
-
room: /*room*/ ctx[
|
|
80
|
-
floorplanData: /*floorplanData*/ ctx[1]
|
|
80
|
+
room: /*room*/ ctx[5],
|
|
81
|
+
floorplanData: /*floorplanData*/ ctx[1],
|
|
82
|
+
hoveredRoom: /*hoveredRoom*/ ctx[2]
|
|
81
83
|
}
|
|
82
84
|
])
|
|
83
85
|
: {};
|
|
@@ -108,7 +110,7 @@ function create_fragment(ctx) {
|
|
|
108
110
|
let svg_viewBox_value;
|
|
109
111
|
let current;
|
|
110
112
|
let each_value = /*floorplanData*/ ctx[1].floorDatas[/*floorIndex*/ ctx[0]].rooms;
|
|
111
|
-
const get_key = ctx => /*room*/ ctx[
|
|
113
|
+
const get_key = ctx => /*room*/ ctx[5].id;
|
|
112
114
|
|
|
113
115
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
114
116
|
let child_ctx = get_each_context(ctx, each_value, i);
|
|
@@ -127,7 +129,7 @@ function create_fragment(ctx) {
|
|
|
127
129
|
|
|
128
130
|
attr(svg, "width", "100%");
|
|
129
131
|
attr(svg, "height", "100%");
|
|
130
|
-
attr(svg, "viewBox", svg_viewBox_value = `0 0 ${/*boundingWidth*/ ctx[
|
|
132
|
+
attr(svg, "viewBox", svg_viewBox_value = `0 0 ${/*boundingWidth*/ ctx[3]} ${/*boundingHeight*/ ctx[4]}`);
|
|
131
133
|
attr(svg, "class", "svelte-1tk06jk");
|
|
132
134
|
attr(div, "class", "floorplan-plugin__room-highlight svelte-1tk06jk");
|
|
133
135
|
},
|
|
@@ -142,7 +144,7 @@ function create_fragment(ctx) {
|
|
|
142
144
|
current = true;
|
|
143
145
|
},
|
|
144
146
|
p(ctx, [dirty]) {
|
|
145
|
-
if (dirty & /*floorplanData, floorIndex*/
|
|
147
|
+
if (dirty & /*floorplanData, floorIndex, hoveredRoom*/ 7) {
|
|
146
148
|
each_value = /*floorplanData*/ ctx[1].floorDatas[/*floorIndex*/ ctx[0]].rooms;
|
|
147
149
|
group_outros();
|
|
148
150
|
each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, svg, outro_and_destroy_block, create_each_block, null, get_each_context);
|
|
@@ -178,21 +180,36 @@ function create_fragment(ctx) {
|
|
|
178
180
|
function instance($$self, $$props, $$invalidate) {
|
|
179
181
|
let { floorIndex } = $$props;
|
|
180
182
|
let { floorplanData } = $$props;
|
|
183
|
+
let { hoveredRoom } = $$props;
|
|
181
184
|
const boundingWidth = floorplanData.bounding.max.x - floorplanData.bounding.min.x;
|
|
182
185
|
const boundingHeight = floorplanData.bounding.max.y - floorplanData.bounding.min.y;
|
|
183
186
|
|
|
184
187
|
$$self.$$set = $$props => {
|
|
185
188
|
if ('floorIndex' in $$props) $$invalidate(0, floorIndex = $$props.floorIndex);
|
|
186
189
|
if ('floorplanData' in $$props) $$invalidate(1, floorplanData = $$props.floorplanData);
|
|
190
|
+
if ('hoveredRoom' in $$props) $$invalidate(2, hoveredRoom = $$props.hoveredRoom);
|
|
187
191
|
};
|
|
188
192
|
|
|
189
|
-
return [floorIndex, floorplanData, boundingWidth, boundingHeight];
|
|
193
|
+
return [floorIndex, floorplanData, hoveredRoom, boundingWidth, boundingHeight];
|
|
190
194
|
}
|
|
191
195
|
|
|
192
196
|
class Component extends SvelteComponent {
|
|
193
197
|
constructor(options) {
|
|
194
198
|
super();
|
|
195
|
-
|
|
199
|
+
|
|
200
|
+
init(
|
|
201
|
+
this,
|
|
202
|
+
options,
|
|
203
|
+
instance,
|
|
204
|
+
create_fragment,
|
|
205
|
+
safe_not_equal,
|
|
206
|
+
{
|
|
207
|
+
floorIndex: 0,
|
|
208
|
+
floorplanData: 1,
|
|
209
|
+
hoveredRoom: 2
|
|
210
|
+
},
|
|
211
|
+
add_css
|
|
212
|
+
);
|
|
196
213
|
}
|
|
197
214
|
}
|
|
198
215
|
|