@realsee/dnalogel 2.0.0-alpha.26 → 2.0.0-alpha.28

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 (162) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/CSS3DRenderPlugin/Plugin.d.ts +49 -0
  3. package/dist/CSS3DRenderPlugin/index.d.ts +3 -48
  4. package/dist/CameraMovementPlugin/CameraMovementPlugin.d.ts +7 -0
  5. package/dist/CameraMovementPlugin/index.d.ts +4 -6
  6. package/dist/CameraMovementPlugin/index.js +12 -12
  7. package/dist/ModelChassisCompassPlugin/Plugin.d.ts +19 -0
  8. package/dist/ModelChassisCompassPlugin/index.d.ts +3 -18
  9. package/dist/ModelEntryDoorGuidePlugin/Plugin.d.ts +26 -0
  10. package/dist/ModelEntryDoorGuidePlugin/index.d.ts +3 -25
  11. package/dist/ModelEntryDoorGuidePlugin/index.js +0 -5
  12. package/dist/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +4 -0
  13. package/dist/ModelItemLabelPlugin/index.d.ts +8 -3
  14. package/dist/ModelItemLabelPlugin/index.js +13 -7
  15. package/dist/ModelTVVideoPlugin/Plugin.d.ts +4 -0
  16. package/dist/ModelTVVideoPlugin/index.d.ts +4 -3
  17. package/dist/ModelTVVideoPlugin/index.js +3 -3
  18. package/dist/ModelViewPlugin/Plugin.d.ts +17 -0
  19. package/dist/ModelViewPlugin/index.d.ts +3 -16
  20. package/dist/PanoCompassPlugin/Plugin.d.ts +47 -0
  21. package/dist/PanoCompassPlugin/index.d.ts +4 -47
  22. package/dist/PanoCompassPlugin/index.js +5 -4
  23. package/dist/PanoMeasurePlugin/index.d.ts +1 -1
  24. package/dist/PanoMeasurePlugin/index.js +4 -1
  25. package/dist/PanoRulerPlugin/Plugin.d.ts +31 -0
  26. package/dist/PanoRulerPlugin/index.d.ts +4 -30
  27. package/dist/PanoRulerPlugin/index.js +0 -5
  28. package/dist/PanoSpatialTagPlugin/Plugin.d.ts +33 -0
  29. package/dist/PanoSpatialTagPlugin/index.d.ts +4 -32
  30. package/dist/PanoSpatialTagPlugin/index.js +23 -21
  31. package/dist/_index.d.ts +30 -0
  32. package/dist/floorplan/index.d.ts +6 -0
  33. package/dist/index.d.ts +15 -30
  34. package/dist/index.es.js +149 -22
  35. package/dist/index.js +177 -43
  36. package/dist/index.umd.js +180 -47
  37. package/docs/assets/search.js +1 -1
  38. package/docs/classes/ModelRoomLabelController.html +5 -8
  39. package/docs/classes/PanoFloorplanRadarPluginController.html +3 -0
  40. package/docs/enums/CameraMovementEffect.html +3 -0
  41. package/docs/enums/DIRECTION.html +1 -0
  42. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -0
  43. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  44. package/docs/enums/ModelFloorplanErrorType.html +1 -1
  45. package/docs/enums/Rotation.html +3 -0
  46. package/docs/index.html +2 -2
  47. package/docs/interfaces/CSS3DRenderPluginExportType.html +4 -0
  48. package/docs/interfaces/CameraMovementPluginExportType.html +17 -0
  49. package/docs/interfaces/FloorplanBounding.html +10 -0
  50. package/docs/interfaces/FloorplanData.html +3 -0
  51. package/docs/interfaces/FloorplanEntrance.html +15 -0
  52. package/docs/interfaces/FloorplanExtraObject.html +7 -0
  53. package/docs/interfaces/FloorplanExtraObject3D.html +3 -0
  54. package/docs/interfaces/FloorplanFloorData.html +3 -0
  55. package/docs/interfaces/FloorplanImagePosition.html +3 -0
  56. package/docs/interfaces/FloorplanObserver.html +5 -0
  57. package/docs/interfaces/FloorplanOutlineItem.html +3 -0
  58. package/docs/interfaces/FloorplanPosition.html +3 -0
  59. package/docs/interfaces/FloorplanRoomItem.html +17 -0
  60. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -0
  61. package/docs/interfaces/FloorplanServerBounding.html +10 -0
  62. package/docs/interfaces/FloorplanServerComputedData.html +1 -0
  63. package/docs/interfaces/FloorplanServerData.html +3 -0
  64. package/docs/interfaces/FloorplanServerEntrance.html +15 -0
  65. package/docs/interfaces/FloorplanServerFloorData.html +3 -0
  66. package/docs/interfaces/FloorplanServerImagePosition.html +3 -0
  67. package/docs/interfaces/FloorplanServerObserver.html +5 -0
  68. package/docs/interfaces/FloorplanServerOutlineItem.html +3 -0
  69. package/docs/interfaces/FloorplanServerPosition.html +3 -0
  70. package/docs/interfaces/FloorplanServerRoomItem.html +20 -0
  71. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -0
  72. package/docs/interfaces/LineJson.html +1 -1
  73. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  74. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  75. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  76. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  77. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  78. package/docs/interfaces/ModelFloorplanParameterType.html +1 -1
  79. package/docs/interfaces/ModelFloorplanViewEvent.html +3 -3
  80. package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
  81. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
  82. package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
  83. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  84. package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
  85. package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
  86. package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
  87. package/docs/interfaces/ModelViewPluginExportType.html +1 -0
  88. package/docs/interfaces/PanoCompassPluginData.html +1 -1
  89. package/docs/interfaces/PanoCompassPluginParameterType.html +1 -1
  90. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  91. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -0
  92. package/docs/interfaces/PanoFloorplanRadarPluginControllerParameter.html +1 -0
  93. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  94. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  95. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  96. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -0
  97. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -0
  98. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  99. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -0
  100. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  101. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -0
  102. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  103. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -0
  104. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -0
  105. package/docs/interfaces/Point.html +1 -0
  106. package/docs/interfaces/PointJson.html +1 -1
  107. package/docs/interfaces/Room.html +1 -0
  108. package/docs/interfaces/RoomInfo.html +1 -0
  109. package/docs/interfaces/RoomLabel.html +7 -7
  110. package/docs/interfaces/RoomRules.html +1 -0
  111. package/docs/interfaces/Rooms.html +1 -0
  112. package/docs/interfaces/TopviewFloorplanPluginParameterType.html +10 -10
  113. package/docs/modules.html +28 -12
  114. package/libs/CSS3DRenderPlugin/Plugin.d.ts +49 -0
  115. package/libs/CSS3DRenderPlugin/Plugin.js +182 -0
  116. package/libs/CSS3DRenderPlugin/index.d.ts +3 -48
  117. package/libs/CSS3DRenderPlugin/index.js +2 -181
  118. package/libs/CameraMovementPlugin/CameraMovementPlugin.d.ts +7 -0
  119. package/libs/CameraMovementPlugin/CameraMovementPlugin.js +159 -0
  120. package/libs/CameraMovementPlugin/index.d.ts +4 -6
  121. package/libs/CameraMovementPlugin/index.js +3 -158
  122. package/libs/ModelChassisCompassPlugin/Plugin.d.ts +19 -0
  123. package/libs/ModelChassisCompassPlugin/Plugin.js +75 -0
  124. package/libs/ModelChassisCompassPlugin/index.d.ts +3 -18
  125. package/libs/ModelChassisCompassPlugin/index.js +2 -74
  126. package/libs/ModelEntryDoorGuidePlugin/Plugin.d.ts +26 -0
  127. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +140 -0
  128. package/libs/ModelEntryDoorGuidePlugin/index.d.ts +3 -25
  129. package/libs/ModelEntryDoorGuidePlugin/index.js +2 -139
  130. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +4 -0
  131. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +120 -0
  132. package/libs/ModelItemLabelPlugin/index.d.ts +8 -3
  133. package/libs/ModelItemLabelPlugin/index.js +7 -119
  134. package/libs/ModelTVVideoPlugin/Plugin.d.ts +4 -0
  135. package/libs/ModelTVVideoPlugin/Plugin.js +254 -0
  136. package/libs/ModelTVVideoPlugin/index.d.ts +4 -3
  137. package/libs/ModelTVVideoPlugin/index.js +3 -253
  138. package/libs/ModelViewPlugin/Plugin.d.ts +17 -0
  139. package/libs/ModelViewPlugin/Plugin.js +160 -0
  140. package/libs/ModelViewPlugin/index.d.ts +3 -16
  141. package/libs/ModelViewPlugin/index.js +2 -159
  142. package/libs/PanoCompassPlugin/Plugin.d.ts +47 -0
  143. package/libs/PanoCompassPlugin/Plugin.js +249 -0
  144. package/libs/PanoCompassPlugin/index.d.ts +4 -47
  145. package/libs/PanoCompassPlugin/index.js +3 -249
  146. package/libs/PanoMeasurePlugin/index.d.ts +1 -1
  147. package/libs/PanoMeasurePlugin/index.js +1 -1
  148. package/libs/PanoRulerPlugin/Plugin.d.ts +31 -0
  149. package/libs/PanoRulerPlugin/Plugin.js +402 -0
  150. package/libs/PanoRulerPlugin/index.d.ts +4 -30
  151. package/libs/PanoRulerPlugin/index.js +2 -401
  152. package/libs/PanoSpatialTagPlugin/Plugin.d.ts +33 -0
  153. package/libs/PanoSpatialTagPlugin/Plugin.js +415 -0
  154. package/libs/PanoSpatialTagPlugin/index.d.ts +4 -32
  155. package/libs/PanoSpatialTagPlugin/index.js +4 -412
  156. package/libs/_index.d.ts +30 -0
  157. package/libs/_index.js +18 -0
  158. package/libs/floorplan/index.d.ts +6 -0
  159. package/libs/floorplan/index.js +7 -0
  160. package/libs/index.d.ts +15 -30
  161. package/libs/index.js +25 -17
  162. package/package.json +5 -4
