@realsee/dnalogel 2.0.0-alpha.27 → 2.0.0-alpha.29-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 (168) hide show
  1. package/CHANGELOG.md +3 -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 +19 -19
  31. package/dist/floorplan/index.d.ts +6 -0
  32. package/dist/index.d.ts +14 -30
  33. package/dist/index.es.js +136 -20
  34. package/dist/index.js +163 -41
  35. package/dist/index.umd.js +163 -41
  36. package/docs/assets/search.js +1 -1
  37. package/docs/classes/ModelRoomLabelController.html +5 -8
  38. package/docs/classes/PanoFloorplanRadarPluginController.html +3 -0
  39. package/docs/enums/CameraMovementEffect.html +3 -0
  40. package/docs/enums/DIRECTION.html +1 -0
  41. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -0
  42. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  43. package/docs/enums/ModelFloorplanErrorType.html +1 -1
  44. package/docs/enums/Rotation.html +3 -0
  45. package/docs/index.html +2 -2
  46. package/docs/interfaces/CSS3DRenderPluginExportType.html +4 -0
  47. package/docs/interfaces/CameraMovementPluginExportType.html +17 -0
  48. package/docs/interfaces/FloorplanBounding.html +10 -0
  49. package/docs/interfaces/FloorplanData.html +3 -0
  50. package/docs/interfaces/FloorplanEntrance.html +15 -0
  51. package/docs/interfaces/FloorplanExtraObject.html +7 -0
  52. package/docs/interfaces/FloorplanExtraObject3D.html +3 -0
  53. package/docs/interfaces/FloorplanFloorData.html +3 -0
  54. package/docs/interfaces/FloorplanImagePosition.html +3 -0
  55. package/docs/interfaces/FloorplanObserver.html +5 -0
  56. package/docs/interfaces/FloorplanOutlineItem.html +3 -0
  57. package/docs/interfaces/FloorplanPosition.html +3 -0
  58. package/docs/interfaces/FloorplanRoomItem.html +17 -0
  59. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -0
  60. package/docs/interfaces/FloorplanServerBounding.html +10 -0
  61. package/docs/interfaces/FloorplanServerComputedData.html +1 -0
  62. package/docs/interfaces/FloorplanServerData.html +3 -0
  63. package/docs/interfaces/FloorplanServerEntrance.html +15 -0
  64. package/docs/interfaces/FloorplanServerFloorData.html +3 -0
  65. package/docs/interfaces/FloorplanServerImagePosition.html +3 -0
  66. package/docs/interfaces/FloorplanServerObserver.html +5 -0
  67. package/docs/interfaces/FloorplanServerOutlineItem.html +3 -0
  68. package/docs/interfaces/FloorplanServerPosition.html +3 -0
  69. package/docs/interfaces/FloorplanServerRoomItem.html +20 -0
  70. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -0
  71. package/docs/interfaces/LineJson.html +1 -1
  72. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  73. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  74. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  75. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  76. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  77. package/docs/interfaces/ModelFloorplanParameterType.html +1 -1
  78. package/docs/interfaces/ModelFloorplanViewEvent.html +3 -3
  79. package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
  80. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
  81. package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
  82. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  83. package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
  84. package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
  85. package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
  86. package/docs/interfaces/ModelViewPluginExportType.html +1 -0
  87. package/docs/interfaces/PanoCompassPluginData.html +1 -1
  88. package/docs/interfaces/PanoCompassPluginParameterType.html +1 -1
  89. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  90. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -0
  91. package/docs/interfaces/PanoFloorplanRadarPluginControllerParameter.html +1 -0
  92. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  93. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  94. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  95. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -0
  96. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -0
  97. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  98. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -0
  99. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  100. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -0
  101. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  102. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -0
  103. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -0
  104. package/docs/interfaces/Point.html +1 -0
  105. package/docs/interfaces/PointJson.html +1 -1
  106. package/docs/interfaces/Room.html +1 -0
  107. package/docs/interfaces/RoomInfo.html +1 -0
  108. package/docs/interfaces/RoomLabel.html +7 -7
  109. package/docs/interfaces/RoomRules.html +1 -0
  110. package/docs/interfaces/Rooms.html +1 -0
  111. package/docs/interfaces/TopviewFloorplanPluginParameterType.html +10 -10
  112. package/docs/modules.html +28 -12
  113. package/libs/CSS3DRenderPlugin/Plugin.d.ts +49 -0
  114. package/libs/CSS3DRenderPlugin/Plugin.js +182 -0
  115. package/libs/CSS3DRenderPlugin/index.d.ts +3 -48
  116. package/libs/CSS3DRenderPlugin/index.js +2 -181
  117. package/libs/CameraMovementPlugin/CameraMovementPlugin.d.ts +7 -0
  118. package/libs/CameraMovementPlugin/CameraMovementPlugin.js +159 -0
  119. package/libs/CameraMovementPlugin/index.d.ts +4 -6
  120. package/libs/CameraMovementPlugin/index.js +3 -158
  121. package/libs/ModelChassisCompassPlugin/Plugin.d.ts +19 -0
  122. package/libs/ModelChassisCompassPlugin/Plugin.js +75 -0
  123. package/libs/ModelChassisCompassPlugin/index.d.ts +3 -18
  124. package/libs/ModelChassisCompassPlugin/index.js +2 -74
  125. package/libs/ModelEntryDoorGuidePlugin/Plugin.d.ts +26 -0
  126. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +140 -0
  127. package/libs/ModelEntryDoorGuidePlugin/index.d.ts +3 -25
  128. package/libs/ModelEntryDoorGuidePlugin/index.js +2 -139
  129. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +4 -0
  130. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +120 -0
  131. package/libs/ModelItemLabelPlugin/index.d.ts +8 -3
  132. package/libs/ModelItemLabelPlugin/index.js +7 -119
  133. package/libs/ModelTVVideoPlugin/Plugin.d.ts +4 -0
  134. package/libs/ModelTVVideoPlugin/Plugin.js +254 -0
  135. package/libs/ModelTVVideoPlugin/index.d.ts +4 -3
  136. package/libs/ModelTVVideoPlugin/index.js +3 -253
  137. package/libs/ModelViewPlugin/Plugin.d.ts +17 -0
  138. package/libs/ModelViewPlugin/Plugin.js +160 -0
  139. package/libs/ModelViewPlugin/index.d.ts +3 -16
  140. package/libs/ModelViewPlugin/index.js +2 -159
  141. package/libs/PanoCompassPlugin/Plugin.d.ts +47 -0
  142. package/libs/PanoCompassPlugin/Plugin.js +249 -0
  143. package/libs/PanoCompassPlugin/index.d.ts +4 -47
  144. package/libs/PanoCompassPlugin/index.js +3 -249
  145. package/libs/PanoMeasurePlugin/index.d.ts +1 -1
  146. package/libs/PanoMeasurePlugin/index.js +1 -1
  147. package/libs/PanoRulerPlugin/Plugin.d.ts +31 -0
  148. package/libs/PanoRulerPlugin/Plugin.js +402 -0
  149. package/libs/PanoRulerPlugin/index.d.ts +4 -30
  150. package/libs/PanoRulerPlugin/index.js +2 -401
  151. package/libs/PanoSpatialTagPlugin/Plugin.d.ts +33 -0
  152. package/libs/PanoSpatialTagPlugin/Plugin.js +415 -0
  153. package/libs/PanoSpatialTagPlugin/index.d.ts +4 -32
  154. package/libs/PanoSpatialTagPlugin/index.js +4 -414
  155. package/libs/floorplan/index.d.ts +6 -0
  156. package/libs/floorplan/index.js +7 -0
  157. package/libs/index.d.ts +14 -30
  158. package/libs/index.js +24 -17
  159. package/package.json +5 -5
  160. package/dist/shared-utils/five/useFivePlugin.d.ts +0 -1
  161. package/dist/shared-utils/useDebounce.d.ts +0 -8
  162. package/dist/shared-utils/useThrottle.d.ts +0 -8
  163. package/libs/shared-utils/five/useFivePlugin.d.ts +0 -1
  164. package/libs/shared-utils/five/useFivePlugin.js +0 -8
  165. package/libs/shared-utils/useDebounce.d.ts +0 -8
  166. package/libs/shared-utils/useDebounce.js +0 -22
  167. package/libs/shared-utils/useThrottle.d.ts +0 -8
  168. package/libs/shared-utils/useThrottle.js +0 -26
