@realsee/dnalogel 2.0.0-alpha.16 → 2.0.0-alpha.19

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 (180) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/CSS3DRenderPlugin/index.d.ts +2 -2
  3. package/dist/CameraMovementPlugin/index.js +15 -40
  4. package/dist/CameraMovementPlugin/typing.d.ts +1 -1
  5. package/dist/ModelChassisCompassPlugin/index.js +3 -28
  6. package/dist/ModelEntryDoorGuidePlugin/index.d.ts +1 -1
  7. package/dist/ModelEntryDoorGuidePlugin/index.js +8 -33
  8. package/dist/ModelItemLabelPlugin/events.type.d.ts +2 -2
  9. package/dist/ModelItemLabelPlugin/index.js +8 -8
  10. package/dist/ModelItemLabelPlugin/typings.d.ts +2 -2
  11. package/dist/ModelItemLabelPlugin/utils/parseData.d.ts +1 -1
  12. package/dist/ModelRoomLabelPlugin/index.js +6 -6
  13. package/dist/ModelRoomLabelPlugin/utils/parseData.d.ts +1 -1
  14. package/dist/ModelTVVideoPlugin/index.d.ts +1 -1
  15. package/dist/ModelTVVideoPlugin/index.js +3 -28
  16. package/dist/PanoCompassPlugin/index.js +53 -86
  17. package/dist/PanoCursorRaycasterPlugin/index.d.ts +1 -1
  18. package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -8
  19. package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
  20. package/dist/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +2 -2
  21. package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +1 -1
  22. package/dist/PanoMeasurePlugin/Controller/index.d.ts +3 -3
  23. package/dist/PanoMeasurePlugin/Model/index.d.ts +2 -2
  24. package/dist/PanoMeasurePlugin/Model/line.d.ts +5 -5
  25. package/dist/PanoMeasurePlugin/Model/point.d.ts +2 -2
  26. package/dist/PanoMeasurePlugin/Model/polyline.d.ts +3 -3
  27. package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +2 -2
  28. package/dist/PanoMeasurePlugin/Modules/FiveHelper.d.ts +1 -1
  29. package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
  30. package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +1 -1
  31. package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +1 -1
  32. package/dist/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +2 -1
  33. package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -1
  34. package/dist/PanoMeasurePlugin/index.d.ts +1 -1
  35. package/dist/PanoMeasurePlugin/index.js +1 -21
  36. package/dist/PanoMeasurePlugin/typings/event.type.d.ts +4 -4
  37. package/dist/PanoMeasurePlugin/utils/clearGroup.d.ts +1 -1
  38. package/dist/PanoMeasurePlugin/utils/constants.d.ts +1 -1
  39. package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +3 -3
  40. package/dist/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +1 -1
  41. package/dist/PanoMeasurePlugin/utils/findClosestPoint.d.ts +3 -3
  42. package/dist/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +2 -2
  43. package/dist/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +1 -1
  44. package/dist/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +1 -1
  45. package/dist/PanoMeasurePlugin/utils/line.d.ts +1 -1
  46. package/dist/PanoRulerPlugin/index.d.ts +1 -1
  47. package/dist/PanoRulerPlugin/index.js +3 -28
  48. package/dist/PanoSpatialTagPlugin/index.js +11 -11
  49. package/dist/PanoSpatialTagPlugin/typings.d.ts +1 -1
  50. package/dist/floorplan/{ModelFloorplanPlugin/Assets → Assets}/compass.d.ts +0 -0
  51. package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +2 -2
  52. package/dist/floorplan/ModelFloorplanPlugin/index.js +1266 -1298
  53. package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +81 -204
  54. package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +28 -15
  55. package/dist/floorplan/TopviewFloorplanPlugin/index.d.ts +1 -1
  56. package/dist/floorplan/TopviewFloorplanPlugin/index.js +1257 -1250
  57. package/dist/floorplan/utils/formatPosition.d.ts +1 -1
  58. package/dist/index.es.js +1480 -1507
  59. package/dist/index.js +1477 -1504
  60. package/dist/index.umd.js +1477 -1504
  61. package/dist/shared-utils/three/getExtraModelLoader.d.ts +1 -1
  62. package/dist/shared-utils/three/getNormal.d.ts +1 -1
  63. package/dist/shared-utils/three/getTextureLoader.d.ts +1 -1
  64. package/dist/shared-utils/three/loadFbxObj.d.ts +1 -1
  65. package/dist/shared-utils/vectorTocoordinates.d.ts +1 -1
  66. package/docs/assets/search.js +1 -1
  67. package/docs/classes/ModelRoomLabelController.html +6 -6
  68. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  69. package/docs/enums/ModelFloorplanErrorType.html +1 -1
  70. package/docs/interfaces/LineJson.html +1 -1
  71. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  72. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  73. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  74. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  75. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  76. package/docs/interfaces/ModelFloorplanParameterType.html +1 -1
  77. package/docs/interfaces/ModelFloorplanViewEvent.html +2 -2
  78. package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
  79. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
  80. package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
  81. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  82. package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
  83. package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
  84. package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
  85. package/docs/interfaces/PanoCompassPluginData.html +1 -1
  86. package/docs/interfaces/PanoCompassPluginParameterType.html +1 -1
  87. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  88. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  89. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  90. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  91. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  92. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  93. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  94. package/docs/interfaces/PointJson.html +1 -1
  95. package/docs/interfaces/RoomLabel.html +7 -7
  96. package/docs/interfaces/TopviewFloorplanPluginParameterType.html +19 -1
  97. package/docs/modules.html +12 -12
  98. package/libs/CSS3DRenderPlugin/index.d.ts +2 -2
  99. package/libs/CameraMovementPlugin/index.js +15 -24
  100. package/libs/CameraMovementPlugin/typing.d.ts +1 -1
  101. package/libs/ModelChassisCompassPlugin/index.js +3 -12
  102. package/libs/ModelEntryDoorGuidePlugin/index.d.ts +1 -1
  103. package/libs/ModelEntryDoorGuidePlugin/index.js +8 -17
  104. package/libs/ModelItemLabelPlugin/events.type.d.ts +2 -2
  105. package/libs/ModelItemLabelPlugin/typings.d.ts +2 -2
  106. package/libs/ModelItemLabelPlugin/utils/parseData.d.ts +1 -1
  107. package/libs/ModelRoomLabelPlugin/utils/parseData.d.ts +1 -1
  108. package/libs/ModelTVVideoPlugin/index.d.ts +1 -1
  109. package/libs/ModelTVVideoPlugin/index.js +3 -12
  110. package/libs/ModelTVVideoPlugin/typings.js +1 -0
  111. package/libs/PanoCompassPlugin/index.js +49 -64
  112. package/libs/PanoCursorRaycasterPlugin/index.d.ts +1 -1
  113. package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -8
  114. package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
  115. package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -1
  116. package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +2 -2
  117. package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +1 -1
  118. package/libs/PanoMeasurePlugin/Controller/index.d.ts +3 -3
  119. package/libs/PanoMeasurePlugin/Model/index.d.ts +2 -2
  120. package/libs/PanoMeasurePlugin/Model/line.d.ts +5 -5
  121. package/libs/PanoMeasurePlugin/Model/line.js +1 -1
  122. package/libs/PanoMeasurePlugin/Model/point.d.ts +2 -2
  123. package/libs/PanoMeasurePlugin/Model/polyline.d.ts +3 -3
  124. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +2 -2
  125. package/libs/PanoMeasurePlugin/Modules/FiveHelper.d.ts +1 -1
  126. package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
  127. package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +1 -1
  128. package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +1 -1
  129. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +2 -1
  130. package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -1
  131. package/libs/PanoMeasurePlugin/index.d.ts +1 -1
  132. package/libs/PanoMeasurePlugin/typings/event.type.d.ts +4 -4
  133. package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +1 -1
  134. package/libs/PanoMeasurePlugin/utils/constants.d.ts +1 -1
  135. package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +3 -3
  136. package/libs/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +1 -1
  137. package/libs/PanoMeasurePlugin/utils/findClosestPoint.d.ts +3 -3
  138. package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +2 -2
  139. package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +1 -1
  140. package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +1 -1
  141. package/libs/PanoMeasurePlugin/utils/line.d.ts +1 -1
  142. package/libs/PanoMeasurePlugin/utils/mouseGroup.js +1 -0
  143. package/libs/PanoRulerPlugin/index.d.ts +1 -1
  144. package/libs/PanoRulerPlugin/index.js +3 -12
  145. package/libs/PanoSpatialTagPlugin/typings.d.ts +1 -1
  146. package/libs/floorplan/{ModelFloorplanPlugin/Assets → Assets}/compass.d.ts +0 -0
  147. package/libs/floorplan/{ModelFloorplanPlugin/Assets → Assets}/compass.js +0 -0
  148. package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/Camera.js +2 -2
  149. package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/Compass.js +0 -0
  150. package/libs/floorplan/{ModelFloorplanPlugin/Components/CurrentFloor → Components}/CurrentFloor.js +73 -80
  151. package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/Main.js +186 -105
  152. package/libs/floorplan/Components/RoomHighlight/Room.js +5 -7
  153. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +24 -116
  154. package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/RoomLabels/RoomLabel.js +0 -0
  155. package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/RoomLabels/RoomLabels.js +2 -2
  156. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +26 -22
  157. package/libs/floorplan/Components/RuleLabels/RuleItem.js +284 -0
  158. package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/RuleLabels/RuleLabels.js +82 -32
  159. package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +2 -2
  160. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +34 -43
  161. package/libs/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +22 -33
  162. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -12
  163. package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +28 -15
  164. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +80 -54
  165. package/libs/floorplan/TopviewFloorplanPlugin/index.d.ts +1 -1
  166. package/libs/floorplan/TopviewFloorplanPlugin/style.js +0 -1
  167. package/libs/floorplan/utils/formatData.js +28 -43
  168. package/libs/floorplan/utils/formatPosition.d.ts +1 -1
  169. package/libs/floorplan/utils/formatPosition.js +2 -2
  170. package/libs/shared-utils/five/changeMode.js +12 -23
  171. package/libs/shared-utils/three/getExtraModelLoader.d.ts +1 -1
  172. package/libs/shared-utils/three/getNormal.d.ts +1 -1
  173. package/libs/shared-utils/three/getTextureLoader.d.ts +1 -1
  174. package/libs/shared-utils/three/loadFbxObj.d.ts +1 -1
  175. package/libs/shared-utils/three/loadFbxObj.js +9 -20
  176. package/libs/shared-utils/three/loadTexture.js +6 -17
  177. package/libs/shared-utils/to.js +10 -21
  178. package/libs/shared-utils/vectorTocoordinates.d.ts +1 -1
  179. package/package.json +3 -1
  180. package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.js +0 -301
