@realsee/dnalogel 2.0.0-alpha.10 → 2.0.0-alpha.13
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/CSS3DRenderPlugin/index.js +17 -14
- package/dist/CameraMovementPlugin/index.js +40 -15
- package/dist/ModelChassisCompassPlugin/index.js +32 -6
- package/dist/ModelEntryDoorGuidePlugin/index.js +48 -18
- package/dist/ModelItemLabelPlugin/events.type.d.ts +9 -0
- package/dist/ModelItemLabelPlugin/index.d.ts +4 -0
- package/dist/ModelItemLabelPlugin/index.js +679 -0
- package/dist/ModelItemLabelPlugin/typings.d.ts +55 -0
- package/dist/ModelItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/dist/ModelRoomLabelPlugin/index.js +71 -28
- package/dist/PanoCompassPlugin/index.js +311 -164
- package/dist/PanoCursorRaycasterPlugin/index.js +5 -3
- package/dist/PanoMeasurePlugin/index.js +1337 -583
- package/dist/PanoRulerPlugin/index.js +32 -5
- package/dist/PanoSpatialTagPlugin/index.js +73 -38
- package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +1 -0
- package/dist/floorplan/ModelFloorplanPlugin/index.js +678 -439
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +164 -72
- package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +1 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +403 -230
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +3596 -1612
- package/dist/index.js +3602 -1616
- package/dist/index.umd.js +3605 -1620
- package/docs/assets/main.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/ModelRoomLabelController.html +6 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ModelFloorplanErrorType.html +1 -1
- package/docs/index.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/ModelFloorplanParameterType.html +1 -1
- package/docs/interfaces/ModelFloorplanViewEvent.html +2 -2
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/PanoCompassPluginData.html +1 -1
- package/docs/interfaces/PanoCompassPluginParameterType.html +1 -1
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/TopviewFloorplanPluginParameterType.html +1 -1
- package/docs/modules.html +12 -12
- package/libs/CSS3DRenderPlugin/index.js +16 -13
- package/libs/CameraMovementPlugin/index.js +24 -15
- package/libs/ModelChassisCompassPlugin/index.js +14 -5
- package/libs/ModelEntryDoorGuidePlugin/index.js +24 -12
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +422 -0
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +133 -0
- package/libs/ModelItemLabelPlugin/events.type.d.ts +9 -0
- package/libs/ModelItemLabelPlugin/events.type.js +1 -0
- package/libs/ModelItemLabelPlugin/index.d.ts +4 -0
- package/libs/ModelItemLabelPlugin/index.js +172 -0
- package/libs/ModelItemLabelPlugin/typings.d.ts +55 -0
- package/libs/ModelItemLabelPlugin/typings.js +6 -0
- package/libs/ModelItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/libs/ModelItemLabelPlugin/utils/parseData.js +4 -0
- package/libs/ModelRoomLabelPlugin/Controller.js +64 -23
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +7 -5
- package/libs/PanoCompassPlugin/index.js +225 -128
- package/libs/PanoCursorRaycasterPlugin/index.js +5 -3
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +68 -13
- package/libs/PanoMeasurePlugin/Controller/EditController.js +267 -154
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +40 -20
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +234 -152
- package/libs/PanoMeasurePlugin/Controller/index.js +131 -47
- package/libs/PanoMeasurePlugin/Model/index.js +30 -5
- package/libs/PanoMeasurePlugin/Model/line.js +60 -10
- package/libs/PanoMeasurePlugin/Model/point.js +24 -4
- package/libs/PanoMeasurePlugin/Model/polyline.js +20 -3
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +59 -14
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +23 -8
- package/libs/PanoMeasurePlugin/Modules/GuideController.js +61 -26
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +60 -10
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +83 -37
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +52 -17
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +61 -30
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +3 -2
- package/libs/PanoMeasurePlugin/utils/line.js +8 -7
- package/libs/PanoRulerPlugin/index.js +16 -5
- package/libs/PanoSpatialTagPlugin/Components/tag.js +9 -9
- package/libs/PanoSpatialTagPlugin/index.js +11 -9
- package/libs/floorplan/Components/BaseImage.js +10 -5
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +3 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +5 -6
- package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.js +24 -11
- package/libs/floorplan/ModelFloorplanPlugin/Components/Main.js +77 -69
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.js +3 -1
- package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +1 -0
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +457 -273
- package/libs/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +33 -22
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +3 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +97 -36
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +232 -108
- package/libs/floorplan/utils/formatData.js +43 -28
- package/libs/floorplan/utils/formatPosition.js +1 -1
- package/libs/index.d.ts +1 -0
- package/libs/index.js +2 -0
- package/libs/shared-utils/Subscribe.js +8 -1
- package/libs/shared-utils/animationFrame/BetterTween.js +47 -18
- package/libs/shared-utils/createCanvasTextTexture.js +6 -5
- package/libs/shared-utils/five/changeMode.js +23 -12
- package/libs/shared-utils/getPxmm.js +1 -1
- package/libs/shared-utils/math/evenNumber.js +1 -1
- package/libs/shared-utils/three/loadFbxObj.js +20 -9
- package/libs/shared-utils/three/loadTexture.js +17 -6
- package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +2 -1
- package/libs/shared-utils/tinyEJSrender.js +36 -6
- package/libs/shared-utils/to.js +21 -10
- package/libs/shared-utils/useDebounce.js +1 -1
- package/libs/shared-utils/useThrottle.js +2 -1
- package/package.json +2 -2
- package/CHANGELOG.md +0 -34
|
@@ -34,7 +34,7 @@ function add_css(target) {
|
|
|
34
34
|
append_styles(target, "svelte-177x2q7", ".floorplan-main.svelte-177x2q7{width:100%;height:100%}");
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
// (
|
|
37
|
+
// (24:0) {#if visible}
|
|
38
38
|
function create_if_block(ctx) {
|
|
39
39
|
let div;
|
|
40
40
|
let currentfloor;
|
|
@@ -46,15 +46,15 @@ function create_if_block(ctx) {
|
|
|
46
46
|
|
|
47
47
|
const currentfloor_spread_levels = [
|
|
48
48
|
{
|
|
49
|
-
five: /*five*/ ctx[
|
|
50
|
-
pxmm: /*pxmm*/ ctx[
|
|
51
|
-
floorIndex: /*floorIndex*/ ctx[
|
|
52
|
-
hoverEnable: /*hoverEnable*/ ctx[
|
|
53
|
-
floorplanData: /*floorplanData*/ ctx[
|
|
54
|
-
getLabelElement: /*getLabelElement*/ ctx[
|
|
55
|
-
roomLabelsEnable: /*roomLabelsEnable*/ ctx[
|
|
56
|
-
ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[
|
|
57
|
-
onRoomHeightClick: /*onRoomHeightClick*/ ctx[
|
|
49
|
+
five: /*five*/ ctx[2],
|
|
50
|
+
pxmm: /*pxmm*/ ctx[1],
|
|
51
|
+
floorIndex: /*floorIndex*/ ctx[6],
|
|
52
|
+
hoverEnable: /*hoverEnable*/ ctx[7],
|
|
53
|
+
floorplanData: /*floorplanData*/ ctx[11],
|
|
54
|
+
getLabelElement: /*getLabelElement*/ ctx[15],
|
|
55
|
+
roomLabelsEnable: /*roomLabelsEnable*/ ctx[9],
|
|
56
|
+
ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[10],
|
|
57
|
+
onRoomHeightClick: /*onRoomHeightClick*/ ctx[14]
|
|
58
58
|
}
|
|
59
59
|
];
|
|
60
60
|
|
|
@@ -68,10 +68,10 @@ function create_if_block(ctx) {
|
|
|
68
68
|
|
|
69
69
|
const camera_spread_levels = [
|
|
70
70
|
{
|
|
71
|
-
panoIndex: /*panoIndex*/ ctx[
|
|
72
|
-
floorplanData: /*floorplanData*/ ctx[
|
|
73
|
-
lastPanoramaLongitude: /*lastPanoramaLongitude*/ ctx[
|
|
74
|
-
cameraImageUrl: /*cameraImageUrl*/ ctx[
|
|
71
|
+
panoIndex: /*panoIndex*/ ctx[5],
|
|
72
|
+
floorplanData: /*floorplanData*/ ctx[11],
|
|
73
|
+
lastPanoramaLongitude: /*lastPanoramaLongitude*/ ctx[12],
|
|
74
|
+
cameraImageUrl: /*cameraImageUrl*/ ctx[13]
|
|
75
75
|
}
|
|
76
76
|
];
|
|
77
77
|
|
|
@@ -82,7 +82,7 @@ function create_if_block(ctx) {
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
camera = new Camera({ props: camera_props });
|
|
85
|
-
let if_block = /*compassEnable*/ ctx[
|
|
85
|
+
let if_block = /*compassEnable*/ ctx[8] && create_if_block_1(ctx);
|
|
86
86
|
|
|
87
87
|
return {
|
|
88
88
|
c() {
|
|
@@ -106,42 +106,42 @@ function create_if_block(ctx) {
|
|
|
106
106
|
p(new_ctx, dirty) {
|
|
107
107
|
ctx = new_ctx;
|
|
108
108
|
|
|
109
|
-
const currentfloor_changes = (dirty & /*five, pxmm, floorIndex, hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, onRoomHeightClick*/
|
|
109
|
+
const currentfloor_changes = (dirty & /*five, pxmm, floorIndex, hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, onRoomHeightClick*/ 52934)
|
|
110
110
|
? get_spread_update(currentfloor_spread_levels, [
|
|
111
111
|
{
|
|
112
|
-
five: /*five*/ ctx[
|
|
113
|
-
pxmm: /*pxmm*/ ctx[
|
|
114
|
-
floorIndex: /*floorIndex*/ ctx[
|
|
115
|
-
hoverEnable: /*hoverEnable*/ ctx[
|
|
116
|
-
floorplanData: /*floorplanData*/ ctx[
|
|
117
|
-
getLabelElement: /*getLabelElement*/ ctx[
|
|
118
|
-
roomLabelsEnable: /*roomLabelsEnable*/ ctx[
|
|
119
|
-
ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[
|
|
120
|
-
onRoomHeightClick: /*onRoomHeightClick*/ ctx[
|
|
112
|
+
five: /*five*/ ctx[2],
|
|
113
|
+
pxmm: /*pxmm*/ ctx[1],
|
|
114
|
+
floorIndex: /*floorIndex*/ ctx[6],
|
|
115
|
+
hoverEnable: /*hoverEnable*/ ctx[7],
|
|
116
|
+
floorplanData: /*floorplanData*/ ctx[11],
|
|
117
|
+
getLabelElement: /*getLabelElement*/ ctx[15],
|
|
118
|
+
roomLabelsEnable: /*roomLabelsEnable*/ ctx[9],
|
|
119
|
+
ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[10],
|
|
120
|
+
onRoomHeightClick: /*onRoomHeightClick*/ ctx[14]
|
|
121
121
|
}
|
|
122
122
|
])
|
|
123
123
|
: {};
|
|
124
124
|
|
|
125
125
|
currentfloor.$set(currentfloor_changes);
|
|
126
126
|
|
|
127
|
-
const camera_changes = (dirty & /*panoIndex, floorplanData, lastPanoramaLongitude, cameraImageUrl*/
|
|
127
|
+
const camera_changes = (dirty & /*panoIndex, floorplanData, lastPanoramaLongitude, cameraImageUrl*/ 14368)
|
|
128
128
|
? get_spread_update(camera_spread_levels, [
|
|
129
129
|
{
|
|
130
|
-
panoIndex: /*panoIndex*/ ctx[
|
|
131
|
-
floorplanData: /*floorplanData*/ ctx[
|
|
132
|
-
lastPanoramaLongitude: /*lastPanoramaLongitude*/ ctx[
|
|
133
|
-
cameraImageUrl: /*cameraImageUrl*/ ctx[
|
|
130
|
+
panoIndex: /*panoIndex*/ ctx[5],
|
|
131
|
+
floorplanData: /*floorplanData*/ ctx[11],
|
|
132
|
+
lastPanoramaLongitude: /*lastPanoramaLongitude*/ ctx[12],
|
|
133
|
+
cameraImageUrl: /*cameraImageUrl*/ ctx[13]
|
|
134
134
|
}
|
|
135
135
|
])
|
|
136
136
|
: {};
|
|
137
137
|
|
|
138
138
|
camera.$set(camera_changes);
|
|
139
139
|
|
|
140
|
-
if (/*compassEnable*/ ctx[
|
|
140
|
+
if (/*compassEnable*/ ctx[8]) {
|
|
141
141
|
if (if_block) {
|
|
142
142
|
if_block.p(ctx, dirty);
|
|
143
143
|
|
|
144
|
-
if (dirty & /*compassEnable*/
|
|
144
|
+
if (dirty & /*compassEnable*/ 256) {
|
|
145
145
|
transition_in(if_block, 1);
|
|
146
146
|
}
|
|
147
147
|
} else {
|
|
@@ -169,7 +169,7 @@ function create_if_block(ctx) {
|
|
|
169
169
|
if (!div_intro) {
|
|
170
170
|
add_render_callback(() => {
|
|
171
171
|
div_intro = create_in_transition(div, fade, {
|
|
172
|
-
duration: /*duration*/ ctx[
|
|
172
|
+
duration: /*duration*/ ctx[3],
|
|
173
173
|
easing: linear
|
|
174
174
|
});
|
|
175
175
|
|
|
@@ -194,13 +194,16 @@ function create_if_block(ctx) {
|
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
-
// (
|
|
197
|
+
// (40:4) {#if compassEnable}
|
|
198
198
|
function create_if_block_1(ctx) {
|
|
199
199
|
let compass;
|
|
200
200
|
let current;
|
|
201
201
|
|
|
202
202
|
compass = new Compass({
|
|
203
|
-
props: {
|
|
203
|
+
props: {
|
|
204
|
+
floorplanData: /*floorplanData*/ ctx[11],
|
|
205
|
+
northDesc: /*northDesc*/ ctx[0]
|
|
206
|
+
}
|
|
204
207
|
});
|
|
205
208
|
|
|
206
209
|
return {
|
|
@@ -213,7 +216,8 @@ function create_if_block_1(ctx) {
|
|
|
213
216
|
},
|
|
214
217
|
p(ctx, dirty) {
|
|
215
218
|
const compass_changes = {};
|
|
216
|
-
if (dirty & /*floorplanData*/
|
|
219
|
+
if (dirty & /*floorplanData*/ 2048) compass_changes.floorplanData = /*floorplanData*/ ctx[11];
|
|
220
|
+
if (dirty & /*northDesc*/ 1) compass_changes.northDesc = /*northDesc*/ ctx[0];
|
|
217
221
|
compass.$set(compass_changes);
|
|
218
222
|
},
|
|
219
223
|
i(local) {
|
|
@@ -234,7 +238,7 @@ function create_if_block_1(ctx) {
|
|
|
234
238
|
function create_fragment(ctx) {
|
|
235
239
|
let if_block_anchor;
|
|
236
240
|
let current;
|
|
237
|
-
let if_block = /*visible*/ ctx[
|
|
241
|
+
let if_block = /*visible*/ ctx[4] && create_if_block(ctx);
|
|
238
242
|
|
|
239
243
|
return {
|
|
240
244
|
c() {
|
|
@@ -247,11 +251,11 @@ function create_fragment(ctx) {
|
|
|
247
251
|
current = true;
|
|
248
252
|
},
|
|
249
253
|
p(ctx, [dirty]) {
|
|
250
|
-
if (/*visible*/ ctx[
|
|
254
|
+
if (/*visible*/ ctx[4]) {
|
|
251
255
|
if (if_block) {
|
|
252
256
|
if_block.p(ctx, dirty);
|
|
253
257
|
|
|
254
|
-
if (dirty & /*visible*/
|
|
258
|
+
if (dirty & /*visible*/ 16) {
|
|
255
259
|
transition_in(if_block, 1);
|
|
256
260
|
}
|
|
257
261
|
} else {
|
|
@@ -287,6 +291,7 @@ function create_fragment(ctx) {
|
|
|
287
291
|
}
|
|
288
292
|
|
|
289
293
|
function instance($$self, $$props, $$invalidate) {
|
|
294
|
+
let { northDesc } = $$props;
|
|
290
295
|
let { pxmm } = $$props;
|
|
291
296
|
let { five } = $$props;
|
|
292
297
|
let { duration = 0 } = $$props;
|
|
@@ -304,24 +309,26 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
304
309
|
let { getLabelElement } = $$props;
|
|
305
310
|
|
|
306
311
|
$$self.$$set = $$props => {
|
|
307
|
-
if ('
|
|
308
|
-
if ('
|
|
309
|
-
if ('
|
|
310
|
-
if ('
|
|
311
|
-
if ('
|
|
312
|
-
if ('
|
|
313
|
-
if ('
|
|
314
|
-
if ('
|
|
315
|
-
if ('
|
|
316
|
-
if ('
|
|
317
|
-
if ('
|
|
318
|
-
if ('
|
|
319
|
-
if ('
|
|
320
|
-
if ('
|
|
321
|
-
if ('
|
|
312
|
+
if ('northDesc' in $$props) $$invalidate(0, northDesc = $$props.northDesc);
|
|
313
|
+
if ('pxmm' in $$props) $$invalidate(1, pxmm = $$props.pxmm);
|
|
314
|
+
if ('five' in $$props) $$invalidate(2, five = $$props.five);
|
|
315
|
+
if ('duration' in $$props) $$invalidate(3, duration = $$props.duration);
|
|
316
|
+
if ('visible' in $$props) $$invalidate(4, visible = $$props.visible);
|
|
317
|
+
if ('panoIndex' in $$props) $$invalidate(5, panoIndex = $$props.panoIndex);
|
|
318
|
+
if ('floorIndex' in $$props) $$invalidate(6, floorIndex = $$props.floorIndex);
|
|
319
|
+
if ('hoverEnable' in $$props) $$invalidate(7, hoverEnable = $$props.hoverEnable);
|
|
320
|
+
if ('compassEnable' in $$props) $$invalidate(8, compassEnable = $$props.compassEnable);
|
|
321
|
+
if ('roomLabelsEnable' in $$props) $$invalidate(9, roomLabelsEnable = $$props.roomLabelsEnable);
|
|
322
|
+
if ('ruleLabelsEnable' in $$props) $$invalidate(10, ruleLabelsEnable = $$props.ruleLabelsEnable);
|
|
323
|
+
if ('floorplanData' in $$props) $$invalidate(11, floorplanData = $$props.floorplanData);
|
|
324
|
+
if ('lastPanoramaLongitude' in $$props) $$invalidate(12, lastPanoramaLongitude = $$props.lastPanoramaLongitude);
|
|
325
|
+
if ('cameraImageUrl' in $$props) $$invalidate(13, cameraImageUrl = $$props.cameraImageUrl);
|
|
326
|
+
if ('onRoomHeightClick' in $$props) $$invalidate(14, onRoomHeightClick = $$props.onRoomHeightClick);
|
|
327
|
+
if ('getLabelElement' in $$props) $$invalidate(15, getLabelElement = $$props.getLabelElement);
|
|
322
328
|
};
|
|
323
329
|
|
|
324
330
|
return [
|
|
331
|
+
northDesc,
|
|
325
332
|
pxmm,
|
|
326
333
|
five,
|
|
327
334
|
duration,
|
|
@@ -351,21 +358,22 @@ class Component extends SvelteComponent {
|
|
|
351
358
|
create_fragment,
|
|
352
359
|
safe_not_equal,
|
|
353
360
|
{
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
361
|
+
northDesc: 0,
|
|
362
|
+
pxmm: 1,
|
|
363
|
+
five: 2,
|
|
364
|
+
duration: 3,
|
|
365
|
+
visible: 4,
|
|
366
|
+
panoIndex: 5,
|
|
367
|
+
floorIndex: 6,
|
|
368
|
+
hoverEnable: 7,
|
|
369
|
+
compassEnable: 8,
|
|
370
|
+
roomLabelsEnable: 9,
|
|
371
|
+
ruleLabelsEnable: 10,
|
|
372
|
+
floorplanData: 11,
|
|
373
|
+
lastPanoramaLongitude: 12,
|
|
374
|
+
cameraImageUrl: 13,
|
|
375
|
+
onRoomHeightClick: 14,
|
|
376
|
+
getLabelElement: 15
|
|
369
377
|
},
|
|
370
378
|
add_css
|
|
371
379
|
);
|
|
@@ -154,7 +154,9 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
154
154
|
|
|
155
155
|
$$self.$$.update = () => {
|
|
156
156
|
if ($$self.$$.dirty & /*getLabelElement, room*/ 3) {
|
|
157
|
-
$: $$invalidate(2, userConfigElement = getLabelElement
|
|
157
|
+
$: $$invalidate(2, userConfigElement = getLabelElement === null || getLabelElement === void 0
|
|
158
|
+
? void 0
|
|
159
|
+
: getLabelElement(room));
|
|
158
160
|
}
|
|
159
161
|
};
|
|
160
162
|
|
|
@@ -4,6 +4,7 @@ import type { FloorplanServerData } from '../typings/floorplanServerData';
|
|
|
4
4
|
import type { FloorplanRoomItem } from '../typings/floorplanData';
|
|
5
5
|
import { FLOOR_PLAN_ATTACHED_TO } from '../constant';
|
|
6
6
|
export interface ModelFloorplanParameterType {
|
|
7
|
+
northDesc?: string;
|
|
7
8
|
selector?: string | Element;
|
|
8
9
|
scale?: number;
|
|
9
10
|
modelOpacity?: number;
|