@realsee/dnalogel 2.0.0-alpha.29-beta → 2.0.0-alpha.30-beta

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 (107) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/ItemLabelPlugin/Plugin.d.ts +4 -0
  3. package/dist/ItemLabelPlugin/events.type.d.ts +9 -0
  4. package/dist/ItemLabelPlugin/index.d.ts +9 -0
  5. package/dist/ItemLabelPlugin/index.js +703 -0
  6. package/dist/ItemLabelPlugin/typings.d.ts +54 -0
  7. package/dist/ItemLabelPlugin/utils/parseData.d.ts +3 -0
  8. package/dist/index.d.ts +1 -0
  9. package/dist/index.es.js +829 -177
  10. package/dist/index.js +830 -176
  11. package/dist/index.umd.js +830 -176
  12. package/docs/assets/search.js +1 -1
  13. package/docs/classes/ModelRoomLabelController.html +4 -4
  14. package/docs/classes/PanoFloorplanRadarPluginController.html +2 -2
  15. package/docs/enums/CameraMovementEffect.html +2 -2
  16. package/docs/enums/DIRECTION.html +1 -1
  17. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
  18. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  19. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -0
  20. package/docs/enums/ModelFloorplanErrorType.html +1 -1
  21. package/docs/enums/Rotation.html +2 -2
  22. package/docs/index.html +2 -2
  23. package/docs/interfaces/CSS3DRenderPluginExportType.html +2 -2
  24. package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
  25. package/docs/interfaces/FloorplanBounding.html +4 -4
  26. package/docs/interfaces/FloorplanData.html +2 -2
  27. package/docs/interfaces/FloorplanEntrance.html +7 -7
  28. package/docs/interfaces/FloorplanExtraObject.html +3 -3
  29. package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
  30. package/docs/interfaces/FloorplanFloorData.html +2 -2
  31. package/docs/interfaces/FloorplanImagePosition.html +2 -2
  32. package/docs/interfaces/FloorplanObserver.html +2 -2
  33. package/docs/interfaces/FloorplanOutlineItem.html +2 -2
  34. package/docs/interfaces/FloorplanPosition.html +2 -2
  35. package/docs/interfaces/FloorplanRoomItem.html +6 -6
  36. package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
  37. package/docs/interfaces/FloorplanServerBounding.html +4 -4
  38. package/docs/interfaces/FloorplanServerComputedData.html +1 -1
  39. package/docs/interfaces/FloorplanServerData.html +2 -2
  40. package/docs/interfaces/FloorplanServerEntrance.html +7 -7
  41. package/docs/interfaces/FloorplanServerFloorData.html +2 -2
  42. package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
  43. package/docs/interfaces/FloorplanServerObserver.html +2 -2
  44. package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
  45. package/docs/interfaces/FloorplanServerPosition.html +2 -2
  46. package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
  47. package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
  48. package/docs/interfaces/ItemLabelPluginData.html +1 -0
  49. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -0
  50. package/docs/interfaces/ItemLabelPluginParametersType.html +1 -0
  51. package/docs/interfaces/LineJson.html +1 -1
  52. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  53. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  54. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  55. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  56. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  57. package/docs/interfaces/ModelFloorplanParameterType.html +1 -1
  58. package/docs/interfaces/ModelFloorplanViewEvent.html +2 -2
  59. package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
  60. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
  61. package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
  62. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  63. package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
  64. package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
  65. package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
  66. package/docs/interfaces/ModelViewPluginExportType.html +1 -1
  67. package/docs/interfaces/PanoCompassPluginData.html +1 -1
  68. package/docs/interfaces/PanoCompassPluginParameterType.html +1 -1
  69. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  70. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  71. package/docs/interfaces/PanoFloorplanRadarPluginControllerParameter.html +1 -1
  72. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  73. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  74. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  75. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  76. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  77. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  78. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
  79. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  80. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
  81. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  82. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
  83. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
  84. package/docs/interfaces/Point.html +1 -1
  85. package/docs/interfaces/PointJson.html +1 -1
  86. package/docs/interfaces/Room.html +1 -1
  87. package/docs/interfaces/RoomInfo.html +1 -1
  88. package/docs/interfaces/RoomLabel.html +7 -7
  89. package/docs/interfaces/RoomRules.html +1 -1
  90. package/docs/interfaces/Rooms.html +1 -1
  91. package/docs/interfaces/TopviewFloorplanPluginParameterType.html +9 -9
  92. package/docs/modules.html +20 -20
  93. package/libs/ItemLabelPlugin/ItemLabelComponent.js +414 -0
  94. package/libs/ItemLabelPlugin/ItemLabelItem.js +173 -0
  95. package/libs/ItemLabelPlugin/Plugin.d.ts +4 -0
  96. package/libs/ItemLabelPlugin/Plugin.js +117 -0
  97. package/libs/ItemLabelPlugin/events.type.d.ts +9 -0
  98. package/libs/ItemLabelPlugin/events.type.js +1 -0
  99. package/libs/ItemLabelPlugin/index.d.ts +9 -0
  100. package/libs/ItemLabelPlugin/index.js +8 -0
  101. package/libs/ItemLabelPlugin/typings.d.ts +54 -0
  102. package/libs/ItemLabelPlugin/typings.js +7 -0
  103. package/libs/ItemLabelPlugin/utils/parseData.d.ts +3 -0
  104. package/libs/ItemLabelPlugin/utils/parseData.js +4 -0
  105. package/libs/index.d.ts +1 -0
  106. package/libs/index.js +2 -1
  107. package/package.json +2 -1
package/dist/index.js CHANGED
@@ -489,11 +489,11 @@ const ROOM_LABEL_BG = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAA8CAY
489
489
 
490
490
  /* src/ModelRoomLabelPlugin/RoomLabelItem.svelte generated by Svelte v3.47.0 */
491
491
 