package/dist/index.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var react = require('@realsee/five/react');
5
6
  var THREE = require('three');
6
7
  var CSS3DRenderer = require('three/examples/jsm/renderers/CSS3DRenderer');
7
8
  var line = require('@realsee/five/line');
@@ -40,6 +41,14 @@ var TWEEN__namespace = /*#__PURE__*/_interopNamespace(TWEEN);
40
41
  var TWEEN__default = /*#__PURE__*/_interopDefaultLegacy(TWEEN);
41
42
  var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
42
43
 
44
+ function useFivePlugin(name) {
45
+ const five = react.unsafe__useFiveInstance();
46
+ const plugin = five.plugins[name];
47
+ if (!plugin)
48
+ throw new Error(`can not find plugin "${name}"`);
49
+ return plugin;
50
+ }
51
+
43
52
  /**
44
53
  * Five 模型插件
45
54
  * @template ExportType 导出方法
@@ -1010,6 +1019,10 @@ class ModelRoomLabelController {
1010
1019
  const ModelRoomLabelPlugin = (five) => {
1011
1020
  return new ModelRoomLabelController(five);
1012
1021
  };
1022
+ const modelRoomLabelPluginServerParams = {
1023
+ name: 'ModelRoomLabelPlugin',
1024
+ version: 0,
1025
+ };
1013
1026
 
1014
1027
  exports.FLOOR_PLAN_ATTACHED_TO = void 0;
1015
1028
  (function (FLOOR_PLAN_ATTACHED_TO) {
@@ -6352,6 +6365,108 @@ const ModelFloorplanPlugin = (five, params) => {
6352
6365
  return new ModelFloorplanPluginController(five, params);
6353
6366
  };
6354
6367
 
6368
+ /** 房屋数据映射表 */
6369
+ const ROOM_FETILE_TYPE_MAP = [
6370
+ { type: 0, floorType: 1, roomType: '100900000012', name: '其他' },
6371
+ { type: 1, floorType: 1, roomType: '100900000002', name: '客厅' },
6372
+ { type: 2, floorType: 1, roomType: '100900000002', name: '餐厅' },
6373
+ { type: 3, floorType: 0, roomType: '100900000001', name: '卧室' },
6374
+ { type: 4, floorType: 0, roomType: '100900000001', name: '书房' },
6375
+ { type: 5, floorType: 3, roomType: '100900000004', name: '卫生间' },
6376
+ { type: 6, floorType: 3, roomType: '100900000004', name: '淋浴间' },
6377
+ { type: 7, floorType: 3, roomType: '100900000004', name: '洗手间' },
6378
+ { type: 8, floorType: 3, roomType: '100900000003', name: '厨房' },
6379
+ {
6380
+ type: 9,
6381
+ floorType: 1,
6382
+ roomType: '100900000003',
6383
+ name: '开放厨房',
6384
+ onlySubArea: true,
6385
+ },
6386
+ { type: 10, floorType: 0, roomType: '100900000001', name: '多功能间' },
6387
+ { type: 11, floorType: 0, roomType: '100900000009', name: '保姆间' },
6388
+ { type: 12, floorType: 4, roomType: '100900000005', name: '阳台' },
6389
+ { type: 13, floorType: 4, roomType: '100900000006', name: '露台' },
6390
+ { type: 14, floorType: 0, roomType: '100900000008', name: '储物间' },
6391
+ { type: 15, floorType: 0, roomType: '100900000013', name: '衣帽间' },
6392
+ { type: 16, floorType: 0, roomType: '100900000011', name: '阁楼' },
6393
+ { type: 17, floorType: 2, roomType: '100900000007', name: '花园' },
6394
+ { type: 18, floorType: 5, roomType: '100900000010', name: '车库' },
6395
+ { type: 19, floorType: 1, roomType: '100900000012', name: '电梯' },
6396
+ { type: 20, floorType: 1, roomType: '100900000012', name: '地下室' },
6397
+ { type: 21, floorType: 1, roomType: '100900000012', name: '天井' },
6398
+ { type: 22, floorType: 1, roomType: '100900000012', name: '阳光房' },
6399
+ { type: 23, floorType: 1, roomType: '100900000012', name: '过道' },
6400
+ { type: 24, floorType: 1, roomType: '100900000012', name: '楼梯间' },
6401
+ { type: 25, floorType: 1, roomType: '100900000012', name: '门厅' },
6402
+ { type: 26, floorType: 2, roomType: '100900000012', name: '入户花园' },
6403
+ { type: 27, floorType: 1, roomType: '100900000012', name: '玄关' },
6404
+ { type: 28, floorType: 1, roomType: '100900000012', name: '挑空' },
6405
+ { type: 29, floorType: 4, roomType: '100900000012', name: '晾晒区' },
6406
+ { type: 30, floorType: 4, roomType: '100900000012', name: '洗衣房' },
6407
+ { type: 31, floorType: 0, roomType: '100900000012', name: '娱乐区' },
6408
+ { type: 32, floorType: 0, roomType: '100900000012', name: '健身区' },
6409
+ { type: 33, floorType: 0, roomType: '100900000012', name: '接待区' },
6410
+ { type: 34, floorType: 0, roomType: '100900000012', name: '影音区' },
6411
+ { type: 35, floorType: 1, roomType: '100900000012', name: '餐饮区' },
6412
+ {
6413
+ type: 36,
6414
+ floorType: 1,
6415
+ roomType: '100900000012',
6416
+ name: '其他',
6417
+ onlySubArea: true,
6418
+ },
6419
+ { type: 37, floorType: 1, roomType: '100900000002', name: '起居室' },
6420
+ { type: 38, floorType: 0, roomType: '100900000001', name: '主卧' },
6421
+ { type: 39, floorType: 0, roomType: '100900000001', name: '次卧' },
6422
+ { type: 40, floorType: 0, roomType: '100900000001', name: '优化间' },
6423
+ { type: 41, floorType: 0, roomType: '100900000001', name: '办公室' },
6424
+ { type: 42, floorType: 0, roomType: '100900000001', name: '会议室' },
6425
+ { type: 43, floorType: 0, roomType: '100900000001', name: '洽谈间' },
6426
+ { type: 44, floorType: 1, roomType: '100900000002', name: '共享大厅' },
6427
+ { type: 45, floorType: 1, roomType: '100900000012', name: '水吧' },
6428
+ { type: 46, floorType: 0, roomType: '100900000015', name: '出入口' },
6429
+ { type: 47, floorType: 0, roomType: '100900000015', name: '大厅' },
6430
+ { type: 48, floorType: 0, roomType: '100900000015', name: '包厢' },
6431
+ { type: 49, floorType: 0, roomType: '100900000015', name: '其他' },
6432
+ { type: 50, floorType: 0, roomType: '100900000016', name: '出入口' },
6433
+ { type: 51, floorType: 0, roomType: '100900000016', name: '办公区' },
6434
+ { type: 52, floorType: 0, roomType: '100900000016', name: '老板间' },
6435
+ { type: 53, floorType: 0, roomType: '100900000016', name: '会议室' },
6436
+ { type: 54, floorType: 0, roomType: '100900000016', name: '休息区/水吧' },
6437
+ { type: 55, floorType: 0, roomType: '100900000016', name: '其他' },
6438
+ { type: 56, floorType: 2, roomType: '100900000012', name: '空中花园' },
6439
+ { type: 57, floorType: 0, roomType: '100900000001', name: '洋室' },
6440
+ { type: 58, floorType: 0, roomType: '100900000001', name: '和室' },
6441
+ ];
6442
+ /** 地板信息映射表 */
6443
+ const FLOOR_TYPE_MAP = [
6444
+ { type: 0, description: '木质地板' },
6445
+ { type: 1, description: '瓷砖地面' },
6446
+ { type: 2, description: '户外地面' },
6447
+ { type: 3, description: '卫生间地面' },
6448
+ { type: 4, description: '阳台地面' },
6449
+ { type: 5, description: '车库地面' },
6450
+ ];
6451
+ /** 房屋类型映射表 */
6452
+ const ROOM_TYPE_MAP = [
6453
+ { roomType: '100900000001', description: '室' },
6454
+ { roomType: '100900000002', description: '厅' },
6455
+ { roomType: '100900000003', description: '厨' },
6456
+ { roomType: '100900000004', description: '卫' },
6457
+ { roomType: '100900000005', description: '阳台' },
6458
+ { roomType: '100900000006', description: '露台' },
6459
+ { roomType: '100900000007', description: '花园' },
6460
+ { roomType: '100900000008', description: '储' },
6461
+ { roomType: '100900000009', description: '保姆间' },
6462
+ { roomType: '100900000010', description: '车库' },
6463
+ { roomType: '100900000011', description: '阁楼' },
6464
+ { roomType: '100900000012', description: '其他' },
6465
+ { roomType: '100900000013', description: '衣' },
6466
+ { roomType: '100900000015', description: '商铺' },
6467
+ { roomType: '100900000016', description: '写字楼' },
6468
+ ];
6469
+
6355
6470
  const genRotationMatrix = (x, y, z) => {
6356
6471
  const matrix = new THREE__namespace.Matrix4();
6357
6472
  const euler = new THREE__namespace.Euler(x, y, z, 'YXZ');
@@ -6698,20 +6813,20 @@ function tweenProgress$1(duration, easing) {
6698
6813
  /**
6699
6814
  * 运镜效果
6700
6815
  */
6701
- var CameraMovementEffect;
6816
+ exports.CameraMovementEffect = void 0;
6702
6817
  (function (CameraMovementEffect) {
6703
6818
  CameraMovementEffect["Move"] = "Move";
6704
6819
  CameraMovementEffect["Rotate"] = "Rotate";
6705
- })(CameraMovementEffect || (CameraMovementEffect = {}));
6820
+ })(exports.CameraMovementEffect || (exports.CameraMovementEffect = {}));
6706
6821
  /**
6707
6822
  * 旋转类型
6708
6823
  */