package/dist/index.umd.js CHANGED
@@ -999,6 +999,10 @@
999
999
  const ModelRoomLabelPlugin = (five) => {
1000
1000
  return new ModelRoomLabelController(five);
1001
1001
  };
1002
+ const modelRoomLabelPluginServerParams = {
1003
+ name: 'ModelRoomLabelPlugin',
1004
+ version: 0,
1005
+ };
1002
1006
 
1003
1007
  exports.FLOOR_PLAN_ATTACHED_TO = void 0;
1004
1008
  (function (FLOOR_PLAN_ATTACHED_TO) {
@@ -6341,6 +6345,108 @@
6341
6345
  return new ModelFloorplanPluginController(five, params);
6342
6346
  };
6343
6347
 
6348
+ /** 房屋数据映射表 */
6349
+ const ROOM_FETILE_TYPE_MAP = [
6350
+ { type: 0, floorType: 1, roomType: '100900000012', name: '其他' },
6351
+ { type: 1, floorType: 1, roomType: '100900000002', name: '客厅' },
6352
+ { type: 2, floorType: 1, roomType: '100900000002', name: '餐厅' },
6353
+ { type: 3, floorType: 0, roomType: '100900000001', name: '卧室' },
6354
+ { type: 4, floorType: 0, roomType: '100900000001', name: '书房' },
6355
+ { type: 5, floorType: 3, roomType: '100900000004', name: '卫生间' },
6356
+ { type: 6, floorType: 3, roomType: '100900000004', name: '淋浴间' },
6357
+ { type: 7, floorType: 3, roomType: '100900000004', name: '洗手间' },
6358
+ { type: 8, floorType: 3, roomType: '100900000003', name: '厨房' },
6359
+ {
6360
+ type: 9,
6361
+ floorType: 1,
6362
+ roomType: '100900000003',
6363
+ name: '开放厨房',
6364
+ onlySubArea: true,
6365
+ },
6366
+ { type: 10, floorType: 0, roomType: '100900000001', name: '多功能间' },
6367
+ { type: 11, floorType: 0, roomType: '100900000009', name: '保姆间' },
6368
+ { type: 12, floorType: 4, roomType: '100900000005', name: '阳台' },
6369
+ { type: 13, floorType: 4, roomType: '100900000006', name: '露台' },
6370
+ { type: 14, floorType: 0, roomType: '100900000008', name: '储物间' },
6371
+ { type: 15, floorType: 0, roomType: '100900000013', name: '衣帽间' },
6372
+ { type: 16, floorType: 0, roomType: '100900000011', name: '阁楼' },
6373
+ { type: 17, floorType: 2, roomType: '100900000007', name: '花园' },
6374
+ { type: 18, floorType: 5, roomType: '100900000010', name: '车库' },
6375
+ { type: 19, floorType: 1, roomType: '100900000012', name: '电梯' },
6376
+ { type: 20, floorType: 1, roomType: '100900000012', name: '地下室' },
6377
+ { type: 21, floorType: 1, roomType: '100900000012', name: '天井' },
6378
+ { type: 22, floorType: 1, roomType: '100900000012', name: '阳光房' },
6379
+ { type: 23, floorType: 1, roomType: '100900000012', name: '过道' },
6380
+ { type: 24, floorType: 1, roomType: '100900000012', name: '楼梯间' },
6381
+ { type: 25, floorType: 1, roomType: '100900000012', name: '门厅' },
6382
+ { type: 26, floorType: 2, roomType: '100900000012', name: '入户花园' },
6383
+ { type: 27, floorType: 1, roomType: '100900000012', name: '玄关' },
6384
+ { type: 28, floorType: 1, roomType: '100900000012', name: '挑空' },
6385
+ { type: 29, floorType: 4, roomType: '100900000012', name: '晾晒区' },
6386
+ { type: 30, floorType: 4, roomType: '100900000012', name: '洗衣房' },
6387
+ { type: 31, floorType: 0, roomType: '100900000012', name: '娱乐区' },
6388
+ { type: 32, floorType: 0, roomType: '100900000012', name: '健身区' },
6389
+ { type: 33, floorType: 0, roomType: '100900000012', name: '接待区' },
6390
+ { type: 34, floorType: 0, roomType: '100900000012', name: '影音区' },
6391
+ { type: 35, floorType: 1, roomType: '100900000012', name: '餐饮区' },
6392
+ {
6393
+ type: 36,
6394
+ floorType: 1,
6395
+ roomType: '100900000012',
6396
+ name: '其他',
6397
+ onlySubArea: true,
6398
+ },
6399
+ { type: 37, floorType: 1, roomType: '100900000002', name: '起居室' },
6400
+ { type: 38, floorType: 0, roomType: '100900000001', name: '主卧' },
6401
+ { type: 39, floorType: 0, roomType: '100900000001', name: '次卧' },
6402
+ { type: 40, floorType: 0, roomType: '100900000001', name: '优化间' },
6403
+ { type: 41, floorType: 0, roomType: '100900000001', name: '办公室' },
6404
+ { type: 42, floorType: 0, roomType: '100900000001', name: '会议室' },
6405
+ { type: 43, floorType: 0, roomType: '100900000001', name: '洽谈间' },
6406
+ { type: 44, floorType: 1, roomType: '100900000002', name: '共享大厅' },
6407
+ { type: 45, floorType: 1, roomType: '100900000012', name: '水吧' },
6408
+ { type: 46, floorType: 0, roomType: '100900000015', name: '出入口' },
6409
+ { type: 47, floorType: 0, roomType: '100900000015', name: '大厅' },
6410
+ { type: 48, floorType: 0, roomType: '100900000015', name: '包厢' },
6411
+ { type: 49, floorType: 0, roomType: '100900000015', name: '其他' },
6412
+ { type: 50, floorType: 0, roomType: '100900000016', name: '出入口' },
6413
+ { type: 51, floorType: 0, roomType: '100900000016', name: '办公区' },
6414
+ { type: 52, floorType: 0, roomType: '100900000016', name: '老板间' },
6415
+ { type: 53, floorType: 0, roomType: '100900000016', name: '会议室' },
6416
+ { type: 54, floorType: 0, roomType: '100900000016', name: '休息区/水吧' },
6417
+ { type: 55, floorType: 0, roomType: '100900000016', name: '其他' },
6418
+ { type: 56, floorType: 2, roomType: '100900000012', name: '空中花园' },
6419
+ { type: 57, floorType: 0, roomType: '100900000001', name: '洋室' },
6420
+ { type: 58, floorType: 0, roomType: '100900000001', name: '和室' },
6421
+ ];
6422
+ /** 地板信息映射表 */
6423
+ const FLOOR_TYPE_MAP = [
6424
+ { type: 0, description: '木质地板' },
6425
+ { type: 1, description: '瓷砖地面' },
6426
+ { type: 2, description: '户外地面' },
6427
+ { type: 3, description: '卫生间地面' },
6428
+ { type: 4, description: '阳台地面' },
6429
+ { type: 5, description: '车库地面' },
6430
+ ];
6431
+ /** 房屋类型映射表 */
6432
+ const ROOM_TYPE_MAP = [
6433
+ { roomType: '100900000001', description: '室' },
6434
+ { roomType: '100900000002', description: '厅' },
6435
+ { roomType: '100900000003', description: '厨' },
6436
+ { roomType: '100900000004', description: '卫' },
6437
+ { roomType: '100900000005', description: '阳台' },
6438
+ { roomType: '100900000006', description: '露台' },
6439
+ { roomType: '100900000007', description: '花园' },
6440
+ { roomType: '100900000008', description: '储' },
6441
+ { roomType: '100900000009', description: '保姆间' },
6442
+ { roomType: '100900000010', description: '车库' },
6443
+ { roomType: '100900000011', description: '阁楼' },
6444
+ { roomType: '100900000012', description: '其他' },
6445
+ { roomType: '100900000013', description: '衣' },
6446
+ { roomType: '100900000015', description: '商铺' },
6447
+ { roomType: '100900000016', description: '写字楼' },
6448
+ ];
6449
+
6344
6450
  const genRotationMatrix = (x, y, z) => {
6345
6451
  const matrix = new THREE__namespace.Matrix4();
6346
6452
  const euler = new THREE__namespace.Euler(x, y, z, 'YXZ');
@@ -6687,20 +6793,20 @@
6687
6793
  /**
6688
6794
  * 运镜效果
6689
6795
  */
6690
- var CameraMovementEffect;
6796
+ exports.CameraMovementEffect = void 0;
6691
6797
  (function (CameraMovementEffect) {
6692
6798
  CameraMovementEffect["Move"] = "Move";
6693
6799
  CameraMovementEffect["Rotate"] = "Rotate";
6694
- })(CameraMovementEffect || (CameraMovementEffect = {}));
6800
+ })(exports.CameraMovementEffect || (exports.CameraMovementEffect = {}));
6695
6801
  /**
6696
6802
  * 旋转类型
6697
6803
  */
