@realsee/dnalogel 2.4.0 → 2.5.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 (440) hide show
  1. package/dist/CSS3DRenderPlugin/utils/positionToVector3.d.ts +2 -2
  2. package/dist/PanoTagPlugin/Assets/Icon.d.ts +3 -2
  3. package/dist/PanoTagPlugin/controller/TagCacheController.d.ts +1 -2
  4. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +19 -22
  5. package/dist/PanoTagPlugin/controller/index.d.ts +25 -14
  6. package/dist/PanoTagPlugin/index.d.ts +1 -1
  7. package/dist/PanoTagPlugin/typings/controller.d.ts +23 -17
  8. package/dist/PanoTagPlugin/typings/index.d.ts +5 -1
  9. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +53 -0
  10. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +88 -0
  11. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +155 -0
  12. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +53 -0
  13. package/dist/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +1 -0
  14. package/dist/PanoTagPlugin/utils/audio/SharedAudio.d.ts +16 -0
  15. package/dist/PanoTagPlugin/utils/color.d.ts +7 -0
  16. package/dist/PanoTagPlugin/utils/getImageInfo.d.ts +16 -0
  17. package/dist/PanoTagPlugin/utils/px2rem.d.ts +1 -0
  18. package/dist/PanoTagPlugin/utils/tag/format.d.ts +2 -0
  19. package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +7 -0
  20. package/dist/PanoTagPlugin/utils/timeToString.d.ts +1 -0
  21. package/dist/index.cjs.js +52 -54
  22. package/dist/index.js +7771 -6537
  23. package/dist/index.umd.js +44 -46
  24. package/dist/shared-utils/audio.d.ts +31 -0
  25. package/docs/assets/search.js +1 -1
  26. package/docs/classes/CSS3DRender.html +31 -31
  27. package/docs/classes/CruisePluginController.html +24 -24
  28. package/docs/classes/Magnifier.html +20 -20
  29. package/docs/classes/ModelRoomLabelController.html +11 -11
  30. package/docs/classes/Object3DHelperController.html +24 -24
  31. package/docs/classes/PaintBrush.html +15 -15
  32. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  33. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  34. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  35. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  36. package/docs/classes/PanoTagPluginController.html +223 -176
  37. package/docs/classes/Util.BetterTween.html +8 -8
  38. package/docs/classes/Util.FivePointSelector.html +12 -12
  39. package/docs/classes/Util.Interval.html +12 -12
  40. package/docs/classes/Util.Magnifier.html +17 -17
  41. package/docs/classes/Util.PointDomHelper.html +11 -11
  42. package/docs/classes/Util.PointHelper.html +11 -11
  43. package/docs/classes/Util.Rectangle.html +13 -13
  44. package/docs/enums/CameraMovementEffect.html +7 -7
  45. package/docs/enums/ContentType.html +75 -35
  46. package/docs/enums/DIRECTION.html +9 -9
  47. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  48. package/docs/enums/DimensionType.html +19 -15
  49. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  50. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  51. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  52. package/docs/enums/PointType.html +19 -15
  53. package/docs/enums/Rotation.html +8 -8
  54. package/docs/functions/CSS3DRenderPlugin.html +39 -13
  55. package/docs/functions/CameraMovementPlugin.html +39 -13
  56. package/docs/functions/CruisePlugin.html +39 -13
  57. package/docs/functions/GuideLinePlugin.html +40 -14
  58. package/docs/functions/ItemLabelPlugin.html +39 -13
  59. package/docs/functions/MapviewFloorplanPlugin.html +39 -13
  60. package/docs/functions/ModelChassisCompassPlugin.html +39 -13
  61. package/docs/functions/ModelEntryDoorGuidePlugin.html +39 -13
  62. package/docs/functions/ModelFloorplanPlugin.html +39 -13
  63. package/docs/functions/ModelItemLabelPlugin.html +39 -13
  64. package/docs/functions/ModelRoomLabelPlugin.html +39 -13
  65. package/docs/functions/ModelTVVideoPlugin.html +39 -13
  66. package/docs/functions/ModelViewPlugin.html +39 -13
  67. package/docs/functions/Object3DHelperPlugin.html +39 -13
  68. package/docs/functions/PanoCompassPlugin.html +39 -13
  69. package/docs/functions/PanoCursorRaycasterPlugin.html +39 -13
  70. package/docs/functions/PanoDoorLabelPlugin.html +39 -13
  71. package/docs/functions/PanoFloorplanRadarPlugin.html +39 -13
  72. package/docs/functions/PanoMeasurePlugin.html +39 -13
  73. package/docs/functions/PanoRulerPlugin.html +39 -13
  74. package/docs/functions/PanoRulerProPlugin.html +39 -13
  75. package/docs/functions/PanoSpatialTagPlugin.html +39 -13
  76. package/docs/functions/PanoTagPlugin.html +45 -23
  77. package/docs/functions/TopviewFloorplanPlugin.html +39 -13
  78. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  79. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  80. package/docs/functions/Util.getFrameTime.html +5 -5
  81. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  82. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  83. package/docs/functions/Util.isNil.html +5 -5
  84. package/docs/functions/Util.nextFrame.html +5 -5
  85. package/docs/functions/Util.notNil.html +5 -5
  86. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  87. package/docs/functions/Util.tweenProgress.html +5 -5
  88. package/docs/functions/pluginFlag.html +40 -14
  89. package/docs/index.html +39 -13
  90. package/docs/interfaces/AddTagConfig.html +64 -0
  91. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  92. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  93. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  94. package/docs/interfaces/EventMap.html +298 -0
  95. package/docs/interfaces/FloorplanBounding.html +8 -8
  96. package/docs/interfaces/FloorplanData.html +10 -10
  97. package/docs/interfaces/FloorplanEntrance.html +11 -11
  98. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  99. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  100. package/docs/interfaces/FloorplanFloorData.html +9 -9
  101. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  102. package/docs/interfaces/FloorplanObserver.html +9 -9
  103. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  104. package/docs/interfaces/FloorplanPosition.html +7 -7
  105. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  106. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  107. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  108. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  109. package/docs/interfaces/FloorplanServerData.html +7 -7
  110. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  111. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  112. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  113. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  114. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  115. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  116. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  117. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  118. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  119. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  120. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  121. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  122. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  123. package/docs/interfaces/MinMax.html +71 -0
  124. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  125. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  126. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  127. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  128. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  129. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  130. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  131. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  132. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  133. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  134. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  135. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  136. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  137. package/docs/interfaces/Object3DHelperState.html +8 -8
  138. package/docs/interfaces/PaintBrushAction.html +12 -12
  139. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  140. package/docs/interfaces/PaintBrushState.html +10 -10
  141. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  142. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +40 -14
  143. package/docs/interfaces/PanoMeasureParameterType.html +12 -12
  144. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  145. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  146. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  147. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  148. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  149. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  150. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  151. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  152. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  153. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  154. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  155. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +40 -14
  156. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +40 -14
  157. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  158. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  159. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  160. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  161. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  162. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  163. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  164. package/docs/interfaces/Point.html +8 -8
  165. package/docs/interfaces/Room.html +9 -9
  166. package/docs/interfaces/RoomInfo.html +7 -7
  167. package/docs/interfaces/RoomLabel.html +14 -14
  168. package/docs/interfaces/RoomRules.html +40 -14
  169. package/docs/interfaces/Rooms.html +40 -14
  170. package/docs/interfaces/Scissor.html +9 -9
  171. package/docs/interfaces/State.html +89 -0
  172. package/docs/interfaces/TagCache.html +92 -0
  173. package/docs/interfaces/TagConfig.html +15 -19
  174. package/docs/interfaces/TagIconUrl.html +91 -0
  175. package/docs/interfaces/Tags.html +14 -12
  176. package/docs/interfaces/TemporaryState.html +64 -0
  177. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  178. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  179. package/docs/modules/Util.html +5 -5
  180. package/docs/modules.html +73 -21
  181. package/docs/types/ArrayPosition.html +41 -15
  182. package/docs/types/AudioAppearance.html +256 -0
  183. package/docs/types/AudioTagTypeConfigKey.html +256 -0
  184. package/docs/types/CSS3DRenderExportType.html +40 -14
  185. package/docs/types/CSS3DRenderPluginExportType.html +40 -14
  186. package/docs/types/CSS3DRenderPluginParameterType.html +40 -14
  187. package/docs/types/Color.html +40 -14
  188. package/docs/types/ContentTypeConfigKey.html +41 -15
  189. package/docs/types/ContentTypeConfigKeySplit.html +256 -0
  190. package/docs/types/ContentTypeMap.html +256 -0
  191. package/docs/types/Create3DDomContainerReturnType.html +40 -14
  192. package/docs/types/Create3DElementReturnType.html +40 -14
  193. package/docs/types/CruisePluginExportType.html +40 -14
  194. package/docs/types/Direction-1.html +40 -14
  195. package/docs/types/Direction4.html +40 -14
  196. package/docs/types/FloorplanRuleLabels.html +40 -14
  197. package/docs/types/FloorplanServerRuleLabels.html +40 -14
  198. package/docs/types/GuideLinePluginExportType.html +40 -14
  199. package/docs/types/HelperEventMap.html +40 -14
  200. package/docs/types/LoadTagConfig.html +256 -0
  201. package/docs/types/MapviewFloorplanPluginParameterType.html +40 -14
  202. package/docs/types/MapviewFloorplanPluginReturnType.html +40 -14
  203. package/docs/types/MediaData.html +40 -14
  204. package/docs/types/MediaStore.html +256 -0
  205. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +40 -14
  206. package/docs/types/ModelFloorplanPluginParameterType.html +40 -14
  207. package/docs/types/ModelFloorplanPluginReturnType.html +40 -14
  208. package/docs/types/ModelRoomLabelPluginParameters.html +40 -14
  209. package/docs/types/ModelRoomLabelPluginReturnType.html +40 -14
  210. package/docs/types/MoveArgs.html +40 -14
  211. package/docs/types/MoveOpts.html +40 -14
  212. package/docs/types/Object3DHelperEventMap.html +40 -14
  213. package/docs/types/ObjectFit.html +40 -14
  214. package/docs/types/PaintBrushEventMap.html +40 -14
  215. package/docs/types/PanoCompassPluginData.html +40 -14
  216. package/docs/types/PanoCompassPluginExportType.html +40 -14
  217. package/docs/types/PanoCompassPluginParameterType.html +40 -14
  218. package/docs/types/PanoFloorplanRadarPluginParameterType.html +40 -14
  219. package/docs/types/PanoFloorplanRadarPluginReturnType.html +40 -14
  220. package/docs/types/PanoIndex.html +256 -0
  221. package/docs/types/PanoMeasurePluginEvent.html +40 -14
  222. package/docs/types/PanoMeasureReturnType.html +40 -14
  223. package/docs/types/PanoSpatialTagPluginId.html +40 -14
  224. package/docs/types/PanoTagPluginExportInterface.html +40 -14
  225. package/docs/types/PanoTagPluginParamsInterface.html +40 -14
  226. package/docs/types/PlaneTag.html +43 -19
  227. package/docs/types/PlaneTagElement.html +261 -0
  228. package/docs/types/Point2DElement.html +261 -0
  229. package/docs/types/Point2DTag.html +263 -0
  230. package/docs/types/Point3DElement.html +261 -0
  231. package/docs/types/Point3DTag.html +263 -0
  232. package/docs/types/PointTag.html +43 -23
  233. package/docs/types/PointTagElement.html +261 -0
  234. package/docs/types/Position.html +40 -14
  235. package/docs/types/RotateArgs.html +40 -14
  236. package/docs/types/RotateOpts.html +40 -14
  237. package/docs/types/RuleLabelsKey.html +40 -14
  238. package/docs/types/RuleLabelsValue.html +40 -14
  239. package/docs/types/StickType.html +256 -0
  240. package/docs/types/Tag.html +44 -22
  241. package/docs/types/Tag2D.html +45 -20
  242. package/docs/types/Tag3D.html +45 -20
  243. package/docs/types/TagContentType.html +256 -0
  244. package/docs/types/TagDimensionType.html +256 -0
  245. package/docs/types/TagElement.html +263 -0
  246. package/docs/types/TagEvents.html +291 -0
  247. package/docs/types/TagHooks.html +256 -0
  248. package/docs/types/TagIconSize.html +259 -0
  249. package/docs/types/TagId.html +40 -14
  250. package/docs/types/TagPointType.html +259 -0
  251. package/docs/types/TopviewFloorplanPluginParameterType.html +40 -14
  252. package/docs/types/TopviewFloorplanPluginReturnType.html +40 -14
  253. package/docs/types/{ContentTypeConfigKeyArray.html → WorkCode.html} +43 -17
  254. package/docs/variables/FLOOR_TYPE_MAP.html +40 -14
  255. package/docs/variables/PLUGIN.html +40 -14
  256. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +40 -14
  257. package/docs/variables/ROOM_TYPE_MAP.html +40 -14
  258. package/docs/variables/VERSION.html +40 -14
  259. package/docs/variables/itemLabelPluginServerParams.html +40 -14
  260. package/docs/variables/modelItemLabelPluginServerParams.html +40 -14
  261. package/docs/variables/modelRoomLabelPluginServerParams.html +40 -14
  262. package/libs/CSS3DRenderPlugin/CSS3DRender.js +1 -1
  263. package/libs/CSS3DRenderPlugin/Controller.js +2 -2
  264. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +1 -1
  265. package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +1 -1
  266. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +4 -4
  267. package/libs/CSS3DRenderPlugin/utils/index.js +12 -0
  268. package/libs/CSS3DRenderPlugin/utils/positionToVector3.d.ts +2 -2
  269. package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +4 -3
  270. package/libs/CSS3DRenderPlugin/utils/random.js +6 -1
  271. package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +3 -2
  272. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +2 -1
  273. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +6 -4
  274. package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +1 -1
  275. package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.js +6 -6
  276. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +13 -13
  277. package/libs/CruisePlugin/Controller.js +2 -2
  278. package/libs/CruisePlugin/utils/coordinatesAngle.js +3 -2
  279. package/libs/CruisePlugin/utils/linerValue.js +4 -4
  280. package/libs/GuideLinePlugin/Controller.js +1 -1
  281. package/libs/GuideLinePlugin/utils/getLineGeometries.js +1 -1
  282. package/libs/GuideLinePlugin/utils/getPoint.d.ts +3 -0
  283. package/libs/GuideLinePlugin/utils/getPoint.js +18 -0
  284. package/libs/Object3DHelperPlugin/Controller.js +38 -36
  285. package/libs/PanoMeasurePlugin/Controller/BaseController.js +18 -9
  286. package/libs/PanoMeasurePlugin/Controller/EditController.js +16 -5
  287. package/libs/PanoMeasurePlugin/Controller/MixedController.js +38 -19
  288. package/libs/PanoMeasurePlugin/Controller/ViewController.js +13 -5
  289. package/libs/PanoMeasurePlugin/Controller/WatchController.js +31 -20
  290. package/libs/PanoMeasurePlugin/Controller/index.js +54 -18
  291. package/libs/PanoMeasurePlugin/Model/index.js +41 -34
  292. package/libs/PanoMeasurePlugin/Model/line.js +9 -6
  293. package/libs/PanoMeasurePlugin/Model/point.js +3 -3
  294. package/libs/PanoMeasurePlugin/Model/polyline.js +19 -12
  295. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +1 -1
  296. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -1
  297. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -1
  298. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +4 -4
  299. package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +3 -3
  300. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +24 -24
  301. package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +2 -2
  302. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +1 -1
  303. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +16 -15
  304. package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +1 -1
  305. package/libs/PanoMeasurePlugin/Modules/UIController/style.js +24 -16
  306. package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +4 -3
  307. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +8 -5
  308. package/libs/PanoMeasurePlugin/index.js +16 -16
  309. package/libs/PanoMeasurePlugin/typings/data.js +1 -0
  310. package/libs/PanoMeasurePlugin/typings/event.type.js +4 -0
  311. package/libs/PanoMeasurePlugin/typings/index.js +1 -0
  312. package/libs/PanoMeasurePlugin/typings/utils.type.d.ts +1 -0
  313. package/libs/PanoMeasurePlugin/typings/utils.type.js +1 -0
  314. package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -1
  315. package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +2 -0
  316. package/libs/PanoMeasurePlugin/utils/clearGroup.js +6 -0
  317. package/libs/PanoMeasurePlugin/utils/constants.js +15 -16
  318. package/libs/PanoMeasurePlugin/utils/distanceDom.js +1 -1
  319. package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +7 -6
  320. package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +3 -3
  321. package/libs/PanoMeasurePlugin/utils/line.js +1 -0
  322. package/libs/PanoMeasurePlugin/utils/math.js +2 -1
  323. package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +2 -2
  324. package/libs/PanoSpatialTagPlugin/Components/origins.js +3 -2
  325. package/libs/PanoSpatialTagPlugin/Components/tag.js +3 -2
  326. package/libs/PanoSpatialTagPlugin/Plugin.js +2 -2
  327. package/libs/PanoTagPlugin/Assets/Icon.d.ts +3 -2
  328. package/libs/PanoTagPlugin/Assets/Icon.js +4 -3
  329. package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
  330. package/libs/PanoTagPlugin/Components/Common/Audio.js +103 -140
  331. package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +198 -0
  332. package/libs/PanoTagPlugin/Components/Common/Icon/audioIcon.js +108 -0
  333. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +30 -30
  334. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +95 -59
  335. package/libs/PanoTagPlugin/Components/Common/Media.js +275 -249
  336. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +143 -79
  337. package/libs/PanoTagPlugin/Components/Common/Shadow.js +11 -10
  338. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +81 -0
  339. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +145 -0
  340. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +195 -0
  341. package/libs/PanoTagPlugin/Components/Common/Text/MText.js +166 -0
  342. package/libs/PanoTagPlugin/Components/Common/TextItem.js +106 -0
  343. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +172 -0
  344. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +223 -0
  345. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +123 -0
  346. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +22 -22
  347. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +126 -131
  348. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +75 -97
  349. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +166 -143
  350. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +75 -45
  351. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +130 -0
  352. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +134 -0
  353. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +115 -0
  354. package/libs/PanoTagPlugin/Components/Tag/index.js +264 -157
  355. package/libs/PanoTagPlugin/Components/TagContainer.js +164 -109
  356. package/libs/PanoTagPlugin/Components/TagItem.js +253 -0
  357. package/libs/PanoTagPlugin/controller/TagCacheController.d.ts +1 -2
  358. package/libs/PanoTagPlugin/controller/TagCacheController.js +3 -2
  359. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +19 -22
  360. package/libs/PanoTagPlugin/controller/TagComputer.js +186 -151
  361. package/libs/PanoTagPlugin/controller/index.d.ts +25 -14
  362. package/libs/PanoTagPlugin/controller/index.js +265 -170
  363. package/libs/PanoTagPlugin/index.d.ts +1 -1
  364. package/libs/PanoTagPlugin/index.js +51 -35
  365. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +4 -0
  366. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +6 -0
  367. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +93 -0
  368. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +5622 -0
  369. package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +1325 -0
  370. package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +173 -0
  371. package/libs/PanoTagPlugin/mocks/v1/mock1.js +122 -0
  372. package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +233 -0
  373. package/libs/PanoTagPlugin/mocks/v1/mock2.js +296 -0
  374. package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +22 -0
  375. package/libs/PanoTagPlugin/mocks/v1/mock3.js +32 -0
  376. package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +56 -0
  377. package/libs/PanoTagPlugin/mocks/v1/mock4.js +60 -0
  378. package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +13 -0
  379. package/libs/PanoTagPlugin/mocks/v1/mock5.js +17 -0
  380. package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +16 -0
  381. package/libs/PanoTagPlugin/mocks/v1/mock6.js +27 -0
  382. package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +22 -0
  383. package/libs/PanoTagPlugin/mocks/v1/mock7.js +228 -0
  384. package/libs/PanoTagPlugin/tag.config.js +31 -16
  385. package/libs/PanoTagPlugin/typings/controller.d.ts +23 -17
  386. package/libs/PanoTagPlugin/typings/index.d.ts +5 -1
  387. package/libs/PanoTagPlugin/typings/index.js +7 -1
  388. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +53 -0
  389. package/libs/PanoTagPlugin/typings/tag/Tag.js +4 -0
  390. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +88 -0
  391. package/libs/PanoTagPlugin/typings/tag/TagConfig.js +1 -0
  392. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +155 -0
  393. package/libs/PanoTagPlugin/typings/tag/TagData.js +4 -0
  394. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +53 -0
  395. package/libs/PanoTagPlugin/typings/tag/Utils.js +5 -0
  396. package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +1 -0
  397. package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +7 -1
  398. package/libs/PanoTagPlugin/utils/audio/SharedAudio.d.ts +16 -0
  399. package/libs/PanoTagPlugin/utils/audio/SharedAudio.js +107 -0
  400. package/libs/PanoTagPlugin/utils/color.d.ts +7 -0
  401. package/libs/PanoTagPlugin/utils/color.js +17 -0
  402. package/libs/PanoTagPlugin/utils/constants.js +2 -1
  403. package/libs/PanoTagPlugin/utils/doUtil.js +6 -6
  404. package/libs/PanoTagPlugin/utils/getImageInfo.d.ts +16 -0
  405. package/libs/PanoTagPlugin/utils/getImageInfo.js +51 -0
  406. package/libs/PanoTagPlugin/utils/index.js +36 -0
  407. package/libs/PanoTagPlugin/utils/px2rem.d.ts +1 -0
  408. package/libs/PanoTagPlugin/utils/px2rem.js +6 -0
  409. package/libs/PanoTagPlugin/utils/search.js +27 -9
  410. package/libs/PanoTagPlugin/utils/tag/format.d.ts +2 -0
  411. package/libs/PanoTagPlugin/utils/tag/format.js +18 -0
  412. package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +7 -0
  413. package/libs/PanoTagPlugin/utils/tag/tagCheck.js +26 -0
  414. package/libs/PanoTagPlugin/utils/tagPosition.js +2 -2
  415. package/libs/PanoTagPlugin/utils/timeToString.d.ts +1 -0
  416. package/libs/PanoTagPlugin/utils/timeToString.js +7 -0
  417. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
  418. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +10 -6
  419. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +20 -20
  420. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +83 -74
  421. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
  422. package/libs/index.js +126 -114
  423. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +29 -39
  424. package/libs/shared-utils/audio.d.ts +31 -0
  425. package/libs/shared-utils/audio.js +81 -0
  426. package/libs/vendor/svelte/internal/index.js +382 -338
  427. package/package.json +3 -3
  428. package/dist/PanoTagPlugin/typings/tag.d.ts +0 -247
  429. package/docs/enums/LinkType.html +0 -67
  430. package/docs/interfaces/ContentTypeMap.html +0 -212
  431. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +0 -170
  432. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +0 -50
  433. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +0 -50
  434. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +0 -166
  435. package/libs/PanoTagPlugin/Components/Common/Text.js +0 -130
  436. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +0 -131
  437. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +0 -122
  438. package/libs/PanoTagPlugin/Components/TagWrapper.js +0 -152
  439. package/libs/PanoTagPlugin/typings/tag.d.ts +0 -247
  440. package/libs/PanoTagPlugin/typings/tag.js +0 -7
