@realsee/dnalogel 2.0.0-alpha.11 → 2.0.0-alpha.12

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 (54) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/ModelItemLabelPlugin/events.type.d.ts +9 -0
  3. package/dist/ModelItemLabelPlugin/index.d.ts +4 -0
  4. package/dist/ModelItemLabelPlugin/index.js +678 -0
  5. package/dist/ModelItemLabelPlugin/typings.d.ts +55 -0
  6. package/dist/ModelItemLabelPlugin/utils/parseData.d.ts +3 -0
  7. package/dist/ModelRoomLabelPlugin/index.js +1 -1
  8. package/dist/PanoSpatialTagPlugin/index.js +9 -9
  9. package/dist/index.d.ts +1 -0
  10. package/dist/index.es.js +810 -166
  11. package/dist/index.js +809 -163
  12. package/dist/index.umd.js +812 -167
  13. package/docs/assets/search.js +1 -1
  14. package/docs/classes/ModelRoomLabelController.html +6 -6
  15. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  16. package/docs/enums/ModelFloorplanErrorType.html +1 -1
  17. package/docs/index.html +1 -1
  18. package/docs/interfaces/LineJson.html +1 -1
  19. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  20. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  21. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  22. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  23. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  24. package/docs/interfaces/ModelFloorplanParameterType.html +1 -1
  25. package/docs/interfaces/ModelFloorplanViewEvent.html +2 -2
  26. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  27. package/docs/interfaces/PanoCompassPluginData.html +1 -1
  28. package/docs/interfaces/PanoCompassPluginParameterType.html +1 -1
  29. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  30. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  31. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  32. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  33. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  34. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  35. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  36. package/docs/interfaces/PointJson.html +1 -1
  37. package/docs/interfaces/RoomLabel.html +7 -7
  38. package/docs/interfaces/TopviewFloorplanPluginParameterType.html +1 -1
  39. package/docs/modules.html +12 -12
  40. package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +420 -0
  41. package/libs/ModelItemLabelPlugin/ItemLabelItem.js +133 -0
  42. package/libs/ModelItemLabelPlugin/events.type.d.ts +9 -0
  43. package/libs/ModelItemLabelPlugin/events.type.js +1 -0
  44. package/libs/ModelItemLabelPlugin/index.d.ts +4 -0
  45. package/libs/ModelItemLabelPlugin/index.js +170 -0
  46. package/libs/ModelItemLabelPlugin/typings.d.ts +55 -0
  47. package/libs/ModelItemLabelPlugin/typings.js +6 -0
  48. package/libs/ModelItemLabelPlugin/utils/parseData.d.ts +3 -0
  49. package/libs/ModelItemLabelPlugin/utils/parseData.js +7 -0
  50. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +1 -1
  51. package/libs/PanoSpatialTagPlugin/Components/tag.js +9 -9
  52. package/libs/index.d.ts +1 -0
  53. package/libs/index.js +2 -0
  54. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -13,6 +13,7 @@ var five = require('@realsee/five');
13
13
  var FBXLoader = require('three/examples/jsm/loaders/FBXLoader');
14
14
  var TWEEN = require('@tweenjs/tween.js');
15
15
  var store = require('svelte/store');
16
+ var classNames = require('classnames');
16
17
 
17
18
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
18
19
 
