@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.umd.js CHANGED
@@ -478,11 +478,11 @@
478
478
 
479
479
  /* src/ModelRoomLabelPlugin/RoomLabelItem.svelte generated by Svelte v3.47.0 */
480
480
 
481
- function add_css$m(target) {
481
+ function add_css$o(target) {
482
482
  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}");
483
483
  }
484
484
 
485
- function create_fragment$q(ctx) {
485
+ function create_fragment$s(ctx) {
486
486
  let div1;
487
487
  let span;
488
488
  let t0_value = /*roomLabel*/ ctx[0].name + "";
@@ -549,7 +549,7 @@
549
549
  };
550
550
  }
551
551
 
552
- function instance$q($$self, $$props, $$invalidate) {
552
+ function instance$s($$self, $$props, $$invalidate) {
553
553
  let { five } = $$props;
554
554
  let { roomLabel } = $$props;
555
555
 
@@ -572,7 +572,7 @@
572
572
  class RoomLabelItem extends internal.SvelteComponent {
573
573
  constructor(options) {
574
574
  super();
575
- internal.init(this, options, instance$q, create_fragment$q, internal.safe_not_equal, { five: 2, roomLabel: 0 }, add_css$m);
575
+ internal.init(this, options, instance$s, create_fragment$s, internal.safe_not_equal, { five: 2, roomLabel: 0 }, add_css$o);
576
576
  }
577
577
  }
578
578
 
@@ -580,18 +580,18 @@
580
580
 
581
581
  const { Map: Map_1 } = internal.globals;
582
582
 
583
- function add_css$l(target) {
583
+ function add_css$n(target) {
584
584
  internal.append_styles(target, "svelte-9eg4zi", ".room-labels-container.svelte-9eg4zi{width:100%;height:100%;position:relative;color:#fff}");
585
585
  }
586
586
 
587
- function get_each_context$9(ctx, list, i) {
587
+ function get_each_context$a(ctx, list, i) {
588
588
  const child_ctx = ctx.slice();
589
589
  child_ctx[12] = list[i];
590
590
  return child_ctx;
591
591
  }
592
592
 
593
593
  // (82:2) {#each roomLabels as roomLableItem (roomLableItem.id)}
594
- function create_each_block$9(key_1, ctx) {
594
+ function create_each_block$a(key_1, ctx) {
595
595
  let first;
596
596
  let roomlabelitem;
597
597
  let current;
@@ -639,7 +639,7 @@
639
639
  };
640
640
  }
641
641
 
642
- function create_fragment$p(ctx) {
642
+ function create_fragment$r(ctx) {
643
643
  let div;
644
644
  let each_blocks = [];
645
645
  let each_1_lookup = new Map_1();
@@ -649,9 +649,9 @@
649
649
  const get_key = ctx => /*roomLableItem*/ ctx[12].id;
650
650
 
651
651
  for (let i = 0; i < each_value.length; i += 1) {
652
- let child_ctx = get_each_context$9(ctx, each_value, i);
652
+ let child_ctx = get_each_context$a(ctx, each_value, i);
653
653
  let key = get_key(child_ctx);
654
- each_1_lookup.set(key, each_blocks[i] = create_each_block$9(key, child_ctx));
654
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$a(key, child_ctx));
655
655
  }
656
656
 
657
657
  return {
@@ -679,7 +679,7 @@
679
679
  if (dirty & /*roomLabels, five*/ 3) {
680
680
  each_value = /*roomLabels*/ ctx[0];
681
681
  internal.group_outros();
682
- 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);
682
+ 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);
683
683
  internal.check_outros();
684
684
  }
685
685
  },
@@ -711,7 +711,7 @@
711
711
  };
712
712
  }
713
713
 
714
- function instance$p($$self, $$props, $$invalidate) {
714
+ function instance$r($$self, $$props, $$invalidate) {
715
715
  let rendererSize;
716
716
  let { five } = $$props;
717
717
  let { roomLabels } = $$props;
@@ -836,7 +836,7 @@
836
836
  class RoomLabelItems extends internal.SvelteComponent {
837
837
  constructor(options) {
838
838
  super();
839
- internal.init(this, options, instance$p, create_fragment$p, internal.safe_not_equal, { five: 1, roomLabels: 0 }, add_css$l);
839
+ internal.init(this, options, instance$r, create_fragment$r, internal.safe_not_equal, { five: 1, roomLabels: 0 }, add_css$n);
840
840
  }
841
841
  }
842
842
 
@@ -1235,11 +1235,11 @@
1235
1235
 
1236
1236
  /* src/floorplan/Components/Camera.svelte generated by Svelte v3.47.0 */
1237
1237
 
1238
- function add_css$k(target) {
1238
+ function add_css$m(target) {
1239
1239
  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%}");
1240
1240
  }
1241
1241
 
1242
- function create_fragment$o(ctx) {
1242
+ function create_fragment$q(ctx) {
1243
1243
  let div1;
1244
1244
  let div0;
1245
1245
 
@@ -1276,7 +1276,7 @@
1276
1276
  };
1277
1277
  }
1278
1278
 
1279
- function instance$o($$self, $$props, $$invalidate) {
1279
+ function instance$q($$self, $$props, $$invalidate) {
1280
1280
  let { panoIndex } = $$props;
1281
1281
  let { floorplanData } = $$props;
1282
1282
  let { lastPanoramaLongitude } = $$props;
@@ -1322,8 +1322,8 @@
1322
1322
  internal.init(
1323
1323
  this,
1324
1324
  options,
1325
- instance$o,
1326
- create_fragment$o,
1325
+ instance$q,
1326
+ create_fragment$q,
1327
1327
  internal.safe_not_equal,
1328
1328
  {
1329
1329
  panoIndex: 5,
@@ -1331,7 +1331,7 @@
1331
1331
  lastPanoramaLongitude: 7,
1332
1332
  cameraImageUrl: 0
1333
1333
  },
1334
- add_css$k
1334
+ add_css$m
1335
1335
  );
1336
1336
  }
1337
1337
  }
@@ -1340,7 +1340,7 @@
1340
1340
 
1341
1341
  /* src/floorplan/Components/Compass.svelte generated by Svelte v3.47.0 */
1342
1342
 
1343
- function add_css$j(target) {
1343
+ function add_css$l(target) {
1344
1344
  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}");
1345
1345
  }
1346
1346
 
@@ -1381,7 +1381,7 @@
1381
1381
  };
1382
1382
  }
1383
1383
 
1384
- function create_fragment$n(ctx) {
1384
+ function create_fragment$p(ctx) {
1385
1385
  let if_block_anchor;
1386
1386
  let if_block = /*northRad*/ ctx[1] && create_if_block$8(ctx);
1387
1387
 
@@ -1410,7 +1410,7 @@
1410
1410
  return rad / Math.PI * 180;
1411
1411
  }
1412
1412
 
1413
- function instance$n($$self, $$props, $$invalidate) {
1413
+ function instance$p($$self, $$props, $$invalidate) {
1414
1414
  var _a;
1415
1415
  let { floorplanData } = $$props;
1416
1416
  let { northDesc } = $$props;
@@ -1433,17 +1433,17 @@
1433
1433
  class Compass extends internal.SvelteComponent {
1434
1434
  constructor(options) {
1435
1435
  super();
1436
- internal.init(this, options, instance$n, create_fragment$n, internal.safe_not_equal, { floorplanData: 3, northDesc: 0 }, add_css$j);
1436
+ internal.init(this, options, instance$p, create_fragment$p, internal.safe_not_equal, { floorplanData: 3, northDesc: 0 }, add_css$l);
1437
1437
  }
1438
1438
  }
1439
1439
 
1440
1440
  /* src/floorplan/Components/Normalmage.svelte generated by Svelte v3.47.0 */
1441
1441
 
1442
- function add_css$i(target) {
1442
+ function add_css$k(target) {
1443
1443
  internal.append_styles(target, "svelte-1gfoniz", "img.svelte-1gfoniz{width:100%;height:100%}");
1444
1444
  }
1445
1445
 
1446
- function create_fragment$m(ctx) {
1446
+ function create_fragment$o(ctx) {
1447
1447
  let img;
1448
1448
  let img_src_value;
1449
1449
 
@@ -1470,7 +1470,7 @@
1470
1470
  };
1471
1471
  }
1472
1472
 
1473
- function instance$m($$self, $$props, $$invalidate) {
1473
+ function instance$o($$self, $$props, $$invalidate) {
1474
1474
  let { url } = $$props;
1475
1475
 
1476
1476
  $$self.$$set = $$props => {
@@ -1483,17 +1483,17 @@
1483
1483
  class Normalmage extends internal.SvelteComponent {
1484
1484
  constructor(options) {
1485
1485
  super();
1486
- internal.init(this, options, instance$m, create_fragment$m, internal.safe_not_equal, { url: 0 }, add_css$i);
1486
+ internal.init(this, options, instance$o, create_fragment$o, internal.safe_not_equal, { url: 0 }, add_css$k);
1487
1487
  }
1488
1488
  }
1489
1489
 
1490
1490
  /* src/floorplan/Components/SvgImage.svelte generated by Svelte v3.47.0 */
1491
1491
 
1492
- function add_css$h(target) {
1492
+ function add_css$j(target) {
1493
1493
  internal.append_styles(target, "svelte-ub47ya", ".floorplan-plugin__base-image.svelte-ub47ya{width:100%;height:100%}");
1494
1494
  }
1495
1495
 
1496
- function create_fragment$l(ctx) {
1496
+ function create_fragment$n(ctx) {
1497
1497
  let div;
1498
1498
  let html_tag;
1499
1499
  let t;
@@ -1526,7 +1526,7 @@
1526
1526
  };
1527
1527
  }
1528
1528
 
1529
- function instance$l($$self, $$props, $$invalidate) {
1529
+ function instance$n($$self, $$props, $$invalidate) {
1530
1530
  let { content } = $$props;
1531
1531
 
1532
1532
  const svgStyle = `
@@ -1550,13 +1550,13 @@
1550
1550
  class SvgImage extends internal.SvelteComponent {
1551
1551
  constructor(options) {
1552
1552
  super();
1553
- internal.init(this, options, instance$l, create_fragment$l, internal.safe_not_equal, { content: 0 }, add_css$h);
1553
+ internal.init(this, options, instance$n, create_fragment$n, internal.safe_not_equal, { content: 0 }, add_css$j);
1554
1554
  }
1555
1555
  }
1556
1556
 
1557
1557
  /* src/floorplan/Components/BaseImage.svelte generated by Svelte v3.47.0 */
1558
1558
 
1559
- function add_css$g(target) {
1559
+ function add_css$i(target) {
1560
1560
  internal.append_styles(target, "svelte-ozpg4a", ".floorplan-plugin__base-image.svelte-ozpg4a{position:absolute;z-index:10;width:100%;height:100%;pointer-events:none}");
1561
1561
  }
1562
1562
 
@@ -1631,7 +1631,7 @@
1631
1631
  };
1632
1632
  }
1633
1633
 
1634
- function create_fragment$k(ctx) {
1634
+ function create_fragment$m(ctx) {
1635
1635
  let div;
1636
1636
  let current_block_type_index;
1637
1637
  let if_block;
@@ -1719,7 +1719,7 @@
1719
1719
  };
1720
1720
  }
1721
1721
 
1722
- function instance$k($$self, $$props, $$invalidate) {
1722
+ function instance$m($$self, $$props, $$invalidate) {
1723
1723
  let imageData;
1724
1724
  let svgContent;
1725
1725
  var _a, _b;
@@ -1751,13 +1751,13 @@
1751
1751
  class BaseImage extends internal.SvelteComponent {
1752
1752
  constructor(options) {
1753
1753
  super();
1754
- internal.init(this, options, instance$k, create_fragment$k, internal.safe_not_equal, { floorIndex: 2, floorplanData: 3 }, add_css$g);
1754
+ internal.init(this, options, instance$m, create_fragment$m, internal.safe_not_equal, { floorIndex: 2, floorplanData: 3 }, add_css$i);
1755
1755
  }
1756
1756
  }
1757
1757
 
1758
1758
  /* src/floorplan/Components/RoomLabels/RoomLabel.svelte generated by Svelte v3.47.0 */
1759
1759
 
1760
- function add_css$f(target) {
1760
+ function add_css$h(target) {
1761
1761
  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}");
1762
1762
  }
1763
1763
 
@@ -1822,7 +1822,7 @@
1822
1822
  };
1823
1823
  }
1824
1824
 
1825
- function create_fragment$j(ctx) {
1825
+ function create_fragment$l(ctx) {
1826
1826
  let div;
1827
1827
 
1828
1828
  function select_block_type(ctx, dirty) {
@@ -1871,7 +1871,7 @@
1871
1871
  };
1872
1872
  }
1873
1873
 
1874
- function instance$j($$self, $$props, $$invalidate) {
1874
+ function instance$l($$self, $$props, $$invalidate) {
1875
1875
  let userConfigElement;
1876
1876
  let { room } = $$props;
1877
1877
  let { getLabelElement } = $$props;
@@ -1905,17 +1905,17 @@
1905
1905
  class RoomLabel extends internal.SvelteComponent {
1906
1906
  constructor(options) {
1907
1907
  super();
1908
- internal.init(this, options, instance$j, create_fragment$j, internal.safe_not_equal, { room: 0, getLabelElement: 1 }, add_css$f);
1908
+ internal.init(this, options, instance$l, create_fragment$l, internal.safe_not_equal, { room: 0, getLabelElement: 1 }, add_css$h);
1909
1909
  }
1910
1910
  }
1911
1911
 
1912
1912
  /* src/floorplan/Components/RoomLabels/RoomLabels.svelte generated by Svelte v3.47.0 */
1913
1913
 
1914
- function add_css$e(target) {
1914
+ function add_css$g(target) {
1915
1915
  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}");
1916
1916
  }
1917
1917
 
1918
- function get_each_context$8(ctx, list, i) {
1918
+ function get_each_context$9(ctx, list, i) {
1919
1919
  const child_ctx = ctx.slice();
1920
1920
  child_ctx[4] = list[i];
1921
1921
  return child_ctx;
@@ -1931,9 +1931,9 @@
1931
1931
  const get_key = ctx => /*room*/ ctx[4].id;
1932
1932
 
1933
1933
  for (let i = 0; i < each_value.length; i += 1) {
1934
- let child_ctx = get_each_context$8(ctx, each_value, i);
1934
+ let child_ctx = get_each_context$9(ctx, each_value, i);
1935
1935
  let key = get_key(child_ctx);
1936
- each_1_lookup.set(key, each_blocks[i] = create_each_block$8(key, child_ctx));
1936
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$9(key, child_ctx));
1937
1937
  }
1938
1938
 
1939
1939
  return {
@@ -1959,7 +1959,7 @@
1959
1959
  if (dirty & /*rooms, getLabelElement*/ 3) {
1960
1960
  each_value = /*rooms*/ ctx[1];
1961
1961
  internal.group_outros();
1962
- 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);
1962
+ 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);
1963
1963
  internal.check_outros();
1964
1964
  }
1965
1965
  },
@@ -1990,7 +1990,7 @@
1990
1990
  }
1991
1991
 
1992
1992
  // (10:4) {#each rooms as room (room.id)}
1993
- function create_each_block$8(key_1, ctx) {
1993
+ function create_each_block$9(key_1, ctx) {
1994
1994
  let first;
1995
1995
  let roomlabel;
1996
1996
  let current;
@@ -2053,7 +2053,7 @@
2053
2053
  };
2054
2054
  }
2055
2055
 
2056
- function create_fragment$i(ctx) {
2056
+ function create_fragment$k(ctx) {
2057
2057
  let if_block_anchor;
2058
2058
  let current;
2059
2059
  let if_block = /*rooms*/ ctx[1] && create_if_block$5(ctx);
@@ -2108,7 +2108,7 @@
2108
2108
  };
2109
2109
  }
2110
2110
 
2111
- function instance$i($$self, $$props, $$invalidate) {
2111
+ function instance$k($$self, $$props, $$invalidate) {
2112
2112
  let rooms;
2113
2113
  let { floorIndex } = $$props;
2114
2114
  let { floorplanData } = $$props;
@@ -2136,26 +2136,26 @@
2136
2136
  internal.init(
2137
2137
  this,
2138
2138
  options,
2139
- instance$i,
2140
- create_fragment$i,
2139
+ instance$k,
2140
+ create_fragment$k,
2141
2141
  internal.safe_not_equal,
2142
2142
  {
2143
2143
  floorIndex: 2,
2144
2144
  floorplanData: 3,
2145
2145
  getLabelElement: 0
2146
2146
  },
2147
- add_css$e
2147
+ add_css$g
2148
2148
  );
2149
2149
  }
2150
2150
  }
2151
2151
 
2152
2152
  /* src/floorplan/Components/RuleLabels/RuleItem.svelte generated by Svelte v3.47.0 */
2153
2153
 
2154
- function add_css$d(target) {
2154
+ function add_css$f(target) {
2155
2155
  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}");
2156
2156
  }
2157
2157
 
2158
- function get_each_context$7(ctx, list, i) {
2158
+ function get_each_context$8(ctx, list, i) {
2159
2159
  const child_ctx = ctx.slice();
2160
2160
  child_ctx[10] = list[i];
2161
2161
  child_ctx[12] = i;
@@ -2190,7 +2190,7 @@
2190
2190
  }
2191
2191
 
2192
2192
  // (62:4) {#each rulerTexts as textItem, textItemIndex (textItemIndex)}
2193
- function create_each_block$7(key_1, ctx) {
2193
+ function create_each_block$8(key_1, ctx) {
2194
2194
  let div1;
2195
2195
  let div0;
2196
2196
  let t0_value = /*textItem*/ ctx[10].distance + "";
@@ -2227,7 +2227,7 @@
2227
2227
  };
2228
2228
  }
2229
2229
 
2230
- function create_fragment$h(ctx) {
2230
+ function create_fragment$j(ctx) {
2231
2231
  let div3;
2232
2232
  let div0;
2233
2233
  let t0;
@@ -2248,9 +2248,9 @@
2248
2248
  const get_key = ctx => /*textItemIndex*/ ctx[12];
2249
2249
 
2250
2250
  for (let i = 0; i < each_value.length; i += 1) {
2251
- let child_ctx = get_each_context$7(ctx, each_value, i);
2251
+ let child_ctx = get_each_context$8(ctx, each_value, i);
2252
2252
  let key = get_key(child_ctx);
2253
- each1_lookup.set(key, each_blocks[i] = create_each_block$7(key, child_ctx));
2253
+ each1_lookup.set(key, each_blocks[i] = create_each_block$8(key, child_ctx));
2254
2254
  }
2255
2255
 
2256
2256
  return {
@@ -2323,7 +2323,7 @@
2323
2323
 
2324
2324
  if (dirty & /*rulerTexts, isRow*/ 10) {
2325
2325
  each_value = /*rulerTexts*/ ctx[3];
2326
- 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);
2326
+ 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);
2327
2327
  }
2328
2328
 
2329
2329
  if (dirty & /*type*/ 1 && div3_class_value !== (div3_class_value = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + /*type*/ ctx[0] + " svelte-xt7p1v")) {
@@ -2350,7 +2350,7 @@
2350
2350
  const padding$1 = 1000;
2351
2351
  const exteriorWallOffset$1 = 180;
2352
2352
 
2353
- function instance$h($$self, $$props, $$invalidate) {
2353
+ function instance$j($$self, $$props, $$invalidate) {
2354
2354
  let { type } = $$props;
2355
2355
  let { data } = $$props;
2356
2356
  let { bounding } = $$props;
@@ -2409,17 +2409,17 @@
2409
2409
  class RuleItem extends internal.SvelteComponent {
2410
2410
  constructor(options) {
2411
2411
  super();
2412
- internal.init(this, options, instance$h, create_fragment$h, internal.safe_not_equal, { type: 0, data: 4, bounding: 5 }, add_css$d);
2412
+ internal.init(this, options, instance$j, create_fragment$j, internal.safe_not_equal, { type: 0, data: 4, bounding: 5 }, add_css$f);
2413
2413
  }
2414
2414
  }
2415
2415
 
2416
2416
  /* src/floorplan/Components/RuleLabels/RuleLabels.svelte generated by Svelte v3.47.0 */
2417
2417
 
2418
- function add_css$c(target) {
2418
+ function add_css$e(target) {
2419
2419
  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}");
2420
2420
  }
2421
2421
 
2422
- function get_each_context$6(ctx, list, i) {
2422
+ function get_each_context$7(ctx, list, i) {
2423
2423
  const child_ctx = ctx.slice();
2424
2424
  child_ctx[12] = list[i][0];
2425
2425
  child_ctx[13] = list[i][1];
@@ -2427,7 +2427,7 @@
2427
2427
  }
2428
2428
 
2429
2429
  // (19:2) {#each ruleLabelArray as [type, data] (type)}
2430
- function create_each_block$6(key_1, ctx) {
2430
+ function create_each_block$7(key_1, ctx) {
2431
2431
  let first;
2432
2432
  let ruleitem;
2433
2433
  let current;
@@ -2492,7 +2492,7 @@
2492
2492
  };
2493
2493
  }
2494
2494
 
2495
- function create_fragment$g(ctx) {
2495
+ function create_fragment$i(ctx) {
2496
2496
  let div;
2497
2497
  let each_blocks = [];
2498
2498
  let each_1_lookup = new Map();
@@ -2501,9 +2501,9 @@
2501
2501
  const get_key = ctx => /*type*/ ctx[12];
2502
2502
 
2503
2503
  for (let i = 0; i < each_value.length; i += 1) {
2504
- let child_ctx = get_each_context$6(ctx, each_value, i);
2504
+ let child_ctx = get_each_context$7(ctx, each_value, i);
2505
2505
  let key = get_key(child_ctx);
2506
- each_1_lookup.set(key, each_blocks[i] = create_each_block$6(key, child_ctx));
2506
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$7(key, child_ctx));
2507
2507
  }
2508
2508
 
2509
2509
  return {
@@ -2531,7 +2531,7 @@
2531
2531
  if (dirty & /*ruleLabelArray, bounding*/ 9) {
2532
2532
  each_value = /*ruleLabelArray*/ ctx[3];
2533
2533
  internal.group_outros();
2534
- 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);
2534
+ 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);
2535
2535
  internal.check_outros();
2536
2536
  }
2537
2537
 
@@ -2572,7 +2572,7 @@
2572
2572
  const padding = 1000;
2573
2573
  const exteriorWallOffset = 180;
2574
2574
 
2575
- function instance$g($$self, $$props, $$invalidate) {
2575
+ function instance$i($$self, $$props, $$invalidate) {
2576
2576
  let bounding;
2577
2577
  let ruleLabelData;
2578
2578
  let ruleLabelDataKeys;
@@ -2652,13 +2652,13 @@
2652
2652
  class RuleLabels extends internal.SvelteComponent {
2653
2653
  constructor(options) {
2654
2654
  super();
2655
- internal.init(this, options, instance$g, create_fragment$g, internal.safe_not_equal, { floorIndex: 4, floorplanData: 5 }, add_css$c);
2655
+ internal.init(this, options, instance$i, create_fragment$i, internal.safe_not_equal, { floorIndex: 4, floorplanData: 5 }, add_css$e);
2656
2656
  }
2657
2657
  }
2658
2658
 
2659
2659
  /* src/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte generated by Svelte v3.47.0 */
2660
2660
 
2661
- function create_fragment$f(ctx) {
2661
+ function create_fragment$h(ctx) {
2662
2662
  let path_1;
2663
2663
 
2664
2664
  return {
@@ -2683,7 +2683,7 @@
2683
2683
  };
2684
2684
  }
2685
2685
 
2686
- function instance$f($$self, $$props, $$invalidate) {
2686
+ function instance$h($$self, $$props, $$invalidate) {
2687
2687
  let d;
2688
2688
  let { path } = $$props;
2689
2689
 
@@ -2703,13 +2703,13 @@
2703
2703
  class RoomMaterial_0 extends internal.SvelteComponent {
2704
2704
  constructor(options) {
2705
2705
  super();
2706
- internal.init(this, options, instance$f, create_fragment$f, internal.safe_not_equal, { path: 1 });
2706
+ internal.init(this, options, instance$h, create_fragment$h, internal.safe_not_equal, { path: 1 });
2707
2707
  }
2708
2708
  }
2709
2709
 
2710
2710
  /* src/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte generated by Svelte v3.47.0 */
2711
2711
 
2712
- function create_fragment$e(ctx) {
2712
+ function create_fragment$g(ctx) {
2713
2713
  let defs;
2714
2714
  let pattern;
2715
2715
  let rect;
@@ -2769,7 +2769,7 @@
2769
2769
 
2770
2770
  const halfWidth = 6;
2771
2771
 
2772
- function instance$e($$self, $$props, $$invalidate) {
2772
+ function instance$g($$self, $$props, $$invalidate) {
2773
2773
  let d;
2774
2774
  let { path } = $$props;
2775
2775
  const width = halfWidth * 2;
@@ -2791,13 +2791,13 @@
2791
2791
  class RoomMaterial_1 extends internal.SvelteComponent {
2792
2792
  constructor(options) {
2793
2793
  super();
2794
- internal.init(this, options, instance$e, create_fragment$e, internal.safe_not_equal, { path: 3 });
2794
+ internal.init(this, options, instance$g, create_fragment$g, internal.safe_not_equal, { path: 3 });
2795
2795
  }
2796
2796
  }
2797
2797
 
2798
2798
  /* src/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte generated by Svelte v3.47.0 */
2799
2799
 
2800
- function create_fragment$d(ctx) {
2800
+ function create_fragment$f(ctx) {
2801
2801
  let defs;
2802
2802
  let pattern0;
2803
2803
  let rect0;
@@ -2896,7 +2896,7 @@
2896
2896
  };
2897
2897
  }
2898
2898
 
2899
- function instance$d($$self, $$props, $$invalidate) {
2899
+ function instance$f($$self, $$props, $$invalidate) {
2900
2900
  let d;
2901
2901
  let { path } = $$props;
2902
2902
 
@@ -2916,17 +2916,17 @@
2916
2916
  class RoomMaterial_2 extends internal.SvelteComponent {
2917
2917
  constructor(options) {
2918
2918
  super();
2919
- internal.init(this, options, instance$d, create_fragment$d, internal.safe_not_equal, { path: 1 });
2919
+ internal.init(this, options, instance$f, create_fragment$f, internal.safe_not_equal, { path: 1 });
2920
2920
  }
2921
2921
  }
2922
2922
 
2923
2923
  /* src/floorplan/Components/RoomMaterials/RoomMaterial.svelte generated by Svelte v3.47.0 */
2924
2924
 
2925
- function add_css$b(target) {
2925
+ function add_css$d(target) {
2926
2926
  internal.append_styles(target, "svelte-1d4xj70", "svg.svelte-1d4xj70{position:absolute;width:100%;height:100%;overflow:visible}");
2927
2927
  }
2928
2928
 
2929
- function get_each_context$5(ctx, list, i) {
2929
+ function get_each_context$6(ctx, list, i) {
2930
2930
  const child_ctx = ctx.slice();
2931
2931
  child_ctx[5] = list[i];
2932
2932
  return child_ctx;
@@ -3035,7 +3035,7 @@
3035
3035
  }
3036
3036
 
3037
3037
  // (13:2) {#each rooms as room}
3038
- function create_each_block$5(ctx) {
3038
+ function create_each_block$6(ctx) {
3039
3039
  let svg;
3040
3040
  let current_block_type_index;
3041
3041
  let if_block;
@@ -3110,14 +3110,14 @@
3110
3110
  };
3111
3111
  }
3112
3112
 
3113
- function create_fragment$c(ctx) {
3113
+ function create_fragment$e(ctx) {
3114
3114
  let div;
3115
3115
  let current;
3116
3116
  let each_value = /*rooms*/ ctx[0];
3117
3117
  let each_blocks = [];
3118
3118
 
3119
3119
  for (let i = 0; i < each_value.length; i += 1) {
3120
- each_blocks[i] = create_each_block$5(get_each_context$5(ctx, each_value, i));
3120
+ each_blocks[i] = create_each_block$6(get_each_context$6(ctx, each_value, i));
3121
3121
  }
3122
3122
 
3123
3123
  const out = i => internal.transition_out(each_blocks[i], 1, 1, () => {
@@ -3149,13 +3149,13 @@
3149
3149
  let i;
3150
3150
 
3151
3151
  for (i = 0; i < each_value.length; i += 1) {
3152
- const child_ctx = get_each_context$5(ctx, each_value, i);
3152
+ const child_ctx = get_each_context$6(ctx, each_value, i);
3153
3153
 
3154
3154
  if (each_blocks[i]) {
3155
3155
  each_blocks[i].p(child_ctx, dirty);
3156
3156
  internal.transition_in(each_blocks[i], 1);
3157
3157
  } else {
3158
- each_blocks[i] = create_each_block$5(child_ctx);
3158
+ each_blocks[i] = create_each_block$6(child_ctx);
3159
3159
  each_blocks[i].c();
3160
3160
  internal.transition_in(each_blocks[i], 1);
3161
3161
  each_blocks[i].m(div, null);
@@ -3196,7 +3196,7 @@
3196
3196
  };
3197
3197
  }
3198
3198
 
3199
- function instance$c($$self, $$props, $$invalidate) {
3199
+ function instance$e($$self, $$props, $$invalidate) {
3200
3200
  let rooms;
3201
3201
  let { floorIndex } = $$props;
3202
3202
  let { floorplanData } = $$props;
@@ -3222,17 +3222,17 @@
3222
3222
  class RoomMaterial extends internal.SvelteComponent {
3223
3223
  constructor(options) {
3224
3224
  super();
3225
- internal.init(this, options, instance$c, create_fragment$c, internal.safe_not_equal, { floorIndex: 3, floorplanData: 4 }, add_css$b);
3225
+ internal.init(this, options, instance$e, create_fragment$e, internal.safe_not_equal, { floorIndex: 3, floorplanData: 4 }, add_css$d);
3226
3226
  }
3227
3227
  }
3228
3228
 
3229
3229
  /* src/floorplan/Components/RoomHighlight/Room.svelte generated by Svelte v3.47.0 */
3230
3230
 
3231
- function add_css$a(target) {
3231
+ function add_css$c(target) {
3232
3232
  internal.append_styles(target, "svelte-19uvvss", "path.svelte-19uvvss{opacity:0}path.svelte-19uvvss:hover{opacity:0.1}");
3233
3233
  }
3234
3234
 
3235
- function create_fragment$b(ctx) {
3235
+ function create_fragment$d(ctx) {
3236
3236
  let path;
3237
3237
 
3238
3238
  return {
@@ -3254,7 +3254,7 @@
3254
3254
  };
3255
3255
  }
3256
3256
 
3257
- function instance$b($$self, $$props, $$invalidate) {
3257
+ function instance$d($$self, $$props, $$invalidate) {
3258
3258
  let { room } = $$props;
3259
3259
  let { floorplanData } = $$props;
3260
3260
  const { bounding } = floorplanData;
@@ -3275,24 +3275,24 @@
3275
3275
  class Room extends internal.SvelteComponent {
3276
3276
  constructor(options) {
3277
3277
  super();
3278
- internal.init(this, options, instance$b, create_fragment$b, internal.safe_not_equal, { room: 1, floorplanData: 2 }, add_css$a);
3278
+ internal.init(this, options, instance$d, create_fragment$d, internal.safe_not_equal, { room: 1, floorplanData: 2 }, add_css$c);
3279
3279
  }
3280
3280
  }
3281
3281
 
3282
3282
  /* src/floorplan/Components/RoomHighlight/RoomHighlight.svelte generated by Svelte v3.47.0 */
3283
3283
 
3284
- function add_css$9(target) {
3284
+ function add_css$b(target) {
3285
3285
  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}");
3286
3286
  }
3287
3287
 
3288
- function get_each_context$4(ctx, list, i) {
3288
+ function get_each_context$5(ctx, list, i) {
3289
3289
  const child_ctx = ctx.slice();
3290
3290
  child_ctx[4] = list[i];
3291
3291
  return child_ctx;
3292
3292
  }
3293
3293
 
3294
3294
  // (10:4) {#each floorplanData.floorDatas[floorIndex].rooms as room (room.id)}
3295
- function create_each_block$4(key_1, ctx) {
3295
+ function create_each_block$5(key_1, ctx) {
3296
3296
  let first;
3297
3297
  let room;
3298
3298
  let current;
@@ -3355,7 +3355,7 @@
3355
3355
  };
3356
3356
  }
3357
3357
 
3358
- function create_fragment$a(ctx) {
3358
+ function create_fragment$c(ctx) {
3359
3359
  let div;
3360
3360
  let svg;
3361
3361
  let each_blocks = [];
@@ -3365,9 +3365,9 @@
3365
3365
  const get_key = ctx => /*room*/ ctx[4].id;
3366
3366
 
3367
3367
  for (let i = 0; i < each_value.length; i += 1) {
3368
- let child_ctx = get_each_context$4(ctx, each_value, i);
3368
+ let child_ctx = get_each_context$5(ctx, each_value, i);
3369
3369
  let key = get_key(child_ctx);
3370
- each_1_lookup.set(key, each_blocks[i] = create_each_block$4(key, child_ctx));
3370
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$5(key, child_ctx));
3371
3371
  }
3372
3372
 
3373
3373
  return {
@@ -3399,7 +3399,7 @@
3399
3399
  if (dirty & /*floorplanData, floorIndex*/ 3) {
3400
3400
  each_value = /*floorplanData*/ ctx[1].floorDatas[/*floorIndex*/ ctx[0]].rooms;
3401
3401
  internal.group_outros();
3402
- 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);
3402
+ 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);
3403
3403
  internal.check_outros();
3404
3404
  }
3405
3405
  },
@@ -3429,7 +3429,7 @@
3429
3429
  };
3430
3430
  }
3431
3431
 
3432
- function instance$a($$self, $$props, $$invalidate) {
3432
+ function instance$c($$self, $$props, $$invalidate) {
3433
3433
  let { floorIndex } = $$props;
3434
3434
  let { floorplanData } = $$props;
3435
3435
  const boundingWidth = floorplanData.bounding.max.x - floorplanData.bounding.min.x;
@@ -3446,13 +3446,13 @@
3446
3446
  class RoomHighlight extends internal.SvelteComponent {
3447
3447
  constructor(options) {
3448
3448
  super();
3449
- internal.init(this, options, instance$a, create_fragment$a, internal.safe_not_equal, { floorIndex: 0, floorplanData: 1 }, add_css$9);
3449
+ internal.init(this, options, instance$c, create_fragment$c, internal.safe_not_equal, { floorIndex: 0, floorplanData: 1 }, add_css$b);
3450
3450
  }
3451
3451
  }
3452
3452
 
3453
3453
  /* src/floorplan/Components/CurrentFloor.svelte generated by Svelte v3.47.0 */
3454
3454
 
3455
- function add_css$8(target) {
3455
+ function add_css$a(target) {
3456
3456
  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}");
3457
3457
  }
3458
3458
 
@@ -3623,7 +3623,7 @@
3623
3623
  };
3624
3624
  }
3625
3625
 
3626
- function create_fragment$9(ctx) {
3626
+ function create_fragment$b(ctx) {
3627
3627
  let div;
3628
3628
  let roommaterial;
3629
3629
  let t0;
@@ -3823,7 +3823,7 @@
3823
3823
  };
3824
3824
  }
3825
3825
 
3826
- function instance$9($$self, $$props, $$invalidate) {
3826
+ function instance$b($$self, $$props, $$invalidate) {
3827
3827
  let { isCurrent } = $$props;
3828
3828
  let { floorIndex } = $$props;
3829
3829
  let { hoverEnable } = $$props;
@@ -3860,8 +3860,8 @@
3860
3860
  internal.init(
3861
3861
  this,
3862
3862
  options,
3863
- instance$9,
3864
- create_fragment$9,
3863
+ instance$b,
3864
+ create_fragment$b,
3865
3865
  internal.safe_not_equal,
3866
3866
  {
3867
3867
  isCurrent: 0,
@@ -3872,18 +3872,18 @@
3872
3872
  floorplanData: 5,
3873
3873
  getLabelElement: 6
3874
3874
  },
3875
- add_css$8
3875
+ add_css$a
3876
3876
  );
3877
3877
  }
3878
3878
  }
3879
3879
 
3880
3880
  /* src/floorplan/Components/Main.svelte generated by Svelte v3.47.0 */
3881
3881
 
3882
- function add_css$7(target) {
3882
+ function add_css$9(target) {
3883
3883
  internal.append_styles(target, "svelte-q5wdnn", ".floorplan-main.svelte-q5wdnn{width:100%;height:100%}");
3884
3884
  }
3885
3885
 
3886
- function get_each_context$3(ctx, list, i) {
3886
+ function get_each_context$4(ctx, list, i) {
3887
3887
  const child_ctx = ctx.slice();
3888
3888
  child_ctx[13] = list[i];
3889
3889
  return child_ctx;
@@ -3901,7 +3901,7 @@
3901
3901
  let each_blocks = [];
3902
3902
 
3903
3903
  for (let i = 0; i < each_value.length; i += 1) {
3904
- each_blocks[i] = create_each_block$3(get_each_context$3(ctx, each_value, i));
3904
+ each_blocks[i] = create_each_block$4(get_each_context$4(ctx, each_value, i));
3905
3905
  }
3906
3906
 
3907
3907
  const out = i => internal.transition_out(each_blocks[i], 1, 1, () => {
@@ -3961,13 +3961,13 @@
3961
3961
  let i;
3962
3962
 
3963
3963
  for (i = 0; i < each_value.length; i += 1) {
3964
- const child_ctx = get_each_context$3(ctx, each_value, i);
3964
+ const child_ctx = get_each_context$4(ctx, each_value, i);
3965
3965
 
3966
3966
  if (each_blocks[i]) {
3967
3967
  each_blocks[i].p(child_ctx, dirty);
3968
3968
  internal.transition_in(each_blocks[i], 1);
3969
3969
  } else {
3970
- each_blocks[i] = create_each_block$3(child_ctx);
3970
+ each_blocks[i] = create_each_block$4(child_ctx);
3971
3971
  each_blocks[i].c();
3972
3972
  internal.transition_in(each_blocks[i], 1);
3973
3973
  each_blocks[i].m(div, t0);
@@ -4063,7 +4063,7 @@
4063
4063
  }
4064
4064
 
4065
4065
  // (23:4) {#each floorplanData.floorDatas as floorData}
4066
- function create_each_block$3(ctx) {
4066
+ function create_each_block$4(ctx) {
4067
4067
  let currentfloor;
4068
4068
  let current;
4069
4069
 
@@ -4176,7 +4176,7 @@
4176
4176
  };
4177
4177
  }
4178
4178
 
4179
- function create_fragment$8(ctx) {
4179
+ function create_fragment$a(ctx) {
4180
4180
  let if_block_anchor;
4181
4181
  let current;
4182
4182
  let if_block = /*visible*/ ctx[1] && create_if_block$2(ctx);
@@ -4231,7 +4231,7 @@
4231
4231
  };
4232
4232
  }
4233
4233
 
4234
- function instance$8($$self, $$props, $$invalidate) {
4234
+ function instance$a($$self, $$props, $$invalidate) {
4235
4235
  let { duration = 0 } = $$props;
4236
4236
  let { visible } = $$props;
4237
4237
  let { northDesc } = $$props;
@@ -4286,8 +4286,8 @@
4286
4286
  internal.init(
4287
4287
  this,
4288
4288
  options,
4289
- instance$8,
4290
- create_fragment$8,
4289
+ instance$a,
4290
+ create_fragment$a,
4291
4291
  internal.safe_not_equal,
4292
4292
  {
4293
4293
  duration: 0,
@@ -4304,7 +4304,7 @@
4304
4304
  cameraImageUrl: 11,
4305
4305
  getLabelElement: 12
4306
4306
  },
4307
- add_css$7
4307
+ add_css$9
4308
4308
  );
4309
4309
  }
4310
4310
  }
@@ -4684,11 +4684,11 @@
4684
4684
 
4685
4685
  /* src/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte generated by Svelte v3.47.0 */
4686
4686
 
4687
- function add_css$6(target) {
4687
+ function add_css$8(target) {
4688
4688
  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%}");
4689
4689
  }
4690
4690
 
4691
- function create_fragment$7(ctx) {
4691
+ function create_fragment$9(ctx) {
4692
4692
  let div2;
4693
4693
  let div1;
4694
4694
  let div0;
@@ -4738,7 +4738,7 @@
4738
4738
  return `rotate(${rotate}deg)`;
4739
4739
  }
4740
4740
 
4741
- function instance$7($$self, $$props, $$invalidate) {
4741
+ function instance$9($$self, $$props, $$invalidate) {
4742
4742
  let positionTransform;
4743
4743
  let rotateTransform;
4744
4744
  let { five } = $$props;
@@ -4818,8 +4818,8 @@
4818
4818
  internal.init(
4819
4819
  this,
4820
4820
  options,
4821
- instance$7,
4822
- create_fragment$7,
4821
+ instance$9,
4822
+ create_fragment$9,
4823
4823
  internal.safe_not_equal,
4824
4824
  {
4825
4825
  five: 3,
@@ -4827,25 +4827,25 @@
4827
4827
  floorplanData: 5,
4828
4828
  cameraImageUrl: 0
4829
4829
  },
4830
- add_css$6
4830
+ add_css$8
4831
4831
  );
4832
4832
  }
4833
4833
  }
4834
4834
 
4835
4835
  /* src/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte generated by Svelte v3.47.0 */
4836
4836
 
4837
- function add_css$5(target) {
4837
+ function add_css$7(target) {
4838
4838
  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%)}");
4839
4839
  }
4840
4840
 
4841
- function get_each_context$2(ctx, list, i) {
4841
+ function get_each_context$3(ctx, list, i) {
4842
4842
  const child_ctx = ctx.slice();
4843
4843
  child_ctx[1] = list[i];
4844
4844
  return child_ctx;
4845
4845
  }
4846
4846
 
4847
4847
  // (5:2) {#each extraObjects as extraObject (extraObject.id)}
4848
- function create_each_block$2(key_1, ctx) {
4848
+ function create_each_block$3(key_1, ctx) {
4849
4849
  let div1;
4850
4850
  let div0;
4851
4851
  let style_width = `${/*extraObject*/ ctx[1].icon.width / 16}rem`;
@@ -4904,7 +4904,7 @@
4904
4904
  };
4905
4905
  }
4906
4906
 
4907
- function create_fragment$6(ctx) {
4907
+ function create_fragment$8(ctx) {
4908
4908
  let div;
4909
4909
  let each_blocks = [];
4910
4910
  let each_1_lookup = new Map();
@@ -4912,9 +4912,9 @@
4912
4912
  const get_key = ctx => /*extraObject*/ ctx[1].id;
4913
4913
 
4914
4914
  for (let i = 0; i < each_value.length; i += 1) {
4915
- let child_ctx = get_each_context$2(ctx, each_value, i);
4915
+ let child_ctx = get_each_context$3(ctx, each_value, i);
4916
4916
  let key = get_key(child_ctx);
4917
- each_1_lookup.set(key, each_blocks[i] = create_each_block$2(key, child_ctx));
4917
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$3(key, child_ctx));
4918
4918
  }
4919
4919
 
4920
4920
  return {
@@ -4937,7 +4937,7 @@
4937
4937
  p(ctx, [dirty]) {
4938
4938
  if (dirty & /*extraObjects*/ 1) {
4939
4939
  each_value = /*extraObjects*/ ctx[0];
4940
- 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);
4940
+ 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);
4941
4941
  }
4942
4942
  },
4943
4943
  i: internal.noop,
@@ -4952,7 +4952,7 @@
4952
4952
  };
4953
4953
  }
4954
4954
 
4955
- function instance$6($$self, $$props, $$invalidate) {
4955
+ function instance$8($$self, $$props, $$invalidate) {
4956
4956
  let { extraObjects = [] } = $$props;
4957
4957
 
4958
4958
  $$self.$$set = $$props => {
@@ -4965,7 +4965,7 @@
4965
4965
  class ExtraObjects extends internal.SvelteComponent {
4966
4966
  constructor(options) {
4967
4967
  super();
4968
- internal.init(this, options, instance$6, create_fragment$6, internal.safe_not_equal, { extraObjects: 0 }, add_css$5);
4968
+ internal.init(this, options, instance$8, create_fragment$8, internal.safe_not_equal, { extraObjects: 0 }, add_css$7);
4969
4969
  }
4970
4970
  }
4971
4971
 
@@ -5031,7 +5031,7 @@
5031
5031
  };
5032
5032
  }
5033
5033
 
5034
- function create_fragment$5(ctx) {
5034
+ function create_fragment$7(ctx) {
5035
5035
  let baseimage;
5036
5036
  let t0;
5037
5037
  let extraobjects;
@@ -5142,7 +5142,7 @@
5142
5142
  };
5143
5143
  }
5144
5144
 
5145
- function instance$5($$self, $$props, $$invalidate) {
5145
+ function instance$7($$self, $$props, $$invalidate) {
5146
5146
  let currentFloorExtraObjects;
5147
5147
  let { five } = $$props;
5148
5148
  let { pxmm } = $$props;
@@ -5185,7 +5185,7 @@
5185
5185
  constructor(options) {
5186
5186
  super();
5187
5187
 
5188
- internal.init(this, options, instance$5, create_fragment$5, internal.safe_not_equal, {
5188
+ internal.init(this, options, instance$7, create_fragment$7, internal.safe_not_equal, {
5189
5189
  five: 0,
5190
5190
  pxmm: 1,
5191
5191
  floorIndex: 2,
@@ -5198,7 +5198,7 @@
5198
5198
 
5199
5199
  /* src/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte generated by Svelte v3.47.0 */
5200
5200
 
5201
- function add_css$4(target) {
5201
+ function add_css$6(target) {
5202
5202
  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}");
5203
5203
  }
5204
5204
 
@@ -5321,7 +5321,7 @@
5321
5321
  };
5322
5322
  }
5323
5323
 
5324
- function create_fragment$4(ctx) {
5324
+ function create_fragment$6(ctx) {
5325
5325
  let div;
5326
5326
  let div_resize_listener;
5327
5327
  let current;
@@ -5381,7 +5381,7 @@
5381
5381
  };
5382
5382
  }
5383
5383
 
5384
- function instance$4($$self, $$props, $$invalidate) {
5384
+ function instance$6($$self, $$props, $$invalidate) {
5385
5385
  let { five } = $$props;
5386
5386
  let { hoverEnable } = $$props;
5387
5387
  let { floorplanData } = $$props;
@@ -5464,8 +5464,8 @@
5464
5464
  internal.init(
5465
5465
  this,
5466
5466
  options,
5467
- instance$4,
5468
- create_fragment$4,
5467
+ instance$6,
5468
+ create_fragment$6,
5469
5469
  internal.safe_not_equal,
5470
5470
  {
5471
5471
  five: 0,
@@ -5474,7 +5474,7 @@
5474
5474
  cameraImageUrl: 3,
5475
5475
  extraObjects: 4
5476
5476
  },
5477
- add_css$4
5477
+ add_css$6
5478
5478
  );
5479
5479
  }
5480
5480
  }
@@ -13348,18 +13348,18 @@
13348
13348
 
13349
13349
  /* src/PanoSpatialTagPlugin/Components/origins.svelte generated by Svelte v3.47.0 */
13350
13350
 
13351
- function add_css$3(target) {
13351
+ function add_css$5(target) {
13352
13352
  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}}");
13353
13353
  }
13354
13354
 
13355
- function get_each_context$1(ctx, list, i) {
13355
+ function get_each_context$2(ctx, list, i) {
13356
13356
  const child_ctx = ctx.slice();
13357
13357
  child_ctx[3] = list[i];
13358
13358
  return child_ctx;
13359
13359
  }
13360
13360
 
13361
13361
  // (8:0) {#each origins as origin}
13362
- function create_each_block$1(ctx) {
13362
+ function create_each_block$2(ctx) {
13363
13363
  let i;
13364
13364
  let style_top = `${/*origin*/ ctx[3].top}%`;
13365
13365
  let style_left = `${/*origin*/ ctx[3].left}%`;
@@ -13415,13 +13415,13 @@
13415
13415
  };
13416
13416
  }
13417
13417
 
13418
- function create_fragment$3(ctx) {
13418
+ function create_fragment$5(ctx) {
13419
13419
  let each_1_anchor;
13420
13420
  let each_value = /*origins*/ ctx[0];
13421
13421
  let each_blocks = [];
13422
13422
 
13423
13423
  for (let i = 0; i < each_value.length; i += 1) {
13424
- each_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));
13424
+ each_blocks[i] = create_each_block$2(get_each_context$2(ctx, each_value, i));
13425
13425
  }
13426
13426
 
13427
13427
  return {
@@ -13445,12 +13445,12 @@
13445
13445
  let i;
13446
13446
 
13447
13447
  for (i = 0; i < each_value.length; i += 1) {
13448
- const child_ctx = get_each_context$1(ctx, each_value, i);
13448
+ const child_ctx = get_each_context$2(ctx, each_value, i);
13449
13449
 
13450
13450
  if (each_blocks[i]) {
13451
13451
  each_blocks[i].p(child_ctx, dirty);
13452
13452
  } else {
13453
- each_blocks[i] = create_each_block$1(child_ctx);
13453
+ each_blocks[i] = create_each_block$2(child_ctx);
13454
13454
  each_blocks[i].c();
13455
13455
  each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
13456
13456
  }
@@ -13472,7 +13472,7 @@
13472
13472
  };
13473
13473
  }
13474
13474
 
13475
- function instance$3($$self, $$props, $$invalidate) {
13475
+ function instance$5($$self, $$props, $$invalidate) {
13476
13476
  let { origins } = $$props;
13477
13477
 
13478
13478
  const handleClick = id => {
@@ -13491,17 +13491,17 @@
13491
13491
  class Origins extends internal.SvelteComponent {
13492
13492
  constructor(options) {
13493
13493
  super();
13494
- internal.init(this, options, instance$3, create_fragment$3, internal.safe_not_equal, { origins: 0 }, add_css$3);
13494
+ internal.init(this, options, instance$5, create_fragment$5, internal.safe_not_equal, { origins: 0 }, add_css$5);
13495
13495
  }
13496
13496
  }
13497
13497
 
13498
13498
  /* src/PanoSpatialTagPlugin/Components/tag.svelte generated by Svelte v3.47.0 */
13499
13499
 
13500
- function add_css$2(target) {
13500
+ function add_css$4(target) {
13501
13501
  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)}}");
13502
13502
  }
13503
13503
 
13504
- function create_fragment$2(ctx) {
13504
+ function create_fragment$4(ctx) {
13505
13505
  let div4;
13506
13506
  let div0;
13507
13507
  let t0;
@@ -13616,7 +13616,7 @@
13616
13616
  };
13617
13617
  }
13618
13618
 
13619
- function instance$2($$self, $$props, $$invalidate) {
13619
+ function instance$4($$self, $$props, $$invalidate) {
13620
13620
  let { id } = $$props;
13621
13621
  let { upsideDown } = $$props;
13622
13622
  let { content } = $$props;
@@ -13753,8 +13753,8 @@
13753
13753
  internal.init(
13754
13754
  this,
13755
13755
  options,
13756
- instance$2,
13757
- create_fragment$2,
13756
+ instance$4,
13757
+ create_fragment$4,
13758
13758
  internal.safe_not_equal,
13759
13759
  {
13760
13760
  id: 0,
@@ -13769,7 +13769,7 @@
13769
13769
  events: 14,
13770
13770
  hooks: 15
13771
13771
  },
13772
- add_css$2
13772
+ add_css$4
13773
13773
  );
13774
13774
  }
13775
13775
  }
@@ -14412,11 +14412,11 @@
14412
14412
 
14413
14413
  /* src/ModelItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.47.0 */
14414
14414
 
14415
- function add_css$1(target) {
14415
+ function add_css$3(target) {
14416
14416
  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 }}");
14417
14417
  }
14418
14418
 
14419
- function create_fragment$1(ctx) {
14419
+ function create_fragment$3(ctx) {
14420
14420
  let div2;
14421
14421
  let div0;
14422
14422
  let span;
@@ -14497,7 +14497,7 @@
14497
14497
  };
14498
14498
  }
14499
14499
 
14500
- function instance$1($$self, $$props, $$invalidate) {
14500
+ function instance$3($$self, $$props, $$invalidate) {
14501
14501
  let { itemLabel } = $$props;
14502
14502
  let { hooks } = $$props;
14503
14503
 
@@ -14514,10 +14514,10 @@
14514
14514
  return [itemLabel, onClick, hooks];
14515
14515
  }
14516
14516
 
14517
- class ItemLabelItem extends internal.SvelteComponent {
14517
+ class ItemLabelItem$1 extends internal.SvelteComponent {
14518
14518
  constructor(options) {
14519
14519
  super();
14520
- internal.init(this, options, instance$1, create_fragment$1, internal.safe_not_equal, { itemLabel: 0, hooks: 2 }, add_css$1);
14520
+ internal.init(this, options, instance$3, create_fragment$3, internal.safe_not_equal, { itemLabel: 0, hooks: 2 }, add_css$3);
14521
14521
  }
14522
14522
  }
14523
14523
 
@@ -14538,23 +14538,23 @@
14538
14538
 
14539
14539
  /* src/ModelItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.47.0 */
14540
14540
 
14541
- function add_css(target) {
14541
+ function add_css$2(target) {
14542
14542
  internal.append_styles(target, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
14543
14543
  }
14544
14544
 
14545
- function get_each_context(ctx, list, i) {
14545
+ function get_each_context$1(ctx, list, i) {
14546
14546
  const child_ctx = ctx.slice();
14547
14547
  child_ctx[28] = list[i];
14548
14548
  return child_ctx;
14549
14549
  }
14550
14550
 
14551
14551
  // (163:1) {#each renderItemLabels as itemLabelItem (itemLabelItem.id)}
14552
- function create_each_block(key_1, ctx) {
14552
+ function create_each_block$1(key_1, ctx) {
14553
14553
  let first;
14554
14554
  let itemlabelitem;
14555
14555
  let current;
14556
14556
 
14557
- itemlabelitem = new ItemLabelItem({
14557
+ itemlabelitem = new ItemLabelItem$1({
14558
14558
  props: {
14559
14559
  itemLabel: /*itemLabelItem*/ ctx[28],
14560
14560
  hooks: /*hooks*/ ctx[0]
@@ -14597,7 +14597,7 @@
14597
14597
  };
14598
14598
  }
14599
14599
 
14600
- function create_fragment(ctx) {
14600
+ function create_fragment$2(ctx) {
14601
14601
  let div;
14602
14602
  let each_blocks = [];
14603
14603
  let each_1_lookup = new Map();
@@ -14607,9 +14607,9 @@
14607
14607
  const get_key = ctx => /*itemLabelItem*/ ctx[28].id;
14608
14608
 
14609
14609
  for (let i = 0; i < each_value.length; i += 1) {
14610
- let child_ctx = get_each_context(ctx, each_value, i);
14610
+ let child_ctx = get_each_context$1(ctx, each_value, i);
14611
14611
  let key = get_key(child_ctx);
14612
- each_1_lookup.set(key, each_blocks[i] = create_each_block(key, child_ctx));
14612
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$1(key, child_ctx));
14613
14613
  }
14614
14614
 
14615
14615
  return {
@@ -14638,7 +14638,7 @@
14638
14638
  if (dirty & /*renderItemLabels, hooks*/ 3) {
14639
14639
  each_value = /*renderItemLabels*/ ctx[1];
14640
14640
  internal.group_outros();
14641
- 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);
14641
+ 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);
14642
14642
  internal.check_outros();
14643
14643
  }
14644
14644
 
@@ -14675,9 +14675,9 @@
14675
14675
  }
14676
14676
 
14677
14677
  let cssHeight = 26;
14678
- let basicWidth = 11;
14678
+ let basicWidth$1 = 11;
14679
14679
 
14680
- function instance($$self, $$props, $$invalidate) {
14680
+ function instance$2($$self, $$props, $$invalidate) {
14681
14681
  const { Raycaster, Vector3 } = THREE__namespace;
14682
14682
  let { five } = $$props;
14683
14683
  let { modelOcclusionEnable } = $$props;
@@ -14764,7 +14764,7 @@
14764
14764
  // 计算位置 & 可见性
14765
14765
  const newLabels = labels.map(label => {
14766
14766
  const cssOffset = getLabelCssOffset(five, label);
14767
- const curLabelWidth = label.name.length * basicWidth;
14767
+ const curLabelWidth = label.name.length * basicWidth$1;
14768
14768
  const strokeLength = getStrokeLength(label.modelPosition[1], displayStrategyType);
14769
14769
 
14770
14770
  // 是否加入碰撞检测
@@ -14891,15 +14891,15 @@
14891
14891
  ];
14892
14892
  }
14893
14893
 
14894
- class ItemLabelComponent extends internal.SvelteComponent {
14894
+ class ItemLabelComponent$1 extends internal.SvelteComponent {
14895
14895
  constructor(options) {
14896
14896
  super();
14897
14897
 
14898
14898
  internal.init(
14899
14899
  this,
14900
14900
  options,
14901
- instance,
14902
- create_fragment,
14901
+ instance$2,
14902
+ create_fragment$2,
14903
14903
  internal.safe_not_equal,
14904
14904
  {
14905
14905
  five: 5,
@@ -14909,7 +14909,7 @@
14909
14909
  hooks: 0,
14910
14910
  displayStrategyType: 9
14911
14911
  },
14912
- add_css
14912
+ add_css$2
14913
14913
  );
14914
14914
  }
14915
14915
  }
@@ -14983,7 +14983,7 @@
14983
14983
  }
14984
14984
  // 正常显示时,分为 app 存在和不存在两种情况,如果存在,传值,不存在则初始化并传值
14985
14985
  if (!pluginState.app) {
14986
- pluginState.app = new ItemLabelComponent({
14986
+ pluginState.app = new ItemLabelComponent$1({
14987
14987
  target: pluginState.container,
14988
14988
  props: {
14989
14989
  five: five$1,
@@ -15313,9 +15313,662 @@
15313
15313
  return { enable, disable, load, dispose };
15314
15314
  };
15315
15315
 
15316
+ exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE = void 0;
15317
+ (function (ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE) {
15318
+ ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE["SMALL"] = "small";
15319
+ ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE["MIDLLE"] = "middle";
15320
+ ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE["LARGE"] = "large";
15321
+ ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE["EXTRA_LARGE"] = "x-large";
15322
+ })(exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE || (exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE = {}));
15323
+
15324
+ /* src/ItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.47.0 */
15325
+
15326
+ function add_css$1(target) {
15327
+ 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 }}");
15328
+ }
15329
+
15330
+ function create_fragment$1(ctx) {
15331
+ let div5;
15332
+ let div3;
15333
+ let div1;
15334
+ let div0;
15335
+ let div0_style_value;
15336
+ let t0;
15337
+ let div2;
15338
+ let span0;
15339
+ let t1_value = (/*itemLabel*/ ctx[0].code ?? /*itemLabel*/ ctx[0].id) + "";
15340
+ let t1;
15341
+ let t2;
15342
+ let span1;
15343
+ let t3_value = /*itemLabel*/ ctx[0].name + "";
15344
+ let t3;
15345
+ let div3_class_value;
15346
+ let t4;
15347
+ let div4;
15348
+ let div4_class_value;
15349
+ let div5_class_value;
15350
+ let mounted;
15351
+ let dispose;
15352
+
15353
+ return {
15354
+ c() {
15355
+ div5 = internal.element("div");
15356
+ div3 = internal.element("div");
15357
+ div1 = internal.element("div");
15358
+ div0 = internal.element("div");
15359
+ t0 = internal.space();
15360
+ div2 = internal.element("div");
15361
+ span0 = internal.element("span");
15362
+ t1 = internal.text(t1_value);
15363
+ t2 = internal.space();
15364
+ span1 = internal.element("span");
15365
+ t3 = internal.text(t3_value);
15366
+ t4 = internal.space();
15367
+ div4 = internal.element("div");
15368
+ internal.attr(div0, "class", "icon svelte-1s5p8g");
15369
+ internal.attr(div0, "style", div0_style_value = `background-image: url(${/*itemLabel*/ ctx[0].icon ?? defaultIcon})`);
15370
+ internal.attr(div1, "class", "icon-wrap svelte-1s5p8g");
15371
+ internal.attr(span0, "class", "item-model svelte-1s5p8g");
15372
+ internal.attr(span1, "class", "item-name svelte-1s5p8g");
15373
+ internal.attr(div2, "class", "item-label-text svelte-1s5p8g");
15374
+ 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"));
15375
+ internal.set_style(div3, "bottom", `${/*itemLabel*/ ctx[0].strokeLength}px`);
15376
+ internal.attr(div4, "class", div4_class_value = "" + (internal.null_to_empty(classNames__default["default"]("item-label-item__bar", { anchor: /*anchorEnabled*/ ctx[1] })) + " svelte-1s5p8g"));
15377
+ internal.set_style(div4, "height", `${/*itemLabel*/ ctx[0].strokeLength}px`);
15378
+ internal.attr(div5, "class", div5_class_value = "" + (internal.null_to_empty(classNames__default["default"]("item-label-item", { visible: /*itemLabel*/ ctx[0].visible })) + " svelte-1s5p8g"));
15379
+ internal.set_style(div5, "z-index", /*itemLabel*/ ctx[0].zIndex, false);
15380
+ internal.set_style(div5, "transform", /*itemLabel*/ ctx[0].transform, false);
15381
+ },
15382
+ m(target, anchor) {
15383
+ internal.insert(target, div5, anchor);
15384
+ internal.append(div5, div3);
15385
+ internal.append(div3, div1);
15386
+ internal.append(div1, div0);
15387
+ internal.append(div3, t0);
15388
+ internal.append(div3, div2);
15389
+ internal.append(div2, span0);
15390
+ internal.append(span0, t1);
15391
+ internal.append(div2, t2);
15392
+ internal.append(div2, span1);
15393
+ internal.append(span1, t3);
15394
+ internal.append(div5, t4);
15395
+ internal.append(div5, div4);
15396
+
15397
+ if (!mounted) {
15398
+ dispose = internal.listen(div3, "click", /*onClick*/ ctx[2]);
15399
+ mounted = true;
15400
+ }
15401
+ },
15402
+ p(ctx, [dirty]) {
15403
+ if (dirty & /*itemLabel*/ 1 && div0_style_value !== (div0_style_value = `background-image: url(${/*itemLabel*/ ctx[0].icon ?? defaultIcon})`)) {
15404
+ internal.attr(div0, "style", div0_style_value);
15405
+ }
15406
+
15407
+ if (dirty & /*itemLabel*/ 1 && t1_value !== (t1_value = (/*itemLabel*/ ctx[0].code ?? /*itemLabel*/ ctx[0].id) + "")) internal.set_data(t1, t1_value);
15408
+ if (dirty & /*itemLabel*/ 1 && t3_value !== (t3_value = /*itemLabel*/ ctx[0].name + "")) internal.set_data(t3, t3_value);
15409
+
15410
+ 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"))) {
15411
+ internal.attr(div3, "class", div3_class_value);
15412
+ }
15413
+
15414
+ if (dirty & /*itemLabel*/ 1) {
15415
+ internal.set_style(div3, "bottom", `${/*itemLabel*/ ctx[0].strokeLength}px`);
15416
+ }
15417
+
15418
+ 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"))) {
15419
+ internal.attr(div4, "class", div4_class_value);
15420
+ }
15421
+
15422
+ if (dirty & /*itemLabel*/ 1) {
15423
+ internal.set_style(div4, "height", `${/*itemLabel*/ ctx[0].strokeLength}px`);
15424
+ }
15425
+
15426
+ 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"))) {
15427
+ internal.attr(div5, "class", div5_class_value);
15428
+ }
15429
+
15430
+ if (dirty & /*itemLabel*/ 1) {
15431
+ internal.set_style(div5, "z-index", /*itemLabel*/ ctx[0].zIndex, false);
15432
+ }
15433
+
15434
+ if (dirty & /*itemLabel*/ 1) {
15435
+ internal.set_style(div5, "transform", /*itemLabel*/ ctx[0].transform, false);
15436
+ }
15437
+ },
15438
+ i: internal.noop,
15439
+ o: internal.noop,
15440
+ d(detaching) {
15441
+ if (detaching) internal.detach(div5);
15442
+ mounted = false;
15443
+ dispose();
15444
+ }
15445
+ };
15446
+ }
15447
+
15448
+ const defaultIcon = '//vrlab-public.ljcdn.com/common/file/web/c8591aaa-e62b-4e31-8fed-671483ace37f.svg\n';
15449
+
15450
+ function instance$1($$self, $$props, $$invalidate) {
15451
+ let { itemLabel } = $$props;
15452
+ let { hooks } = $$props;
15453
+ let { anchorEnabled } = $$props;
15454
+
15455
+ function onClick() {
15456
+ hooks.emit('onLabelClick', itemLabel);
15457
+ }
15458
+
15459
+ $$self.$$set = $$props => {
15460
+ if ('itemLabel' in $$props) $$invalidate(0, itemLabel = $$props.itemLabel);
15461
+ if ('hooks' in $$props) $$invalidate(3, hooks = $$props.hooks);
15462
+ if ('anchorEnabled' in $$props) $$invalidate(1, anchorEnabled = $$props.anchorEnabled);
15463
+ };
15464
+
15465
+ return [itemLabel, anchorEnabled, onClick, hooks];
15466
+ }
15467
+
15468
+ class ItemLabelItem extends internal.SvelteComponent {
15469
+ constructor(options) {
15470
+ super();
15471
+ internal.init(this, options, instance$1, create_fragment$1, internal.safe_not_equal, { itemLabel: 0, hooks: 3, anchorEnabled: 1 }, add_css$1);
15472
+ }
15473
+ }
15474
+
15475
+ /* src/ItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.47.0 */
15476
+
15477
+ function add_css(target) {
15478
+ internal.append_styles(target, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
15479
+ }
15480
+
15481
+ function get_each_context(ctx, list, i) {
15482
+ const child_ctx = ctx.slice();
15483
+ child_ctx[28] = list[i];
15484
+ return child_ctx;
15485
+ }
15486
+
15487
+ // (163:1) {#each renderItemLabels as itemLabelItem (itemLabelItem.id)}
15488
+ function create_each_block(key_1, ctx) {
15489
+ let first;
15490
+ let itemlabelitem;
15491
+ let current;
15492
+
15493
+ itemlabelitem = new ItemLabelItem({
15494
+ props: {
15495
+ itemLabel: /*itemLabelItem*/ ctx[28],
15496
+ hooks: /*hooks*/ ctx[1],
15497
+ anchorEnabled: /*five*/ ctx[0].currentMode === five.Five.Mode.Panorama
15498
+ }
15499
+ });
15500
+
15501
+ return {
15502
+ key: key_1,
15503
+ first: null,
15504
+ c() {
15505
+ first = internal.empty();
15506
+ internal.create_component(itemlabelitem.$$.fragment);
15507
+ this.first = first;
15508
+ },
15509
+ m(target, anchor) {
15510
+ internal.insert(target, first, anchor);
15511
+ internal.mount_component(itemlabelitem, target, anchor);
15512
+ current = true;
15513
+ },
15514
+ p(new_ctx, dirty) {
15515
+ ctx = new_ctx;
15516
+ const itemlabelitem_changes = {};
15517
+ if (dirty & /*renderItemLabels*/ 4) itemlabelitem_changes.itemLabel = /*itemLabelItem*/ ctx[28];
15518
+ if (dirty & /*hooks*/ 2) itemlabelitem_changes.hooks = /*hooks*/ ctx[1];
15519
+ if (dirty & /*five*/ 1) itemlabelitem_changes.anchorEnabled = /*five*/ ctx[0].currentMode === five.Five.Mode.Panorama;
15520
+ itemlabelitem.$set(itemlabelitem_changes);
15521
+ },
15522
+ i(local) {
15523
+ if (current) return;
15524
+ internal.transition_in(itemlabelitem.$$.fragment, local);
15525
+ current = true;
15526
+ },
15527
+ o(local) {
15528
+ internal.transition_out(itemlabelitem.$$.fragment, local);
15529
+ current = false;
15530
+ },
15531
+ d(detaching) {
15532
+ if (detaching) internal.detach(first);
15533
+ internal.destroy_component(itemlabelitem, detaching);
15534
+ }
15535
+ };
15536
+ }
15537
+
15538
+ function create_fragment(ctx) {
15539
+ let div;
15540
+ let each_blocks = [];
15541
+ let each_1_lookup = new Map();
15542
+ let div_resize_listener;
15543
+ let current;
15544
+ let each_value = /*renderItemLabels*/ ctx[2];
15545
+ const get_key = ctx => /*itemLabelItem*/ ctx[28].id;
15546
+
15547
+ for (let i = 0; i < each_value.length; i += 1) {
15548
+ let child_ctx = get_each_context(ctx, each_value, i);
15549
+ let key = get_key(child_ctx);
15550
+ each_1_lookup.set(key, each_blocks[i] = create_each_block(key, child_ctx));
15551
+ }
15552
+
15553
+ return {
15554
+ c() {
15555
+ div = internal.element("div");
15556
+
15557
+ for (let i = 0; i < each_blocks.length; i += 1) {
15558
+ each_blocks[i].c();
15559
+ }
15560
+
15561
+ internal.attr(div, "class", "item-labels-container svelte-gk8s47");
15562
+ internal.add_render_callback(() => /*div_elementresize_handler*/ ctx[10].call(div));
15563
+ internal.set_style(div, "opacity", /*itemsVisible*/ ctx[5] ? 1 : 0, false);
15564
+ },
15565
+ m(target, anchor) {
15566
+ internal.insert(target, div, anchor);
15567
+
15568
+ for (let i = 0; i < each_blocks.length; i += 1) {
15569
+ each_blocks[i].m(div, null);
15570
+ }
15571
+
15572
+ div_resize_listener = internal.add_resize_listener(div, /*div_elementresize_handler*/ ctx[10].bind(div));
15573
+ current = true;
15574
+ },
15575
+ p(ctx, [dirty]) {
15576
+ if (dirty & /*renderItemLabels, hooks, five, Five*/ 7) {
15577
+ each_value = /*renderItemLabels*/ ctx[2];
15578
+ internal.group_outros();
15579
+ 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);
15580
+ internal.check_outros();
15581
+ }
15582
+
15583
+ if (dirty & /*itemsVisible*/ 32) {
15584
+ internal.set_style(div, "opacity", /*itemsVisible*/ ctx[5] ? 1 : 0, false);
15585
+ }
15586
+ },
15587
+ i(local) {
15588
+ if (current) return;
15589
+
15590
+ for (let i = 0; i < each_value.length; i += 1) {
15591
+ internal.transition_in(each_blocks[i]);
15592
+ }
15593
+
15594
+ current = true;
15595
+ },
15596
+ o(local) {
15597
+ for (let i = 0; i < each_blocks.length; i += 1) {
15598
+ internal.transition_out(each_blocks[i]);
15599
+ }
15600
+
15601
+ current = false;
15602
+ },
15603
+ d(detaching) {
15604
+ if (detaching) internal.detach(div);
15605
+
15606
+ for (let i = 0; i < each_blocks.length; i += 1) {
15607
+ each_blocks[i].d();
15608
+ }
15609
+
15610
+ div_resize_listener();
15611
+ }
15612
+ };
15613
+ }
15614
+ let basicWidth = 11;
15615
+
15616
+ function instance($$self, $$props, $$invalidate) {
15617
+ const { Raycaster, Vector3 } = THREE__namespace;
15618
+ let { five } = $$props;
15619
+ let { modelOcclusionEnable } = $$props;
15620
+ let { itemLabels } = $$props;
15621
+ let { wrapper } = $$props;
15622
+ let { hooks } = $$props;
15623
+ let { displayStrategyType } = $$props;
15624
+ let curItemLabels = null;
15625
+ let renderItemLabels = null;
15626
+ let wrapperSize = { width: 0, height: 0 };
15627
+ let containerWidth;
15628
+ let containerHeight;
15629
+
15630
+ // 计算重叠
15631
+ let cssOffsetLists = [];
15632
+
15633
+ // 动画过程中 itemsVisible 为 false
15634
+ let itemsVisible = true;
15635
+
15636
+ /**
15637
+ * 可见性策略:
15638
+ * 1、当前楼层(假设先不考虑多楼层)
15639
+ * 2、模型未被遮挡(一个 box 有没有被遮挡的计算? TODO)
15640
+ * */
15641
+ const getLabelVisible = (five, itemLabel) => {
15642
+ // 虚拟 VR 仅有一层,不考虑楼层信息
15643
+ const raycaster = new Raycaster();
15644
+
15645
+ const cameraPosition = five.camera.position.clone();
15646
+ const modelPosition = new Vector3(itemLabel.modelPosition[0], itemLabel.modelPosition[1], itemLabel.modelPosition[2]);
15647
+
15648
+ // 计算点到相机的位置
15649
+ const vectorDistance = modelPosition.distanceTo(cameraPosition);
15650
+
15651
+ raycaster.set(cameraPosition.clone(), modelPosition.clone().sub(cameraPosition).normalize());
15652
+ const [intersection] = five.model.intersectRaycaster(raycaster);
15653
+ return !(intersection && intersection.distance + 1 < vectorDistance);
15654
+ };
15655
+
15656
+ // cssOffset 获取
15657
+ const getLabelCssOffset = (five, itemLabel) => {
15658
+ const modelPosition = new Vector3(itemLabel.modelPosition[0], itemLabel.modelPosition[1], itemLabel.modelPosition[2]);
15659
+ const cssPosition = five.project2d(modelPosition);
15660
+
15661
+ const xOffset = cssPosition === null || cssPosition === void 0
15662
+ ? void 0
15663
+ : cssPosition.x;
15664
+
15665
+ const yOffset = cssPosition === null || cssPosition === void 0
15666
+ ? void 0
15667
+ : cssPosition.y;
15668
+
15669
+ return [xOffset, yOffset];
15670
+ };
15671
+
15672
+ const getLabelTransform = cssOffset => {
15673
+ return `translate(${cssOffset[0]}px, ${cssOffset[1]}px)`;
15674
+ };
15675
+
15676
+ function getStrokeLength(itemSpaceHeight, type) {
15677
+ switch (type) {
15678
+ case exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.SMALL:
15679
+ return Math.ceil(-27.78 * itemSpaceHeight + 85);
15680
+ case exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.MIDLLE:
15681
+ return Math.ceil(-38.9 * itemSpaceHeight + 130);
15682
+ case exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.LARGE:
15683
+ return Math.ceil(-44.44 * itemSpaceHeight + 140);
15684
+ case exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.EXTRA_LARGE:
15685
+ return Math.ceil(-92.59 * itemSpaceHeight + 300);
15686
+ }
15687
+ }
15688
+
15689
+ const getFormatedItemLabels = (five, labels) => {
15690
+ // 计算位置 & 可见性
15691
+ const newLabels = labels.map(label => {
15692
+ const cssOffset = getLabelCssOffset(five, label);
15693
+ label.name.length * basicWidth;
15694
+ const strokeLength = getStrokeLength(label.modelPosition[1], displayStrategyType);
15695
+
15696
+ // 是否加入碰撞检测
15697
+ const naturalVisible = modelOcclusionEnable
15698
+ ? getLabelVisible(five, label)
15699
+ : true;
15700
+
15701
+ const visible = naturalVisible;
15702
+
15703
+ // 关掉重叠计算
15704
+ // const visible = naturalVisible && !isOverlap([cssOffset[0], cssOffset[1] + strokeLength], curLabelWidth)
15705
+ if (!visible) return Object.assign(Object.assign({}, label), { visible });
15706
+
15707
+ cssOffsetLists.push(cssOffset);
15708
+
15709
+ // position
15710
+ const transform = getLabelTransform(cssOffset);
15711
+
15712
+ return Object.assign(Object.assign({}, label), { visible, transform, strokeLength });
15713
+ });
15714
+
15715
+ const sortedItemLabelItems = newLabels.filter(({ visible }) => visible).map(label => ({
15716
+ itemLabelItem: label,
15717
+ distance: new Vector3(label.modelPosition[0], label.modelPosition[1], label.modelPosition[2]).clone().distanceTo(five.camera.position)
15718
+ })).sort((a, b) => a.distance - b.distance);
15719
+
15720
+ return newLabels.map(label => {
15721
+ const sortIndex = sortedItemLabelItems.findIndex(item => item.itemLabelItem.id === label.id);
15722
+ if (sortIndex !== undefined) return Object.assign(Object.assign({}, label), { zIndex: sortIndex * 10 });
15723
+ return label;
15724
+ });
15725
+ };
15726
+
15727
+ const onItemLabelUpdate = () => {
15728
+ cssOffsetLists = [];
15729
+ $$invalidate(2, renderItemLabels = getFormatedItemLabels(five, renderItemLabels));
15730
+ };
15731
+
15732
+ svelte.beforeUpdate(() => {
15733
+ addDataUpdateListener();
15734
+ });
15735
+
15736
+ const handleCameraUpdateCallback = () => {
15737
+ $$invalidate(5, itemsVisible = false);
15738
+ handleCameraUpdate();
15739
+ };
15740
+
15741
+ svelte.onMount(() => {
15742
+ $$invalidate(2, renderItemLabels = itemLabels);
15743
+ curItemLabels = itemLabels;
15744
+ onItemLabelUpdate();
15745
+ addResizeListener();
15746
+ five.on('cameraUpdate', handleCameraUpdateCallback);
15747
+ });
15748
+
15749
+ const handleCameraUpdate = debounce(
15750
+ () => {
15751
+ $$invalidate(5, itemsVisible = true);
15752
+ onItemLabelUpdate();
15753
+ },
15754
+ 300
15755
+ );
15756
+
15757
+ const addResizeListener = () => {
15758
+ wrapperSize = {
15759
+ width: wrapper.clientWidth,
15760
+ height: wrapper.clientHeight
15761
+ };
15762
+
15763
+ resizeObserver.observe(wrapper);
15764
+ };
15765
+
15766
+ const addDataUpdateListener = () => {
15767
+ if (curItemLabels !== itemLabels) {
15768
+ $$invalidate(2, renderItemLabels = itemLabels);
15769
+ curItemLabels = itemLabels;
15770
+ onItemLabelUpdate();
15771
+ }
15772
+ };
15773
+
15774
+ const resizeObserver = new ResizeObserver(entries => {
15775
+ const entry = entries[0];
15776
+ const target = entry.target;
15777
+ const curWidth = target.clientWidth;
15778
+ const curHeight = target.clientHeight;
15779
+
15780
+ if (wrapperSize.width !== curWidth || wrapperSize.height !== curHeight) {
15781
+ wrapperSize = { width: curWidth, height: curHeight };
15782
+ onItemLabelUpdate();
15783
+ }
15784
+ });
15785
+
15786
+ svelte.onDestroy(() => {
15787
+ five.off('cameraUpdate', handleCameraUpdateCallback);
15788
+ resizeObserver.unobserve(wrapper);
15789
+ });
15790
+
15791
+ function div_elementresize_handler() {
15792
+ containerWidth = this.clientWidth;
15793
+ containerHeight = this.clientHeight;
15794
+ $$invalidate(3, containerWidth);
15795
+ $$invalidate(4, containerHeight);
15796
+ }
15797
+
15798
+ $$self.$$set = $$props => {
15799
+ if ('five' in $$props) $$invalidate(0, five = $$props.five);
15800
+ if ('modelOcclusionEnable' in $$props) $$invalidate(6, modelOcclusionEnable = $$props.modelOcclusionEnable);
15801
+ if ('itemLabels' in $$props) $$invalidate(7, itemLabels = $$props.itemLabels);
15802
+ if ('wrapper' in $$props) $$invalidate(8, wrapper = $$props.wrapper);
15803
+ if ('hooks' in $$props) $$invalidate(1, hooks = $$props.hooks);
15804
+ if ('displayStrategyType' in $$props) $$invalidate(9, displayStrategyType = $$props.displayStrategyType);
15805
+ };
15806
+
15807
+ return [
15808
+ five,
15809
+ hooks,
15810
+ renderItemLabels,
15811
+ containerWidth,
15812
+ containerHeight,
15813
+ itemsVisible,
15814
+ modelOcclusionEnable,
15815
+ itemLabels,
15816
+ wrapper,
15817
+ displayStrategyType,
15818
+ div_elementresize_handler
15819
+ ];
15820
+ }
15821
+
15822
+ class ItemLabelComponent extends internal.SvelteComponent {
15823
+ constructor(options) {
15824
+ super();
15825
+
15826
+ internal.init(
15827
+ this,
15828
+ options,
15829
+ instance,
15830
+ create_fragment,
15831
+ internal.safe_not_equal,
15832
+ {
15833
+ five: 0,
15834
+ modelOcclusionEnable: 6,
15835
+ itemLabels: 7,
15836
+ wrapper: 8,
15837
+ hooks: 1,
15838
+ displayStrategyType: 9
15839
+ },
15840
+ add_css
15841
+ );
15842
+ }
15843
+ }
15844
+
15845
+ /** @description 转成内部所需数据 */
15846
+ function parseItemLabelPluginData(data) {
15847
+ return data.item_labels.map(label => (Object.assign({ modelPosition: [label.position[0], label.position[1], label.position[2]] }, label)));
15848
+ }
15849
+
15850
+ const Plugin = (five$1, params) => {
15851
+ var _a, _b;
15852
+ const pluginState = {
15853
+ container: document.createElement('div'),
15854
+ data: null,
15855
+ enabled: true,
15856
+ fiveModeEnabled: true,
15857
+ itemLabels: [],
15858
+ wrapper: null,
15859
+ app: undefined,
15860
+ hooks: new five.Subscribe(),
15861
+ modelOcclusionEnable: (_a = params === null || params === void 0 ? void 0 : params.modelOcclusionEnable) !== null && _a !== void 0 ? _a : true,
15862
+ displayStrategyType: (_b = params === null || params === void 0 ? void 0 : params.displayStrategyType) !== null && _b !== void 0 ? _b : exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.SMALL,
15863
+ };
15864
+ pluginState.container.setAttribute('class', 'item-label-plugin-container');
15865
+ pluginState.container.style.cssText = `
15866
+ position: absolute;
15867
+ left: 0;
15868
+ top: 0;
15869
+ width: 100%;
15870
+ height: 100%;
15871
+ z-index: 5;
15872
+ `;
15873
+ pluginState.container.style.pointerEvents = 'none'; // 写到 cssText 里不生效
15874
+ const appendTo = (wrapper) => {
15875
+ pluginState.wrapper = wrapper;
15876
+ wrapper.appendChild(pluginState.container);
15877
+ render();
15878
+ return true;
15879
+ };
15880
+ const load = (data) => {
15881
+ pluginState.itemLabels = parseItemLabelPluginData(data);
15882
+ render();
15883
+ };
15884
+ const enable = () => {
15885
+ if (pluginState.enabled)
15886
+ return true;
15887
+ pluginState.enabled = true;
15888
+ render();
15889
+ return true;
15890
+ };
15891
+ const disable = () => {
15892
+ if (!pluginState.enabled)
15893
+ return true;
15894
+ pluginState.enabled = false;
15895
+ render();
15896
+ return true;
15897
+ };
15898
+ const dispose = () => {
15899
+ removeListener4Five();
15900
+ pluginState.container.remove();
15901
+ };
15902
+ const render = () => {
15903
+ var _a;
15904
+ if (!pluginState.wrapper)
15905
+ return;
15906
+ // 只要不可展示,销毁容器
15907
+ if (!pluginState.enabled || !pluginState.fiveModeEnabled) {
15908
+ (_a = pluginState.app) === null || _a === void 0 ? void 0 : _a.$destroy();
15909
+ pluginState.app = undefined;
15910
+ return;
15911
+ }
15912
+ // 正常显示时,分为 app 存在和不存在两种情况,如果存在,传值,不存在则初始化并传值
15913
+ if (!pluginState.app) {
15914
+ pluginState.app = new ItemLabelComponent({
15915
+ target: pluginState.container,
15916
+ props: {
15917
+ five: five$1,
15918
+ modelOcclusionEnable: pluginState.modelOcclusionEnable,
15919
+ itemLabels: pluginState.itemLabels,
15920
+ wrapper: pluginState.wrapper,
15921
+ hooks: pluginState.hooks,
15922
+ displayStrategyType: pluginState.displayStrategyType
15923
+ }
15924
+ });
15925
+ }
15926
+ else {
15927
+ pluginState.app.$set({
15928
+ five: five$1,
15929
+ itemLabels: pluginState.itemLabels
15930
+ });
15931
+ }
15932
+ };
15933
+ // 添加 five 监听
15934
+ const addListener4Five = () => {
15935
+ five$1.on('modeChange', onFiveModeChange);
15936
+ five$1.once('dispose', dispose);
15937
+ };
15938
+ // 取消 five 监听
15939
+ const removeListener4Five = () => {
15940
+ five$1.off('modeChange', onFiveModeChange);
15941
+ };
15942
+ const onFiveModeChange = (mode) => {
15943
+ if (!pluginState.enabled)
15944
+ return;
15945
+ pluginState.fiveModeEnabled = false;
15946
+ render();
15947
+ five$1.once('initAnimationEnded', () => {
15948
+ pluginState.fiveModeEnabled = true;
15949
+ render();
15950
+ });
15951
+ };
15952
+ addListener4Five();
15953
+ return {
15954
+ appendTo,
15955
+ load,
15956
+ enable,
15957
+ disable,
15958
+ dispose,
15959
+ hooks: pluginState.hooks
15960
+ };
15961
+ };
15962
+
15963
+ const itemLabelPluginServerParams = {
15964
+ name: 'ItemLabelPlugin',
15965
+ version: 0,
15966
+ };
15967
+
15316
15968
  exports.CSS3DRenderPlugin = CSS3DRenderPlugin;
15317
15969
  exports.CameraMovementPlugin = CameraMovementPlugin;
15318
15970
  exports.FLOOR_TYPE_MAP = FLOOR_TYPE_MAP;
15971
+ exports.ItemLabelPlugin = Plugin;
15319
15972
  exports.ModelChassisCompassPlugin = ModelChassisCompassPlugin;
15320
15973
  exports.ModelEntryDoorGuidePlugin = ModelEntryDoorGuidePlugin;
15321
15974
  exports.ModelFloorplanPlugin = ModelFloorplanPlugin;
@@ -15332,6 +15985,7 @@
15332
15985
  exports.ROOM_FETILE_TYPE_MAP = ROOM_FETILE_TYPE_MAP;
15333
15986
  exports.ROOM_TYPE_MAP = ROOM_TYPE_MAP;
15334
15987
  exports.TopviewFloorplanPlugin = TopviewFloorplanPlugin;
15988
+ exports.itemLabelPluginServerParams = itemLabelPluginServerParams;
15335
15989
  exports.modelItemLabelPluginServerParams = modelItemLabelPluginServerParams;
15336
15990
  exports.modelRoomLabelPluginServerParams = modelRoomLabelPluginServerParams;
15337
15991
  exports.panoCompassPluginServerParams = panoCompassPluginServerParams;