@@ -1,7 +1,7 @@
1
- var O = Object.defineProperty;
1
+ var g = 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 ? O(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 ? g(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 ? O(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 l = (n) => {
14
+ var o = (l) => {
15
15
  try {
16
- d(e.next(n));
17
- } catch (h) {
18
- t(h);
16
+ h(e.next(l));
17
+ } catch (c) {
18
+ t(c);
19
19
  }
20
- }, c = (n) => {
20
+ }, m = (l) => {
21
21
  try {
22
- d(e.throw(n));
23
- } catch (h) {
24
- t(h);
22
+ h(e.throw(l));
23
+ } catch (c) {
24
+ t(c);
25
25
  }
26
- }, d = (n) => n.done ? r(n.value) : Promise.resolve(n.value).then(l, c);
27
- d((e = e.apply(i, s)).next());
26
+ }, h = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(o, m);
27
+ h((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 j } from "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
32
- import { RotateHelper as P } from "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
31
+ import { MoveHelper as P } from "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
32
+ import { RotateHelper as j } 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 { fiveModelLoaded as $ } from "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
42
- import { generateBehindFiveElement as W } from "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
41
+ import $ from "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
42
+ import 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 g = "v1.0.0", H = "Object3DHelperPlugin", C = `${H}@${g}`, _ = () => {
69
+ const O = "v1.0.0", H = "Object3DHelperPlugin", C = `${H}@${O}`, _ = () => {
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 je extends R {
76
+ class Pe extends R {
77
77
  constructor(e) {
78
78
  super(e);
79
- p(this, "version", g);
79
+ p(this, "version", O);
80
80
  p(this, "name", H);
81
81
  p(this, "state", {
82
82
  visible: !0,
@@ -128,33 +128,35 @@ class je extends R {
128
128
  }
129
129
  const t = new I();
130
130
  this.objectHelperMap.set(e, t);
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);
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);
134
134
  t.addControllers({ moveController: a.helperController });
135
135
  }
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 });
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 });
141
141
  }
142
- if (h && l) {
143
- const o = new y(e, l, c, this.five.scene), a = new v(this.five, B, e, o);
142
+ if (c && o) {
143
+ const n = new y(e, o, m, this.five.scene), a = new v(this.five, B, e, n);
144
144
  t.addControllers({ scaleController: a.helperController });
145
145
  }
146
146
  e.isCSS3DObjectPlus && $(this.five).then(() => {
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));
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
+ }
150
152
  });
151
153
  }