6698
- var Rotation;
6804
+ exports.Rotation = void 0;
6699
6805
  (function (Rotation) {
6700
6806
  Rotation["Clockwise"] = "Clockwise";
6701
6807
  Rotation["Anticlockwise"] = "Anticlockwise";
6702
6808
  Rotation["Loop"] = "Loop";
6703
- })(Rotation || (Rotation = {}));
6809
+ })(exports.Rotation || (exports.Rotation = {}));
6704
6810
 
6705
6811
  const PI_2 = Math.PI * 2;
6706
6812
  /**
@@ -6731,18 +6837,18 @@
6731
6837
  from = formatLongitude(from);
6732
6838
  to = formatLongitude(to);
6733
6839
  // 逆时针旋转,初始值必须是较大的值
6734
- if (rotation === Rotation.Anticlockwise && from < to)
6840
+ if (rotation === exports.Rotation.Anticlockwise && from < to)
6735
6841
  from += PI_2;
6736
6842
  // 顺时针旋转,结束值必须是较大值
6737
- if (rotation === Rotation.Clockwise && to < from)
6843
+ if (rotation === exports.Rotation.Clockwise && to < from)
6738
6844
  to += PI_2;
6739
6845
  // Loop 旋转,找锐角旋转
6740
6846
  // 如果 to 比 from 大 180°,逆时针转
6741
6847
  // 如果 from 比 to 大 180°,顺时针转
6742
- if (rotation === Rotation.Loop && to - from > PI)
6743
- return getLongitudeParams(from, to, Rotation.Anticlockwise);
6744
- if (rotation === Rotation.Loop && from - to > PI)
6745
- return getLongitudeParams(from, to, Rotation.Clockwise);
6848
+ if (rotation === exports.Rotation.Loop && to - from > PI)
6849
+ return getLongitudeParams(from, to, exports.Rotation.Anticlockwise);
6850
+ if (rotation === exports.Rotation.Loop && from - to > PI)
6851
+ return getLongitudeParams(from, to, exports.Rotation.Clockwise);
6746
6852
  return { from, to };
6747
6853
  };
6748
6854
  /**
@@ -6792,7 +6898,7 @@
6792
6898
  const fromLatitude = formatLatitude(currentFiveState.latitude);
6793
6899
  const toLatitude = formatLatitude(args.latitude);
6794
6900
  // longitude
6795
- const { from: fromLongitude, to: toLongitude } = getLongitudeParams(currentFiveState.longitude, args.longitude, args.rotation || Rotation.Loop);
6901
+ const { from: fromLongitude, to: toLongitude } = getLongitudeParams(currentFiveState.longitude, args.longitude, args.rotation || exports.Rotation.Loop);
6796
6902
  // fov
6797
6903
  const fromFov = currentFiveState.fov;
6798
6904
  const toFov = args.fov;
@@ -6850,7 +6956,7 @@
6850
6956
  .onUpdate(onUpdate)
6851
6957
  .onComplete(onComplete)
6852
6958
  .onDestroy(onDestroy);
6853
- if (args.rotation === Rotation.Loop) {
6959
+ if (args.rotation === exports.Rotation.Loop) {
6854
6960
  tween.repeat(Infinity).yoyo(true);
6855
6961
  }
6856
6962
  /**
@@ -7821,6 +7927,11 @@
7821
7927
  }
7822
7928
  }
7823
7929
 
7930
+ const panoCompassPluginServerParams = {
7931
+ name: 'PanoCompassPlugin',
7932
+ version: 0,
7933
+ };
7934
+
7824
7935
  /** 交换数组元素 */
