@realsee/dnalogel 2.0.0-alpha.10 → 2.0.0-alpha.11
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 +4 -0
- package/dist/ModelRoomLabelPlugin/index.js +3 -1
- package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +1 -0
- package/dist/floorplan/ModelFloorplanPlugin/index.js +94 -79
- package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +1 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +94 -79
- package/dist/index.es.js +99 -81
- package/dist/index.js +99 -81
- package/dist/index.umd.js +99 -81
- 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/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/ModelRoomLabelPlugin/RoomLabelItems.js +3 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.js +18 -10
- package/libs/floorplan/ModelFloorplanPlugin/Components/Main.js +77 -69
- package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +1 -0
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +2 -1
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +2 -1
- package/package.json +2 -2
|
@@ -11,8 +11,10 @@ import {
|
|
|
11
11
|
insert,
|
|
12
12
|
noop,
|
|
13
13
|
safe_not_equal,
|
|
14
|
+
set_data,
|
|
14
15
|
set_style,
|
|
15
|
-
space
|
|
16
|
+
space,
|
|
17
|
+
text
|
|
16
18
|
} from "svelte/internal";
|
|
17
19
|
|
|
18
20
|
import { COMPASS_IMAGE } from '../Assets/compass';
|
|
@@ -21,12 +23,13 @@ function add_css(target) {
|
|
|
21
23
|
append_styles(target, "svelte-5l80pv", ".floorplan-plugin__compass.svelte-5l80pv{position:absolute;left:50%;top:-46px;width:231px;height:41px;will-change:opacity;transform-origin:center 184px}.floorplan-plugin__compass-image.svelte-5l80pv{width:100%;height:100%;position:absolute;left:0;top:0;opacity:0.1;background-repeat:no-repeat;background-size:100% 100%}.floorplan-plugin__compass-text.svelte-5l80pv{position:absolute;left:50%;top:15px;transform:translateX(-50%);opacity:0.2;font-weight:bold;font-size:10px;color:#fff}");
|
|
22
24
|
}
|
|
23
25
|
|
|
24
|
-
// (
|
|
26
|
+
// (12:0) {#if northRad}
|
|
25
27
|
function create_if_block(ctx) {
|
|
26
28
|
let div1;
|
|
27
29
|
let div0;
|
|
28
30
|
let t0;
|
|
29
31
|
let span;
|
|
32
|
+
let t1;
|
|
30
33
|
|
|
31
34
|
return {
|
|
32
35
|
c() {
|
|
@@ -34,20 +37,23 @@ function create_if_block(ctx) {
|
|
|
34
37
|
div0 = element("div");
|
|
35
38
|
t0 = space();
|
|
36
39
|
span = element("span");
|
|
37
|
-
|
|
40
|
+
t1 = text(/*northDesc*/ ctx[0]);
|
|
38
41
|
attr(div0, "class", "floorplan-plugin__compass-image svelte-5l80pv");
|
|
39
42
|
set_style(div0, "background-image", `url(${COMPASS_IMAGE})`);
|
|
40
43
|
attr(span, "class", "floorplan-plugin__compass-text svelte-5l80pv");
|
|
41
44
|
attr(div1, "class", "floorplan-plugin__compass svelte-5l80pv");
|
|
42
|
-
set_style(div1, "transform", /*compassTransformStyle*/ ctx[
|
|
45
|
+
set_style(div1, "transform", /*compassTransformStyle*/ ctx[2], false);
|
|
43
46
|
},
|
|
44
47
|
m(target, anchor) {
|
|
45
48
|
insert(target, div1, anchor);
|
|
46
49
|
append(div1, div0);
|
|
47
50
|
append(div1, t0);
|
|
48
51
|
append(div1, span);
|
|
52
|
+
append(span, t1);
|
|
53
|
+
},
|
|
54
|
+
p(ctx, dirty) {
|
|
55
|
+
if (dirty & /*northDesc*/ 1) set_data(t1, /*northDesc*/ ctx[0]);
|
|
49
56
|
},
|
|
50
|
-
p: noop,
|
|
51
57
|
d(detaching) {
|
|
52
58
|
if (detaching) detach(div1);
|
|
53
59
|
}
|
|
@@ -56,7 +62,7 @@ function create_if_block(ctx) {
|
|
|
56
62
|
|
|
57
63
|
function create_fragment(ctx) {
|
|
58
64
|
let if_block_anchor;
|
|
59
|
-
let if_block = /*northRad*/ ctx[
|
|
65
|
+
let if_block = /*northRad*/ ctx[1] && create_if_block(ctx);
|
|
60
66
|
|
|
61
67
|
return {
|
|
62
68
|
c() {
|
|
@@ -68,7 +74,7 @@ function create_fragment(ctx) {
|
|
|
68
74
|
insert(target, if_block_anchor, anchor);
|
|
69
75
|
},
|
|
70
76
|
p(ctx, [dirty]) {
|
|
71
|
-
if (/*northRad*/ ctx[
|
|
77
|
+
if (/*northRad*/ ctx[1]) if_block.p(ctx, dirty);
|
|
72
78
|
},
|
|
73
79
|
i: noop,
|
|
74
80
|
o: noop,
|
|
@@ -85,21 +91,23 @@ function rad2Deg(rad) {
|
|
|
85
91
|
|
|
86
92
|
function instance($$self, $$props, $$invalidate) {
|
|
87
93
|
let { floorplanData } = $$props;
|
|
94
|
+
let { northDesc } = $$props;
|
|
88
95
|
const northRad = floorplanData.entrance?.northRad;
|
|
89
96
|
const rotate = !northRad ? 0 : rad2Deg(northRad);
|
|
90
97
|
const compassTransformStyle = `translateX(-50%) translateZ(10px) rotate(${-rotate + 90}deg)`;
|
|
91
98
|
|
|
92
99
|
$$self.$$set = $$props => {
|
|
93
|
-
if ('floorplanData' in $$props) $$invalidate(
|
|
100
|
+
if ('floorplanData' in $$props) $$invalidate(3, floorplanData = $$props.floorplanData);
|
|
101
|
+
if ('northDesc' in $$props) $$invalidate(0, northDesc = $$props.northDesc);
|
|
94
102
|
};
|
|
95
103
|
|
|
96
|
-
return [northRad, compassTransformStyle, floorplanData];
|
|
104
|
+
return [northDesc, northRad, compassTransformStyle, floorplanData];
|
|
97
105
|
}
|
|
98
106
|
|
|
99
107
|
class Component extends SvelteComponent {
|
|
100
108
|
constructor(options) {
|
|
101
109
|
super();
|
|
102
|
-
init(this, options, instance, create_fragment, safe_not_equal, { floorplanData:
|
|
110
|
+
init(this, options, instance, create_fragment, safe_not_equal, { floorplanData: 3, northDesc: 0 }, add_css);
|
|
103
111
|
}
|
|
104
112
|
}
|
|
105
113
|
|
|
@@ -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
|
);
|
|
@@ -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;
|
|
@@ -326,8 +326,9 @@ export default class ModelFloorplanPluginController {
|
|
|
326
326
|
return;
|
|
327
327
|
if (this.size.width === 0)
|
|
328
328
|
return;
|
|
329
|
-
const { hoverEnable, cameraImageUrl, getLabelElement, roomLabelsEnable, compassEnable, ruleLabelsEnable } = this.configs;
|
|
329
|
+
const { northDesc, hoverEnable, cameraImageUrl, getLabelElement, roomLabelsEnable, compassEnable, ruleLabelsEnable } = this.configs;
|
|
330
330
|
const props = {
|
|
331
|
+
northDesc: northDesc ?? '北',
|
|
331
332
|
five: this.five,
|
|
332
333
|
pxmm: this.pxmm,
|
|
333
334
|
cameraImageUrl,
|
|
@@ -3,6 +3,7 @@ import type { FloorplanServerData } from '../typings/floorplanServerData';
|
|
|
3
3
|
import type { FloorplanRoomItem } from '../typings/floorplanData';
|
|
4
4
|
import { FLOOR_PLAN_ATTACHED_TO } from '../constant';
|
|
5
5
|
export interface TopviewFloorplanPluginParameterType {
|
|
6
|
+
northDesc?: string;
|
|
6
7
|
selector?: string | Element;
|
|
7
8
|
scale?: number;
|
|
8
9
|
modelOpacity?: number;
|
|
@@ -157,9 +157,10 @@ export class TopviewFloorplanPluginController {
|
|
|
157
157
|
return;
|
|
158
158
|
if (this.size.width === 0)
|
|
159
159
|
return;
|
|
160
|
-
const { getLabelElement, cameraImageUrl, preventRoomClick, hoverEnable, compassEnable, roomLabelsEnable, ruleLabelsEnable, } = this.configs;
|
|
160
|
+
const { northDesc, getLabelElement, cameraImageUrl, preventRoomClick, hoverEnable, compassEnable, roomLabelsEnable, ruleLabelsEnable, } = this.configs;
|
|
161
161
|
const handleClick = preventRoomClick ? () => false : undefined;
|
|
162
162
|
const props = {
|
|
163
|
+
northDesc: northDesc ?? '北',
|
|
163
164
|
five: this.five,
|
|
164
165
|
pxmm: this.pxmm,
|
|
165
166
|
cameraImageUrl,
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"author": "REALSEE-DEVELOPER",
|
|
7
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
8
8
|
"private": false,
|
|
9
|
-
"version": "2.0.0-alpha.
|
|
9
|
+
"version": "2.0.0-alpha.11",
|
|
10
10
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build": "yarn run tsb && yarn run build:rollup && yarn build:docs",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
],
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/core": "^7.17.5",
|
|
29
|
-
"@realsee/five": "^5.0.0-alpha.
|
|
29
|
+
"@realsee/five": "^5.0.0-alpha.120",
|
|
30
30
|
"@rollup/plugin-alias": "^3.1.9",
|
|
31
31
|
"@rollup/plugin-commonjs": "^21.1.0",
|
|
32
32
|
"@rollup/plugin-typescript": "^8.3.2",
|