6709
- var Rotation;
6824
+ exports.Rotation = void 0;
6710
6825
  (function (Rotation) {
6711
6826
  Rotation["Clockwise"] = "Clockwise";
6712
6827
  Rotation["Anticlockwise"] = "Anticlockwise";
6713
6828
  Rotation["Loop"] = "Loop";
6714
- })(Rotation || (Rotation = {}));
6829
+ })(exports.Rotation || (exports.Rotation = {}));
6715
6830
 
6716
6831
  const PI_2 = Math.PI * 2;
6717
6832
  /**
@@ -6742,18 +6857,18 @@ const getLongitudeParams = (from, to, rotation) => {
6742
6857
  from = formatLongitude(from);
6743
6858
  to = formatLongitude(to);
6744
6859
  // 逆时针旋转,初始值必须是较大的值
6745
- if (rotation === Rotation.Anticlockwise && from < to)
6860
+ if (rotation === exports.Rotation.Anticlockwise && from < to)
6746
6861
  from += PI_2;
6747
6862
  // 顺时针旋转,结束值必须是较大值
6748
- if (rotation === Rotation.Clockwise && to < from)
6863
+ if (rotation === exports.Rotation.Clockwise && to < from)
6749
6864
  to += PI_2;
6750
6865
  // Loop 旋转,找锐角旋转
6751
6866
  // 如果 to 比 from 大 180°,逆时针转
6752
6867
  // 如果 from 比 to 大 180°,顺时针转
6753
- if (rotation === Rotation.Loop && to - from > PI)
6754
- return getLongitudeParams(from, to, Rotation.Anticlockwise);
6755
- if (rotation === Rotation.Loop && from - to > PI)
6756
- return getLongitudeParams(from, to, Rotation.Clockwise);
6868
+ if (rotation === exports.Rotation.Loop && to - from > PI)
6869
+ return getLongitudeParams(from, to, exports.Rotation.Anticlockwise);
6870
+ if (rotation === exports.Rotation.Loop && from - to > PI)
6871
+ return getLongitudeParams(from, to, exports.Rotation.Clockwise);
6757
6872
  return { from, to };
6758
6873
  };
6759
6874
  /**
@@ -6803,7 +6918,7 @@ const CameraMovementPlugin = (five$1) => {
6803
6918
  const fromLatitude = formatLatitude(currentFiveState.latitude);
6804
6919
  const toLatitude = formatLatitude(args.latitude);
6805
6920
  // longitude
6806
- const { from: fromLongitude, to: toLongitude } = getLongitudeParams(currentFiveState.longitude, args.longitude, args.rotation || Rotation.Loop);
6921
+ const { from: fromLongitude, to: toLongitude } = getLongitudeParams(currentFiveState.longitude, args.longitude, args.rotation || exports.Rotation.Loop);
6807
6922
  // fov
6808
6923
  const fromFov = currentFiveState.fov;
6809
6924
  const toFov = args.fov;
@@ -6861,7 +6976,7 @@ const CameraMovementPlugin = (five$1) => {
6861
6976
  .onUpdate(onUpdate)
6862
6977
  .onComplete(onComplete)
6863
6978
  .onDestroy(onDestroy);
6864
- if (args.rotation === Rotation.Loop) {
6979
+ if (args.rotation === exports.Rotation.Loop) {
6865
6980
  tween.repeat(Infinity).yoyo(true);
6866
6981
  }
6867
6982
  /**
@@ -7832,6 +7947,11 @@ class PanoCompassController {
7832
7947
  }
7833
7948
  }
7834
7949
 
7950
+ const panoCompassPluginServerParams = {
7951
+ name: 'PanoCompassPlugin',
7952
+ version: 0,
7953
+ };
7954
+
7835
7955
  /** 交换数组元素 */
