@realsee/dnalogel 2.3.9-alpha.7 → 2.4.0

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 (482) hide show
  1. package/dist/CSS3DRenderPlugin/utils/positionToVector3.d.ts +2 -2
  2. package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +5 -5
  3. package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +5 -6
  4. package/dist/PanoMeasurePlugin/Controller/MixedController.d.ts +7 -9
  5. package/dist/PanoMeasurePlugin/Controller/ViewController.d.ts +6 -10
  6. package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +3 -3
  7. package/dist/PanoMeasurePlugin/Controller/index.d.ts +27 -9
  8. package/dist/PanoMeasurePlugin/Model/index.d.ts +17 -17
  9. package/dist/PanoMeasurePlugin/Model/line.d.ts +6 -4
  10. package/dist/PanoMeasurePlugin/Model/point.d.ts +2 -4
  11. package/dist/PanoMeasurePlugin/Model/polyline.d.ts +37 -12
  12. package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +2 -0
  13. package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +29 -16
  14. package/dist/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +3 -4
  15. package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -2
  16. package/dist/PanoMeasurePlugin/index.d.ts +6 -2
  17. package/dist/PanoMeasurePlugin/typings/data.d.ts +6 -16
  18. package/dist/PanoMeasurePlugin/typings/event.type.d.ts +18 -14
  19. package/dist/PanoMeasurePlugin/typings/index.d.ts +4 -2
  20. package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +5 -3
  21. package/dist/PanoTagPlugin/Assets/Icon.d.ts +2 -3
  22. package/dist/PanoTagPlugin/controller/TagCacheController.d.ts +2 -1
  23. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +22 -19
  24. package/dist/PanoTagPlugin/controller/index.d.ts +14 -25
  25. package/dist/PanoTagPlugin/index.d.ts +1 -1
  26. package/dist/PanoTagPlugin/typings/controller.d.ts +17 -23
  27. package/dist/PanoTagPlugin/typings/index.d.ts +1 -5
  28. package/dist/PanoTagPlugin/typings/tag.d.ts +247 -0
  29. package/dist/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +0 -1
  30. package/dist/index.cjs.js +112 -110
  31. package/dist/index.js +7139 -8277
  32. package/dist/index.umd.js +108 -106
  33. package/docs/assets/search.js +1 -1
  34. package/docs/classes/CSS3DRender.html +31 -31
  35. package/docs/classes/CruisePluginController.html +24 -24
  36. package/docs/classes/Magnifier.html +90 -40
  37. package/docs/classes/ModelRoomLabelController.html +11 -11
  38. package/docs/classes/Object3DHelperController.html +24 -24
  39. package/docs/classes/PaintBrush.html +15 -15
  40. package/docs/classes/PanoMeasurePluginLine.html +318 -0
  41. package/docs/classes/PanoMeasurePluginModel.html +275 -0
  42. package/docs/classes/PanoMeasurePluginPoint.html +160 -0
  43. package/docs/classes/PanoMeasurePluginPolyline.html +306 -0
  44. package/docs/classes/PanoTagPluginController.html +176 -223
  45. package/docs/classes/Util.BetterTween.html +8 -8
  46. package/docs/classes/Util.FivePointSelector.html +12 -12
  47. package/docs/classes/Util.Interval.html +12 -12
  48. package/docs/classes/Util.Magnifier.html +17 -17
  49. package/docs/classes/Util.PointDomHelper.html +11 -11
  50. package/docs/classes/Util.PointHelper.html +11 -11
  51. package/docs/classes/Util.Rectangle.html +13 -13
  52. package/docs/enums/CameraMovementEffect.html +7 -7
  53. package/docs/enums/ContentType.html +35 -75
  54. package/docs/enums/DIRECTION.html +9 -9
  55. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  56. package/docs/enums/DimensionType.html +15 -19
  57. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  58. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  59. package/docs/enums/LinkType.html +67 -0
  60. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  61. package/docs/enums/PointType.html +15 -19
  62. package/docs/enums/Rotation.html +8 -8
  63. package/docs/functions/CSS3DRenderPlugin.html +21 -42
  64. package/docs/functions/CameraMovementPlugin.html +21 -42
  65. package/docs/functions/CruisePlugin.html +21 -42
  66. package/docs/functions/GuideLinePlugin.html +22 -43
  67. package/docs/functions/ItemLabelPlugin.html +21 -42
  68. package/docs/functions/MapviewFloorplanPlugin.html +21 -42
  69. package/docs/functions/ModelChassisCompassPlugin.html +21 -42
  70. package/docs/functions/ModelEntryDoorGuidePlugin.html +21 -42
  71. package/docs/functions/ModelFloorplanPlugin.html +21 -42
  72. package/docs/functions/ModelItemLabelPlugin.html +21 -42
  73. package/docs/functions/ModelRoomLabelPlugin.html +21 -42
  74. package/docs/functions/ModelTVVideoPlugin.html +21 -42
  75. package/docs/functions/ModelViewPlugin.html +21 -42
  76. package/docs/functions/Object3DHelperPlugin.html +21 -42
  77. package/docs/functions/PanoCompassPlugin.html +21 -42
  78. package/docs/functions/PanoCursorRaycasterPlugin.html +21 -42
  79. package/docs/functions/PanoDoorLabelPlugin.html +21 -42
  80. package/docs/functions/PanoFloorplanRadarPlugin.html +21 -42
  81. package/docs/functions/PanoMeasurePlugin.html +21 -42
  82. package/docs/functions/PanoRulerPlugin.html +21 -42
  83. package/docs/functions/PanoRulerProPlugin.html +21 -42
  84. package/docs/functions/PanoSpatialTagPlugin.html +21 -42
  85. package/docs/functions/PanoTagPlugin.html +31 -48
  86. package/docs/functions/TopviewFloorplanPlugin.html +21 -42
  87. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  88. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  89. package/docs/functions/Util.getFrameTime.html +5 -5
  90. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  91. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  92. package/docs/functions/Util.isNil.html +5 -5
  93. package/docs/functions/Util.nextFrame.html +5 -5
  94. package/docs/functions/Util.notNil.html +5 -5
  95. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  96. package/docs/functions/Util.tweenProgress.html +5 -5
  97. package/docs/functions/pluginFlag.html +22 -43
  98. package/docs/index.html +21 -42
  99. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  100. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  101. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  102. package/docs/interfaces/ContentTypeMap.html +212 -0
  103. package/docs/interfaces/FloorplanBounding.html +8 -8
  104. package/docs/interfaces/FloorplanData.html +10 -10
  105. package/docs/interfaces/FloorplanEntrance.html +11 -11
  106. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  107. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  108. package/docs/interfaces/FloorplanFloorData.html +9 -9
  109. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  110. package/docs/interfaces/FloorplanObserver.html +9 -9
  111. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  112. package/docs/interfaces/FloorplanPosition.html +7 -7
  113. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  114. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  115. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  116. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  117. package/docs/interfaces/FloorplanServerData.html +7 -7
  118. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  119. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  120. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  121. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  122. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  123. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  124. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  125. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  126. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  127. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  128. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  129. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  130. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  131. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  132. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  133. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  134. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  135. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  136. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  137. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  138. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  139. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  140. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  141. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  142. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  143. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  144. package/docs/interfaces/Object3DHelperState.html +8 -8
  145. package/docs/interfaces/PaintBrushAction.html +12 -12
  146. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  147. package/docs/interfaces/PaintBrushState.html +10 -10
  148. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  149. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +22 -43
  150. package/docs/interfaces/PanoMeasureParameterType.html +24 -14
  151. package/docs/interfaces/{PointJson.html → PanoMeasurePluginLineJson.html} +24 -24
  152. package/docs/interfaces/{OpenParameter.html → PanoMeasurePluginOpenParameter.html} +15 -15
  153. package/docs/interfaces/{LineJson.html → PanoMeasurePluginPointJson.html} +18 -18
  154. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +80 -0
  155. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  156. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  157. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  158. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  159. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  160. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  161. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  162. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +22 -43
  163. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +22 -43
  164. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  165. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  166. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  167. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  168. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  169. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  170. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  171. package/docs/interfaces/Point.html +8 -8
  172. package/docs/interfaces/Room.html +9 -9
  173. package/docs/interfaces/RoomInfo.html +7 -7
  174. package/docs/interfaces/RoomLabel.html +14 -14
  175. package/docs/interfaces/RoomRules.html +22 -43
  176. package/docs/interfaces/Rooms.html +22 -43
  177. package/docs/interfaces/Scissor.html +9 -9
  178. package/docs/interfaces/TagConfig.html +19 -15
  179. package/docs/interfaces/Tags.html +12 -14
  180. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  181. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  182. package/docs/modules/Util.html +5 -5
  183. package/docs/modules.html +37 -79
  184. package/docs/types/ArrayPosition.html +23 -44
  185. package/docs/types/CSS3DRenderExportType.html +22 -43
  186. package/docs/types/CSS3DRenderPluginExportType.html +22 -43
  187. package/docs/types/CSS3DRenderPluginParameterType.html +22 -43
  188. package/docs/types/Color.html +22 -43
  189. package/docs/types/ContentTypeConfigKey.html +23 -44
  190. package/docs/types/{PanoIndex.html → ContentTypeConfigKeyArray.html} +25 -46
  191. package/docs/types/Create3DDomContainerReturnType.html +22 -43
  192. package/docs/types/Create3DElementReturnType.html +22 -43
  193. package/docs/types/CruisePluginExportType.html +22 -43
  194. package/docs/types/Direction-1.html +22 -43
  195. package/docs/types/Direction4.html +22 -43
  196. package/docs/types/FloorplanRuleLabels.html +22 -43
  197. package/docs/types/FloorplanServerRuleLabels.html +22 -43
  198. package/docs/types/GuideLinePluginExportType.html +22 -43
  199. package/docs/types/HelperEventMap.html +22 -43
  200. package/docs/types/MapviewFloorplanPluginParameterType.html +22 -43
  201. package/docs/types/MapviewFloorplanPluginReturnType.html +22 -43
  202. package/docs/types/MediaData.html +22 -43
  203. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +22 -43
  204. package/docs/types/ModelFloorplanPluginParameterType.html +22 -43
  205. package/docs/types/ModelFloorplanPluginReturnType.html +22 -43
  206. package/docs/types/ModelRoomLabelPluginParameters.html +22 -43
  207. package/docs/types/ModelRoomLabelPluginReturnType.html +22 -43
  208. package/docs/types/MoveArgs.html +22 -43
  209. package/docs/types/MoveOpts.html +22 -43
  210. package/docs/types/Object3DHelperEventMap.html +22 -43
  211. package/docs/types/ObjectFit.html +22 -43
  212. package/docs/types/PaintBrushEventMap.html +22 -43
  213. package/docs/types/PanoCompassPluginData.html +22 -43
  214. package/docs/types/PanoCompassPluginExportType.html +22 -43
  215. package/docs/types/PanoCompassPluginParameterType.html +22 -43
  216. package/docs/types/PanoFloorplanRadarPluginParameterType.html +22 -43
  217. package/docs/types/PanoFloorplanRadarPluginReturnType.html +22 -43
  218. package/docs/types/PanoMeasurePluginEvent.html +22 -43
  219. package/docs/types/PanoMeasureReturnType.html +22 -43
  220. package/docs/types/PanoSpatialTagPluginId.html +22 -43
  221. package/docs/types/PanoTagPluginExportInterface.html +22 -43
  222. package/docs/types/PanoTagPluginParamsInterface.html +22 -43
  223. package/docs/types/PlaneTag.html +27 -46
  224. package/docs/types/PointTag.html +31 -46
  225. package/docs/types/Position.html +22 -43
  226. package/docs/types/RotateArgs.html +22 -43
  227. package/docs/types/RotateOpts.html +22 -43
  228. package/docs/types/RuleLabelsKey.html +22 -43
  229. package/docs/types/RuleLabelsValue.html +22 -43
  230. package/docs/types/Tag.html +30 -47
  231. package/docs/types/Tag2D.html +28 -48
  232. package/docs/types/Tag3D.html +28 -48
  233. package/docs/types/TagId.html +22 -43
  234. package/docs/types/TopviewFloorplanPluginParameterType.html +22 -43
  235. package/docs/types/TopviewFloorplanPluginReturnType.html +22 -43
  236. package/docs/variables/FLOOR_TYPE_MAP.html +22 -43
  237. package/docs/variables/PLUGIN.html +22 -43
  238. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +22 -43
  239. package/docs/variables/ROOM_TYPE_MAP.html +22 -43
  240. package/docs/variables/VERSION.html +22 -43
  241. package/docs/variables/itemLabelPluginServerParams.html +22 -43
  242. package/docs/variables/modelItemLabelPluginServerParams.html +22 -43
  243. package/docs/variables/modelRoomLabelPluginServerParams.html +22 -43
  244. package/libs/CSS3DRenderPlugin/CSS3DRender.js +1 -1
  245. package/libs/CSS3DRenderPlugin/Controller.js +2 -2
  246. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +1 -1
  247. package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +1 -1
  248. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +4 -4
  249. package/libs/CSS3DRenderPlugin/utils/index.js +0 -12
  250. package/libs/CSS3DRenderPlugin/utils/positionToVector3.d.ts +2 -2
  251. package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +3 -4
  252. package/libs/CSS3DRenderPlugin/utils/random.js +1 -6
  253. package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +2 -3
  254. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +1 -2
  255. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +4 -6
  256. package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +1 -1
  257. package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.js +6 -6
  258. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +13 -13
  259. package/libs/CruisePlugin/Controller.js +2 -2
  260. package/libs/CruisePlugin/utils/coordinatesAngle.js +2 -3
  261. package/libs/CruisePlugin/utils/linerValue.js +4 -4
  262. package/libs/GuideLinePlugin/Controller.js +1 -1
  263. package/libs/GuideLinePlugin/utils/getLineGeometries.js +1 -1
  264. package/libs/Object3DHelperPlugin/Controller.js +36 -38
  265. package/libs/PanoCompassPlugin/Controller.js +3 -8
  266. package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +5 -5
  267. package/libs/PanoMeasurePlugin/Controller/BaseController.js +18 -28
  268. package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +5 -6
  269. package/libs/PanoMeasurePlugin/Controller/EditController.js +57 -70
  270. package/libs/PanoMeasurePlugin/Controller/MixedController.d.ts +7 -9
  271. package/libs/PanoMeasurePlugin/Controller/MixedController.js +43 -54
  272. package/libs/PanoMeasurePlugin/Controller/ViewController.d.ts +6 -10
  273. package/libs/PanoMeasurePlugin/Controller/ViewController.js +43 -84
  274. package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +3 -3
  275. package/libs/PanoMeasurePlugin/Controller/WatchController.js +51 -68
  276. package/libs/PanoMeasurePlugin/Controller/index.d.ts +27 -9
  277. package/libs/PanoMeasurePlugin/Controller/index.js +118 -130
  278. package/libs/PanoMeasurePlugin/Model/index.d.ts +17 -17
  279. package/libs/PanoMeasurePlugin/Model/index.js +47 -77
  280. package/libs/PanoMeasurePlugin/Model/line.d.ts +6 -4
  281. package/libs/PanoMeasurePlugin/Model/line.js +29 -29
  282. package/libs/PanoMeasurePlugin/Model/point.d.ts +2 -4
  283. package/libs/PanoMeasurePlugin/Model/point.js +7 -7
  284. package/libs/PanoMeasurePlugin/Model/polyline.d.ts +37 -12
  285. package/libs/PanoMeasurePlugin/Model/polyline.js +90 -37
  286. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +1 -1
  287. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -1
  288. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -1
  289. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +5 -5
  290. package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +3 -3
  291. package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +2 -0
  292. package/libs/PanoMeasurePlugin/Modules/GuideController.js +16 -11
  293. package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +29 -16
  294. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +114 -63
  295. package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +3 -3
  296. package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +5 -4
  297. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +3 -4
  298. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +21 -21
  299. package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -2
  300. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +24 -24
  301. package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +2 -2
  302. package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +5 -4
  303. package/libs/PanoMeasurePlugin/Modules/UIController/style.js +18 -26
  304. package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +3 -4
  305. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +5 -8
  306. package/libs/PanoMeasurePlugin/index.d.ts +6 -2
  307. package/libs/PanoMeasurePlugin/index.js +33 -29
  308. package/libs/PanoMeasurePlugin/typings/data.d.ts +6 -16
  309. package/libs/PanoMeasurePlugin/typings/event.type.d.ts +18 -14
  310. package/libs/PanoMeasurePlugin/typings/index.d.ts +4 -2
  311. package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -1
  312. package/libs/PanoMeasurePlugin/utils/constants.js +16 -15
  313. package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +5 -3
  314. package/libs/PanoMeasurePlugin/utils/distanceDom.js +65 -41
  315. package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +6 -7
  316. package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +3 -3
  317. package/libs/PanoMeasurePlugin/utils/line.js +0 -1
  318. package/libs/PanoMeasurePlugin/utils/math.js +1 -2
  319. package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +2 -2
  320. package/libs/PanoSpatialTagPlugin/Components/origins.js +2 -3
  321. package/libs/PanoSpatialTagPlugin/Components/tag.js +2 -3
  322. package/libs/PanoSpatialTagPlugin/Plugin.js +2 -2
  323. package/libs/PanoTagPlugin/Assets/Icon.d.ts +2 -3
  324. package/libs/PanoTagPlugin/Assets/Icon.js +3 -4
  325. package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
  326. package/libs/PanoTagPlugin/Components/Common/Audio.js +140 -103
  327. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +30 -30
  328. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +59 -95
  329. package/libs/PanoTagPlugin/Components/Common/Media.js +249 -275
  330. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +79 -143
  331. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +170 -0
  332. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +50 -0
  333. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +50 -0
  334. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +166 -0
  335. package/libs/PanoTagPlugin/Components/Common/Shadow.js +10 -11
  336. package/libs/PanoTagPlugin/Components/Common/Text.js +130 -0
  337. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +131 -0
  338. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +22 -22
  339. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +131 -126
  340. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +97 -75
  341. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +143 -166
  342. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +45 -75
  343. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +122 -0
  344. package/libs/PanoTagPlugin/Components/Tag/index.js +157 -265
  345. package/libs/PanoTagPlugin/Components/TagContainer.js +109 -165
  346. package/libs/PanoTagPlugin/Components/TagWrapper.js +152 -0
  347. package/libs/PanoTagPlugin/controller/TagCacheController.d.ts +2 -1
  348. package/libs/PanoTagPlugin/controller/TagCacheController.js +2 -3
  349. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +22 -19
  350. package/libs/PanoTagPlugin/controller/TagComputer.js +151 -186
  351. package/libs/PanoTagPlugin/controller/index.d.ts +14 -25
  352. package/libs/PanoTagPlugin/controller/index.js +170 -266
  353. package/libs/PanoTagPlugin/index.d.ts +1 -1
  354. package/libs/PanoTagPlugin/index.js +35 -52
  355. package/libs/PanoTagPlugin/tag.config.js +16 -31
  356. package/libs/PanoTagPlugin/typings/controller.d.ts +17 -23
  357. package/libs/PanoTagPlugin/typings/index.d.ts +1 -5
  358. package/libs/PanoTagPlugin/typings/index.js +1 -7
  359. package/libs/PanoTagPlugin/typings/tag.d.ts +247 -0
  360. package/libs/PanoTagPlugin/typings/tag.js +7 -0
  361. package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +0 -1
  362. package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +1 -7
  363. package/libs/PanoTagPlugin/utils/constants.js +1 -2
  364. package/libs/PanoTagPlugin/utils/doUtil.js +6 -6
  365. package/libs/PanoTagPlugin/utils/index.js +0 -36
  366. package/libs/PanoTagPlugin/utils/search.js +9 -27
  367. package/libs/PanoTagPlugin/utils/tagPosition.js +2 -2
  368. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
  369. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +6 -10
  370. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +20 -20
  371. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +74 -83
  372. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
  373. package/libs/index.js +120 -129
  374. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +39 -29
  375. package/libs/vendor/svelte/internal/index.js +338 -382
  376. package/package.json +3 -3
  377. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +0 -53
  378. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -88
  379. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +0 -155
  380. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +0 -53
  381. package/dist/PanoTagPlugin/utils/audio/SharedAudio.d.ts +0 -16
  382. package/dist/PanoTagPlugin/utils/color.d.ts +0 -7
  383. package/dist/PanoTagPlugin/utils/getImageInfo.d.ts +0 -16
  384. package/dist/PanoTagPlugin/utils/px2rem.d.ts +0 -1
  385. package/dist/PanoTagPlugin/utils/tag/format.d.ts +0 -2
  386. package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +0 -7
  387. package/dist/PanoTagPlugin/utils/timeToString.d.ts +0 -1
  388. package/dist/shared-utils/audio.d.ts +0 -31
  389. package/docs/interfaces/AddTagConfig.html +0 -64
  390. package/docs/interfaces/EventMap.html +0 -298
  391. package/docs/interfaces/MinMax.html +0 -71
  392. package/docs/interfaces/State.html +0 -89
  393. package/docs/interfaces/TagCache.html +0 -92
  394. package/docs/interfaces/TagIconUrl.html +0 -91
  395. package/docs/interfaces/TemporaryState.html +0 -64
  396. package/docs/types/AudioAppearance.html +0 -251
  397. package/docs/types/AudioTagTypeConfigKey.html +0 -251
  398. package/docs/types/ContentTypeConfigKeySplit.html +0 -251
  399. package/docs/types/ContentTypeMap.html +0 -251
  400. package/docs/types/LoadTagConfig.html +0 -251
  401. package/docs/types/MediaStore.html +0 -251
  402. package/docs/types/PlaneTagElement.html +0 -256
  403. package/docs/types/Point2DElement.html +0 -256
  404. package/docs/types/Point2DTag.html +0 -258
  405. package/docs/types/Point3DElement.html +0 -256
  406. package/docs/types/Point3DTag.html +0 -258
  407. package/docs/types/PointTagElement.html +0 -256
  408. package/docs/types/StickType.html +0 -251
  409. package/docs/types/TagContentType.html +0 -251
  410. package/docs/types/TagDimensionType.html +0 -251
  411. package/docs/types/TagElement.html +0 -258
  412. package/docs/types/TagEvents.html +0 -286
  413. package/docs/types/TagHooks.html +0 -251
  414. package/docs/types/TagIconSize.html +0 -254
  415. package/docs/types/TagPointType.html +0 -254
  416. package/docs/types/WorkCode.html +0 -251
  417. package/libs/GuideLinePlugin/utils/getPoint.d.ts +0 -3
  418. package/libs/GuideLinePlugin/utils/getPoint.js +0 -18
  419. package/libs/PanoMeasurePlugin/typings/data.js +0 -1
  420. package/libs/PanoMeasurePlugin/typings/event.type.js +0 -1
  421. package/libs/PanoMeasurePlugin/typings/index.js +0 -1
  422. package/libs/PanoMeasurePlugin/typings/utils.type.d.ts +0 -1
  423. package/libs/PanoMeasurePlugin/typings/utils.type.js +0 -1
  424. package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +0 -2
  425. package/libs/PanoMeasurePlugin/utils/clearGroup.js +0 -6
  426. package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +0 -198
  427. package/libs/PanoTagPlugin/Components/Common/Icon/audioIcon.js +0 -108
  428. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +0 -81
  429. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +0 -145
  430. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +0 -195
  431. package/libs/PanoTagPlugin/Components/Common/Text/MText.js +0 -166
  432. package/libs/PanoTagPlugin/Components/Common/TextItem.js +0 -106
  433. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +0 -195
  434. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +0 -223
  435. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +0 -125
  436. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +0 -102
  437. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +0 -134
  438. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +0 -115
  439. package/libs/PanoTagPlugin/Components/TagItem.js +0 -254
  440. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +0 -4
  441. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +0 -6
  442. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +0 -93
  443. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +0 -5622
  444. package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +0 -1325
  445. package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +0 -173
  446. package/libs/PanoTagPlugin/mocks/v1/mock1.js +0 -122
  447. package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +0 -233
  448. package/libs/PanoTagPlugin/mocks/v1/mock2.js +0 -296
  449. package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +0 -22
  450. package/libs/PanoTagPlugin/mocks/v1/mock3.js +0 -32
  451. package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +0 -56
  452. package/libs/PanoTagPlugin/mocks/v1/mock4.js +0 -60
  453. package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +0 -13
  454. package/libs/PanoTagPlugin/mocks/v1/mock5.js +0 -17
  455. package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +0 -16
  456. package/libs/PanoTagPlugin/mocks/v1/mock6.js +0 -27
  457. package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +0 -22
  458. package/libs/PanoTagPlugin/mocks/v1/mock7.js +0 -228
  459. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +0 -53
  460. package/libs/PanoTagPlugin/typings/tag/Tag.js +0 -4
  461. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -88
  462. package/libs/PanoTagPlugin/typings/tag/TagConfig.js +0 -1
  463. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +0 -155
  464. package/libs/PanoTagPlugin/typings/tag/TagData.js +0 -4
  465. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +0 -53
  466. package/libs/PanoTagPlugin/typings/tag/Utils.js +0 -5
  467. package/libs/PanoTagPlugin/utils/audio/SharedAudio.d.ts +0 -16
  468. package/libs/PanoTagPlugin/utils/audio/SharedAudio.js +0 -107
  469. package/libs/PanoTagPlugin/utils/color.d.ts +0 -7
  470. package/libs/PanoTagPlugin/utils/color.js +0 -17
  471. package/libs/PanoTagPlugin/utils/getImageInfo.d.ts +0 -16
  472. package/libs/PanoTagPlugin/utils/getImageInfo.js +0 -51
  473. package/libs/PanoTagPlugin/utils/px2rem.d.ts +0 -1
  474. package/libs/PanoTagPlugin/utils/px2rem.js +0 -6
  475. package/libs/PanoTagPlugin/utils/tag/format.d.ts +0 -2
  476. package/libs/PanoTagPlugin/utils/tag/format.js +0 -18
  477. package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +0 -7
  478. package/libs/PanoTagPlugin/utils/tag/tagCheck.js +0 -26
  479. package/libs/PanoTagPlugin/utils/timeToString.d.ts +0 -1
  480. package/libs/PanoTagPlugin/utils/timeToString.js +0 -7
  481. package/libs/shared-utils/audio.d.ts +0 -31
  482. package/libs/shared-utils/audio.js +0 -81