152
154
  removeObject3DHelper(e) {
153
155
  const r = this.objectHelperMap.get(e);
154
156
  if (!!r) {
155
157
  if (e.isCSS3DObjectPlus) {
156
- const t = e, l = this.css3DObjectParentMap.get(t);
157
- l == null || l.add(t), this.css3DRender.render(this.five.camera);
158
+ const t = e, o = this.css3DObjectParentMap.get(t);
159
+ o == null || o.add(t), this.css3DRender.render(this.five.camera);
158
160
  }
159
161
  this.objectHelperMap.delete(e), r.dispose();
160
162
  }
@@ -180,7 +182,7 @@ class je extends R {
180
182
  }
181
183
  }
182
184
  export {
183
- je as Object3DHelperController,
185
+ Pe as Object3DHelperController,
184
186
  C as PLUGIN,
185
- g as VERSION
187
+ O as VERSION
186
188
  };
@@ -1,10 +1,19 @@
1
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";
2
+ var l = (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) => (l(i, typeof e != "symbol" ? e + "" : e, o), o);
4
+ import u from "../Model/line.js";
5
+ import m from "../Model/point.js";
6
6
  import { preventDefault as r } from "../utils/ironbox.js";
7
- class L {
7
+ import "three";
8
+ import "../../shared-utils/uuid.js";
9
+ import "@realsee/five";
10
+ import "../utils/line.js";
11
+ import "@realsee/five/line";
12
+ import "../utils/constants.js";
13
+ import "../utils/distanceDom.js";
14
+ import "../utils/isNDCPointInScreen.js";
15
+ import "../../shared-utils/removeArrayItem.js";
16
+ class w {
8
17
  constructor(e) {
9
18
  t(this, "model");
10
19
  t(this, "five");
@@ -23,7 +32,7 @@ class L {
23
32
  this.dashed.distanceItem.update(this.five), this.model.getAllLines().forEach((e) => e.distanceItem.update(this.five));
24
33
  });
25
34
  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";
35
+ 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 u(new m([0, 0, 0]), new m([0, 0, 0]), this.model), this.dashed.distanceItem.setItemSelectable(!1), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine";
27
36
  const o = this.five.getElement();
28
37
  o && (o.addEventListener("touchstart", r), o.addEventListener("contextmenu", r));
29
38
  }
@@ -37,8 +46,8 @@ class L {
37
46
  if (this.mouseGroup.position.copy(n), o)
38
47
  this.mouseGroup.quaternion.copy(o.quaternion);
39
48
  else if (e.face) {
40
- const h = e.face.normal.clone().multiplyScalar(0.05), l = e.point.clone().add(h).clone().add(h);
41
- this.mouseGroup.lookAt(l);
49
+ const h = e.face.normal.clone().multiplyScalar(0.05), d = e.point.clone().add(h).clone().add(h);
50
+ this.mouseGroup.lookAt(d);
42
51
  }
43
52
  return this.mouseGroup;
44
53
  }
@@ -49,5 +58,5 @@ class L {
49
58
  }
50
59
  }