7836
7956
  function exchange(array, index1, index2) {
7837
7957
  const value = array[index1];
@@ -14121,7 +14241,9 @@ const PanoSpatialTagPlugin = (five$1, params) => {
14121
14241
  }))
14122
14242
  continue;
14123
14243
  const raycaster = new THREE__namespace.Raycaster(camera.position.clone().setY(RAY_ORIGIN_Y), point.position.clone().sub(camera.position.clone().setY(RAY_ORIGIN_Y)).normalize(), 0, point.distance + RAY_TOLERANT_DISTANCE);
14124
- const [intersect] = five$1.model.intersectRaycaster(raycaster);
14244
+ const [intersect] = five$1.model.bvhs.loaded ?
14245
+ five$1.model.intersectRaycaster(raycaster) :
14246
+ raycaster.intersectObjects(five$1.model.children, true);
14125
14247
  if (!intersect)
14126
14248
  continue;
14127
14249
  if (point.distance - intersect.distance < RAY_TOLERANT_DISTANCE) {
@@ -14162,10 +14284,10 @@ const PanoSpatialTagPlugin = (five$1, params) => {
14162
14284
  return newTags;
14163
14285
  };
14164
14286
  /** 标签数据加载
14165
- * @param data.points {Array} 标签数据
14166
- * @param data.enabled {Boolean} 插件是否启用
14167
- * @param data.folded {Boolean} 标签是否默认展开
14168
- */
14287
+ * @param data.points {Array} 标签数据
14288
+ * @param data.enabled {Boolean} 插件是否启用
14289
+ * @param data.folded {Boolean} 标签是否默认展开
14290
+ */
14169
14291
  const load = (data) => {
14170
14292
  state.points = data.points.map(point => {
14171
14293
  var _a, _b;
@@ -14189,16 +14311,16 @@ const PanoSpatialTagPlugin = (five$1, params) => {
14189
14311
  state.folded = data.folded;
14190
14312
  };
14191
14313
  /** 标签启用
14192
- * 启用插件并重新计算展示标签
14193
- */
14314
+ * 启用插件并重新计算展示标签
14315
+ */
14194
14316
  const enable = () => {
14195
14317
  state.enabled = true;
14196
14318
  updateTags();
14197
14319
  };
14198
14320
  /** 插件禁用
14199
- * 1. 禁用同时会清除已展示的标签
14200
- * 2. 再次启用时会重新计算展示标签
14201
- */
14321
+ * 1. 禁用同时会清除已展示的标签
14322
+ * 2. 再次启用时会重新计算展示标签
14323
+ */
14202
14324
  const disable = () => {
14203
14325
  state.enabled = false;
14204
14326
  origins.$set({ origins: [] });
@@ -14210,9 +14332,9 @@ const PanoSpatialTagPlugin = (five$1, params) => {
14210
14332
  state.tags = [];
14211
14333
  };
14212
14334
  /** 展开所有标签
14213
- * 1. 展开所有收起的标签
14214
- * 2. 新标签会默认展开
14215
- */
14335
+ * 1. 展开所有收起的标签
14336
+ * 2. 新标签会默认展开
14337
+ */
14216
14338
  const unfoldAll = () => {
14217
14339
  state.folded = false;
14218
14340
  state.tags.forEach(tag => {
@@ -14220,9 +14342,9 @@ const PanoSpatialTagPlugin = (five$1, params) => {
14220
14342
  });
14221
14343
  };
14222
14344
  /** 收起所有标签
14223
- * 1. 收起所有展开的标签
14224
- * 2. 新标签会默认收起
14225
- */
14345
+ * 1. 收起所有展开的标签
14346
+ * 2. 新标签会默认收起
14347
+ */
14226
14348
  const foldAll = () => {
14227
14349
  state.folded = true;
14228
14350
  state.tags.forEach(tag => {
@@ -14230,8 +14352,8 @@ const PanoSpatialTagPlugin = (five$1, params) => {
14230
14352
  });
14231
14353
  };
14232
14354
  /** 展开单个标签
14233
- * @param id {Number | String} 标签ID
14234
- */
14355
+ * @param id {Number | String} 标签ID
14356
+ */
14235
14357
  const unfold = (id) => {
14236
14358
  state.tags.forEach(tag => {
14237
14359
  if (tag.id === id)
@@ -14239,8 +14361,8 @@ const PanoSpatialTagPlugin = (five$1, params) => {
14239
14361
  });
14240
14362
  };
14241
14363
  /** 收起单个标签
14242
- * @param id {Number | String} 标签ID
14243
- */
14364
+ * @param id {Number | String} 标签ID
14365
+ */
14244
14366
  const fold = (id) => {
14245
14367
  state.tags.forEach(tag => {
14246
14368
  if (tag.id === id)
@@ -14274,7 +14396,7 @@ const PanoSpatialTagPlugin = (five$1, params) => {
14274
14396
  five$1.on('cameraUpdate', onCameraUpdate);
14275
14397
  }
14276
14398
  else {
14277
- five$1.once('modelBvhLoaded', () => {
14399
+ five$1.once('modelLoaded', () => {
14278
14400
  if (!wrapper)
14279
14401
  wrapper = five$1.getElement().parentElement;
14280
14402
  wrapper.appendChild(container);
@@ -14300,13 +14422,13 @@ const PanoSpatialTagPlugin = (five$1, params) => {
14300
14422
  };
14301
14423
  };
14302
14424
 
14303
- var DISPLAY_STRATEGY_TYPE;
14425
+ exports.DISPLAY_STRATEGY_TYPE = void 0;
14304
14426
  (function (DISPLAY_STRATEGY_TYPE) {
14305
14427
  DISPLAY_STRATEGY_TYPE["SMALL"] = "small";
14306
14428
  DISPLAY_STRATEGY_TYPE["MIDLLE"] = "middle";
14307
14429
  DISPLAY_STRATEGY_TYPE["LARGE"] = "large";
14308
14430
  DISPLAY_STRATEGY_TYPE["EXTRA_LARGE"] = "x-large";
14309
- })(DISPLAY_STRATEGY_TYPE || (DISPLAY_STRATEGY_TYPE = {}));
14431
+ })(exports.DISPLAY_STRATEGY_TYPE || (exports.DISPLAY_STRATEGY_TYPE = {}));
14310
14432
 
14311
14433
  /* src/ModelItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.47.0 */
14312
14434
 
@@ -14647,13 +14769,13 @@ function instance($$self, $$props, $$invalidate) {
14647
14769
 
14648
14770
  function getStrokeLength(itemSpaceHeight, type) {
14649
14771
  switch (type) {
14650
- case DISPLAY_STRATEGY_TYPE.SMALL:
14772
+ case exports.DISPLAY_STRATEGY_TYPE.SMALL:
14651
14773
  return Math.ceil(-27.78 * itemSpaceHeight + 85);
14652
- case DISPLAY_STRATEGY_TYPE.MIDLLE:
14774
+ case exports.DISPLAY_STRATEGY_TYPE.MIDLLE:
14653
14775
  return Math.ceil(-38.9 * itemSpaceHeight + 130);
14654
- case DISPLAY_STRATEGY_TYPE.LARGE:
14776
+ case exports.DISPLAY_STRATEGY_TYPE.LARGE:
14655
14777
  return Math.ceil(-44.44 * itemSpaceHeight + 140);
14656
- case DISPLAY_STRATEGY_TYPE.EXTRA_LARGE:
14778
+ case exports.DISPLAY_STRATEGY_TYPE.EXTRA_LARGE:
14657
14779
  return Math.ceil(-92.59 * itemSpaceHeight + 300);
14658
14780
  }
14659
14781
  }
@@ -14829,7 +14951,7 @@ const ModelItemLabelPlugin = (five$1, params) => {
14829
14951
  app: undefined,
14830
14952
  hooks: new five.Subscribe(),
14831
14953
  modelOcclusionEnable: (_a = params === null || params === void 0 ? void 0 : params.modelOcclusionEnable) !== null && _a !== void 0 ? _a : true,
14832
- displayStrategyType: (_b = params === null || params === void 0 ? void 0 : params.displayStrategyType) !== null && _b !== void 0 ? _b : DISPLAY_STRATEGY_TYPE.SMALL,
14954
+ displayStrategyType: (_b = params === null || params === void 0 ? void 0 : params.displayStrategyType) !== null && _b !== void 0 ? _b : exports.DISPLAY_STRATEGY_TYPE.SMALL,
14833
14955
  };
14834
14956
  pluginState.container.setAttribute('class', 'model-item-label-plugin-container');
14835
14957
  pluginState.container.style.cssText = `
@@ -14933,13 +15055,18 @@ const ModelItemLabelPlugin = (five$1, params) => {
14933
15055
  };
14934
15056
  };
14935
15057
 
14936
- var DIRECTION;
15058
+ const modelItemLabelPluginServerParams = {
15059
+ name: 'ModelItemLabelPlugin',
15060
+ version: 0,
15061
+ };
15062
+
15063
+ exports.DIRECTION = void 0;
14937
15064
  (function (DIRECTION) {
14938
15065
  DIRECTION["TOP_LEFT"] = "topLeft";
14939
15066
  DIRECTION["TOP_RIGHT"] = "topRight";
14940
15067
  DIRECTION["BOTTOM_LEFT"] = "bottomLeft";
14941
15068
  DIRECTION["BOTTOM_RIGHT"] = "bottomRight";
14942
- })(DIRECTION || (DIRECTION = {}));
15069
+ })(exports.DIRECTION || (exports.DIRECTION = {}));
14943
15070
 
14944
15071
  function parseModelTVVideoPoints(points) {
14945
15072
  if (points.length === 0)
@@ -14948,7 +15075,7 @@ function parseModelTVVideoPoints(points) {
14948
15075
  return points;
14949
15076
  let newPoints = [];
14950
15077
  points.map(point => {
14951
- const newPoint = [point[DIRECTION.TOP_LEFT], point[DIRECTION.BOTTOM_LEFT], point[DIRECTION.BOTTOM_RIGHT], point[DIRECTION.TOP_RIGHT]];
15078
+ const newPoint = [point[exports.DIRECTION.TOP_LEFT], point[exports.DIRECTION.BOTTOM_LEFT], point[exports.DIRECTION.BOTTOM_RIGHT], point[exports.DIRECTION.TOP_RIGHT]];
14952
15079
  newPoints.push(newPoint);
14953
15080
  });
14954
15081
  return newPoints;
@@ -15208,6 +15335,7 @@ const ModelTVVideoPlugin = (five, { videoElement }) => {
15208
15335
 
15209
15336
  exports.CSS3DRenderPlugin = CSS3DRenderPlugin;
15210
15337
  exports.CameraMovementPlugin = CameraMovementPlugin;
15338
+ exports.FLOOR_TYPE_MAP = FLOOR_TYPE_MAP;
15211
15339
  exports.ModelChassisCompassPlugin = ModelChassisCompassPlugin;
15212
15340
  exports.ModelEntryDoorGuidePlugin = ModelEntryDoorGuidePlugin;
15213
15341
  exports.ModelFloorplanPlugin = ModelFloorplanPlugin;
@@ -15221,4 +15349,10 @@ exports.PanoFloorplanRadarPlugin = PanoFloorplanRadarPlugin;
15221
15349
  exports.PanoMeasurePlugin = PanoMeasurePlugin;
15222
15350
  exports.PanoRulerPlugin = PanoRulerPlugin;
15223
15351
  exports.PanoSpatialTagPlugin = PanoSpatialTagPlugin;
15352
+ exports.ROOM_FETILE_TYPE_MAP = ROOM_FETILE_TYPE_MAP;
15353
+ exports.ROOM_TYPE_MAP = ROOM_TYPE_MAP;
15224
15354
  exports.TopviewFloorplanPlugin = TopviewFloorplanPlugin;
15355
+ exports.modelItemLabelPluginServerParams = modelItemLabelPluginServerParams;
15356
+ exports.modelRoomLabelPluginServerParams = modelRoomLabelPluginServerParams;
15357
+ exports.panoCompassPluginServerParams = panoCompassPluginServerParams;
15358
+ exports.useFivePlugin = useFivePlugin;