492
- function add_css$m(target) {
492
+ function add_css$o(target) {
493
493
  internal.append_styles(target, "svelte-1ak9fbs", ".room-label-item.svelte-1ak9fbs{position:absolute;font-size:0.41667rem;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.room-label-item__text.svelte-1ak9fbs{position:absolute;left:0;top:-3.33333rem;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center;height:1.04167rem;min-width:1.66667rem;padding:0 0.3125rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap}.room-label-item__bar.svelte-1ak9fbs{position:absolute;top:-2.29167rem;height:2.5rem;width:1px;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))}.wide.svelte-1ak9fbs{font-size:0.52083rem}");
494
494
  }
495
495
 
496
- function create_fragment$q(ctx) {
496
+ function create_fragment$s(ctx) {
497
497
  let div1;
498
498
  let span;
499
499
  let t0_value = /*roomLabel*/ ctx[0].name + "";
@@ -560,7 +560,7 @@ function create_fragment$q(ctx) {
560
560
  };
561
561
  }
562
562
 
563
- function instance$q($$self, $$props, $$invalidate) {
563
+ function instance$s($$self, $$props, $$invalidate) {
564
564
  let { five } = $$props;
565
565
  let { roomLabel } = $$props;
566
566
 
@@ -583,7 +583,7 @@ function instance$q($$self, $$props, $$invalidate) {
583
583
  class RoomLabelItem extends internal.SvelteComponent {
584
584
  constructor(options) {
585
585
  super();
586
- internal.init(this, options, instance$q, create_fragment$q, internal.safe_not_equal, { five: 2, roomLabel: 0 }, add_css$m);
586
+ internal.init(this, options, instance$s, create_fragment$s, internal.safe_not_equal, { five: 2, roomLabel: 0 }, add_css$o);
587
587
  }
588
588
  }
589
589
 
@@ -591,18 +591,18 @@ class RoomLabelItem extends internal.SvelteComponent {
591
591
 
592
592
  const { Map: Map_1 } = internal.globals;
593
593
 
594
- function add_css$l(target) {
594
+ function add_css$n(target) {
595
595
  internal.append_styles(target, "svelte-9eg4zi", ".room-labels-container.svelte-9eg4zi{width:100%;height:100%;position:relative;color:#fff}");
596
596
  }
597
597
 
598
- function get_each_context$9(ctx, list, i) {
598
+ function get_each_context$a(ctx, list, i) {
599
599
  const child_ctx = ctx.slice();
600
600
  child_ctx[12] = list[i];
601
601
  return child_ctx;
602
602
  }
603
603
 
604
604
  // (82:2) {#each roomLabels as roomLableItem (roomLableItem.id)}
605
- function create_each_block$9(key_1, ctx) {
605
+ function create_each_block$a(key_1, ctx) {
606
606
  let first;
607
607
  let roomlabelitem;
608
608
  let current;
@@ -650,7 +650,7 @@ function create_each_block$9(key_1, ctx) {
650
650
  };
651
651
  }
652
652
 
653
- function create_fragment$p(ctx) {
653
+ function create_fragment$r(ctx) {
654
654
  let div;
655
655
  let each_blocks = [];
656
656
  let each_1_lookup = new Map_1();
@@ -660,9 +660,9 @@ function create_fragment$p(ctx) {
660
660
  const get_key = ctx => /*roomLableItem*/ ctx[12].id;
661
661
 
662
662
  for (let i = 0; i < each_value.length; i += 1) {
663
- let child_ctx = get_each_context$9(ctx, each_value, i);
663
+ let child_ctx = get_each_context$a(ctx, each_value, i);
664
664
  let key = get_key(child_ctx);
665
- each_1_lookup.set(key, each_blocks[i] = create_each_block$9(key, child_ctx));
665
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$a(key, child_ctx));
666
666
  }
667
667
 
668
668
  return {
@@ -690,7 +690,7 @@ function create_fragment$p(ctx) {
690
690
  if (dirty & /*roomLabels, five*/ 3) {
691
691
  each_value = /*roomLabels*/ ctx[0];
692
692
  internal.group_outros();
693
- 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$9, null, get_each_context$9);
693
+ 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$a, null, get_each_context$a);
694
694
  internal.check_outros();
695
695
  }
696
696
  },
@@ -722,7 +722,7 @@ function create_fragment$p(ctx) {
722
722
  };
723
723
  }
724
724
 
725
- function instance$p($$self, $$props, $$invalidate) {
725
+ function instance$r($$self, $$props, $$invalidate) {
726
726
  let rendererSize;
727
727
  let { five } = $$props;
728
728
  let { roomLabels } = $$props;
@@ -847,7 +847,7 @@ function instance$p($$self, $$props, $$invalidate) {
847
847
  class RoomLabelItems extends internal.SvelteComponent {
848
848
  constructor(options) {
849
849
  super();
850
- internal.init(this, options, instance$p, create_fragment$p, internal.safe_not_equal, { five: 1, roomLabels: 0 }, add_css$l);
850
+ internal.init(this, options, instance$r, create_fragment$r, internal.safe_not_equal, { five: 1, roomLabels: 0 }, add_css$n);
851
851
  }
852
852
  }
853
853
 
@@ -1246,11 +1246,11 @@ function rad2Deg$1(rad) {
1246
1246
 
1247
1247
  /* src/floorplan/Components/Camera.svelte generated by Svelte v3.47.0 */
1248
1248
 
1249
- function add_css$k(target) {
1249
+ function add_css$m(target) {
1250
1250
  internal.append_styles(target, "svelte-17cl35n", ".floorplan__camera-position.svelte-17cl35n{position:absolute;width:0;height:0}.floorplan__camera-rotate.svelte-17cl35n{position:absolute;background-repeat:no-repeat;background-size:100%}");
1251
1251
  }
1252
1252
 
1253
- function create_fragment$o(ctx) {
1253
+ function create_fragment$q(ctx) {
1254
1254
  let div1;
1255
1255
  let div0;
1256
1256
 
@@ -1287,7 +1287,7 @@ function create_fragment$o(ctx) {
1287
1287
  };
1288
1288
  }
1289
1289
 
1290
- function instance$o($$self, $$props, $$invalidate) {
1290
+ function instance$q($$self, $$props, $$invalidate) {
1291
1291
  let { panoIndex } = $$props;
1292
1292
  let { floorplanData } = $$props;
1293
1293
  let { lastPanoramaLongitude } = $$props;
@@ -1333,8 +1333,8 @@ class Camera$1 extends internal.SvelteComponent {
1333
1333
  internal.init(
1334
1334
  this,
1335
1335
  options,
1336
- instance$o,
1337
- create_fragment$o,
1336
+ instance$q,
1337
+ create_fragment$q,
1338
1338
  internal.safe_not_equal,
1339
1339
  {
1340
1340
  panoIndex: 5,
@@ -1342,7 +1342,7 @@ class Camera$1 extends internal.SvelteComponent {
1342
1342
  lastPanoramaLongitude: 7,
1343
1343
  cameraImageUrl: 0
1344
1344
  },
1345
- add_css$k
1345
+ add_css$m
1346
1346
  );
1347
1347
  }
1348
1348
  }
@@ -1351,7 +1351,7 @@ const COMPASS_IMAGE = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArUAAAB7CAM
1351
1351
 
1352
1352
  /* src/floorplan/Components/Compass.svelte generated by Svelte v3.47.0 */
1353
1353
 
1354
- function add_css$j(target) {
1354
+ function add_css$l(target) {
1355
1355
  internal.append_styles(target, "svelte-1q44ru9", ".floorplan-plugin__compass.svelte-1q44ru9{position:absolute;left:50%;top:-2.39583rem;width:12.03125rem;height:2.13542rem;will-change:opacity;transform-origin:center 9.58333rem}.floorplan-plugin__compass-image.svelte-1q44ru9{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-1q44ru9{position:absolute;left:50%;top:0.78125rem;transform:translateX(-50%);opacity:0.2;font-weight:bold;font-size:0.52083rem;color:#fff}");
1356
1356
  }
1357
1357
 
@@ -1392,7 +1392,7 @@ function create_if_block$8(ctx) {
1392
1392
  };
1393
1393
  }
1394
1394
 
1395
- function create_fragment$n(ctx) {
1395
+ function create_fragment$p(ctx) {
1396
1396
  let if_block_anchor;
1397
1397
  let if_block = /*northRad*/ ctx[1] && create_if_block$8(ctx);
1398
1398
 
@@ -1421,7 +1421,7 @@ function rad2Deg(rad) {
1421
1421
  return rad / Math.PI * 180;
1422
1422
  }
1423
1423
 
1424
- function instance$n($$self, $$props, $$invalidate) {
1424
+ function instance$p($$self, $$props, $$invalidate) {
1425
1425
  var _a;
1426
1426
  let { floorplanData } = $$props;
1427
1427
  let { northDesc } = $$props;
@@ -1444,17 +1444,17 @@ function instance$n($$self, $$props, $$invalidate) {
1444
1444
  class Compass extends internal.SvelteComponent {
1445
1445
  constructor(options) {
1446
1446
  super();
1447
- internal.init(this, options, instance$n, create_fragment$n, internal.safe_not_equal, { floorplanData: 3, northDesc: 0 }, add_css$j);
1447
+ internal.init(this, options, instance$p, create_fragment$p, internal.safe_not_equal, { floorplanData: 3, northDesc: 0 }, add_css$l);
1448
1448
  }
1449
1449
  }
1450
1450
 
1451
1451
  /* src/floorplan/Components/Normalmage.svelte generated by Svelte v3.47.0 */
1452
1452
 
1453
- function add_css$i(target) {
1453
+ function add_css$k(target) {
1454
1454
  internal.append_styles(target, "svelte-1gfoniz", "img.svelte-1gfoniz{width:100%;height:100%}");
1455
1455
  }
1456
1456
 
1457
- function create_fragment$m(ctx) {
1457
+ function create_fragment$o(ctx) {
1458
1458
  let img;
1459
1459
  let img_src_value;
1460
1460
 
@@ -1481,7 +1481,7 @@ function create_fragment$m(ctx) {
1481
1481
  };
1482
1482
  }
1483
1483
 
1484
- function instance$m($$self, $$props, $$invalidate) {
1484
+ function instance$o($$self, $$props, $$invalidate) {
1485
1485
  let { url } = $$props;
1486
1486
 
1487
1487
  $$self.$$set = $$props => {
@@ -1494,17 +1494,17 @@ function instance$m($$self, $$props, $$invalidate) {
1494
1494
  class Normalmage extends internal.SvelteComponent {
1495
1495
  constructor(options) {
1496
1496
  super();
1497
- internal.init(this, options, instance$m, create_fragment$m, internal.safe_not_equal, { url: 0 }, add_css$i);
1497
+ internal.init(this, options, instance$o, create_fragment$o, internal.safe_not_equal, { url: 0 }, add_css$k);
1498
1498
  }
1499
1499
  }
1500
1500
 
1501
1501
  /* src/floorplan/Components/SvgImage.svelte generated by Svelte v3.47.0 */
1502
1502
 
1503
- function add_css$h(target) {
1503
+ function add_css$j(target) {
1504
1504
  internal.append_styles(target, "svelte-ub47ya", ".floorplan-plugin__base-image.svelte-ub47ya{width:100%;height:100%}");
1505
1505
  }
1506
1506
 
1507
- function create_fragment$l(ctx) {
1507
+ function create_fragment$n(ctx) {
1508
1508
  let div;
1509
1509
  let html_tag;
1510
1510
  let t;
@@ -1537,7 +1537,7 @@ function create_fragment$l(ctx) {
1537
1537
  };
1538
1538
  }
1539
1539
 
1540
- function instance$l($$self, $$props, $$invalidate) {
1540
+ function instance$n($$self, $$props, $$invalidate) {
1541
1541
  let { content } = $$props;
1542
1542
 
1543
1543
  const svgStyle = `
@@ -1561,13 +1561,13 @@ function instance$l($$self, $$props, $$invalidate) {
1561
1561
  class SvgImage extends internal.SvelteComponent {
1562
1562
  constructor(options) {
1563
1563
  super();
1564
- internal.init(this, options, instance$l, create_fragment$l, internal.safe_not_equal, { content: 0 }, add_css$h);
1564
+ internal.init(this, options, instance$n, create_fragment$n, internal.safe_not_equal, { content: 0 }, add_css$j);
1565
1565
  }
1566
1566
  }
1567
1567
 
1568
1568
  /* src/floorplan/Components/BaseImage.svelte generated by Svelte v3.47.0 */
1569
1569
 
1570
- function add_css$g(target) {
1570
+ function add_css$i(target) {
1571
1571
  internal.append_styles(target, "svelte-ozpg4a", ".floorplan-plugin__base-image.svelte-ozpg4a{position:absolute;z-index:10;width:100%;height:100%;pointer-events:none}");
1572
1572
  }
1573
1573
 
@@ -1642,7 +1642,7 @@ function create_if_block$7(ctx) {
1642
1642
  };
1643
1643
  }
1644
1644
 
1645
- function create_fragment$k(ctx) {
1645
+ function create_fragment$m(ctx) {
1646
1646
  let div;
1647
1647
  let current_block_type_index;
1648
1648
  let if_block;
@@ -1730,7 +1730,7 @@ function create_fragment$k(ctx) {
1730
1730
  };
1731
1731
  }
1732
1732
 
1733
- function instance$k($$self, $$props, $$invalidate) {
1733
+ function instance$m($$self, $$props, $$invalidate) {
1734
1734
  let imageData;
1735
1735
  let svgContent;
1736
1736
  var _a, _b;
@@ -1762,13 +1762,13 @@ function instance$k($$self, $$props, $$invalidate) {
1762
1762
  class BaseImage extends internal.SvelteComponent {
1763
1763
  constructor(options) {
1764
1764
  super();
1765
- internal.init(this, options, instance$k, create_fragment$k, internal.safe_not_equal, { floorIndex: 2, floorplanData: 3 }, add_css$g);
1765
+ internal.init(this, options, instance$m, create_fragment$m, internal.safe_not_equal, { floorIndex: 2, floorplanData: 3 }, add_css$i);
1766
1766
  }
1767
1767
  }
1768
1768
 
1769
1769
  /* src/floorplan/Components/RoomLabels/RoomLabel.svelte generated by Svelte v3.47.0 */
1770
1770
 
1771
- function add_css$f(target) {
1771
+ function add_css$h(target) {
1772
1772
  internal.append_styles(target, "svelte-i2nwuk", ".floorplan-plugin__room-label-item.svelte-i2nwuk{position:absolute;display:flex;flex-flow:column;align-items:center;line-height:0.78125rem;color:#fff;transform:translate(-50%, -50%);white-space:nowrap}.floorplan-plugin__room-size.svelte-i2nwuk{opacity:0.45}");
1773
1773
  }
1774
1774
 
@@ -1833,7 +1833,7 @@ function create_if_block$6(ctx) {
1833
1833
  };
1834
1834
  }
1835
1835
 
1836
- function create_fragment$j(ctx) {
1836
+ function create_fragment$l(ctx) {
1837
1837
  let div;
1838
1838
 
1839
1839
  function select_block_type(ctx, dirty) {
@@ -1882,7 +1882,7 @@ function create_fragment$j(ctx) {
1882
1882
  };
1883
1883
  }
1884
1884
 
1885
- function instance$j($$self, $$props, $$invalidate) {
1885
+ function instance$l($$self, $$props, $$invalidate) {
1886
1886
  let userConfigElement;
1887
1887
  let { room } = $$props;
1888
1888
  let { getLabelElement } = $$props;
@@ -1916,17 +1916,17 @@ function instance$j($$self, $$props, $$invalidate) {
1916
1916
  class RoomLabel extends internal.SvelteComponent {
1917
1917
  constructor(options) {
1918
1918
  super();
1919
- internal.init(this, options, instance$j, create_fragment$j, internal.safe_not_equal, { room: 0, getLabelElement: 1 }, add_css$f);
1919
+ internal.init(this, options, instance$l, create_fragment$l, internal.safe_not_equal, { room: 0, getLabelElement: 1 }, add_css$h);
1920
1920
  }
1921
1921
  }
1922
1922
 
1923
1923
  /* src/floorplan/Components/RoomLabels/RoomLabels.svelte generated by Svelte v3.47.0 */
1924
1924
 
1925
- function add_css$e(target) {
1925
+ function add_css$g(target) {
1926
1926
  internal.append_styles(target, "svelte-13xux0b", ".floorplan-plugin__room-labels.svelte-13xux0b{width:100%;height:100%;position:absolute;left:0;top:0;z-index:20;pointer-events:none}");
1927
1927
  }
1928
1928
 
1929
- function get_each_context$8(ctx, list, i) {
1929
+ function get_each_context$9(ctx, list, i) {
1930
1930
  const child_ctx = ctx.slice();
1931
1931
  child_ctx[4] = list[i];
1932
1932
  return child_ctx;
@@ -1942,9 +1942,9 @@ function create_if_block$5(ctx) {
1942
1942
  const get_key = ctx => /*room*/ ctx[4].id;
1943
1943
 
1944
1944
  for (let i = 0; i < each_value.length; i += 1) {
1945
- let child_ctx = get_each_context$8(ctx, each_value, i);
1945
+ let child_ctx = get_each_context$9(ctx, each_value, i);
1946
1946
  let key = get_key(child_ctx);
1947
- each_1_lookup.set(key, each_blocks[i] = create_each_block$8(key, child_ctx));
1947
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$9(key, child_ctx));
1948
1948
  }
1949
1949
 
1950
1950
  return {
@@ -1970,7 +1970,7 @@ function create_if_block$5(ctx) {
1970
1970
  if (dirty & /*rooms, getLabelElement*/ 3) {
1971
1971
  each_value = /*rooms*/ ctx[1];
1972
1972
  internal.group_outros();
1973
- 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);
1973
+ 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$9, null, get_each_context$9);
1974
1974
  internal.check_outros();
1975
1975
  }
1976
1976
  },
@@ -2001,7 +2001,7 @@ function create_if_block$5(ctx) {
2001
2001
  }
2002
2002
 
2003
2003
  // (10:4) {#each rooms as room (room.id)}
2004
- function create_each_block$8(key_1, ctx) {
2004
+ function create_each_block$9(key_1, ctx) {
2005
2005
  let first;
2006
2006
  let roomlabel;
2007
2007
  let current;
@@ -2064,7 +2064,7 @@ function create_each_block$8(key_1, ctx) {
2064
2064
  };
2065
2065
  }
2066
2066
 
2067
- function create_fragment$i(ctx) {
2067
+ function create_fragment$k(ctx) {
2068
2068
  let if_block_anchor;
2069
2069
  let current;
2070
2070
  let if_block = /*rooms*/ ctx[1] && create_if_block$5(ctx);
@@ -2119,7 +2119,7 @@ function create_fragment$i(ctx) {
2119
2119
  };
2120
2120
  }
2121
2121
 
2122
- function instance$i($$self, $$props, $$invalidate) {
2122
+ function instance$k($$self, $$props, $$invalidate) {
2123
2123
  let rooms;
2124
2124
  let { floorIndex } = $$props;
2125
2125
  let { floorplanData } = $$props;
@@ -2147,26 +2147,26 @@ class RoomLabels extends internal.SvelteComponent {
2147
2147
  internal.init(
2148
2148
  this,
2149
2149
  options,
2150
- instance$i,
2151
- create_fragment$i,
2150
+ instance$k,
2151
+ create_fragment$k,
2152
2152
  internal.safe_not_equal,
2153
2153
  {
2154
2154
  floorIndex: 2,
2155
2155
  floorplanData: 3,
2156
2156
  getLabelElement: 0
2157
2157
  },
2158
- add_css$e
2158
+ add_css$g
2159
2159
  );
2160
2160
  }
2161
2161
  }
2162
2162
 
2163
2163
  /* src/floorplan/Components/RuleLabels/RuleItem.svelte generated by Svelte v3.47.0 */
2164
2164
 
2165
- function add_css$d(target) {
2165
+ function add_css$f(target) {
2166
2166
  internal.append_styles(target, "svelte-xt7p1v", ".floorplan-plugin__rule-labels.svelte-xt7p1v.svelte-xt7p1v{position:absolute;display:flex}.floorplan-plugin__rule-labels--top.svelte-xt7p1v.svelte-xt7p1v{left:0;top:-1.25rem}.floorplan-plugin__rule-labels--bottom.svelte-xt7p1v.svelte-xt7p1v{left:0;bottom:-1.25rem}.floorplan-plugin__rule-labels--left.svelte-xt7p1v.svelte-xt7p1v{top:0;left:-1.25rem}.floorplan-plugin__rule-labels--right.svelte-xt7p1v.svelte-xt7p1v{top:0;right:-1.25rem}.floorplan-plugin__rule-line.svelte-xt7p1v.svelte-xt7p1v{background:#fff;opacity:0.05;width:100%;height:100%}.floorplan-plugin__rule-scale-wrapper.svelte-xt7p1v.svelte-xt7p1v{position:absolute;width:0.3125rem;height:100%;left:50%;top:0;transform:translateX(-50%)}.floorplan-plugin__rule-labels.is-row.svelte-xt7p1v .floorplan-plugin__rule-scale-wrapper.svelte-xt7p1v{width:100%;height:0.3125rem;top:50%;left:0;transform:translateY(-50%)}.floorplan-plugin__rule-scale.svelte-xt7p1v.svelte-xt7p1v{position:absolute;background:#fff;opacity:0.05;width:100%;height:0.0625rem}.floorplan-plugin__rule-labels.is-row.svelte-xt7p1v .floorplan-plugin__rule-scale.svelte-xt7p1v{width:0.0625rem;height:100%}.floorplan-plugin__rule-text-wrapper.svelte-xt7p1v.svelte-xt7p1v{position:absolute}.floorplan-plugin__rule-labels--top.svelte-xt7p1v .floorplan-plugin__rule-text-wrapper.svelte-xt7p1v{width:100%;height:0;top:0.625rem}.floorplan-plugin__rule-labels--bottom.svelte-xt7p1v .floorplan-plugin__rule-text-wrapper.svelte-xt7p1v{width:100%;height:0;bottom:0.625rem}.floorplan-plugin__rule-labels--left.svelte-xt7p1v .floorplan-plugin__rule-text-wrapper.svelte-xt7p1v{width:0;height:100%;left:0.625rem}.floorplan-plugin__rule-labels--right.svelte-xt7p1v .floorplan-plugin__rule-text-wrapper.svelte-xt7p1v{width:0;height:100%;right:0.625rem}.floorplan-plugin__rule-text-item.svelte-xt7p1v.svelte-xt7p1v{width:0;height:0;position:absolute;transform:rotate(90deg)}.floorplan-plugin__rule-labels.is-row.svelte-xt7p1v .floorplan-plugin__rule-text-item.svelte-xt7p1v{transform:rotate(0)}.floorplan-plugin__rule-text.svelte-xt7p1v.svelte-xt7p1v{width:-webkit-max-content;width:-moz-max-content;width:max-content;transform:translate(-50%, -50%);font-size:0.625rem;color:#fff;opacity:0.2}");
2167
2167
  }
2168
2168
 
2169
- function get_each_context$7(ctx, list, i) {
2169
+ function get_each_context$8(ctx, list, i) {
2170
2170
  const child_ctx = ctx.slice();
2171
2171
  child_ctx[10] = list[i];
2172
2172
  child_ctx[12] = i;
@@ -2201,7 +2201,7 @@ function create_each_block_1(ctx) {
2201
2201
  }
2202
2202
 
2203
2203
  // (62:4) {#each rulerTexts as textItem, textItemIndex (textItemIndex)}
2204
- function create_each_block$7(key_1, ctx) {
2204
+ function create_each_block$8(key_1, ctx) {
2205
2205
  let div1;
2206
2206
  let div0;
2207
2207
  let t0_value = /*textItem*/ ctx[10].distance + "";
@@ -2238,7 +2238,7 @@ function create_each_block$7(key_1, ctx) {
2238
2238
  };
2239
2239
  }
2240
2240
 
2241
- function create_fragment$h(ctx) {
2241
+ function create_fragment$j(ctx) {
2242
2242
  let div3;
2243
2243
  let div0;
2244
2244
  let t0;
@@ -2259,9 +2259,9 @@ function create_fragment$h(ctx) {
2259
2259
  const get_key = ctx => /*textItemIndex*/ ctx[12];
2260
2260
 
2261
2261
  for (let i = 0; i < each_value.length; i += 1) {
2262
- let child_ctx = get_each_context$7(ctx, each_value, i);
2262
+ let child_ctx = get_each_context$8(ctx, each_value, i);
2263
2263
  let key = get_key(child_ctx);
2264
- each1_lookup.set(key, each_blocks[i] = create_each_block$7(key, child_ctx));
2264
+ each1_lookup.set(key, each_blocks[i] = create_each_block$8(key, child_ctx));
2265
2265
  }
2266
2266
 
2267
2267
  return {
@@ -2334,7 +2334,7 @@ function create_fragment$h(ctx) {
2334
2334
 
2335
2335
  if (dirty & /*rulerTexts, isRow*/ 10) {
2336
2336
  each_value = /*rulerTexts*/ ctx[3];
2337
- each_blocks = internal.update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each1_lookup, div2, internal.destroy_block, create_each_block$7, null, get_each_context$7);
2337
+ each_blocks = internal.update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each1_lookup, div2, internal.destroy_block, create_each_block$8, null, get_each_context$8);
2338
2338
  }
2339
2339
 
2340
2340
  if (dirty & /*type*/ 1 && div3_class_value !== (div3_class_value = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + /*type*/ ctx[0] + " svelte-xt7p1v")) {
@@ -2361,7 +2361,7 @@ function create_fragment$h(ctx) {
2361
2361
  const padding$1 = 1000;
2362
2362
  const exteriorWallOffset$1 = 180;
2363
2363
 
2364
- function instance$h($$self, $$props, $$invalidate) {
2364
+ function instance$j($$self, $$props, $$invalidate) {
2365
2365
  let { type } = $$props;
2366
2366
  let { data } = $$props;
2367
2367
  let { bounding } = $$props;
@@ -2420,17 +2420,17 @@ function instance$h($$self, $$props, $$invalidate) {
2420
2420
  class RuleItem extends internal.SvelteComponent {
2421
2421
  constructor(options) {
2422
2422
  super();
2423
- internal.init(this, options, instance$h, create_fragment$h, internal.safe_not_equal, { type: 0, data: 4, bounding: 5 }, add_css$d);
2423
+ internal.init(this, options, instance$j, create_fragment$j, internal.safe_not_equal, { type: 0, data: 4, bounding: 5 }, add_css$f);
2424
2424
  }
2425
2425
  }
2426
2426
 
2427
2427
  /* src/floorplan/Components/RuleLabels/RuleLabels.svelte generated by Svelte v3.47.0 */
2428
2428
 
2429
- function add_css$c(target) {
2429
+ function add_css$e(target) {
2430
2430
  internal.append_styles(target, "svelte-1mzj9p3", ".floorplan-plugin__rule-labels-wrapper.svelte-1mzj9p3{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}");
2431
2431
  }
2432
2432
 
2433
- function get_each_context$6(ctx, list, i) {
2433
+ function get_each_context$7(ctx, list, i) {
2434
2434
  const child_ctx = ctx.slice();
2435
2435
  child_ctx[12] = list[i][0];
2436
2436
  child_ctx[13] = list[i][1];
@@ -2438,7 +2438,7 @@ function get_each_context$6(ctx, list, i) {
2438
2438
  }
2439
2439
 
2440
2440
  // (19:2) {#each ruleLabelArray as [type, data] (type)}
2441
- function create_each_block$6(key_1, ctx) {
2441
+ function create_each_block$7(key_1, ctx) {
2442
2442
  let first;
2443
2443
  let ruleitem;
2444
2444
  let current;
@@ -2503,7 +2503,7 @@ function create_each_block$6(key_1, ctx) {
2503
2503
  };
2504
2504
  }
2505
2505
 
2506
- function create_fragment$g(ctx) {
2506
+ function create_fragment$i(ctx) {
2507
2507
  let div;
2508
2508
  let each_blocks = [];
2509
2509
  let each_1_lookup = new Map();
@@ -2512,9 +2512,9 @@ function create_fragment$g(ctx) {
2512
2512
  const get_key = ctx => /*type*/ ctx[12];
2513
2513
 
2514
2514
  for (let i = 0; i < each_value.length; i += 1) {
2515
- let child_ctx = get_each_context$6(ctx, each_value, i);
2515
+ let child_ctx = get_each_context$7(ctx, each_value, i);
2516
2516
  let key = get_key(child_ctx);
2517
- each_1_lookup.set(key, each_blocks[i] = create_each_block$6(key, child_ctx));
2517
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$7(key, child_ctx));
2518
2518
  }
2519
2519
 
2520
2520
  return {
@@ -2542,7 +2542,7 @@ function create_fragment$g(ctx) {
2542
2542
  if (dirty & /*ruleLabelArray, bounding*/ 9) {
2543
2543
  each_value = /*ruleLabelArray*/ ctx[3];
2544
2544
  internal.group_outros();
2545
- 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);
2545
+ 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);
2546
2546
  internal.check_outros();
2547
2547
  }
2548
2548
 
@@ -2583,7 +2583,7 @@ function create_fragment$g(ctx) {
2583
2583
  const padding = 1000;
2584
2584
  const exteriorWallOffset = 180;
2585
2585
 
2586
- function instance$g($$self, $$props, $$invalidate) {
2586
+ function instance$i($$self, $$props, $$invalidate) {
2587
2587
  let bounding;
2588
2588
  let ruleLabelData;
2589
2589
  let ruleLabelDataKeys;
@@ -2663,13 +2663,13 @@ function instance$g($$self, $$props, $$invalidate) {
2663
2663
  class RuleLabels extends internal.SvelteComponent {
2664
2664
  constructor(options) {
2665
2665
  super();
2666
- internal.init(this, options, instance$g, create_fragment$g, internal.safe_not_equal, { floorIndex: 4, floorplanData: 5 }, add_css$c);
2666
+ internal.init(this, options, instance$i, create_fragment$i, internal.safe_not_equal, { floorIndex: 4, floorplanData: 5 }, add_css$e);
2667
2667
  }
2668
2668
  }
2669
2669
 
2670
2670
  /* src/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte generated by Svelte v3.47.0 */
2671
2671
 
2672
- function create_fragment$f(ctx) {
2672
+ function create_fragment$h(ctx) {
2673
2673
  let path_1;
2674
2674
 
2675
2675
  return {
@@ -2694,7 +2694,7 @@ function create_fragment$f(ctx) {
2694
2694
  };
2695
2695
  }
2696
2696
 
2697
- function instance$f($$self, $$props, $$invalidate) {
2697
+ function instance$h($$self, $$props, $$invalidate) {
2698
2698
  let d;
2699
2699
  let { path } = $$props;
2700
2700
 
@@ -2714,13 +2714,13 @@ function instance$f($$self, $$props, $$invalidate) {
2714
2714
  class RoomMaterial_0 extends internal.SvelteComponent {
2715
2715
  constructor(options) {
2716
2716
  super();
2717
- internal.init(this, options, instance$f, create_fragment$f, internal.safe_not_equal, { path: 1 });
2717
+ internal.init(this, options, instance$h, create_fragment$h, internal.safe_not_equal, { path: 1 });
2718
2718
  }
2719
2719
  }
2720
2720
 
2721
2721
  /* src/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte generated by Svelte v3.47.0 */
2722
2722
 
2723
- function create_fragment$e(ctx) {
2723
+ function create_fragment$g(ctx) {
2724
2724
  let defs;
2725
2725
  let pattern;
2726
2726
  let rect;
@@ -2780,7 +2780,7 @@ function create_fragment$e(ctx) {
2780
2780
 
2781
2781
  const halfWidth = 6;
2782
2782
 
2783
- function instance$e($$self, $$props, $$invalidate) {
2783
+ function instance$g($$self, $$props, $$invalidate) {
2784
2784
  let d;
2785
2785
  let { path } = $$props;
2786
2786
  const width = halfWidth * 2;
@@ -2802,13 +2802,13 @@ function instance$e($$self, $$props, $$invalidate) {
2802
2802
  class RoomMaterial_1 extends internal.SvelteComponent {
2803
2803
  constructor(options) {
2804
2804
  super();
2805
- internal.init(this, options, instance$e, create_fragment$e, internal.safe_not_equal, { path: 3 });
2805
+ internal.init(this, options, instance$g, create_fragment$g, internal.safe_not_equal, { path: 3 });
2806
2806
  }
2807
2807
  }
2808
2808
 
2809
2809
  /* src/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte generated by Svelte v3.47.0 */
2810
2810
 
2811
- function create_fragment$d(ctx) {
2811
+ function create_fragment$f(ctx) {
2812
2812
  let defs;
2813
2813
  let pattern0;
2814
2814
  let rect0;
@@ -2907,7 +2907,7 @@ function create_fragment$d(ctx) {
2907
2907
  };
2908
2908
  }
2909
2909
 
2910
- function instance$d($$self, $$props, $$invalidate) {
2910
+ function instance$f($$self, $$props, $$invalidate) {
2911
2911
  let d;
2912
2912
  let { path } = $$props;
2913
2913
 
@@ -2927,17 +2927,17 @@ function instance$d($$self, $$props, $$invalidate) {
2927
2927
  class RoomMaterial_2 extends internal.SvelteComponent {
2928
2928
  constructor(options) {
2929
2929
  super();
2930
- internal.init(this, options, instance$d, create_fragment$d, internal.safe_not_equal, { path: 1 });
2930
+ internal.init(this, options, instance$f, create_fragment$f, internal.safe_not_equal, { path: 1 });
2931
2931
  }
2932
2932
  }
2933
2933
 
2934
2934
  /* src/floorplan/Components/RoomMaterials/RoomMaterial.svelte generated by Svelte v3.47.0 */
2935
2935
 
2936
- function add_css$b(target) {
2936
+ function add_css$d(target) {
2937
2937
  internal.append_styles(target, "svelte-1d4xj70", "svg.svelte-1d4xj70{position:absolute;width:100%;height:100%;overflow:visible}");
2938
2938
  }
2939
2939
 
2940
- function get_each_context$5(ctx, list, i) {
2940
+ function get_each_context$6(ctx, list, i) {
2941
2941
  const child_ctx = ctx.slice();
2942
2942
  child_ctx[5] = list[i];
2943
2943
  return child_ctx;
@@ -3046,7 +3046,7 @@ function create_if_block$4(ctx) {
3046
3046
  }
3047
3047
 
3048
3048
  // (13:2) {#each rooms as room}
3049
- function create_each_block$5(ctx) {
3049
+ function create_each_block$6(ctx) {
3050
3050
  let svg;
3051
3051
  let current_block_type_index;
3052
3052
  let if_block;
@@ -3121,14 +3121,14 @@ function create_each_block$5(ctx) {
3121
3121
  };
3122
3122
  }
3123
3123
 
3124
- function create_fragment$c(ctx) {
3124
+ function create_fragment$e(ctx) {
3125
3125
  let div;
3126
3126
  let current;
3127
3127
  let each_value = /*rooms*/ ctx[0];
3128
3128
  let each_blocks = [];
3129
3129
 
3130
3130
  for (let i = 0; i < each_value.length; i += 1) {
3131
- each_blocks[i] = create_each_block$5(get_each_context$5(ctx, each_value, i));
3131
+ each_blocks[i] = create_each_block$6(get_each_context$6(ctx, each_value, i));
3132
3132
  }
3133
3133
 
3134
3134
  const out = i => internal.transition_out(each_blocks[i], 1, 1, () => {
@@ -3160,13 +3160,13 @@ function create_fragment$c(ctx) {
3160
3160
  let i;
3161
3161
 
3162
3162
  for (i = 0; i < each_value.length; i += 1) {
3163
- const child_ctx = get_each_context$5(ctx, each_value, i);
3163
+ const child_ctx = get_each_context$6(ctx, each_value, i);
3164
3164
 
3165
3165
  if (each_blocks[i]) {
3166
3166
  each_blocks[i].p(child_ctx, dirty);
3167
3167
  internal.transition_in(each_blocks[i], 1);
3168
3168
  } else {
3169
- each_blocks[i] = create_each_block$5(child_ctx);
3169
+ each_blocks[i] = create_each_block$6(child_ctx);
3170
3170
  each_blocks[i].c();
3171
3171
  internal.transition_in(each_blocks[i], 1);
3172
3172
  each_blocks[i].m(div, null);
@@ -3207,7 +3207,7 @@ function create_fragment$c(ctx) {
3207
3207
  };
3208
3208
  }
3209
3209
 
3210
- function instance$c($$self, $$props, $$invalidate) {
3210
+ function instance$e($$self, $$props, $$invalidate) {
3211
3211
  let rooms;
3212
3212
  let { floorIndex } = $$props;
3213
3213
  let { floorplanData } = $$props;
@@ -3233,17 +3233,17 @@ function instance$c($$self, $$props, $$invalidate) {
3233
3233
  class RoomMaterial extends internal.SvelteComponent {
3234
3234
  constructor(options) {
3235
3235
  super();
3236
- internal.init(this, options, instance$c, create_fragment$c, internal.safe_not_equal, { floorIndex: 3, floorplanData: 4 }, add_css$b);
3236
+ internal.init(this, options, instance$e, create_fragment$e, internal.safe_not_equal, { floorIndex: 3, floorplanData: 4 }, add_css$d);
3237
3237
  }
3238
3238
  }
3239
3239
 
3240
3240
  /* src/floorplan/Components/RoomHighlight/Room.svelte generated by Svelte v3.47.0 */
3241
3241
 
3242
- function add_css$a(target) {
3242
+ function add_css$c(target) {
3243
3243
  internal.append_styles(target, "svelte-19uvvss", "path.svelte-19uvvss{opacity:0}path.svelte-19uvvss:hover{opacity:0.1}");
3244
3244
  }
3245
3245
 
3246
- function create_fragment$b(ctx) {
3246
+ function create_fragment$d(ctx) {
3247
3247
  let path;
3248
3248
 
3249
3249
  return {
@@ -3265,7 +3265,7 @@ function create_fragment$b(ctx) {
3265
3265
  };
3266
3266
  }
3267
3267
 
3268
- function instance$b($$self, $$props, $$invalidate) {
3268
+ function instance$d($$self, $$props, $$invalidate) {
3269
3269
  let { room } = $$props;
3270
3270
  let { floorplanData } = $$props;
3271
3271
  const { bounding } = floorplanData;
@@ -3286,24 +3286,24 @@ function instance$b($$self, $$props, $$invalidate) {
3286
3286
  class Room extends internal.SvelteComponent {
3287
3287
  constructor(options) {
3288
3288
  super();
3289
- internal.init(this, options, instance$b, create_fragment$b, internal.safe_not_equal, { room: 1, floorplanData: 2 }, add_css$a);
3289
+ internal.init(this, options, instance$d, create_fragment$d, internal.safe_not_equal, { room: 1, floorplanData: 2 }, add_css$c);
3290
3290
  }
3291
3291
  }
3292
3292
 
3293
3293
  /* src/floorplan/Components/RoomHighlight/RoomHighlight.svelte generated by Svelte v3.47.0 */
3294
3294
 
3295
- function add_css$9(target) {
3295
+ function add_css$b(target) {
3296
3296
  internal.append_styles(target, "svelte-1kqo6e4", ".floorplan-plugin__room-highlight.svelte-1kqo6e4{position:absolute;width:100%;height:100%}svg.svelte-1kqo6e4{width:100%;height:100%;overflow:visible}");
3297
3297
  }
3298
3298
 
3299
- function get_each_context$4(ctx, list, i) {
3299
+ function get_each_context$5(ctx, list, i) {
3300
3300
  const child_ctx = ctx.slice();
3301
3301
  child_ctx[4] = list[i];
3302
3302
  return child_ctx;
3303
3303
  }
3304
3304
 
3305
3305
  // (10:4) {#each floorplanData.floorDatas[floorIndex].rooms as room (room.id)}
3306
- function create_each_block$4(key_1, ctx) {
3306
+ function create_each_block$5(key_1, ctx) {
3307
3307
  let first;
3308
3308
  let room;
3309
3309
  let current;
@@ -3366,7 +3366,7 @@ function create_each_block$4(key_1, ctx) {
3366
3366
  };
3367
3367
  }
3368
3368
 
3369
- function create_fragment$a(ctx) {
3369
+ function create_fragment$c(ctx) {
3370
3370
  let div;
3371
3371
  let svg;
3372
3372
  let each_blocks = [];
@@ -3376,9 +3376,9 @@ function create_fragment$a(ctx) {
3376
3376
  const get_key = ctx => /*room*/ ctx[4].id;
3377
3377
 
3378
3378
  for (let i = 0; i < each_value.length; i += 1) {
3379
- let child_ctx = get_each_context$4(ctx, each_value, i);
3379
+ let child_ctx = get_each_context$5(ctx, each_value, i);
3380
3380
  let key = get_key(child_ctx);
3381
- each_1_lookup.set(key, each_blocks[i] = create_each_block$4(key, child_ctx));
3381
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$5(key, child_ctx));
3382
3382
  }
3383
3383
 
3384
3384
  return {
@@ -3410,7 +3410,7 @@ function create_fragment$a(ctx) {
3410
3410
  if (dirty & /*floorplanData, floorIndex*/ 3) {
3411
3411
  each_value = /*floorplanData*/ ctx[1].floorDatas[/*floorIndex*/ ctx[0]].rooms;
3412
3412
  internal.group_outros();
3413
- 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$4, null, get_each_context$4);
3413
+ 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$5, null, get_each_context$5);
3414
3414
  internal.check_outros();
3415
3415
  }
3416
3416
  },
@@ -3440,7 +3440,7 @@ function create_fragment$a(ctx) {
3440
3440
  };
3441
3441
  }
3442
3442
 
3443
- function instance$a($$self, $$props, $$invalidate) {
3443
+ function instance$c($$self, $$props, $$invalidate) {
3444
3444
  let { floorIndex } = $$props;
3445
3445
  let { floorplanData } = $$props;
3446
3446
  const boundingWidth = floorplanData.bounding.max.x - floorplanData.bounding.min.x;
@@ -3457,13 +3457,13 @@ function instance$a($$self, $$props, $$invalidate) {
3457
3457
  class RoomHighlight extends internal.SvelteComponent {
3458
3458
  constructor(options) {
3459
3459
  super();
3460
- internal.init(this, options, instance$a, create_fragment$a, internal.safe_not_equal, { floorIndex: 0, floorplanData: 1 }, add_css$9);
3460
+ internal.init(this, options, instance$c, create_fragment$c, internal.safe_not_equal, { floorIndex: 0, floorplanData: 1 }, add_css$b);
3461
3461
  }
3462
3462
  }
3463
3463
 
3464
3464
  /* src/floorplan/Components/CurrentFloor.svelte generated by Svelte v3.47.0 */
3465
3465
 
3466
- function add_css$8(target) {
3466
+ function add_css$a(target) {
3467
3467
  internal.append_styles(target, "svelte-bl8zrz", ".floorplan-plugin__floor.svelte-bl8zrz{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;pointer-events:none}.floorplan-plugin__floor--is-current.svelte-bl8zrz{opacity:1;pointer-events:auto}");
3468
3468
  }
3469
3469
 
@@ -3634,7 +3634,7 @@ function create_if_block$3(ctx) {
3634
3634
  };
3635
3635
  }
3636
3636
 
3637
- function create_fragment$9(ctx) {
3637
+ function create_fragment$b(ctx) {
3638
3638
  let div;
3639
3639
  let roommaterial;
3640
3640
  let t0;
@@ -3834,7 +3834,7 @@ function create_fragment$9(ctx) {
3834
3834
  };
3835
3835
  }
3836
3836
 
3837
- function instance$9($$self, $$props, $$invalidate) {
3837
+ function instance$b($$self, $$props, $$invalidate) {
3838
3838
  let { isCurrent } = $$props;
3839
3839
  let { floorIndex } = $$props;
3840
3840
  let { hoverEnable } = $$props;
@@ -3871,8 +3871,8 @@ class CurrentFloor$1 extends internal.SvelteComponent {
3871
3871
  internal.init(
3872
3872
  this,
3873
3873
  options,
3874
- instance$9,
3875
- create_fragment$9,
3874
+ instance$b,
3875
+ create_fragment$b,
3876
3876
  internal.safe_not_equal,
3877
3877
  {
3878
3878
  isCurrent: 0,
@@ -3883,18 +3883,18 @@ class CurrentFloor$1 extends internal.SvelteComponent {
3883
3883
  floorplanData: 5,
3884
3884
  getLabelElement: 6
3885
3885
  },
3886
- add_css$8
3886
+ add_css$a
3887
3887
  );
3888
3888
  }
3889
3889
  }
3890
3890
 
3891
3891
  /* src/floorplan/Components/Main.svelte generated by Svelte v3.47.0 */
3892
3892
 
3893
- function add_css$7(target) {
3893
+ function add_css$9(target) {
3894
3894
  internal.append_styles(target, "svelte-q5wdnn", ".floorplan-main.svelte-q5wdnn{width:100%;height:100%}");
3895
3895
  }
3896
3896
 
3897
- function get_each_context$3(ctx, list, i) {
3897
+ function get_each_context$4(ctx, list, i) {
3898
3898
  const child_ctx = ctx.slice();
3899
3899
  child_ctx[13] = list[i];
3900
3900
  return child_ctx;
@@ -3912,7 +3912,7 @@ function create_if_block$2(ctx) {
3912
3912
  let each_blocks = [];
3913
3913
 
3914
3914
  for (let i = 0; i < each_value.length; i += 1) {
3915
- each_blocks[i] = create_each_block$3(get_each_context$3(ctx, each_value, i));
3915
+ each_blocks[i] = create_each_block$4(get_each_context$4(ctx, each_value, i));
3916
3916
  }
3917
3917
 
3918
3918
  const out = i => internal.transition_out(each_blocks[i], 1, 1, () => {
@@ -3972,13 +3972,13 @@ function create_if_block$2(ctx) {
3972
3972
  let i;
3973
3973
 
3974
3974
  for (i = 0; i < each_value.length; i += 1) {
3975
- const child_ctx = get_each_context$3(ctx, each_value, i);
3975
+ const child_ctx = get_each_context$4(ctx, each_value, i);
3976
3976
 
3977
3977
  if (each_blocks[i]) {
3978
3978
  each_blocks[i].p(child_ctx, dirty);
3979
3979
  internal.transition_in(each_blocks[i], 1);
3980
3980
  } else {
3981
- each_blocks[i] = create_each_block$3(child_ctx);
3981
+ each_blocks[i] = create_each_block$4(child_ctx);
3982
3982
  each_blocks[i].c();
3983
3983
  internal.transition_in(each_blocks[i], 1);
3984
3984
  each_blocks[i].m(div, t0);
@@ -4074,7 +4074,7 @@ function create_if_block$2(ctx) {
4074
4074
  }
4075
4075
 
4076
4076
  // (23:4) {#each floorplanData.floorDatas as floorData}
4077
- function create_each_block$3(ctx) {
4077
+ function create_each_block$4(ctx) {
4078
4078
  let currentfloor;
4079
4079
  let current;
4080
4080
 
@@ -4187,7 +4187,7 @@ function create_if_block_1(ctx) {
4187
4187
  };
4188
4188
  }
4189
4189
 
4190
- function create_fragment$8(ctx) {
4190
+ function create_fragment$a(ctx) {
4191
4191
  let if_block_anchor;
4192
4192
  let current;
4193
4193
  let if_block = /*visible*/ ctx[1] && create_if_block$2(ctx);
@@ -4242,7 +4242,7 @@ function create_fragment$8(ctx) {
4242
4242
  };
4243
4243
  }
4244
4244
 
4245
- function instance$8($$self, $$props, $$invalidate) {
4245
+ function instance$a($$self, $$props, $$invalidate) {
4246
4246
  let { duration = 0 } = $$props;
4247
4247
  let { visible } = $$props;
4248
4248
  let { northDesc } = $$props;
@@ -4297,8 +4297,8 @@ class Main$1 extends internal.SvelteComponent {
4297
4297
  internal.init(
4298
4298
  this,
4299
4299
  options,
4300
- instance$8,
4301
- create_fragment$8,
4300
+ instance$a,
4301
+ create_fragment$a,
4302
4302
  internal.safe_not_equal,
4303
4303
  {
4304
4304
  duration: 0,
@@ -4315,7 +4315,7 @@ class Main$1 extends internal.SvelteComponent {
4315
4315
  cameraImageUrl: 11,
4316
4316
  getLabelElement: 12
4317
4317
  },
4318
- add_css$7
4318
+ add_css$9
4319
4319
  );
4320
4320
  }
4321
4321
  }
@@ -4695,11 +4695,11 @@ function throttle(func, wait = 200) {
4695
4695
 
4696
4696
  /* src/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte generated by Svelte v3.47.0 */
4697
4697
 
4698
- function add_css$6(target) {
4698
+ function add_css$8(target) {
4699
4699
  internal.append_styles(target, "svelte-1ty3s4p", ".plugin-radar__camera-wrapper.svelte-1ty3s4p{width:100%;height:100%;position:absolute;pointer-events:none}.plugin-radar__camera-position.svelte-1ty3s4p{position:absolute;left:0;top:0;width:0;height:0;transform:none;pointer-events:none;transition:transform 1s linear}.plugin-radar__camera-rotate.svelte-1ty3s4p{position:absolute;left:-0.78125rem;top:-0.78125rem;width:0.88542rem;height:0.88542rem;transform-origin:0.78125rem 0.78125rem;transform:rotate(45deg);background-repeat:no-repeat;background-size:100%}");
4700
4700
  }
4701
4701
 
4702
- function create_fragment$7(ctx) {
4702
+ function create_fragment$9(ctx) {
4703
4703
  let div2;
4704
4704
  let div1;
4705
4705
  let div0;
@@ -4749,7 +4749,7 @@ function getCameraRotateTransform(longitude) {
4749
4749
  return `rotate(${rotate}deg)`;
4750
4750
  }
4751
4751
 
4752
- function instance$7($$self, $$props, $$invalidate) {
4752
+ function instance$9($$self, $$props, $$invalidate) {
4753
4753
  let positionTransform;
4754
4754
  let rotateTransform;
4755
4755
  let { five } = $$props;
@@ -4829,8 +4829,8 @@ class Camera extends internal.SvelteComponent {
4829
4829
  internal.init(
4830
4830
  this,
4831
4831
  options,
4832
- instance$7,
4833
- create_fragment$7,
4832
+ instance$9,
4833
+ create_fragment$9,
4834
4834
  internal.safe_not_equal,
4835
4835
  {
4836
4836
  five: 3,
@@ -4838,25 +4838,25 @@ class Camera extends internal.SvelteComponent {
4838
4838
  floorplanData: 5,
4839
4839
  cameraImageUrl: 0
4840
4840
  },
4841
- add_css$6
4841
+ add_css$8
4842
4842
  );
4843
4843
  }
4844
4844
  }
4845
4845
 
4846
4846
  /* src/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte generated by Svelte v3.47.0 */
4847
4847
 
4848
- function add_css$5(target) {
4848
+ function add_css$7(target) {
4849
4849
  internal.append_styles(target, "svelte-1i87fz7", ".plugin-pano-floorplan__extra-objects.svelte-1i87fz7{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.plugin-pano-floorplan__extra-object-item--position.svelte-1i87fz7{position:absolute;width:0;height:0}.plugin-pano-floorplan__extra-object-item.svelte-1i87fz7{transform:translate(-50%, -50%)}");
4850
4850
  }
4851
4851
 
4852
- function get_each_context$2(ctx, list, i) {
4852
+ function get_each_context$3(ctx, list, i) {
4853
4853
  const child_ctx = ctx.slice();
4854
4854
  child_ctx[1] = list[i];
4855
4855
  return child_ctx;
4856
4856
  }
4857
4857
 
4858
4858
  // (5:2) {#each extraObjects as extraObject (extraObject.id)}
4859
- function create_each_block$2(key_1, ctx) {
4859
+ function create_each_block$3(key_1, ctx) {
4860
4860
  let div1;
4861
4861
  let div0;
4862
4862
  let style_width = `${/*extraObject*/ ctx[1].icon.width / 16}rem`;
@@ -4915,7 +4915,7 @@ function create_each_block$2(key_1, ctx) {
4915
4915
  };
4916
4916
  }
4917
4917
 
4918
- function create_fragment$6(ctx) {
4918
+ function create_fragment$8(ctx) {
4919
4919
  let div;
4920
4920
  let each_blocks = [];
4921
4921
  let each_1_lookup = new Map();
@@ -4923,9 +4923,9 @@ function create_fragment$6(ctx) {
4923
4923
  const get_key = ctx => /*extraObject*/ ctx[1].id;
4924
4924
 
4925
4925
  for (let i = 0; i < each_value.length; i += 1) {
4926
- let child_ctx = get_each_context$2(ctx, each_value, i);
4926
+ let child_ctx = get_each_context$3(ctx, each_value, i);
4927
4927
  let key = get_key(child_ctx);
4928
- each_1_lookup.set(key, each_blocks[i] = create_each_block$2(key, child_ctx));
4928
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$3(key, child_ctx));
4929
4929
  }
4930
4930
 
4931
4931
  return {
@@ -4948,7 +4948,7 @@ function create_fragment$6(ctx) {
4948
4948
  p(ctx, [dirty]) {
4949
4949
  if (dirty & /*extraObjects*/ 1) {
4950
4950
  each_value = /*extraObjects*/ ctx[0];
4951
- 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);
4951
+ 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$3, null, get_each_context$3);
4952
4952
  }
4953
4953
  },
4954
4954
  i: internal.noop,
@@ -4963,7 +4963,7 @@ function create_fragment$6(ctx) {
4963
4963
  };
4964
4964
  }
4965
4965
 
4966
- function instance$6($$self, $$props, $$invalidate) {
4966
+ function instance$8($$self, $$props, $$invalidate) {
4967
4967
  let { extraObjects = [] } = $$props;
4968
4968
 
4969
4969
  $$self.$$set = $$props => {
@@ -4976,7 +4976,7 @@ function instance$6($$self, $$props, $$invalidate) {
4976
4976
  class ExtraObjects extends internal.SvelteComponent {
4977
4977
  constructor(options) {
4978
4978
  super();
4979
- internal.init(this, options, instance$6, create_fragment$6, internal.safe_not_equal, { extraObjects: 0 }, add_css$5);
4979
+ internal.init(this, options, instance$8, create_fragment$8, internal.safe_not_equal, { extraObjects: 0 }, add_css$7);
4980
4980
  }
4981
4981
  }
4982
4982
 
@@ -5042,7 +5042,7 @@ function create_if_block$1(ctx) {
5042
5042
  };
5043
5043
  }
5044
5044
 
5045
- function create_fragment$5(ctx) {
5045
+ function create_fragment$7(ctx) {
5046
5046
  let baseimage;
5047
5047
  let t0;
5048
5048
  let extraobjects;
@@ -5153,7 +5153,7 @@ function create_fragment$5(ctx) {
5153
5153
  };
5154
5154
  }
5155
5155
 
5156
- function instance$5($$self, $$props, $$invalidate) {
5156
+ function instance$7($$self, $$props, $$invalidate) {
5157
5157
  let currentFloorExtraObjects;
5158
5158
  let { five } = $$props;
5159
5159
  let { pxmm } = $$props;
@@ -5196,7 +5196,7 @@ class CurrentFloor extends internal.SvelteComponent {
5196
5196
  constructor(options) {
5197
5197
  super();
5198
5198
 
5199
- internal.init(this, options, instance$5, create_fragment$5, internal.safe_not_equal, {
5199
+ internal.init(this, options, instance$7, create_fragment$7, internal.safe_not_equal, {
5200
5200
  five: 0,
5201
5201
  pxmm: 1,
5202
5202
  floorIndex: 2,
@@ -5209,7 +5209,7 @@ class CurrentFloor extends internal.SvelteComponent {
5209
5209
 
5210
5210
  /* src/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte generated by Svelte v3.47.0 */
5211
5211
 
5212
- function add_css$4(target) {
5212
+ function add_css$6(target) {
5213
5213
  internal.append_styles(target, "svelte-1mvqyqq", ".plugin-floorplan-radar.svelte-1mvqyqq{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.plugin-floorplan-radar-container.svelte-1mvqyqq{position:relative}");
5214
5214
  }
5215
5215
 
@@ -5332,7 +5332,7 @@ function create_if_block(ctx) {
5332
5332
  };
5333
5333
  }
5334
5334
 
5335
- function create_fragment$4(ctx) {
5335
+ function create_fragment$6(ctx) {
5336
5336
  let div;
5337
5337
  let div_resize_listener;
5338
5338
  let current;
@@ -5392,7 +5392,7 @@ function create_fragment$4(ctx) {
5392
5392
  };
5393
5393
  }
5394
5394
 
5395
- function instance$4($$self, $$props, $$invalidate) {
5395
+ function instance$6($$self, $$props, $$invalidate) {
5396
5396
  let { five } = $$props;
5397
5397
  let { hoverEnable } = $$props;
5398
5398
  let { floorplanData } = $$props;
@@ -5475,8 +5475,8 @@ class Main extends internal.SvelteComponent {
5475
5475
  internal.init(
5476
5476
  this,
5477
5477
  options,
5478
- instance$4,
5479
- create_fragment$4,
5478
+ instance$6,
5479
+ create_fragment$6,
5480
5480
  internal.safe_not_equal,
5481
5481
  {
5482
5482
  five: 0,
@@ -5485,7 +5485,7 @@ class Main extends internal.SvelteComponent {
5485
5485
  cameraImageUrl: 3,
5486
5486
  extraObjects: 4
5487
5487
  },
5488
- add_css$4
5488
+ add_css$6
5489
5489
  );
5490
5490
  }
5491
5491
  }
@@ -13359,18 +13359,18 @@ const currentTarget = store.writable(null);
13359
13359
 
13360
13360
  /* src/PanoSpatialTagPlugin/Components/origins.svelte generated by Svelte v3.47.0 */
13361
13361
 
13362
- function add_css$3(target) {
13362
+ function add_css$5(target) {
13363
13363
  internal.append_styles(target, "svelte-1kuu68s", ".PanoSpatialTagPlugin__tag-origin.svelte-1kuu68s{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;-webkit-animation:svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin 1.2s forwards;animation:svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin 1.2s forwards;pointer-events:auto}.PanoSpatialTagPlugin__tag-origin.svelte-1kuu68s:after{content:'';position:absolute;top:50%;height:50%;width:2rem;height:2rem;transform:translate(-50%, -50%)}.PanoSpatialTagPlugin__tag-origin-destroy.svelte-1kuu68s{transform:translate(-50%, -50%) scale(0.6);-webkit-animation:svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin-destroy 1.2s forwards .7s;animation:svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin-destroy 1.2s forwards .7s}@-webkit-keyframes svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin{0%{transform:translate(-50%, -50%) scale(1);opacity:0}100%{transform:translate(-50%, -50%) scale(0.6);opacity:1 }}@keyframes svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin{0%{transform:translate(-50%, -50%) scale(1);opacity:0}100%{transform:translate(-50%, -50%) scale(0.6);opacity:1 }}@-webkit-keyframes svelte-1kuu68s-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}}@keyframes svelte-1kuu68s-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}}");
13364
13364
  }
13365
13365
 
13366
- function get_each_context$1(ctx, list, i) {
13366
+ function get_each_context$2(ctx, list, i) {
13367
13367
  const child_ctx = ctx.slice();
13368
13368
  child_ctx[3] = list[i];
13369
13369
  return child_ctx;
13370
13370
  }
13371
13371
 
13372
13372
  // (8:0) {#each origins as origin}
13373
- function create_each_block$1(ctx) {
13373
+ function create_each_block$2(ctx) {
13374
13374
  let i;
13375
13375
  let style_top = `${/*origin*/ ctx[3].top}%`;
13376
13376
  let style_left = `${/*origin*/ ctx[3].left}%`;
@@ -13426,13 +13426,13 @@ function create_each_block$1(ctx) {
13426
13426
  };
13427
13427
  }
13428
13428
 
13429
- function create_fragment$3(ctx) {
13429
+ function create_fragment$5(ctx) {
13430
13430
  let each_1_anchor;
13431
13431
  let each_value = /*origins*/ ctx[0];
13432
13432
  let each_blocks = [];
13433
13433
 
13434
13434
  for (let i = 0; i < each_value.length; i += 1) {
13435
- each_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));
13435
+ each_blocks[i] = create_each_block$2(get_each_context$2(ctx, each_value, i));
13436
13436
  }
13437
13437
 
13438
13438
  return {
@@ -13456,12 +13456,12 @@ function create_fragment$3(ctx) {
13456
13456
  let i;
13457
13457
 
13458
13458
  for (i = 0; i < each_value.length; i += 1) {
13459
- const child_ctx = get_each_context$1(ctx, each_value, i);
13459
+ const child_ctx = get_each_context$2(ctx, each_value, i);
13460
13460
 
13461
13461
  if (each_blocks[i]) {
13462
13462
  each_blocks[i].p(child_ctx, dirty);
13463
13463
  } else {
13464
- each_blocks[i] = create_each_block$1(child_ctx);
13464
+ each_blocks[i] = create_each_block$2(child_ctx);
13465
13465
  each_blocks[i].c();
13466
13466
  each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
13467
13467
  }
@@ -13483,7 +13483,7 @@ function create_fragment$3(ctx) {
13483
13483
  };
13484
13484
  }
13485
13485
 
13486
- function instance$3($$self, $$props, $$invalidate) {
13486
+ function instance$5($$self, $$props, $$invalidate) {
13487
13487
  let { origins } = $$props;
13488
13488
 
13489
13489
  const handleClick = id => {
@@ -13502,17 +13502,17 @@ function instance$3($$self, $$props, $$invalidate) {
13502
13502
  class Origins extends internal.SvelteComponent {
13503
13503
  constructor(options) {
13504
13504
  super();
13505
- internal.init(this, options, instance$3, create_fragment$3, internal.safe_not_equal, { origins: 0 }, add_css$3);
13505
+ internal.init(this, options, instance$5, create_fragment$5, internal.safe_not_equal, { origins: 0 }, add_css$5);
13506
13506
  }
13507
13507
  }
13508
13508
 
13509
13509
  /* src/PanoSpatialTagPlugin/Components/tag.svelte generated by Svelte v3.47.0 */
13510
13510
 
13511
- function add_css$2(target) {
13511
+ function add_css$4(target) {
13512
13512
  internal.append_styles(target, "svelte-1wukaol", ".PanoSpatialTagPlugin__tag-x.svelte-1wukaol.svelte-1wukaol{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-1wukaol.svelte-1wukaol{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-1wukaol.svelte-1wukaol{position:absolute;left:-1rem;width:2rem;height:100%;overflow:hidden}.PanoSpatialTagPlugin__tag-flagpole.svelte-1wukaol.svelte-1wukaol{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-1wukaol.svelte-1wukaol{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-1wukaol.svelte-1wukaol{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-1wukaol .PanoSpatialTagPlugin__tag-line1.svelte-1wukaol{-webkit-animation:svelte-1wukaol-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s;animation:svelte-1wukaol-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s}.PanoSpatialTagPlugin__tag-show.svelte-1wukaol .PanoSpatialTagPlugin__tag-line2.svelte-1wukaol{-webkit-animation:svelte-1wukaol-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s;animation:svelte-1wukaol-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s}.PanoSpatialTagPlugin__tag-x.PanoSpatialTagPlugin__tag-upside-down.svelte-1wukaol.svelte-1wukaol{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1wukaol .PanoSpatialTagPlugin__tag-line.svelte-1wukaol{transform:scaleY(-1)}.PanoSpatialTagPlugin__tag-animate.svelte-1wukaol.svelte-1wukaol{position:relative;height:100%;overflow:hidden;transform-origin:left top;transition:transform .5s linear}.PanoSpatialTagPlugin__tag-upside-down.svelte-1wukaol .PanoSpatialTagPlugin__tag-animate.svelte-1wukaol{transform-origin:left bottom}.PanoSpatialTagPlugin__tag-content.svelte-1wukaol.svelte-1wukaol{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-1wukaol .PanoSpatialTagPlugin__tag-content.svelte-1wukaol{bottom:0}.PanoSpatialTagPlugin__tag-show.svelte-1wukaol .PanoSpatialTagPlugin__tag-flagpole.svelte-1wukaol{opacity:1;transform:translate(-50%, 0) scaleY(1)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1wukaol .PanoSpatialTagPlugin__tag-shadow.svelte-1wukaol{top:unset;bottom:-15rem}.PanoSpatialTagPlugin__tag-show.svelte-1wukaol .PanoSpatialTagPlugin__tag-shadow.svelte-1wukaol{opacity:.32}.PanoSpatialTagPlugin__tag-show.svelte-1wukaol .PanoSpatialTagPlugin__tag-content.svelte-1wukaol{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-hide.svelte-1wukaol .PanoSpatialTagPlugin__tag-flagpole.svelte-1wukaol{opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .5s .55s, opacity .4s .55s}.PanoSpatialTagPlugin__tag-hide.svelte-1wukaol .PanoSpatialTagPlugin__tag-shadow.svelte-1wukaol{opacity:0;transition:opacity .8s}.PanoSpatialTagPlugin__tag-hide.svelte-1wukaol .PanoSpatialTagPlugin__tag-content.svelte-1wukaol{transform:translate(-100%, 0);transition:transform .6s cubic-bezier(.53,.06,.88,.59)}.PanoSpatialTagPlugin__tag-hide.svelte-1wukaol .PanoSpatialTagPlugin__tag-content .svelte-1wukaol{pointer-events:none}.PanoSpatialTagPlugin__tag-hide.svelte-1wukaol .PanoSpatialTagPlugin__tag-line1.svelte-1wukaol{opacity:0.5;transform:translate(-50%, 10%) scaleY(0);-webkit-animation:svelte-1wukaol-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s;animation:svelte-1wukaol-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s}.PanoSpatialTagPlugin__tag-hide.svelte-1wukaol .PanoSpatialTagPlugin__tag-line2.svelte-1wukaol{opacity:0.5;transform:translate(-50%, 0) scaleY(0);-webkit-animation:svelte-1wukaol-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s;animation:svelte-1wukaol-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s}@-webkit-keyframes svelte-1wukaol-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-1wukaol-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)}}@-webkit-keyframes svelte-1wukaol-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-1wukaol-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)}}@-webkit-keyframes svelte-1wukaol-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-1wukaol-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)}}@-webkit-keyframes svelte-1wukaol-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)}}@keyframes svelte-1wukaol-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)}}");
13513
13513
  }
13514
13514
 
13515
- function create_fragment$2(ctx) {
13515
+ function create_fragment$4(ctx) {
13516
13516
  let div4;
13517
13517
  let div0;
13518
13518
  let t0;
@@ -13627,7 +13627,7 @@ function create_fragment$2(ctx) {
13627
13627
  };
13628
13628
  }
13629
13629
 
13630
- function instance$2($$self, $$props, $$invalidate) {
13630
+ function instance$4($$self, $$props, $$invalidate) {
13631
13631
  let { id } = $$props;
13632
13632
  let { upsideDown } = $$props;
13633
13633
  let { content } = $$props;
@@ -13764,8 +13764,8 @@ class Tag extends internal.SvelteComponent {
13764
13764
  internal.init(
13765
13765
  this,
13766
13766
  options,
13767
- instance$2,
13768
- create_fragment$2,
13767
+ instance$4,
13768
+ create_fragment$4,
13769
13769
  internal.safe_not_equal,
13770
13770
  {
13771
13771
  id: 0,
@@ -13780,7 +13780,7 @@ class Tag extends internal.SvelteComponent {
13780
13780
  events: 14,
13781
13781
  hooks: 15
13782
13782
  },
13783
- add_css$2
13783
+ add_css$4
13784
13784
  );
13785
13785
  }
13786
13786
  }
@@ -14423,11 +14423,11 @@ exports.DISPLAY_STRATEGY_TYPE = void 0;
14423
14423
 
14424
14424
  /* src/ModelItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.47.0 */
14425
14425
 
14426
- function add_css$1(target) {
14426
+ function add_css$3(target) {
14427
14427
  internal.append_styles(target, "svelte-1hzvil1", ".item-label-item.svelte-1hzvil1{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0}.item-label-item.visible.svelte-1hzvil1{opacity:1;-webkit-animation:svelte-1hzvil1-fadeIn .3s ease-in;animation:svelte-1hzvil1-fadeIn .3s ease-in}.item-label-item__text-wrap.svelte-1hzvil1::before{content:'';position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);filter:blur(0.83333rem);z-index:-1}.item-label-item__text-wrap.svelte-1hzvil1{padding:0.3125rem 0.3125rem 0;position:absolute;height:1.04167rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap;line-height:0.52083rem;font-size:0.57292rem;font-weight:bold;color:#FFEAC0;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center}.item-label-item__text.svelte-1hzvil1{padding-bottom:0.20833rem;border-top:0 solid;border-left:0 solid;border-right:0 solid;border-bottom:1px solid;-o-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;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-1hzvil1{position:absolute;bottom:0;width:1px;background-image:linear-gradient(to bottom, rgba(234, 208, 154, 0), rgba(234, 208, 154, 1))}@-webkit-keyframes svelte-1hzvil1-fadeIn{from{opacity:0\n }to{opacity:1\n }}@keyframes svelte-1hzvil1-fadeIn{from{opacity:0\n }to{opacity:1\n }}");
14428
14428
  }
14429
14429
 
14430
- function create_fragment$1(ctx) {
14430
+ function create_fragment$3(ctx) {
14431
14431
  let div2;
14432
14432
  let div0;
14433
14433
  let span;
@@ -14508,7 +14508,7 @@ function create_fragment$1(ctx) {
14508
14508
  };
14509
14509
  }
14510
14510
 
14511
- function instance$1($$self, $$props, $$invalidate) {
14511
+ function instance$3($$self, $$props, $$invalidate) {
14512
14512
  let { itemLabel } = $$props;
14513
14513
  let { hooks } = $$props;
14514
14514
 
@@ -14525,10 +14525,10 @@ function instance$1($$self, $$props, $$invalidate) {
14525
14525
  return [itemLabel, onClick, hooks];
14526
14526
  }
14527
14527
 
14528
- class ItemLabelItem extends internal.SvelteComponent {
14528
+ class ItemLabelItem$1 extends internal.SvelteComponent {
14529
14529
  constructor(options) {
14530
14530
  super();
14531
- internal.init(this, options, instance$1, create_fragment$1, internal.safe_not_equal, { itemLabel: 0, hooks: 2 }, add_css$1);
14531
+ internal.init(this, options, instance$3, create_fragment$3, internal.safe_not_equal, { itemLabel: 0, hooks: 2 }, add_css$3);
14532
14532
  }
14533
14533
  }
14534
14534
 
@@ -14549,23 +14549,23 @@ function debounce(func, wait = 200) {
14549
14549
 
14550
14550
  /* src/ModelItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.47.0 */
14551
14551
 
14552
- function add_css(target) {
14552
+ function add_css$2(target) {
14553
14553
  internal.append_styles(target, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
14554
14554
  }
14555
14555
 
14556
- function get_each_context(ctx, list, i) {
14556
+ function get_each_context$1(ctx, list, i) {
14557
14557
  const child_ctx = ctx.slice();
14558
14558
  child_ctx[28] = list[i];
14559
14559
  return child_ctx;
14560
14560
  }
14561
14561
 
14562
14562
  // (163:1) {#each renderItemLabels as itemLabelItem (itemLabelItem.id)}
14563
- function create_each_block(key_1, ctx) {
14563
+ function create_each_block$1(key_1, ctx) {
14564
14564
  let first;
14565
14565
  let itemlabelitem;
14566
14566
  let current;
14567
14567
 
14568
- itemlabelitem = new ItemLabelItem({
14568
+ itemlabelitem = new ItemLabelItem$1({
14569
14569
  props: {
14570
14570
  itemLabel: /*itemLabelItem*/ ctx[28],
14571
14571
  hooks: /*hooks*/ ctx[0]
@@ -14608,7 +14608,7 @@ function create_each_block(key_1, ctx) {
14608
14608
  };
14609
14609
  }
14610
14610
 
14611
- function create_fragment(ctx) {
14611
+ function create_fragment$2(ctx) {
14612
14612
  let div;
14613
14613
  let each_blocks = [];
14614
14614
  let each_1_lookup = new Map();
@@ -14618,9 +14618,9 @@ function create_fragment(ctx) {
14618
14618
  const get_key = ctx => /*itemLabelItem*/ ctx[28].id;
14619
14619
 
14620
14620
  for (let i = 0; i < each_value.length; i += 1) {
14621
- let child_ctx = get_each_context(ctx, each_value, i);
14621
+ let child_ctx = get_each_context$1(ctx, each_value, i);
14622
14622
  let key = get_key(child_ctx);
14623
- each_1_lookup.set(key, each_blocks[i] = create_each_block(key, child_ctx));
14623
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$1(key, child_ctx));
14624
14624
  }
14625
14625
 
14626
14626
  return {
@@ -14649,7 +14649,7 @@ function create_fragment(ctx) {
14649
14649
  if (dirty & /*renderItemLabels, hooks*/ 3) {
14650
14650
  each_value = /*renderItemLabels*/ ctx[1];
14651
14651
  internal.group_outros();
14652
- 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);
14652
+ 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$1, null, get_each_context$1);
14653
14653
  internal.check_outros();
14654
14654
  }
14655
14655
 
@@ -14686,9 +14686,9 @@ function create_fragment(ctx) {
14686
14686
  }
14687
14687
 
14688
14688
  let cssHeight = 26;
14689
- let basicWidth = 11;
14689
+ let basicWidth$1 = 11;
14690
14690
 
14691
- function instance($$self, $$props, $$invalidate) {
14691
+ function instance$2($$self, $$props, $$invalidate) {
14692
14692
  const { Raycaster, Vector3 } = THREE__namespace;
14693
14693
  let { five } = $$props;
14694
14694
  let { modelOcclusionEnable } = $$props;
@@ -14775,7 +14775,7 @@ function instance($$self, $$props, $$invalidate) {
14775
14775
  // 计算位置 & 可见性
14776
14776
  const newLabels = labels.map(label => {
14777
14777
  const cssOffset = getLabelCssOffset(five, label);
14778
- const curLabelWidth = label.name.length * basicWidth;
14778
+ const curLabelWidth = label.name.length * basicWidth$1;
14779
14779
  const strokeLength = getStrokeLength(label.modelPosition[1], displayStrategyType);
14780
14780
 
14781
14781
  // 是否加入碰撞检测
@@ -14902,15 +14902,15 @@ function instance($$self, $$props, $$invalidate) {
14902
14902
  ];
14903
14903
  }
14904
14904
 
14905
- class ItemLabelComponent extends internal.SvelteComponent {
14905
+ class ItemLabelComponent$1 extends internal.SvelteComponent {
14906
14906
  constructor(options) {
14907
14907
  super();
14908
14908
 
14909
14909
  internal.init(
14910
14910
  this,
14911
14911
  options,
14912
- instance,
14913
- create_fragment,
14912
+ instance$2,
14913
+ create_fragment$2,
14914
14914
  internal.safe_not_equal,
14915
14915
  {
14916
14916
  five: 5,
@@ -14920,7 +14920,7 @@ class ItemLabelComponent extends internal.SvelteComponent {
14920
14920
  hooks: 0,
14921
14921
  displayStrategyType: 9
14922
14922
  },
14923
- add_css
14923
+ add_css$2
14924
14924
  );
14925
14925
  }
14926
14926
  }
@@ -14994,7 +14994,7 @@ const ModelItemLabelPlugin = (five$1, params) => {
14994
14994
  }
14995
14995
  // 正常显示时,分为 app 存在和不存在两种情况,如果存在,传值,不存在则初始化并传值
14996
14996
  if (!pluginState.app) {
14997
- pluginState.app = new ItemLabelComponent({
14997
+ pluginState.app = new ItemLabelComponent$1({
14998
14998
  target: pluginState.container,
14999
14999
  props: {
15000
15000
  five: five$1,
@@ -15324,9 +15324,662 @@ const ModelTVVideoPlugin = (five, { videoElement }) => {
15324
15324
  return { enable, disable, load, dispose };
15325
15325
  };
15326
15326
 
15327
+ exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE = void 0;
15328
+ (function (ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE) {
15329
+ ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE["SMALL"] = "small";
15330
+ ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE["MIDLLE"] = "middle";
15331
+ ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE["LARGE"] = "large";
15332
+ ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE["EXTRA_LARGE"] = "x-large";
15333
+ })(exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE || (exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE = {}));
15334
+
15335
+ /* src/ItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.47.0 */
15336
+
15337
+ function add_css$1(target) {
15338
+ internal.append_styles(target, "svelte-1s5p8g", ".item-label-item.svelte-1s5p8g{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0}.item-label-item.visible.svelte-1s5p8g{opacity:1;-webkit-animation:svelte-1s5p8g-fadeIn .3s ease-in;animation:svelte-1s5p8g-fadeIn .3s ease-in}.item-label-item__text-wrap.svelte-1s5p8g{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;padding:0.625rem 1.04167rem 0.625rem 0.625rem;position:absolute;width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:24.63542rem;min-height:4.79167rem;pointer-events:none;background-image:linear-gradient(269deg, rgba(0,0,0,0.50) 0%, rgba(0,0,0,0.60) 49%, rgba(31,38,46,0.70) 100%);border:1.5px solid rgba(255, 255, 255, .65);border-radius:0.15625rem;color:white;transform:translate(-50%, 0);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;overflow:hidden}.item-label-item__text-wrap.visible.svelte-1s5p8g{pointer-events:all}.icon-wrap.svelte-1s5p8g{width:3.54167rem;height:100%;display:flex;justify-content:center;align-content:center}.icon.svelte-1s5p8g{width:3.54167rem;height:3.54167rem;background-repeat:no-repeat;background-size:contain;background-position:center}.item-label-text.svelte-1s5p8g{margin-left:0.625rem;padding-left:0.625rem;min-height:3.54167rem;height:auto;display:flex;flex-flow:column;justify-content:space-around;align-content:flex-start;border-left:solid rgba(255, 255, 255, .2) 1px;border-top:solid rgba(255, 255, 255, .2) 0;border-right:solid rgba(255, 255, 255, .2) 0;border-bottom:solid rgba(255, 255, 255, .2) 0;pointer-events:auto}.item-model.svelte-1s5p8g{white-space:nowrap;font-size:1.14583rem;font-weight:bold;line-height:1.5625rem}.item-name.svelte-1s5p8g{height:auto;word-wrap:break-word;word-break:break-all;font-size:1.04167rem;line-height:1.45833rem}.item-label-item__bar.svelte-1s5p8g{position:absolute;bottom:0;width:0.15625rem;background-image:linear-gradient(to bottom, white, rgba(255, 255, 255, 0));box-shadow:0 2px 0.41667rem 0 rgba(0,0,0,0.20);pointer-events:none}.item-label-item__bar.anchor.svelte-1s5p8g:after{content:'';position:absolute;bottom:0;width:1.25rem;height:1.25rem;background-image:url(\"//vrlab-public.ljcdn.com/common/file/web/67e7a198-28c9-47dc-879b-507bd3ae600c.png \");background-position:center;background-size:contain;transform:translate(-0.54688rem, 50%)}@-webkit-keyframes svelte-1s5p8g-fadeIn{from{opacity:0\n }to{opacity:1\n }}@keyframes svelte-1s5p8g-fadeIn{from{opacity:0\n }to{opacity:1\n }}");
15339
+ }
15340
+
15341
+ function create_fragment$1(ctx) {
15342
+ let div5;
15343
+ let div3;
15344
+ let div1;
15345
+ let div0;
15346
+ let div0_style_value;
15347
+ let t0;
15348
+ let div2;
15349
+ let span0;
15350
+ let t1_value = (/*itemLabel*/ ctx[0].code ?? /*itemLabel*/ ctx[0].id) + "";
15351
+ let t1;
15352
+ let t2;
15353
+ let span1;
15354
+ let t3_value = /*itemLabel*/ ctx[0].name + "";
15355
+ let t3;
15356
+ let div3_class_value;
15357
+ let t4;
15358
+ let div4;
15359
+ let div4_class_value;
15360
+ let div5_class_value;
15361
+ let mounted;
15362
+ let dispose;
15363
+
15364
+ return {
15365
+ c() {
15366
+ div5 = internal.element("div");
15367
+ div3 = internal.element("div");
15368
+ div1 = internal.element("div");
15369
+ div0 = internal.element("div");
15370
+ t0 = internal.space();
15371
+ div2 = internal.element("div");
15372
+ span0 = internal.element("span");
15373
+ t1 = internal.text(t1_value);
15374
+ t2 = internal.space();
15375
+ span1 = internal.element("span");
15376
+ t3 = internal.text(t3_value);
15377
+ t4 = internal.space();
15378
+ div4 = internal.element("div");
15379
+ internal.attr(div0, "class", "icon svelte-1s5p8g");
15380
+ internal.attr(div0, "style", div0_style_value = `background-image: url(${/*itemLabel*/ ctx[0].icon ?? defaultIcon})`);
15381
+ internal.attr(div1, "class", "icon-wrap svelte-1s5p8g");
15382
+ internal.attr(span0, "class", "item-model svelte-1s5p8g");
15383
+ internal.attr(span1, "class", "item-name svelte-1s5p8g");
15384
+ internal.attr(div2, "class", "item-label-text svelte-1s5p8g");
15385
+ internal.attr(div3, "class", div3_class_value = "" + (internal.null_to_empty(classNames__default["default"]("item-label-item__text-wrap", { visible: /*itemLabel*/ ctx[0].visible })) + " svelte-1s5p8g"));
15386
+ internal.set_style(div3, "bottom", `${/*itemLabel*/ ctx[0].strokeLength}px`);
15387
+ internal.attr(div4, "class", div4_class_value = "" + (internal.null_to_empty(classNames__default["default"]("item-label-item__bar", { anchor: /*anchorEnabled*/ ctx[1] })) + " svelte-1s5p8g"));
15388
+ internal.set_style(div4, "height", `${/*itemLabel*/ ctx[0].strokeLength}px`);
15389
+ internal.attr(div5, "class", div5_class_value = "" + (internal.null_to_empty(classNames__default["default"]("item-label-item", { visible: /*itemLabel*/ ctx[0].visible })) + " svelte-1s5p8g"));
15390
+ internal.set_style(div5, "z-index", /*itemLabel*/ ctx[0].zIndex, false);
15391
+ internal.set_style(div5, "transform", /*itemLabel*/ ctx[0].transform, false);
15392
+ },
15393
+ m(target, anchor) {
15394
+ internal.insert(target, div5, anchor);
15395
+ internal.append(div5, div3);
15396
+ internal.append(div3, div1);
15397
+ internal.append(div1, div0);
15398
+ internal.append(div3, t0);
15399
+ internal.append(div3, div2);
15400
+ internal.append(div2, span0);
15401
+ internal.append(span0, t1);
15402
+ internal.append(div2, t2);
15403
+ internal.append(div2, span1);
15404
+ internal.append(span1, t3);
15405
+ internal.append(div5, t4);
15406
+ internal.append(div5, div4);
15407
+
15408
+ if (!mounted) {
15409
+ dispose = internal.listen(div3, "click", /*onClick*/ ctx[2]);
15410
+ mounted = true;
15411
+ }
15412
+ },
15413
+ p(ctx, [dirty]) {
15414
+ if (dirty & /*itemLabel*/ 1 && div0_style_value !== (div0_style_value = `background-image: url(${/*itemLabel*/ ctx[0].icon ?? defaultIcon})`)) {
15415
+ internal.attr(div0, "style", div0_style_value);
15416
+ }
15417
+
15418
+ if (dirty & /*itemLabel*/ 1 && t1_value !== (t1_value = (/*itemLabel*/ ctx[0].code ?? /*itemLabel*/ ctx[0].id) + "")) internal.set_data(t1, t1_value);
15419
+ if (dirty & /*itemLabel*/ 1 && t3_value !== (t3_value = /*itemLabel*/ ctx[0].name + "")) internal.set_data(t3, t3_value);
15420
+
15421
+ if (dirty & /*itemLabel*/ 1 && div3_class_value !== (div3_class_value = "" + (internal.null_to_empty(classNames__default["default"]("item-label-item__text-wrap", { visible: /*itemLabel*/ ctx[0].visible })) + " svelte-1s5p8g"))) {
15422
+ internal.attr(div3, "class", div3_class_value);
15423
+ }
15424
+
15425
+ if (dirty & /*itemLabel*/ 1) {
15426
+ internal.set_style(div3, "bottom", `${/*itemLabel*/ ctx[0].strokeLength}px`);
15427
+ }
15428
+
15429
+ if (dirty & /*anchorEnabled*/ 2 && div4_class_value !== (div4_class_value = "" + (internal.null_to_empty(classNames__default["default"]("item-label-item__bar", { anchor: /*anchorEnabled*/ ctx[1] })) + " svelte-1s5p8g"))) {
15430
+ internal.attr(div4, "class", div4_class_value);
15431
+ }
15432
+
15433
+ if (dirty & /*itemLabel*/ 1) {
15434
+ internal.set_style(div4, "height", `${/*itemLabel*/ ctx[0].strokeLength}px`);
15435
+ }
15436
+
15437
+ if (dirty & /*itemLabel*/ 1 && div5_class_value !== (div5_class_value = "" + (internal.null_to_empty(classNames__default["default"]("item-label-item", { visible: /*itemLabel*/ ctx[0].visible })) + " svelte-1s5p8g"))) {
15438
+ internal.attr(div5, "class", div5_class_value);
15439
+ }
15440
+
15441
+ if (dirty & /*itemLabel*/ 1) {
15442
+ internal.set_style(div5, "z-index", /*itemLabel*/ ctx[0].zIndex, false);
15443
+ }
15444
+
15445
+ if (dirty & /*itemLabel*/ 1) {
15446
+ internal.set_style(div5, "transform", /*itemLabel*/ ctx[0].transform, false);
15447
+ }
15448
+ },
15449
+ i: internal.noop,
15450
+ o: internal.noop,
15451
+ d(detaching) {
15452
+ if (detaching) internal.detach(div5);
15453
+ mounted = false;
15454
+ dispose();
15455
+ }
15456
+ };
15457
+ }
15458
+
15459
+ const defaultIcon = '//vrlab-public.ljcdn.com/common/file/web/c8591aaa-e62b-4e31-8fed-671483ace37f.svg\n';
15460
+
15461
+ function instance$1($$self, $$props, $$invalidate) {
15462
+ let { itemLabel } = $$props;
15463
+ let { hooks } = $$props;
15464
+ let { anchorEnabled } = $$props;
15465
+
15466
+ function onClick() {
15467
+ hooks.emit('onLabelClick', itemLabel);
15468
+ }
15469
+
15470
+ $$self.$$set = $$props => {
15471
+ if ('itemLabel' in $$props) $$invalidate(0, itemLabel = $$props.itemLabel);
15472
+ if ('hooks' in $$props) $$invalidate(3, hooks = $$props.hooks);
15473
+ if ('anchorEnabled' in $$props) $$invalidate(1, anchorEnabled = $$props.anchorEnabled);
15474
+ };
15475
+
15476
+ return [itemLabel, anchorEnabled, onClick, hooks];
15477
+ }
15478
+
15479
+ class ItemLabelItem extends internal.SvelteComponent {
15480
+ constructor(options) {
15481
+ super();
15482
+ internal.init(this, options, instance$1, create_fragment$1, internal.safe_not_equal, { itemLabel: 0, hooks: 3, anchorEnabled: 1 }, add_css$1);
15483
+ }
15484
+ }
15485
+
15486
+ /* src/ItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.47.0 */
15487
+
15488
+ function add_css(target) {
15489
+ internal.append_styles(target, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
15490
+ }
15491
+
15492
+ function get_each_context(ctx, list, i) {
15493
+ const child_ctx = ctx.slice();
15494
+ child_ctx[28] = list[i];
15495
+ return child_ctx;
15496
+ }
15497
+
15498
+ // (163:1) {#each renderItemLabels as itemLabelItem (itemLabelItem.id)}
15499
+ function create_each_block(key_1, ctx) {
15500
+ let first;
15501
+ let itemlabelitem;
15502
+ let current;
15503
+
15504
+ itemlabelitem = new ItemLabelItem({
15505
+ props: {
15506
+ itemLabel: /*itemLabelItem*/ ctx[28],
15507
+ hooks: /*hooks*/ ctx[1],
15508
+ anchorEnabled: /*five*/ ctx[0].currentMode === five.Five.Mode.Panorama
15509
+ }
15510
+ });
15511
+
15512
+ return {
15513
+ key: key_1,
15514
+ first: null,
15515
+ c() {
15516
+ first = internal.empty();
15517
+ internal.create_component(itemlabelitem.$$.fragment);
15518
+ this.first = first;
15519
+ },
15520
+ m(target, anchor) {
15521
+ internal.insert(target, first, anchor);
15522
+ internal.mount_component(itemlabelitem, target, anchor);
15523
+ current = true;
15524
+ },
15525
+ p(new_ctx, dirty) {
15526
+ ctx = new_ctx;
15527
+ const itemlabelitem_changes = {};
15528
+ if (dirty & /*renderItemLabels*/ 4) itemlabelitem_changes.itemLabel = /*itemLabelItem*/ ctx[28];
15529
+ if (dirty & /*hooks*/ 2) itemlabelitem_changes.hooks = /*hooks*/ ctx[1];
15530
+ if (dirty & /*five*/ 1) itemlabelitem_changes.anchorEnabled = /*five*/ ctx[0].currentMode === five.Five.Mode.Panorama;
15531
+ itemlabelitem.$set(itemlabelitem_changes);
15532
+ },
15533
+ i(local) {
15534
+ if (current) return;
15535
+ internal.transition_in(itemlabelitem.$$.fragment, local);
15536
+ current = true;
15537
+ },
15538
+ o(local) {
15539
+ internal.transition_out(itemlabelitem.$$.fragment, local);
15540
+ current = false;
15541
+ },
15542
+ d(detaching) {
15543
+ if (detaching) internal.detach(first);
15544
+ internal.destroy_component(itemlabelitem, detaching);
15545
+ }
15546
+ };
15547
+ }
15548
+
15549
+ function create_fragment(ctx) {
15550
+ let div;
15551
+ let each_blocks = [];
15552
+ let each_1_lookup = new Map();
15553
+ let div_resize_listener;
15554
+ let current;
15555
+ let each_value = /*renderItemLabels*/ ctx[2];
15556
+ const get_key = ctx => /*itemLabelItem*/ ctx[28].id;
15557
+
15558
+ for (let i = 0; i < each_value.length; i += 1) {
15559
+ let child_ctx = get_each_context(ctx, each_value, i);
15560
+ let key = get_key(child_ctx);
15561
+ each_1_lookup.set(key, each_blocks[i] = create_each_block(key, child_ctx));
15562
+ }
15563
+
15564
+ return {
15565
+ c() {
15566
+ div = internal.element("div");
15567
+
15568
+ for (let i = 0; i < each_blocks.length; i += 1) {
15569
+ each_blocks[i].c();
15570
+ }
15571
+
15572
+ internal.attr(div, "class", "item-labels-container svelte-gk8s47");
15573
+ internal.add_render_callback(() => /*div_elementresize_handler*/ ctx[10].call(div));
15574
+ internal.set_style(div, "opacity", /*itemsVisible*/ ctx[5] ? 1 : 0, false);
15575
+ },
15576
+ m(target, anchor) {
15577
+ internal.insert(target, div, anchor);
15578
+
15579
+ for (let i = 0; i < each_blocks.length; i += 1) {
15580
+ each_blocks[i].m(div, null);
15581
+ }
15582
+
15583
+ div_resize_listener = internal.add_resize_listener(div, /*div_elementresize_handler*/ ctx[10].bind(div));
15584
+ current = true;
15585
+ },
15586
+ p(ctx, [dirty]) {
15587
+ if (dirty & /*renderItemLabels, hooks, five, Five*/ 7) {
15588
+ each_value = /*renderItemLabels*/ ctx[2];
15589
+ internal.group_outros();
15590
+ 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);
15591
+ internal.check_outros();
15592
+ }
15593
+
15594
+ if (dirty & /*itemsVisible*/ 32) {
15595
+ internal.set_style(div, "opacity", /*itemsVisible*/ ctx[5] ? 1 : 0, false);
15596
+ }
15597
+ },
15598
+ i(local) {
15599
+ if (current) return;
15600
+
15601
+ for (let i = 0; i < each_value.length; i += 1) {
15602
+ internal.transition_in(each_blocks[i]);
15603
+ }
15604
+
15605
+ current = true;
15606
+ },
15607
+ o(local) {
15608
+ for (let i = 0; i < each_blocks.length; i += 1) {
15609
+ internal.transition_out(each_blocks[i]);
15610
+ }
15611
+
15612
+ current = false;
15613
+ },
15614
+ d(detaching) {
15615
+ if (detaching) internal.detach(div);
15616
+
15617
+ for (let i = 0; i < each_blocks.length; i += 1) {
15618
+ each_blocks[i].d();
15619
+ }
15620
+
15621
+ div_resize_listener();
15622
+ }
15623
+ };
15624
+ }
15625
+ let basicWidth = 11;
15626
+
15627
+ function instance($$self, $$props, $$invalidate) {
15628
+ const { Raycaster, Vector3 } = THREE__namespace;
15629
+ let { five } = $$props;
15630
+ let { modelOcclusionEnable } = $$props;
15631
+ let { itemLabels } = $$props;
15632
+ let { wrapper } = $$props;
15633
+ let { hooks } = $$props;
15634
+ let { displayStrategyType } = $$props;
15635
+ let curItemLabels = null;
15636
+ let renderItemLabels = null;
15637
+ let wrapperSize = { width: 0, height: 0 };
15638
+ let containerWidth;
15639
+ let containerHeight;
15640
+
15641
+ // 计算重叠
15642
+ let cssOffsetLists = [];
15643
+
15644
+ // 动画过程中 itemsVisible 为 false
15645
+ let itemsVisible = true;
15646
+
15647
+ /**
15648
+ * 可见性策略:
15649
+ * 1、当前楼层(假设先不考虑多楼层)
15650
+ * 2、模型未被遮挡(一个 box 有没有被遮挡的计算? TODO)
15651
+ * */
15652
+ const getLabelVisible = (five, itemLabel) => {
15653
+ // 虚拟 VR 仅有一层,不考虑楼层信息
15654
+ const raycaster = new Raycaster();
15655
+
15656
+ const cameraPosition = five.camera.position.clone();
15657
+ const modelPosition = new Vector3(itemLabel.modelPosition[0], itemLabel.modelPosition[1], itemLabel.modelPosition[2]);
15658
+
15659
+ // 计算点到相机的位置
15660
+ const vectorDistance = modelPosition.distanceTo(cameraPosition);
15661
+
15662
+ raycaster.set(cameraPosition.clone(), modelPosition.clone().sub(cameraPosition).normalize());
15663
+ const [intersection] = five.model.intersectRaycaster(raycaster);
15664
+ return !(intersection && intersection.distance + 1 < vectorDistance);
15665
+ };
15666
+
15667
+ // cssOffset 获取
15668
+ const getLabelCssOffset = (five, itemLabel) => {
15669
+ const modelPosition = new Vector3(itemLabel.modelPosition[0], itemLabel.modelPosition[1], itemLabel.modelPosition[2]);
15670
+ const cssPosition = five.project2d(modelPosition);
15671
+
15672
+ const xOffset = cssPosition === null || cssPosition === void 0
15673
+ ? void 0
15674
+ : cssPosition.x;
15675
+
15676
+ const yOffset = cssPosition === null || cssPosition === void 0
15677
+ ? void 0
15678
+ : cssPosition.y;
15679
+
15680
+ return [xOffset, yOffset];
15681
+ };
15682
+
15683
+ const getLabelTransform = cssOffset => {
15684
+ return `translate(${cssOffset[0]}px, ${cssOffset[1]}px)`;
15685
+ };
15686
+
15687
+ function getStrokeLength(itemSpaceHeight, type) {
15688
+ switch (type) {
15689
+ case exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.SMALL:
15690
+ return Math.ceil(-27.78 * itemSpaceHeight + 85);
15691
+ case exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.MIDLLE:
15692
+ return Math.ceil(-38.9 * itemSpaceHeight + 130);
15693
+ case exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.LARGE:
15694
+ return Math.ceil(-44.44 * itemSpaceHeight + 140);
15695
+ case exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.EXTRA_LARGE:
15696
+ return Math.ceil(-92.59 * itemSpaceHeight + 300);
15697
+ }
15698
+ }
15699
+
15700
+ const getFormatedItemLabels = (five, labels) => {
15701
+ // 计算位置 & 可见性
15702
+ const newLabels = labels.map(label => {
15703
+ const cssOffset = getLabelCssOffset(five, label);
15704
+ label.name.length * basicWidth;
15705
+ const strokeLength = getStrokeLength(label.modelPosition[1], displayStrategyType);
15706
+
15707
+ // 是否加入碰撞检测
15708
+ const naturalVisible = modelOcclusionEnable
15709
+ ? getLabelVisible(five, label)
15710
+ : true;
15711
+
15712
+ const visible = naturalVisible;
15713
+
15714
+ // 关掉重叠计算
15715
+ // const visible = naturalVisible && !isOverlap([cssOffset[0], cssOffset[1] + strokeLength], curLabelWidth)
15716
+ if (!visible) return Object.assign(Object.assign({}, label), { visible });
15717
+
15718
+ cssOffsetLists.push(cssOffset);
15719
+
15720
+ // position
15721
+ const transform = getLabelTransform(cssOffset);
15722
+
15723
+ return Object.assign(Object.assign({}, label), { visible, transform, strokeLength });
15724
+ });
15725
+
15726
+ const sortedItemLabelItems = newLabels.filter(({ visible }) => visible).map(label => ({
15727
+ itemLabelItem: label,
15728
+ distance: new Vector3(label.modelPosition[0], label.modelPosition[1], label.modelPosition[2]).clone().distanceTo(five.camera.position)
15729
+ })).sort((a, b) => a.distance - b.distance);
15730
+
15731
+ return newLabels.map(label => {
15732
+ const sortIndex = sortedItemLabelItems.findIndex(item => item.itemLabelItem.id === label.id);
15733
+ if (sortIndex !== undefined) return Object.assign(Object.assign({}, label), { zIndex: sortIndex * 10 });
15734
+ return label;
15735
+ });
15736
+ };
15737
+
15738
+ const onItemLabelUpdate = () => {
15739
+ cssOffsetLists = [];
15740
+ $$invalidate(2, renderItemLabels = getFormatedItemLabels(five, renderItemLabels));
15741
+ };
15742
+
15743
+ svelte.beforeUpdate(() => {
15744
+ addDataUpdateListener();
15745
+ });
15746
+
15747
+ const handleCameraUpdateCallback = () => {
15748
+ $$invalidate(5, itemsVisible = false);
15749
+ handleCameraUpdate();
15750
+ };
15751
+
15752
+ svelte.onMount(() => {
15753
+ $$invalidate(2, renderItemLabels = itemLabels);
15754
+ curItemLabels = itemLabels;
15755
+ onItemLabelUpdate();
15756
+ addResizeListener();
15757
+ five.on('cameraUpdate', handleCameraUpdateCallback);
15758
+ });
15759
+
15760
+ const handleCameraUpdate = debounce(
15761
+ () => {
15762
+ $$invalidate(5, itemsVisible = true);
15763
+ onItemLabelUpdate();
15764
+ },
15765
+ 300
15766
+ );
15767
+
15768
+ const addResizeListener = () => {
15769
+ wrapperSize = {
15770
+ width: wrapper.clientWidth,
15771
+ height: wrapper.clientHeight
15772
+ };
15773
+
15774
+ resizeObserver.observe(wrapper);
15775
+ };
15776
+
15777
+ const addDataUpdateListener = () => {
15778
+ if (curItemLabels !== itemLabels) {
15779
+ $$invalidate(2, renderItemLabels = itemLabels);
15780
+ curItemLabels = itemLabels;
15781
+ onItemLabelUpdate();
15782
+ }
15783
+ };
15784
+
15785
+ const resizeObserver = new ResizeObserver(entries => {
15786
+ const entry = entries[0];
15787
+ const target = entry.target;
15788
+ const curWidth = target.clientWidth;
15789
+ const curHeight = target.clientHeight;
15790
+
15791
+ if (wrapperSize.width !== curWidth || wrapperSize.height !== curHeight) {
15792
+ wrapperSize = { width: curWidth, height: curHeight };
15793
+ onItemLabelUpdate();
15794
+ }
15795
+ });
15796
+
15797
+ svelte.onDestroy(() => {
15798
+ five.off('cameraUpdate', handleCameraUpdateCallback);
15799
+ resizeObserver.unobserve(wrapper);
15800
+ });
15801
+
15802
+ function div_elementresize_handler() {
15803
+ containerWidth = this.clientWidth;
15804
+ containerHeight = this.clientHeight;
15805
+ $$invalidate(3, containerWidth);
15806
+ $$invalidate(4, containerHeight);
15807
+ }
15808
+
15809
+ $$self.$$set = $$props => {
15810
+ if ('five' in $$props) $$invalidate(0, five = $$props.five);
15811
+ if ('modelOcclusionEnable' in $$props) $$invalidate(6, modelOcclusionEnable = $$props.modelOcclusionEnable);
15812
+ if ('itemLabels' in $$props) $$invalidate(7, itemLabels = $$props.itemLabels);
15813
+ if ('wrapper' in $$props) $$invalidate(8, wrapper = $$props.wrapper);
15814
+ if ('hooks' in $$props) $$invalidate(1, hooks = $$props.hooks);
15815
+ if ('displayStrategyType' in $$props) $$invalidate(9, displayStrategyType = $$props.displayStrategyType);
15816
+ };
15817
+
15818
+ return [
15819
+ five,
15820
+ hooks,
15821
+ renderItemLabels,
15822
+ containerWidth,
15823
+ containerHeight,
15824
+ itemsVisible,
15825
+ modelOcclusionEnable,
15826
+ itemLabels,
15827
+ wrapper,
15828
+ displayStrategyType,
15829
+ div_elementresize_handler
15830
+ ];
15831
+ }
15832
+
15833
+ class ItemLabelComponent extends internal.SvelteComponent {
15834
+ constructor(options) {
15835
+ super();
15836
+
15837
+ internal.init(
15838
+ this,
15839
+ options,
15840
+ instance,
15841
+ create_fragment,
15842
+ internal.safe_not_equal,
15843
+ {
15844
+ five: 0,
15845
+ modelOcclusionEnable: 6,
15846
+ itemLabels: 7,
15847
+ wrapper: 8,
15848
+ hooks: 1,
15849
+ displayStrategyType: 9
15850
+ },
15851
+ add_css
15852
+ );
15853
+ }
15854
+ }
15855
+
15856
+ /** @description 转成内部所需数据 */
15857
+ function parseItemLabelPluginData(data) {
15858
+ return data.item_labels.map(label => (Object.assign({ modelPosition: [label.position[0], label.position[1], label.position[2]] }, label)));
15859
+ }
15860
+
15861
+ const Plugin = (five$1, params) => {
15862
+ var _a, _b;
15863
+ const pluginState = {
15864
+ container: document.createElement('div'),
15865
+ data: null,
15866
+ enabled: true,
15867
+ fiveModeEnabled: true,
15868
+ itemLabels: [],
15869
+ wrapper: null,
15870
+ app: undefined,
15871
+ hooks: new five.Subscribe(),
15872
+ modelOcclusionEnable: (_a = params === null || params === void 0 ? void 0 : params.modelOcclusionEnable) !== null && _a !== void 0 ? _a : true,
15873
+ displayStrategyType: (_b = params === null || params === void 0 ? void 0 : params.displayStrategyType) !== null && _b !== void 0 ? _b : exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.SMALL,
15874
+ };
15875
+ pluginState.container.setAttribute('class', 'item-label-plugin-container');
15876
+ pluginState.container.style.cssText = `
15877
+ position: absolute;
15878
+ left: 0;
15879
+ top: 0;
15880
+ width: 100%;
15881
+ height: 100%;
15882
+ z-index: 5;
15883
+ `;
15884
+ pluginState.container.style.pointerEvents = 'none'; // 写到 cssText 里不生效
15885
+ const appendTo = (wrapper) => {
15886
+ pluginState.wrapper = wrapper;
15887
+ wrapper.appendChild(pluginState.container);
15888
+ render();
15889
+ return true;
15890
+ };
15891
+ const load = (data) => {
15892
+ pluginState.itemLabels = parseItemLabelPluginData(data);
15893
+ render();
15894
+ };
15895
+ const enable = () => {
15896
+ if (pluginState.enabled)
15897
+ return true;
15898
+ pluginState.enabled = true;
15899
+ render();
15900
+ return true;
15901
+ };
15902
+ const disable = () => {
15903
+ if (!pluginState.enabled)
15904
+ return true;
15905
+ pluginState.enabled = false;
15906
+ render();
15907
+ return true;
15908
+ };
15909
+ const dispose = () => {
15910
+ removeListener4Five();
15911
+ pluginState.container.remove();
15912
+ };
15913
+ const render = () => {
15914
+ var _a;
15915
+ if (!pluginState.wrapper)
15916
+ return;
15917
+ // 只要不可展示,销毁容器
15918
+ if (!pluginState.enabled || !pluginState.fiveModeEnabled) {
15919
+ (_a = pluginState.app) === null || _a === void 0 ? void 0 : _a.$destroy();
15920
+ pluginState.app = undefined;
15921
+ return;
15922
+ }
15923
+ // 正常显示时,分为 app 存在和不存在两种情况,如果存在,传值,不存在则初始化并传值
15924
+ if (!pluginState.app) {
15925
+ pluginState.app = new ItemLabelComponent({
15926
+ target: pluginState.container,
15927
+ props: {
15928
+ five: five$1,
15929
+ modelOcclusionEnable: pluginState.modelOcclusionEnable,
15930
+ itemLabels: pluginState.itemLabels,
15931
+ wrapper: pluginState.wrapper,
15932
+ hooks: pluginState.hooks,
15933
+ displayStrategyType: pluginState.displayStrategyType
15934
+ }
15935
+ });
15936
+ }
15937
+ else {
15938
+ pluginState.app.$set({
15939
+ five: five$1,
15940
+ itemLabels: pluginState.itemLabels
15941
+ });
15942
+ }
15943
+ };
15944
+ // 添加 five 监听
15945
+ const addListener4Five = () => {
15946
+ five$1.on('modeChange', onFiveModeChange);
15947
+ five$1.once('dispose', dispose);
15948
+ };
15949
+ // 取消 five 监听
15950
+ const removeListener4Five = () => {
15951
+ five$1.off('modeChange', onFiveModeChange);
15952
+ };
15953
+ const onFiveModeChange = (mode) => {
15954
+ if (!pluginState.enabled)
15955
+ return;
15956
+ pluginState.fiveModeEnabled = false;
15957
+ render();
15958
+ five$1.once('initAnimationEnded', () => {
15959
+ pluginState.fiveModeEnabled = true;
15960
+ render();
15961
+ });
15962
+ };
15963
+ addListener4Five();
15964
+ return {
15965
+ appendTo,
15966
+ load,
15967
+ enable,
15968
+ disable,
15969
+ dispose,
15970
+ hooks: pluginState.hooks
15971
+ };
15972
+ };
15973
+
15974
+ const itemLabelPluginServerParams = {
15975
+ name: 'ItemLabelPlugin',
15976
+ version: 0,
15977
+ };
15978
+
15327
15979
  exports.CSS3DRenderPlugin = CSS3DRenderPlugin;
15328
15980
  exports.CameraMovementPlugin = CameraMovementPlugin;
15329
15981
  exports.FLOOR_TYPE_MAP = FLOOR_TYPE_MAP;
15982
+ exports.ItemLabelPlugin = Plugin;
15330
15983
  exports.ModelChassisCompassPlugin = ModelChassisCompassPlugin;
15331
15984
  exports.ModelEntryDoorGuidePlugin = ModelEntryDoorGuidePlugin;
15332
15985
  exports.ModelFloorplanPlugin = ModelFloorplanPlugin;
@@ -15343,6 +15996,7 @@ exports.PanoSpatialTagPlugin = PanoSpatialTagPlugin;
15343
15996
  exports.ROOM_FETILE_TYPE_MAP = ROOM_FETILE_TYPE_MAP;
15344
15997
  exports.ROOM_TYPE_MAP = ROOM_TYPE_MAP;
15345
15998
  exports.TopviewFloorplanPlugin = TopviewFloorplanPlugin;
15999
+ exports.itemLabelPluginServerParams = itemLabelPluginServerParams;
15346
16000
  exports.modelItemLabelPluginServerParams = modelItemLabelPluginServerParams;
15347
16001
  exports.modelRoomLabelPluginServerParams = modelRoomLabelPluginServerParams;
15348
16002
  exports.panoCompassPluginServerParams = panoCompassPluginServerParams;