@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 2.0.0-alpha.11
|
|
4
|
+
- 1.fix: 修复 ModelRoomLabelPlugin 未监听多楼层切换 rerender 问题。
|
|
5
|
+
- 2.feat: ModelFloorplanPlugin & TopviewFloorplanPlugin 新增 `northDesc?: string` 配置项,支持用户修改指北针名称。
|
|
6
|
+
|
|
3
7
|
## 2.0.0-alpha.10
|
|
4
8
|
- 1.feat: 新增空间三维标签插件 PanoSpatialTagPlugin
|
|
5
9
|
- 2.feat: 新增轻量 ejs 渲染模板函数 shared-utils/tinyEJSrender.js
|
|
@@ -120,7 +120,7 @@ function get_each_context(ctx, list, i) {
|
|
|
120
120
|
return child_ctx;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
// (
|
|
123
|
+
// (70:2) {#each roomLabels as roomLableItem (roomLableItem.id)}
|
|
124
124
|
function create_each_block(key_1, ctx) {
|
|
125
125
|
let first;
|
|
126
126
|
let roomlabelitem;
|
|
@@ -303,9 +303,11 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
five.on('cameraUpdate', onFiveCameraUpdate);
|
|
306
|
+
five.on('modelShownFloorChange', onFiveCameraUpdate);
|
|
306
307
|
|
|
307
308
|
svelte.onDestroy(() => {
|
|
308
309
|
five.off('cameraUpdate', onFiveCameraUpdate);
|
|
310
|
+
five.off('modelShownFloorChange', onFiveCameraUpdate);
|
|
309
311
|
});
|
|
310
312
|
|
|
311
313
|
svelte.onMount(() => {
|
|
@@ -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;
|
|
@@ -145,12 +145,13 @@ function add_css$b(target) {
|
|
|
145
145
|
internal.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}");
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
// (
|
|
148
|
+
// (12:0) {#if northRad}
|
|
149
149
|
function create_if_block$6(ctx) {
|
|
150
150
|
let div1;
|
|
151
151
|
let div0;
|
|
152
152
|
let t0;
|
|
153
153
|
let span;
|
|
154
|
+
let t1;
|
|
154
155
|
|
|
155
156
|
return {
|
|
156
157
|
c() {
|
|
@@ -158,20 +159,23 @@ function create_if_block$6(ctx) {
|
|
|
158
159
|
div0 = internal.element("div");
|
|
159
160
|
t0 = internal.space();
|
|
160
161
|
span = internal.element("span");
|
|
161
|
-
|
|
162
|
+
t1 = internal.text(/*northDesc*/ ctx[0]);
|
|
162
163
|
internal.attr(div0, "class", "floorplan-plugin__compass-image svelte-5l80pv");
|
|
163
164
|
internal.set_style(div0, "background-image", `url(${COMPASS_IMAGE})`);
|
|
164
165
|
internal.attr(span, "class", "floorplan-plugin__compass-text svelte-5l80pv");
|
|
165
166
|
internal.attr(div1, "class", "floorplan-plugin__compass svelte-5l80pv");
|
|
166
|
-
internal.set_style(div1, "transform", /*compassTransformStyle*/ ctx[
|
|
167
|
+
internal.set_style(div1, "transform", /*compassTransformStyle*/ ctx[2], false);
|
|
167
168
|
},
|
|
168
169
|
m(target, anchor) {
|
|
169
170
|
internal.insert(target, div1, anchor);
|
|
170
171
|
internal.append(div1, div0);
|
|
171
172
|
internal.append(div1, t0);
|
|
172
173
|
internal.append(div1, span);
|
|
174
|
+
internal.append(span, t1);
|
|
175
|
+
},
|
|
176
|
+
p(ctx, dirty) {
|
|
177
|
+
if (dirty & /*northDesc*/ 1) internal.set_data(t1, /*northDesc*/ ctx[0]);
|
|
173
178
|
},
|
|
174
|
-
p: internal.noop,
|
|
175
179
|
d(detaching) {
|
|
176
180
|
if (detaching) internal.detach(div1);
|
|
177
181
|
}
|
|
@@ -180,7 +184,7 @@ function create_if_block$6(ctx) {
|
|
|
180
184
|
|
|
181
185
|
function create_fragment$f(ctx) {
|
|
182
186
|
let if_block_anchor;
|
|
183
|
-
let if_block = /*northRad*/ ctx[
|
|
187
|
+
let if_block = /*northRad*/ ctx[1] && create_if_block$6(ctx);
|
|
184
188
|
|
|
185
189
|
return {
|
|
186
190
|
c() {
|
|
@@ -192,7 +196,7 @@ function create_fragment$f(ctx) {
|
|
|
192
196
|
internal.insert(target, if_block_anchor, anchor);
|
|
193
197
|
},
|
|
194
198
|
p(ctx, [dirty]) {
|
|
195
|
-
if (/*northRad*/ ctx[
|
|
199
|
+
if (/*northRad*/ ctx[1]) if_block.p(ctx, dirty);
|
|
196
200
|
},
|
|
197
201
|
i: internal.noop,
|
|
198
202
|
o: internal.noop,
|
|
@@ -209,21 +213,23 @@ function rad2Deg(rad) {
|
|
|
209
213
|
|
|
210
214
|
function instance$f($$self, $$props, $$invalidate) {
|
|
211
215
|
let { floorplanData } = $$props;
|
|
216
|
+
let { northDesc } = $$props;
|
|
212
217
|
const northRad = floorplanData.entrance?.northRad;
|
|
213
218
|
const rotate = !northRad ? 0 : rad2Deg(northRad);
|
|
214
219
|
const compassTransformStyle = `translateX(-50%) translateZ(10px) rotate(${-rotate + 90}deg)`;
|
|
215
220
|
|
|
216
221
|
$$self.$$set = $$props => {
|
|
217
|
-
if ('floorplanData' in $$props) $$invalidate(
|
|
222
|
+
if ('floorplanData' in $$props) $$invalidate(3, floorplanData = $$props.floorplanData);
|
|
223
|
+
if ('northDesc' in $$props) $$invalidate(0, northDesc = $$props.northDesc);
|
|
218
224
|
};
|
|
219
225
|
|
|
220
|
-
return [northRad, compassTransformStyle, floorplanData];
|
|
226
|
+
return [northDesc, northRad, compassTransformStyle, floorplanData];
|
|
221
227
|
}
|
|
222
228
|
|
|
223
229
|
class Compass extends internal.SvelteComponent {
|
|
224
230
|
constructor(options) {
|
|
225
231
|
super();
|
|
226
|
-
internal.init(this, options, instance$f, create_fragment$f, internal.safe_not_equal, { floorplanData:
|
|
232
|
+
internal.init(this, options, instance$f, create_fragment$f, internal.safe_not_equal, { floorplanData: 3, northDesc: 0 }, add_css$b);
|
|
227
233
|
}
|
|
228
234
|
}
|
|
229
235
|
|
|
@@ -2766,7 +2772,7 @@ function add_css(target) {
|
|
|
2766
2772
|
internal.append_styles(target, "svelte-177x2q7", ".floorplan-main.svelte-177x2q7{width:100%;height:100%}");
|
|
2767
2773
|
}
|
|
2768
2774
|
|
|
2769
|
-
// (
|
|
2775
|
+
// (24:0) {#if visible}
|
|
2770
2776
|
function create_if_block(ctx) {
|
|
2771
2777
|
let div;
|
|
2772
2778
|
let currentfloor;
|
|
@@ -2778,15 +2784,15 @@ function create_if_block(ctx) {
|
|
|
2778
2784
|
|
|
2779
2785
|
const currentfloor_spread_levels = [
|
|
2780
2786
|
{
|
|
2781
|
-
five: /*five*/ ctx[
|
|
2782
|
-
pxmm: /*pxmm*/ ctx[
|
|
2783
|
-
floorIndex: /*floorIndex*/ ctx[
|
|
2784
|
-
hoverEnable: /*hoverEnable*/ ctx[
|
|
2785
|
-
floorplanData: /*floorplanData*/ ctx[
|
|
2786
|
-
getLabelElement: /*getLabelElement*/ ctx[
|
|
2787
|
-
roomLabelsEnable: /*roomLabelsEnable*/ ctx[
|
|
2788
|
-
ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[
|
|
2789
|
-
onRoomHeightClick: /*onRoomHeightClick*/ ctx[
|
|
2787
|
+
five: /*five*/ ctx[2],
|
|
2788
|
+
pxmm: /*pxmm*/ ctx[1],
|
|
2789
|
+
floorIndex: /*floorIndex*/ ctx[6],
|
|
2790
|
+
hoverEnable: /*hoverEnable*/ ctx[7],
|
|
2791
|
+
floorplanData: /*floorplanData*/ ctx[11],
|
|
2792
|
+
getLabelElement: /*getLabelElement*/ ctx[15],
|
|
2793
|
+
roomLabelsEnable: /*roomLabelsEnable*/ ctx[9],
|
|
2794
|
+
ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[10],
|
|
2795
|
+
onRoomHeightClick: /*onRoomHeightClick*/ ctx[14]
|
|
2790
2796
|
}
|
|
2791
2797
|
];
|
|
2792
2798
|
|
|
@@ -2800,10 +2806,10 @@ function create_if_block(ctx) {
|
|
|
2800
2806
|
|
|
2801
2807
|
const camera_spread_levels = [
|
|
2802
2808
|
{
|
|
2803
|
-
panoIndex: /*panoIndex*/ ctx[
|
|
2804
|
-
floorplanData: /*floorplanData*/ ctx[
|
|
2805
|
-
lastPanoramaLongitude: /*lastPanoramaLongitude*/ ctx[
|
|
2806
|
-
cameraImageUrl: /*cameraImageUrl*/ ctx[
|
|
2809
|
+
panoIndex: /*panoIndex*/ ctx[5],
|
|
2810
|
+
floorplanData: /*floorplanData*/ ctx[11],
|
|
2811
|
+
lastPanoramaLongitude: /*lastPanoramaLongitude*/ ctx[12],
|
|
2812
|
+
cameraImageUrl: /*cameraImageUrl*/ ctx[13]
|
|
2807
2813
|
}
|
|
2808
2814
|
];
|
|
2809
2815
|
|
|
@@ -2814,7 +2820,7 @@ function create_if_block(ctx) {
|
|
|
2814
2820
|
}
|
|
2815
2821
|
|
|
2816
2822
|
camera = new Camera({ props: camera_props });
|
|
2817
|
-
let if_block = /*compassEnable*/ ctx[
|
|
2823
|
+
let if_block = /*compassEnable*/ ctx[8] && create_if_block_1(ctx);
|
|
2818
2824
|
|
|
2819
2825
|
return {
|
|
2820
2826
|
c() {
|
|
@@ -2838,42 +2844,42 @@ function create_if_block(ctx) {
|
|
|
2838
2844
|
p(new_ctx, dirty) {
|
|
2839
2845
|
ctx = new_ctx;
|
|
2840
2846
|
|
|
2841
|
-
const currentfloor_changes = (dirty & /*five, pxmm, floorIndex, hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, onRoomHeightClick*/
|
|
2847
|
+
const currentfloor_changes = (dirty & /*five, pxmm, floorIndex, hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, onRoomHeightClick*/ 52934)
|
|
2842
2848
|
? internal.get_spread_update(currentfloor_spread_levels, [
|
|
2843
2849
|
{
|
|
2844
|
-
five: /*five*/ ctx[
|
|
2845
|
-
pxmm: /*pxmm*/ ctx[
|
|
2846
|
-
floorIndex: /*floorIndex*/ ctx[
|
|
2847
|
-
hoverEnable: /*hoverEnable*/ ctx[
|
|
2848
|
-
floorplanData: /*floorplanData*/ ctx[
|
|
2849
|
-
getLabelElement: /*getLabelElement*/ ctx[
|
|
2850
|
-
roomLabelsEnable: /*roomLabelsEnable*/ ctx[
|
|
2851
|
-
ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[
|
|
2852
|
-
onRoomHeightClick: /*onRoomHeightClick*/ ctx[
|
|
2850
|
+
five: /*five*/ ctx[2],
|
|
2851
|
+
pxmm: /*pxmm*/ ctx[1],
|
|
2852
|
+
floorIndex: /*floorIndex*/ ctx[6],
|
|
2853
|
+
hoverEnable: /*hoverEnable*/ ctx[7],
|
|
2854
|
+
floorplanData: /*floorplanData*/ ctx[11],
|
|
2855
|
+
getLabelElement: /*getLabelElement*/ ctx[15],
|
|
2856
|
+
roomLabelsEnable: /*roomLabelsEnable*/ ctx[9],
|
|
2857
|
+
ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[10],
|
|
2858
|
+
onRoomHeightClick: /*onRoomHeightClick*/ ctx[14]
|
|
2853
2859
|
}
|
|
2854
2860
|
])
|
|
2855
2861
|
: {};
|
|
2856
2862
|
|
|
2857
2863
|
currentfloor.$set(currentfloor_changes);
|
|
2858
2864
|
|
|
2859
|
-
const camera_changes = (dirty & /*panoIndex, floorplanData, lastPanoramaLongitude, cameraImageUrl*/
|
|
2865
|
+
const camera_changes = (dirty & /*panoIndex, floorplanData, lastPanoramaLongitude, cameraImageUrl*/ 14368)
|
|
2860
2866
|
? internal.get_spread_update(camera_spread_levels, [
|
|
2861
2867
|
{
|
|
2862
|
-
panoIndex: /*panoIndex*/ ctx[
|
|
2863
|
-
floorplanData: /*floorplanData*/ ctx[
|
|
2864
|
-
lastPanoramaLongitude: /*lastPanoramaLongitude*/ ctx[
|
|
2865
|
-
cameraImageUrl: /*cameraImageUrl*/ ctx[
|
|
2868
|
+
panoIndex: /*panoIndex*/ ctx[5],
|
|
2869
|
+
floorplanData: /*floorplanData*/ ctx[11],
|
|
2870
|
+
lastPanoramaLongitude: /*lastPanoramaLongitude*/ ctx[12],
|
|
2871
|
+
cameraImageUrl: /*cameraImageUrl*/ ctx[13]
|
|
2866
2872
|
}
|
|
2867
2873
|
])
|
|
2868
2874
|
: {};
|
|
2869
2875
|
|
|
2870
2876
|
camera.$set(camera_changes);
|
|
2871
2877
|
|
|
2872
|
-
if (/*compassEnable*/ ctx[
|
|
2878
|
+
if (/*compassEnable*/ ctx[8]) {
|
|
2873
2879
|
if (if_block) {
|
|
2874
2880
|
if_block.p(ctx, dirty);
|
|
2875
2881
|
|
|
2876
|
-
if (dirty & /*compassEnable*/
|
|
2882
|
+
if (dirty & /*compassEnable*/ 256) {
|
|
2877
2883
|
internal.transition_in(if_block, 1);
|
|
2878
2884
|
}
|
|
2879
2885
|
} else {
|
|
@@ -2901,7 +2907,7 @@ function create_if_block(ctx) {
|
|
|
2901
2907
|
if (!div_intro) {
|
|
2902
2908
|
internal.add_render_callback(() => {
|
|
2903
2909
|
div_intro = internal.create_in_transition(div, transition.fade, {
|
|
2904
|
-
duration: /*duration*/ ctx[
|
|
2910
|
+
duration: /*duration*/ ctx[3],
|
|
2905
2911
|
easing: easing.linear
|
|
2906
2912
|
});
|
|
2907
2913
|
|
|
@@ -2926,13 +2932,16 @@ function create_if_block(ctx) {
|
|
|
2926
2932
|
};
|
|
2927
2933
|
}
|
|
2928
2934
|
|
|
2929
|
-
// (
|
|
2935
|
+
// (40:4) {#if compassEnable}
|
|
2930
2936
|
function create_if_block_1(ctx) {
|
|
2931
2937
|
let compass;
|
|
2932
2938
|
let current;
|
|
2933
2939
|
|
|
2934
2940
|
compass = new Compass({
|
|
2935
|
-
props: {
|
|
2941
|
+
props: {
|
|
2942
|
+
floorplanData: /*floorplanData*/ ctx[11],
|
|
2943
|
+
northDesc: /*northDesc*/ ctx[0]
|
|
2944
|
+
}
|
|
2936
2945
|
});
|
|
2937
2946
|
|
|
2938
2947
|
return {
|
|
@@ -2945,7 +2954,8 @@ function create_if_block_1(ctx) {
|
|
|
2945
2954
|
},
|
|
2946
2955
|
p(ctx, dirty) {
|
|
2947
2956
|
const compass_changes = {};
|
|
2948
|
-
if (dirty & /*floorplanData*/
|
|
2957
|
+
if (dirty & /*floorplanData*/ 2048) compass_changes.floorplanData = /*floorplanData*/ ctx[11];
|
|
2958
|
+
if (dirty & /*northDesc*/ 1) compass_changes.northDesc = /*northDesc*/ ctx[0];
|
|
2949
2959
|
compass.$set(compass_changes);
|
|
2950
2960
|
},
|
|
2951
2961
|
i(local) {
|
|
@@ -2966,7 +2976,7 @@ function create_if_block_1(ctx) {
|
|
|
2966
2976
|
function create_fragment(ctx) {
|
|
2967
2977
|
let if_block_anchor;
|
|
2968
2978
|
let current;
|
|
2969
|
-
let if_block = /*visible*/ ctx[
|
|
2979
|
+
let if_block = /*visible*/ ctx[4] && create_if_block(ctx);
|
|
2970
2980
|
|
|
2971
2981
|
return {
|
|
2972
2982
|
c() {
|
|
@@ -2979,11 +2989,11 @@ function create_fragment(ctx) {
|
|
|
2979
2989
|
current = true;
|
|
2980
2990
|
},
|
|
2981
2991
|
p(ctx, [dirty]) {
|
|
2982
|
-
if (/*visible*/ ctx[
|
|
2992
|
+
if (/*visible*/ ctx[4]) {
|
|
2983
2993
|
if (if_block) {
|
|
2984
2994
|
if_block.p(ctx, dirty);
|
|
2985
2995
|
|
|
2986
|
-
if (dirty & /*visible*/
|
|
2996
|
+
if (dirty & /*visible*/ 16) {
|
|
2987
2997
|
internal.transition_in(if_block, 1);
|
|
2988
2998
|
}
|
|
2989
2999
|
} else {
|
|
@@ -3019,6 +3029,7 @@ function create_fragment(ctx) {
|
|
|
3019
3029
|
}
|
|
3020
3030
|
|
|
3021
3031
|
function instance($$self, $$props, $$invalidate) {
|
|
3032
|
+
let { northDesc } = $$props;
|
|
3022
3033
|
let { pxmm } = $$props;
|
|
3023
3034
|
let { five } = $$props;
|
|
3024
3035
|
let { duration = 0 } = $$props;
|
|
@@ -3036,24 +3047,26 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
3036
3047
|
let { getLabelElement } = $$props;
|
|
3037
3048
|
|
|
3038
3049
|
$$self.$$set = $$props => {
|
|
3039
|
-
if ('
|
|
3040
|
-
if ('
|
|
3041
|
-
if ('
|
|
3042
|
-
if ('
|
|
3043
|
-
if ('
|
|
3044
|
-
if ('
|
|
3045
|
-
if ('
|
|
3046
|
-
if ('
|
|
3047
|
-
if ('
|
|
3048
|
-
if ('
|
|
3049
|
-
if ('
|
|
3050
|
-
if ('
|
|
3051
|
-
if ('
|
|
3052
|
-
if ('
|
|
3053
|
-
if ('
|
|
3050
|
+
if ('northDesc' in $$props) $$invalidate(0, northDesc = $$props.northDesc);
|
|
3051
|
+
if ('pxmm' in $$props) $$invalidate(1, pxmm = $$props.pxmm);
|
|
3052
|
+
if ('five' in $$props) $$invalidate(2, five = $$props.five);
|
|
3053
|
+
if ('duration' in $$props) $$invalidate(3, duration = $$props.duration);
|
|
3054
|
+
if ('visible' in $$props) $$invalidate(4, visible = $$props.visible);
|
|
3055
|
+
if ('panoIndex' in $$props) $$invalidate(5, panoIndex = $$props.panoIndex);
|
|
3056
|
+
if ('floorIndex' in $$props) $$invalidate(6, floorIndex = $$props.floorIndex);
|
|
3057
|
+
if ('hoverEnable' in $$props) $$invalidate(7, hoverEnable = $$props.hoverEnable);
|
|
3058
|
+
if ('compassEnable' in $$props) $$invalidate(8, compassEnable = $$props.compassEnable);
|
|
3059
|
+
if ('roomLabelsEnable' in $$props) $$invalidate(9, roomLabelsEnable = $$props.roomLabelsEnable);
|
|
3060
|
+
if ('ruleLabelsEnable' in $$props) $$invalidate(10, ruleLabelsEnable = $$props.ruleLabelsEnable);
|
|
3061
|
+
if ('floorplanData' in $$props) $$invalidate(11, floorplanData = $$props.floorplanData);
|
|
3062
|
+
if ('lastPanoramaLongitude' in $$props) $$invalidate(12, lastPanoramaLongitude = $$props.lastPanoramaLongitude);
|
|
3063
|
+
if ('cameraImageUrl' in $$props) $$invalidate(13, cameraImageUrl = $$props.cameraImageUrl);
|
|
3064
|
+
if ('onRoomHeightClick' in $$props) $$invalidate(14, onRoomHeightClick = $$props.onRoomHeightClick);
|
|
3065
|
+
if ('getLabelElement' in $$props) $$invalidate(15, getLabelElement = $$props.getLabelElement);
|
|
3054
3066
|
};
|
|
3055
3067
|
|
|
3056
3068
|
return [
|
|
3069
|
+
northDesc,
|
|
3057
3070
|
pxmm,
|
|
3058
3071
|
five,
|
|
3059
3072
|
duration,
|
|
@@ -3083,21 +3096,22 @@ class Main extends internal.SvelteComponent {
|
|
|
3083
3096
|
create_fragment,
|
|
3084
3097
|
internal.safe_not_equal,
|
|
3085
3098
|
{
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3099
|
+
northDesc: 0,
|
|
3100
|
+
pxmm: 1,
|
|
3101
|
+
five: 2,
|
|
3102
|
+
duration: 3,
|
|
3103
|
+
visible: 4,
|
|
3104
|
+
panoIndex: 5,
|
|
3105
|
+
floorIndex: 6,
|
|
3106
|
+
hoverEnable: 7,
|
|
3107
|
+
compassEnable: 8,
|
|
3108
|
+
roomLabelsEnable: 9,
|
|
3109
|
+
ruleLabelsEnable: 10,
|
|
3110
|
+
floorplanData: 11,
|
|
3111
|
+
lastPanoramaLongitude: 12,
|
|
3112
|
+
cameraImageUrl: 13,
|
|
3113
|
+
onRoomHeightClick: 14,
|
|
3114
|
+
getLabelElement: 15
|
|
3101
3115
|
},
|
|
3102
3116
|
add_css
|
|
3103
3117
|
);
|
|
@@ -3788,8 +3802,9 @@ class ModelFloorplanPluginController {
|
|
|
3788
3802
|
return;
|
|
3789
3803
|
if (this.size.width === 0)
|
|
3790
3804
|
return;
|
|
3791
|
-
const { hoverEnable, cameraImageUrl, getLabelElement, roomLabelsEnable, compassEnable, ruleLabelsEnable } = this.configs;
|
|
3805
|
+
const { northDesc, hoverEnable, cameraImageUrl, getLabelElement, roomLabelsEnable, compassEnable, ruleLabelsEnable } = this.configs;
|
|
3792
3806
|
const props = {
|
|
3807
|
+
northDesc: northDesc ?? '北',
|
|
3793
3808
|
five: this.five,
|
|
3794
3809
|
pxmm: this.pxmm,
|
|
3795
3810
|
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;
|