@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.
Files changed (43) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/ModelRoomLabelPlugin/index.js +3 -1
  3. package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +1 -0
  4. package/dist/floorplan/ModelFloorplanPlugin/index.js +94 -79
  5. package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +1 -0
  6. package/dist/floorplan/TopviewFloorplanPlugin/index.js +94 -79
  7. package/dist/index.es.js +99 -81
  8. package/dist/index.js +99 -81
  9. package/dist/index.umd.js +99 -81
  10. package/docs/assets/search.js +1 -1
  11. package/docs/classes/ModelRoomLabelController.html +6 -6
  12. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  13. package/docs/enums/ModelFloorplanErrorType.html +1 -1
  14. package/docs/interfaces/LineJson.html +1 -1
  15. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  16. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  17. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  18. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  19. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  20. package/docs/interfaces/ModelFloorplanParameterType.html +1 -1
  21. package/docs/interfaces/ModelFloorplanViewEvent.html +2 -2
  22. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  23. package/docs/interfaces/PanoCompassPluginData.html +1 -1
  24. package/docs/interfaces/PanoCompassPluginParameterType.html +1 -1
  25. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  26. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  27. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  28. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  29. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  30. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  31. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  32. package/docs/interfaces/PointJson.html +1 -1
  33. package/docs/interfaces/RoomLabel.html +7 -7
  34. package/docs/interfaces/TopviewFloorplanPluginParameterType.html +1 -1
  35. package/docs/modules.html +12 -12
  36. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +3 -1
  37. package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.js +18 -10
  38. package/libs/floorplan/ModelFloorplanPlugin/Components/Main.js +77 -69
  39. package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +1 -0
  40. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +2 -1
  41. package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +1 -0
  42. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +2 -1
  43. 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
- // (68:2) {#each roomLabels as roomLableItem (roomLableItem.id)}
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
- // (11:0) {#if northRad}
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
- span.textContent = "北";
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[1], false);
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[0] && create_if_block$6(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[0]) if_block.p(ctx, dirty);
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(2, floorplanData = $$props.floorplanData);
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: 2 }, add_css$b);
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
- // (23:0) {#if visible}
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[1],
2782
- pxmm: /*pxmm*/ ctx[0],
2783
- floorIndex: /*floorIndex*/ ctx[5],
2784
- hoverEnable: /*hoverEnable*/ ctx[6],
2785
- floorplanData: /*floorplanData*/ ctx[10],
2786
- getLabelElement: /*getLabelElement*/ ctx[14],
2787
- roomLabelsEnable: /*roomLabelsEnable*/ ctx[8],
2788
- ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[9],
2789
- onRoomHeightClick: /*onRoomHeightClick*/ ctx[13]
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[4],
2804
- floorplanData: /*floorplanData*/ ctx[10],
2805
- lastPanoramaLongitude: /*lastPanoramaLongitude*/ ctx[11],
2806
- cameraImageUrl: /*cameraImageUrl*/ ctx[12]
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[7] && create_if_block_1(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*/ 26467)
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[1],
2845
- pxmm: /*pxmm*/ ctx[0],
2846
- floorIndex: /*floorIndex*/ ctx[5],
2847
- hoverEnable: /*hoverEnable*/ ctx[6],
2848
- floorplanData: /*floorplanData*/ ctx[10],
2849
- getLabelElement: /*getLabelElement*/ ctx[14],
2850
- roomLabelsEnable: /*roomLabelsEnable*/ ctx[8],
2851
- ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[9],
2852
- onRoomHeightClick: /*onRoomHeightClick*/ ctx[13]
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*/ 7184)
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[4],
2863
- floorplanData: /*floorplanData*/ ctx[10],
2864
- lastPanoramaLongitude: /*lastPanoramaLongitude*/ ctx[11],
2865
- cameraImageUrl: /*cameraImageUrl*/ ctx[12]
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[7]) {
2878
+ if (/*compassEnable*/ ctx[8]) {
2873
2879
  if (if_block) {
2874
2880
  if_block.p(ctx, dirty);
2875
2881
 
2876
- if (dirty & /*compassEnable*/ 128) {
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[2],
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
- // (39:4) {#if compassEnable}
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: { floorplanData: /*floorplanData*/ ctx[10] }
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*/ 1024) compass_changes.floorplanData = /*floorplanData*/ ctx[10];
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[3] && create_if_block(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[3]) {
2992
+ if (/*visible*/ ctx[4]) {
2983
2993
  if (if_block) {
2984
2994
  if_block.p(ctx, dirty);
2985
2995
 
2986
- if (dirty & /*visible*/ 8) {
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 ('pxmm' in $$props) $$invalidate(0, pxmm = $$props.pxmm);
3040
- if ('five' in $$props) $$invalidate(1, five = $$props.five);
3041
- if ('duration' in $$props) $$invalidate(2, duration = $$props.duration);
3042
- if ('visible' in $$props) $$invalidate(3, visible = $$props.visible);
3043
- if ('panoIndex' in $$props) $$invalidate(4, panoIndex = $$props.panoIndex);
3044
- if ('floorIndex' in $$props) $$invalidate(5, floorIndex = $$props.floorIndex);
3045
- if ('hoverEnable' in $$props) $$invalidate(6, hoverEnable = $$props.hoverEnable);
3046
- if ('compassEnable' in $$props) $$invalidate(7, compassEnable = $$props.compassEnable);
3047
- if ('roomLabelsEnable' in $$props) $$invalidate(8, roomLabelsEnable = $$props.roomLabelsEnable);
3048
- if ('ruleLabelsEnable' in $$props) $$invalidate(9, ruleLabelsEnable = $$props.ruleLabelsEnable);
3049
- if ('floorplanData' in $$props) $$invalidate(10, floorplanData = $$props.floorplanData);
3050
- if ('lastPanoramaLongitude' in $$props) $$invalidate(11, lastPanoramaLongitude = $$props.lastPanoramaLongitude);
3051
- if ('cameraImageUrl' in $$props) $$invalidate(12, cameraImageUrl = $$props.cameraImageUrl);
3052
- if ('onRoomHeightClick' in $$props) $$invalidate(13, onRoomHeightClick = $$props.onRoomHeightClick);
3053
- if ('getLabelElement' in $$props) $$invalidate(14, getLabelElement = $$props.getLabelElement);
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
- pxmm: 0,
3087
- five: 1,
3088
- duration: 2,
3089
- visible: 3,
3090
- panoIndex: 4,
3091
- floorIndex: 5,
3092
- hoverEnable: 6,
3093
- compassEnable: 7,
3094
- roomLabelsEnable: 8,
3095
- ruleLabelsEnable: 9,
3096
- floorplanData: 10,
3097
- lastPanoramaLongitude: 11,
3098
- cameraImageUrl: 12,
3099
- onRoomHeightClick: 13,
3100
- getLabelElement: 14
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;