@@ -28,7 +28,7 @@ var u = (n, s, e) => new Promise((i, t) => {
28
28
  });
29
29
  import { Controller as $ } from "../base/BasePluginWithData.js";
30
30
  import * as b from "three";
31
- import y from "./utils/getLineGeometries.js";
31
+ import { getLineGeometries as y } from "./utils/getLineGeometries.js";
32
32
  import { getArrowMaterial as M } from "./utils/getArrowMaterial.js";
33
33
  import { notNil as w } from "../shared-utils/isNil.js";
34
34
  import { equal as N } from "../shared-utils/equal.js";
@@ -60,5 +60,5 @@ function B(i, r, p) {
60
60
  return n.setAttribute("position", new T.BufferAttribute(a, 3)), n.setAttribute("uv", new T.BufferAttribute(l, 2)), n.setIndex(new T.BufferAttribute(o, 1)), n;
61
61
  }
62
62
  export {
63
- X as default
63
+ X as getLineGeometries
64
64
  };
@@ -1,7 +1,7 @@
1
- var g = Object.defineProperty;
1
+ var O = Object.defineProperty;
2
2
  var w = Object.getOwnPropertySymbols;
3
3
  var M = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
4
- var b = (i, s, e) => s in i ? g(i, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[s] = e, f = (i, s) => {
4
+ var b = (i, s, e) => s in i ? O(i, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[s] = e, f = (i, s) => {
5
5
  for (var e in s || (s = {}))
6
6
  M.call(s, e) && b(i, e, s[e]);
7
7
  if (w)
@@ -11,25 +11,25 @@ var b = (i, s, e) => s in i ? g(i, s, { enumerable: !0, configurable: !0, writab
11
11
  };
12
12
  var p = (i, s, e) => (b(i, typeof s != "symbol" ? s + "" : s, e), e);
13
13
  var u = (i, s, e) => new Promise((r, t) => {
14
- var o = (l) => {
14
+ var l = (n) => {
15
15
  try {
16
- h(e.next(l));
17
- } catch (c) {
18
- t(c);
16
+ d(e.next(n));
17
+ } catch (h) {
18
+ t(h);
19
19
  }
20
- }, m = (l) => {
20
+ }, c = (n) => {
21
21
  try {
22
- h(e.throw(l));
23
- } catch (c) {
24
- t(c);
22
+ d(e.throw(n));
23
+ } catch (h) {
24
+ t(h);
25
25
  }
26
- }, h = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(o, m);
27
- h((e = e.apply(i, s)).next());
26
+ }, d = (n) => n.done ? r(n.value) : Promise.resolve(n.value).then(l, c);
27
+ d((e = e.apply(i, s)).next());
28
28
  });
29
29
  import { Controller as R } from "../base/BasePlugin.js";
30
30
  import "three";
31
- import { MoveHelper as P } from "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
32
- import { RotateHelper as j } from "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
31
+ import { MoveHelper as j } from "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
32
+ import { RotateHelper as P } from "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
33
33
  import { RectangleScaleHelper as y } from "../shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js";
34
34
  import "../shared-utils/Object3DHelper/Helper/OutlineHelper.js";
35
35
  import { MoveController as F } from "../shared-utils/Object3DHelper/Controller/MoveController.js";
@@ -38,8 +38,8 @@ import { Object3DHelper as I } from "../shared-utils/Object3DHelper/index.js";
38
38
  import { RotateController as k } from "../shared-utils/Object3DHelper/Controller/RotateController.js";
39
39
  import { CSS3DScaleController as B } from "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
40
40
  import { CSS3DRender as L } from "../CSS3DRenderPlugin/CSS3DRender.js";
41
- import $ from "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
42
- import W from "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
41
+ import { fiveModelLoaded as $ } from "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
42
+ import { generateBehindFiveElement as W } from "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
43
43
  import "../shared-utils/Subscribe.js";
44
44
  import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
45
45
  import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
@@ -66,17 +66,17 @@ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
66
66
  import "../CSS3DRenderPlugin/utils/positionToVector3.js";
67
67
  import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
68
68
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
69
- const O = "v1.0.0", H = "Object3DHelperPlugin", C = `${H}@${O}`, _ = () => {
69
+ const g = "v1.0.0", H = "Object3DHelperPlugin", C = `${H}@${g}`, _ = () => {
70
70
  console.error(`${C} is disposed`);
71
71
  }, G = () => {
72
72
  console.warn(`${C} is disabled`);
73
73
  }, N = () => {
74
74
  console.error(`${C} is disabled`);
75
75
  };
76
- class Pe extends R {
76
+ class je extends R {
77
77
  constructor(e) {
78
78
  super(e);
79
- p(this, "version", O);
79
+ p(this, "version", g);
80
80
  p(this, "name", H);
81
81
  p(this, "state", {
82
82
  visible: !0,
@@ -128,35 +128,33 @@ class Pe extends R {
128
128
  }
129
129
  const t = new I();
130
130
  this.objectHelperMap.set(e, t);
131
- const o = (S = this.five.getElement()) == null ? void 0 : S.parentElement, m = this.five.camera, { moveHelper: h = !0, rotateHelper: l = !0, scaleHelper: c = !0 } = r;
132
- if (h) {
133
- const n = new P(e), a = new v(this.five, F, e, n);
131
+ const l = (S = this.five.getElement()) == null ? void 0 : S.parentElement, c = this.five.camera, { moveHelper: d = !0, rotateHelper: n = !0, scaleHelper: h = !0 } = r;
132
+ if (d) {
133
+ const o = new j(e), a = new v(this.five, F, e, o);
134
134
  t.addControllers({ moveController: a.helperController });
135
135
  }
136
- if (l) {
137
- let n;
138
- o && m && (n = { container: o });
139
- const a = new j(e, n), d = new v(this.five, k, e, a);
140
- t.addControllers({ rotateController: d.helperController });
136
+ if (n) {
137
+ let o;
138
+ l && c && (o = { container: l });
139
+ const a = new P(e, o), m = new v(this.five, k, e, a);
140
+ t.addControllers({ rotateController: m.helperController });
141
141
  }
142
- if (c && o) {
143
- const n = new y(e, o, m, this.five.scene), a = new v(this.five, B, e, n);
142
+ if (h && l) {
143
+ const o = new y(e, l, c, this.five.scene), a = new v(this.five, B, e, o);
144
144
  t.addControllers({ scaleController: a.helperController });
145
145
  }
146
146
  e.isCSS3DObjectPlus && $(this.five).then(() => {
147
- var n, a;
148
- if (e.isCSS3DObjectPlus) {
149
- const d = e, D = (n = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? n : W(this.five);
150
- D && e && (this.css3DObjectParentMap.set(d, d.parent), d.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(D), (a = this.css3DRender.getBehindCSS3DObjectGroup()) == null || a.add(d), this.css3DRender.render(this.five.camera));
151
- }
147
+ var m, D;
148
+ const o = e, a = (m = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? m : W(this.five);
149
+ a && (this.css3DObjectParentMap.set(o, o.parent), o.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(a), (D = this.css3DRender.getBehindCSS3DObjectGroup()) == null || D.add(o), this.css3DRender.render(this.five.camera));
152
150
  });
153
151
  }
154
152
  removeObject3DHelper(e) {
155
153
  const r = this.objectHelperMap.get(e);
156
154
  if (!!r) {
157
155
  if (e.isCSS3DObjectPlus) {
158
- const t = e, o = this.css3DObjectParentMap.get(t);
159
- o == null || o.add(t), this.css3DRender.render(this.five.camera);
156
+ const t = e, l = this.css3DObjectParentMap.get(t);
157
+ l == null || l.add(t), this.css3DRender.render(this.five.camera);
160
158
  }
161
159
  this.objectHelperMap.delete(e), r.dispose();
162
160
  }
@@ -182,7 +180,7 @@ class Pe extends R {
182
180
  }
183
181
  }
184
182
  export {
185
- Pe as Object3DHelperController,
183
+ je as Object3DHelperController,
186
184
  C as PLUGIN,
187
- O as VERSION
185
+ g as VERSION
188
186
  };
@@ -117,14 +117,9 @@ class se extends A {
117
117
  ).clone().setY(t.y).sub(t).normalize(), b = t.clone().add(f.clone().multiplyScalar(0.7)).setY(t.y + 0.01);
118
118
  this.entryDoorMesh.rotation.z = new a.Vector3(0, 0, -1).angleTo(f), this.entryDoorMesh.position.copy(b), ((m = this.data) == null ? void 0 : m.room_observers[e].room.type) === 1 ? (c = this.entryDoorMesh) == null || c.material.setValues({ opacity: 1 }) : (I = this.entryDoorMesh) == null || I.material.setValues({ opacity: 0 });
119
119
  }
120
- this.roomInfoInstance && this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.css3DObject.position.copy(
121
- t.clone().setY(t.y + 0.01)
122
- ), this.roomInfoInstance.setRoom(this.data.room_observers[e].room)), this.five.needsRender = !0;
123
- });
124
- i(this, "onFiveCameraDirectionUpdate", ({
125
- longitude: e,
126
- latitude: t
127
- }) => {
120
+ this.roomInfoInstance && this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.css3DObject.position.copy(t.clone().setY(t.y + 0.01)), this.roomInfoInstance.setRoom(this.data.room_observers[e].room)), this.five.needsRender = !0;
121
+ });
122
+ i(this, "onFiveCameraDirectionUpdate", ({ longitude: e, latitude: t }) => {
128
123
  var o, s;
129
124
  !this.roomInfoWrapperInstance || (this.roomInfoWrapperInstance.css3DObject.rotation.z = e, t > 0.66 && this.five.getCurrentState().mode === "Panorama" ? (o = this.roomInfoInstance) == null || o.show() : (s = this.roomInfoInstance) == null || s.hide());
130
125
  });
@@ -8,7 +8,7 @@ import type { UserDistanceItem } from '../utils/distanceDom';
8
8
  import type { Five, Intersection, IntersectMeshInterface, Subscribe } from '@realsee/five';
9
9
  import type { OpenParameter } from '../typings/data';
10
10
  import Line from '../Model/line';
11
- export interface IControllerParams {
11
+ export interface ControllerParams {
12
12
  five: Five;
13
13
  group: Group;
14
14
  model: Model;
@@ -32,10 +32,10 @@ export default class BaseController {
32
32
  protected mouseGroup: Group;
33
33
  protected container: Element;
34
34
  protected fiveHelper: FiveHelper;
35
- protected hook: IControllerParams['hook'];
36
- protected magnifier: IControllerParams['magnifier'];
37
- protected userDistanceItemCreator: IControllerParams['userDistanceItemCreator'];
38
- constructor(params: IControllerParams);
35
+ protected hook: ControllerParams['hook'];
36
+ protected magnifier: ControllerParams['magnifier'];
37
+ protected userDistanceItemCreator: ControllerParams['userDistanceItemCreator'];
38
+ constructor(params: ControllerParams);
39
39
  updateDistanceUI: () => void;
40
40
  protected removeLine(line: Line): void;
41
41
  protected updateMouseGroup(intersection: Intersection, mesh?: IntersectMeshInterface): Group;
@@ -1,20 +1,10 @@
1
- var u = Object.defineProperty;
2
- var a = (i, e, o) => e in i ? u(i, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : i[e] = o;
3
- var t = (i, e, o) => (a(i, typeof e != "symbol" ? e + "" : e, o), o);
4
- import l from "../Model/line.js";
5
- import m from "../Model/point.js";
6
- import { preventDefault as n } from "../utils/ironbox.js";
7
- import "../../shared-utils/uuid.js";
8
- import "../Model/polyline.js";
9
- import "../utils/line.js";
10
- import "@realsee/five/line";
11
- import "../utils/constants.js";
12
- import "three";
13
- import "@realsee/five";
14
- import "../utils/distanceDom.js";
15
- import "../utils/isNDCPointInScreen.js";
16
- import "../../shared-utils/removeArrayItem.js";
17
- class H {
1
+ var a = Object.defineProperty;
2
+ var u = (i, e, o) => e in i ? a(i, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : i[e] = o;
3
+ var t = (i, e, o) => (u(i, typeof e != "symbol" ? e + "" : e, o), o);
4
+ import { Line as m } from "../Model/line.js";
5
+ import { Point as d } from "../Model/point.js";
6
+ import { preventDefault as r } from "../utils/ironbox.js";
7
+ class L {
18
8
  constructor(e) {
19
9
  t(this, "model");
20
10
  t(this, "five");
@@ -30,12 +20,12 @@ class H {
30
20
  t(this, "magnifier");
31
21
  t(this, "userDistanceItemCreator");
32
22
  t(this, "updateDistanceUI", () => {
33
- this.dashed.distanceItem.update(this.five), this.model.lines.forEach((e) => e.distanceItem.update(this.five));
23
+ this.dashed.distanceItem.update(this.five), this.model.getAllLines().forEach((e) => e.distanceItem.update(this.five));
34
24
  });
35
- var s, r;
36
- this.five = e.five, this.hook = e.hook, this.model = e.model, this.config = e.config, this.magnifier = e.magnifier, this.container = e.container, this.fiveHelper = e.fiveHelper, this.isMobile = (r = (s = e.openParams) == null ? void 0 : s.isMobile) != null ? r : !1, this.userDistanceItemCreator = e.userDistanceItemCreator, this.group = e.group, this.mouseGroup = e.mouseGroup, this.dashed = new l(new m([0, 0, 0]), new m([0, 0, 0]), this.model), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine";
25
+ var s, n;
26
+ this.five = e.five, this.hook = e.hook, this.model = e.model, this.config = e.config, this.magnifier = e.magnifier, this.container = e.container, this.fiveHelper = e.fiveHelper, this.isMobile = (n = (s = e.openParams) == null ? void 0 : s.isMobile) != null ? n : !1, this.userDistanceItemCreator = e.userDistanceItemCreator, this.group = e.group, this.mouseGroup = e.mouseGroup, this.dashed = new m(new d([0, 0, 0]), new d([0, 0, 0]), this.model), this.dashed.distanceItem.setItemSelectable(!1), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine";
37
27
  const o = this.five.getElement();
38
- o && (o.addEventListener("touchstart", n), o.addEventListener("contextmenu", n));
28
+ o && (o.addEventListener("touchstart", r), o.addEventListener("contextmenu", r));
39
29
  }
40
30
  removeLine(e) {
41
31
  this.group.remove(e.mesh, e.lightMesh), e.distanceItem.remove(), this.five.needsRender = !0;
@@ -43,21 +33,21 @@ class H {
43
33
  updateMouseGroup(e, o) {
44
34
  if (!e)
45
35
  return this.mouseGroup;
46
- const s = this.fiveHelper.getAdsorbentPoint(e), r = s || e.point;
47
- if (this.mouseGroup.position.copy(r), o)
36
+ const s = this.fiveHelper.getAdsorbentPoint(e), n = s || e.point;
37
+ if (this.mouseGroup.position.copy(n), o)
48
38
  this.mouseGroup.quaternion.copy(o.quaternion);
49
39
  else if (e.face) {
50
- const h = e.face.normal.clone().multiplyScalar(0.05), d = e.point.clone().add(h).clone().add(h);
51
- this.mouseGroup.lookAt(d);
40
+ const h = e.face.normal.clone().multiplyScalar(0.05), l = e.point.clone().add(h).clone().add(h);
41
+ this.mouseGroup.lookAt(l);
52
42
  }
53
43
  return this.mouseGroup;
54
44
  }
55
45
  dispose() {
56
- this.disposed = !0, this.magnifier.remove(), this.model.lines.forEach((o) => this.removeLine(o));
46
+ this.disposed = !0, this.magnifier.disable(), this.model.getAllLines().forEach((o) => this.removeLine(o));
57
47
  const e = this.five.getElement();
58
- e && (e.removeEventListener("touchstart", n), e.removeEventListener("contextmenu", n));
48
+ e && (e.removeEventListener("touchstart", r), e.removeEventListener("contextmenu", r));
59
49
  }
60
50
  }
61
51
  export {
62
- H as default
52
+ L as BaseController
63
53
  };
@@ -1,11 +1,10 @@
1
- import type { LineJson } from '../typings/data';
2
1
  import Line from '../Model/line';
3
- import BaseController, { IControllerParams } from './BaseController';
4
- export interface EditEvent {
5
- editedLineChange: (lines: LineJson[]) => void;
6
- }
2
+ import BaseController, { ControllerParams } from './BaseController';
3
+ import { Polyline } from '../Model/polyline';
7
4
  export default class EditController extends BaseController {
8
5
  type: string;
6
+ polyline: Polyline;
7
+ /** 拖动的控制点 */
9
8
  private pressPoint?;
10
9
  private hasAppendDashed;
11
10
  private hasAppendMouseGroup;
@@ -15,7 +14,7 @@ export default class EditController extends BaseController {
15
14
  private hammer?;
16
15
  /** 根据 intersection 更新放大镜和吸附点 */
17
16
  private onIntersectionUpdate;
18
- constructor(params: IControllerParams);
17
+ constructor(params: ControllerParams);
19
18
  dispose(): void;
20
19
  getEditingLines(): Line[];
21
20
  /** 撤销编辑 */
@@ -1,114 +1,101 @@
1
1
  var d = Object.defineProperty;
2
- var m = (h, n, e) => n in h ? d(h, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[n] = e;
3
- var s = (h, n, e) => (m(h, typeof n != "symbol" ? n + "" : n, e), e);
4
- import u from "hammerjs";
5
- import { Model as f } from "../Model/index.js";
6
- import l from "../Model/line.js";
7
- import p from "../Model/point.js";
2
+ var l = (h, n, e) => n in h ? d(h, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[n] = e;
3
+ var i = (h, n, e) => (l(h, typeof n != "symbol" ? n + "" : n, e), e);
4
+ import m from "hammerjs";
5
+ import { Model as u } from "../Model/index.js";
6
+ import { Line as f } from "../Model/line.js";
7
+ import { Point as p } from "../Model/point.js";
8
8
  import { throttle as v } from "../../shared-utils/throttle.js";
9
- import c from "./BaseController.js";
9
+ import { BaseController as c } from "./BaseController.js";
10
10
  import { getIntersectionFromEvent as r } from "../utils/getIntersectionFromEvent.js";
11
- import "@realsee/five";
12
- import "../../shared-utils/removeArrayItem.js";
13
- import "../Model/polyline.js";
14
- import "../../shared-utils/uuid.js";
15
- import "../utils/line.js";
16
- import "@realsee/five/line";
17
- import "../utils/constants.js";
18
- import "three";
19
- import "../utils/distanceDom.js";
20
- import "../utils/isNDCPointInScreen.js";
21
- import "../utils/ironbox.js";
22
- import "../utils/getPointFromHammerEvent.js";
23
- class q extends c {
11
+ import { Polyline as P } from "../Model/polyline.js";
12
+ class w extends c {
24
13
  constructor(e) {
25
- var i;
14
+ var s;
26
15
  super(e);
27
- s(this, "type", "edit");
28
- s(this, "pressPoint");
29
- s(this, "hasAppendDashed", !1);
30
- s(this, "hasAppendMouseGroup", !1);
31
- s(this, "fiveElement");
32
- s(this, "lastPoint", null);
33
- s(this, "hammer");
34
- s(this, "onIntersectionUpdate", v((e, t) => {
16
+ i(this, "type", "edit");
17
+ i(this, "polyline");
18
+ i(this, "pressPoint");
19
+ i(this, "hasAppendDashed", !1);
20
+ i(this, "hasAppendMouseGroup", !1);
21
+ i(this, "fiveElement");
22
+ i(this, "lastPoint", null);
23
+ i(this, "hammer");
24
+ i(this, "onIntersectionUpdate", v((e, t) => {
35
25
  var o;
36
- this.hasAppendMouseGroup === !1 && (this.group.add(this.mouseGroup), this.magnifier.appendTo(this.container), this.hasAppendMouseGroup = !0);
37
- const i = this.updateMouseGroup(e, t).position;
38
- (o = this.pressPoint) == null || o.position.copy(i), this.updateDashed(), requestAnimationFrame(() => this.magnifier.renderWithPoint(this.mouseGroup.position)), this.five.needsRender = !0;
26
+ this.hasAppendMouseGroup === !1 && (this.group.add(this.mouseGroup), this.magnifier.appendTo(this.container), this.magnifier.enable(), this.hasAppendMouseGroup = !0);
27
+ const s = this.updateMouseGroup(e, t).position;
28
+ (o = this.pressPoint) == null || o.position.copy(s), this.updateDashed(), requestAnimationFrame(() => this.magnifier.renderWithPoint(this.mouseGroup.position)), this.five.needsRender = !0;
39
29
  }, 20));
40
- s(this, "revoke", () => {
41
- if (this.model.lines.length === 0 && this.lastPoint) {
42
- this.lastPoint = null, this.hasAppendDashed = !1, this.dashed.distanceItem.remove(), this.group.remove(this.dashed.mesh), this.hook.emit("anchorChange", null), this.five.needsRender = !0;
30
+ i(this, "revoke", () => {
31
+ if (this.polyline.lines.length === 0 && this.lastPoint) {
32
+ this.lastPoint = null, this.hasAppendDashed = !1, this.dashed.distanceItem.remove(), this.group.remove(this.dashed.mesh), this.hook.emit("anchorChange", null), this.hook.emit("editedDashedLineChange", null), this.five.needsRender = !0;
43
33
  return;
44
34
  }
45
- if (this.model.lines.length === 0 && !this.lastPoint || !this.lastPoint)
35
+ if (this.polyline.lines.length === 0 && !this.lastPoint || !this.lastPoint)
46
36
  return;
47
- const e = this.model.lines[this.model.lines.length - 1], t = e.findAnotherPoint(this.lastPoint);
48
- !t || (this.lastPoint = t, this.hook.emit("anchorChange", t.position), this.group.remove(e.mesh), this.model.removeLine(e), this.hasAppendMouseGroup = !1, this.mouseGroup.position.copy(this.lastPoint.position), this.group.remove(this.mouseGroup), e.distanceItem.remove(), this.updateDashed(), this.magnifier.remove(), this.five.needsRender = !0);
37
+ const e = this.polyline.lines[this.polyline.lines.length - 1], t = e.findAnotherPoint(this.lastPoint);
38
+ !t || (this.lastPoint = t, this.hook.emit("anchorChange", t.position), this.group.remove(e.mesh), this.polyline.removeLine(e), this.hasAppendMouseGroup = !1, this.mouseGroup.position.copy(this.lastPoint.position), this.group.remove(this.mouseGroup), e.distanceItem.remove(), this.updateDashed(), this.magnifier.disable(), this.five.needsRender = !0);
49
39
  });
50
- s(this, "onMouseLeave", () => {
51
- this.magnifier.remove(), this.group.remove(this.mouseGroup), this.hasAppendMouseGroup = !1, this.lastPoint && (this.mouseGroup.position.copy(this.lastPoint.position), this.updateDashed());
40
+ i(this, "onMouseLeave", () => {
41
+ this.magnifier.disable(), this.group.remove(this.mouseGroup), this.hasAppendMouseGroup = !1, this.lastPoint && (this.mouseGroup.position.copy(this.lastPoint.position), this.updateDashed());
52
42
  });
53
- s(this, "onLineChanged", () => {
54
- this.hook.emit(
55
- "editedLineChange",
56
- this.model.lines.map((e) => e.toCompletelyJson())
57
- );
43
+ i(this, "onLineChanged", () => {
44
+ this.hook.emit("editedPolylineChange", this.polyline);
58
45
  });
59
- s(this, "onPress", (e) => {
46
+ i(this, "onPress", (e) => {
60
47
  const [t] = r(this.five, e);
61
- if (!t || !t.face)
48
+ if (!(t != null && t.face))
62
49
  return;
63
- const i = new p(t.point);
64
- this.pressPoint = i, this.onIntersectionUpdate(t);
50
+ const s = new p(t.point);
51
+ this.pressPoint = s, this.onIntersectionUpdate(t);
65
52
  });
66
- s(this, "onPan", (e) => {
53
+ i(this, "onPan", (e) => {
67
54
  if (!this.pressPoint)
68
55
  return;
69
56
  const [t] = r(this.five, e);
70
- !t || !t.face || this.onIntersectionUpdate(t);
57
+ !(t != null && t.face) || this.onIntersectionUpdate(t);
71
58
  });
72
- s(this, "onPanEnd", (e) => {
59
+ i(this, "onPanEnd", (e) => {
73
60
  !this.pressPoint || this.onTap(e);
74
61
  });
75
- s(this, "onTap", (e) => {
62
+ i(this, "onTap", (e) => {
76
63
  this.hasAppendDashed || (this.dashed.distanceItem.appendTo(this.container), this.group.add(this.dashed.mesh)), this.hasAppendDashed = !0;
77
64
  const [t] = r(this.five, e);
78
65
  this.updateMouseGroup(t);
79
- const i = new p(this.mouseGroup.position), o = this.lastPoint;
80
- if (i && (this.lastPoint = i), i && o) {
81
- const a = new l(o, i, this.model);
82
- a.distanceItem.appendTo(this.container), this.model.addLine(a), this.group.add(a.mesh), a.distanceItem.update(this.five);
66
+ const s = new p(this.mouseGroup.position), o = this.lastPoint;
67
+ if (s && (this.lastPoint = s), s && o) {
68
+ const a = new f(o, s, this.model);
69
+ a.distanceItem.setItemSelectable(!1), a.distanceItem.appendTo(this.container), this.polyline.addLine(a), this.group.add(a.mesh), a.distanceItem.update(this.five);
83
70
  }
84
- this.pressPoint = void 0, this.hasAppendMouseGroup = !1, this.magnifier.remove(), this.group.remove(this.mouseGroup), this.updateDashed(), this.five.needsRender = !0, this.hook.emit("anchorChange", i.position);
71
+ this.pressPoint = void 0, this.hasAppendMouseGroup = !1, this.magnifier.disable(), this.group.remove(this.mouseGroup), this.updateDashed(), this.five.needsRender = !0, this.hook.emit("anchorChange", s.position);
85
72
  });
86
- s(this, "onWantsTapGesture", () => !1);
87
- s(this, "onWantsToMoveToPano", () => !1);
88
- s(this, "onWantsPanGesture", () => this.pressPoint ? !1 : void 0);
89
- s(this, "onCameraUpdate", () => {
73
+ i(this, "onWantsTapGesture", () => !1);
74
+ i(this, "onWantsToMoveToPano", () => !1);
75
+ i(this, "onWantsPanGesture", () => this.pressPoint ? !1 : void 0);
76
+ i(this, "onCameraUpdate", () => {
90
77
  this.updateDistanceUI(), this.dashed.distanceItem.update(this.five);
91
78
  });
92
- s(this, "updateDashed", () => {
93
- !this.lastPoint || (this.dashed.points[0].position.copy(this.lastPoint.position), this.dashed.points[1].position.copy(this.mouseGroup.position), this.dashed.mesh.setPoints(this.lastPoint.position, this.mouseGroup.position), this.dashed.distanceItem.update(this.five));
79
+ i(this, "updateDashed", () => {
80
+ !this.lastPoint || (this.dashed.points[0].position.copy(this.lastPoint.position), this.dashed.points[1].position.copy(this.mouseGroup.position), this.dashed.mesh.setPoints(this.lastPoint.position, this.mouseGroup.position), this.dashed.distanceItem.update(this.five), this.hook.emit("editedDashedLineChange", this.dashed));
94
81
  });
95
- this.model = new f(this.config), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("wantsPanGesture", this.onWantsPanGesture), this.five.on("wantsTapGesture", this.onWantsTapGesture), this.five.on("wantsToMoveToPano", this.onWantsToMoveToPano), this.five.on("intersectionOnModelUpdate", this.onIntersectionUpdate), this.model.hook.on("lineAdded", this.onLineChanged), this.model.hook.on("lineRemoved", this.onLineChanged);
82
+ this.model = new u(this.config), this.polyline = new P({ model: this.model }), this.model.addPolyline(this.polyline), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("wantsPanGesture", this.onWantsPanGesture), this.five.on("wantsTapGesture", this.onWantsTapGesture), this.five.on("wantsToMoveToPano", this.onWantsToMoveToPano), this.five.on("intersectionOnModelUpdate", this.onIntersectionUpdate), this.polyline.hook.on("lineAdded", this.onLineChanged), this.polyline.hook.on("lineRemoved", this.onLineChanged);
96
83
  const t = this.five.getElement();
97
84
  if (t) {
98
85
  this.fiveElement = t;
99
- const o = new u(t);
86
+ const o = new m(t);
100
87
  this.hammer = o, o.on("tap", this.onTap), o.on("pan", this.onPan), o.on("press", this.onPress), o.on("panend", this.onPanEnd);
101
88
  }
102
- (i = this.fiveElement) == null || i.addEventListener("mouseleave", this.onMouseLeave), this.hook.emit("anchorChange", null), this.five.refresh();
89
+ this.five.helperVisible = !1, (s = this.fiveElement) == null || s.addEventListener("mouseleave", this.onMouseLeave), this.hook.emit("anchorChange", null), this.hook.emit("editedDashedLineChange", null), this.five.refresh();
103
90
  }
104
91
  dispose() {
105
92
  var e, t;
106
- super.dispose(), this.group.remove(this.mouseGroup, this.dashed.mesh), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("wantsPanGesture", this.onWantsPanGesture), this.five.off("wantsTapGesture", this.onWantsTapGesture), this.five.off("wantsToMoveToPano", this.onWantsToMoveToPano), this.five.off("intersectionOnModelUpdate", this.onIntersectionUpdate), this.model.hook.off("lineAdded", this.onLineChanged), this.model.hook.off("lineRemoved", this.onLineChanged), (e = this.hammer) == null || e.destroy(), (t = this.fiveElement) == null || t.removeEventListener("mouseleave", this.onMouseLeave), this.magnifier.dispose(), this.dashed.distanceItem.remove(), this.five.needsRender = !0;
93
+ super.dispose(), this.five.helperVisible = !0, this.group.remove(this.mouseGroup, this.dashed.mesh), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("wantsPanGesture", this.onWantsPanGesture), this.five.off("wantsTapGesture", this.onWantsTapGesture), this.five.off("wantsToMoveToPano", this.onWantsToMoveToPano), this.five.off("intersectionOnModelUpdate", this.onIntersectionUpdate), this.polyline.hook.off("lineAdded", this.onLineChanged), this.polyline.hook.off("lineRemoved", this.onLineChanged), (e = this.hammer) == null || e.destroy(), (t = this.fiveElement) == null || t.removeEventListener("mouseleave", this.onMouseLeave), this.magnifier.dispose(), this.dashed.distanceItem.remove(), this.five.needsRender = !0;
107
94
  }
108
95
  getEditingLines() {
109
- return this.model.lines;
96
+ return this.polyline.lines;
110
97
  }
111
98
  }
112
99
  export {
113
- q as default
100
+ w as EditController
114
101
  };
@@ -1,25 +1,23 @@
1
- import type { LineJson } from '../typings/data';
2
- import { Model } from '../Model';
3
1
  import Line from '../Model/line';
4
- import BaseController, { IControllerParams } from './BaseController';
2
+ import BaseController, { ControllerParams } from './BaseController';
3
+ import { Polyline } from '../Model/polyline';
5
4
  export declare type State = 'watching' | 'editing';
6
- export interface EditEvent {
7
- editedLineChange: (lines: LineJson[]) => void;
8
- }
9
5
  export default class MixedController extends BaseController {
10
6
  state: State;
11
- model: Model;
7
+ polyline: Polyline;
12
8
  private hasAppendDashed;
13
- private fiveElement?;
14
9
  private mobileStartPoint;
15
10
  private mobileNowPoint;
16
11
  private highlightedLines;
17
12
  private deleteDom;
18
- constructor(params: IControllerParams);
13
+ private rangePieceController;
14
+ private disposers;
15
+ constructor(params: ControllerParams);
19
16
  dispose(): void;
20
17
  highlightLine(line: Line): void;
21
18
  clearHighlightLines(): void;
22
19
  getEditingLines(): Line[];
20
+ addStartPoint(): void;
23
21
  /** 编辑线条发生改变时通知外部 */
24
22
  private onLineChanged;
25
23
  private onWantsTapGesture;