51
60
  export {
52
- L as BaseController
61
+ w as default
53
62
  };
@@ -3,13 +3,24 @@ var l = (h, n, e) => n in h ? d(h, n, { enumerable: !0, configurable: !0, writab
3
3
  var i = (h, n, e) => (l(h, typeof n != "symbol" ? n + "" : n, e), e);
4
4
  import m from "hammerjs";
5
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";
6
+ import f from "../Model/line.js";
7
+ import p from "../Model/point.js";
8
8
  import { throttle as v } from "../../shared-utils/throttle.js";
9
- import { BaseController as c } from "./BaseController.js";
9
+ import c from "./BaseController.js";
10
10
  import { getIntersectionFromEvent as r } from "../utils/getIntersectionFromEvent.js";
11
11
  import { Polyline as P } from "../Model/polyline.js";
12
- class w extends c {
12
+ import "three";
13
+ import "@realsee/five/line";
14
+ import "../utils/constants.js";
15
+ import "@realsee/five";
16
+ import "../../shared-utils/uuid.js";
17
+ import "../utils/line.js";
18
+ import "../utils/distanceDom.js";
19
+ import "../utils/isNDCPointInScreen.js";
20
+ import "../../shared-utils/removeArrayItem.js";
21
+ import "../utils/ironbox.js";
22
+ import "../utils/getPointFromHammerEvent.js";
23
+ class V extends c {
13
24
  constructor(e) {
14
25
  var s;
15
26
  super(e);
@@ -97,5 +108,5 @@ class w extends c {
97
108
  }
98
109
  }
99
110
  export {
100
- w as EditController
111
+ V as default
101
112
  };
@@ -2,16 +2,35 @@ var b = Object.defineProperty;
2
2
  var k = (h, s, e) => s in h ? b(h, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[s] = e;
3
3
  var t = (h, s, e) => (k(h, typeof s != "symbol" ? s + "" : s, e), e);
4
4
  import { Model as S } from "../Model/index.js";
5
- import { Line as y } from "../Model/line.js";
6
- import { BaseController as D } from "./BaseController.js";
7
- import { DeleteDom as T } from "../Modules/DeleteDom/index.js";
5
+ import y from "../Model/line.js";
6
+ import D from "./BaseController.js";
7
+ import T from "../Modules/DeleteDom/index.js";
8
8
  import { findAssociatedLines as M } from "../utils/findAssociatedLines.js";
9
9
  import { Vector2 as p } from "three";
10
- import { isNDCPointInScreen as C } from "../utils/isNDCPointInScreen.js";
10
+ import C from "../utils/isNDCPointInScreen.js";
11
11
  import { closestPointOnLine as G } from "../utils/math.js";
12
12
  import { Polyline as W } from "../Model/polyline.js";
13
- import { RangePieceController as N } from "../Modules/rangePiece/index.js";
14
- class O extends D {
13
+ import N from "../Modules/rangePiece/index.js";
14
+ import "@realsee/five/line";
15
+ import "../utils/constants.js";
16
+ import "@realsee/five";
17
+ import "../../shared-utils/uuid.js";
18
+ import "../utils/line.js";
19
+ import "../utils/distanceDom.js";
20
+ import "../Model/point.js";
21
+ import "../../shared-utils/removeArrayItem.js";
22
+ import "../utils/ironbox.js";
23
+ import "../Modules/DeleteDom/_Assets/delete.svg.js";
24
+ import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
25
+ import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
26
+ import "@tweenjs/tween.js";
27
+ import "../Modules/rangePiece/html.js";
28
+ import "../../shared-utils/animationFrame/index.js";
29
+ import "../../shared-utils/animationFrame/BetterTween.js";
30
+ import "../../shared-utils/noop.js";
31
+ import "../utils/calculateThreeMouse.js";
32
+ import "../utils/mouseGroup.js";
33
+ class le extends D {
15
34
  constructor(e) {
16
35
  super(e);
17
36
  t(this, "state", "watching");
@@ -32,22 +51,22 @@ class O extends D {
32
51
  const [i] = this.five.model.intersectRaycaster(e);
33
52
  if (!i)
34
53
  return;
35
- const n = this.five.camera, f = i.point.clone().project(n), r = this.container.clientWidth, l = this.container.clientHeight, m = new p(f.x * r, f.y * l), g = this.polyline.lines.map((o) => {
36
- const [a, L] = o.points, d = a.position.clone().project(n), c = L.position.clone().project(n);
54
+ const o = this.five.camera, m = i.point.clone().project(o), r = this.container.clientWidth, l = this.container.clientHeight, f = new p(m.x * r, m.y * l), g = this.polyline.lines.map((n) => {
55
+ const [a, L] = n.points, d = a.position.clone().project(o), c = L.position.clone().project(o);
37
56
  if (!C(d) && !C(c))
38
57
  return null;
39
58
  const v = new p(d.x * r, d.y * l), w = new p(c.x * r, c.y * l);
40
- return { id: o.id, points: [v, w] };
41
- }).filter((o) => !!o);
59
+ return { id: n.id, points: [v, w] };
60
+ }).filter((n) => !!n);
42
61
  if (g.length === 0)
43
62
  return;
44
- const u = g.map((o) => {
45
- const a = G(m, o.points);
46
- return { id: o.id, distance: a.distanceTo(m) };
47
- }).sort((o, a) => o.distance - a.distance)[0];
63
+ const u = g.map((n) => {
64
+ const a = G(f, n.points);
65
+ return { id: n.id, distance: a.distanceTo(f) };
66
+ }).sort((n, a) => n.distance - a.distance)[0];
48
67
  if (u.distance > 20)
49
68
  return;
50
- const P = this.polyline.lines.find(({ id: o }) => o === u.id);
69
+ const P = this.polyline.lines.find(({ id: n }) => n === u.id);
51
70
  if (!!P)
52
71
  return this.chooseLine(P), !1;
53
72
  });
@@ -67,8 +86,8 @@ class O extends D {
67
86
  t(this, "onGetEndPoint", (e) => {
68
87
  const i = this.mobileNowPoint;
69
88
  if (this.removeLine(this.dashed), this.hasAppendDashed = !1, this.mobileStartPoint && i) {
70
- const n = new y(this.mobileStartPoint, i, this.model);
71
- n.distanceItem.appendTo(this.container), n.distanceItem.update(this.five), n.hook.on("selected", this.chooseLine), this.disposers.push(() => n.hook.off("selected", this.chooseLine)), this.group.add(n.mesh), this.polyline.addLine(n);
89
+ const o = new y(this.mobileStartPoint, i, this.model);
90
+ o.distanceItem.appendTo(this.container), o.distanceItem.update(this.five), o.hook.on("selected", this.chooseLine), this.disposers.push(() => o.hook.off("selected", this.chooseLine)), this.group.add(o.mesh), this.polyline.addLine(o);
72
91
  }
73
92
  this.mobileStartPoint = null, this.mobileNowPoint = null, this.five.needsRender = !0;
74
93
  });
@@ -86,7 +105,7 @@ class O extends D {
86
105
  const i = M(e);
87
106
  this.highlightLines(i), this.five.needsRender = !0, this.hook.emit(
88
107
  "selectedChange",
89
- i.map((n) => n)
108
+ i.map((o) => o)
90
109
  );
91
110
  });
92
111
  t(this, "deleteDomClickCallback", () => {
@@ -123,5 +142,5 @@ class O extends D {
123
142
  }
124
143
  }
125
144
  export {
126
- O as MixedController
145
+ le as default
127
146
  };
@@ -1,13 +1,21 @@
1
1
  var d = Object.defineProperty;
2
- var r = (n, o, i) => o in n ? d(n, o, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[o] = i;
3
- var s = (n, o, i) => (r(n, typeof o != "symbol" ? o + "" : o, i), i);
2
+ var n = (r, o, i) => o in r ? d(r, o, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[o] = i;
3
+ var s = (r, o, i) => (n(r, typeof o != "symbol" ? o + "" : o, i), i);
4
4
  import a from "hammerjs";
5
5
  import "three";
6
6
  import "@realsee/five/line";
7
7
  import "../utils/constants.js";
8
8
  import "@realsee/five";
9
- import { BaseController as h } from "./BaseController.js";
10
- class A extends h {
9
+ import h from "./BaseController.js";
10
+ import "../Model/line.js";
11
+ import "../../shared-utils/uuid.js";
12
+ import "../utils/line.js";
13
+ import "../utils/distanceDom.js";
14
+ import "../utils/isNDCPointInScreen.js";
15
+ import "../Model/point.js";
16
+ import "../../shared-utils/removeArrayItem.js";
17
+ import "../utils/ironbox.js";
18
+ class U extends h {
11
19
  constructor(i) {
12
20
  super(i);
13
21
  s(this, "type", "view");
@@ -56,5 +64,5 @@ class A extends h {
56
64
  }
57
65
  }
58
66
  export {
59
- A as ViewController
67
+ U as default
60
68
  };
@@ -2,9 +2,9 @@ var k = Object.defineProperty;
2
2
  var w = (r, h, e) => h in r ? k(r, h, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[h] = e;
3
3
  var s = (r, h, e) => (w(r, typeof h != "symbol" ? h + "" : h, e), e);
4
4
  import E from "hammerjs";
5
- import { DeleteDom as G } from "../Modules/DeleteDom/index.js";
6
- import { isNDCPointInScreen as P } from "../utils/isNDCPointInScreen.js";
7
- import { BaseController as R } from "./BaseController.js";
5
+ import G from "../Modules/DeleteDom/index.js";
6
+ import P from "../utils/isNDCPointInScreen.js";
7
+ import R from "./BaseController.js";
8
8
  import { Raycaster as I, Vector2 as f } from "three";
9
9
  import { closestPointOnLine as A } from "../utils/math.js";
10
10
  import { findClosestPoint as T } from "../utils/findClosestPoint.js";
@@ -13,7 +13,18 @@ import { getPointFromHammerEvent as S } from "../utils/getPointFromHammerEvent.j
13
13
  import "@realsee/five/line";
14
14
  import "../utils/constants.js";
15
15
  import "@realsee/five";
16
- class J extends R {
16
+ import "../Modules/DeleteDom/_Assets/delete.svg.js";
17
+ import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
18
+ import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
19
+ import "../Model/line.js";
20
+ import "../../shared-utils/uuid.js";
21
+ import "../utils/line.js";
22
+ import "../utils/distanceDom.js";
23
+ import "../Model/point.js";
24
+ import "../../shared-utils/removeArrayItem.js";
25
+ import "../utils/ironbox.js";
26
+ import "../utils/ndc2Screen.js";
27
+ class se extends R {
17
28
  constructor(e) {
18
29
  super(e);
19
30
  s(this, "type", "watch");
@@ -31,14 +42,14 @@ class J extends R {
31
42
  this.editPointState = void 0;
32
43
  return;
33
44
  }
34
- const n = {
45
+ const o = {
35
46
  point: t,
36
47
  associatedLines: v(t.lines[0])
37
48
  };
38
49
  this.hook.emit("wantsDragLine", {
39
50
  point: t.id,
40
- lines: n.associatedLines.map(({ id: d }) => d)
41
- }) || (this.editPointState = n, this.magnifier.appendTo(this.container), this.magnifier.enable(), this.group.add(this.mouseGroup));
51
+ lines: o.associatedLines.map(({ id: d }) => d)
52
+ }) || (this.editPointState = o, this.magnifier.appendTo(this.container), this.magnifier.enable(), this.group.add(this.mouseGroup));
42
53
  });
43
54
  s(this, "onPanEnd", () => {
44
55
  !this.editPointState || (this.editPointState.point.lines.forEach((e) => e.mesh.setMaterial({ dashed: !1 })), this.highlightLines(this.editPointState.associatedLines), this.editPointState = void 0, this.magnifier.disable(), this.group.remove(this.mouseGroup));
@@ -48,8 +59,8 @@ class J extends R {
48
59
  return;
49
60
  const i = S(e).ndcPoint, t = new I();
50
61
  t.setFromCamera(i, this.five.camera);
51
- const [n] = this.five.model.intersectRaycaster(t);
52
- !n || this.onIntersectionUpdate(n);
62
+ const [o] = this.five.model.intersectRaycaster(t);
63
+ !o || this.onIntersectionUpdate(o);
53
64
  });
54
65
  s(this, "onIntersectionUpdate", (e, i) => {
55
66
  if (!!this.editPointState) {
@@ -58,7 +69,7 @@ class J extends R {
58
69
  }), this.updateDistanceUI(), this.magnifier.renderWithPoint(e.point), this.mouseGroup.position.copy(e.point), i)
59
70
  this.mouseGroup.quaternion.copy(i.quaternion);
60
71
  else if (e.face) {
61
- const n = e.face.normal.clone().multiplyScalar(0.05), a = e.point.clone().add(n).clone().add(n);
72
+ const o = e.face.normal.clone().multiplyScalar(0.05), a = e.point.clone().add(o).clone().add(o);
62
73
  this.mouseGroup.lookAt(a);
63
74
  }
64
75
  this.five.needsRender = !0, this.hook.emit(
@@ -75,22 +86,22 @@ class J extends R {
75
86
  const [i] = this.five.model.intersectRaycaster(e);
76
87
  if (!i)
77
88
  return;
78
- const t = this.five.camera, n = i.point.clone().project(t), c = this.container.clientWidth, a = this.container.clientHeight, d = new f(n.x * c, n.y * a), g = this.model.getAllLines().map((o) => {
79
- const [l, y] = o.points, m = l.position.clone().project(t), p = y.position.clone().project(t);
89
+ const t = this.five.camera, o = i.point.clone().project(t), c = this.container.clientWidth, a = this.container.clientHeight, d = new f(o.x * c, o.y * a), g = this.model.getAllLines().map((n) => {
90
+ const [l, y] = n.points, m = l.position.clone().project(t), p = y.position.clone().project(t);
80
91
  if (!P(m) && !P(p))
81
92
  return null;
82
93
  const C = new f(m.x * c, m.y * a), D = new f(p.x * c, p.y * a);
83
- return { id: o.id, points: [C, D] };
84
- }).filter((o) => !!o);
94
+ return { id: n.id, points: [C, D] };
95
+ }).filter((n) => !!n);
85
96
  if (g.length === 0)
86
97
  return;
87
- const u = g.map((o) => {
88
- const l = A(d, o.points);
89
- return { id: o.id, distance: l.distanceTo(d) };
90
- }).sort((o, l) => o.distance - l.distance)[0];
98
+ const u = g.map((n) => {
99
+ const l = A(d, n.points);
100
+ return { id: n.id, distance: l.distanceTo(d) };
101
+ }).sort((n, l) => n.distance - l.distance)[0];
91
102
  if (u.distance > 20)
92
103
  return;
93
- const L = this.model.getAllLines().find(({ id: o }) => o === u.id);
104
+ const L = this.model.getAllLines().find(({ id: n }) => n === u.id);
94
105
  if (!!L)
95
106
  return this.chooseLine(L), !1;
96
107
  });
@@ -148,5 +159,5 @@ class J extends R {
148
159
  }
149
160
  }
150
161
  export {
151
- J as WatchController
162
+ se as default
152
163
  };
@@ -1,21 +1,21 @@
1
1
  var y = Object.defineProperty;
2
- var p = Object.getOwnPropertySymbols;
2
+ var d = Object.getOwnPropertySymbols;
3
3
  var M = Object.prototype.hasOwnProperty, P = Object.prototype.propertyIsEnumerable;
4
- var c = (s, e, t) => e in s ? y(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, n = (s, e) => {
4
+ var m = (s, e, t) => e in s ? y(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, n = (s, e) => {
5
5
  for (var t in e || (e = {}))
6
- M.call(e, t) && c(s, t, e[t]);
7
- if (p)
8
- for (var t of p(e))
9
- P.call(e, t) && c(s, t, e[t]);
6
+ M.call(e, t) && m(s, t, e[t]);
7
+ if (d)
8
+ for (var t of d(e))
9
+ P.call(e, t) && m(s, t, e[t]);
10
10
  return s;
11
11
  };
12
- var i = (s, e, t) => (c(s, typeof e != "symbol" ? e + "" : e, t), t);
13
- import { Magnifier as v } from "../Modules/Magnifier.js";
14
- import { FiveHelper as w } from "../Modules/FiveHelper.js";
15
- import { EditController as h } from "./EditController.js";
16
- import { ViewController as f } from "./ViewController.js";
17
- import { WatchController as g } from "./WatchController.js";
18
- import { MixedController as l } from "./MixedController.js";
12
+ var i = (s, e, t) => (m(s, typeof e != "symbol" ? e + "" : e, t), t);
13
+ import v from "../Modules/Magnifier.js";
14
+ import w from "../Modules/FiveHelper.js";
15
+ import h from "./EditController.js";
16
+ import f from "./ViewController.js";
17
+ import g from "./WatchController.js";
18
+ import l from "./MixedController.js";
19
19
  import { omit as I } from "../../shared-utils/filter.js";
20
20
  import { Group as b } from "three";
21
21
  import { Model as U } from "../Model/index.js";
@@ -26,7 +26,43 @@ import { GuideController as B } from "../Modules/GuideController.js";
26
26
  import { ShortcutKeyController as k } from "./ShortcutKeyController.js";
27
27
  import "@realsee/five/line";
28
28
  import "../utils/constants.js";
29
- class N {
29
+ import "hammerjs";
30
+ import "../Model/line.js";
31
+ import "../../shared-utils/uuid.js";
32
+ import "../utils/line.js";
33
+ import "../utils/distanceDom.js";
34
+ import "../utils/isNDCPointInScreen.js";
35
+ import "../Model/point.js";
36
+ import "../../shared-utils/removeArrayItem.js";
37
+ import "../../shared-utils/throttle.js";
38
+ import "./BaseController.js";
39
+ import "../utils/ironbox.js";
40
+ import "../utils/getIntersectionFromEvent.js";
41
+ import "../utils/getPointFromHammerEvent.js";
42
+ import "../Model/polyline.js";
43
+ import "../Modules/DeleteDom/index.js";
44
+ import "../Modules/DeleteDom/_Assets/delete.svg.js";
45
+ import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
46
+ import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
47
+ import "../utils/math.js";
48
+ import "../utils/findClosestPoint.js";
49
+ import "../utils/ndc2Screen.js";
50
+ import "../utils/findAssociatedLines.js";
51
+ import "../Modules/rangePiece/index.js";
52
+ import "@tweenjs/tween.js";
53
+ import "../Modules/rangePiece/html.js";
54
+ import "../../shared-utils/animationFrame/index.js";
55
+ import "../../shared-utils/animationFrame/BetterTween.js";
56
+ import "../../shared-utils/noop.js";
57
+ import "../utils/calculateThreeMouse.js";
58
+ import "../../shared-utils/tap.js";
59
+ import "../Modules/UIController/HTML.js";
60
+ import "../Modules/UIController/mobileHTML.js";
61
+ import "../Modules/UIController/style.js";
62
+ import "../Modules/UIController/MainBtnController.js";
63
+ import "../Modules/UIController/mobileMainBtnController.js";
64
+ import "../Modules/UIController/Revoke/index.js";
65
+ class ke {
30
66
  constructor(e, t) {
31
67
  i(this, "hasOpen", !1);
32
68
  i(this, "hook", new E());
@@ -60,9 +96,9 @@ class N {
60
96
  const r = this.createControllerParams();
61
97
  this.controller = new t[e](r), this.hook.emit("modeChange", e);
62
98
  });
63
- var o, u, m, d;
64
- this.five = e, this.params = t, this.config = I(t, ["openParams", "magnifierParams"]), this.model = new U(this.config), this.fiveHelper = new w(e), this.isMobile = (u = (o = t == null ? void 0 : t.openParams) == null ? void 0 : o.isMobile) != null ? u : !1, this.magnifier = new v(e, (m = t.magnifierParams) != null ? m : { width: 190, height: 190, scale: 2 }), this.group = new b(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0";
65
- const r = (d = this.params.openParams) != null ? d : {};
99
+ var o, p, c, u;
100
+ this.five = e, this.params = t, this.config = I(t, ["openParams", "magnifierParams"]), this.model = new U(this.config), this.fiveHelper = new w(e), this.isMobile = (p = (o = t == null ? void 0 : t.openParams) == null ? void 0 : o.isMobile) != null ? p : !1, this.magnifier = new v(e, (c = t.magnifierParams) != null ? c : { width: 190, height: 190, scale: 2 }), this.group = new b(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0";
101
+ const r = (u = this.params.openParams) != null ? u : {};
66
102
  if (this.params.useUIController !== !1) {
67
103
  const a = n({
68
104
  container: this.container,
@@ -180,5 +216,5 @@ class N {
180
216
  }
181
217
  }
182
218
  export {
183
- N as MeasureController
219
+ ke as default
184
220
  };