@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.es.js CHANGED
@@ -462,11 +462,11 @@ const ROOM_LABEL_BG = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAA8CAY
462
462
 
463
463
  /* src/ModelRoomLabelPlugin/RoomLabelItem.svelte generated by Svelte v3.47.0 */
464
464
 
465
- function add_css$m(target) {
465
+ function add_css$o(target) {
466
466
  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}");
467
467
  }
468
468
 
469
- function create_fragment$q(ctx) {
469
+ function create_fragment$s(ctx) {
470
470
  let div1;
471
471
  let span;
472
472
  let t0_value = /*roomLabel*/ ctx[0].name + "";
@@ -533,7 +533,7 @@ function create_fragment$q(ctx) {
533
533
  };
534
534
  }
535
535
 
536
- function instance$q($$self, $$props, $$invalidate) {
536
+ function instance$s($$self, $$props, $$invalidate) {
537
537
  let { five } = $$props;
538
538
  let { roomLabel } = $$props;
539
539
 
@@ -556,7 +556,7 @@ function instance$q($$self, $$props, $$invalidate) {
556
556
  class RoomLabelItem extends SvelteComponent {
557
557
  constructor(options) {
558
558
  super();
559
- init(this, options, instance$q, create_fragment$q, safe_not_equal, { five: 2, roomLabel: 0 }, add_css$m);
559
+ init(this, options, instance$s, create_fragment$s, safe_not_equal, { five: 2, roomLabel: 0 }, add_css$o);
560
560
  }
561
561
  }
562
562
 
@@ -564,18 +564,18 @@ class RoomLabelItem extends SvelteComponent {
564
564
 
565
565
  const { Map: Map_1 } = globals;
566
566
 
567
- function add_css$l(target) {
567
+ function add_css$n(target) {
568
568
  append_styles(target, "svelte-9eg4zi", ".room-labels-container.svelte-9eg4zi{width:100%;height:100%;position:relative;color:#fff}");
569
569
  }
570
570
 
571
- function get_each_context$9(ctx, list, i) {
571
+ function get_each_context$a(ctx, list, i) {
572
572
  const child_ctx = ctx.slice();
573
573
  child_ctx[12] = list[i];
574
574
  return child_ctx;
575
575
  }
576
576
 
577
577
  // (82:2) {#each roomLabels as roomLableItem (roomLableItem.id)}
578
- function create_each_block$9(key_1, ctx) {
578
+ function create_each_block$a(key_1, ctx) {
579
579
  let first;
580
580
  let roomlabelitem;
581
581
  let current;
@@ -623,7 +623,7 @@ function create_each_block$9(key_1, ctx) {
623
623
  };
624
624
  }
625
625
 
626
- function create_fragment$p(ctx) {
626
+ function create_fragment$r(ctx) {
627
627
  let div;
628
628
  let each_blocks = [];
629
629
  let each_1_lookup = new Map_1();
@@ -633,9 +633,9 @@ function create_fragment$p(ctx) {
633
633
  const get_key = ctx => /*roomLableItem*/ ctx[12].id;
634
634
 
635
635
  for (let i = 0; i < each_value.length; i += 1) {
636
- let child_ctx = get_each_context$9(ctx, each_value, i);
636
+ let child_ctx = get_each_context$a(ctx, each_value, i);
637
637
  let key = get_key(child_ctx);
638
- each_1_lookup.set(key, each_blocks[i] = create_each_block$9(key, child_ctx));
638
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$a(key, child_ctx));
639
639
  }
640
640
 
641
641
  return {
@@ -663,7 +663,7 @@ function create_fragment$p(ctx) {
663
663
  if (dirty & /*roomLabels, five*/ 3) {
664
664
  each_value = /*roomLabels*/ ctx[0];
665
665
  group_outros();
666
- each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, outro_and_destroy_block, create_each_block$9, null, get_each_context$9);
666
+ each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, outro_and_destroy_block, create_each_block$a, null, get_each_context$a);
667
667
  check_outros();
668
668
  }
669
669
  },
@@ -695,7 +695,7 @@ function create_fragment$p(ctx) {
695
695
  };
696
696
  }
697
697
 
698
- function instance$p($$self, $$props, $$invalidate) {
698
+ function instance$r($$self, $$props, $$invalidate) {
699
699
  let rendererSize;
700
700
  let { five } = $$props;
701
701
  let { roomLabels } = $$props;
@@ -820,7 +820,7 @@ function instance$p($$self, $$props, $$invalidate) {
820
820
  class RoomLabelItems extends SvelteComponent {
821
821
  constructor(options) {
822
822
  super();
823
- init(this, options, instance$p, create_fragment$p, safe_not_equal, { five: 1, roomLabels: 0 }, add_css$l);
823
+ init(this, options, instance$r, create_fragment$r, safe_not_equal, { five: 1, roomLabels: 0 }, add_css$n);
824
824
  }
825
825
  }
826
826
 
@@ -1219,11 +1219,11 @@ function rad2Deg$1(rad) {
1219
1219
 
1220
1220
  /* src/floorplan/Components/Camera.svelte generated by Svelte v3.47.0 */
1221
1221
 
1222
- function add_css$k(target) {
1222
+ function add_css$m(target) {
1223
1223
  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%}");
1224
1224
  }
1225
1225
 
1226
- function create_fragment$o(ctx) {
1226
+ function create_fragment$q(ctx) {
1227
1227
  let div1;
1228
1228
  let div0;
1229
1229
 
@@ -1260,7 +1260,7 @@ function create_fragment$o(ctx) {
1260
1260
  };
1261
1261
  }
1262
1262
 
1263
- function instance$o($$self, $$props, $$invalidate) {
1263
+ function instance$q($$self, $$props, $$invalidate) {
1264
1264
  let { panoIndex } = $$props;
1265
1265
  let { floorplanData } = $$props;
1266
1266
  let { lastPanoramaLongitude } = $$props;
@@ -1306,8 +1306,8 @@ class Camera$1 extends SvelteComponent {
1306
1306
  init(
1307
1307
  this,
1308
1308
  options,
1309
- instance$o,
1310
- create_fragment$o,
1309
+ instance$q,
1310
+ create_fragment$q,
1311
1311
  safe_not_equal,
1312
1312
  {
1313
1313
  panoIndex: 5,
@@ -1315,7 +1315,7 @@ class Camera$1 extends SvelteComponent {
1315
1315
  lastPanoramaLongitude: 7,
1316
1316
  cameraImageUrl: 0
1317
1317
  },
1318
- add_css$k
1318
+ add_css$m
1319
1319
  );
1320
1320
  }
1321
1321
  }
@@ -1324,7 +1324,7 @@ const COMPASS_IMAGE = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArUAAAB7CAM
1324
1324
 
1325
1325
  /* src/floorplan/Components/Compass.svelte generated by Svelte v3.47.0 */
1326
1326
 
1327
- function add_css$j(target) {
1327
+ function add_css$l(target) {
1328
1328
  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}");
1329
1329
  }
1330
1330
 
@@ -1365,7 +1365,7 @@ function create_if_block$8(ctx) {
1365
1365
  };
1366
1366
  }
1367
1367
 
1368
- function create_fragment$n(ctx) {
1368
+ function create_fragment$p(ctx) {
1369
1369
  let if_block_anchor;
1370
1370
  let if_block = /*northRad*/ ctx[1] && create_if_block$8(ctx);
1371
1371
 
@@ -1394,7 +1394,7 @@ function rad2Deg(rad) {
1394
1394
  return rad / Math.PI * 180;
1395
1395
  }
1396
1396
 
1397
- function instance$n($$self, $$props, $$invalidate) {
1397
+ function instance$p($$self, $$props, $$invalidate) {
1398
1398
  var _a;
1399
1399
  let { floorplanData } = $$props;
1400
1400
  let { northDesc } = $$props;
@@ -1417,17 +1417,17 @@ function instance$n($$self, $$props, $$invalidate) {
1417
1417
  class Compass extends SvelteComponent {
1418
1418
  constructor(options) {
1419
1419
  super();
1420
- init(this, options, instance$n, create_fragment$n, safe_not_equal, { floorplanData: 3, northDesc: 0 }, add_css$j);
1420
+ init(this, options, instance$p, create_fragment$p, safe_not_equal, { floorplanData: 3, northDesc: 0 }, add_css$l);
1421
1421
  }
1422
1422
  }
1423
1423
 
1424
1424
  /* src/floorplan/Components/Normalmage.svelte generated by Svelte v3.47.0 */
1425
1425
 
1426
- function add_css$i(target) {
1426
+ function add_css$k(target) {
1427
1427
  append_styles(target, "svelte-1gfoniz", "img.svelte-1gfoniz{width:100%;height:100%}");
1428
1428
  }
1429
1429
 
1430
- function create_fragment$m(ctx) {
1430
+ function create_fragment$o(ctx) {
1431
1431
  let img;
1432
1432
  let img_src_value;
1433
1433
 
@@ -1454,7 +1454,7 @@ function create_fragment$m(ctx) {
1454
1454
  };
1455
1455
  }
1456
1456
 
1457
- function instance$m($$self, $$props, $$invalidate) {
1457
+ function instance$o($$self, $$props, $$invalidate) {
1458
1458
  let { url } = $$props;
1459
1459
 
1460
1460
  $$self.$$set = $$props => {
@@ -1467,17 +1467,17 @@ function instance$m($$self, $$props, $$invalidate) {
1467
1467
  class Normalmage extends SvelteComponent {
1468
1468
  constructor(options) {
1469
1469
  super();
1470
- init(this, options, instance$m, create_fragment$m, safe_not_equal, { url: 0 }, add_css$i);
1470
+ init(this, options, instance$o, create_fragment$o, safe_not_equal, { url: 0 }, add_css$k);
1471
1471
  }
1472
1472
  }
1473
1473
 
1474
1474
  /* src/floorplan/Components/SvgImage.svelte generated by Svelte v3.47.0 */
1475
1475
 
1476
- function add_css$h(target) {
1476
+ function add_css$j(target) {
1477
1477
  append_styles(target, "svelte-ub47ya", ".floorplan-plugin__base-image.svelte-ub47ya{width:100%;height:100%}");
1478
1478
  }
1479
1479
 
1480
- function create_fragment$l(ctx) {
1480
+ function create_fragment$n(ctx) {
1481
1481
  let div;
1482
1482
  let html_tag;
1483
1483
  let t;
@@ -1510,7 +1510,7 @@ function create_fragment$l(ctx) {
1510
1510
  };
1511
1511
  }
1512
1512
 
1513
- function instance$l($$self, $$props, $$invalidate) {
1513
+ function instance$n($$self, $$props, $$invalidate) {
1514
1514
  let { content } = $$props;
1515
1515
 
1516
1516
  const svgStyle = `
@@ -1534,13 +1534,13 @@ function instance$l($$self, $$props, $$invalidate) {
1534
1534
  class SvgImage extends SvelteComponent {
1535
1535
  constructor(options) {
1536
1536
  super();
1537
- init(this, options, instance$l, create_fragment$l, safe_not_equal, { content: 0 }, add_css$h);
1537
+ init(this, options, instance$n, create_fragment$n, safe_not_equal, { content: 0 }, add_css$j);
1538
1538
  }
1539
1539
  }
1540
1540
 
1541
1541
  /* src/floorplan/Components/BaseImage.svelte generated by Svelte v3.47.0 */
1542
1542
 
1543
- function add_css$g(target) {
1543
+ function add_css$i(target) {
1544
1544
  append_styles(target, "svelte-ozpg4a", ".floorplan-plugin__base-image.svelte-ozpg4a{position:absolute;z-index:10;width:100%;height:100%;pointer-events:none}");
1545
1545
  }
1546
1546
 
@@ -1615,7 +1615,7 @@ function create_if_block$7(ctx) {
1615
1615
  };
1616
1616
  }
1617
1617
 
1618
- function create_fragment$k(ctx) {
1618
+ function create_fragment$m(ctx) {
1619
1619
  let div;
1620
1620
  let current_block_type_index;
1621
1621
  let if_block;
@@ -1703,7 +1703,7 @@ function create_fragment$k(ctx) {
1703
1703
  };
1704
1704
  }
1705
1705
 
1706
- function instance$k($$self, $$props, $$invalidate) {
1706
+ function instance$m($$self, $$props, $$invalidate) {
1707
1707
  let imageData;
1708
1708
  let svgContent;
1709
1709
  var _a, _b;
@@ -1735,13 +1735,13 @@ function instance$k($$self, $$props, $$invalidate) {
1735
1735
  class BaseImage extends SvelteComponent {
1736
1736
  constructor(options) {
1737
1737
  super();
1738
- init(this, options, instance$k, create_fragment$k, safe_not_equal, { floorIndex: 2, floorplanData: 3 }, add_css$g);
1738
+ init(this, options, instance$m, create_fragment$m, safe_not_equal, { floorIndex: 2, floorplanData: 3 }, add_css$i);
1739
1739
  }
1740
1740
  }
1741
1741
 
1742
1742
  /* src/floorplan/Components/RoomLabels/RoomLabel.svelte generated by Svelte v3.47.0 */
1743
1743
 
1744
- function add_css$f(target) {
1744
+ function add_css$h(target) {
1745
1745
  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}");
1746
1746
  }
1747
1747
 
@@ -1806,7 +1806,7 @@ function create_if_block$6(ctx) {
1806
1806
  };
1807
1807
  }
1808
1808
 
1809
- function create_fragment$j(ctx) {
1809
+ function create_fragment$l(ctx) {
1810
1810
  let div;
1811
1811
 
1812
1812
  function select_block_type(ctx, dirty) {
@@ -1855,7 +1855,7 @@ function create_fragment$j(ctx) {
1855
1855
  };
1856
1856
  }
1857
1857
 
1858
- function instance$j($$self, $$props, $$invalidate) {
1858
+ function instance$l($$self, $$props, $$invalidate) {
1859
1859
  let userConfigElement;
1860
1860
  let { room } = $$props;
1861
1861
  let { getLabelElement } = $$props;
@@ -1889,17 +1889,17 @@ function instance$j($$self, $$props, $$invalidate) {
1889
1889
  class RoomLabel extends SvelteComponent {
1890
1890
  constructor(options) {
1891
1891
  super();
1892
- init(this, options, instance$j, create_fragment$j, safe_not_equal, { room: 0, getLabelElement: 1 }, add_css$f);
1892
+ init(this, options, instance$l, create_fragment$l, safe_not_equal, { room: 0, getLabelElement: 1 }, add_css$h);
1893
1893
  }
1894
1894
  }
1895
1895
 
1896
1896
  /* src/floorplan/Components/RoomLabels/RoomLabels.svelte generated by Svelte v3.47.0 */
1897
1897
 
1898
- function add_css$e(target) {
1898
+ function add_css$g(target) {
1899
1899
  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}");
1900
1900
  }
1901
1901
 
1902
- function get_each_context$8(ctx, list, i) {
1902
+ function get_each_context$9(ctx, list, i) {
1903
1903
  const child_ctx = ctx.slice();
1904
1904
  child_ctx[4] = list[i];
1905
1905
  return child_ctx;
@@ -1915,9 +1915,9 @@ function create_if_block$5(ctx) {
1915
1915
  const get_key = ctx => /*room*/ ctx[4].id;
1916
1916
 
1917
1917
  for (let i = 0; i < each_value.length; i += 1) {
1918
- let child_ctx = get_each_context$8(ctx, each_value, i);
1918
+ let child_ctx = get_each_context$9(ctx, each_value, i);
1919
1919
  let key = get_key(child_ctx);
1920
- each_1_lookup.set(key, each_blocks[i] = create_each_block$8(key, child_ctx));
1920
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$9(key, child_ctx));
1921
1921
  }
1922
1922
 
1923
1923
  return {
@@ -1943,7 +1943,7 @@ function create_if_block$5(ctx) {
1943
1943
  if (dirty & /*rooms, getLabelElement*/ 3) {
1944
1944
  each_value = /*rooms*/ ctx[1];
1945
1945
  group_outros();
1946
- each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, outro_and_destroy_block, create_each_block$8, null, get_each_context$8);
1946
+ each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, outro_and_destroy_block, create_each_block$9, null, get_each_context$9);
1947
1947
  check_outros();
1948
1948
  }
1949
1949
  },
@@ -1974,7 +1974,7 @@ function create_if_block$5(ctx) {
1974
1974
  }
1975
1975
 
1976
1976
  // (10:4) {#each rooms as room (room.id)}
1977
- function create_each_block$8(key_1, ctx) {
1977
+ function create_each_block$9(key_1, ctx) {
1978
1978
  let first;
1979
1979
  let roomlabel;
1980
1980
  let current;
@@ -2037,7 +2037,7 @@ function create_each_block$8(key_1, ctx) {
2037
2037
  };
2038
2038
  }
2039
2039
 
2040
- function create_fragment$i(ctx) {
2040
+ function create_fragment$k(ctx) {
2041
2041
  let if_block_anchor;
2042
2042
  let current;
2043
2043
  let if_block = /*rooms*/ ctx[1] && create_if_block$5(ctx);
@@ -2092,7 +2092,7 @@ function create_fragment$i(ctx) {
2092
2092
  };
2093
2093
  }
2094
2094
 
2095
- function instance$i($$self, $$props, $$invalidate) {
2095
+ function instance$k($$self, $$props, $$invalidate) {
2096
2096
  let rooms;
2097
2097
  let { floorIndex } = $$props;
2098
2098
  let { floorplanData } = $$props;
@@ -2120,26 +2120,26 @@ class RoomLabels extends SvelteComponent {
2120
2120
  init(
2121
2121
  this,
2122
2122
  options,
2123
- instance$i,
2124
- create_fragment$i,
2123
+ instance$k,
2124
+ create_fragment$k,
2125
2125
  safe_not_equal,
2126
2126
  {
2127
2127
  floorIndex: 2,
2128
2128
  floorplanData: 3,
2129
2129
  getLabelElement: 0
2130
2130
  },
2131
- add_css$e
2131
+ add_css$g
2132
2132
  );
2133
2133
  }
2134
2134
  }
2135
2135
 
2136
2136
  /* src/floorplan/Components/RuleLabels/RuleItem.svelte generated by Svelte v3.47.0 */
2137
2137
 
2138
- function add_css$d(target) {
2138
+ function add_css$f(target) {
2139
2139
  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}");
2140
2140
  }
2141
2141
 
2142
- function get_each_context$7(ctx, list, i) {
2142
+ function get_each_context$8(ctx, list, i) {
2143
2143
  const child_ctx = ctx.slice();
2144
2144
  child_ctx[10] = list[i];
2145
2145
  child_ctx[12] = i;
@@ -2174,7 +2174,7 @@ function create_each_block_1(ctx) {
2174
2174
  }
2175
2175
 
2176
2176
  // (62:4) {#each rulerTexts as textItem, textItemIndex (textItemIndex)}
2177
- function create_each_block$7(key_1, ctx) {
2177
+ function create_each_block$8(key_1, ctx) {
2178
2178
  let div1;
2179
2179
  let div0;
2180
2180
  let t0_value = /*textItem*/ ctx[10].distance + "";
@@ -2211,7 +2211,7 @@ function create_each_block$7(key_1, ctx) {
2211
2211
  };
2212
2212
  }
2213
2213
 
2214
- function create_fragment$h(ctx) {
2214
+ function create_fragment$j(ctx) {
2215
2215
  let div3;
2216
2216
  let div0;
2217
2217
  let t0;
@@ -2232,9 +2232,9 @@ function create_fragment$h(ctx) {
2232
2232
  const get_key = ctx => /*textItemIndex*/ ctx[12];
2233
2233
 
2234
2234
  for (let i = 0; i < each_value.length; i += 1) {
2235
- let child_ctx = get_each_context$7(ctx, each_value, i);
2235
+ let child_ctx = get_each_context$8(ctx, each_value, i);
2236
2236
  let key = get_key(child_ctx);
2237
- each1_lookup.set(key, each_blocks[i] = create_each_block$7(key, child_ctx));
2237
+ each1_lookup.set(key, each_blocks[i] = create_each_block$8(key, child_ctx));
2238
2238
  }
2239
2239
 
2240
2240
  return {
@@ -2307,7 +2307,7 @@ function create_fragment$h(ctx) {
2307
2307
 
2308
2308
  if (dirty & /*rulerTexts, isRow*/ 10) {
2309
2309
  each_value = /*rulerTexts*/ ctx[3];
2310
- each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each1_lookup, div2, destroy_block, create_each_block$7, null, get_each_context$7);
2310
+ each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each1_lookup, div2, destroy_block, create_each_block$8, null, get_each_context$8);
2311
2311
  }
2312
2312
 
2313
2313
  if (dirty & /*type*/ 1 && div3_class_value !== (div3_class_value = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + /*type*/ ctx[0] + " svelte-xt7p1v")) {
@@ -2334,7 +2334,7 @@ function create_fragment$h(ctx) {
2334
2334
  const padding$1 = 1000;
2335
2335
  const exteriorWallOffset$1 = 180;
2336
2336
 
2337
- function instance$h($$self, $$props, $$invalidate) {
2337
+ function instance$j($$self, $$props, $$invalidate) {
2338
2338
  let { type } = $$props;
2339
2339
  let { data } = $$props;
2340
2340
  let { bounding } = $$props;
@@ -2393,17 +2393,17 @@ function instance$h($$self, $$props, $$invalidate) {
2393
2393
  class RuleItem extends SvelteComponent {
2394
2394
  constructor(options) {
2395
2395
  super();
2396
- init(this, options, instance$h, create_fragment$h, safe_not_equal, { type: 0, data: 4, bounding: 5 }, add_css$d);
2396
+ init(this, options, instance$j, create_fragment$j, safe_not_equal, { type: 0, data: 4, bounding: 5 }, add_css$f);
2397
2397
  }
2398
2398
  }
2399
2399
 
2400
2400
  /* src/floorplan/Components/RuleLabels/RuleLabels.svelte generated by Svelte v3.47.0 */
2401
2401
 
2402
- function add_css$c(target) {
2402
+ function add_css$e(target) {
2403
2403
  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}");
2404
2404
  }
2405
2405
 
2406
- function get_each_context$6(ctx, list, i) {
2406
+ function get_each_context$7(ctx, list, i) {
2407
2407
  const child_ctx = ctx.slice();
2408
2408
  child_ctx[12] = list[i][0];
2409
2409
  child_ctx[13] = list[i][1];
@@ -2411,7 +2411,7 @@ function get_each_context$6(ctx, list, i) {
2411
2411
  }
2412
2412
 
2413
2413
  // (19:2) {#each ruleLabelArray as [type, data] (type)}
2414
- function create_each_block$6(key_1, ctx) {
2414
+ function create_each_block$7(key_1, ctx) {
2415
2415
  let first;
2416
2416
  let ruleitem;
2417
2417
  let current;
@@ -2476,7 +2476,7 @@ function create_each_block$6(key_1, ctx) {
2476
2476
  };
2477
2477
  }
2478
2478
 
2479
- function create_fragment$g(ctx) {
2479
+ function create_fragment$i(ctx) {
2480
2480
  let div;
2481
2481
  let each_blocks = [];
2482
2482
  let each_1_lookup = new Map();
@@ -2485,9 +2485,9 @@ function create_fragment$g(ctx) {
2485
2485
  const get_key = ctx => /*type*/ ctx[12];
2486
2486
 
2487
2487
  for (let i = 0; i < each_value.length; i += 1) {
2488
- let child_ctx = get_each_context$6(ctx, each_value, i);
2488
+ let child_ctx = get_each_context$7(ctx, each_value, i);
2489
2489
  let key = get_key(child_ctx);
2490
- each_1_lookup.set(key, each_blocks[i] = create_each_block$6(key, child_ctx));
2490
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$7(key, child_ctx));
2491
2491
  }
2492
2492
 
2493
2493
  return {
@@ -2515,7 +2515,7 @@ function create_fragment$g(ctx) {
2515
2515
  if (dirty & /*ruleLabelArray, bounding*/ 9) {
2516
2516
  each_value = /*ruleLabelArray*/ ctx[3];
2517
2517
  group_outros();
2518
- each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, outro_and_destroy_block, create_each_block$6, null, get_each_context$6);
2518
+ each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, outro_and_destroy_block, create_each_block$7, null, get_each_context$7);
2519
2519
  check_outros();
2520
2520
  }
2521
2521
 
@@ -2556,7 +2556,7 @@ function create_fragment$g(ctx) {
2556
2556
  const padding = 1000;
2557
2557
  const exteriorWallOffset = 180;
2558
2558
 
2559
- function instance$g($$self, $$props, $$invalidate) {
2559
+ function instance$i($$self, $$props, $$invalidate) {
2560
2560
  let bounding;
2561
2561
  let ruleLabelData;
2562
2562
  let ruleLabelDataKeys;
@@ -2636,13 +2636,13 @@ function instance$g($$self, $$props, $$invalidate) {
2636
2636
  class RuleLabels extends SvelteComponent {
2637
2637
  constructor(options) {
2638
2638
  super();
2639
- init(this, options, instance$g, create_fragment$g, safe_not_equal, { floorIndex: 4, floorplanData: 5 }, add_css$c);
2639
+ init(this, options, instance$i, create_fragment$i, safe_not_equal, { floorIndex: 4, floorplanData: 5 }, add_css$e);
2640
2640
  }
2641
2641
  }
2642
2642
 
2643
2643
  /* src/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte generated by Svelte v3.47.0 */
2644
2644
 
2645
- function create_fragment$f(ctx) {
2645
+ function create_fragment$h(ctx) {
2646
2646
  let path_1;
2647
2647
 
2648
2648
  return {
@@ -2667,7 +2667,7 @@ function create_fragment$f(ctx) {
2667
2667
  };
2668
2668
  }
2669
2669
 
2670
- function instance$f($$self, $$props, $$invalidate) {
2670
+ function instance$h($$self, $$props, $$invalidate) {
2671
2671
  let d;
2672
2672
  let { path } = $$props;
2673
2673
 
@@ -2687,13 +2687,13 @@ function instance$f($$self, $$props, $$invalidate) {
2687
2687
  class RoomMaterial_0 extends SvelteComponent {
2688
2688
  constructor(options) {
2689
2689
  super();
2690
- init(this, options, instance$f, create_fragment$f, safe_not_equal, { path: 1 });
2690
+ init(this, options, instance$h, create_fragment$h, safe_not_equal, { path: 1 });
2691
2691
  }
2692
2692
  }
2693
2693
 
2694
2694
  /* src/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte generated by Svelte v3.47.0 */
2695
2695
 
2696
- function create_fragment$e(ctx) {
2696
+ function create_fragment$g(ctx) {
2697
2697
  let defs;
2698
2698
  let pattern;
2699
2699
  let rect;
@@ -2753,7 +2753,7 @@ function create_fragment$e(ctx) {
2753
2753
 
2754
2754
  const halfWidth = 6;
2755
2755
 
2756
- function instance$e($$self, $$props, $$invalidate) {
2756
+ function instance$g($$self, $$props, $$invalidate) {
2757
2757
  let d;
2758
2758
  let { path } = $$props;
2759
2759
  const width = halfWidth * 2;
@@ -2775,13 +2775,13 @@ function instance$e($$self, $$props, $$invalidate) {
2775
2775
  class RoomMaterial_1 extends SvelteComponent {
2776
2776
  constructor(options) {
2777
2777
  super();
2778
- init(this, options, instance$e, create_fragment$e, safe_not_equal, { path: 3 });
2778
+ init(this, options, instance$g, create_fragment$g, safe_not_equal, { path: 3 });
2779
2779
  }
2780
2780
  }
2781
2781
 
2782
2782
  /* src/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte generated by Svelte v3.47.0 */
2783
2783
 
2784
- function create_fragment$d(ctx) {
2784
+ function create_fragment$f(ctx) {
2785
2785
  let defs;
2786
2786
  let pattern0;
2787
2787
  let rect0;
@@ -2880,7 +2880,7 @@ function create_fragment$d(ctx) {
2880
2880
  };
2881
2881
  }
2882
2882
 
2883
- function instance$d($$self, $$props, $$invalidate) {
2883
+ function instance$f($$self, $$props, $$invalidate) {
2884
2884
  let d;
2885
2885
  let { path } = $$props;
2886
2886
 
@@ -2900,17 +2900,17 @@ function instance$d($$self, $$props, $$invalidate) {
2900
2900
  class RoomMaterial_2 extends SvelteComponent {
2901
2901
  constructor(options) {
2902
2902
  super();
2903
- init(this, options, instance$d, create_fragment$d, safe_not_equal, { path: 1 });
2903
+ init(this, options, instance$f, create_fragment$f, safe_not_equal, { path: 1 });
2904
2904
  }
2905
2905
  }
2906
2906
 
2907
2907
  /* src/floorplan/Components/RoomMaterials/RoomMaterial.svelte generated by Svelte v3.47.0 */
2908
2908
 
2909
- function add_css$b(target) {
2909
+ function add_css$d(target) {
2910
2910
  append_styles(target, "svelte-1d4xj70", "svg.svelte-1d4xj70{position:absolute;width:100%;height:100%;overflow:visible}");
2911
2911
  }
2912
2912
 
2913
- function get_each_context$5(ctx, list, i) {
2913
+ function get_each_context$6(ctx, list, i) {
2914
2914
  const child_ctx = ctx.slice();
2915
2915
  child_ctx[5] = list[i];
2916
2916
  return child_ctx;
@@ -3019,7 +3019,7 @@ function create_if_block$4(ctx) {
3019
3019
  }
3020
3020
 
3021
3021
  // (13:2) {#each rooms as room}
3022
- function create_each_block$5(ctx) {
3022
+ function create_each_block$6(ctx) {
3023
3023
  let svg;
3024
3024
  let current_block_type_index;
3025
3025
  let if_block;
@@ -3094,14 +3094,14 @@ function create_each_block$5(ctx) {
3094
3094
  };
3095
3095
  }
3096
3096
 
3097
- function create_fragment$c(ctx) {
3097
+ function create_fragment$e(ctx) {
3098
3098
  let div;
3099
3099
  let current;
3100
3100
  let each_value = /*rooms*/ ctx[0];
3101
3101
  let each_blocks = [];
3102
3102
 
3103
3103
  for (let i = 0; i < each_value.length; i += 1) {
3104
- each_blocks[i] = create_each_block$5(get_each_context$5(ctx, each_value, i));
3104
+ each_blocks[i] = create_each_block$6(get_each_context$6(ctx, each_value, i));
3105
3105
  }
3106
3106
 
3107
3107
  const out = i => transition_out(each_blocks[i], 1, 1, () => {
@@ -3133,13 +3133,13 @@ function create_fragment$c(ctx) {
3133
3133
  let i;
3134
3134
 
3135
3135
  for (i = 0; i < each_value.length; i += 1) {
3136
- const child_ctx = get_each_context$5(ctx, each_value, i);
3136
+ const child_ctx = get_each_context$6(ctx, each_value, i);
3137
3137
 
3138
3138
  if (each_blocks[i]) {
3139
3139
  each_blocks[i].p(child_ctx, dirty);
3140
3140
  transition_in(each_blocks[i], 1);
3141
3141
  } else {
3142
- each_blocks[i] = create_each_block$5(child_ctx);
3142
+ each_blocks[i] = create_each_block$6(child_ctx);
3143
3143
  each_blocks[i].c();
3144
3144
  transition_in(each_blocks[i], 1);
3145
3145
  each_blocks[i].m(div, null);
@@ -3180,7 +3180,7 @@ function create_fragment$c(ctx) {
3180
3180
  };
3181
3181
  }
3182
3182
 
3183
- function instance$c($$self, $$props, $$invalidate) {
3183
+ function instance$e($$self, $$props, $$invalidate) {
3184
3184
  let rooms;
3185
3185
  let { floorIndex } = $$props;
3186
3186
  let { floorplanData } = $$props;
@@ -3206,17 +3206,17 @@ function instance$c($$self, $$props, $$invalidate) {
3206
3206
  class RoomMaterial extends SvelteComponent {
3207
3207
  constructor(options) {
3208
3208
  super();
3209
- init(this, options, instance$c, create_fragment$c, safe_not_equal, { floorIndex: 3, floorplanData: 4 }, add_css$b);
3209
+ init(this, options, instance$e, create_fragment$e, safe_not_equal, { floorIndex: 3, floorplanData: 4 }, add_css$d);
3210
3210
  }
3211
3211
  }
3212
3212
 
3213
3213
  /* src/floorplan/Components/RoomHighlight/Room.svelte generated by Svelte v3.47.0 */
3214
3214
 
3215
- function add_css$a(target) {
3215
+ function add_css$c(target) {
3216
3216
  append_styles(target, "svelte-19uvvss", "path.svelte-19uvvss{opacity:0}path.svelte-19uvvss:hover{opacity:0.1}");
3217
3217
  }
3218
3218
 
3219
- function create_fragment$b(ctx) {
3219
+ function create_fragment$d(ctx) {
3220
3220
  let path;
3221
3221
 
3222
3222
  return {
@@ -3238,7 +3238,7 @@ function create_fragment$b(ctx) {
3238
3238
  };
3239
3239
  }
3240
3240
 
3241
- function instance$b($$self, $$props, $$invalidate) {
3241
+ function instance$d($$self, $$props, $$invalidate) {
3242
3242
  let { room } = $$props;
3243
3243
  let { floorplanData } = $$props;
3244
3244
  const { bounding } = floorplanData;
@@ -3259,24 +3259,24 @@ function instance$b($$self, $$props, $$invalidate) {
3259
3259
  class Room extends SvelteComponent {
3260
3260
  constructor(options) {
3261
3261
  super();
3262
- init(this, options, instance$b, create_fragment$b, safe_not_equal, { room: 1, floorplanData: 2 }, add_css$a);
3262
+ init(this, options, instance$d, create_fragment$d, safe_not_equal, { room: 1, floorplanData: 2 }, add_css$c);
3263
3263
  }
3264
3264
  }
3265
3265
 
3266
3266
  /* src/floorplan/Components/RoomHighlight/RoomHighlight.svelte generated by Svelte v3.47.0 */
3267
3267
 
3268
- function add_css$9(target) {
3268
+ function add_css$b(target) {
3269
3269
  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}");
3270
3270
  }
3271
3271
 
3272
- function get_each_context$4(ctx, list, i) {
3272
+ function get_each_context$5(ctx, list, i) {
3273
3273
  const child_ctx = ctx.slice();
3274
3274
  child_ctx[4] = list[i];
3275
3275
  return child_ctx;
3276
3276
  }
3277
3277
 
3278
3278
  // (10:4) {#each floorplanData.floorDatas[floorIndex].rooms as room (room.id)}
3279
- function create_each_block$4(key_1, ctx) {
3279
+ function create_each_block$5(key_1, ctx) {
3280
3280
  let first;
3281
3281
  let room;
3282
3282
  let current;
@@ -3339,7 +3339,7 @@ function create_each_block$4(key_1, ctx) {
3339
3339
  };
3340
3340
  }
3341
3341
 
3342
- function create_fragment$a(ctx) {
3342
+ function create_fragment$c(ctx) {
3343
3343
  let div;
3344
3344
  let svg;
3345
3345
  let each_blocks = [];
@@ -3349,9 +3349,9 @@ function create_fragment$a(ctx) {
3349
3349
  const get_key = ctx => /*room*/ ctx[4].id;
3350
3350
 
3351
3351
  for (let i = 0; i < each_value.length; i += 1) {
3352
- let child_ctx = get_each_context$4(ctx, each_value, i);
3352
+ let child_ctx = get_each_context$5(ctx, each_value, i);
3353
3353
  let key = get_key(child_ctx);
3354
- each_1_lookup.set(key, each_blocks[i] = create_each_block$4(key, child_ctx));
3354
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$5(key, child_ctx));
3355
3355
  }
3356
3356
 
3357
3357
  return {
@@ -3383,7 +3383,7 @@ function create_fragment$a(ctx) {
3383
3383
  if (dirty & /*floorplanData, floorIndex*/ 3) {
3384
3384
  each_value = /*floorplanData*/ ctx[1].floorDatas[/*floorIndex*/ ctx[0]].rooms;
3385
3385
  group_outros();
3386
- each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, svg, outro_and_destroy_block, create_each_block$4, null, get_each_context$4);
3386
+ each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, svg, outro_and_destroy_block, create_each_block$5, null, get_each_context$5);
3387
3387
  check_outros();
3388
3388
  }
3389
3389
  },
@@ -3413,7 +3413,7 @@ function create_fragment$a(ctx) {
3413
3413
  };
3414
3414
  }
3415
3415
 
3416
- function instance$a($$self, $$props, $$invalidate) {
3416
+ function instance$c($$self, $$props, $$invalidate) {
3417
3417
  let { floorIndex } = $$props;
3418
3418
  let { floorplanData } = $$props;
3419
3419
  const boundingWidth = floorplanData.bounding.max.x - floorplanData.bounding.min.x;
@@ -3430,13 +3430,13 @@ function instance$a($$self, $$props, $$invalidate) {
3430
3430
  class RoomHighlight extends SvelteComponent {
3431
3431
  constructor(options) {
3432
3432
  super();
3433
- init(this, options, instance$a, create_fragment$a, safe_not_equal, { floorIndex: 0, floorplanData: 1 }, add_css$9);
3433
+ init(this, options, instance$c, create_fragment$c, safe_not_equal, { floorIndex: 0, floorplanData: 1 }, add_css$b);
3434
3434
  }
3435
3435
  }
3436
3436
 
3437
3437
  /* src/floorplan/Components/CurrentFloor.svelte generated by Svelte v3.47.0 */
3438
3438
 
3439
- function add_css$8(target) {
3439
+ function add_css$a(target) {
3440
3440
  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}");
3441
3441
  }
3442
3442
 
@@ -3607,7 +3607,7 @@ function create_if_block$3(ctx) {
3607
3607
  };
3608
3608
  }
3609
3609
 
3610
- function create_fragment$9(ctx) {
3610
+ function create_fragment$b(ctx) {
3611
3611
  let div;
3612
3612
  let roommaterial;
3613
3613
  let t0;
@@ -3807,7 +3807,7 @@ function create_fragment$9(ctx) {
3807
3807
  };
3808
3808
  }
3809
3809
 
3810
- function instance$9($$self, $$props, $$invalidate) {
3810
+ function instance$b($$self, $$props, $$invalidate) {
3811
3811
  let { isCurrent } = $$props;
3812
3812
  let { floorIndex } = $$props;
3813
3813
  let { hoverEnable } = $$props;
@@ -3844,8 +3844,8 @@ class CurrentFloor$1 extends SvelteComponent {
3844
3844
  init(
3845
3845
  this,
3846
3846
  options,
3847
- instance$9,
3848
- create_fragment$9,
3847
+ instance$b,
3848
+ create_fragment$b,
3849
3849
  safe_not_equal,
3850
3850
  {
3851
3851
  isCurrent: 0,
@@ -3856,18 +3856,18 @@ class CurrentFloor$1 extends SvelteComponent {
3856
3856
  floorplanData: 5,
3857
3857
  getLabelElement: 6
3858
3858
  },
3859
- add_css$8
3859
+ add_css$a
3860
3860
  );
3861
3861
  }
3862
3862
  }
3863
3863
 
3864
3864
  /* src/floorplan/Components/Main.svelte generated by Svelte v3.47.0 */
3865
3865
 
3866
- function add_css$7(target) {
3866
+ function add_css$9(target) {
3867
3867
  append_styles(target, "svelte-q5wdnn", ".floorplan-main.svelte-q5wdnn{width:100%;height:100%}");
3868
3868
  }
3869
3869
 
3870
- function get_each_context$3(ctx, list, i) {
3870
+ function get_each_context$4(ctx, list, i) {
3871
3871
  const child_ctx = ctx.slice();
3872
3872
  child_ctx[13] = list[i];
3873
3873
  return child_ctx;
@@ -3885,7 +3885,7 @@ function create_if_block$2(ctx) {
3885
3885
  let each_blocks = [];
3886
3886
 
3887
3887
  for (let i = 0; i < each_value.length; i += 1) {
3888
- each_blocks[i] = create_each_block$3(get_each_context$3(ctx, each_value, i));
3888
+ each_blocks[i] = create_each_block$4(get_each_context$4(ctx, each_value, i));
3889
3889
  }
3890
3890
 
3891
3891
  const out = i => transition_out(each_blocks[i], 1, 1, () => {
@@ -3945,13 +3945,13 @@ function create_if_block$2(ctx) {
3945
3945
  let i;
3946
3946
 
3947
3947
  for (i = 0; i < each_value.length; i += 1) {
3948
- const child_ctx = get_each_context$3(ctx, each_value, i);
3948
+ const child_ctx = get_each_context$4(ctx, each_value, i);
3949
3949
 
3950
3950
  if (each_blocks[i]) {
3951
3951
  each_blocks[i].p(child_ctx, dirty);
3952
3952
  transition_in(each_blocks[i], 1);
3953
3953
  } else {
3954
- each_blocks[i] = create_each_block$3(child_ctx);
3954
+ each_blocks[i] = create_each_block$4(child_ctx);
3955
3955
  each_blocks[i].c();
3956
3956
  transition_in(each_blocks[i], 1);
3957
3957
  each_blocks[i].m(div, t0);
@@ -4047,7 +4047,7 @@ function create_if_block$2(ctx) {
4047
4047
  }
4048
4048
 
4049
4049
  // (23:4) {#each floorplanData.floorDatas as floorData}
4050
- function create_each_block$3(ctx) {
4050
+ function create_each_block$4(ctx) {
4051
4051
  let currentfloor;
4052
4052
  let current;
4053
4053
 
@@ -4160,7 +4160,7 @@ function create_if_block_1(ctx) {
4160
4160
  };
4161
4161
  }
4162
4162
 
4163
- function create_fragment$8(ctx) {
4163
+ function create_fragment$a(ctx) {
4164
4164
  let if_block_anchor;
4165
4165
  let current;
4166
4166
  let if_block = /*visible*/ ctx[1] && create_if_block$2(ctx);
@@ -4215,7 +4215,7 @@ function create_fragment$8(ctx) {
4215
4215
  };
4216
4216
  }
4217
4217
 
4218
- function instance$8($$self, $$props, $$invalidate) {
4218
+ function instance$a($$self, $$props, $$invalidate) {
4219
4219
  let { duration = 0 } = $$props;
4220
4220
  let { visible } = $$props;
4221
4221
  let { northDesc } = $$props;
@@ -4270,8 +4270,8 @@ class Main$1 extends SvelteComponent {
4270
4270
  init(
4271
4271
  this,
4272
4272
  options,
4273
- instance$8,
4274
- create_fragment$8,
4273
+ instance$a,
4274
+ create_fragment$a,
4275
4275
  safe_not_equal,
4276
4276
  {
4277
4277
  duration: 0,
@@ -4288,7 +4288,7 @@ class Main$1 extends SvelteComponent {
4288
4288
  cameraImageUrl: 11,
4289
4289
  getLabelElement: 12
4290
4290
  },
4291
- add_css$7
4291
+ add_css$9
4292
4292
  );
4293
4293
  }
4294
4294
  }
@@ -4668,11 +4668,11 @@ function throttle(func, wait = 200) {
4668
4668
 
4669
4669
  /* src/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte generated by Svelte v3.47.0 */
4670
4670
 
4671
- function add_css$6(target) {
4671
+ function add_css$8(target) {
4672
4672
  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%}");
4673
4673
  }
4674
4674
 
4675
- function create_fragment$7(ctx) {
4675
+ function create_fragment$9(ctx) {
4676
4676
  let div2;
4677
4677
  let div1;
4678
4678
  let div0;
@@ -4722,7 +4722,7 @@ function getCameraRotateTransform(longitude) {
4722
4722
  return `rotate(${rotate}deg)`;
4723
4723
  }
4724
4724
 
4725
- function instance$7($$self, $$props, $$invalidate) {
4725
+ function instance$9($$self, $$props, $$invalidate) {
4726
4726
  let positionTransform;
4727
4727
  let rotateTransform;
4728
4728
  let { five } = $$props;
@@ -4802,8 +4802,8 @@ class Camera extends SvelteComponent {
4802
4802
  init(
4803
4803
  this,
4804
4804
  options,
4805
- instance$7,
4806
- create_fragment$7,
4805
+ instance$9,
4806
+ create_fragment$9,
4807
4807
  safe_not_equal,
4808
4808
  {
4809
4809
  five: 3,
@@ -4811,25 +4811,25 @@ class Camera extends SvelteComponent {
4811
4811
  floorplanData: 5,
4812
4812
  cameraImageUrl: 0
4813
4813
  },
4814
- add_css$6
4814
+ add_css$8
4815
4815
  );
4816
4816
  }
4817
4817
  }
4818
4818
 
4819
4819
  /* src/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte generated by Svelte v3.47.0 */
4820
4820
 
4821
- function add_css$5(target) {
4821
+ function add_css$7(target) {
4822
4822
  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%)}");
4823
4823
  }
4824
4824
 
4825
- function get_each_context$2(ctx, list, i) {
4825
+ function get_each_context$3(ctx, list, i) {
4826
4826
  const child_ctx = ctx.slice();
4827
4827
  child_ctx[1] = list[i];
4828
4828
  return child_ctx;
4829
4829
  }
4830
4830
 
4831
4831
  // (5:2) {#each extraObjects as extraObject (extraObject.id)}
4832
- function create_each_block$2(key_1, ctx) {
4832
+ function create_each_block$3(key_1, ctx) {
4833
4833
  let div1;
4834
4834
  let div0;
4835
4835
  let style_width = `${/*extraObject*/ ctx[1].icon.width / 16}rem`;
@@ -4888,7 +4888,7 @@ function create_each_block$2(key_1, ctx) {
4888
4888
  };
4889
4889
  }
4890
4890
 
4891
- function create_fragment$6(ctx) {
4891
+ function create_fragment$8(ctx) {
4892
4892
  let div;
4893
4893
  let each_blocks = [];
4894
4894
  let each_1_lookup = new Map();
@@ -4896,9 +4896,9 @@ function create_fragment$6(ctx) {
4896
4896
  const get_key = ctx => /*extraObject*/ ctx[1].id;
4897
4897
 
4898
4898
  for (let i = 0; i < each_value.length; i += 1) {
4899
- let child_ctx = get_each_context$2(ctx, each_value, i);
4899
+ let child_ctx = get_each_context$3(ctx, each_value, i);
4900
4900
  let key = get_key(child_ctx);
4901
- each_1_lookup.set(key, each_blocks[i] = create_each_block$2(key, child_ctx));
4901
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$3(key, child_ctx));
4902
4902
  }
4903
4903
 
4904
4904
  return {
@@ -4921,7 +4921,7 @@ function create_fragment$6(ctx) {
4921
4921
  p(ctx, [dirty]) {
4922
4922
  if (dirty & /*extraObjects*/ 1) {
4923
4923
  each_value = /*extraObjects*/ ctx[0];
4924
- each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, destroy_block, create_each_block$2, null, get_each_context$2);
4924
+ each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, destroy_block, create_each_block$3, null, get_each_context$3);
4925
4925
  }
4926
4926
  },
4927
4927
  i: noop,
@@ -4936,7 +4936,7 @@ function create_fragment$6(ctx) {
4936
4936
  };
4937
4937
  }
4938
4938
 
4939
- function instance$6($$self, $$props, $$invalidate) {
4939
+ function instance$8($$self, $$props, $$invalidate) {
4940
4940
  let { extraObjects = [] } = $$props;
4941
4941
 
4942
4942
  $$self.$$set = $$props => {
@@ -4949,7 +4949,7 @@ function instance$6($$self, $$props, $$invalidate) {
4949
4949
  class ExtraObjects extends SvelteComponent {
4950
4950
  constructor(options) {
4951
4951
  super();
4952
- init(this, options, instance$6, create_fragment$6, safe_not_equal, { extraObjects: 0 }, add_css$5);
4952
+ init(this, options, instance$8, create_fragment$8, safe_not_equal, { extraObjects: 0 }, add_css$7);
4953
4953
  }
4954
4954
  }
4955
4955
 
@@ -5015,7 +5015,7 @@ function create_if_block$1(ctx) {
5015
5015
  };
5016
5016
  }
5017
5017
 
5018
- function create_fragment$5(ctx) {
5018
+ function create_fragment$7(ctx) {
5019
5019
  let baseimage;
5020
5020
  let t0;
5021
5021
  let extraobjects;
@@ -5126,7 +5126,7 @@ function create_fragment$5(ctx) {
5126
5126
  };
5127
5127
  }
5128
5128
 
5129
- function instance$5($$self, $$props, $$invalidate) {
5129
+ function instance$7($$self, $$props, $$invalidate) {
5130
5130
  let currentFloorExtraObjects;
5131
5131
  let { five } = $$props;
5132
5132
  let { pxmm } = $$props;
@@ -5169,7 +5169,7 @@ class CurrentFloor extends SvelteComponent {
5169
5169
  constructor(options) {
5170
5170
  super();
5171
5171
 
5172
- init(this, options, instance$5, create_fragment$5, safe_not_equal, {
5172
+ init(this, options, instance$7, create_fragment$7, safe_not_equal, {
5173
5173
  five: 0,
5174
5174
  pxmm: 1,
5175
5175
  floorIndex: 2,
@@ -5182,7 +5182,7 @@ class CurrentFloor extends SvelteComponent {
5182
5182
 
5183
5183
  /* src/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte generated by Svelte v3.47.0 */
5184
5184
 
5185
- function add_css$4(target) {
5185
+ function add_css$6(target) {
5186
5186
  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}");
5187
5187
  }
5188
5188
 
@@ -5305,7 +5305,7 @@ function create_if_block(ctx) {
5305
5305
  };
5306
5306
  }
5307
5307
 
5308
- function create_fragment$4(ctx) {
5308
+ function create_fragment$6(ctx) {
5309
5309
  let div;
5310
5310
  let div_resize_listener;
5311
5311
  let current;
@@ -5365,7 +5365,7 @@ function create_fragment$4(ctx) {
5365
5365
  };
5366
5366
  }
5367
5367
 
5368
- function instance$4($$self, $$props, $$invalidate) {
5368
+ function instance$6($$self, $$props, $$invalidate) {
5369
5369
  let { five } = $$props;
5370
5370
  let { hoverEnable } = $$props;
5371
5371
  let { floorplanData } = $$props;
@@ -5448,8 +5448,8 @@ class Main extends SvelteComponent {
5448
5448
  init(
5449
5449
  this,
5450
5450
  options,
5451
- instance$4,
5452
- create_fragment$4,
5451
+ instance$6,
5452
+ create_fragment$6,
5453
5453
  safe_not_equal,
5454
5454
  {
5455
5455
  five: 0,
@@ -5458,7 +5458,7 @@ class Main extends SvelteComponent {
5458
5458
  cameraImageUrl: 3,
5459
5459
  extraObjects: 4
5460
5460
  },
5461
- add_css$4
5461
+ add_css$6
5462
5462
  );
5463
5463
  }
5464
5464
  }
@@ -13332,18 +13332,18 @@ const currentTarget = writable(null);
13332
13332
 
13333
13333
  /* src/PanoSpatialTagPlugin/Components/origins.svelte generated by Svelte v3.47.0 */
13334
13334
 
13335
- function add_css$3(target) {
13335
+ function add_css$5(target) {
13336
13336
  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}}");
13337
13337
  }
13338
13338
 
13339
- function get_each_context$1(ctx, list, i) {
13339
+ function get_each_context$2(ctx, list, i) {
13340
13340
  const child_ctx = ctx.slice();
13341
13341
  child_ctx[3] = list[i];
13342
13342
  return child_ctx;
13343
13343
  }
13344
13344
 
13345
13345
  // (8:0) {#each origins as origin}
13346
- function create_each_block$1(ctx) {
13346
+ function create_each_block$2(ctx) {
13347
13347
  let i;
13348
13348
  let style_top = `${/*origin*/ ctx[3].top}%`;
13349
13349
  let style_left = `${/*origin*/ ctx[3].left}%`;
@@ -13399,13 +13399,13 @@ function create_each_block$1(ctx) {
13399
13399
  };
13400
13400
  }
13401
13401
 
13402
- function create_fragment$3(ctx) {
13402
+ function create_fragment$5(ctx) {
13403
13403
  let each_1_anchor;
13404
13404
  let each_value = /*origins*/ ctx[0];
13405
13405
  let each_blocks = [];
13406
13406
 
13407
13407
  for (let i = 0; i < each_value.length; i += 1) {
13408
- each_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));
13408
+ each_blocks[i] = create_each_block$2(get_each_context$2(ctx, each_value, i));
13409
13409
  }
13410
13410
 
13411
13411
  return {
@@ -13429,12 +13429,12 @@ function create_fragment$3(ctx) {
13429
13429
  let i;
13430
13430
 
13431
13431
  for (i = 0; i < each_value.length; i += 1) {
13432
- const child_ctx = get_each_context$1(ctx, each_value, i);
13432
+ const child_ctx = get_each_context$2(ctx, each_value, i);
13433
13433
 
13434
13434
  if (each_blocks[i]) {
13435
13435
  each_blocks[i].p(child_ctx, dirty);
13436
13436
  } else {
13437
- each_blocks[i] = create_each_block$1(child_ctx);
13437
+ each_blocks[i] = create_each_block$2(child_ctx);
13438
13438
  each_blocks[i].c();
13439
13439
  each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
13440
13440
  }
@@ -13456,7 +13456,7 @@ function create_fragment$3(ctx) {
13456
13456
  };
13457
13457
  }
13458
13458
 
13459
- function instance$3($$self, $$props, $$invalidate) {
13459
+ function instance$5($$self, $$props, $$invalidate) {
13460
13460
  let { origins } = $$props;
13461
13461
 
13462
13462
  const handleClick = id => {
@@ -13475,17 +13475,17 @@ function instance$3($$self, $$props, $$invalidate) {
13475
13475
  class Origins extends SvelteComponent {
13476
13476
  constructor(options) {
13477
13477
  super();
13478
- init(this, options, instance$3, create_fragment$3, safe_not_equal, { origins: 0 }, add_css$3);
13478
+ init(this, options, instance$5, create_fragment$5, safe_not_equal, { origins: 0 }, add_css$5);
13479
13479
  }
13480
13480
  }
13481
13481
 
13482
13482
  /* src/PanoSpatialTagPlugin/Components/tag.svelte generated by Svelte v3.47.0 */
13483
13483
 
13484
- function add_css$2(target) {
13484
+ function add_css$4(target) {
13485
13485
  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)}}");
13486
13486
  }
13487
13487
 
13488
- function create_fragment$2(ctx) {
13488
+ function create_fragment$4(ctx) {
13489
13489
  let div4;
13490
13490
  let div0;
13491
13491
  let t0;
@@ -13600,7 +13600,7 @@ function create_fragment$2(ctx) {
13600
13600
  };
13601
13601
  }
13602
13602
 
13603
- function instance$2($$self, $$props, $$invalidate) {
13603
+ function instance$4($$self, $$props, $$invalidate) {
13604
13604
  let { id } = $$props;
13605
13605
  let { upsideDown } = $$props;
13606
13606
  let { content } = $$props;
@@ -13737,8 +13737,8 @@ class Tag extends SvelteComponent {
13737
13737
  init(
13738
13738
  this,
13739
13739
  options,
13740
- instance$2,
13741
- create_fragment$2,
13740
+ instance$4,
13741
+ create_fragment$4,
13742
13742
  safe_not_equal,
13743
13743
  {
13744
13744
  id: 0,
@@ -13753,7 +13753,7 @@ class Tag extends SvelteComponent {
13753
13753
  events: 14,
13754
13754
  hooks: 15
13755
13755
  },
13756
- add_css$2
13756
+ add_css$4
13757
13757
  );
13758
13758
  }
13759
13759
  }
@@ -14396,11 +14396,11 @@ var DISPLAY_STRATEGY_TYPE;
14396
14396
 
14397
14397
  /* src/ModelItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.47.0 */
14398
14398
 
14399
- function add_css$1(target) {
14399
+ function add_css$3(target) {
14400
14400
  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 }}");
14401
14401
  }
14402
14402
 
14403
- function create_fragment$1(ctx) {
14403
+ function create_fragment$3(ctx) {
14404
14404
  let div2;
14405
14405
  let div0;
14406
14406
  let span;
@@ -14481,7 +14481,7 @@ function create_fragment$1(ctx) {
14481
14481
  };
14482
14482
  }
14483
14483
 
14484
- function instance$1($$self, $$props, $$invalidate) {
14484
+ function instance$3($$self, $$props, $$invalidate) {
14485
14485
  let { itemLabel } = $$props;
14486
14486
  let { hooks } = $$props;
14487
14487
 
@@ -14498,10 +14498,10 @@ function instance$1($$self, $$props, $$invalidate) {
14498
14498
  return [itemLabel, onClick, hooks];
14499
14499
  }
14500
14500
 
14501
- class ItemLabelItem extends SvelteComponent {
14501
+ class ItemLabelItem$1 extends SvelteComponent {
14502
14502
  constructor(options) {
14503
14503
  super();
14504
- init(this, options, instance$1, create_fragment$1, safe_not_equal, { itemLabel: 0, hooks: 2 }, add_css$1);
14504
+ init(this, options, instance$3, create_fragment$3, safe_not_equal, { itemLabel: 0, hooks: 2 }, add_css$3);
14505
14505
  }
14506
14506
  }
14507
14507
 
@@ -14522,23 +14522,23 @@ function debounce(func, wait = 200) {
14522
14522
 
14523
14523
  /* src/ModelItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.47.0 */
14524
14524
 
14525
- function add_css(target) {
14525
+ function add_css$2(target) {
14526
14526
  append_styles(target, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
14527
14527
  }
14528
14528
 
14529
- function get_each_context(ctx, list, i) {
14529
+ function get_each_context$1(ctx, list, i) {
14530
14530
  const child_ctx = ctx.slice();
14531
14531
  child_ctx[28] = list[i];
14532
14532
  return child_ctx;
14533
14533
  }
14534
14534
 
14535
14535
  // (163:1) {#each renderItemLabels as itemLabelItem (itemLabelItem.id)}
14536
- function create_each_block(key_1, ctx) {
14536
+ function create_each_block$1(key_1, ctx) {
14537
14537
  let first;
14538
14538
  let itemlabelitem;
14539
14539
  let current;
14540
14540
 
14541
- itemlabelitem = new ItemLabelItem({
14541
+ itemlabelitem = new ItemLabelItem$1({
14542
14542
  props: {
14543
14543
  itemLabel: /*itemLabelItem*/ ctx[28],
14544
14544
  hooks: /*hooks*/ ctx[0]
@@ -14581,7 +14581,7 @@ function create_each_block(key_1, ctx) {
14581
14581
  };
14582
14582
  }
14583
14583
 
14584
- function create_fragment(ctx) {
14584
+ function create_fragment$2(ctx) {
14585
14585
  let div;
14586
14586
  let each_blocks = [];
14587
14587
  let each_1_lookup = new Map();
@@ -14591,9 +14591,9 @@ function create_fragment(ctx) {
14591
14591
  const get_key = ctx => /*itemLabelItem*/ ctx[28].id;
14592
14592
 
14593
14593
  for (let i = 0; i < each_value.length; i += 1) {
14594
- let child_ctx = get_each_context(ctx, each_value, i);
14594
+ let child_ctx = get_each_context$1(ctx, each_value, i);
14595
14595
  let key = get_key(child_ctx);
14596
- each_1_lookup.set(key, each_blocks[i] = create_each_block(key, child_ctx));
14596
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$1(key, child_ctx));
14597
14597
  }
14598
14598
 
14599
14599
  return {
@@ -14622,7 +14622,7 @@ function create_fragment(ctx) {
14622
14622
  if (dirty & /*renderItemLabels, hooks*/ 3) {
14623
14623
  each_value = /*renderItemLabels*/ ctx[1];
14624
14624
  group_outros();
14625
- each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, outro_and_destroy_block, create_each_block, null, get_each_context);
14625
+ each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, outro_and_destroy_block, create_each_block$1, null, get_each_context$1);
14626
14626
  check_outros();
14627
14627
  }
14628
14628
 
@@ -14659,9 +14659,9 @@ function create_fragment(ctx) {
14659
14659
  }
14660
14660
 
14661
14661
  let cssHeight = 26;
14662
- let basicWidth = 11;
14662
+ let basicWidth$1 = 11;
14663
14663
 
14664
- function instance($$self, $$props, $$invalidate) {
14664
+ function instance$2($$self, $$props, $$invalidate) {
14665
14665
  const { Raycaster, Vector3 } = THREE;
14666
14666
  let { five } = $$props;
14667
14667
  let { modelOcclusionEnable } = $$props;
@@ -14748,7 +14748,7 @@ function instance($$self, $$props, $$invalidate) {
14748
14748
  // 计算位置 & 可见性
14749
14749
  const newLabels = labels.map(label => {
14750
14750
  const cssOffset = getLabelCssOffset(five, label);
14751
- const curLabelWidth = label.name.length * basicWidth;
14751
+ const curLabelWidth = label.name.length * basicWidth$1;
14752
14752
  const strokeLength = getStrokeLength(label.modelPosition[1], displayStrategyType);
14753
14753
 
14754
14754
  // 是否加入碰撞检测
@@ -14875,15 +14875,15 @@ function instance($$self, $$props, $$invalidate) {
14875
14875
  ];
14876
14876
  }
14877
14877
 
14878
- class ItemLabelComponent extends SvelteComponent {
14878
+ class ItemLabelComponent$1 extends SvelteComponent {
14879
14879
  constructor(options) {
14880
14880
  super();
14881
14881
 
14882
14882
  init(
14883
14883
  this,
14884
14884
  options,
14885
- instance,
14886
- create_fragment,
14885
+ instance$2,
14886
+ create_fragment$2,
14887
14887
  safe_not_equal,
14888
14888
  {
14889
14889
  five: 5,
@@ -14893,7 +14893,7 @@ class ItemLabelComponent extends SvelteComponent {
14893
14893
  hooks: 0,
14894
14894
  displayStrategyType: 9
14895
14895
  },
14896
- add_css
14896
+ add_css$2
14897
14897
  );
14898
14898
  }
14899
14899
  }
@@ -14967,7 +14967,7 @@ const ModelItemLabelPlugin = (five, params) => {
14967
14967
  }
14968
14968
  // 正常显示时,分为 app 存在和不存在两种情况,如果存在,传值,不存在则初始化并传值
14969
14969
  if (!pluginState.app) {
14970
- pluginState.app = new ItemLabelComponent({
14970
+ pluginState.app = new ItemLabelComponent$1({
14971
14971
  target: pluginState.container,
14972
14972
  props: {
14973
14973
  five: five,
@@ -15297,4 +15297,656 @@ const ModelTVVideoPlugin = (five, { videoElement }) => {
15297
15297
  return { enable, disable, load, dispose };
15298
15298
  };
15299
15299
 
15300
- export { CSS3DRenderPlugin, CameraMovementEffect, CameraMovementPlugin, DIRECTION, DISPLAY_STRATEGY_TYPE, FLOOR_PLAN_ATTACHED_TO, FLOOR_TYPE_MAP, ModelChassisCompassPlugin, ModelEntryDoorGuidePlugin, ModelFloorplanPlugin, ModelItemLabelPlugin, ModelRoomLabelPlugin, ModelTVVideoPlugin, ModelViewPlugin, PanoCompassPlugin, PanoCursorRaycasterPlugin, PanoFloorplanRadarPlugin, PanoMeasurePlugin, PanoRulerPlugin, PanoSpatialTagPlugin, ROOM_FETILE_TYPE_MAP, ROOM_TYPE_MAP, Rotation, TopviewFloorplanPlugin, modelItemLabelPluginServerParams, modelRoomLabelPluginServerParams, panoCompassPluginServerParams };
15300
+ var ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE;
15301
+ (function (ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE) {
15302
+ ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE["SMALL"] = "small";
15303
+ ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE["MIDLLE"] = "middle";
15304
+ ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE["LARGE"] = "large";
15305
+ ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE["EXTRA_LARGE"] = "x-large";
15306
+ })(ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE || (ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE = {}));
15307
+
15308
+ /* src/ItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.47.0 */
15309
+
15310
+ function add_css$1(target) {
15311
+ 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 }}");
15312
+ }
15313
+
15314
+ function create_fragment$1(ctx) {
15315
+ let div5;
15316
+ let div3;
15317
+ let div1;
15318
+ let div0;
15319
+ let div0_style_value;
15320
+ let t0;
15321
+ let div2;
15322
+ let span0;
15323
+ let t1_value = (/*itemLabel*/ ctx[0].code ?? /*itemLabel*/ ctx[0].id) + "";
15324
+ let t1;
15325
+ let t2;
15326
+ let span1;
15327
+ let t3_value = /*itemLabel*/ ctx[0].name + "";
15328
+ let t3;
15329
+ let div3_class_value;
15330
+ let t4;
15331
+ let div4;
15332
+ let div4_class_value;
15333
+ let div5_class_value;
15334
+ let mounted;
15335
+ let dispose;
15336
+
15337
+ return {
15338
+ c() {
15339
+ div5 = element("div");
15340
+ div3 = element("div");
15341
+ div1 = element("div");
15342
+ div0 = element("div");
15343
+ t0 = space();
15344
+ div2 = element("div");
15345
+ span0 = element("span");
15346
+ t1 = text(t1_value);
15347
+ t2 = space();
15348
+ span1 = element("span");
15349
+ t3 = text(t3_value);
15350
+ t4 = space();
15351
+ div4 = element("div");
15352
+ attr(div0, "class", "icon svelte-1s5p8g");
15353
+ attr(div0, "style", div0_style_value = `background-image: url(${/*itemLabel*/ ctx[0].icon ?? defaultIcon})`);
15354
+ attr(div1, "class", "icon-wrap svelte-1s5p8g");
15355
+ attr(span0, "class", "item-model svelte-1s5p8g");
15356
+ attr(span1, "class", "item-name svelte-1s5p8g");
15357
+ attr(div2, "class", "item-label-text svelte-1s5p8g");
15358
+ attr(div3, "class", div3_class_value = "" + (null_to_empty(classNames("item-label-item__text-wrap", { visible: /*itemLabel*/ ctx[0].visible })) + " svelte-1s5p8g"));
15359
+ set_style(div3, "bottom", `${/*itemLabel*/ ctx[0].strokeLength}px`);
15360
+ attr(div4, "class", div4_class_value = "" + (null_to_empty(classNames("item-label-item__bar", { anchor: /*anchorEnabled*/ ctx[1] })) + " svelte-1s5p8g"));
15361
+ set_style(div4, "height", `${/*itemLabel*/ ctx[0].strokeLength}px`);
15362
+ attr(div5, "class", div5_class_value = "" + (null_to_empty(classNames("item-label-item", { visible: /*itemLabel*/ ctx[0].visible })) + " svelte-1s5p8g"));
15363
+ set_style(div5, "z-index", /*itemLabel*/ ctx[0].zIndex, false);
15364
+ set_style(div5, "transform", /*itemLabel*/ ctx[0].transform, false);
15365
+ },
15366
+ m(target, anchor) {
15367
+ insert(target, div5, anchor);
15368
+ append(div5, div3);
15369
+ append(div3, div1);
15370
+ append(div1, div0);
15371
+ append(div3, t0);
15372
+ append(div3, div2);
15373
+ append(div2, span0);
15374
+ append(span0, t1);
15375
+ append(div2, t2);
15376
+ append(div2, span1);
15377
+ append(span1, t3);
15378
+ append(div5, t4);
15379
+ append(div5, div4);
15380
+
15381
+ if (!mounted) {
15382
+ dispose = listen(div3, "click", /*onClick*/ ctx[2]);
15383
+ mounted = true;
15384
+ }
15385
+ },
15386
+ p(ctx, [dirty]) {
15387
+ if (dirty & /*itemLabel*/ 1 && div0_style_value !== (div0_style_value = `background-image: url(${/*itemLabel*/ ctx[0].icon ?? defaultIcon})`)) {
15388
+ attr(div0, "style", div0_style_value);
15389
+ }
15390
+
15391
+ if (dirty & /*itemLabel*/ 1 && t1_value !== (t1_value = (/*itemLabel*/ ctx[0].code ?? /*itemLabel*/ ctx[0].id) + "")) set_data(t1, t1_value);
15392
+ if (dirty & /*itemLabel*/ 1 && t3_value !== (t3_value = /*itemLabel*/ ctx[0].name + "")) set_data(t3, t3_value);
15393
+
15394
+ if (dirty & /*itemLabel*/ 1 && div3_class_value !== (div3_class_value = "" + (null_to_empty(classNames("item-label-item__text-wrap", { visible: /*itemLabel*/ ctx[0].visible })) + " svelte-1s5p8g"))) {
15395
+ attr(div3, "class", div3_class_value);
15396
+ }
15397
+
15398
+ if (dirty & /*itemLabel*/ 1) {
15399
+ set_style(div3, "bottom", `${/*itemLabel*/ ctx[0].strokeLength}px`);
15400
+ }
15401
+
15402
+ if (dirty & /*anchorEnabled*/ 2 && div4_class_value !== (div4_class_value = "" + (null_to_empty(classNames("item-label-item__bar", { anchor: /*anchorEnabled*/ ctx[1] })) + " svelte-1s5p8g"))) {
15403
+ attr(div4, "class", div4_class_value);
15404
+ }
15405
+
15406
+ if (dirty & /*itemLabel*/ 1) {
15407
+ set_style(div4, "height", `${/*itemLabel*/ ctx[0].strokeLength}px`);
15408
+ }
15409
+
15410
+ if (dirty & /*itemLabel*/ 1 && div5_class_value !== (div5_class_value = "" + (null_to_empty(classNames("item-label-item", { visible: /*itemLabel*/ ctx[0].visible })) + " svelte-1s5p8g"))) {
15411
+ attr(div5, "class", div5_class_value);
15412
+ }
15413
+
15414
+ if (dirty & /*itemLabel*/ 1) {
15415
+ set_style(div5, "z-index", /*itemLabel*/ ctx[0].zIndex, false);
15416
+ }
15417
+
15418
+ if (dirty & /*itemLabel*/ 1) {
15419
+ set_style(div5, "transform", /*itemLabel*/ ctx[0].transform, false);
15420
+ }
15421
+ },
15422
+ i: noop,
15423
+ o: noop,
15424
+ d(detaching) {
15425
+ if (detaching) detach(div5);
15426
+ mounted = false;
15427
+ dispose();
15428
+ }
15429
+ };
15430
+ }
15431
+
15432
+ const defaultIcon = '//vrlab-public.ljcdn.com/common/file/web/c8591aaa-e62b-4e31-8fed-671483ace37f.svg\n';
15433
+
15434
+ function instance$1($$self, $$props, $$invalidate) {
15435
+ let { itemLabel } = $$props;
15436
+ let { hooks } = $$props;
15437
+ let { anchorEnabled } = $$props;
15438
+
15439
+ function onClick() {
15440
+ hooks.emit('onLabelClick', itemLabel);
15441
+ }
15442
+
15443
+ $$self.$$set = $$props => {
15444
+ if ('itemLabel' in $$props) $$invalidate(0, itemLabel = $$props.itemLabel);
15445
+ if ('hooks' in $$props) $$invalidate(3, hooks = $$props.hooks);
15446
+ if ('anchorEnabled' in $$props) $$invalidate(1, anchorEnabled = $$props.anchorEnabled);
15447
+ };
15448
+
15449
+ return [itemLabel, anchorEnabled, onClick, hooks];
15450
+ }
15451
+
15452
+ class ItemLabelItem extends SvelteComponent {
15453
+ constructor(options) {
15454
+ super();
15455
+ init(this, options, instance$1, create_fragment$1, safe_not_equal, { itemLabel: 0, hooks: 3, anchorEnabled: 1 }, add_css$1);
15456
+ }
15457
+ }
15458
+
15459
+ /* src/ItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.47.0 */
15460
+
15461
+ function add_css(target) {
15462
+ append_styles(target, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
15463
+ }
15464
+
15465
+ function get_each_context(ctx, list, i) {
15466
+ const child_ctx = ctx.slice();
15467
+ child_ctx[28] = list[i];
15468
+ return child_ctx;
15469
+ }
15470
+
15471
+ // (163:1) {#each renderItemLabels as itemLabelItem (itemLabelItem.id)}
15472
+ function create_each_block(key_1, ctx) {
15473
+ let first;
15474
+ let itemlabelitem;
15475
+ let current;
15476
+
15477
+ itemlabelitem = new ItemLabelItem({
15478
+ props: {
15479
+ itemLabel: /*itemLabelItem*/ ctx[28],
15480
+ hooks: /*hooks*/ ctx[1],
15481
+ anchorEnabled: /*five*/ ctx[0].currentMode === Five.Mode.Panorama
15482
+ }
15483
+ });
15484
+
15485
+ return {
15486
+ key: key_1,
15487
+ first: null,
15488
+ c() {
15489
+ first = empty();
15490
+ create_component(itemlabelitem.$$.fragment);
15491
+ this.first = first;
15492
+ },
15493
+ m(target, anchor) {
15494
+ insert(target, first, anchor);
15495
+ mount_component(itemlabelitem, target, anchor);
15496
+ current = true;
15497
+ },
15498
+ p(new_ctx, dirty) {
15499
+ ctx = new_ctx;
15500
+ const itemlabelitem_changes = {};
15501
+ if (dirty & /*renderItemLabels*/ 4) itemlabelitem_changes.itemLabel = /*itemLabelItem*/ ctx[28];
15502
+ if (dirty & /*hooks*/ 2) itemlabelitem_changes.hooks = /*hooks*/ ctx[1];
15503
+ if (dirty & /*five*/ 1) itemlabelitem_changes.anchorEnabled = /*five*/ ctx[0].currentMode === Five.Mode.Panorama;
15504
+ itemlabelitem.$set(itemlabelitem_changes);
15505
+ },
15506
+ i(local) {
15507
+ if (current) return;
15508
+ transition_in(itemlabelitem.$$.fragment, local);
15509
+ current = true;
15510
+ },
15511
+ o(local) {
15512
+ transition_out(itemlabelitem.$$.fragment, local);
15513
+ current = false;
15514
+ },
15515
+ d(detaching) {
15516
+ if (detaching) detach(first);
15517
+ destroy_component(itemlabelitem, detaching);
15518
+ }
15519
+ };
15520
+ }
15521
+
15522
+ function create_fragment(ctx) {
15523
+ let div;
15524
+ let each_blocks = [];
15525
+ let each_1_lookup = new Map();
15526
+ let div_resize_listener;
15527
+ let current;
15528
+ let each_value = /*renderItemLabels*/ ctx[2];
15529
+ const get_key = ctx => /*itemLabelItem*/ ctx[28].id;
15530
+
15531
+ for (let i = 0; i < each_value.length; i += 1) {
15532
+ let child_ctx = get_each_context(ctx, each_value, i);
15533
+ let key = get_key(child_ctx);
15534
+ each_1_lookup.set(key, each_blocks[i] = create_each_block(key, child_ctx));
15535
+ }
15536
+
15537
+ return {
15538
+ c() {
15539
+ div = element("div");
15540
+
15541
+ for (let i = 0; i < each_blocks.length; i += 1) {
15542
+ each_blocks[i].c();
15543
+ }
15544
+
15545
+ attr(div, "class", "item-labels-container svelte-gk8s47");
15546
+ add_render_callback(() => /*div_elementresize_handler*/ ctx[10].call(div));
15547
+ set_style(div, "opacity", /*itemsVisible*/ ctx[5] ? 1 : 0, false);
15548
+ },
15549
+ m(target, anchor) {
15550
+ insert(target, div, anchor);
15551
+
15552
+ for (let i = 0; i < each_blocks.length; i += 1) {
15553
+ each_blocks[i].m(div, null);
15554
+ }
15555
+
15556
+ div_resize_listener = add_resize_listener(div, /*div_elementresize_handler*/ ctx[10].bind(div));
15557
+ current = true;
15558
+ },
15559
+ p(ctx, [dirty]) {
15560
+ if (dirty & /*renderItemLabels, hooks, five, Five*/ 7) {
15561
+ each_value = /*renderItemLabels*/ ctx[2];
15562
+ group_outros();
15563
+ each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, outro_and_destroy_block, create_each_block, null, get_each_context);
15564
+ check_outros();
15565
+ }
15566
+
15567
+ if (dirty & /*itemsVisible*/ 32) {
15568
+ set_style(div, "opacity", /*itemsVisible*/ ctx[5] ? 1 : 0, false);
15569
+ }
15570
+ },
15571
+ i(local) {
15572
+ if (current) return;
15573
+
15574
+ for (let i = 0; i < each_value.length; i += 1) {
15575
+ transition_in(each_blocks[i]);
15576
+ }
15577
+
15578
+ current = true;
15579
+ },
15580
+ o(local) {
15581
+ for (let i = 0; i < each_blocks.length; i += 1) {
15582
+ transition_out(each_blocks[i]);
15583
+ }
15584
+
15585
+ current = false;
15586
+ },
15587
+ d(detaching) {
15588
+ if (detaching) detach(div);
15589
+
15590
+ for (let i = 0; i < each_blocks.length; i += 1) {
15591
+ each_blocks[i].d();
15592
+ }
15593
+
15594
+ div_resize_listener();
15595
+ }
15596
+ };
15597
+ }
15598
+ let basicWidth = 11;
15599
+
15600
+ function instance($$self, $$props, $$invalidate) {
15601
+ const { Raycaster, Vector3 } = THREE;
15602
+ let { five } = $$props;
15603
+ let { modelOcclusionEnable } = $$props;
15604
+ let { itemLabels } = $$props;
15605
+ let { wrapper } = $$props;
15606
+ let { hooks } = $$props;
15607
+ let { displayStrategyType } = $$props;
15608
+ let curItemLabels = null;
15609
+ let renderItemLabels = null;
15610
+ let wrapperSize = { width: 0, height: 0 };
15611
+ let containerWidth;
15612
+ let containerHeight;
15613
+
15614
+ // 计算重叠
15615
+ let cssOffsetLists = [];
15616
+
15617
+ // 动画过程中 itemsVisible 为 false
15618
+ let itemsVisible = true;
15619
+
15620
+ /**
15621
+ * 可见性策略:
15622
+ * 1、当前楼层(假设先不考虑多楼层)
15623
+ * 2、模型未被遮挡(一个 box 有没有被遮挡的计算? TODO)
15624
+ * */
15625
+ const getLabelVisible = (five, itemLabel) => {
15626
+ // 虚拟 VR 仅有一层,不考虑楼层信息
15627
+ const raycaster = new Raycaster();
15628
+
15629
+ const cameraPosition = five.camera.position.clone();
15630
+ const modelPosition = new Vector3(itemLabel.modelPosition[0], itemLabel.modelPosition[1], itemLabel.modelPosition[2]);
15631
+
15632
+ // 计算点到相机的位置
15633
+ const vectorDistance = modelPosition.distanceTo(cameraPosition);
15634
+
15635
+ raycaster.set(cameraPosition.clone(), modelPosition.clone().sub(cameraPosition).normalize());
15636
+ const [intersection] = five.model.intersectRaycaster(raycaster);
15637
+ return !(intersection && intersection.distance + 1 < vectorDistance);
15638
+ };
15639
+
15640
+ // cssOffset 获取
15641
+ const getLabelCssOffset = (five, itemLabel) => {
15642
+ const modelPosition = new Vector3(itemLabel.modelPosition[0], itemLabel.modelPosition[1], itemLabel.modelPosition[2]);
15643
+ const cssPosition = five.project2d(modelPosition);
15644
+
15645
+ const xOffset = cssPosition === null || cssPosition === void 0
15646
+ ? void 0
15647
+ : cssPosition.x;
15648
+
15649
+ const yOffset = cssPosition === null || cssPosition === void 0
15650
+ ? void 0
15651
+ : cssPosition.y;
15652
+
15653
+ return [xOffset, yOffset];
15654
+ };
15655
+
15656
+ const getLabelTransform = cssOffset => {
15657
+ return `translate(${cssOffset[0]}px, ${cssOffset[1]}px)`;
15658
+ };
15659
+
15660
+ function getStrokeLength(itemSpaceHeight, type) {
15661
+ switch (type) {
15662
+ case ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.SMALL:
15663
+ return Math.ceil(-27.78 * itemSpaceHeight + 85);
15664
+ case ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.MIDLLE:
15665
+ return Math.ceil(-38.9 * itemSpaceHeight + 130);
15666
+ case ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.LARGE:
15667
+ return Math.ceil(-44.44 * itemSpaceHeight + 140);
15668
+ case ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.EXTRA_LARGE:
15669
+ return Math.ceil(-92.59 * itemSpaceHeight + 300);
15670
+ }
15671
+ }
15672
+
15673
+ const getFormatedItemLabels = (five, labels) => {
15674
+ // 计算位置 & 可见性
15675
+ const newLabels = labels.map(label => {
15676
+ const cssOffset = getLabelCssOffset(five, label);
15677
+ label.name.length * basicWidth;
15678
+ const strokeLength = getStrokeLength(label.modelPosition[1], displayStrategyType);
15679
+
15680
+ // 是否加入碰撞检测
15681
+ const naturalVisible = modelOcclusionEnable
15682
+ ? getLabelVisible(five, label)
15683
+ : true;
15684
+
15685
+ const visible = naturalVisible;
15686
+
15687
+ // 关掉重叠计算
15688
+ // const visible = naturalVisible && !isOverlap([cssOffset[0], cssOffset[1] + strokeLength], curLabelWidth)
15689
+ if (!visible) return Object.assign(Object.assign({}, label), { visible });
15690
+
15691
+ cssOffsetLists.push(cssOffset);
15692
+
15693
+ // position
15694
+ const transform = getLabelTransform(cssOffset);
15695
+
15696
+ return Object.assign(Object.assign({}, label), { visible, transform, strokeLength });
15697
+ });
15698
+
15699
+ const sortedItemLabelItems = newLabels.filter(({ visible }) => visible).map(label => ({
15700
+ itemLabelItem: label,
15701
+ distance: new Vector3(label.modelPosition[0], label.modelPosition[1], label.modelPosition[2]).clone().distanceTo(five.camera.position)
15702
+ })).sort((a, b) => a.distance - b.distance);
15703
+
15704
+ return newLabels.map(label => {
15705
+ const sortIndex = sortedItemLabelItems.findIndex(item => item.itemLabelItem.id === label.id);
15706
+ if (sortIndex !== undefined) return Object.assign(Object.assign({}, label), { zIndex: sortIndex * 10 });
15707
+ return label;
15708
+ });
15709
+ };
15710
+
15711
+ const onItemLabelUpdate = () => {
15712
+ cssOffsetLists = [];
15713
+ $$invalidate(2, renderItemLabels = getFormatedItemLabels(five, renderItemLabels));
15714
+ };
15715
+
15716
+ beforeUpdate(() => {
15717
+ addDataUpdateListener();
15718
+ });
15719
+
15720
+ const handleCameraUpdateCallback = () => {
15721
+ $$invalidate(5, itemsVisible = false);
15722
+ handleCameraUpdate();
15723
+ };
15724
+
15725
+ onMount(() => {
15726
+ $$invalidate(2, renderItemLabels = itemLabels);
15727
+ curItemLabels = itemLabels;
15728
+ onItemLabelUpdate();
15729
+ addResizeListener();
15730
+ five.on('cameraUpdate', handleCameraUpdateCallback);
15731
+ });
15732
+
15733
+ const handleCameraUpdate = debounce(
15734
+ () => {
15735
+ $$invalidate(5, itemsVisible = true);
15736
+ onItemLabelUpdate();
15737
+ },
15738
+ 300
15739
+ );
15740
+
15741
+ const addResizeListener = () => {
15742
+ wrapperSize = {
15743
+ width: wrapper.clientWidth,
15744
+ height: wrapper.clientHeight
15745
+ };
15746
+
15747
+ resizeObserver.observe(wrapper);
15748
+ };
15749
+
15750
+ const addDataUpdateListener = () => {
15751
+ if (curItemLabels !== itemLabels) {
15752
+ $$invalidate(2, renderItemLabels = itemLabels);
15753
+ curItemLabels = itemLabels;
15754
+ onItemLabelUpdate();
15755
+ }
15756
+ };
15757
+
15758
+ const resizeObserver = new ResizeObserver(entries => {
15759
+ const entry = entries[0];
15760
+ const target = entry.target;
15761
+ const curWidth = target.clientWidth;
15762
+ const curHeight = target.clientHeight;
15763
+
15764
+ if (wrapperSize.width !== curWidth || wrapperSize.height !== curHeight) {
15765
+ wrapperSize = { width: curWidth, height: curHeight };
15766
+ onItemLabelUpdate();
15767
+ }
15768
+ });
15769
+
15770
+ onDestroy(() => {
15771
+ five.off('cameraUpdate', handleCameraUpdateCallback);
15772
+ resizeObserver.unobserve(wrapper);
15773
+ });
15774
+
15775
+ function div_elementresize_handler() {
15776
+ containerWidth = this.clientWidth;
15777
+ containerHeight = this.clientHeight;
15778
+ $$invalidate(3, containerWidth);
15779
+ $$invalidate(4, containerHeight);
15780
+ }
15781
+
15782
+ $$self.$$set = $$props => {
15783
+ if ('five' in $$props) $$invalidate(0, five = $$props.five);
15784
+ if ('modelOcclusionEnable' in $$props) $$invalidate(6, modelOcclusionEnable = $$props.modelOcclusionEnable);
15785
+ if ('itemLabels' in $$props) $$invalidate(7, itemLabels = $$props.itemLabels);
15786
+ if ('wrapper' in $$props) $$invalidate(8, wrapper = $$props.wrapper);
15787
+ if ('hooks' in $$props) $$invalidate(1, hooks = $$props.hooks);
15788
+ if ('displayStrategyType' in $$props) $$invalidate(9, displayStrategyType = $$props.displayStrategyType);
15789
+ };
15790
+
15791
+ return [
15792
+ five,
15793
+ hooks,
15794
+ renderItemLabels,
15795
+ containerWidth,
15796
+ containerHeight,
15797
+ itemsVisible,
15798
+ modelOcclusionEnable,
15799
+ itemLabels,
15800
+ wrapper,
15801
+ displayStrategyType,
15802
+ div_elementresize_handler
15803
+ ];
15804
+ }
15805
+
15806
+ class ItemLabelComponent extends SvelteComponent {
15807
+ constructor(options) {
15808
+ super();
15809
+
15810
+ init(
15811
+ this,
15812
+ options,
15813
+ instance,
15814
+ create_fragment,
15815
+ safe_not_equal,
15816
+ {
15817
+ five: 0,
15818
+ modelOcclusionEnable: 6,
15819
+ itemLabels: 7,
15820
+ wrapper: 8,
15821
+ hooks: 1,
15822
+ displayStrategyType: 9
15823
+ },
15824
+ add_css
15825
+ );
15826
+ }
15827
+ }
15828
+
15829
+ /** @description 转成内部所需数据 */
15830
+ function parseItemLabelPluginData(data) {
15831
+ return data.item_labels.map(label => (Object.assign({ modelPosition: [label.position[0], label.position[1], label.position[2]] }, label)));
15832
+ }
15833
+
15834
+ const Plugin = (five, params) => {
15835
+ var _a, _b;
15836
+ const pluginState = {
15837
+ container: document.createElement('div'),
15838
+ data: null,
15839
+ enabled: true,
15840
+ fiveModeEnabled: true,
15841
+ itemLabels: [],
15842
+ wrapper: null,
15843
+ app: undefined,
15844
+ hooks: new Subscribe(),
15845
+ modelOcclusionEnable: (_a = params === null || params === void 0 ? void 0 : params.modelOcclusionEnable) !== null && _a !== void 0 ? _a : true,
15846
+ displayStrategyType: (_b = params === null || params === void 0 ? void 0 : params.displayStrategyType) !== null && _b !== void 0 ? _b : ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.SMALL,
15847
+ };
15848
+ pluginState.container.setAttribute('class', 'item-label-plugin-container');
15849
+ pluginState.container.style.cssText = `
15850
+ position: absolute;
15851
+ left: 0;
15852
+ top: 0;
15853
+ width: 100%;
15854
+ height: 100%;
15855
+ z-index: 5;
15856
+ `;
15857
+ pluginState.container.style.pointerEvents = 'none'; // 写到 cssText 里不生效
15858
+ const appendTo = (wrapper) => {
15859
+ pluginState.wrapper = wrapper;
15860
+ wrapper.appendChild(pluginState.container);
15861
+ render();
15862
+ return true;
15863
+ };
15864
+ const load = (data) => {
15865
+ pluginState.itemLabels = parseItemLabelPluginData(data);
15866
+ render();
15867
+ };
15868
+ const enable = () => {
15869
+ if (pluginState.enabled)
15870
+ return true;
15871
+ pluginState.enabled = true;
15872
+ render();
15873
+ return true;
15874
+ };
15875
+ const disable = () => {
15876
+ if (!pluginState.enabled)
15877
+ return true;
15878
+ pluginState.enabled = false;
15879
+ render();
15880
+ return true;
15881
+ };
15882
+ const dispose = () => {
15883
+ removeListener4Five();
15884
+ pluginState.container.remove();
15885
+ };
15886
+ const render = () => {
15887
+ var _a;
15888
+ if (!pluginState.wrapper)
15889
+ return;
15890
+ // 只要不可展示,销毁容器
15891
+ if (!pluginState.enabled || !pluginState.fiveModeEnabled) {
15892
+ (_a = pluginState.app) === null || _a === void 0 ? void 0 : _a.$destroy();
15893
+ pluginState.app = undefined;
15894
+ return;
15895
+ }
15896
+ // 正常显示时,分为 app 存在和不存在两种情况,如果存在,传值,不存在则初始化并传值
15897
+ if (!pluginState.app) {
15898
+ pluginState.app = new ItemLabelComponent({
15899
+ target: pluginState.container,
15900
+ props: {
15901
+ five: five,
15902
+ modelOcclusionEnable: pluginState.modelOcclusionEnable,
15903
+ itemLabels: pluginState.itemLabels,
15904
+ wrapper: pluginState.wrapper,
15905
+ hooks: pluginState.hooks,
15906
+ displayStrategyType: pluginState.displayStrategyType
15907
+ }
15908
+ });
15909
+ }
15910
+ else {
15911
+ pluginState.app.$set({
15912
+ five: five,
15913
+ itemLabels: pluginState.itemLabels
15914
+ });
15915
+ }
15916
+ };
15917
+ // 添加 five 监听
15918
+ const addListener4Five = () => {
15919
+ five.on('modeChange', onFiveModeChange);
15920
+ five.once('dispose', dispose);
15921
+ };
15922
+ // 取消 five 监听
15923
+ const removeListener4Five = () => {
15924
+ five.off('modeChange', onFiveModeChange);
15925
+ };
15926
+ const onFiveModeChange = (mode) => {
15927
+ if (!pluginState.enabled)
15928
+ return;
15929
+ pluginState.fiveModeEnabled = false;
15930
+ render();
15931
+ five.once('initAnimationEnded', () => {
15932
+ pluginState.fiveModeEnabled = true;
15933
+ render();
15934
+ });
15935
+ };
15936
+ addListener4Five();
15937
+ return {
15938
+ appendTo,
15939
+ load,
15940
+ enable,
15941
+ disable,
15942
+ dispose,
15943
+ hooks: pluginState.hooks
15944
+ };
15945
+ };
15946
+
15947
+ const itemLabelPluginServerParams = {
15948
+ name: 'ItemLabelPlugin',
15949
+ version: 0,
15950
+ };
15951
+
15952
+ export { CSS3DRenderPlugin, CameraMovementEffect, CameraMovementPlugin, DIRECTION, DISPLAY_STRATEGY_TYPE, FLOOR_PLAN_ATTACHED_TO, FLOOR_TYPE_MAP, ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE, Plugin as ItemLabelPlugin, ModelChassisCompassPlugin, ModelEntryDoorGuidePlugin, ModelFloorplanPlugin, ModelItemLabelPlugin, ModelRoomLabelPlugin, ModelTVVideoPlugin, ModelViewPlugin, PanoCompassPlugin, PanoCursorRaycasterPlugin, PanoFloorplanRadarPlugin, PanoMeasurePlugin, PanoRulerPlugin, PanoSpatialTagPlugin, ROOM_FETILE_TYPE_MAP, ROOM_TYPE_MAP, Rotation, TopviewFloorplanPlugin, itemLabelPluginServerParams, modelItemLabelPluginServerParams, modelRoomLabelPluginServerParams, panoCompassPluginServerParams };