7825
7936
  function exchange(array, index1, index2) {
7826
7937
  const value = array[index1];
@@ -14153,10 +14264,10 @@
14153
14264
  return newTags;
14154
14265
  };
14155
14266
  /** 标签数据加载
14156
- * @param data.points {Array} 标签数据
14157
- * @param data.enabled {Boolean} 插件是否启用
14158
- * @param data.folded {Boolean} 标签是否默认展开
14159
- */
14267
+ * @param data.points {Array} 标签数据
14268
+ * @param data.enabled {Boolean} 插件是否启用
14269
+ * @param data.folded {Boolean} 标签是否默认展开
14270
+ */
14160
14271
  const load = (data) => {
14161
14272
  state.points = data.points.map(point => {
14162
14273
  var _a, _b;
@@ -14180,16 +14291,16 @@
14180
14291
  state.folded = data.folded;
14181
14292
  };
14182
14293
  /** 标签启用
14183
- * 启用插件并重新计算展示标签
14184
- */
14294
+ * 启用插件并重新计算展示标签
14295
+ */
14185
14296
  const enable = () => {
14186
14297
  state.enabled = true;
14187
14298
  updateTags();
14188
14299
  };
14189
14300
  /** 插件禁用
14190
- * 1. 禁用同时会清除已展示的标签
14191
- * 2. 再次启用时会重新计算展示标签
14192
- */
14301
+ * 1. 禁用同时会清除已展示的标签
14302
+ * 2. 再次启用时会重新计算展示标签
14303
+ */
14193
14304
  const disable = () => {
14194
14305
  state.enabled = false;
14195
14306
  origins.$set({ origins: [] });
@@ -14201,9 +14312,9 @@
14201
14312
  state.tags = [];
14202
14313
  };
14203
14314
  /** 展开所有标签
14204
- * 1. 展开所有收起的标签
14205
- * 2. 新标签会默认展开
14206
- */
14315
+ * 1. 展开所有收起的标签
14316
+ * 2. 新标签会默认展开
14317
+ */
14207
14318
  const unfoldAll = () => {
14208
14319
  state.folded = false;
14209
14320
  state.tags.forEach(tag => {
@@ -14211,9 +14322,9 @@
14211
14322
  });
14212
14323
  };
14213
14324
  /** 收起所有标签
14214
- * 1. 收起所有展开的标签
14215
- * 2. 新标签会默认收起
14216
- */
14325
+ * 1. 收起所有展开的标签
14326
+ * 2. 新标签会默认收起
14327
+ */
14217
14328
  const foldAll = () => {
14218
14329
  state.folded = true;
14219
14330
  state.tags.forEach(tag => {
@@ -14221,8 +14332,8 @@
14221
14332
  });
14222
14333
  };
14223
14334
  /** 展开单个标签
14224
- * @param id {Number | String} 标签ID
14225
- */
14335
+ * @param id {Number | String} 标签ID
14336
+ */
14226
14337
  const unfold = (id) => {
14227
14338
  state.tags.forEach(tag => {
14228
14339
  if (tag.id === id)
@@ -14230,8 +14341,8 @@
14230
14341
  });
14231
14342
  };
14232
14343
  /** 收起单个标签
14233
- * @param id {Number | String} 标签ID
14234
- */
14344
+ * @param id {Number | String} 标签ID
14345
+ */
14235
14346
  const fold = (id) => {
14236
14347
  state.tags.forEach(tag => {
14237
14348
  if (tag.id === id)
@@ -14291,13 +14402,13 @@
14291
14402
  };
14292
14403
  };
14293
14404
 
14294
- var DISPLAY_STRATEGY_TYPE;
14405
+ exports.DISPLAY_STRATEGY_TYPE = void 0;
14295
14406
  (function (DISPLAY_STRATEGY_TYPE) {
14296
14407
  DISPLAY_STRATEGY_TYPE["SMALL"] = "small";
14297
14408
  DISPLAY_STRATEGY_TYPE["MIDLLE"] = "middle";
14298
14409
  DISPLAY_STRATEGY_TYPE["LARGE"] = "large";
14299
14410
  DISPLAY_STRATEGY_TYPE["EXTRA_LARGE"] = "x-large";
14300
- })(DISPLAY_STRATEGY_TYPE || (DISPLAY_STRATEGY_TYPE = {}));
14411
+ })(exports.DISPLAY_STRATEGY_TYPE || (exports.DISPLAY_STRATEGY_TYPE = {}));
14301
14412
 
14302
14413
  /* src/ModelItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.47.0 */
14303
14414
 
@@ -14638,13 +14749,13 @@
14638
14749
 
14639
14750
  function getStrokeLength(itemSpaceHeight, type) {
14640
14751
  switch (type) {
14641
- case DISPLAY_STRATEGY_TYPE.SMALL:
14752
+ case exports.DISPLAY_STRATEGY_TYPE.SMALL:
14642
14753
  return Math.ceil(-27.78 * itemSpaceHeight + 85);
14643
- case DISPLAY_STRATEGY_TYPE.MIDLLE:
14754
+ case exports.DISPLAY_STRATEGY_TYPE.MIDLLE:
14644
14755
  return Math.ceil(-38.9 * itemSpaceHeight + 130);
14645
- case DISPLAY_STRATEGY_TYPE.LARGE:
14756
+ case exports.DISPLAY_STRATEGY_TYPE.LARGE:
14646
14757
  return Math.ceil(-44.44 * itemSpaceHeight + 140);
14647
- case DISPLAY_STRATEGY_TYPE.EXTRA_LARGE:
14758
+ case exports.DISPLAY_STRATEGY_TYPE.EXTRA_LARGE:
14648
14759
  return Math.ceil(-92.59 * itemSpaceHeight + 300);
14649
14760
  }
14650
14761
  }
@@ -14820,7 +14931,7 @@
14820
14931
  app: undefined,
14821
14932
  hooks: new five.Subscribe(),
14822
14933
  modelOcclusionEnable: (_a = params === null || params === void 0 ? void 0 : params.modelOcclusionEnable) !== null && _a !== void 0 ? _a : true,
14823
- displayStrategyType: (_b = params === null || params === void 0 ? void 0 : params.displayStrategyType) !== null && _b !== void 0 ? _b : DISPLAY_STRATEGY_TYPE.SMALL,
14934
+ displayStrategyType: (_b = params === null || params === void 0 ? void 0 : params.displayStrategyType) !== null && _b !== void 0 ? _b : exports.DISPLAY_STRATEGY_TYPE.SMALL,
14824
14935
  };