@@ -52,6 +53,7 @@ function _mergeNamespaces(n, m) {
52
53
  var THREE__namespace = /*#__PURE__*/_interopNamespace(THREE);
53
54
  var TWEEN__namespace = /*#__PURE__*/_interopNamespace(TWEEN);
54
55
  var TWEEN__default = /*#__PURE__*/_interopDefaultLegacy(TWEEN);
56
+ var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
55
57
 
56
58
  /**
57
59
  * Five 模型插件
@@ -497,11 +499,11 @@ const ROOM_LABEL_BG = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAA8CAY
497
499
 
498
500
  /* src/ModelRoomLabelPlugin/RoomLabelItem.svelte generated by Svelte v3.47.0 */
499
501
 
500
- function add_css$j(target) {
502
+ function add_css$l(target) {
501
503
  internal.append_styles(target, "svelte-17nkflf", ".room-label-item.svelte-17nkflf{position:absolute;font-size:8px;z-index:0;transform:none;cursor:pointer;pointer-events:none;user-select:none}.room-label-item__text.svelte-17nkflf{position:absolute;left:0;top:-64px;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center;height:20px;min-width:32px;padding:0 6px;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap}.room-label-item__bar.svelte-17nkflf{position:absolute;top:-44px;height:48px;width:1px;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))}.wide.svelte-17nkflf{font-size:10px}");
502
504
  }
503
505
 
504
- function create_fragment$o(ctx) {
506
+ function create_fragment$q(ctx) {
505
507
  let div1;
506
508
  let span;
507
509
  let t0_value = /*roomLabel*/ ctx[0].name + "";
@@ -568,7 +570,7 @@ function create_fragment$o(ctx) {
568
570
  };
569
571
  }
570
572
 
571
- function instance$o($$self, $$props, $$invalidate) {
573
+ function instance$q($$self, $$props, $$invalidate) {
572
574
  let { five } = $$props;
573
575
  let { roomLabel } = $$props;
574
576
 
@@ -591,24 +593,24 @@ function instance$o($$self, $$props, $$invalidate) {
591
593
  class RoomLabelItem extends internal.SvelteComponent {
592
594
  constructor(options) {
593
595
  super();
594
- internal.init(this, options, instance$o, create_fragment$o, internal.safe_not_equal, { five: 2, roomLabel: 0 }, add_css$j);
596
+ internal.init(this, options, instance$q, create_fragment$q, internal.safe_not_equal, { five: 2, roomLabel: 0 }, add_css$l);
595
597
  }
596
598
  }
597
599
 
598
600
  /* src/ModelRoomLabelPlugin/RoomLabelItems.svelte generated by Svelte v3.47.0 */
599
601
 
600
- function add_css$i(target) {
602
+ function add_css$k(target) {
601
603
  internal.append_styles(target, "svelte-185yvaa", ".room-labels-container.svelte-185yvaa{width:100%;height:100%;position:relative;color:#fff}");
602
604
  }
603
605
 
604
- function get_each_context$7(ctx, list, i) {
606
+ function get_each_context$8(ctx, list, i) {
605
607
  const child_ctx = ctx.slice();
606
608
  child_ctx[9] = list[i];
607
609
  return child_ctx;
608
610
  }
609
611
 
610
612
  // (70:2) {#each roomLabels as roomLableItem (roomLableItem.id)}
611
- function create_each_block$7(key_1, ctx) {
613
+ function create_each_block$8(key_1, ctx) {
612
614
  let first;
613
615
  let roomlabelitem;
614
616
  let current;
@@ -656,7 +658,7 @@ function create_each_block$7(key_1, ctx) {
656
658
  };
657
659
  }
658
660
 
659
- function create_fragment$n(ctx) {
661
+ function create_fragment$p(ctx) {
660
662
  let div;
661
663
  let each_blocks = [];
662
664
  let each_1_lookup = new Map();
@@ -666,9 +668,9 @@ function create_fragment$n(ctx) {
666
668
  const get_key = ctx => /*roomLableItem*/ ctx[9].id;
667
669
 
668
670
  for (let i = 0; i < each_value.length; i += 1) {
669
- let child_ctx = get_each_context$7(ctx, each_value, i);
671
+ let child_ctx = get_each_context$8(ctx, each_value, i);
670
672
  let key = get_key(child_ctx);
671
- each_1_lookup.set(key, each_blocks[i] = create_each_block$7(key, child_ctx));
673
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$8(key, child_ctx));
672
674
  }
673
675
 
674
676
  return {
@@ -696,7 +698,7 @@ function create_fragment$n(ctx) {
696
698
  if (dirty & /*roomLabels, five*/ 3) {
697
699
  each_value = /*roomLabels*/ ctx[0];
698
700
  internal.group_outros();
699
- each_blocks = internal.update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, internal.outro_and_destroy_block, create_each_block$7, null, get_each_context$7);
701
+ each_blocks = internal.update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, internal.outro_and_destroy_block, create_each_block$8, null, get_each_context$8);
700
702
  internal.check_outros();
701
703
  }
702
704
  },
@@ -728,7 +730,7 @@ function create_fragment$n(ctx) {
728
730
  };
729
731
  }
730
732
 
731
- function instance$n($$self, $$props, $$invalidate) {
733
+ function instance$p($$self, $$props, $$invalidate) {
732
734
  let { five } = $$props;
733
735
  let { roomLabels } = $$props;
734
736
  let containerWidth;
@@ -762,7 +764,7 @@ function instance$n($$self, $$props, $$invalidate) {
762
764
 
763
765
  function getFormatedRoomLabels(five, labels) {
764
766
  const newLabels = labels.map(roomLabelItem => {
765
- // 计算是否可见,入股不可见,不会更新位置
767
+ // 计算是否可见,如果不可见,不会更新位置
766
768
  const visible = getLabelVisible(five, roomLabelItem);
767
769
 
768
770
  if (!visible) return { ...roomLabelItem, visible };
@@ -819,7 +821,7 @@ function instance$n($$self, $$props, $$invalidate) {
819
821
  class RoomLabelItems extends internal.SvelteComponent {
820
822
  constructor(options) {
821
823
  super();
822
- internal.init(this, options, instance$n, create_fragment$n, internal.safe_not_equal, { five: 1, roomLabels: 0 }, add_css$i);
824
+ internal.init(this, options, instance$p, create_fragment$p, internal.safe_not_equal, { five: 1, roomLabels: 0 }, add_css$k);
823
825
  }
824
826
  }
825
827
 
@@ -1173,11 +1175,11 @@ function rad2Deg$1(rad) {
1173
1175
 
1174
1176
  /* src/floorplan/ModelFloorplanPlugin/Components/Camera.svelte generated by Svelte v3.47.0 */
1175
1177
 
1176
- function add_css$h(target) {
1178
+ function add_css$j(target) {
1177
1179
  internal.append_styles(target, "svelte-e8a2kn", ".floorplan__camera-position.svelte-e8a2kn{position:absolute;width:0;height:0}.floorplan__camera-rotate.svelte-e8a2kn{position:absolute;background-repeat:no-repeat;background-size:100%}");
1178
1180
  }
1179
1181
 
1180
- function create_fragment$m(ctx) {
1182
+ function create_fragment$o(ctx) {
1181
1183
  let div1;
1182
1184
  let div0;
1183
1185
 
@@ -1214,7 +1216,7 @@ function create_fragment$m(ctx) {
1214
1216
  };
1215
1217
  }
1216
1218
 
1217
- function instance$m($$self, $$props, $$invalidate) {
1219
+ function instance$o($$self, $$props, $$invalidate) {
1218
1220
  let { panoIndex } = $$props;
1219
1221
  let { floorplanData } = $$props;
1220
1222
  let { lastPanoramaLongitude } = $$props;
@@ -1260,8 +1262,8 @@ class Camera$1 extends internal.SvelteComponent {
1260
1262
  internal.init(
1261
1263
  this,
1262
1264
  options,
1263
- instance$m,
1264
- create_fragment$m,
1265
+ instance$o,
1266
+ create_fragment$o,
1265
1267
  internal.safe_not_equal,
1266
1268
  {
1267
1269
  panoIndex: 5,
@@ -1269,7 +1271,7 @@ class Camera$1 extends internal.SvelteComponent {
1269
1271
  lastPanoramaLongitude: 7,
1270
1272
  cameraImageUrl: 0
1271
1273
  },
1272
- add_css$h
1274
+ add_css$j
1273
1275
  );
1274
1276
  }
1275
1277
  }
@@ -1278,7 +1280,7 @@ const COMPASS_IMAGE = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArUAAAB7CAM
1278
1280
 
1279
1281
  /* src/floorplan/ModelFloorplanPlugin/Components/Compass.svelte generated by Svelte v3.47.0 */
1280
1282
 
1281
- function add_css$g(target) {
1283
+ function add_css$i(target) {
1282
1284
  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}");
1283
1285
  }
1284
1286
 
@@ -1319,7 +1321,7 @@ function create_if_block$8(ctx) {
1319
1321
  };
1320
1322
  }
1321
1323
 
1322
- function create_fragment$l(ctx) {
1324
+ function create_fragment$n(ctx) {
1323
1325
  let if_block_anchor;
1324
1326
  let if_block = /*northRad*/ ctx[1] && create_if_block$8(ctx);
1325
1327
 
@@ -1348,7 +1350,7 @@ function rad2Deg(rad) {
1348
1350
  return rad / Math.PI * 180;
1349
1351
  }
1350
1352
 
1351
- function instance$l($$self, $$props, $$invalidate) {
1353
+ function instance$n($$self, $$props, $$invalidate) {
1352
1354
  let { floorplanData } = $$props;
1353
1355
  let { northDesc } = $$props;
1354
1356
  const northRad = floorplanData.entrance?.northRad;
@@ -1366,13 +1368,13 @@ function instance$l($$self, $$props, $$invalidate) {
1366
1368
  class Compass extends internal.SvelteComponent {
1367
1369
  constructor(options) {
1368
1370
  super();
1369
- internal.init(this, options, instance$l, create_fragment$l, internal.safe_not_equal, { floorplanData: 3, northDesc: 0 }, add_css$g);
1371
+ internal.init(this, options, instance$n, create_fragment$n, internal.safe_not_equal, { floorplanData: 3, northDesc: 0 }, add_css$i);
1370
1372
  }
1371
1373
  }
1372
1374
 
1373
1375
  /* src/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.svelte generated by Svelte v3.47.0 */
1374
1376
 
1375
- function add_css$f(target) {
1377
+ function add_css$h(target) {
1376
1378
  internal.append_styles(target, "svelte-1ashbdx", ".floorplan-plugin__room-label-item.svelte-1ashbdx{position:absolute;display:flex;flex-flow:column;align-items:center;line-height:15px;color:#fff;transform:translate(-50%, -50%);white-space:nowrap}.floorplan-plugin__room-size.svelte-1ashbdx{opacity:0.45}");
1377
1379
  }
1378
1380
 
@@ -1437,7 +1439,7 @@ function create_if_block$7(ctx) {
1437
1439
  };
1438
1440
  }
1439
1441
 
1440
- function create_fragment$k(ctx) {
1442
+ function create_fragment$m(ctx) {
1441
1443
  let div;
1442
1444
 
1443
1445
  function select_block_type(ctx, dirty) {
@@ -1486,7 +1488,7 @@ function create_fragment$k(ctx) {
1486
1488
  };
1487
1489
  }
1488
1490
 
1489
- function instance$k($$self, $$props, $$invalidate) {
1491
+ function instance$m($$self, $$props, $$invalidate) {
1490
1492
  let userConfigElement;
1491
1493
  let { room } = $$props;
1492
1494
  let { getLabelElement } = $$props;
@@ -1518,17 +1520,17 @@ function instance$k($$self, $$props, $$invalidate) {
1518
1520
  class RoomLabel extends internal.SvelteComponent {
1519
1521
  constructor(options) {
1520
1522
  super();
1521
- internal.init(this, options, instance$k, create_fragment$k, internal.safe_not_equal, { room: 0, getLabelElement: 1 }, add_css$f);
1523
+ internal.init(this, options, instance$m, create_fragment$m, internal.safe_not_equal, { room: 0, getLabelElement: 1 }, add_css$h);
1522
1524
  }
1523
1525
  }
1524
1526
 
1525
1527
  /* src/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.svelte generated by Svelte v3.47.0 */
1526
1528
 
1527
- function add_css$e(target) {
1529
+ function add_css$g(target) {
1528
1530
  internal.append_styles(target, "svelte-sw25w3", ".floorplan-plugin__room-labels.svelte-sw25w3{width:100%;height:100%;position:absolute;left:0;top:0;z-index:20}");
1529
1531
  }
1530
1532
 
1531
- function get_each_context$6(ctx, list, i) {
1533
+ function get_each_context$7(ctx, list, i) {
1532
1534
  const child_ctx = ctx.slice();
1533
1535
  child_ctx[4] = list[i];
1534
1536
  return child_ctx;
@@ -1544,9 +1546,9 @@ function create_if_block$6(ctx) {
1544
1546
  const get_key = ctx => /*room*/ ctx[4].id;
1545
1547
 
1546
1548
  for (let i = 0; i < each_value.length; i += 1) {
1547
- let child_ctx = get_each_context$6(ctx, each_value, i);
1549
+ let child_ctx = get_each_context$7(ctx, each_value, i);
1548
1550
  let key = get_key(child_ctx);
1549
- each_1_lookup.set(key, each_blocks[i] = create_each_block$6(key, child_ctx));
1551
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$7(key, child_ctx));
1550
1552
  }
1551
1553
 
1552
1554
  return {
@@ -1572,7 +1574,7 @@ function create_if_block$6(ctx) {
1572
1574
  if (dirty & /*rooms, getLabelElement*/ 3) {
1573
1575
  each_value = /*rooms*/ ctx[1];
1574
1576
  internal.group_outros();
1575
- each_blocks = internal.update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, internal.outro_and_destroy_block, create_each_block$6, null, get_each_context$6);
1577
+ each_blocks = internal.update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, internal.outro_and_destroy_block, create_each_block$7, null, get_each_context$7);
1576
1578
  internal.check_outros();
1577
1579
  }
1578
1580
  },
@@ -1603,7 +1605,7 @@ function create_if_block$6(ctx) {
1603
1605
  }
1604
1606
 
1605
1607
  // (10:4) {#each rooms as room (room.id)}
1606
- function create_each_block$6(key_1, ctx) {
1608
+ function create_each_block$7(key_1, ctx) {
1607
1609
  let first;
1608
1610
  let roomlabel;
1609
1611
  let current;
@@ -1666,7 +1668,7 @@ function create_each_block$6(key_1, ctx) {
1666
1668
  };
1667
1669
  }
1668
1670
 
1669
- function create_fragment$j(ctx) {
1671
+ function create_fragment$l(ctx) {
1670
1672
  let if_block_anchor;
1671
1673
  let current;
1672
1674
  let if_block = /*rooms*/ ctx[1] && create_if_block$6(ctx);
@@ -1721,7 +1723,7 @@ function create_fragment$j(ctx) {
1721
1723
  };
1722
1724
  }
1723
1725
 
1724
- function instance$j($$self, $$props, $$invalidate) {
1726
+ function instance$l($$self, $$props, $$invalidate) {
1725
1727
  let rooms;
1726
1728
  let { floorIndex } = $$props;
1727
1729
  let { floorplanData } = $$props;
@@ -1749,15 +1751,15 @@ class RoomLabels extends internal.SvelteComponent {
1749
1751
  internal.init(
1750
1752
  this,
1751
1753
  options,
1752
- instance$j,
1753
- create_fragment$j,
1754
+ instance$l,
1755
+ create_fragment$l,
1754
1756
  internal.safe_not_equal,
1755
1757
  {
1756
1758
  floorIndex: 2,
1757
1759
  floorplanData: 3,
1758
1760
  getLabelElement: 0
1759
1761
  },
1760
- add_css$e
1762
+ add_css$g
1761
1763
  );
1762
1764
  }
1763
1765
  }
@@ -1776,11 +1778,11 @@ function notNil(value) {
1776
1778
 
1777
1779
  /* src/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.svelte generated by Svelte v3.47.0 */
1778
1780
 
1779
- function add_css$d(target) {
1781
+ function add_css$f(target) {
1780
1782
  internal.append_styles(target, "svelte-1rr09in", ".floorplan-plugin__rule-labels.svelte-1rr09in{position:absolute;height:5px;display:flex;align-items:center}.floorplan-plugin__rule-labels-top.svelte-1rr09in{left:0;top:0}.floorplan-plugin__rule-labels-bottom.svelte-1rr09in{left:0;bottom:0}.floorplan-plugin__rule-labels-left.svelte-1rr09in{bottom:0;left:0}.floorplan-plugin__rule-labels-right.svelte-1rr09in{bottom:0;right:0}.floorplan-plugin__rule-line.svelte-1rr09in{background:#fff;opacity:0.05;width:100%;height:1px}.floorplan-plugin__rule-scale.svelte-1rr09in{position:absolute;background:#fff;opacity:0.05;transform-origin:center;width:1px;height:5px}.floorplan-plugin__text-wrapper.svelte-1rr09in{width:0;height:0;position:absolute}.floorplan-plugin__text-wrapper.floorplan-plugin__text-wrapper--is-left-or-top.svelte-1rr09in{top:10px}.floorplan-plugin__text-wrapper.floorplan-plugin__text-wrapper-is-right-or-bottom.svelte-1rr09in{bottom:10px}.floorplan-plugin__rule-text.svelte-1rr09in{position:absolute;width:max-content;display:block;transform:translate(-50%, -50%) rotate(180deg);font-size:10px;color:#fff;opacity:0.2}.floorplan-plugin__rule-text.is-row.svelte-1rr09in{transform:translate(-50%, -50%)}");
1781
1783
  }
1782
1784
 
1783
- function get_each_context$5(ctx, list, i) {
1785
+ function get_each_context$6(ctx, list, i) {
1784
1786
  const child_ctx = ctx.slice();
1785
1787
  child_ctx[24] = list[i];
1786
1788
  child_ctx[26] = i;
@@ -1821,7 +1823,7 @@ function create_each_block_1(key_1, ctx) {
1821
1823
  }
1822
1824
 
1823
1825
  // (69:2) {#each textArray as textItem, textItemIndex (textItemIndex)}
1824
- function create_each_block$5(key_1, ctx) {
1826
+ function create_each_block$6(key_1, ctx) {
1825
1827
  let div;
1826
1828
  let span;
1827
1829
  let t0_value = /*textItem*/ ctx[24].distance + "";
@@ -1860,7 +1862,7 @@ function create_each_block$5(key_1, ctx) {
1860
1862
  };
1861
1863
  }
1862
1864
 
1863
- function create_fragment$i(ctx) {
1865
+ function create_fragment$k(ctx) {
1864
1866
  let div1;
1865
1867
  let div0;
1866
1868
  let t0;
@@ -1883,9 +1885,9 @@ function create_fragment$i(ctx) {
1883
1885
  const get_key_1 = ctx => /*textItemIndex*/ ctx[26];
1884
1886
 
1885
1887
  for (let i = 0; i < each_value.length; i += 1) {
1886
- let child_ctx = get_each_context$5(ctx, each_value, i);
1888
+ let child_ctx = get_each_context$6(ctx, each_value, i);
1887
1889
  let key = get_key_1(child_ctx);
1888
- each1_lookup.set(key, each_blocks[i] = create_each_block$5(key, child_ctx));
1890
+ each1_lookup.set(key, each_blocks[i] = create_each_block$6(key, child_ctx));
1889
1891
  }
1890
1892
 
1891
1893
  return {
@@ -1933,7 +1935,7 @@ function create_fragment$i(ctx) {
1933
1935
 
1934
1936
  if (dirty & /*isLeft, isTop, isRight, isBottom, textArray, isRow*/ 1086) {
1935
1937
  each_value = /*textArray*/ ctx[10];
1936
- each_blocks = internal.update_keyed_each(each_blocks, dirty, get_key_1, 1, ctx, each_value, each1_lookup, div1, internal.destroy_block, create_each_block$5, null, get_each_context$5);
1938
+ each_blocks = internal.update_keyed_each(each_blocks, dirty, get_key_1, 1, ctx, each_value, each1_lookup, div1, internal.destroy_block, create_each_block$6, null, get_each_context$6);
1937
1939
  }
1938
1940
 
1939
1941
  if (dirty & /*type*/ 1 && div1_class_value !== (div1_class_value = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels-" + /*type*/ ctx[0] + " svelte-1rr09in")) {
@@ -1958,7 +1960,7 @@ function create_fragment$i(ctx) {
1958
1960
 
1959
1961
  const padding = 1000;
1960
1962
 
1961
- function instance$i($$self, $$props, $$invalidate) {
1963
+ function instance$k($$self, $$props, $$invalidate) {
1962
1964
  let { pxmm } = $$props;
1963
1965
  let { type } = $$props;
1964
1966
  let { data } = $$props;
@@ -2040,8 +2042,8 @@ class RuleItem extends internal.SvelteComponent {
2040
2042
  internal.init(
2041
2043
  this,
2042
2044
  options,
2043
- instance$i,
2044
- create_fragment$i,
2045
+ instance$k,
2046
+ create_fragment$k,
2045
2047
  internal.safe_not_equal,
2046
2048
  {
2047
2049
  pxmm: 11,
@@ -2049,14 +2051,14 @@ class RuleItem extends internal.SvelteComponent {
2049
2051
  data: 12,
2050
2052
  bounding: 13
2051
2053
  },
2052
- add_css$d
2054
+ add_css$f
2053
2055
  );
2054
2056
  }
2055
2057
  }
2056
2058
 
2057
2059
  /* src/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.svelte generated by Svelte v3.47.0 */
2058
2060
 
2059
- function get_each_context$4(ctx, list, i) {
2061
+ function get_each_context$5(ctx, list, i) {
2060
2062
  const child_ctx = ctx.slice();
2061
2063
  child_ctx[7] = list[i][0];
2062
2064
  child_ctx[8] = list[i][1];
@@ -2064,7 +2066,7 @@ function get_each_context$4(ctx, list, i) {
2064
2066
  }
2065
2067
 
2066
2068
  // (12:2) {#each ruleLabelArray as [type, data] (type)}
2067
- function create_each_block$4(key_1, ctx) {
2069
+ function create_each_block$5(key_1, ctx) {
2068
2070
  let first;
2069
2071
  let ruleitem;
2070
2072
  let current;
@@ -2131,7 +2133,7 @@ function create_each_block$4(key_1, ctx) {
2131
2133
  };
2132
2134
  }
2133
2135
 
2134
- function create_fragment$h(ctx) {
2136
+ function create_fragment$j(ctx) {
2135
2137
  let div;
2136
2138
  let each_blocks = [];
2137
2139
  let each_1_lookup = new Map();
@@ -2140,9 +2142,9 @@ function create_fragment$h(ctx) {
2140
2142
  const get_key = ctx => /*type*/ ctx[7];
2141
2143
 
2142
2144
  for (let i = 0; i < each_value.length; i += 1) {
2143
- let child_ctx = get_each_context$4(ctx, each_value, i);
2145
+ let child_ctx = get_each_context$5(ctx, each_value, i);
2144
2146
  let key = get_key(child_ctx);
2145
- each_1_lookup.set(key, each_blocks[i] = create_each_block$4(key, child_ctx));
2147
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$5(key, child_ctx));
2146
2148
  }
2147
2149
 
2148
2150
  return {
@@ -2168,7 +2170,7 @@ function create_fragment$h(ctx) {
2168
2170
  if (dirty & /*ruleLabelArray, pxmm, bounding*/ 7) {
2169
2171
  each_value = /*ruleLabelArray*/ ctx[1];
2170
2172
  internal.group_outros();
2171
- each_blocks = internal.update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, internal.outro_and_destroy_block, create_each_block$4, null, get_each_context$4);
2173
+ each_blocks = internal.update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, internal.outro_and_destroy_block, create_each_block$5, null, get_each_context$5);
2172
2174
  internal.check_outros();
2173
2175
  }
2174
2176
  },
@@ -2198,7 +2200,7 @@ function create_fragment$h(ctx) {
2198
2200
  };
2199
2201
  }
2200
2202
 
2201
- function instance$h($$self, $$props, $$invalidate) {
2203
+ function instance$j($$self, $$props, $$invalidate) {
2202
2204
  let bounding;
2203
2205
  let ruleLabelData;
2204
2206
  let ruleLabelDataKeys;
@@ -2245,17 +2247,17 @@ function instance$h($$self, $$props, $$invalidate) {
2245
2247
  class RuleLabels extends internal.SvelteComponent {
2246
2248
  constructor(options) {
2247
2249
  super();
2248
- internal.init(this, options, instance$h, create_fragment$h, internal.safe_not_equal, { pxmm: 0, floorIndex: 3, floorplanData: 4 });
2250
+ internal.init(this, options, instance$j, create_fragment$j, internal.safe_not_equal, { pxmm: 0, floorIndex: 3, floorplanData: 4 });
2249
2251
  }
2250
2252
  }
2251
2253
 
2252
2254
  /* src/floorplan/Components/Normalmage.svelte generated by Svelte v3.47.0 */
2253
2255
 
2254
- function add_css$c(target) {
2256
+ function add_css$e(target) {
2255
2257
  internal.append_styles(target, "svelte-1cuuebb", "img.svelte-1cuuebb{width:100%;height:100%}");
2256
2258
  }
2257
2259
 
2258
- function create_fragment$g(ctx) {
2260
+ function create_fragment$i(ctx) {
2259
2261
  let img;
2260
2262
  let img_src_value;
2261
2263
 
@@ -2282,7 +2284,7 @@ function create_fragment$g(ctx) {
2282
2284
  };
2283
2285
  }
2284
2286
 
2285
- function instance$g($$self, $$props, $$invalidate) {
2287
+ function instance$i($$self, $$props, $$invalidate) {
2286
2288
  let { url } = $$props;
2287
2289
 
2288
2290
  $$self.$$set = $$props => {
@@ -2295,17 +2297,17 @@ function instance$g($$self, $$props, $$invalidate) {
2295
2297
  class Normalmage extends internal.SvelteComponent {
2296
2298
  constructor(options) {
2297
2299
  super();
2298
- internal.init(this, options, instance$g, create_fragment$g, internal.safe_not_equal, { url: 0 }, add_css$c);
2300
+ internal.init(this, options, instance$i, create_fragment$i, internal.safe_not_equal, { url: 0 }, add_css$e);
2299
2301
  }
2300
2302
  }
2301
2303
 
2302
2304
  /* src/floorplan/Components/SvgImage.svelte generated by Svelte v3.47.0 */
2303
2305
 
2304
- function add_css$b(target) {
2306
+ function add_css$d(target) {
2305
2307
  internal.append_styles(target, "svelte-1qqy56u", ".floorplan-plugin__base-image.svelte-1qqy56u{width:100%;height:100%}");
2306
2308
  }
2307
2309
 
2308
- function create_fragment$f(ctx) {
2310
+ function create_fragment$h(ctx) {
2309
2311
  let div;
2310
2312
  let html_tag;
2311
2313
  let t;
@@ -2338,7 +2340,7 @@ function create_fragment$f(ctx) {
2338
2340
  };
2339
2341
  }
2340
2342
 
2341
- function instance$f($$self, $$props, $$invalidate) {
2343
+ function instance$h($$self, $$props, $$invalidate) {
2342
2344
  let { content } = $$props;
2343
2345
 
2344
2346
  const svgStyle = `
@@ -2363,13 +2365,13 @@ function instance$f($$self, $$props, $$invalidate) {
2363
2365
  class SvgImage extends internal.SvelteComponent {
2364
2366
  constructor(options) {
2365
2367
  super();
2366
- internal.init(this, options, instance$f, create_fragment$f, internal.safe_not_equal, { content: 0 }, add_css$b);
2368
+ internal.init(this, options, instance$h, create_fragment$h, internal.safe_not_equal, { content: 0 }, add_css$d);
2367
2369
  }
2368
2370
  }
2369
2371
 
2370
2372
  /* src/floorplan/Components/BaseImage.svelte generated by Svelte v3.47.0 */
2371
2373
 
2372
- function add_css$a(target) {
2374
+ function add_css$c(target) {
2373
2375
  internal.append_styles(target, "svelte-126ja8e", ".floorplan-plugin__base-image.svelte-126ja8e{position:absolute;z-index:10;width:100%;height:100%;pointer-events:none}");
2374
2376
  }
2375
2377
 
@@ -2444,7 +2446,7 @@ function create_if_block$5(ctx) {
2444
2446
  };
2445
2447
  }
2446
2448
 
2447
- function create_fragment$e(ctx) {
2449
+ function create_fragment$g(ctx) {
2448
2450
  let div;
2449
2451
  let current_block_type_index;
2450
2452
  let if_block;
@@ -2532,7 +2534,7 @@ function create_fragment$e(ctx) {
2532
2534
  };
2533
2535
  }
2534
2536
 
2535
- function instance$e($$self, $$props, $$invalidate) {
2537
+ function instance$g($$self, $$props, $$invalidate) {
2536
2538
  let imageData;
2537
2539
  let svgContent;
2538
2540
  let { floorIndex } = $$props;
@@ -2559,13 +2561,13 @@ function instance$e($$self, $$props, $$invalidate) {
2559
2561
  class BaseImage extends internal.SvelteComponent {
2560
2562
  constructor(options) {
2561
2563
  super();
2562
- internal.init(this, options, instance$e, create_fragment$e, internal.safe_not_equal, { floorIndex: 2, floorplanData: 3 }, add_css$a);
2564
+ internal.init(this, options, instance$g, create_fragment$g, internal.safe_not_equal, { floorIndex: 2, floorplanData: 3 }, add_css$c);
2563
2565
  }
2564
2566
  }
2565
2567
 
2566
2568
  /* src/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte generated by Svelte v3.47.0 */
2567
2569
 
2568
- function create_fragment$d(ctx) {
2570
+ function create_fragment$f(ctx) {
2569
2571
  let path_1;
2570
2572
 
2571
2573
  return {
@@ -2590,7 +2592,7 @@ function create_fragment$d(ctx) {
2590
2592
  };
2591
2593
  }
2592
2594
 
2593
- function instance$d($$self, $$props, $$invalidate) {
2595
+ function instance$f($$self, $$props, $$invalidate) {
2594
2596
  let d;
2595
2597
  let { path } = $$props;
2596
2598
 
@@ -2610,13 +2612,13 @@ function instance$d($$self, $$props, $$invalidate) {
2610
2612
  class RoomMaterial_0 extends internal.SvelteComponent {
2611
2613
  constructor(options) {
2612
2614
  super();
2613
- internal.init(this, options, instance$d, create_fragment$d, internal.safe_not_equal, { path: 1 });
2615
+ internal.init(this, options, instance$f, create_fragment$f, internal.safe_not_equal, { path: 1 });
2614
2616
  }
2615
2617
  }
2616
2618
 
2617
2619
  /* src/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte generated by Svelte v3.47.0 */
2618
2620
 
2619
- function create_fragment$c(ctx) {
2621
+ function create_fragment$e(ctx) {
2620
2622
  let defs;
2621
2623
  let pattern;
2622
2624
  let rect;
@@ -2676,7 +2678,7 @@ function create_fragment$c(ctx) {
2676
2678
 
2677
2679
  const halfWidth = 6;
2678
2680
 
2679
- function instance$c($$self, $$props, $$invalidate) {
2681
+ function instance$e($$self, $$props, $$invalidate) {
2680
2682
  let d;
2681
2683
  let { path } = $$props;
2682
2684
  const width = halfWidth * 2;
@@ -2698,13 +2700,13 @@ function instance$c($$self, $$props, $$invalidate) {
2698
2700
  class RoomMaterial_1 extends internal.SvelteComponent {
2699
2701
  constructor(options) {
2700
2702
  super();
2701
- internal.init(this, options, instance$c, create_fragment$c, internal.safe_not_equal, { path: 3 });
2703
+ internal.init(this, options, instance$e, create_fragment$e, internal.safe_not_equal, { path: 3 });
2702
2704
  }
2703
2705
  }
2704
2706
 
2705
2707
  /* src/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte generated by Svelte v3.47.0 */
2706
2708
 
2707
- function create_fragment$b(ctx) {
2709
+ function create_fragment$d(ctx) {
2708
2710
  let defs;
2709
2711
  let pattern0;
2710
2712
  let rect0;
@@ -2803,7 +2805,7 @@ function create_fragment$b(ctx) {
2803
2805
  };
2804
2806
  }
2805
2807
 
2806
- function instance$b($$self, $$props, $$invalidate) {
2808
+ function instance$d($$self, $$props, $$invalidate) {
2807
2809
  let d;
2808
2810
  let { path } = $$props;
2809
2811
 
@@ -2823,17 +2825,17 @@ function instance$b($$self, $$props, $$invalidate) {
2823
2825
  class RoomMaterial_2 extends internal.SvelteComponent {
2824
2826
  constructor(options) {
2825
2827
  super();
2826
- internal.init(this, options, instance$b, create_fragment$b, internal.safe_not_equal, { path: 1 });
2828
+ internal.init(this, options, instance$d, create_fragment$d, internal.safe_not_equal, { path: 1 });
2827
2829
  }
2828
2830
  }
2829
2831
 
2830
2832
  /* src/floorplan/Components/RoomMaterials/RoomMaterial.svelte generated by Svelte v3.47.0 */
2831
2833
 
2832
- function add_css$9(target) {
2834
+ function add_css$b(target) {
2833
2835
  internal.append_styles(target, "svelte-1b0icjc", "svg.svelte-1b0icjc{position:absolute;width:100%;height:100%;overflow:visible}");
2834
2836
  }
2835
2837
 
2836
- function get_each_context$3(ctx, list, i) {
2838
+ function get_each_context$4(ctx, list, i) {
2837
2839
  const child_ctx = ctx.slice();
2838
2840
  child_ctx[4] = list[i];
2839
2841
  return child_ctx;
@@ -2942,7 +2944,7 @@ function create_if_block$4(ctx) {
2942
2944
  }
2943
2945
 
2944
2946
  // (15:2) {#each rooms as room}
2945
- function create_each_block$3(ctx) {
2947
+ function create_each_block$4(ctx) {
2946
2948
  let svg;
2947
2949
  let current_block_type_index;
2948
2950
  let if_block;
@@ -3013,14 +3015,14 @@ function create_each_block$3(ctx) {
3013
3015
  };
3014
3016
  }
3015
3017
 
3016
- function create_fragment$a(ctx) {
3018
+ function create_fragment$c(ctx) {
3017
3019
  let div;
3018
3020
  let current;
3019
3021
  let each_value = /*rooms*/ ctx[0];
3020
3022
  let each_blocks = [];
3021
3023
 
3022
3024
  for (let i = 0; i < each_value.length; i += 1) {
3023
- each_blocks[i] = create_each_block$3(get_each_context$3(ctx, each_value, i));
3025
+ each_blocks[i] = create_each_block$4(get_each_context$4(ctx, each_value, i));
3024
3026
  }
3025
3027
 
3026
3028
  const out = i => internal.transition_out(each_blocks[i], 1, 1, () => {
@@ -3052,13 +3054,13 @@ function create_fragment$a(ctx) {
3052
3054
  let i;
3053
3055
 
3054
3056
  for (i = 0; i < each_value.length; i += 1) {
3055
- const child_ctx = get_each_context$3(ctx, each_value, i);
3057
+ const child_ctx = get_each_context$4(ctx, each_value, i);
3056
3058
 
3057
3059
  if (each_blocks[i]) {
3058
3060
  each_blocks[i].p(child_ctx, dirty);
3059
3061
  internal.transition_in(each_blocks[i], 1);
3060
3062
  } else {
3061
- each_blocks[i] = create_each_block$3(child_ctx);
3063
+ each_blocks[i] = create_each_block$4(child_ctx);
3062
3064
  each_blocks[i].c();
3063
3065
  internal.transition_in(each_blocks[i], 1);
3064
3066
  each_blocks[i].m(div, null);
@@ -3099,7 +3101,7 @@ function create_fragment$a(ctx) {
3099
3101
  };
3100
3102
  }
3101
3103
 
3102
- function instance$a($$self, $$props, $$invalidate) {
3104
+ function instance$c($$self, $$props, $$invalidate) {
3103
3105
  let rooms;
3104
3106
  let { floorIndex } = $$props;
3105
3107
  let { pxmm } = $$props;
@@ -3126,17 +3128,17 @@ function instance$a($$self, $$props, $$invalidate) {
3126
3128
  class RoomMaterial extends internal.SvelteComponent {
3127
3129
  constructor(options) {
3128
3130
  super();
3129
- internal.init(this, options, instance$a, create_fragment$a, internal.safe_not_equal, { floorIndex: 1, pxmm: 2, floorplanData: 3 }, add_css$9);
3131
+ internal.init(this, options, instance$c, create_fragment$c, internal.safe_not_equal, { floorIndex: 1, pxmm: 2, floorplanData: 3 }, add_css$b);
3130
3132
  }
3131
3133
  }
3132
3134
 
3133
3135
  /* src/floorplan/Components/RoomHighlight/Room.svelte generated by Svelte v3.47.0 */
3134
3136
 
3135
- function add_css$8(target) {
3137
+ function add_css$a(target) {
3136
3138
  internal.append_styles(target, "svelte-11takew", "path.svelte-11takew{opacity:0}path.svelte-11takew:hover{opacity:0.1}");
3137
3139
  }
3138
3140
 
3139
- function create_fragment$9(ctx) {
3141
+ function create_fragment$b(ctx) {
3140
3142
  let path;
3141
3143
 
3142
3144
  return {
@@ -3158,7 +3160,7 @@ function create_fragment$9(ctx) {
3158
3160
  };
3159
3161
  }
3160
3162
 
3161
- function instance$9($$self, $$props, $$invalidate) {
3163
+ function instance$b($$self, $$props, $$invalidate) {
3162
3164
  let { pxmm } = $$props;
3163
3165
  let { room } = $$props;
3164
3166
  let { floorplanData } = $$props;
@@ -3181,24 +3183,24 @@ function instance$9($$self, $$props, $$invalidate) {
3181
3183
  class Room extends internal.SvelteComponent {
3182
3184
  constructor(options) {
3183
3185
  super();
3184
- internal.init(this, options, instance$9, create_fragment$9, internal.safe_not_equal, { pxmm: 1, room: 2, floorplanData: 3 }, add_css$8);
3186
+ internal.init(this, options, instance$b, create_fragment$b, internal.safe_not_equal, { pxmm: 1, room: 2, floorplanData: 3 }, add_css$a);
3185
3187
  }
3186
3188
  }
3187
3189
 
3188
3190
  /* src/floorplan/Components/RoomHighlight/RoomHighlight.svelte generated by Svelte v3.47.0 */
3189
3191
 
3190
- function add_css$7(target) {
3192
+ function add_css$9(target) {
3191
3193
  internal.append_styles(target, "svelte-1aais5l", ".floorplan-plugin__room-highlight.svelte-1aais5l{position:absolute;width:100%;height:100%;pointer-events:all}svg.svelte-1aais5l{width:100%;height:100%;overflow:visible}");
3192
3194
  }
3193
3195
 
3194
- function get_each_context$2(ctx, list, i) {
3196
+ function get_each_context$3(ctx, list, i) {
3195
3197
  const child_ctx = ctx.slice();
3196
3198
  child_ctx[12] = list[i];
3197
3199
  return child_ctx;
3198
3200
  }
3199
3201
 
3200
3202
  // (41:4) {#each floorplanData.floorDatas[floorIndex].rooms as room (room.id)}
3201
- function create_each_block$2(key_1, ctx) {
3203
+ function create_each_block$3(key_1, ctx) {
3202
3204
  let first;
3203
3205
  let room;
3204
3206
  let current;
@@ -3263,7 +3265,7 @@ function create_each_block$2(key_1, ctx) {
3263
3265
  };
3264
3266
  }
3265
3267
 
3266
- function create_fragment$8(ctx) {
3268
+ function create_fragment$a(ctx) {
3267
3269
  let div;
3268
3270
  let svg;
3269
3271
  let each_blocks = [];
@@ -3276,9 +3278,9 @@ function create_fragment$8(ctx) {
3276
3278
  const get_key = ctx => /*room*/ ctx[12].id;
3277
3279
 
3278
3280
  for (let i = 0; i < each_value.length; i += 1) {
3279
- let child_ctx = get_each_context$2(ctx, each_value, i);
3281
+ let child_ctx = get_each_context$3(ctx, each_value, i);
3280
3282
  let key = get_key(child_ctx);
3281
- each_1_lookup.set(key, each_blocks[i] = create_each_block$2(key, child_ctx));
3283
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$3(key, child_ctx));
3282
3284
  }
3283
3285
 
3284
3286
  return {
@@ -3315,7 +3317,7 @@ function create_fragment$8(ctx) {
3315
3317
  if (dirty & /*floorplanData, floorIndex, pxmm*/ 7) {
3316
3318
  each_value = /*floorplanData*/ ctx[2].floorDatas[/*floorIndex*/ ctx[1]].rooms;
3317
3319
  internal.group_outros();
3318
- each_blocks = internal.update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, svg, internal.outro_and_destroy_block, create_each_block$2, null, get_each_context$2);
3320
+ each_blocks = internal.update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, svg, internal.outro_and_destroy_block, create_each_block$3, null, get_each_context$3);
3319
3321
  internal.check_outros();
3320
3322
  }
3321
3323
  },
@@ -3350,7 +3352,7 @@ function create_fragment$8(ctx) {
3350
3352
  };
3351
3353
  }
3352
3354
 
3353
- function instance$8($$self, $$props, $$invalidate) {
3355
+ function instance$a($$self, $$props, $$invalidate) {
3354
3356
  let { five } = $$props;
3355
3357
  let { pxmm } = $$props;
3356
3358
  let { floorIndex } = $$props;
@@ -3427,8 +3429,8 @@ class RoomHighlight extends internal.SvelteComponent {
3427
3429
  internal.init(
3428
3430
  this,
3429
3431
  options,
3430
- instance$8,
3431
- create_fragment$8,
3432
+ instance$a,
3433
+ create_fragment$a,
3432
3434
  internal.safe_not_equal,
3433
3435
  {
3434
3436
  five: 7,
@@ -3437,14 +3439,14 @@ class RoomHighlight extends internal.SvelteComponent {
3437
3439
  floorplanData: 2,
3438
3440
  onRoomHeightClick: 8
3439
3441
  },
3440
- add_css$7
3442
+ add_css$9
3441
3443
  );
3442
3444
  }
3443
3445
  }
3444
3446
 
3445
3447
  /* src/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.svelte generated by Svelte v3.47.0 */
3446
3448
 
3447
- function add_css$6(target) {
3449
+ function add_css$8(target) {
3448
3450
  internal.append_styles(target, "svelte-3pdgs4", ".floorplan-current-floor.svelte-3pdgs4{position:relative;width:100%;height:100%}");
3449
3451
  }
3450
3452
 
@@ -3623,7 +3625,7 @@ function create_if_block$3(ctx) {
3623
3625
  };
3624
3626
  }
3625
3627
 
3626
- function create_fragment$7(ctx) {
3628
+ function create_fragment$9(ctx) {
3627
3629
  let div;
3628
3630
  let roommaterial;
3629
3631
  let t0;
@@ -3815,7 +3817,7 @@ function create_fragment$7(ctx) {
3815
3817
  };
3816
3818
  }
3817
3819
 
3818
- function instance$7($$self, $$props, $$invalidate) {
3820
+ function instance$9($$self, $$props, $$invalidate) {
3819
3821
  let { pxmm } = $$props;
3820
3822
  let { five } = $$props;
3821
3823
  let { floorIndex } = $$props;
@@ -3858,8 +3860,8 @@ class CurrentFloor$1 extends internal.SvelteComponent {
3858
3860
  internal.init(
3859
3861
  this,
3860
3862
  options,
3861
- instance$7,
3862
- create_fragment$7,
3863
+ instance$9,
3864
+ create_fragment$9,
3863
3865
  internal.safe_not_equal,
3864
3866
  {
3865
3867
  pxmm: 0,
@@ -3872,14 +3874,14 @@ class CurrentFloor$1 extends internal.SvelteComponent {
3872
3874
  onRoomHeightClick: 7,
3873
3875
  getLabelElement: 8
3874
3876
  },
3875
- add_css$6
3877
+ add_css$8
3876
3878
  );
3877
3879
  }
3878
3880
  }
3879
3881
 
3880
3882
  /* src/floorplan/ModelFloorplanPlugin/Components/Main.svelte generated by Svelte v3.47.0 */
3881
3883
 
3882
- function add_css$5(target) {
3884
+ function add_css$7(target) {
3883
3885
  internal.append_styles(target, "svelte-177x2q7", ".floorplan-main.svelte-177x2q7{width:100%;height:100%}");
3884
3886
  }
3885
3887
 
@@ -4084,7 +4086,7 @@ function create_if_block_1(ctx) {
4084
4086
  };
4085
4087
  }
4086
4088
 
4087
- function create_fragment$6(ctx) {
4089
+ function create_fragment$8(ctx) {
4088
4090
  let if_block_anchor;
4089
4091
  let current;
4090
4092
  let if_block = /*visible*/ ctx[4] && create_if_block$2(ctx);
@@ -4139,7 +4141,7 @@ function create_fragment$6(ctx) {
4139
4141
  };
4140
4142
  }
4141
4143
 
4142
- function instance$6($$self, $$props, $$invalidate) {
4144
+ function instance$8($$self, $$props, $$invalidate) {
4143
4145
  let { northDesc } = $$props;
4144
4146
  let { pxmm } = $$props;
4145
4147
  let { five } = $$props;
@@ -4203,8 +4205,8 @@ class Main$1 extends internal.SvelteComponent {
4203
4205
  internal.init(
4204
4206
  this,
4205
4207
  options,
4206
- instance$6,
4207
- create_fragment$6,
4208
+ instance$8,
4209
+ create_fragment$8,
4208
4210
  internal.safe_not_equal,
4209
4211
  {
4210
4212
  northDesc: 0,
@@ -4224,7 +4226,7 @@ class Main$1 extends internal.SvelteComponent {
4224
4226
  onRoomHeightClick: 14,
4225
4227
  getLabelElement: 15
4226
4228
  },
4227
- add_css$5
4229
+ add_css$7
4228
4230
  );
4229
4231
  }
4230
4232
  }
@@ -4456,11 +4458,11 @@ function throttle(func, wait = 200) {
4456
4458
 
4457
4459
  /* src/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte generated by Svelte v3.47.0 */
4458
4460
 
4459
- function add_css$4(target) {
4461
+ function add_css$6(target) {
4460
4462
  internal.append_styles(target, "svelte-o7uo2v", ".plugin-radar__camera-wrapper.svelte-o7uo2v{width:100%;height:100%;position:absolute;pointer-events:none}.plugin-radar__camera-position.svelte-o7uo2v{position:absolute;left:0;top:0;width:0;height:0;transform:none;pointer-events:none;transition:transform 1s linear}.plugin-radar__camera-rotate.svelte-o7uo2v{position:absolute;left:-15px;top:-15px;width:17px;height:17px;transform-origin:15px 15px;transform:rotate(45deg);background-repeat:no-repeat;background-size:100%}");
4461
4463
  }
4462
4464
 
4463
- function create_fragment$5(ctx) {
4465
+ function create_fragment$7(ctx) {
4464
4466
  let div2;
4465
4467
  let div1;
4466
4468
  let div0;
@@ -4503,7 +4505,7 @@ function create_fragment$5(ctx) {
4503
4505
  };
4504
4506
  }
4505
4507
 
4506
- function instance$5($$self, $$props, $$invalidate) {
4508
+ function instance$7($$self, $$props, $$invalidate) {
4507
4509
  let { five } = $$props;
4508
4510
  let { pxmm } = $$props;
4509
4511
  let { floorplanData } = $$props;
@@ -4574,8 +4576,8 @@ class Camera extends internal.SvelteComponent {
4574
4576
  internal.init(
4575
4577
  this,
4576
4578
  options,
4577
- instance$5,
4578
- create_fragment$5,
4579
+ instance$7,
4580
+ create_fragment$7,
4579
4581
  internal.safe_not_equal,
4580
4582
  {
4581
4583
  five: 3,
@@ -4583,25 +4585,25 @@ class Camera extends internal.SvelteComponent {
4583
4585
  floorplanData: 5,
4584
4586
  cameraImageUrl: 0
4585
4587
  },
4586
- add_css$4
4588
+ add_css$6
4587
4589
  );
4588
4590
  }
4589
4591
  }
4590
4592
 
4591
4593
  /* src/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte generated by Svelte v3.47.0 */
4592
4594
 
4593
- function add_css$3(target) {
4595
+ function add_css$5(target) {
4594
4596
  internal.append_styles(target, "svelte-8n0d4v", ".plugin-pano-floorplan__extra-objects.svelte-8n0d4v{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.plugin-pano-floorplan__extra-object-item--position.svelte-8n0d4v{position:absolute;width:0;height:0}.plugin-pano-floorplan__extra-object-item.svelte-8n0d4v{transform:translate(-50%, -50%)}");
4595
4597
  }
4596
4598
 
4597
- function get_each_context$1(ctx, list, i) {
4599
+ function get_each_context$2(ctx, list, i) {
4598
4600
  const child_ctx = ctx.slice();
4599
4601
  child_ctx[1] = list[i];
4600
4602
  return child_ctx;
4601
4603
  }
4602
4604
 
4603
4605
  // (5:2) {#each extraObjects as extraObject (extraObject.id)}
4604
- function create_each_block$1(key_1, ctx) {
4606
+ function create_each_block$2(key_1, ctx) {
4605
4607
  let div1;
4606
4608
  let div0;
4607
4609
  let style_width = `${/*extraObject*/ ctx[1].icon.width / 16}rem`;
@@ -4660,7 +4662,7 @@ function create_each_block$1(key_1, ctx) {
4660
4662
  };
4661
4663
  }
4662
4664
 
4663
- function create_fragment$4(ctx) {
4665
+ function create_fragment$6(ctx) {
4664
4666
  let div;
4665
4667
  let each_blocks = [];
4666
4668
  let each_1_lookup = new Map();
@@ -4668,9 +4670,9 @@ function create_fragment$4(ctx) {
4668
4670
  const get_key = ctx => /*extraObject*/ ctx[1].id;
4669
4671
 
4670
4672
  for (let i = 0; i < each_value.length; i += 1) {
4671
- let child_ctx = get_each_context$1(ctx, each_value, i);
4673
+ let child_ctx = get_each_context$2(ctx, each_value, i);
4672
4674
  let key = get_key(child_ctx);
4673
- each_1_lookup.set(key, each_blocks[i] = create_each_block$1(key, child_ctx));
4675
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$2(key, child_ctx));
4674
4676
  }
4675
4677
 
4676
4678
  return {
@@ -4693,7 +4695,7 @@ function create_fragment$4(ctx) {
4693
4695
  p(ctx, [dirty]) {
4694
4696
  if (dirty & /*extraObjects*/ 1) {
4695
4697
  each_value = /*extraObjects*/ ctx[0];
4696
- each_blocks = internal.update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, internal.destroy_block, create_each_block$1, null, get_each_context$1);
4698
+ each_blocks = internal.update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, internal.destroy_block, create_each_block$2, null, get_each_context$2);
4697
4699
  }
4698
4700
  },
4699
4701
  i: internal.noop,
@@ -4708,7 +4710,7 @@ function create_fragment$4(ctx) {
4708
4710
  };
4709
4711
  }
4710
4712
 
4711
- function instance$4($$self, $$props, $$invalidate) {
4713
+ function instance$6($$self, $$props, $$invalidate) {
4712
4714
  let { extraObjects = [] } = $$props;
4713
4715
 
4714
4716
  $$self.$$set = $$props => {
@@ -4721,7 +4723,7 @@ function instance$4($$self, $$props, $$invalidate) {
4721
4723
  class ExtraObjects extends internal.SvelteComponent {
4722
4724
  constructor(options) {
4723
4725
  super();
4724
- internal.init(this, options, instance$4, create_fragment$4, internal.safe_not_equal, { extraObjects: 0 }, add_css$3);
4726
+ internal.init(this, options, instance$6, create_fragment$6, internal.safe_not_equal, { extraObjects: 0 }, add_css$5);
4725
4727
  }
4726
4728
  }
4727
4729
 
@@ -4787,7 +4789,7 @@ function create_if_block$1(ctx) {
4787
4789
  };
4788
4790
  }
4789
4791
 
4790
- function create_fragment$3(ctx) {
4792
+ function create_fragment$5(ctx) {
4791
4793
  let baseimage;
4792
4794
  let t0;
4793
4795
  let extraobjects;
@@ -4898,7 +4900,7 @@ function create_fragment$3(ctx) {
4898
4900
  };
4899
4901
  }
4900
4902
 
4901
- function instance$3($$self, $$props, $$invalidate) {
4903
+ function instance$5($$self, $$props, $$invalidate) {
4902
4904
  let currentFloorExtraObjects;
4903
4905
  let { five } = $$props;
4904
4906
  let { pxmm } = $$props;
@@ -4939,7 +4941,7 @@ class CurrentFloor extends internal.SvelteComponent {
4939
4941
  constructor(options) {
4940
4942
  super();
4941
4943
 
4942
- internal.init(this, options, instance$3, create_fragment$3, internal.safe_not_equal, {
4944
+ internal.init(this, options, instance$5, create_fragment$5, internal.safe_not_equal, {
4943
4945
  five: 0,
4944
4946
  pxmm: 1,
4945
4947
  floorIndex: 2,
@@ -4952,7 +4954,7 @@ class CurrentFloor extends internal.SvelteComponent {
4952
4954
 
4953
4955
  /* src/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte generated by Svelte v3.47.0 */
4954
4956
 
4955
- function add_css$2(target) {
4957
+ function add_css$4(target) {
4956
4958
  internal.append_styles(target, "svelte-7d8ub2", ".plugin-floorplan-radar.svelte-7d8ub2{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.plugin-floorplan-radar-container.svelte-7d8ub2{position:relative}");
4957
4959
  }
4958
4960
 
@@ -5075,7 +5077,7 @@ function create_if_block(ctx) {
5075
5077
  };
5076
5078
  }
5077
5079
 
5078
- function create_fragment$2(ctx) {
5080
+ function create_fragment$4(ctx) {
5079
5081
  let div;
5080
5082
  let div_resize_listener;
5081
5083
  let current;
@@ -5135,7 +5137,7 @@ function create_fragment$2(ctx) {
5135
5137
  };
5136
5138
  }
5137
5139
 
5138
- function instance$2($$self, $$props, $$invalidate) {
5140
+ function instance$4($$self, $$props, $$invalidate) {
5139
5141
  let { five } = $$props;
5140
5142
  let { hoverEnable } = $$props;
5141
5143
  let { floorplanData } = $$props;
@@ -5218,8 +5220,8 @@ class Main extends internal.SvelteComponent {
5218
5220
  internal.init(
5219
5221
  this,
5220
5222
  options,
5221
- instance$2,
5222
- create_fragment$2,
5223
+ instance$4,
5224
+ create_fragment$4,
5223
5225
  internal.safe_not_equal,
5224
5226
  {
5225
5227
  five: 0,
@@ -5228,7 +5230,7 @@ class Main extends internal.SvelteComponent {
5228
5230
  cameraImageUrl: 3,
5229
5231
  extraObjects: 4
5230
5232
  },
5231
- add_css$2
5233
+ add_css$4
5232
5234
  );
5233
5235
  }
5234
5236
  }
@@ -11931,18 +11933,18 @@ const currentTarget = store.writable(null);
11931
11933
 
11932
11934
  /* src/PanoSpatialTagPlugin/Components/origins.svelte generated by Svelte v3.47.0 */
11933
11935
 
11934
- function add_css$1(target) {
11936
+ function add_css$3(target) {
11935
11937
  internal.append_styles(target, "svelte-scnx9u", ".PanoSpatialTagPlugin__tag-origin.svelte-scnx9u{position:absolute;width:0.5rem;height:0.5rem;border-radius:50%;background:#fff;box-shadow:0 0 .6rem #fff;transform:translate(-50%, -50%) scale(1);transform-origin:center center;animation:svelte-scnx9u-PanoSpatialTagPlugin__tag-origin 1.2s forwards;pointer-events:auto}.PanoSpatialTagPlugin__tag-origin.svelte-scnx9u:after{content:'';position:absolute;top:50%;height:50%;width:2rem;height:2rem;transform:translate(-50%, -50%)}.PanoSpatialTagPlugin__tag-origin-destroy.svelte-scnx9u{transform:translate(-50%, -50%) scale(0.6);animation:svelte-scnx9u-PanoSpatialTagPlugin__tag-origin-destroy 1.2s forwards .7s}@keyframes svelte-scnx9u-PanoSpatialTagPlugin__tag-origin{0%{transform:translate(-50%, -50%) scale(1);opacity:0}100%{transform:translate(-50%, -50%) scale(0.6);opacity:1 }}@keyframes svelte-scnx9u-PanoSpatialTagPlugin__tag-origin-destroy{0%{transform:translate(-50%, -50%) scale(0.6);opacity:1}10%{transform:translate(-50%, -50%) scale(1);opacity:0.9}100%{transform:translate(-50%, -50%) scale(1);opacity:0}}");
11936
11938
  }
11937
11939
 
11938
- function get_each_context(ctx, list, i) {
11940
+ function get_each_context$1(ctx, list, i) {
11939
11941
  const child_ctx = ctx.slice();
11940
11942
  child_ctx[3] = list[i];
11941
11943
  return child_ctx;
11942
11944
  }
11943
11945
 
11944
11946
  // (8:0) {#each origins as origin}
11945
- function create_each_block(ctx) {
11947
+ function create_each_block$1(ctx) {
11946
11948
  let i;
11947
11949
  let style_top = `${/*origin*/ ctx[3].top}%`;
11948
11950
  let style_left = `${/*origin*/ ctx[3].left}%`;
@@ -11998,13 +12000,13 @@ function create_each_block(ctx) {
11998
12000
  };
11999
12001
  }
12000
12002
 
12001
- function create_fragment$1(ctx) {
12003
+ function create_fragment$3(ctx) {
12002
12004
  let each_1_anchor;
12003
12005
  let each_value = /*origins*/ ctx[0];
12004
12006
  let each_blocks = [];
12005
12007
 
12006
12008
  for (let i = 0; i < each_value.length; i += 1) {
12007
- each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
12009
+ each_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));
12008
12010
  }
12009
12011
 
12010
12012
  return {
@@ -12028,12 +12030,12 @@ function create_fragment$1(ctx) {
12028
12030
  let i;
12029
12031
 
12030
12032
  for (i = 0; i < each_value.length; i += 1) {
12031
- const child_ctx = get_each_context(ctx, each_value, i);
12033
+ const child_ctx = get_each_context$1(ctx, each_value, i);
12032
12034
 
12033
12035
  if (each_blocks[i]) {
12034
12036
  each_blocks[i].p(child_ctx, dirty);
12035
12037
  } else {
12036
- each_blocks[i] = create_each_block(child_ctx);
12038
+ each_blocks[i] = create_each_block$1(child_ctx);
12037
12039
  each_blocks[i].c();
12038
12040
  each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
12039
12041
  }
@@ -12055,7 +12057,7 @@ function create_fragment$1(ctx) {
12055
12057
  };
12056
12058
  }
12057
12059
 
12058
- function instance$1($$self, $$props, $$invalidate) {
12060
+ function instance$3($$self, $$props, $$invalidate) {
12059
12061
  let { origins } = $$props;
12060
12062
 
12061
12063
  const handleClick = id => {
@@ -12074,17 +12076,17 @@ function instance$1($$self, $$props, $$invalidate) {
12074
12076
  class Origins extends internal.SvelteComponent {
12075
12077
  constructor(options) {
12076
12078
  super();
12077
- internal.init(this, options, instance$1, create_fragment$1, internal.safe_not_equal, { origins: 0 }, add_css$1);
12079
+ internal.init(this, options, instance$3, create_fragment$3, internal.safe_not_equal, { origins: 0 }, add_css$3);
12078
12080
  }
12079
12081
  }
12080
12082
 
12081
12083
  /* src/PanoSpatialTagPlugin/Components/tag.svelte generated by Svelte v3.47.0 */
12082
12084
 
12083
- function add_css(target) {
12084
- internal.append_styles(target, "svelte-1xmyxaa", ".PanoSpatialTagPlugin__tag-x.svelte-1xmyxaa.svelte-1xmyxaa{position:relative;display:block;white-space:nowrap;box-sizing:border-box;width:25rem;height:14rem;color:#FFF;transform:translate(0, -100%);transition:height .5s linear}.PanoSpatialTagPlugin__tag-shadow.svelte-1xmyxaa.svelte-1xmyxaa{content:'';position:absolute;width:30rem;height:30rem;top:-15rem;left:-15rem;z-index:-1;opacity:0;transition:opacity .8s .6s;background:url('https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png');background-size:30rem 30rem}.PanoSpatialTagPlugin__tag-line.svelte-1xmyxaa.svelte-1xmyxaa{position:absolute;left:-1rem;width:2rem;height:100%;overflow:hidden}.PanoSpatialTagPlugin__tag-flagpole.svelte-1xmyxaa.svelte-1xmyxaa{position:absolute;top:0;left:1rem;height:calc(100% - 1.5rem);width:.15rem;background:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, .1));box-shadow:0 .1rem .5rem rgba(0, 0, 0, .2);opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .4s cubic-bezier(.44,.44,.74,.98) , opacity .4s cubic-bezier(.44,.44,.74,.98), width .5s linear, height .5s linear ;transform-origin:center bottom}.PanoSpatialTagPlugin__tag-line1.svelte-1xmyxaa.svelte-1xmyxaa{position:absolute;top:0;left:0.3rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-line2.svelte-1xmyxaa.svelte-1xmyxaa{position:absolute;top:0;left:0.5rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-show.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-line1.svelte-1xmyxaa{animation:svelte-1xmyxaa-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s}.PanoSpatialTagPlugin__tag-show.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-line2.svelte-1xmyxaa{animation:svelte-1xmyxaa-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s}.PanoSpatialTagPlugin__tag-x.PanoSpatialTagPlugin__tag-upside-down.svelte-1xmyxaa.svelte-1xmyxaa{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-line.svelte-1xmyxaa{transform:scaleY(-1)}.PanoSpatialTagPlugin__tag-animate.svelte-1xmyxaa.svelte-1xmyxaa{position:relative;height:100%;overflow:hidden;transform-origin:left top;transition:transform .5s linear}.PanoSpatialTagPlugin__tag-upside-down.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-animate.svelte-1xmyxaa{transform-origin:left bottom}.PanoSpatialTagPlugin__tag-content.svelte-1xmyxaa.svelte-1xmyxaa{position:absolute;display:inline-block;transform:translate(-100%, 0);transition:transform .9s cubic-bezier(0,.65,.16,1.08) .6s;padding-left:.5rem;font-size:1rem}.PanoSpatialTagPlugin__tag-upside-down.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-content.svelte-1xmyxaa{bottom:0}.PanoSpatialTagPlugin__tag-show.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-flagpole.svelte-1xmyxaa{opacity:1;transform:translate(-50%, 0) scaleY(1)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-shadow.svelte-1xmyxaa{top:unset;bottom:-15rem}.PanoSpatialTagPlugin__tag-show.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-shadow.svelte-1xmyxaa{opacity:.32}.PanoSpatialTagPlugin__tag-show.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-content.svelte-1xmyxaa{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-hide.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-flagpole.svelte-1xmyxaa{opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .5s .55s, opacity .4s .55s}.PanoSpatialTagPlugin__tag-hide.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-shadow.svelte-1xmyxaa{opacity:0;transition:opacity .8s}.PanoSpatialTagPlugin__tag-hide.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-content.svelte-1xmyxaa{transform:translate(-100%, 0);transition:transform .6s cubic-bezier(.53,.06,.88,.59)}.PanoSpatialTagPlugin__tag-hide.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-content .svelte-1xmyxaa{pointer-events:none}.PanoSpatialTagPlugin__tag-hide.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-line1.svelte-1xmyxaa{opacity:0.5;transform:translate(-50%, 10%) scaleY(0);animation:svelte-1xmyxaa-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s}.PanoSpatialTagPlugin__tag-hide.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-line2.svelte-1xmyxaa{opacity:0.5;transform:translate(-50%, 0) scaleY(0);animation:svelte-1xmyxaa-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s}@keyframes svelte-1xmyxaa-PanoSpatialTagPlugin__tag-line1{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 135%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 20%) scaleY(0)}}@keyframes svelte-1xmyxaa-PanoSpatialTagPlugin__tag-line2{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 125%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}}@keyframes svelte-1xmyxaa-PanoSpatialTagPlugin__tag-line1-hide{0%{opacity:0.5;transform:translate(-50%, 10%) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 105%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@keyframes svelte-1xmyxaa-PanoSpatialTagPlugin__tag-line2-hide{0%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 100%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}");
12085
+ function add_css$2(target) {
12086
+ internal.append_styles(target, "svelte-1c0xhg0", ".PanoSpatialTagPlugin__tag-x.svelte-1c0xhg0.svelte-1c0xhg0{position:relative;display:block;white-space:nowrap;box-sizing:border-box;width:25rem;height:14rem;color:#FFF;transform:translate(0, -100%);transition:height .5s linear}.PanoSpatialTagPlugin__tag-shadow.svelte-1c0xhg0.svelte-1c0xhg0{content:'';position:absolute;width:30rem;height:30rem;top:-15rem;left:-15rem;z-index:-1;opacity:0;transition:opacity .8s .6s;background:url('https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png');background-size:30rem 30rem}.PanoSpatialTagPlugin__tag-line.svelte-1c0xhg0.svelte-1c0xhg0{position:absolute;left:-1rem;width:2rem;height:100%;overflow:hidden}.PanoSpatialTagPlugin__tag-flagpole.svelte-1c0xhg0.svelte-1c0xhg0{position:absolute;top:0;left:1rem;height:calc(100% - 1.5rem);width:.15rem;background:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, .1));box-shadow:0 .1rem .5rem rgba(0, 0, 0, .2);opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .4s cubic-bezier(.44,.44,.74,.98) , opacity .4s cubic-bezier(.44,.44,.74,.98), width .5s linear, height .5s linear ;transform-origin:center bottom}.PanoSpatialTagPlugin__tag-line1.svelte-1c0xhg0.svelte-1c0xhg0{position:absolute;top:0;left:0.3rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-line2.svelte-1c0xhg0.svelte-1c0xhg0{position:absolute;top:0;left:0.5rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-show.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-line1.svelte-1c0xhg0{animation:svelte-1c0xhg0-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s}.PanoSpatialTagPlugin__tag-show.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-line2.svelte-1c0xhg0{animation:svelte-1c0xhg0-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s}.PanoSpatialTagPlugin__tag-x.PanoSpatialTagPlugin__tag-upside-down.svelte-1c0xhg0.svelte-1c0xhg0{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-line.svelte-1c0xhg0{transform:scaleY(-1)}.PanoSpatialTagPlugin__tag-animate.svelte-1c0xhg0.svelte-1c0xhg0{position:relative;height:100%;overflow:hidden;transform-origin:left top;transition:transform .5s linear}.PanoSpatialTagPlugin__tag-upside-down.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-animate.svelte-1c0xhg0{transform-origin:left bottom}.PanoSpatialTagPlugin__tag-content.svelte-1c0xhg0.svelte-1c0xhg0{position:absolute;display:inline-block;transform:translate(-100%, 0);transition:transform .9s cubic-bezier(0,.65,.16,1.08) .6s;padding-left:.5rem;font-size:1rem}.PanoSpatialTagPlugin__tag-upside-down.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-content.svelte-1c0xhg0{bottom:0}.PanoSpatialTagPlugin__tag-show.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-flagpole.svelte-1c0xhg0{opacity:1;transform:translate(-50%, 0) scaleY(1)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-shadow.svelte-1c0xhg0{top:unset;bottom:-15rem}.PanoSpatialTagPlugin__tag-show.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-shadow.svelte-1c0xhg0{opacity:.32}.PanoSpatialTagPlugin__tag-show.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-content.svelte-1c0xhg0{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-hide.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-flagpole.svelte-1c0xhg0{opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .5s .55s, opacity .4s .55s}.PanoSpatialTagPlugin__tag-hide.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-shadow.svelte-1c0xhg0{opacity:0;transition:opacity .8s}.PanoSpatialTagPlugin__tag-hide.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-content.svelte-1c0xhg0{transform:translate(-100%, 0);transition:transform .6s cubic-bezier(.53,.06,.88,.59)}.PanoSpatialTagPlugin__tag-hide.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-content .svelte-1c0xhg0{pointer-events:none}.PanoSpatialTagPlugin__tag-hide.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-line1.svelte-1c0xhg0{opacity:0.5;transform:translate(-50%, 10%) scaleY(0);animation:svelte-1c0xhg0-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s}.PanoSpatialTagPlugin__tag-hide.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-line2.svelte-1c0xhg0{opacity:0.5;transform:translate(-50%, 0) scaleY(0);animation:svelte-1c0xhg0-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s}@keyframes svelte-1c0xhg0-PanoSpatialTagPlugin__tag-line1{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 135%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 20%) scaleY(0)}}@keyframes svelte-1c0xhg0-PanoSpatialTagPlugin__tag-line2{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 125%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}}@keyframes svelte-1c0xhg0-PanoSpatialTagPlugin__tag-line1-hide{0%{opacity:0.5;transform:translate(-50%, 10%) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 105%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@keyframes svelte-1c0xhg0-PanoSpatialTagPlugin__tag-line2-hide{0%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 100%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}");
12085
12087
  }
12086
12088
 
12087
- function create_fragment(ctx) {
12089
+ function create_fragment$2(ctx) {
12088
12090
  let div4;
12089
12091
  let div0;
12090
12092
  let t0;
@@ -12115,19 +12117,19 @@ function create_fragment(ctx) {
12115
12117
  t3 = internal.space();
12116
12118
  div3 = internal.element("div");
12117
12119
  div2 = internal.element("div");
12118
- internal.attr(div0, "class", "PanoSpatialTagPlugin__tag-shadow svelte-1xmyxaa");
12120
+ internal.attr(div0, "class", "PanoSpatialTagPlugin__tag-shadow svelte-1c0xhg0");
12119
12121
  internal.set_style(div0, "transform", "translate(" + /*contentWidth*/ ctx[7] / 2 * /*contentZoom*/ ctx[3] * 3 + "px, " + /*contentHeight*/ ctx[8] / 2 * (/*upsideDown*/ ctx[1] ? -1 : 1) * /*contentZoom*/ ctx[3] * 3 + "px)");
12120
- internal.attr(i0, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-1xmyxaa");
12122
+ internal.attr(i0, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-1c0xhg0");
12121
12123
  internal.set_style(i0, "width", /*lineWidthZoom*/ ctx[4] + "rem");
12122
- internal.attr(i1, "class", "PanoSpatialTagPlugin__tag-line1 svelte-1xmyxaa");
12123
- internal.attr(i2, "class", "PanoSpatialTagPlugin__tag-line2 svelte-1xmyxaa");
12124
- internal.attr(div1, "class", "PanoSpatialTagPlugin__tag-line svelte-1xmyxaa");
12125
- internal.attr(div2, "class", "PanoSpatialTagPlugin__tag-content svelte-1xmyxaa");
12126
- internal.attr(div3, "class", "PanoSpatialTagPlugin__tag-animate svelte-1xmyxaa");
12124
+ internal.attr(i1, "class", "PanoSpatialTagPlugin__tag-line1 svelte-1c0xhg0");
12125
+ internal.attr(i2, "class", "PanoSpatialTagPlugin__tag-line2 svelte-1c0xhg0");
12126
+ internal.attr(div1, "class", "PanoSpatialTagPlugin__tag-line svelte-1c0xhg0");
12127
+ internal.attr(div2, "class", "PanoSpatialTagPlugin__tag-content svelte-1c0xhg0");
12128
+ internal.attr(div3, "class", "PanoSpatialTagPlugin__tag-animate svelte-1c0xhg0");
12127
12129
  internal.set_style(div3, "transform", "scale(" + /*contentZoom*/ ctx[3] * 3 + ")");
12128
12130
  internal.attr(div4, "id", div4_id_value = 'PanoSpatialTagPlugin__' + /*id*/ ctx[0]);
12129
12131
  internal.set_style(div4, "height", 20 * /*lineHeightZoom*/ ctx[5] + "rem");
12130
- internal.attr(div4, "class", "svelte-1xmyxaa");
12132
+ internal.attr(div4, "class", "svelte-1c0xhg0");
12131
12133
  internal.toggle_class(div4, "PanoSpatialTagPlugin__tag-x", true);
12132
12134
  internal.toggle_class(div4, "PanoSpatialTagPlugin__tag-upside-down", /*upsideDown*/ ctx[1]);
12133
12135
  internal.toggle_class(div4, "PanoSpatialTagPlugin__tag-show", /*show*/ ctx[10]);
@@ -12199,7 +12201,7 @@ function create_fragment(ctx) {
12199
12201
  };
12200
12202
  }
12201
12203
 
12202
- function instance($$self, $$props, $$invalidate) {
12204
+ function instance$2($$self, $$props, $$invalidate) {
12203
12205
  let { id } = $$props;
12204
12206
  let { upsideDown } = $$props;
12205
12207
  let { content } = $$props;
@@ -12336,8 +12338,8 @@ class Tag extends internal.SvelteComponent {
12336
12338
  internal.init(
12337
12339
  this,
12338
12340
  options,
12339
- instance,
12340
- create_fragment,
12341
+ instance$2,
12342
+ create_fragment$2,
12341
12343
  internal.safe_not_equal,
12342
12344
  {
12343
12345
  id: 0,
@@ -12352,7 +12354,7 @@ class Tag extends internal.SvelteComponent {
12352
12354
  events: 14,
12353
12355
  hooks: 15
12354
12356
  },
12355
- add_css
12357
+ add_css$2
12356
12358
  );
12357
12359
  }
12358
12360
  }
@@ -12951,11 +12953,655 @@ const PanoSpatialTagPlugin = (five$1, params) => {
12951
12953
  };
12952
12954
  };
12953
12955
 
12956
+ var DISPLAY_STRATEGY_TYPE;
12957
+ (function (DISPLAY_STRATEGY_TYPE) {
12958
+ DISPLAY_STRATEGY_TYPE["SMALL"] = "small";
12959
+ DISPLAY_STRATEGY_TYPE["MIDLLE"] = "middle";
12960
+ DISPLAY_STRATEGY_TYPE["LARGE"] = "large";
12961
+ })(DISPLAY_STRATEGY_TYPE || (DISPLAY_STRATEGY_TYPE = {}));
12962
+
12963
+ /* src/ModelItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.47.0 */
12964
+
12965
+ function add_css$1(target) {
12966
+ internal.append_styles(target, "svelte-1mttyji", ".item-label-item.svelte-1mttyji{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;user-select:none;opacity:0}.item-label-item.visible.svelte-1mttyji{opacity:1;animation:svelte-1mttyji-fadeIn .3s ease-in}.item-label-item__text-wrap.svelte-1mttyji::before{content:'';position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);filter:blur(16px);z-index:-1}.item-label-item__text-wrap.svelte-1mttyji{padding:6px 6px 0;position:absolute;height:20px;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap;line-height:10px;font-size:11px;font-weight:bold;color:#FFEAC0;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center}.item-label-item__text.svelte-1mttyji{padding-bottom:4px;border-top:0 solid;border-left:0 solid;border-right:0 solid;border-bottom:1px solid;border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5}.item-label-item__bar.svelte-1mttyji{position:absolute;bottom:0;width:1px;background-image:linear-gradient(to bottom, rgba(234, 208, 154, 0), rgba(234, 208, 154, 1))}@keyframes svelte-1mttyji-fadeIn{from{opacity:0\n }to{opacity:1\n }}");
12967
+ }
12968
+
12969
+ function create_fragment$1(ctx) {
12970
+ let div2;
12971
+ let div0;
12972
+ let span;
12973
+
12974
+ let t0_value = (/*itemLabel*/ ctx[0].name.length > 6
12975
+ ? `${/*itemLabel*/ ctx[0].name.slice(0, 6)}...`
12976
+ : /*itemLabel*/ ctx[0].name) + "";
12977
+
12978
+ let t0;
12979
+ let t1;
12980
+ let div1;
12981
+ let div2_class_value;
12982
+ let mounted;
12983
+ let dispose;
12984
+
12985
+ return {
12986
+ c() {
12987
+ div2 = internal.element("div");
12988
+ div0 = internal.element("div");
12989
+ span = internal.element("span");
12990
+ t0 = internal.text(t0_value);
12991
+ t1 = internal.space();
12992
+ div1 = internal.element("div");
12993
+ internal.attr(span, "class", "item-label-item__text svelte-1mttyji");
12994
+ internal.attr(div0, "class", "item-label-item__text-wrap svelte-1mttyji");
12995
+ internal.set_style(div0, "top", `-${/*itemLabel*/ ctx[0].strokeLength + 26}px`);
12996
+ internal.attr(div1, "class", "item-label-item__bar svelte-1mttyji");
12997
+ internal.set_style(div1, "height", `${/*itemLabel*/ ctx[0].strokeLength}px`);
12998
+ internal.attr(div2, "class", div2_class_value = "" + (internal.null_to_empty(classNames__default["default"]("item-label-item", { visible: /*itemLabel*/ ctx[0].visible })) + " svelte-1mttyji"));
12999
+ internal.set_style(div2, "z-index", /*itemLabel*/ ctx[0].zIndex, false);
13000
+ internal.set_style(div2, "transform", /*itemLabel*/ ctx[0].transform, false);
13001
+ },
13002
+ m(target, anchor) {
13003
+ internal.insert(target, div2, anchor);
13004
+ internal.append(div2, div0);
13005
+ internal.append(div0, span);
13006
+ internal.append(span, t0);
13007
+ internal.append(div2, t1);
13008
+ internal.append(div2, div1);
13009
+
13010
+ if (!mounted) {
13011
+ dispose = internal.listen(span, "click", /*onClick*/ ctx[1]);
13012
+ mounted = true;
13013
+ }
13014
+ },
13015
+ p(ctx, [dirty]) {
13016
+ if (dirty & /*itemLabel*/ 1 && t0_value !== (t0_value = (/*itemLabel*/ ctx[0].name.length > 6
13017
+ ? `${/*itemLabel*/ ctx[0].name.slice(0, 6)}...`
13018
+ : /*itemLabel*/ ctx[0].name) + "")) internal.set_data(t0, t0_value);
13019
+
13020
+ if (dirty & /*itemLabel*/ 1) {
13021
+ internal.set_style(div0, "top", `-${/*itemLabel*/ ctx[0].strokeLength + 26}px`);
13022
+ }
13023
+
13024
+ if (dirty & /*itemLabel*/ 1) {
13025
+ internal.set_style(div1, "height", `${/*itemLabel*/ ctx[0].strokeLength}px`);
13026
+ }
13027
+
13028
+ if (dirty & /*itemLabel*/ 1 && div2_class_value !== (div2_class_value = "" + (internal.null_to_empty(classNames__default["default"]("item-label-item", { visible: /*itemLabel*/ ctx[0].visible })) + " svelte-1mttyji"))) {
13029
+ internal.attr(div2, "class", div2_class_value);
13030
+ }
13031
+
13032
+ if (dirty & /*itemLabel*/ 1) {
13033
+ internal.set_style(div2, "z-index", /*itemLabel*/ ctx[0].zIndex, false);
13034
+ }
13035
+
13036
+ if (dirty & /*itemLabel*/ 1) {
13037
+ internal.set_style(div2, "transform", /*itemLabel*/ ctx[0].transform, false);
13038
+ }
13039
+ },
13040
+ i: internal.noop,
13041
+ o: internal.noop,
13042
+ d(detaching) {
13043
+ if (detaching) internal.detach(div2);
13044
+ mounted = false;
13045
+ dispose();
13046
+ }
13047
+ };
13048
+ }
13049
+
13050
+ function instance$1($$self, $$props, $$invalidate) {
13051
+ let { itemLabel } = $$props;
13052
+ let { hooks } = $$props;
13053
+
13054
+ function onClick() {
13055
+ console.log('__onclick___: ', itemLabel);
13056
+ hooks.emit('onLabelClick', itemLabel);
13057
+ }
13058
+
13059
+ $$self.$$set = $$props => {
13060
+ if ('itemLabel' in $$props) $$invalidate(0, itemLabel = $$props.itemLabel);
13061
+ if ('hooks' in $$props) $$invalidate(2, hooks = $$props.hooks);
13062
+ };
13063
+
13064
+ return [itemLabel, onClick, hooks];
13065
+ }
13066
+
13067
+ class ItemLabelItem extends internal.SvelteComponent {
13068
+ constructor(options) {
13069
+ super();
13070
+ internal.init(this, options, instance$1, create_fragment$1, internal.safe_not_equal, { itemLabel: 0, hooks: 2 }, add_css$1);
13071
+ }
13072
+ }
13073
+
13074
+ /* src/ModelItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.47.0 */
13075
+
13076
+ function add_css(target) {
13077
+ internal.append_styles(target, "svelte-rmdeb", ".item-labels-container.svelte-rmdeb{width:100%;height:100%;position:relative}");
13078
+ }
13079
+
13080
+ function get_each_context(ctx, list, i) {
13081
+ const child_ctx = ctx.slice();
13082
+ child_ctx[26] = list[i];
13083
+ return child_ctx;
13084
+ }
13085
+
13086
+ // (179:1) {#each renderItemLabels as itemLabelItem (itemLabelItem.id)}
13087
+ function create_each_block(key_1, ctx) {
13088
+ let first;
13089
+ let itemlabelitem;
13090
+ let current;
13091
+
13092
+ itemlabelitem = new ItemLabelItem({
13093
+ props: {
13094
+ itemLabel: /*itemLabelItem*/ ctx[26],
13095
+ hooks: /*hooks*/ ctx[0]
13096
+ }
13097
+ });
13098
+
13099
+ return {
13100
+ key: key_1,
13101
+ first: null,
13102
+ c() {
13103
+ first = internal.empty();
13104
+ internal.create_component(itemlabelitem.$$.fragment);
13105
+ this.first = first;
13106
+ },
13107
+ m(target, anchor) {
13108
+ internal.insert(target, first, anchor);
13109
+ internal.mount_component(itemlabelitem, target, anchor);
13110
+ current = true;
13111
+ },
13112
+ p(new_ctx, dirty) {
13113
+ ctx = new_ctx;
13114
+ const itemlabelitem_changes = {};
13115
+ if (dirty & /*renderItemLabels*/ 2) itemlabelitem_changes.itemLabel = /*itemLabelItem*/ ctx[26];
13116
+ if (dirty & /*hooks*/ 1) itemlabelitem_changes.hooks = /*hooks*/ ctx[0];
13117
+ itemlabelitem.$set(itemlabelitem_changes);
13118
+ },
13119
+ i(local) {
13120
+ if (current) return;
13121
+ internal.transition_in(itemlabelitem.$$.fragment, local);
13122
+ current = true;
13123
+ },
13124
+ o(local) {
13125
+ internal.transition_out(itemlabelitem.$$.fragment, local);
13126
+ current = false;
13127
+ },
13128
+ d(detaching) {
13129
+ if (detaching) internal.detach(first);
13130
+ internal.destroy_component(itemlabelitem, detaching);
13131
+ }
13132
+ };
13133
+ }
13134
+
13135
+ function create_fragment(ctx) {
13136
+ let div;
13137
+ let each_blocks = [];
13138
+ let each_1_lookup = new Map();
13139
+ let div_resize_listener;
13140
+ let current;
13141
+ let each_value = /*renderItemLabels*/ ctx[1];
13142
+ const get_key = ctx => /*itemLabelItem*/ ctx[26].id;
13143
+
13144
+ for (let i = 0; i < each_value.length; i += 1) {
13145
+ let child_ctx = get_each_context(ctx, each_value, i);
13146
+ let key = get_key(child_ctx);
13147
+ each_1_lookup.set(key, each_blocks[i] = create_each_block(key, child_ctx));
13148
+ }
13149
+
13150
+ return {
13151
+ c() {
13152
+ div = internal.element("div");
13153
+
13154
+ for (let i = 0; i < each_blocks.length; i += 1) {
13155
+ each_blocks[i].c();
13156
+ }
13157
+
13158
+ internal.attr(div, "class", "item-labels-container svelte-rmdeb");
13159
+ internal.add_render_callback(() => /*div_elementresize_handler*/ ctx[9].call(div));
13160
+ },
13161
+ m(target, anchor) {
13162
+ internal.insert(target, div, anchor);
13163
+
13164
+ for (let i = 0; i < each_blocks.length; i += 1) {
13165
+ each_blocks[i].m(div, null);
13166
+ }
13167
+
13168
+ div_resize_listener = internal.add_resize_listener(div, /*div_elementresize_handler*/ ctx[9].bind(div));
13169
+ current = true;
13170
+ },
13171
+ p(ctx, [dirty]) {
13172
+ if (dirty & /*renderItemLabels, hooks*/ 3) {
13173
+ each_value = /*renderItemLabels*/ ctx[1];
13174
+ internal.group_outros();
13175
+ each_blocks = internal.update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, internal.outro_and_destroy_block, create_each_block, null, get_each_context);
13176
+ internal.check_outros();
13177
+ }
13178
+ },
13179
+ i(local) {
13180
+ if (current) return;
13181
+
13182
+ for (let i = 0; i < each_value.length; i += 1) {
13183
+ internal.transition_in(each_blocks[i]);
13184
+ }
13185
+
13186
+ current = true;
13187
+ },
13188
+ o(local) {
13189
+ for (let i = 0; i < each_blocks.length; i += 1) {
13190
+ internal.transition_out(each_blocks[i]);
13191
+ }
13192
+
13193
+ current = false;
13194
+ },
13195
+ d(detaching) {
13196
+ if (detaching) internal.detach(div);
13197
+
13198
+ for (let i = 0; i < each_blocks.length; i += 1) {
13199
+ each_blocks[i].d();
13200
+ }
13201
+
13202
+ div_resize_listener();
13203
+ }
13204
+ };
13205
+ }
13206
+
13207
+ let cssHeight = 26;
13208
+ let basicWidth = 11;
13209
+
13210
+ function instance($$self, $$props, $$invalidate) {
13211
+ const { Raycaster, Vector3 } = THREE__namespace;
13212
+ let { five } = $$props;
13213
+ let { modelOcclusionEnable } = $$props;
13214
+ let { itemLabels } = $$props;
13215
+ let { wrapper } = $$props;
13216
+ let { hooks } = $$props;
13217
+ let { displayStrategyType } = $$props;
13218
+ let curItemLabels = null;
13219
+ let renderItemLabels = null;
13220
+ let wrapperSize = { width: 0, height: 0 };
13221
+ let containerWidth;
13222
+ let containerHeight;
13223
+
13224
+ // 计算重叠
13225
+ let cssOffsetLists = [];
13226
+
13227
+ const getLabelVisible = (five, itemLabel) => {
13228
+ // 虚拟 VR 仅有一层,不考虑楼层信息
13229
+ const raycaster = new Raycaster();
13230
+
13231
+ const cameraPosition = five.camera.position.clone();
13232
+ const modelPosition = new Vector3(itemLabel.modelPosition[0], itemLabel.modelPosition[1], itemLabel.modelPosition[2]);
13233
+
13234
+ // 计算点到相机的位置
13235
+ const vectorDistance = modelPosition.distanceTo(cameraPosition);
13236
+
13237
+ raycaster.set(cameraPosition.clone(), modelPosition.clone().sub(cameraPosition).normalize());
13238
+ const [intersection] = five.model.intersectRaycaster(raycaster);
13239
+ return !(intersection && intersection.distance + 1 < vectorDistance);
13240
+ };
13241
+
13242
+ // cssOffset 获取
13243
+ const getLabelCssOffset = (five, itemLabel) => {
13244
+ const modelPosition = new Vector3(itemLabel.modelPosition[0], itemLabel.modelPosition[1], itemLabel.modelPosition[2]);
13245
+ const cssPosition = five.project2d(modelPosition);
13246
+ const xOffset = cssPosition?.x;
13247
+ const yOffset = cssPosition?.y;
13248
+ return [xOffset, yOffset];
13249
+ };
13250
+
13251
+ const getLabelTransform = cssOffset => {
13252
+ return `translate(${cssOffset[0]}px, ${cssOffset[1]}px)`;
13253
+ };
13254
+
13255
+ // 重叠计算
13256
+ const isOverlap = (cssOffset, widthOffset) => {
13257
+ if (cssOffsetLists.length === 0) {
13258
+ return false;
13259
+ }
13260
+
13261
+ const hasOverlapPoint = cssOffsetLists.find(item => cssOffset[0] >= item[0] - widthOffset && cssOffset[0] <= item[0] + widthOffset || cssOffset[1] >= item[1] - cssHeight && cssOffset[1] <= item[1] + cssHeight);
13262
+ return !!hasOverlapPoint;
13263
+ };
13264
+
13265
+ function getStrokeLength(itemSpaceHeight, type) {
13266
+ switch (type) {
13267
+ case DISPLAY_STRATEGY_TYPE.SMALL:
13268
+ return Math.ceil(-27.78 * itemSpaceHeight + 85);
13269
+ case DISPLAY_STRATEGY_TYPE.MIDLLE:
13270
+ return Math.ceil(-38.9 * itemSpaceHeight + 130);
13271
+ case DISPLAY_STRATEGY_TYPE.LARGE:
13272
+ return Math.ceil(-44.44 * itemSpaceHeight + 140);
13273
+ }
13274
+ }
13275
+
13276
+ const getFormatedItemLabels = (five, labels) => {
13277
+ // 计算位置 & 可见性
13278
+ const newLabels = labels.map(label => {
13279
+ const cssOffset = getLabelCssOffset(five, label);
13280
+ const curLabelWidth = label.name.length * basicWidth;
13281
+ const strokeLength = getStrokeLength(label.modelPosition[1], displayStrategyType);
13282
+
13283
+ // 是否加入碰撞检测
13284
+ const naturalVisible = modelOcclusionEnable
13285
+ ? getLabelVisible(five, label)
13286
+ : true;
13287
+
13288
+ const visible = naturalVisible && !isOverlap([cssOffset[0], cssOffset[1] + strokeLength], curLabelWidth);
13289
+ if (!visible) return { ...label, visible };
13290
+ cssOffsetLists.push(cssOffset);
13291
+
13292
+ // position
13293
+ const transform = getLabelTransform(cssOffset);
13294
+
13295
+ return {
13296
+ ...label,
13297
+ visible,
13298
+ transform,
13299
+ strokeLength
13300
+ };
13301
+ });
13302
+
13303
+ const sortedItemLabelItems = newLabels.filter(({ visible }) => visible).map(label => ({
13304
+ itemLabelItem: label,
13305
+ distance: new Vector3(label.modelPosition[0], label.modelPosition[1], label.modelPosition[2]).clone().distanceTo(five.camera.position)
13306
+ })).sort((a, b) => a.distance - b.distance);
13307
+
13308
+ return newLabels.map(label => {
13309
+ const sortIndex = sortedItemLabelItems.findIndex(item => item.itemLabelItem.id === label.id);
13310
+ if (sortIndex !== undefined) return { ...label, zIndex: sortIndex * 10 };
13311
+ return label;
13312
+ });
13313
+ };
13314
+
13315
+ const onItemLabelUpdate = () => {
13316
+ cssOffsetLists = [];
13317
+ $$invalidate(1, renderItemLabels = getFormatedItemLabels(five, renderItemLabels));
13318
+ };
13319
+
13320
+ svelte.beforeUpdate(() => {
13321
+ addDataUpdateListener();
13322
+ });
13323
+
13324
+ svelte.onMount(() => {
13325
+ $$invalidate(1, renderItemLabels = itemLabels);
13326
+ curItemLabels = itemLabels;
13327
+ onItemLabelUpdate();
13328
+
13329
+ // five.on('cameraUpdate', onItemLabelUpdate)
13330
+ addResizeListener();
13331
+ });
13332
+
13333
+ const addResizeListener = () => {
13334
+ wrapperSize = {
13335
+ width: wrapper.clientWidth,
13336
+ height: wrapper.clientHeight
13337
+ };
13338
+
13339
+ resizeObserver.observe(wrapper);
13340
+ };
13341
+
13342
+ const addDataUpdateListener = () => {
13343
+ if (curItemLabels !== itemLabels) {
13344
+ $$invalidate(1, renderItemLabels = itemLabels);
13345
+ curItemLabels = itemLabels;
13346
+ console.log('--debug--update--');
13347
+ onItemLabelUpdate();
13348
+ }
13349
+ };
13350
+
13351
+ const resizeObserver = new ResizeObserver(entries => {
13352
+ const entry = entries[0];
13353
+ const target = entry.target;
13354
+ const curWidth = target.clientWidth;
13355
+ const curHeight = target.clientHeight;
13356
+
13357
+ if (wrapperSize.width !== curWidth || wrapperSize.height !== curHeight) {
13358
+ wrapperSize = { width: curWidth, height: curHeight };
13359
+ onItemLabelUpdate();
13360
+ }
13361
+ });
13362
+
13363
+ svelte.onDestroy(() => {
13364
+ // five.off('cameraUpdate', onItemLabelUpdate)
13365
+ resizeObserver.unobserve(wrapper);
13366
+
13367
+ curItemLabels = null;
13368
+ $$invalidate(1, renderItemLabels = null);
13369
+ wrapperSize = { width: 0, height: 0 };
13370
+ });
13371
+
13372
+ function div_elementresize_handler() {
13373
+ containerWidth = this.clientWidth;
13374
+ containerHeight = this.clientHeight;
13375
+ $$invalidate(2, containerWidth);
13376
+ $$invalidate(3, containerHeight);
13377
+ }
13378
+
13379
+ $$self.$$set = $$props => {
13380
+ if ('five' in $$props) $$invalidate(4, five = $$props.five);
13381
+ if ('modelOcclusionEnable' in $$props) $$invalidate(5, modelOcclusionEnable = $$props.modelOcclusionEnable);
13382
+ if ('itemLabels' in $$props) $$invalidate(6, itemLabels = $$props.itemLabels);
13383
+ if ('wrapper' in $$props) $$invalidate(7, wrapper = $$props.wrapper);
13384
+ if ('hooks' in $$props) $$invalidate(0, hooks = $$props.hooks);
13385
+ if ('displayStrategyType' in $$props) $$invalidate(8, displayStrategyType = $$props.displayStrategyType);
13386
+ };
13387
+
13388
+ return [
13389
+ hooks,
13390
+ renderItemLabels,
13391
+ containerWidth,
13392
+ containerHeight,
13393
+ five,
13394
+ modelOcclusionEnable,
13395
+ itemLabels,
13396
+ wrapper,
13397
+ displayStrategyType,
13398
+ div_elementresize_handler
13399
+ ];
13400
+ }
13401
+
13402
+ class ItemLabelComponent extends internal.SvelteComponent {
13403
+ constructor(options) {
13404
+ super();
13405
+
13406
+ internal.init(
13407
+ this,
13408
+ options,
13409
+ instance,
13410
+ create_fragment,
13411
+ internal.safe_not_equal,
13412
+ {
13413
+ five: 4,
13414
+ modelOcclusionEnable: 5,
13415
+ itemLabels: 6,
13416
+ wrapper: 7,
13417
+ hooks: 0,
13418
+ displayStrategyType: 8
13419
+ },
13420
+ add_css
13421
+ );
13422
+ }
13423
+ }
13424
+
13425
+ /** @description 转成内部所需数据 */
13426
+ function parseModelItemLabelPluginData(data) {
13427
+ return data.model_item_labels.map(label => ({
13428
+ modelPosition: [label.position[0], label.position[1] + label.size[1], label.position[2]],
13429
+ ...label
13430
+ }));
13431
+ }
13432
+
13433
+ const ModelItemLabelPlugin = (five$1, params) => {
13434
+ const pluginState = {
13435
+ container: document.createElement('div'),
13436
+ data: null,
13437
+ enabled: true,
13438
+ fiveModeEnabled: undefined,
13439
+ itemLabels: [],
13440
+ wrapper: null,
13441
+ app: undefined,
13442
+ hooks: new five.Subscribe(),
13443
+ modelOcclusionEnable: params?.modelOcclusionEnable ?? true,
13444
+ displayStrategyType: params?.displayStrategyType ?? DISPLAY_STRATEGY_TYPE.SMALL
13445
+ };
13446
+ pluginState.container.setAttribute('class', 'model-item-label-plugin-container');
13447
+ pluginState.container.style.cssText = `
13448
+ position: absolute;
13449
+ left: 0;
13450
+ top: 0;
13451
+ width: 100%;
13452
+ height: 100%;
13453
+ pointerEvents: none;
13454
+ `;
13455
+ const appendTo = (wrapper) => {
13456
+ pluginState.wrapper = wrapper;
13457
+ wrapper.appendChild(pluginState.container);
13458
+ render();
13459
+ return true;
13460
+ };
13461
+ const load = (data) => {
13462
+ console.log('🐶--当前标签总条数: ', data.model_item_labels.length);
13463
+ pluginState.itemLabels = parseModelItemLabelPluginData(data);
13464
+ render();
13465
+ };
13466
+ const enable = () => {
13467
+ if (pluginState.enabled)
13468
+ return true;
13469
+ pluginState.enabled = true;
13470
+ render();
13471
+ return true;
13472
+ };
13473
+ const disable = () => {
13474
+ if (!pluginState.enabled)
13475
+ return true;
13476
+ pluginState.enabled = false;
13477
+ render();
13478
+ return true;
13479
+ };
13480
+ const dispose = () => {
13481
+ removeListener4Five();
13482
+ pluginState.container.remove();
13483
+ };
13484
+ const handleRerender = () => {
13485
+ if (!pluginState.enabled || !pluginState.fiveModeEnabled)
13486
+ return;
13487
+ disable();
13488
+ };
13489
+ const rerender = (a, b, c) => {
13490
+ if (!pluginState.fiveModeEnabled)
13491
+ return;
13492
+ if (!c)
13493
+ return;
13494
+ enable();
13495
+ render();
13496
+ };
13497
+ const handleInteriaPanRerender = (a, b) => {
13498
+ if (!pluginState.fiveModeEnabled)
13499
+ return;
13500
+ if (!b)
13501
+ return;
13502
+ enable();
13503
+ render();
13504
+ };
13505
+ const handleWantsPanGesture = (pose, final) => {
13506
+ if (pose) {
13507
+ handleRerender();
13508
+ }
13509
+ };
13510
+ const handlePanGesture = (pose, final) => {
13511
+ if (!pluginState.fiveModeEnabled)
13512
+ return;
13513
+ if (!final)
13514
+ return;
13515
+ enable();
13516
+ render();
13517
+ };
13518
+ const render = () => {
13519
+ if (!pluginState.wrapper)
13520
+ return;
13521
+ // 只要不可展示,销毁容器
13522
+ if (!pluginState.enabled || !pluginState.fiveModeEnabled) {
13523
+ pluginState.app?.$destroy();
13524
+ pluginState.app = undefined;
13525
+ return;
13526
+ }
13527
+ // 正常显示时,分为 app 存在和不存在两种情况,如果存在,传值,不存在则初始化并传值
13528
+ if (!pluginState.app) {
13529
+ pluginState.app = new ItemLabelComponent({
13530
+ target: pluginState.container,
13531
+ props: {
13532
+ five: five$1,
13533
+ modelOcclusionEnable: pluginState.modelOcclusionEnable,
13534
+ itemLabels: pluginState.itemLabels,
13535
+ wrapper: pluginState.wrapper,
13536
+ hooks: pluginState.hooks,
13537
+ displayStrategyType: pluginState.displayStrategyType
13538
+ }
13539
+ });
13540
+ }
13541
+ else {
13542
+ pluginState.app.$set({
13543
+ five: five$1,
13544
+ itemLabels: pluginState.itemLabels
13545
+ });
13546
+ }
13547
+ };
13548
+ // 添加 five 监听
13549
+ const addListener4Five = () => {
13550
+ five$1.on('modeChange', onFiveModeChange);
13551
+ five$1.once('dispose', dispose);
13552
+ // five.on('wantsGesture', handleRerender)
13553
+ // five.on('gesture', rerender)
13554
+ five$1.on('wantsMouseWheel', handleRerender);
13555
+ five$1.on('mouseWheel', rerender);
13556
+ five$1.on('wantsInteriaPan', handleRerender);
13557
+ five$1.on('interiaPan', handleInteriaPanRerender);
13558
+ five$1.on('wantsPanGesture', handleWantsPanGesture);
13559
+ five$1.on('panGesture', handlePanGesture);
13560
+ five$1.on('wantsPinchGesture', handleRerender);
13561
+ five$1.on('pinchGesture', rerender);
13562
+ };
13563
+ // 取消 five 监听
13564
+ const removeListener4Five = () => {
13565
+ five$1.off('modeChange', onFiveModeChange);
13566
+ // five.off('wantsGesture', handleRerender)
13567
+ // five.off('gesture', rerender)
13568
+ five$1.off('wantsMouseWheel', handleRerender);
13569
+ five$1.off('mouseWheel', rerender);
13570
+ five$1.off('wantsInteriaPan', handleRerender);
13571
+ five$1.off('interiaPan', handleInteriaPanRerender);
13572
+ five$1.off('wantsPanGesture', handleWantsPanGesture);
13573
+ five$1.off('panGesture', handlePanGesture);
13574
+ five$1.off('wantsPinchGesture', handleRerender);
13575
+ five$1.off('pinchGesture', rerender);
13576
+ };
13577
+ const onFiveModeChange = (mode) => {
13578
+ if (mode !== five.Five.Mode.Floorplan) {
13579
+ pluginState.fiveModeEnabled = false;
13580
+ render();
13581
+ return;
13582
+ }
13583
+ five$1.once('initAnimationEnded', () => {
13584
+ pluginState.fiveModeEnabled = five$1.currentMode === five.Five.Mode.Floorplan;
13585
+ render();
13586
+ });
13587
+ };
13588
+ addListener4Five();
13589
+ return {
13590
+ appendTo,
13591
+ load,
13592
+ enable,
13593
+ disable,
13594
+ dispose,
13595
+ hooks: pluginState.hooks
13596
+ };
13597
+ };
13598
+
12954
13599
  exports.CSS3DRenderPlugin = CSS3DRenderPlugin;
12955
13600
  exports.CameraMovementPlugin = CameraMovementPlugin;
12956
13601
  exports.ModelChassisCompassPlugin = ModelChassisCompassPlugin;
12957
13602
  exports.ModelEntryDoorGuidePlugin = ModelEntryDoorGuidePlugin;
12958
13603
  exports.ModelFloorplanPlugin = ModelFloorplanPlugin;
13604
+ exports.ModelItemLabelPlugin = ModelItemLabelPlugin;
12959
13605
  exports.ModelRoomLabelPlugin = ModelRoomLabelPlugin;
12960
13606
  exports.ModelViewPlugin = ModelViewPlugin;
12961
13607
  exports.PanoCompassPlugin = PanoCompassPlugin;