@realsee/dnalogel 2.0.0-alpha.16 → 2.0.0-alpha.19
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/CHANGELOG.md +13 -0
- package/dist/CSS3DRenderPlugin/index.d.ts +2 -2
- package/dist/CameraMovementPlugin/index.js +15 -40
- package/dist/CameraMovementPlugin/typing.d.ts +1 -1
- package/dist/ModelChassisCompassPlugin/index.js +3 -28
- package/dist/ModelEntryDoorGuidePlugin/index.d.ts +1 -1
- package/dist/ModelEntryDoorGuidePlugin/index.js +8 -33
- package/dist/ModelItemLabelPlugin/events.type.d.ts +2 -2
- package/dist/ModelItemLabelPlugin/index.js +8 -8
- package/dist/ModelItemLabelPlugin/typings.d.ts +2 -2
- package/dist/ModelItemLabelPlugin/utils/parseData.d.ts +1 -1
- package/dist/ModelRoomLabelPlugin/index.js +6 -6
- package/dist/ModelRoomLabelPlugin/utils/parseData.d.ts +1 -1
- package/dist/ModelTVVideoPlugin/index.d.ts +1 -1
- package/dist/ModelTVVideoPlugin/index.js +3 -28
- package/dist/PanoCompassPlugin/index.js +53 -86
- package/dist/PanoCursorRaycasterPlugin/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -8
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +2 -2
- package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +3 -3
- package/dist/PanoMeasurePlugin/Model/index.d.ts +2 -2
- package/dist/PanoMeasurePlugin/Model/line.d.ts +5 -5
- package/dist/PanoMeasurePlugin/Model/point.d.ts +2 -2
- package/dist/PanoMeasurePlugin/Model/polyline.d.ts +3 -3
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +2 -2
- package/dist/PanoMeasurePlugin/Modules/FiveHelper.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +2 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/index.js +1 -21
- package/dist/PanoMeasurePlugin/typings/event.type.d.ts +4 -4
- package/dist/PanoMeasurePlugin/utils/clearGroup.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/constants.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +3 -3
- package/dist/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/findClosestPoint.d.ts +3 -3
- package/dist/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +2 -2
- package/dist/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/line.d.ts +1 -1
- package/dist/PanoRulerPlugin/index.d.ts +1 -1
- package/dist/PanoRulerPlugin/index.js +3 -28
- package/dist/PanoSpatialTagPlugin/index.js +11 -11
- package/dist/PanoSpatialTagPlugin/typings.d.ts +1 -1
- package/dist/floorplan/{ModelFloorplanPlugin/Assets → Assets}/compass.d.ts +0 -0
- package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +2 -2
- package/dist/floorplan/ModelFloorplanPlugin/index.js +1266 -1298
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +81 -204
- package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +28 -15
- package/dist/floorplan/TopviewFloorplanPlugin/index.d.ts +1 -1
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +1257 -1250
- package/dist/floorplan/utils/formatPosition.d.ts +1 -1
- package/dist/index.es.js +1480 -1507
- package/dist/index.js +1477 -1504
- package/dist/index.umd.js +1477 -1504
- package/dist/shared-utils/three/getExtraModelLoader.d.ts +1 -1
- package/dist/shared-utils/three/getNormal.d.ts +1 -1
- package/dist/shared-utils/three/getTextureLoader.d.ts +1 -1
- package/dist/shared-utils/three/loadFbxObj.d.ts +1 -1
- package/dist/shared-utils/vectorTocoordinates.d.ts +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/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/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/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 +19 -1
- package/docs/modules.html +12 -12
- package/libs/CSS3DRenderPlugin/index.d.ts +2 -2
- package/libs/CameraMovementPlugin/index.js +15 -24
- package/libs/CameraMovementPlugin/typing.d.ts +1 -1
- package/libs/ModelChassisCompassPlugin/index.js +3 -12
- package/libs/ModelEntryDoorGuidePlugin/index.d.ts +1 -1
- package/libs/ModelEntryDoorGuidePlugin/index.js +8 -17
- package/libs/ModelItemLabelPlugin/events.type.d.ts +2 -2
- package/libs/ModelItemLabelPlugin/typings.d.ts +2 -2
- package/libs/ModelItemLabelPlugin/utils/parseData.d.ts +1 -1
- package/libs/ModelRoomLabelPlugin/utils/parseData.d.ts +1 -1
- package/libs/ModelTVVideoPlugin/index.d.ts +1 -1
- package/libs/ModelTVVideoPlugin/index.js +3 -12
- package/libs/ModelTVVideoPlugin/typings.js +1 -0
- package/libs/PanoCompassPlugin/index.js +49 -64
- package/libs/PanoCursorRaycasterPlugin/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -8
- package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -1
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +2 -2
- package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +3 -3
- package/libs/PanoMeasurePlugin/Model/index.d.ts +2 -2
- package/libs/PanoMeasurePlugin/Model/line.d.ts +5 -5
- package/libs/PanoMeasurePlugin/Model/line.js +1 -1
- package/libs/PanoMeasurePlugin/Model/point.d.ts +2 -2
- package/libs/PanoMeasurePlugin/Model/polyline.d.ts +3 -3
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +2 -2
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +2 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/typings/event.type.d.ts +4 -4
- package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/constants.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +3 -3
- package/libs/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.d.ts +3 -3
- package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +2 -2
- package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/line.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/mouseGroup.js +1 -0
- package/libs/PanoRulerPlugin/index.d.ts +1 -1
- package/libs/PanoRulerPlugin/index.js +3 -12
- package/libs/PanoSpatialTagPlugin/typings.d.ts +1 -1
- package/libs/floorplan/{ModelFloorplanPlugin/Assets → Assets}/compass.d.ts +0 -0
- package/libs/floorplan/{ModelFloorplanPlugin/Assets → Assets}/compass.js +0 -0
- package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/Camera.js +2 -2
- package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/Compass.js +0 -0
- package/libs/floorplan/{ModelFloorplanPlugin/Components/CurrentFloor → Components}/CurrentFloor.js +73 -80
- package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/Main.js +186 -105
- package/libs/floorplan/Components/RoomHighlight/Room.js +5 -7
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +24 -116
- package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/RoomLabels/RoomLabel.js +0 -0
- package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/RoomLabels/RoomLabels.js +2 -2
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +26 -22
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +284 -0
- package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/RuleLabels/RuleLabels.js +82 -32
- package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +2 -2
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +34 -43
- package/libs/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +22 -33
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -12
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +28 -15
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +80 -54
- package/libs/floorplan/TopviewFloorplanPlugin/index.d.ts +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/style.js +0 -1
- package/libs/floorplan/utils/formatData.js +28 -43
- package/libs/floorplan/utils/formatPosition.d.ts +1 -1
- package/libs/floorplan/utils/formatPosition.js +2 -2
- package/libs/shared-utils/five/changeMode.js +12 -23
- package/libs/shared-utils/three/getExtraModelLoader.d.ts +1 -1
- package/libs/shared-utils/three/getNormal.d.ts +1 -1
- package/libs/shared-utils/three/getTextureLoader.d.ts +1 -1
- package/libs/shared-utils/three/loadFbxObj.d.ts +1 -1
- package/libs/shared-utils/three/loadFbxObj.js +9 -20
- package/libs/shared-utils/three/loadTexture.js +6 -17
- package/libs/shared-utils/to.js +10 -21
- package/libs/shared-utils/vectorTocoordinates.d.ts +1 -1
- package/package.json +3 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.js +0 -301
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
create_component,
|
|
11
11
|
create_in_transition,
|
|
12
12
|
destroy_component,
|
|
13
|
+
destroy_each,
|
|
13
14
|
detach,
|
|
14
15
|
element,
|
|
15
16
|
empty,
|
|
@@ -24,54 +25,47 @@ import {
|
|
|
24
25
|
transition_out
|
|
25
26
|
} from "svelte/internal";
|
|
26
27
|
|
|
27
|
-
import Camera from './Camera';
|
|
28
|
-
import Compass from './Compass';
|
|
29
|
-
import CurrentFloor from './CurrentFloor/CurrentFloor';
|
|
30
28
|
import { linear } from 'svelte/easing';
|
|
31
29
|
import { fade } from 'svelte/transition';
|
|
30
|
+
import Camera from './Camera';
|
|
31
|
+
import Compass from './Compass';
|
|
32
|
+
import CurrentFloor from './CurrentFloor';
|
|
32
33
|
|
|
33
34
|
function add_css(target) {
|
|
34
35
|
append_styles(target, "svelte-177x2q7", ".floorplan-main.svelte-177x2q7{width:100%;height:100%}");
|
|
35
36
|
}
|
|
36
37
|
|
|
37
|
-
|
|
38
|
+
function get_each_context(ctx, list, i) {
|
|
39
|
+
const child_ctx = ctx.slice();
|
|
40
|
+
child_ctx[13] = list[i];
|
|
41
|
+
return child_ctx;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// (21:0) {#if visible}
|
|
38
45
|
function create_if_block(ctx) {
|
|
39
46
|
let div;
|
|
40
|
-
let currentfloor;
|
|
41
47
|
let t0;
|
|
42
48
|
let camera;
|
|
43
49
|
let t1;
|
|
44
50
|
let div_intro;
|
|
45
51
|
let current;
|
|
52
|
+
let each_value = /*floorplanData*/ ctx[9].floorDatas;
|
|
53
|
+
let each_blocks = [];
|
|
46
54
|
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
}
|
|
59
|
-
];
|
|
60
|
-
|
|
61
|
-
let currentfloor_props = {};
|
|
62
|
-
|
|
63
|
-
for (let i = 0; i < currentfloor_spread_levels.length; i += 1) {
|
|
64
|
-
currentfloor_props = assign(currentfloor_props, currentfloor_spread_levels[i]);
|
|
55
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
56
|
+
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
|
65
57
|
}
|
|
66
58
|
|
|
67
|
-
|
|
59
|
+
const out = i => transition_out(each_blocks[i], 1, 1, () => {
|
|
60
|
+
each_blocks[i] = null;
|
|
61
|
+
});
|
|
68
62
|
|
|
69
63
|
const camera_spread_levels = [
|
|
70
64
|
{
|
|
71
|
-
panoIndex: /*panoIndex*/ ctx[
|
|
72
|
-
floorplanData: /*floorplanData*/ ctx[
|
|
73
|
-
lastPanoramaLongitude: /*lastPanoramaLongitude*/ ctx[
|
|
74
|
-
cameraImageUrl: /*cameraImageUrl*/ ctx[
|
|
65
|
+
panoIndex: /*panoIndex*/ ctx[3],
|
|
66
|
+
floorplanData: /*floorplanData*/ ctx[9],
|
|
67
|
+
lastPanoramaLongitude: /*lastPanoramaLongitude*/ ctx[10],
|
|
68
|
+
cameraImageUrl: /*cameraImageUrl*/ ctx[11]
|
|
75
69
|
}
|
|
76
70
|
];
|
|
77
71
|
|
|
@@ -82,12 +76,16 @@ function create_if_block(ctx) {
|
|
|
82
76
|
}
|
|
83
77
|
|
|
84
78
|
camera = new Camera({ props: camera_props });
|
|
85
|
-
let if_block = /*compassEnable*/ ctx[
|
|
79
|
+
let if_block = /*compassEnable*/ ctx[6] && create_if_block_1(ctx);
|
|
86
80
|
|
|
87
81
|
return {
|
|
88
82
|
c() {
|
|
89
83
|
div = element("div");
|
|
90
|
-
|
|
84
|
+
|
|
85
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
86
|
+
each_blocks[i].c();
|
|
87
|
+
}
|
|
88
|
+
|
|
91
89
|
t0 = space();
|
|
92
90
|
create_component(camera.$$.fragment);
|
|
93
91
|
t1 = space();
|
|
@@ -96,7 +94,11 @@ function create_if_block(ctx) {
|
|
|
96
94
|
},
|
|
97
95
|
m(target, anchor) {
|
|
98
96
|
insert(target, div, anchor);
|
|
99
|
-
|
|
97
|
+
|
|
98
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
99
|
+
each_blocks[i].m(div, null);
|
|
100
|
+
}
|
|
101
|
+
|
|
100
102
|
append(div, t0);
|
|
101
103
|
mount_component(camera, div, null);
|
|
102
104
|
append(div, t1);
|
|
@@ -106,42 +108,51 @@ function create_if_block(ctx) {
|
|
|
106
108
|
p(new_ctx, dirty) {
|
|
107
109
|
ctx = new_ctx;
|
|
108
110
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
111
|
+
if (dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, floorIndex*/ 5040) {
|
|
112
|
+
each_value = /*floorplanData*/ ctx[9].floorDatas;
|
|
113
|
+
let i;
|
|
114
|
+
|
|
115
|
+
for (i = 0; i < each_value.length; i += 1) {
|
|
116
|
+
const child_ctx = get_each_context(ctx, each_value, i);
|
|
117
|
+
|
|
118
|
+
if (each_blocks[i]) {
|
|
119
|
+
each_blocks[i].p(child_ctx, dirty);
|
|
120
|
+
transition_in(each_blocks[i], 1);
|
|
121
|
+
} else {
|
|
122
|
+
each_blocks[i] = create_each_block(child_ctx);
|
|
123
|
+
each_blocks[i].c();
|
|
124
|
+
transition_in(each_blocks[i], 1);
|
|
125
|
+
each_blocks[i].m(div, t0);
|
|
121
126
|
}
|
|
122
|
-
|
|
123
|
-
: {};
|
|
127
|
+
}
|
|
124
128
|
|
|
125
|
-
|
|
129
|
+
group_outros();
|
|
126
130
|
|
|
127
|
-
|
|
131
|
+
for (i = each_value.length; i < each_blocks.length; i += 1) {
|
|
132
|
+
out(i);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
check_outros();
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
const camera_changes = (dirty & /*panoIndex, floorplanData, lastPanoramaLongitude, cameraImageUrl*/ 3592)
|
|
128
139
|
? get_spread_update(camera_spread_levels, [
|
|
129
140
|
{
|
|
130
|
-
panoIndex: /*panoIndex*/ ctx[
|
|
131
|
-
floorplanData: /*floorplanData*/ ctx[
|
|
132
|
-
lastPanoramaLongitude: /*lastPanoramaLongitude*/ ctx[
|
|
133
|
-
cameraImageUrl: /*cameraImageUrl*/ ctx[
|
|
141
|
+
panoIndex: /*panoIndex*/ ctx[3],
|
|
142
|
+
floorplanData: /*floorplanData*/ ctx[9],
|
|
143
|
+
lastPanoramaLongitude: /*lastPanoramaLongitude*/ ctx[10],
|
|
144
|
+
cameraImageUrl: /*cameraImageUrl*/ ctx[11]
|
|
134
145
|
}
|
|
135
146
|
])
|
|
136
147
|
: {};
|
|
137
148
|
|
|
138
149
|
camera.$set(camera_changes);
|
|
139
150
|
|
|
140
|
-
if (/*compassEnable*/ ctx[
|
|
151
|
+
if (/*compassEnable*/ ctx[6]) {
|
|
141
152
|
if (if_block) {
|
|
142
153
|
if_block.p(ctx, dirty);
|
|
143
154
|
|
|
144
|
-
if (dirty & /*compassEnable*/
|
|
155
|
+
if (dirty & /*compassEnable*/ 64) {
|
|
145
156
|
transition_in(if_block, 1);
|
|
146
157
|
}
|
|
147
158
|
} else {
|
|
@@ -162,14 +173,18 @@ function create_if_block(ctx) {
|
|
|
162
173
|
},
|
|
163
174
|
i(local) {
|
|
164
175
|
if (current) return;
|
|
165
|
-
|
|
176
|
+
|
|
177
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
178
|
+
transition_in(each_blocks[i]);
|
|
179
|
+
}
|
|
180
|
+
|
|
166
181
|
transition_in(camera.$$.fragment, local);
|
|
167
182
|
transition_in(if_block);
|
|
168
183
|
|
|
169
184
|
if (!div_intro) {
|
|
170
185
|
add_render_callback(() => {
|
|
171
186
|
div_intro = create_in_transition(div, fade, {
|
|
172
|
-
duration: /*duration*/ ctx[
|
|
187
|
+
duration: /*duration*/ ctx[0],
|
|
173
188
|
easing: linear
|
|
174
189
|
});
|
|
175
190
|
|
|
@@ -180,29 +195,107 @@ function create_if_block(ctx) {
|
|
|
180
195
|
current = true;
|
|
181
196
|
},
|
|
182
197
|
o(local) {
|
|
183
|
-
|
|
198
|
+
each_blocks = each_blocks.filter(Boolean);
|
|
199
|
+
|
|
200
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
201
|
+
transition_out(each_blocks[i]);
|
|
202
|
+
}
|
|
203
|
+
|
|
184
204
|
transition_out(camera.$$.fragment, local);
|
|
185
205
|
transition_out(if_block);
|
|
186
206
|
current = false;
|
|
187
207
|
},
|
|
188
208
|
d(detaching) {
|
|
189
209
|
if (detaching) detach(div);
|
|
190
|
-
|
|
210
|
+
destroy_each(each_blocks, detaching);
|
|
191
211
|
destroy_component(camera);
|
|
192
212
|
if (if_block) if_block.d();
|
|
193
213
|
}
|
|
194
214
|
};
|
|
195
215
|
}
|
|
196
216
|
|
|
197
|
-
// (
|
|
217
|
+
// (23:4) {#each floorplanData.floorDatas as floorData}
|
|
218
|
+
function create_each_block(ctx) {
|
|
219
|
+
let currentfloor;
|
|
220
|
+
let current;
|
|
221
|
+
|
|
222
|
+
const currentfloor_spread_levels = [
|
|
223
|
+
{
|
|
224
|
+
hoverEnable: /*hoverEnable*/ ctx[5],
|
|
225
|
+
floorplanData: /*floorplanData*/ ctx[9],
|
|
226
|
+
getLabelElement: /*getLabelElement*/ ctx[12],
|
|
227
|
+
roomLabelsEnable: /*roomLabelsEnable*/ ctx[7],
|
|
228
|
+
ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[8]
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
floorIndex: /*floorData*/ ctx[13].floorIndex
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
isCurrent: /*floorData*/ ctx[13].floorIndex === /*floorIndex*/ ctx[4]
|
|
235
|
+
}
|
|
236
|
+
];
|
|
237
|
+
|
|
238
|
+
let currentfloor_props = {};
|
|
239
|
+
|
|
240
|
+
for (let i = 0; i < currentfloor_spread_levels.length; i += 1) {
|
|
241
|
+
currentfloor_props = assign(currentfloor_props, currentfloor_spread_levels[i]);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
currentfloor = new CurrentFloor({ props: currentfloor_props });
|
|
245
|
+
|
|
246
|
+
return {
|
|
247
|
+
c() {
|
|
248
|
+
create_component(currentfloor.$$.fragment);
|
|
249
|
+
},
|
|
250
|
+
m(target, anchor) {
|
|
251
|
+
mount_component(currentfloor, target, anchor);
|
|
252
|
+
current = true;
|
|
253
|
+
},
|
|
254
|
+
p(ctx, dirty) {
|
|
255
|
+
const currentfloor_changes = (dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, floorIndex*/ 5040)
|
|
256
|
+
? get_spread_update(currentfloor_spread_levels, [
|
|
257
|
+
dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable*/ 5024 && {
|
|
258
|
+
hoverEnable: /*hoverEnable*/ ctx[5],
|
|
259
|
+
floorplanData: /*floorplanData*/ ctx[9],
|
|
260
|
+
getLabelElement: /*getLabelElement*/ ctx[12],
|
|
261
|
+
roomLabelsEnable: /*roomLabelsEnable*/ ctx[7],
|
|
262
|
+
ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[8]
|
|
263
|
+
},
|
|
264
|
+
dirty & /*floorplanData*/ 512 && {
|
|
265
|
+
floorIndex: /*floorData*/ ctx[13].floorIndex
|
|
266
|
+
},
|
|
267
|
+
dirty & /*floorplanData, floorIndex*/ 528 && {
|
|
268
|
+
isCurrent: /*floorData*/ ctx[13].floorIndex === /*floorIndex*/ ctx[4]
|
|
269
|
+
}
|
|
270
|
+
])
|
|
271
|
+
: {};
|
|
272
|
+
|
|
273
|
+
currentfloor.$set(currentfloor_changes);
|
|
274
|
+
},
|
|
275
|
+
i(local) {
|
|
276
|
+
if (current) return;
|
|
277
|
+
transition_in(currentfloor.$$.fragment, local);
|
|
278
|
+
current = true;
|
|
279
|
+
},
|
|
280
|
+
o(local) {
|
|
281
|
+
transition_out(currentfloor.$$.fragment, local);
|
|
282
|
+
current = false;
|
|
283
|
+
},
|
|
284
|
+
d(detaching) {
|
|
285
|
+
destroy_component(currentfloor, detaching);
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
// (37:4) {#if compassEnable}
|
|
198
291
|
function create_if_block_1(ctx) {
|
|
199
292
|
let compass;
|
|
200
293
|
let current;
|
|
201
294
|
|
|
202
295
|
compass = new Compass({
|
|
203
296
|
props: {
|
|
204
|
-
floorplanData: /*floorplanData*/ ctx[
|
|
205
|
-
northDesc: /*northDesc*/ ctx[
|
|
297
|
+
floorplanData: /*floorplanData*/ ctx[9],
|
|
298
|
+
northDesc: /*northDesc*/ ctx[2]
|
|
206
299
|
}
|
|
207
300
|
});
|
|
208
301
|
|
|
@@ -216,8 +309,8 @@ function create_if_block_1(ctx) {
|
|
|
216
309
|
},
|
|
217
310
|
p(ctx, dirty) {
|
|
218
311
|
const compass_changes = {};
|
|
219
|
-
if (dirty & /*floorplanData*/
|
|
220
|
-
if (dirty & /*northDesc*/
|
|
312
|
+
if (dirty & /*floorplanData*/ 512) compass_changes.floorplanData = /*floorplanData*/ ctx[9];
|
|
313
|
+
if (dirty & /*northDesc*/ 4) compass_changes.northDesc = /*northDesc*/ ctx[2];
|
|
221
314
|
compass.$set(compass_changes);
|
|
222
315
|
},
|
|
223
316
|
i(local) {
|
|
@@ -238,7 +331,7 @@ function create_if_block_1(ctx) {
|
|
|
238
331
|
function create_fragment(ctx) {
|
|
239
332
|
let if_block_anchor;
|
|
240
333
|
let current;
|
|
241
|
-
let if_block = /*visible*/ ctx[
|
|
334
|
+
let if_block = /*visible*/ ctx[1] && create_if_block(ctx);
|
|
242
335
|
|
|
243
336
|
return {
|
|
244
337
|
c() {
|
|
@@ -251,11 +344,11 @@ function create_fragment(ctx) {
|
|
|
251
344
|
current = true;
|
|
252
345
|
},
|
|
253
346
|
p(ctx, [dirty]) {
|
|
254
|
-
if (/*visible*/ ctx[
|
|
347
|
+
if (/*visible*/ ctx[1]) {
|
|
255
348
|
if (if_block) {
|
|
256
349
|
if_block.p(ctx, dirty);
|
|
257
350
|
|
|
258
|
-
if (dirty & /*visible*/
|
|
351
|
+
if (dirty & /*visible*/ 2) {
|
|
259
352
|
transition_in(if_block, 1);
|
|
260
353
|
}
|
|
261
354
|
} else {
|
|
@@ -291,11 +384,9 @@ function create_fragment(ctx) {
|
|
|
291
384
|
}
|
|
292
385
|
|
|
293
386
|
function instance($$self, $$props, $$invalidate) {
|
|
294
|
-
let { northDesc } = $$props;
|
|
295
|
-
let { pxmm } = $$props;
|
|
296
|
-
let { five } = $$props;
|
|
297
387
|
let { duration = 0 } = $$props;
|
|
298
388
|
let { visible } = $$props;
|
|
389
|
+
let { northDesc } = $$props;
|
|
299
390
|
let { panoIndex } = $$props;
|
|
300
391
|
let { floorIndex } = $$props;
|
|
301
392
|
let { hoverEnable } = $$props;
|
|
@@ -305,34 +396,28 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
305
396
|
let { floorplanData } = $$props;
|
|
306
397
|
let { lastPanoramaLongitude } = $$props;
|
|
307
398
|
let { cameraImageUrl } = $$props;
|
|
308
|
-
let { onRoomHeightClick } = $$props;
|
|
309
399
|
let { getLabelElement } = $$props;
|
|
310
400
|
|
|
311
401
|
$$self.$$set = $$props => {
|
|
312
|
-
if ('
|
|
313
|
-
if ('
|
|
314
|
-
if ('
|
|
315
|
-
if ('
|
|
316
|
-
if ('
|
|
317
|
-
if ('
|
|
318
|
-
if ('
|
|
319
|
-
if ('
|
|
320
|
-
if ('
|
|
321
|
-
if ('
|
|
322
|
-
if ('
|
|
323
|
-
if ('
|
|
324
|
-
if ('
|
|
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);
|
|
402
|
+
if ('duration' in $$props) $$invalidate(0, duration = $$props.duration);
|
|
403
|
+
if ('visible' in $$props) $$invalidate(1, visible = $$props.visible);
|
|
404
|
+
if ('northDesc' in $$props) $$invalidate(2, northDesc = $$props.northDesc);
|
|
405
|
+
if ('panoIndex' in $$props) $$invalidate(3, panoIndex = $$props.panoIndex);
|
|
406
|
+
if ('floorIndex' in $$props) $$invalidate(4, floorIndex = $$props.floorIndex);
|
|
407
|
+
if ('hoverEnable' in $$props) $$invalidate(5, hoverEnable = $$props.hoverEnable);
|
|
408
|
+
if ('compassEnable' in $$props) $$invalidate(6, compassEnable = $$props.compassEnable);
|
|
409
|
+
if ('roomLabelsEnable' in $$props) $$invalidate(7, roomLabelsEnable = $$props.roomLabelsEnable);
|
|
410
|
+
if ('ruleLabelsEnable' in $$props) $$invalidate(8, ruleLabelsEnable = $$props.ruleLabelsEnable);
|
|
411
|
+
if ('floorplanData' in $$props) $$invalidate(9, floorplanData = $$props.floorplanData);
|
|
412
|
+
if ('lastPanoramaLongitude' in $$props) $$invalidate(10, lastPanoramaLongitude = $$props.lastPanoramaLongitude);
|
|
413
|
+
if ('cameraImageUrl' in $$props) $$invalidate(11, cameraImageUrl = $$props.cameraImageUrl);
|
|
414
|
+
if ('getLabelElement' in $$props) $$invalidate(12, getLabelElement = $$props.getLabelElement);
|
|
328
415
|
};
|
|
329
416
|
|
|
330
417
|
return [
|
|
331
|
-
northDesc,
|
|
332
|
-
pxmm,
|
|
333
|
-
five,
|
|
334
418
|
duration,
|
|
335
419
|
visible,
|
|
420
|
+
northDesc,
|
|
336
421
|
panoIndex,
|
|
337
422
|
floorIndex,
|
|
338
423
|
hoverEnable,
|
|
@@ -342,7 +427,6 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
342
427
|
floorplanData,
|
|
343
428
|
lastPanoramaLongitude,
|
|
344
429
|
cameraImageUrl,
|
|
345
|
-
onRoomHeightClick,
|
|
346
430
|
getLabelElement
|
|
347
431
|
];
|
|
348
432
|
}
|
|
@@ -358,22 +442,19 @@ class Component extends SvelteComponent {
|
|
|
358
442
|
create_fragment,
|
|
359
443
|
safe_not_equal,
|
|
360
444
|
{
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
cameraImageUrl: 13,
|
|
375
|
-
onRoomHeightClick: 14,
|
|
376
|
-
getLabelElement: 15
|
|
445
|
+
duration: 0,
|
|
446
|
+
visible: 1,
|
|
447
|
+
northDesc: 2,
|
|
448
|
+
panoIndex: 3,
|
|
449
|
+
floorIndex: 4,
|
|
450
|
+
hoverEnable: 5,
|
|
451
|
+
compassEnable: 6,
|
|
452
|
+
roomLabelsEnable: 7,
|
|
453
|
+
ruleLabelsEnable: 8,
|
|
454
|
+
floorplanData: 9,
|
|
455
|
+
lastPanoramaLongitude: 10,
|
|
456
|
+
cameraImageUrl: 11,
|
|
457
|
+
getLabelElement: 12
|
|
377
458
|
},
|
|
378
459
|
add_css
|
|
379
460
|
);
|
|
@@ -41,29 +41,27 @@ function create_fragment(ctx) {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
function instance($$self, $$props, $$invalidate) {
|
|
44
|
-
let { pxmm } = $$props;
|
|
45
44
|
let { room } = $$props;
|
|
46
45
|
let { floorplanData } = $$props;
|
|
47
46
|
const { bounding } = floorplanData;
|
|
48
47
|
|
|
49
48
|
const _pathD = pathD(room.path, {
|
|
50
49
|
needZ: true,
|
|
51
|
-
format: vector => formatFloorplanPoint(vector,
|
|
50
|
+
format: vector => formatFloorplanPoint(vector, bounding)
|
|
52
51
|
});
|
|
53
52
|
|
|
54
53
|
$$self.$$set = $$props => {
|
|
55
|
-
if ('
|
|
56
|
-
if ('
|
|
57
|
-
if ('floorplanData' in $$props) $$invalidate(3, floorplanData = $$props.floorplanData);
|
|
54
|
+
if ('room' in $$props) $$invalidate(1, room = $$props.room);
|
|
55
|
+
if ('floorplanData' in $$props) $$invalidate(2, floorplanData = $$props.floorplanData);
|
|
58
56
|
};
|
|
59
57
|
|
|
60
|
-
return [_pathD,
|
|
58
|
+
return [_pathD, room, floorplanData];
|
|
61
59
|
}
|
|
62
60
|
|
|
63
61
|
class Component extends SvelteComponent {
|
|
64
62
|
constructor(options) {
|
|
65
63
|
super();
|
|
66
|
-
init(this, options, instance, create_fragment, safe_not_equal, {
|
|
64
|
+
init(this, options, instance, create_fragment, safe_not_equal, { room: 1, floorplanData: 2 }, add_css);
|
|
67
65
|
}
|
|
68
66
|
}
|
|
69
67
|
|