@@ -29,31 +29,6 @@ function _interopNamespace(e) {
29
29
  var THREE__namespace = /*#__PURE__*/_interopNamespace(THREE);
30
30
  var TWEEN__default = /*#__PURE__*/_interopDefaultLegacy(TWEEN);
31
31
 
32
- /*! *****************************************************************************
33
- Copyright (c) Microsoft Corporation.
34
-
35
- Permission to use, copy, modify, and/or distribute this software for any
36
- purpose with or without fee is hereby granted.
37
-
38
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
39
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
40
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
41
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
42
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
43
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
44
- PERFORMANCE OF THIS SOFTWARE.
45
- ***************************************************************************** */
46
-
47
- function __awaiter(thisArg, _arguments, P, generator) {
48
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
49
- return new (P || (P = Promise))(function (resolve, reject) {
50
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
51
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
52
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
53
- step((generator = generator.apply(thisArg, _arguments || [])).next());
54
- });
55
- }
56
-
57
32
  const roomInfoIcon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZIAAABCCAYAAAB9y1BhAAAAAXNSR0IArs4c6QAADh5JREFUeAHtnVuPLDcVhedwC/dACKAICDxEIBQpygNI/Ab+MX8B8YCQEAjxgBAQLsm5Jjkn58r6Sl4jT52qnu4zXd121dqSx67q7ip7eXsv721XzcVFJAgEgSAQBIJAEAgCQeC4CLx48eKbSu+RH/fKuVoQWB8Cn1tfk9KiIHAUBH6tq/xKiTwSBILADgRCJDvAyUebRuAbpfXxSDatBmn8Pgh8YZ8v5TtBYIMIvFCbSZEgEASuQSBEcg1A+XizCDzfbMvT8CBwIAIhkgMBy9c3g0CIZDNdnYbeFIEQyU0RzO/XikCIZK09m3YdHYEQydEhzQVXgkCIZCUdmWYsj0CIZHmMc4c+EchCe5/9llqfAYEQyRlAzy27QCAeSRfdlEq2gECIpIVeSB1aRAAiudVixVKnINAaAiGS1nok9WkFAUJb8Upa6Y3Uo2kEQiRNd08qd0YEQiJnBD+37guBEElf/ZXang6BEMnpsM6dOkcgRNJ5B66x+nrjLmsTX1J6bSJHZ7+o9HklynWaOse1eKcc+XVlvxYFEnlfaThWfb7mcsn5nPRM6WmVU55KfO+J0mdKj8f5rVu3skNMoET6RSBE0m/fdVNzGWII4StKXy65y18t58aEAVGcUjDkGHsLhIOYfCC1xUT4QDJjgnmkc58qkT8saSiLeCCkSBBoBoEQSTNd0V9FZADRH8iAGfvXS06Zc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bs0/jMNTscBdRgJAm0hIF1+wzWSrt52OXkQOCUC0kNsNNuHsatz24iHqI709GxLAjcmktJQEwj5WPA+aCiuWB4YHKOT4yYRkF7zUNkg0lueSI4EgbMiIJ1kZyshL9LUOjNEwkT9sXT2pBP1VyaSQiCse9Coqa27LApBIPE+BEKkLwSk32zRHESDkp0zkSDQBALF9uKdYHunnkthwo7tfXQqQjmYSNQImBACIU2xIuGreB8CIdIvAtJzNogMosHI4mYkCDSHgPTUXspU2ItoEIvzEArlxWRvIlGFWTSnsnWF+b1dKAhk8QrrHpEgsDgC0ndi0oNoEBIuiASBZhGQvnqCz/KCJ/jYZtto7DPRoUU2N11LJIXxqNyUC0VFqeCTpRlP94gEgZMhIL0nbDCIdJswQSQINI9AIRRsNRP+KfvOkgNrKEddr5660YUqw3k8EAhkbvsuCztPVSF7JDqMBIF1IKAxcOl5S8eZLEWCQDcIFBtO2Kv2UOr645lAKkex4VeIpLo5jHbls1KD4eYaWIu4R+UeyYLA2RHQWGAADiJ9P9u2StcheRB4VQSkyzgD2PQppwBH4MaEMpBFRSDcqCYQx9ggDphr0QUb3SMSBJpAQGPiciei9P6oYYAmGphKbA4B6TRrJ+j1HKHYzh8cZbpVBowXZ8bgQhzPNJAOvvD4QjkOAj0hUAbdUOVMoHrqudT1OgSk2zgLkAl2n/LYvh9s900kutYV4UIvQiBXMMlBEAgCQWA1CBRCgUjmHAkI5vk+PACR1BcZmGmfH64GzTQkCASBILBhBAqhgEC9rDFGJI7FGJEcB4EgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCm0fg/x4jQQWGalpFAAAAAElFTkSuQmCC';
58
33
 
59
34
  function getRoomInfoInstance() {
@@ -105,14 +80,12 @@ function getRoomInfoInstance() {
105
80
  }
106
81
 
107
82
  const textureLoader = new THREE__namespace.TextureLoader();
108
- function loadTexture(url) {
109
- return __awaiter(this, void 0, void 0, function* () {
110
- return new Promise((resolve, reject) => {
111
- textureLoader.load(url, resolve, undefined, reject);
112
- }).then((texture) => {
113
- texture.encoding = THREE__namespace.sRGBEncoding;
114
- return texture;
115
- });
83
+ async function loadTexture(url) {
84
+ return new Promise((resolve, reject) => {
85
+ textureLoader.load(url, resolve, undefined, reject);
86
+ }).then((texture) => {
87
+ texture.encoding = THREE__namespace.sRGBEncoding;
88
+ return texture;
116
89
  });
117
90
  }
118
91
 
@@ -591,65 +564,59 @@ class PanoCompassController {
591
564
  if (this.modelLoaded)
592
565
  this.init();
593
566
  }
594
- init() {
595
- return __awaiter(this, void 0, void 0, function* () {
596
- if (!this.data || !this.modelLoaded)
597
- return;
598
- const northRad = this.data.north_rad;
599
- if (northRad != null) {
600
- this.compassMesh = yield this.loadCompassMesh();
601
- this.compassMesh.rotateX(-Math.PI / 2);
602
- this.compassMesh.rotateZ(northRad - Math.PI / 2);
603
- this.group.add(this.compassMesh);
604
- }
605
- if (this.data.entrance != null) {
606
- this.entryDoorMesh = yield this.loadEntryDoorMesh();
607
- this.roomInfoWrapperInstance = this.loadRoomInfo();
608
- this.roomInfoInstance = getRoomInfoInstance();
609
- this.entryDoorMesh.rotateX(-Math.PI / 2);
610
- if (this.roomInfoWrapperInstance)
611
- this.roomInfoInstance.appendTo(this.roomInfoWrapperInstance.container);
612
- this.group.add(this.entryDoorMesh);
613
- }
614
- this.onFivePanoArrived(this.five.panoIndex || 0);
615
- this.five.needsRender = true;
616
- });
567
+ async init() {
568
+ if (!this.data || !this.modelLoaded)
569
+ return;
570
+ const northRad = this.data.north_rad;
571
+ if (northRad != null) {
572
+ this.compassMesh = await this.loadCompassMesh();
573
+ this.compassMesh.rotateX(-Math.PI / 2);
574
+ this.compassMesh.rotateZ(northRad - Math.PI / 2);
575
+ this.group.add(this.compassMesh);
576
+ }
577
+ if (this.data.entrance != null) {
578
+ this.entryDoorMesh = await this.loadEntryDoorMesh();
579
+ this.roomInfoWrapperInstance = this.loadRoomInfo();
580
+ this.roomInfoInstance = getRoomInfoInstance();
581
+ this.entryDoorMesh.rotateX(-Math.PI / 2);
582
+ if (this.roomInfoWrapperInstance)
583
+ this.roomInfoInstance.appendTo(this.roomInfoWrapperInstance.container);
584
+ this.group.add(this.entryDoorMesh);
585
+ }
586
+ this.onFivePanoArrived(this.five.panoIndex || 0);
587
+ this.five.needsRender = true;
617
588
  }
618
- loadCompassMesh() {
589
+ async loadCompassMesh() {
619
590
  var _a;
620
- return __awaiter(this, void 0, void 0, function* () {
621
- const compassImageUrl = ((_a = this.config) === null || _a === void 0 ? void 0 : _a.compassImageUrl) ||
622
- '//vrlab-image4.ljcdn.com/release/web/v3/north-point-circle.96498e69.png';
623
- const compassTexture = yield loadTexture(compassImageUrl);
624
- const compassGeometry = new THREE__namespace.CircleGeometry(0.7, 32);
625
- const compassMaterial = new THREE__namespace.MeshBasicMaterial({
626
- map: compassTexture,
627
- transparent: true,
628
- opacity: 0,
629
- depthTest: false,
630
- });
631
- const compassMesh = new THREE__namespace.Mesh(compassGeometry, compassMaterial);
632
- compassMesh.name = 'pano-compass-mesh';
633
- return compassMesh;
591
+ const compassImageUrl = ((_a = this.config) === null || _a === void 0 ? void 0 : _a.compassImageUrl) ||
592
+ '//vrlab-image4.ljcdn.com/release/web/v3/north-point-circle.96498e69.png';
593
+ const compassTexture = await loadTexture(compassImageUrl);
594
+ const compassGeometry = new THREE__namespace.CircleGeometry(0.7, 32);
595
+ const compassMaterial = new THREE__namespace.MeshBasicMaterial({
596
+ map: compassTexture,
597
+ transparent: true,
598
+ opacity: 0,
599
+ depthTest: false,
634
600
  });
601
+ const compassMesh = new THREE__namespace.Mesh(compassGeometry, compassMaterial);
602
+ compassMesh.name = 'pano-compass-mesh';
603
+ return compassMesh;
635
604
  }
636
- loadEntryDoorMesh() {
605
+ async loadEntryDoorMesh() {
637
606
  var _a;
638
- return __awaiter(this, void 0, void 0, function* () {
639
- const entryDoorImageUrl = ((_a = this.config) === null || _a === void 0 ? void 0 : _a.entryDoorImageUrl) ||
640
- '//vrlab-image4.ljcdn.com/release/web/enterDoor.831b8208.png';
641
- const entryDoorTexture = yield loadTexture(entryDoorImageUrl);
642
- const entryDoorGeometry = new THREE__namespace.PlaneGeometry(0.2, 0.16);
643
- const entryDoorMaterial = new THREE__namespace.MeshBasicMaterial({
644
- map: entryDoorTexture,
645
- transparent: true,
646
- opacity: 0.8,
647
- depthTest: false,
648
- });
649
- const entryDoorMesh = new THREE__namespace.Mesh(entryDoorGeometry, entryDoorMaterial);
650
- entryDoorMesh.name = 'pano-compass-entry-door';
651
- return entryDoorMesh;
607
+ const entryDoorImageUrl = ((_a = this.config) === null || _a === void 0 ? void 0 : _a.entryDoorImageUrl) ||
608
+ '//vrlab-image4.ljcdn.com/release/web/enterDoor.831b8208.png';
609
+ const entryDoorTexture = await loadTexture(entryDoorImageUrl);
610
+ const entryDoorGeometry = new THREE__namespace.PlaneGeometry(0.2, 0.16);
611
+ const entryDoorMaterial = new THREE__namespace.MeshBasicMaterial({
612
+ map: entryDoorTexture,
613
+ transparent: true,
614
+ opacity: 0.8,
615
+ depthTest: false,
652
616
  });
617
+ const entryDoorMesh = new THREE__namespace.Mesh(entryDoorGeometry, entryDoorMaterial);
618
+ entryDoorMesh.name = 'pano-compass-entry-door';
619
+ return entryDoorMesh;
653
620
  }
654
621
  loadRoomInfo() {
655
622
  const points = [
@@ -1,5 +1,5 @@
1
- import { Group, Vector3 } from 'three';
2
1
  import type { FivePlugin, Intersection } from '@realsee/five';
2
+ import { Group, Vector3 } from 'three';
3
3
  export interface PanoCursorRaycasterPluginParameterType {
4
4
  }
5
5
  export interface PanoCursorRaycasterPluginExportType {
@@ -1,11 +1,11 @@
1
- import Line from '../Model/line';
2
- import Magnifier from '../Modules/Magnifier';
3
- import FiveHelper from '../Modules/FiveHelper';
4
- import { Group } from 'three';
5
- import { Model } from '../Model';
6
- import { PluginEvent } from '../typings/event.type';
7
- import { Five, Intersection, IntersectMeshInterface, Subscribe } from '@realsee/five';
8
- import { UserDistanceItem } from '../utils/distanceDom';
1
+ import type Line from '../Model/line';
2
+ import type Magnifier from '../Modules/Magnifier';
3
+ import type FiveHelper from '../Modules/FiveHelper';
4
+ import type { Group } from 'three';
5
+ import type { Model } from '../Model';
6
+ import type { PluginEvent } from '../typings/event.type';
7
+ import type { UserDistanceItem } from '../utils/distanceDom';
8
+ import type { Five, Intersection, IntersectMeshInterface, Subscribe } from '@realsee/five';
9
9
  export interface IControllerParams {
10
10
  five: Five;
11
11
  group: Group;
@@ -1,6 +1,6 @@
1
+ import type { LineJson } from '../typings/data';
1
2
  import { Model } from '../Model';
2
3
  import Line from '../Model/line';
3
- import { LineJson } from '../typings/data';
4
4
  import BaseController, { IControllerParams } from './BaseController';
5
5
  export interface EditEvent {
6
6
  editedLineChange: (lines: LineJson[]) => void;
@@ -1,5 +1,5 @@
1
- import MeasureController from '.';
2
- import { Five } from '@realsee/five';
1
+ import type MeasureController from '.';
2
+ import type { Five } from '@realsee/five';
3
3
  /** 快捷键控制器 */
4
4
  export declare class ShortcutKeyController {
5
5
  five: Five;
@@ -1,4 +1,4 @@
1
- import Line from '../Model/line';
1
+ import type Line from '../Model/line';
2
2
  import BaseController, { IControllerParams } from './BaseController';
3
3
  export default class WatchController extends BaseController {
4
4
  type: string;
@@ -1,7 +1,7 @@
1
- import { PluginData } from '../typings/data';
1
+ import type { PluginData } from '../typings/data';
2
+ import type { PluginEvent } from '../typings/event.type';
3
+ import type { UserDistanceItem } from '../utils/distanceDom';
2
4
  import { Five, Subscribe } from '@realsee/five';
3
- import { PluginEvent } from '../typings/event.type';
4
- import { UserDistanceItem } from '../utils/distanceDom';
5
5
  export declare type Mode = 'Watch' | 'Edit';
6
6
  export interface MeasurePluginParameter {
7
7
  useUIController?: boolean;
@@ -1,9 +1,9 @@
1
+ import type { PluginData } from '../typings/data';
2
+ import type { UserDistanceItem } from '../utils/distanceDom';
1
3
  import Line from './line';
2
4
  import Point from './point';
3
5
  import { Subscribe, SubscribeEventMap } from '@realsee/five';
4
- import { PluginData } from '../typings/data';
5
6
  import { Polyline } from './polyline';
6
- import { UserDistanceItem } from '../utils/distanceDom';
7
7
  interface IModelEvent extends SubscribeEventMap {
8
8
  /** 新增线条
9
9
  * @param line 被创建的线条
@@ -1,9 +1,9 @@
1
- import { Model } from '.';
2
- import Point from './point';
3
- import { LineJson } from '..';
1
+ import type { Model } from '.';
2
+ import type Point from './point';
3
+ import type { LineJson } from '..';
4
+ import type { LineCompletelyJson } from '../typings/data';
5
+ import type { Line as FiveLine } from '@realsee/five/line';
4
6
  import { Polyline } from './polyline';
5
- import { LineCompletelyJson } from '../typings/data';
6
- import { Line as FiveLine } from '@realsee/five/line';
7
7
  import { Subscribe, SubscribeEventMap } from '@realsee/five';
8
8
  import { DistanceItem } from '../utils/distanceDom';
9
9
  export interface ILineHook extends SubscribeEventMap {
@@ -1,6 +1,6 @@
1
- import Line from './line';
1
+ import type Line from './line';
2
+ import type { PluginData } from '../typings/data';
2
3
  import { Vector3 } from 'three';
3
- import { PluginData } from '../typings/data';
4
4
  declare type IPointData = PluginData['points'][0];
5
5
  export default class Point {
6
6
  id: string;
@@ -1,6 +1,6 @@
1
- import Line from './line';
2
- import Point from './point';
3
- import { PolylineJson, PolylineCompletelyJson } from '../typings/data';
1
+ import type Line from './line';
2
+ import type Point from './point';
3
+ import type { PolylineJson, PolylineCompletelyJson } from '../typings/data';
4
4
  export declare class Polyline {
5
5
  readonly id: string;
6
6
  points: Point[];
@@ -1,5 +1,5 @@
1
- import Line from '../../Model/line';
2
- import { Five } from '@realsee/five';
1
+ import type Line from '../../Model/line';
2
+ import type { Five } from '@realsee/five';
3
3
  export default class DeleteDom {
4
4
  visible: boolean;
5
5
  private five;
@@ -1,5 +1,5 @@
1
+ import type { Five, Intersection } from '@realsee/five';
1
2
  import { Line3, Vector3 } from 'three';
2
- import { Five, Intersection } from '@realsee/five';
3
3
  export default class FiveHelper {
4
4
  edges: Line3[];
5
5
  private five;
@@ -1,4 +1,4 @@
1
- import MeasureController from '../Controller';
1
+ import type MeasureController from '../Controller';
2
2
  export interface GuideControllerParams {
3
3
  container: Element;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { Five } from '@realsee/five';
1
+ import type { Five } from '@realsee/five';
2
2
  import { Vector3 } from 'three';
3
3
  export interface MagnifierOptions {
4
4
  width: number;
@@ -1,4 +1,4 @@
1
- import MeasureController from '../../Controller';
1
+ import type MeasureController from '../../Controller';
2
2
  export declare class MainBtnController {
3
3
  private container;
4
4
  private measureController;
@@ -1,4 +1,5 @@
1
- import MeasureController, { Mode } from '../../../Controller';
1
+ import type { Mode } from '../../../Controller';
2
+ import type MeasureController from '../../../Controller';
2
3
  export default class Revoke {
3
4
  private container;
4
5
  private revokeIcon;
@@ -1,4 +1,4 @@
1
- import MeasureController from '../../Controller';
1
+ import type MeasureController from '../../Controller';
2
2
  export interface UIControllerParams {
3
3
  container: Element;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { FivePlugin } from '@realsee/five';
1
+ import type { FivePlugin } from '@realsee/five';
2
2
  import MeasureController, { MeasurePluginParameter } from './Controller';
3
3
  declare const PanoMeasurePlugin: FivePlugin<MeasurePluginParameter, PluginReturns>;
4
4
  export default PanoMeasurePlugin;
@@ -7,21 +7,6 @@ var TWEEN = require('@tweenjs/tween.js');
7
7
 
8
8
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
9
 
10
- function _mergeNamespaces(n, m) {
11
- m.forEach(function (e) {
12
- e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
13
- if (k !== 'default' && !(k in n)) {
14
- var d = Object.getOwnPropertyDescriptor(e, k);
15
- Object.defineProperty(n, k, d.get ? d : {
16
- enumerable: true,
17
- get: function () { return e[k]; }
18
- });
19
- }
20
- });
21
- });
22
- return Object.freeze(n);
23
- }
24
-
25
10
  var TWEEN__default = /*#__PURE__*/_interopDefaultLegacy(TWEEN);
26
11
 
27
12
  /** 交换数组元素 */
@@ -2875,11 +2860,6 @@ if (typeof undefined$1 === 'function' && undefined$1.amd) {
2875
2860
 
2876
2861
  var Hammer = hammer.exports;
2877
2862
 
2878
- var Hammer$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/_mergeNamespaces({
2879
- __proto__: null,
2880
- 'default': Hammer
2881
- }, [hammer.exports]));
2882
-
2883
2863
  // uuid
2884
2864
  function S4() {
2885
2865
  return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
@@ -3894,7 +3874,7 @@ class EditController extends BaseController {
3894
3874
  const fiveElement = this.five.getElement();
3895
3875
  if (fiveElement) {
3896
3876
  this.fiveElement = fiveElement;
3897
- const hammer = new Hammer$1(fiveElement);
3877
+ const hammer = new Hammer(fiveElement);
3898
3878
  this.hammer = hammer;
3899
3879
  hammer.on('tap', this.onTap);
3900
3880
  hammer.on('pan', this.onPan);
@@ -1,7 +1,7 @@
1
- import { SubscribeEventMap } from '@realsee/five';
2
- import { Vector3 } from 'three';
3
- import { Mode } from '../Controller';
4
- import { LineCompletelyJson } from './data';
1
+ import type { SubscribeEventMap } from '@realsee/five';
2
+ import type { Vector3 } from 'three';
3
+ import type { Mode } from '../Controller';
4
+ import type { LineCompletelyJson } from './data';
5
5
  interface ControllerEvent extends SubscribeEventMap {
6
6
  /**
7
7
  * Mode 变更
@@ -1,2 +1,2 @@
1
- import { Group } from 'three';
1
+ import type { Group } from 'three';
2
2
  export default function clearGroup(group: Group): void;
@@ -1,4 +1,4 @@
1
- import { ICreatLineOpts } from './line';
1
+ import type { ICreatLineOpts } from './line';
2
2
  export declare const normalLineOpts: ICreatLineOpts;
3
3
  export declare const dashLineOpts: ICreatLineOpts;
4
4
  export declare const lightLineOpts: ICreatLineOpts;
@@ -1,7 +1,7 @@
1
- import Line from '../Model/line';
2
- import { Five } from '@realsee/five';
1
+ import type Line from '../Model/line';
2
+ import type { Five } from '@realsee/five';
3
+ import type { LineCompletelyJson, PolylineCompletelyJson } from '../typings/data';
3
4
  import { Vector3 } from 'three';
4
- import { LineCompletelyJson, PolylineCompletelyJson } from '../typings/data';
5
5
  export declare type DistanceItem = ReturnType<typeof creatDistanceItem>;
6
6
  export interface UserDistanceItem {
7
7
  element: Element;
@@ -1,2 +1,2 @@
1
- import Line from '../Model/line';
1
+ import type Line from '../Model/line';
2
2
  export declare function findAssociatedLines(line: Line): Line[];
@@ -1,6 +1,6 @@
1
- import { Vector2 } from 'three';
2
- import Point from '../Model/point';
3
- import { Five } from '@realsee/five';
1
+ import type { Vector2 } from 'three';
2
+ import type Point from '../Model/point';
3
+ import type { Five } from '@realsee/five';
4
4
  /**
5
5
  * @param tapPoint 注意这里的坐标是相对于 FiveElement 的
6
6
  */
@@ -1,4 +1,4 @@
1
- import Hammer from 'hammerjs';
2
- import { Five, Intersection } from '@realsee/five';
1
+ import type Hammer from 'hammerjs';
2
+ import type { Five, Intersection } from '@realsee/five';
3
3
  /** 通过鼠标事件或者触摸事件,获取当前点击屏幕关联的射线与模型的交点 */
4
4
  export declare function getIntersectionFromEvent(five: Five, event: typeof Hammer['Input']): Intersection[];
@@ -1,4 +1,4 @@
1
- import Hammer from 'hammerjs';
1
+ import type Hammer from 'hammerjs';
2
2
  import { Vector2 } from 'three';
3
3
  /**
4
4
  * 从 Hammer 事件中获取操作的点在交互 DOM 中的位置
@@ -1,2 +1,2 @@
1
- import { Vector3 } from 'three';
1
+ import type { Vector3 } from 'three';
2
2
  export default function isNDCPointInScreen(ndcPoint: Vector3): boolean;
@@ -1,4 +1,4 @@
1
- import Line from '../Model/line';
1
+ import type Line from '../Model/line';
2
2
  import { Line as FiveLine } from '@realsee/five/line';
3
3
  import { Color, Texture, Vector3 } from 'three';
4
4
  declare type ISetMaterialOpts = Parameters<FiveLine['setMaterial']>[0];
@@ -1,5 +1,5 @@
1
1
  import type { FivePlugin } from '@realsee/five';
2
- import { RoomInfo, RoomRules } from './typings';
2
+ import type { RoomInfo, RoomRules } from './typings';
3
3
  export interface PanoRulerPluginOptions {
4
4
  distanceText?: (distance: number) => string;
5
5
  className?: string;
@@ -5,31 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var five = require('@realsee/five');
6
6
  var three = require('three');
7
7
 
8
- /*! *****************************************************************************
9
- Copyright (c) Microsoft Corporation.
10
-
11
- Permission to use, copy, modify, and/or distribute this software for any
12
- purpose with or without fee is hereby granted.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
15
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
16
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
17
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
18
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
19
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20
- PERFORMANCE OF THIS SOFTWARE.
21
- ***************************************************************************** */
22
-
23
- function __awaiter(thisArg, _arguments, P, generator) {
24
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
25
- return new (P || (P = Promise))(function (resolve, reject) {
26
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
27
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
28
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
29
- step((generator = generator.apply(thisArg, _arguments || [])).next());
30
- });
31
- }
32
-
33
8
  /**
34
9
  * 平面几何相关数学函数
35
10
  */
@@ -401,7 +376,7 @@ const PanoRulerPlugin = (five$1, params) => {
401
376
  state.loaded = true;
402
377
  return true;
403
378
  };
404
- const load = (_roomInfo, _roomRules, options) => __awaiter(void 0, void 0, void 0, function* () {
379
+ const load = async (_roomInfo, _roomRules, options) => {
405
380
  const roomInfo = _roomInfo || params.roomInfo;
406
381
  const roomRules = _roomRules || params.roomRules;
407
382
  if (!roomInfo || !roomRules) {
@@ -412,9 +387,9 @@ const PanoRulerPlugin = (five$1, params) => {
412
387
  return _load(roomInfo, roomRules);
413
388
  }
414
389
  else {
415
- return yield new Promise((resolve) => five$1.once('modelLoaded', () => resolve(_load(roomInfo, roomRules))));
390
+ return await new Promise((resolve) => five$1.once('modelLoaded', () => resolve(_load(roomInfo, roomRules))));
416
391
  }
417
- });
392
+ };
418
393
  if (params.roomInfo && params.roomRules) {
419
394
  load(params.roomInfo, params.roomRules);
420
395
  }