14825
14936
  pluginState.container.setAttribute('class', 'model-item-label-plugin-container');
14826
14937
  pluginState.container.style.cssText = `
@@ -14924,13 +15035,18 @@
14924
15035
  };
14925
15036
  };
14926
15037
 
14927
- var DIRECTION;
15038
+ const modelItemLabelPluginServerParams = {
15039
+ name: 'ModelItemLabelPlugin',
15040
+ version: 0,
15041
+ };
15042
+
15043
+ exports.DIRECTION = void 0;
14928
15044
  (function (DIRECTION) {
14929
15045
  DIRECTION["TOP_LEFT"] = "topLeft";
14930
15046
  DIRECTION["TOP_RIGHT"] = "topRight";
14931
15047
  DIRECTION["BOTTOM_LEFT"] = "bottomLeft";
14932
15048
  DIRECTION["BOTTOM_RIGHT"] = "bottomRight";
14933
- })(DIRECTION || (DIRECTION = {}));
15049
+ })(exports.DIRECTION || (exports.DIRECTION = {}));
14934
15050
 
14935
15051
  function parseModelTVVideoPoints(points) {
14936
15052
  if (points.length === 0)
@@ -14939,7 +15055,7 @@
14939
15055
  return points;
14940
15056
  let newPoints = [];
14941
15057
  points.map(point => {
14942
- const newPoint = [point[DIRECTION.TOP_LEFT], point[DIRECTION.BOTTOM_LEFT], point[DIRECTION.BOTTOM_RIGHT], point[DIRECTION.TOP_RIGHT]];
15058
+ const newPoint = [point[exports.DIRECTION.TOP_LEFT], point[exports.DIRECTION.BOTTOM_LEFT], point[exports.DIRECTION.BOTTOM_RIGHT], point[exports.DIRECTION.TOP_RIGHT]];
14943
15059
  newPoints.push(newPoint);
14944
15060
  });
14945
15061
  return newPoints;
@@ -15199,6 +15315,7 @@
15199
15315
 
15200
15316
  exports.CSS3DRenderPlugin = CSS3DRenderPlugin;
15201
15317
  exports.CameraMovementPlugin = CameraMovementPlugin;
15318
+ exports.FLOOR_TYPE_MAP = FLOOR_TYPE_MAP;
15202
15319
  exports.ModelChassisCompassPlugin = ModelChassisCompassPlugin;
15203
15320
  exports.ModelEntryDoorGuidePlugin = ModelEntryDoorGuidePlugin;
15204
15321
  exports.ModelFloorplanPlugin = ModelFloorplanPlugin;
@@ -15212,7 +15329,12 @@
15212
15329
  exports.PanoMeasurePlugin = PanoMeasurePlugin;
15213
15330
  exports.PanoRulerPlugin = PanoRulerPlugin;
15214
15331
  exports.PanoSpatialTagPlugin = PanoSpatialTagPlugin;
15332
+ exports.ROOM_FETILE_TYPE_MAP = ROOM_FETILE_TYPE_MAP;
15333
+ exports.ROOM_TYPE_MAP = ROOM_TYPE_MAP;
15215
15334
  exports.TopviewFloorplanPlugin = TopviewFloorplanPlugin;
15335
+ exports.modelItemLabelPluginServerParams = modelItemLabelPluginServerParams;
15336
+ exports.modelRoomLabelPluginServerParams = modelRoomLabelPluginServerParams;
15337
+ exports.panoCompassPluginServerParams = panoCompassPluginServerParams;
15216
15338
 
15217
15339
  Object.defineProperty(exports, '__esModule', { value: true });
15218
15340