@realsee/dnalogel 2.20.5 → 2.21.0-dev.2

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 (452) hide show
  1. package/dist/GuideLinePlugin/Controller.d.ts +3 -5
  2. package/dist/GuideLinePlugin/GuideLineItem.d.ts +1 -1
  3. package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +0 -17
  4. package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -7
  5. package/dist/PanoMeasurePlugin/Components/Common/CircleButton.svelte.d.ts +1 -0
  6. package/dist/PanoMeasurePlugin/Components/Common/Exit.svelte.d.ts +1 -0
  7. package/dist/PanoMeasurePlugin/Components/Common/Switcher0.svelte.d.ts +1 -0
  8. package/dist/PanoMeasurePlugin/Components/Common/Switcher1.svelte.d.ts +1 -0
  9. package/dist/PanoMeasurePlugin/Components/Controller0.svelte.d.ts +1 -0
  10. package/dist/PanoMeasurePlugin/Components/Controller1.svelte.d.ts +1 -0
  11. package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +12 -4
  12. package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +13 -5
  13. package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +9 -2
  14. package/dist/PanoMeasurePlugin/Controller/index.d.ts +22 -9
  15. package/dist/PanoMeasurePlugin/Model/area.d.ts +62 -0
  16. package/dist/PanoMeasurePlugin/Model/index.d.ts +9 -0
  17. package/dist/PanoMeasurePlugin/Model/line.d.ts +4 -1
  18. package/dist/PanoMeasurePlugin/Model/polygon.d.ts +10 -0
  19. package/dist/PanoMeasurePlugin/Model/polyline.d.ts +4 -0
  20. package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +1 -1
  21. package/dist/PanoMeasurePlugin/Modules/FiveHelper.d.ts +2 -1
  22. package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
  23. package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +1 -1
  24. package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +5 -3
  25. package/dist/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +1 -1
  26. package/dist/PanoMeasurePlugin/typings/data.d.ts +23 -0
  27. package/dist/PanoMeasurePlugin/typings/event.type.d.ts +10 -3
  28. package/dist/PanoMeasurePlugin/typings/index.d.ts +1 -1
  29. package/dist/PanoMeasurePlugin/utils/dom/areaDom.d.ts +22 -0
  30. package/dist/PanoMeasurePlugin/utils/dom/base.d.ts +25 -0
  31. package/dist/PanoMeasurePlugin/utils/dom/distanceItem.d.ts +27 -0
  32. package/dist/PanoMeasurePlugin/utils/generatePolygonGeometry.d.ts +6 -0
  33. package/dist/PanoMeasurePlugin/utils/geometryUtil.d.ts +7 -0
  34. package/dist/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +1 -1
  35. package/dist/PanoMeasurePlugin/utils/isIntersecting.d.ts +15 -0
  36. package/dist/PanoMeasurePlugin/utils/line.d.ts +2 -1
  37. package/dist/index.cjs.js +64 -64
  38. package/dist/index.js +9427 -8244
  39. package/dist/index.umd.js +57 -57
  40. package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -7
  41. package/dist/shared-utils/isTouchDevice.d.ts +1 -0
  42. package/dist/shared-utils/safeObj.d.ts +1 -0
  43. package/dist/shared-utils/three/IObject3D.d.ts +7 -0
  44. package/dist/shared-utils/three/Magnifier.d.ts +3 -0
  45. package/dist/shared-utils/three/PointSelector.d.ts +32 -0
  46. package/dist/shared-utils/three/PointSelectorHelper.d.ts +50 -0
  47. package/dist/shared-utils/three/index.d.ts +1 -1
  48. package/docs/assets/search.js +1 -1
  49. package/docs/classes/CSS3DRender.html +32 -31
  50. package/docs/classes/CruisePluginController.html +27 -26
  51. package/docs/classes/GuideLineItem.GuideLineItem.html +21 -20
  52. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +33 -87
  53. package/docs/classes/Magnifier.html +21 -20
  54. package/docs/classes/ModelRoomLabelController.html +12 -11
  55. package/docs/classes/Object3DHelperController.html +26 -25
  56. package/docs/classes/PaintBrush.html +16 -15
  57. package/docs/classes/PanoMeasurePluginLine.html +52 -106
  58. package/docs/classes/PanoMeasurePluginModel.html +67 -24
  59. package/docs/classes/PanoMeasurePluginPoint.html +15 -14
  60. package/docs/classes/PanoMeasurePluginPolyline.html +39 -26
  61. package/docs/classes/PanoTagPluginController.html +48 -47
  62. package/docs/classes/Util.BetterTween.html +10 -9
  63. package/docs/classes/Util.Interval.html +13 -12
  64. package/docs/classes/Util.Magnifier.html +31 -17
  65. package/docs/classes/Util.PointDomHelper.html +12 -11
  66. package/docs/classes/Util.PointHelper.html +12 -11
  67. package/docs/classes/{Util.FivePointSelector.html → Util.PointSelectorHelper.html} +96 -26
  68. package/docs/classes/Util.Rectangle.html +14 -13
  69. package/docs/enums/CameraMovementEffect.html +8 -7
  70. package/docs/enums/ContentType.html +21 -20
  71. package/docs/enums/DIRECTION.html +10 -9
  72. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +10 -9
  73. package/docs/enums/DimensionType.html +8 -7
  74. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +9 -8
  75. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +10 -9
  76. package/docs/enums/PaintBrushTypeEnum.html +9 -8
  77. package/docs/enums/PointType.html +8 -7
  78. package/docs/enums/Rotation.html +9 -8
  79. package/docs/functions/CSS3DRenderPlugin.html +6 -5
  80. package/docs/functions/CameraMovementPlugin.html +6 -5
  81. package/docs/functions/CruisePlugin.html +6 -5
  82. package/docs/functions/GuideLinePlugin.html +6 -5
  83. package/docs/functions/ItemLabelPlugin.html +6 -5
  84. package/docs/functions/MapviewFloorplanPlugin.html +6 -5
  85. package/docs/functions/ModelChassisCompassPlugin.html +6 -5
  86. package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -5
  87. package/docs/functions/ModelFloorplanPlugin.html +6 -5
  88. package/docs/functions/ModelItemLabelPlugin.html +6 -5
  89. package/docs/functions/ModelRoomLabelPlugin.html +6 -5
  90. package/docs/functions/ModelTVVideoPlugin.html +6 -5
  91. package/docs/functions/ModelViewPlugin.html +6 -5
  92. package/docs/functions/Object3DHelperPlugin.html +6 -5
  93. package/docs/functions/PanoCompassPlugin.html +6 -5
  94. package/docs/functions/PanoCursorRaycasterPlugin.html +6 -5
  95. package/docs/functions/PanoDoorLabelPlugin.html +6 -5
  96. package/docs/functions/PanoFloorplanRadarPlugin.html +6 -5
  97. package/docs/functions/PanoMeasurePlugin.html +6 -5
  98. package/docs/functions/PanoRulerPlugin.html +6 -5
  99. package/docs/functions/PanoRulerProPlugin.html +6 -5
  100. package/docs/functions/PanoSpatialTagPlugin.html +6 -5
  101. package/docs/functions/PanoTagPlugin.html +6 -5
  102. package/docs/functions/PanoVideoPlugin.html +6 -5
  103. package/docs/functions/TopviewFloorplanPlugin.html +6 -5
  104. package/docs/functions/Util.getCoordsFromClient.html +6 -5
  105. package/docs/functions/Util.getCoordsFromElement.html +6 -5
  106. package/docs/functions/Util.getFrameTime.html +6 -5
  107. package/docs/functions/Util.getIntersectFromRelativePosition.html +6 -5
  108. package/docs/functions/Util.getRaycasterFromFivePointer.html +6 -5
  109. package/docs/functions/Util.isAbsoluteURL.html +6 -5
  110. package/docs/functions/Util.isModelLike.html +6 -5
  111. package/docs/functions/Util.isNil.html +6 -5
  112. package/docs/functions/Util.isPanoramaLike.html +6 -5
  113. package/docs/functions/Util.nextFrame.html +6 -5
  114. package/docs/functions/Util.notNil.html +6 -5
  115. package/docs/functions/Util.requestAnimationFrameInterval.html +6 -5
  116. package/docs/functions/Util.tweenProgress.html +6 -5
  117. package/docs/functions/Util.uuid.html +6 -5
  118. package/docs/functions/pluginFlag.html +6 -5
  119. package/docs/index.html +6 -5
  120. package/docs/interfaces/AddTagConfig.html +7 -6
  121. package/docs/interfaces/CSS3DRenderPluginEventMap.html +12 -11
  122. package/docs/interfaces/CSS3DRenderPluginState.html +9 -8
  123. package/docs/interfaces/CameraMovementPluginExportType.html +8 -7
  124. package/docs/interfaces/CruisePluginTypes.Config.html +9 -8
  125. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +13 -12
  126. package/docs/interfaces/CruisePluginTypes.EventMap.html +21 -20
  127. package/docs/interfaces/CruisePluginTypes.MoveAction.html +13 -12
  128. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +15 -14
  129. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +15 -14
  130. package/docs/interfaces/CruisePluginTypes.PluginData.html +10 -9
  131. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +8 -7
  132. package/docs/interfaces/CruisePluginTypes.PluginState.html +12 -11
  133. package/docs/interfaces/EventMap.html +16 -15
  134. package/docs/interfaces/FloorplanBounding.html +9 -8
  135. package/docs/interfaces/FloorplanData.html +11 -10
  136. package/docs/interfaces/FloorplanEntrance.html +12 -11
  137. package/docs/interfaces/FloorplanExtraObject.html +11 -10
  138. package/docs/interfaces/FloorplanExtraObject3D.html +9 -8
  139. package/docs/interfaces/FloorplanFloorData.html +10 -9
  140. package/docs/interfaces/FloorplanImagePosition.html +8 -7
  141. package/docs/interfaces/FloorplanObserver.html +10 -9
  142. package/docs/interfaces/FloorplanOutlineItem.html +10 -9
  143. package/docs/interfaces/FloorplanPosition.html +8 -7
  144. package/docs/interfaces/FloorplanRoomItem.html +14 -13
  145. package/docs/interfaces/FloorplanRoomLabelItem.html +8 -7
  146. package/docs/interfaces/FloorplanServerBounding.html +9 -8
  147. package/docs/interfaces/FloorplanServerComputedData.html +11 -10
  148. package/docs/interfaces/FloorplanServerData.html +8 -7
  149. package/docs/interfaces/FloorplanServerDoorItem.html +11 -10
  150. package/docs/interfaces/FloorplanServerDoorPosition.html +9 -8
  151. package/docs/interfaces/FloorplanServerEntrance.html +12 -11
  152. package/docs/interfaces/FloorplanServerFloorData.html +10 -9
  153. package/docs/interfaces/FloorplanServerImagePosition.html +8 -7
  154. package/docs/interfaces/FloorplanServerObserver.html +10 -9
  155. package/docs/interfaces/FloorplanServerOutlineItem.html +10 -9
  156. package/docs/interfaces/FloorplanServerPosition.html +8 -7
  157. package/docs/interfaces/FloorplanServerRoomItem.html +15 -14
  158. package/docs/interfaces/FloorplanServerRoomLabelItem.html +8 -7
  159. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +9 -8
  160. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +11 -10
  161. package/docs/interfaces/GuideLinePluginType.EventMap.html +14 -13
  162. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +9 -8
  163. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +7 -6
  164. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +14 -13
  165. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +9 -8
  166. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +19 -18
  167. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +8 -7
  168. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +19 -18
  169. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +6 -5
  170. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +8 -7
  171. package/docs/interfaces/GuideLinePluginType.PluginState.html +9 -8
  172. package/docs/interfaces/GuideLinePluginType.Route.html +12 -11
  173. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +10 -9
  174. package/docs/interfaces/HelperOffset.html +9 -8
  175. package/docs/interfaces/ImagePlaneGroup.html +7 -6
  176. package/docs/interfaces/ItemLabelPluginData.html +7 -6
  177. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +12 -11
  178. package/docs/interfaces/ItemLabelPluginParametersType.html +10 -9
  179. package/docs/interfaces/MinMax.html +8 -7
  180. package/docs/interfaces/ModelChassisCompassPluginData.html +8 -7
  181. package/docs/interfaces/ModelChassisCompassPluginExportType.html +9 -8
  182. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +8 -7
  183. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +9 -8
  184. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +9 -8
  185. package/docs/interfaces/ModelItemLabelPluginData.html +7 -6
  186. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +12 -11
  187. package/docs/interfaces/ModelItemLabelPluginParametersType.html +8 -7
  188. package/docs/interfaces/ModelRoomLabelPluginData.html +7 -6
  189. package/docs/interfaces/ModelTVVideoPluginData.html +10 -9
  190. package/docs/interfaces/ModelTVVideoPluginExportType.html +9 -8
  191. package/docs/interfaces/ModelTVVideoPluginParameterType.html +7 -6
  192. package/docs/interfaces/ModelViewPluginExportType.html +12 -11
  193. package/docs/interfaces/Object3DHelperState.html +9 -8
  194. package/docs/interfaces/ObjectHelperControllers.html +10 -9
  195. package/docs/interfaces/PaintBrushAction.html +13 -12
  196. package/docs/interfaces/PaintBrushConfigs.html +13 -12
  197. package/docs/interfaces/PaintBrushState.html +11 -10
  198. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +11 -10
  199. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -5
  200. package/docs/interfaces/PanoMeasureParameterType.html +23 -15
  201. package/docs/interfaces/PanoMeasurePluginLineJson.html +9 -8
  202. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +8 -7
  203. package/docs/interfaces/PanoMeasurePluginPointJson.html +8 -7
  204. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +9 -8
  205. package/docs/interfaces/PanoRulerPluginExportType.html +11 -10
  206. package/docs/interfaces/PanoRulerPluginOptions.html +8 -7
  207. package/docs/interfaces/PanoRulerPluginParameterType.html +9 -8
  208. package/docs/interfaces/PanoRulerProPluginExportType.html +10 -9
  209. package/docs/interfaces/PanoRulerProPluginOptions.html +8 -7
  210. package/docs/interfaces/PanoRulerProPluginParameterType.html +8 -7
  211. package/docs/interfaces/PanoRulerProPluginState.html +9 -8
  212. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -5
  213. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -5
  214. package/docs/interfaces/PanoSpatialTagPluginData.html +12 -11
  215. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +11 -10
  216. package/docs/interfaces/PanoSpatialTagPluginExportType.html +14 -13
  217. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +11 -10
  218. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +14 -13
  219. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +12 -11
  220. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +11 -10
  221. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +7 -6
  222. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +9 -8
  223. package/docs/interfaces/PanoVideoPluginType.PluginData.html +7 -6
  224. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +10 -9
  225. package/docs/interfaces/PanoVideoPluginType.PluginState.html +7 -6
  226. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +9 -8
  227. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +11 -10
  228. package/docs/interfaces/Point.html +9 -8
  229. package/docs/interfaces/Room.html +10 -9
  230. package/docs/interfaces/RoomInfo.html +8 -7
  231. package/docs/interfaces/RoomLabel.html +15 -14
  232. package/docs/interfaces/RoomRules.html +6 -5
  233. package/docs/interfaces/Rooms.html +6 -5
  234. package/docs/interfaces/Scissor.html +10 -9
  235. package/docs/interfaces/State.html +9 -8
  236. package/docs/interfaces/TagCacheInterface.html +13 -12
  237. package/docs/interfaces/TagConfig.html +14 -13
  238. package/docs/interfaces/TagGLTFObjectGroup.html +7 -6
  239. package/docs/interfaces/TagIconUrl.html +13 -12
  240. package/docs/interfaces/TagObjectGroup.html +7 -6
  241. package/docs/interfaces/TagStyle.html +7 -6
  242. package/docs/interfaces/Tags.html +10 -9
  243. package/docs/interfaces/TemporaryState.html +7 -6
  244. package/docs/interfaces/Util.MagnifierParameter.html +12 -11
  245. package/docs/interfaces/Util.MouseGroupParameter.html +9 -8
  246. package/docs/interfaces/Util.PointIntersection.html +407 -0
  247. package/docs/modules/CruisePluginTypes.html +6 -5
  248. package/docs/modules/GuideLineItem.html +6 -5
  249. package/docs/modules/GuideLineModeItem.html +6 -5
  250. package/docs/modules/GuideLinePluginType.html +6 -5
  251. package/docs/modules/PanoVideoPluginType.html +6 -5
  252. package/docs/modules/Util.html +8 -6
  253. package/docs/modules.html +6 -5
  254. package/docs/types/ArrayPosition.html +6 -5
  255. package/docs/types/AudioAppearance.html +6 -5
  256. package/docs/types/AudioTagTypeConfigKey.html +6 -5
  257. package/docs/types/CSS3DRenderExportType.html +6 -5
  258. package/docs/types/CSS3DRenderPluginExportType.html +6 -5
  259. package/docs/types/CSS3DRenderPluginParameterType.html +6 -5
  260. package/docs/types/ClassFunctionParameters.html +6 -5
  261. package/docs/types/Color.html +6 -5
  262. package/docs/types/ContentTypeConfigKey.html +6 -5
  263. package/docs/types/ContentTypeConfigKeySplit.html +6 -5
  264. package/docs/types/ContentTypeMap.html +6 -5
  265. package/docs/types/Create3DDomContainerReturnType.html +6 -5
  266. package/docs/types/Create3DElementReturnType.html +6 -5
  267. package/docs/types/CruisePluginExportType.html +6 -5
  268. package/docs/types/CruisePluginTypes.CruiseData.html +6 -5
  269. package/docs/types/CruisePluginTypes.MoveEffect.html +6 -5
  270. package/docs/types/DeprecatedMediaPlaneProperty.html +6 -5
  271. package/docs/types/DeprecatedTagProperty.html +6 -5
  272. package/docs/types/Direction-1.html +6 -5
  273. package/docs/types/Direction4.html +6 -5
  274. package/docs/types/ElementRenderer.html +6 -5
  275. package/docs/types/FloorplanRuleLabels.html +6 -5
  276. package/docs/types/FloorplanServerRuleLabels.html +6 -5
  277. package/docs/types/GuideLinePluginExportType.html +6 -5
  278. package/docs/types/GuideLinePluginType.GuideLineItem.html +6 -5
  279. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +6 -5
  280. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +6 -5
  281. package/docs/types/GuideLinePluginType.GuideLineStyle.html +6 -5
  282. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +6 -5
  283. package/docs/types/GuideLinePluginType.PathItem.html +6 -5
  284. package/docs/types/GuideLinePluginType.PluginData.html +6 -5
  285. package/docs/types/HelperEventMap.html +6 -5
  286. package/docs/types/LoadTagConfig.html +6 -5
  287. package/docs/types/MapviewFloorplanPluginParameterType.html +6 -5
  288. package/docs/types/MapviewFloorplanPluginReturnType.html +6 -5
  289. package/docs/types/MediaData.html +6 -5
  290. package/docs/types/MediaStore.html +6 -5
  291. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -5
  292. package/docs/types/ModelFloorplanPluginParameterType.html +6 -5
  293. package/docs/types/ModelFloorplanPluginReturnType.html +6 -5
  294. package/docs/types/ModelRoomLabelPluginParameters.html +6 -5
  295. package/docs/types/ModelRoomLabelPluginReturnType.html +6 -5
  296. package/docs/types/MoveArgs.html +6 -5
  297. package/docs/types/MoveOpts.html +6 -5
  298. package/docs/types/Object3DHelperEventMap.html +6 -5
  299. package/docs/types/ObjectFit.html +6 -5
  300. package/docs/types/PaintBrushEventMap.html +6 -5
  301. package/docs/types/PanoCompassPluginData.html +6 -5
  302. package/docs/types/PanoCompassPluginExportType.html +6 -5
  303. package/docs/types/PanoCompassPluginParameterType.html +6 -5
  304. package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -5
  305. package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -5
  306. package/docs/types/PanoIndex.html +6 -5
  307. package/docs/types/PanoMeasurePluginEvent.html +6 -5
  308. package/docs/types/PanoMeasureReturnType.html +6 -5
  309. package/docs/types/PanoSpatialTagPluginId.html +6 -5
  310. package/docs/types/PanoTagPluginExportInterface.html +6 -5
  311. package/docs/types/PanoTagPluginParamsInterface.html +6 -5
  312. package/docs/types/PanoVideoPluginParameterType.html +6 -5
  313. package/docs/types/PanoVideoPluginReturnType.html +6 -5
  314. package/docs/types/PartialObjectDeep.html +6 -5
  315. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +6 -5
  316. package/docs/types/PlaneTag.html +6 -5
  317. package/docs/types/Point2DTag.html +6 -5
  318. package/docs/types/Point3DTag.html +6 -5
  319. package/docs/types/PointTag.html +6 -5
  320. package/docs/types/PointTagInstance.html +6 -5
  321. package/docs/types/Position.html +6 -5
  322. package/docs/types/RotateArgs.html +6 -5
  323. package/docs/types/RotateOpts.html +6 -5
  324. package/docs/types/RuleLabelsKey.html +6 -5
  325. package/docs/types/RuleLabelsValue.html +6 -5
  326. package/docs/types/StickType.html +6 -5
  327. package/docs/types/Tag.html +6 -5
  328. package/docs/types/Tag2D.html +6 -5
  329. package/docs/types/Tag3D.html +6 -5
  330. package/docs/types/TagContentType.html +6 -5
  331. package/docs/types/TagDimensionType.html +6 -5
  332. package/docs/types/TagElement.html +6 -5
  333. package/docs/types/TagEvents.html +6 -5
  334. package/docs/types/TagGLTFObject.html +6 -5
  335. package/docs/types/TagHooks.html +6 -5
  336. package/docs/types/TagId.html +6 -5
  337. package/docs/types/TagInstance.html +6 -5
  338. package/docs/types/TagPointType.html +6 -5
  339. package/docs/types/TagRendererMap.html +6 -5
  340. package/docs/types/TopviewFloorplanPluginParameterType.html +6 -5
  341. package/docs/types/TopviewFloorplanPluginReturnType.html +6 -5
  342. package/docs/types/WorkCode.html +6 -5
  343. package/docs/variables/FLOOR_TYPE_MAP.html +6 -5
  344. package/docs/variables/PLUGIN.html +6 -5
  345. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -5
  346. package/docs/variables/ROOM_TYPE_MAP.html +6 -5
  347. package/docs/variables/itemLabelPluginServerParams.html +6 -5
  348. package/docs/variables/modelItemLabelPluginServerParams.html +6 -5
  349. package/docs/variables/modelRoomLabelPluginServerParams.html +6 -5
  350. package/libs/GuideLinePlugin/Components/Tag.js +41 -134
  351. package/libs/GuideLinePlugin/Controller.d.ts +3 -5
  352. package/libs/GuideLinePlugin/Controller.js +44 -48
  353. package/libs/GuideLinePlugin/GuideLineItem/index.js +1 -1
  354. package/libs/GuideLinePlugin/GuideLineItem.d.ts +1 -1
  355. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +113 -150
  356. package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +0 -17
  357. package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -7
  358. package/libs/GuideLinePlugin/utils/createLineGeometry.js +17 -19
  359. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +77 -77
  360. package/libs/Object3DHelperPlugin/Controller.js +3 -2
  361. package/libs/Object3DHelperPlugin/index.js +6 -5
  362. package/libs/PanoMeasurePlugin/Components/Common/CircleButton.js +57 -0
  363. package/libs/PanoMeasurePlugin/Components/Common/CircleButton.svelte.d.ts +1 -0
  364. package/libs/PanoMeasurePlugin/Components/Common/Exit.js +42 -0
  365. package/libs/PanoMeasurePlugin/Components/Common/Exit.svelte.d.ts +1 -0
  366. package/libs/PanoMeasurePlugin/Components/Common/Switcher0.js +250 -0
  367. package/libs/PanoMeasurePlugin/Components/Common/Switcher0.svelte.d.ts +1 -0
  368. package/libs/PanoMeasurePlugin/Components/Common/Switcher1.js +211 -0
  369. package/libs/PanoMeasurePlugin/Components/Common/Switcher1.svelte.d.ts +1 -0
  370. package/libs/PanoMeasurePlugin/Components/Controller0.js +130 -0
  371. package/libs/PanoMeasurePlugin/Components/Controller0.svelte.d.ts +1 -0
  372. package/libs/PanoMeasurePlugin/Components/Controller1.js +255 -0
  373. package/libs/PanoMeasurePlugin/Components/Controller1.svelte.d.ts +1 -0
  374. package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +12 -4
  375. package/libs/PanoMeasurePlugin/Controller/BaseController.js +28 -21
  376. package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +13 -5
  377. package/libs/PanoMeasurePlugin/Controller/EditController.js +184 -75
  378. package/libs/PanoMeasurePlugin/Controller/MixedController.js +26 -25
  379. package/libs/PanoMeasurePlugin/Controller/ViewController.js +5 -4
  380. package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +9 -2
  381. package/libs/PanoMeasurePlugin/Controller/WatchController.js +99 -53
  382. package/libs/PanoMeasurePlugin/Controller/index.d.ts +22 -9
  383. package/libs/PanoMeasurePlugin/Controller/index.js +127 -73
  384. package/libs/PanoMeasurePlugin/Model/area.d.ts +62 -0
  385. package/libs/PanoMeasurePlugin/Model/area.js +98 -0
  386. package/libs/PanoMeasurePlugin/Model/index.d.ts +9 -0
  387. package/libs/PanoMeasurePlugin/Model/index.js +27 -12
  388. package/libs/PanoMeasurePlugin/Model/line.d.ts +4 -1
  389. package/libs/PanoMeasurePlugin/Model/line.js +15 -8
  390. package/libs/PanoMeasurePlugin/Model/point.js +17 -12
  391. package/libs/PanoMeasurePlugin/Model/polygon.d.ts +10 -0
  392. package/libs/PanoMeasurePlugin/Model/polygon.js +39 -0
  393. package/libs/PanoMeasurePlugin/Model/polyline.d.ts +4 -0
  394. package/libs/PanoMeasurePlugin/Model/polyline.js +10 -3
  395. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +1 -1
  396. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +27 -25
  397. package/libs/PanoMeasurePlugin/Modules/FiveHelper.d.ts +2 -1
  398. package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +3 -3
  399. package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
  400. package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +1 -1
  401. package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +5 -3
  402. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +112 -35
  403. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +1 -1
  404. package/libs/PanoMeasurePlugin/index.js +61 -17
  405. package/libs/PanoMeasurePlugin/typings/data.d.ts +23 -0
  406. package/libs/PanoMeasurePlugin/typings/event.type.d.ts +10 -3
  407. package/libs/PanoMeasurePlugin/typings/index.d.ts +1 -1
  408. package/libs/PanoMeasurePlugin/utils/dom/areaDom.d.ts +22 -0
  409. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +29 -0
  410. package/libs/PanoMeasurePlugin/utils/dom/base.d.ts +25 -0
  411. package/libs/PanoMeasurePlugin/utils/dom/base.js +72 -0
  412. package/libs/PanoMeasurePlugin/utils/dom/distanceItem.d.ts +27 -0
  413. package/libs/PanoMeasurePlugin/utils/dom/distanceItem.js +47 -0
  414. package/libs/PanoMeasurePlugin/utils/generatePolygonGeometry.d.ts +6 -0
  415. package/libs/PanoMeasurePlugin/utils/generatePolygonGeometry.js +13 -0
  416. package/libs/PanoMeasurePlugin/utils/geometryUtil.d.ts +7 -0
  417. package/libs/PanoMeasurePlugin/utils/geometryUtil.js +37 -0
  418. package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +1 -1
  419. package/libs/PanoMeasurePlugin/utils/isIntersecting.d.ts +15 -0
  420. package/libs/PanoMeasurePlugin/utils/isIntersecting.js +25 -0
  421. package/libs/PanoMeasurePlugin/utils/line.d.ts +2 -1
  422. package/libs/PanoTagPlugin/controller/TagRender.js +1 -1
  423. package/libs/base/BasePlugin.js +1 -1
  424. package/libs/floorplan/Components/RoomHighlight/Room.js +54 -54
  425. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +8 -8
  426. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +28 -30
  427. package/libs/index.js +134 -116
  428. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -7
  429. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +29 -49
  430. package/libs/shared-utils/index.js +6 -6
  431. package/libs/shared-utils/isTouchDevice.d.ts +1 -0
  432. package/libs/shared-utils/isTouchDevice.js +4 -0
  433. package/libs/shared-utils/logger.js +2 -2
  434. package/libs/shared-utils/safeObj.d.ts +1 -0
  435. package/libs/shared-utils/safeObj.js +6 -0
  436. package/libs/shared-utils/three/IObject3D.d.ts +7 -0
  437. package/libs/shared-utils/three/IObject3D.js +25 -0
  438. package/libs/shared-utils/three/Magnifier.d.ts +3 -0
  439. package/libs/shared-utils/three/Magnifier.js +11 -9
  440. package/libs/shared-utils/three/PointSelector.d.ts +32 -0
  441. package/libs/shared-utils/three/PointSelector.js +68 -0
  442. package/libs/shared-utils/three/PointSelectorHelper.d.ts +50 -0
  443. package/libs/shared-utils/three/PointSelectorHelper.js +100 -0
  444. package/libs/shared-utils/three/centerPoint.js +1 -3
  445. package/libs/shared-utils/three/index.d.ts +1 -1
  446. package/package.json +4 -2
  447. package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +0 -30
  448. package/dist/shared-utils/three/FivePointSelector.d.ts +0 -36
  449. package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +0 -30
  450. package/libs/PanoMeasurePlugin/utils/distanceDom.js +0 -83
  451. package/libs/shared-utils/three/FivePointSelector.d.ts +0 -36
  452. package/libs/shared-utils/three/FivePointSelector.js +0 -49
@@ -1,18 +1,18 @@
1
- var k = Object.defineProperty, w = Object.defineProperties;
2
- var P = Object.getOwnPropertyDescriptors;
3
- var C = Object.getOwnPropertySymbols;
4
- var F = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
5
- var v = (n, e, t) => e in n ? k(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, m = (n, e) => {
6
- for (var t in e || (e = {}))
7
- F.call(e, t) && v(n, t, e[t]);
8
- if (C)
9
- for (var t of C(e))
10
- L.call(e, t) && v(n, t, e[t]);
11
- return n;
12
- }, p = (n, e) => w(n, P(e));
13
- var i = (n, e, t) => (v(n, typeof e != "symbol" ? e + "" : e, t), t);
1
+ var C = Object.defineProperty, y = Object.defineProperties;
2
+ var k = Object.getOwnPropertyDescriptors;
3
+ var c = Object.getOwnPropertySymbols;
4
+ var w = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
5
+ var m = (o, e, i) => e in o ? C(o, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : o[e] = i, u = (o, e) => {
6
+ for (var i in e || (e = {}))
7
+ w.call(e, i) && m(o, i, e[i]);
8
+ if (c)
9
+ for (var i of c(e))
10
+ F.call(e, i) && m(o, i, e[i]);
11
+ return o;
12
+ }, g = (o, e) => y(o, k(e));
13
+ var t = (o, e, i) => (m(o, typeof e != "symbol" ? e + "" : e, i), i);
14
14
  import * as l from "three";
15
- import { logWarning as T, logError as V } from "../../shared-utils/log.js";
15
+ import { logWarning as V, logError as T } from "../../shared-utils/log.js";
16
16
  import { createLineGeometry as U } from "../utils/createLineGeometry.js";
17
17
  import { isPanoramaLike as x, isModelLike as _ } from "../../shared-utils/five/mode.js";
18
18
  import "hammerjs";
@@ -20,13 +20,13 @@ import "@realsee/five";
20
20
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
21
21
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
22
22
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
23
- import { BetterTween as M, tweenProgress as G } from "../../shared-utils/animationFrame/BetterTween.js";
24
- import { loadTexture as E } from "../../shared-utils/three/loadTexture.js";
25
- import y from "../../PanoTagPlugin/controller/index.js";
23
+ import { BetterTween as M, tweenProgress as E } from "../../shared-utils/animationFrame/BetterTween.js";
24
+ import { loadTexture as L } from "../../shared-utils/three/loadTexture.js";
25
+ import b from "../../PanoTagPlugin/controller/index.js";
26
26
  import O from "../Components/Tag.js";
27
- import { filterAdjacentDistinct as S } from "../utils/index.js";
28
- import { objectAssignDeepExports as A } from "../../vendor/object-assign-deep/objectAssignDeep.js";
29
- const B = (
27
+ import { filterAdjacentDistinct as P } from "../utils/index.js";
28
+ import { objectAssignDeepExports as G } from "../../vendor/object-assign-deep/objectAssignDeep.js";
29
+ const S = (
30
30
  /* glsl */
31
31
  `
32
32
  varying vec2 vUv;
@@ -36,7 +36,7 @@ const B = (
36
36
  gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
37
37
  }
38
38
  `
39
- ), I = (
39
+ ), A = (
40
40
  /* glsl */
41
41
  `
42
42
  // 是否使用颜色
@@ -120,86 +120,77 @@ const B = (
120
120
  }
121
121
  `
122
122
  );
123
- class R {
124
- constructor(e, t) {
125
- i(this, "name", "");
126
- i(this, "startTagContainer");
127
- i(this, "endTagContainer");
128
- i(this, "mesh");
129
- i(this, "five");
130
- i(this, "mode");
131
- i(this, "path", []);
132
- i(this, "_curvePath", null);
133
- i(this, "_curvePoints", null);
134
- i(this, "_panoGroup", []);
135
- i(this, "skippedPositions", null);
136
- i(this, "textureUrl", "");
137
- i(this, "scale", 1);
138
- i(this, "width", 0.5);
139
- i(this, "unitLength", 0.5);
140
- i(this, "_visibleFloorIndexes", null);
141
- i(this, "visible", null);
123
+ class B {
124
+ constructor(e, i) {
125
+ t(this, "startTagContainer");
126
+ t(this, "endTagContainer");
127
+ t(this, "mesh");
128
+ t(this, "five");
129
+ t(this, "mode");
130
+ t(this, "path", []);
131
+ t(this, "_panoGroup", null);
132
+ t(this, "skippedPositions", null);
133
+ t(this, "textureUrl", "");
134
+ t(this, "scale", 1);
135
+ t(this, "width", 0.5);
136
+ t(this, "unitLength", 0.5);
137
+ t(this, "_visibleFloorIndexes", null);
138
+ t(this, "visible", null);
142
139
  /** Five Mode 是否满足 */
143
- i(this, "modeVisible", !1);
140
+ t(this, "modeVisible", !1);
144
141
  /** 楼层是否满足展示条件 */
145
- i(this, "floorVisible", !0);
142
+ t(this, "floorVisible", !0);
146
143
  /** 默认是否展示 */
147
- i(this, "defaultVisible", !1);
144
+ t(this, "defaultVisible", !1);
148
145
  /** 走点动画 */
149
- i(this, "inWalkAnimation", !1);
150
- i(this, "customVisible", null);
151
- i(this, "parent");
152
- i(this, "plugin");
153
- i(this, "textureHasLoaded", !1);
154
- i(this, "disposed", !1);
155
- i(this, "flowAnime", new M({ progress: 0 }).to({ progress: 1 }).duration(1500).repeat(1 / 0));
156
- i(this, "flickerAnime", G(300).yoyo(!0).repeat(5));
157
- /** 缓存 panoGroup 中每个点距离起点的长度 */
158
- i(this, "cacheLengths", []);
159
- i(this, "dispose", () => {
160
- var e, t;
161
- this.disposed || (this.disposed = !0, this.parent.hooks.off("show", this.updateVisible), this.parent.hooks.off("hide", this.updateVisible), this.plugin.hooks.off("show", this.updateVisible), this.plugin.hooks.off("hide", this.updateVisible), this.plugin.hooks.off("enable", this.updateVisible), this.plugin.hooks.off("disable", this.updateVisible), this.five.off("modeChange", this.onFiveModeChange), this.five.off("modelShownFloorChange", this.onFiveModelShownFloorChange), this.doHide(), (e = this.startTagContainer) == null || e.plugin.dispose(), (t = this.endTagContainer) == null || t.plugin.dispose());
146
+ t(this, "inWalkAnimation", !1);
147
+ t(this, "customVisible", null);
148
+ t(this, "parent");
149
+ t(this, "plugin");
150
+ t(this, "textureHasLoaded", !1);
151
+ t(this, "disposed", !1);
152
+ t(this, "flowAnime", new M({ progress: 0 }).to({ progress: 1 }).duration(1500).repeat(1 / 0));
153
+ t(this, "flickerAnime", E(300).yoyo(!0).repeat(5));
154
+ t(this, "dispose", () => {
155
+ var e, i;
156
+ this.disposed || (this.disposed = !0, this.parent.hooks.off("show", this.updateVisible), this.parent.hooks.off("hide", this.updateVisible), this.plugin.hooks.off("show", this.updateVisible), this.plugin.hooks.off("hide", this.updateVisible), this.plugin.hooks.off("enable", this.updateVisible), this.plugin.hooks.off("disable", this.updateVisible), this.five.off("modeChange", this.onFiveModeChange), this.five.off("modelShownFloorChange", this.onFiveModelShownFloorChange), this.doHide(), (e = this.startTagContainer) == null || e.plugin.dispose(), (i = this.endTagContainer) == null || i.plugin.dispose());
162
157
  });
163
158
  /** 开始走点动画 */
164
- i(this, "onWalkAnimationStart", () => {
159
+ t(this, "onWalkAnimationStart", () => {
165
160
  this.inWalkAnimation = !0, this.updateVisible();
166
161
  });
167
162
  /** 结束走点动画 */
168
- i(this, "onWalkAnimationEnd", () => {
163
+ t(this, "onWalkAnimationEnd", () => {
169
164
  this.inWalkAnimation = !1, this.updateVisible();
170
165
  });
171
166
  /** 模型状态变更 */
172
- i(this, "onFiveModeChange", (e) => {
167
+ t(this, "onFiveModeChange", (e) => {
173
168
  this.modeVisible = this.mode === "panorama" ? x(e) : _(e), this.updateVisible();
174
169
  });
175
- i(this, "onFiveModelShownFloorChange", (e) => {
170
+ t(this, "onFiveModelShownFloorChange", (e) => {
176
171
  this.floorVisible = e === null || this.visibleFloorIndexes === null || this.visibleFloorIndexes.includes(e), this.updateVisible();
177
172
  });
178
173
  /** 更新可见性 */
179
- i(this, "updateVisible", () => {
174
+ t(this, "updateVisible", () => {
180
175
  const e = (() => !this.parent.visible || !this.plugin.state.enabled || !this.plugin.state.visible ? !1 : this.customVisible !== null ? this.customVisible : this.inWalkAnimation ? !0 : this.modeVisible && this.textureHasLoaded && this.defaultVisible && this.floorVisible)();
181
176
  this.visible !== e && (this.visible = e, e ? this.doShow() : this.doHide());
182
177
  });
183
- i(this, "onFlowAnimeUpdate", (e) => {
184
- const { progress: t } = e;
185
- this.mesh.material.uniforms.vOffset.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
178
+ t(this, "onFlowAnimeUpdate", (e) => {
179
+ const { progress: i } = e;
180
+ this.mesh.material.uniforms.vOffset.value = i, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
186
181
  });
187
- i(this, "onFlickerAnimeUpdate", (e) => {
188
- var a, r;
189
- const { progress: t } = e, s = 1 - t;
190
- this.mesh.material.uniforms.flicker.value = s, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && b(this.startTagContainer.tag) && ((a = this.startTagContainer.app) == null || a.$set(p(m({}, this.startTagContainer.tag.data), {
191
- opacity: s,
192
- name: this.name,
193
- distance: Math.floor(this.curvePath.getLength())
194
- }))), this.endTagContainer.tag && b(this.endTagContainer.tag) && ((r = this.endTagContainer.app) == null || r.$set(p(m({}, this.endTagContainer.tag.data), { opacity: s })));
182
+ t(this, "onFlickerAnimeUpdate", (e) => {
183
+ var n, s;
184
+ const { progress: i } = e, r = 1 - i;
185
+ this.mesh.material.uniforms.flicker.value = r, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && f(this.startTagContainer.tag) && ((n = this.startTagContainer.app) == null || n.$set(g(u({}, this.startTagContainer.tag.data), { opacity: r }))), this.endTagContainer.tag && f(this.endTagContainer.tag) && ((s = this.endTagContainer.app) == null || s.$set(g(u({}, this.endTagContainer.tag.data), { opacity: r })));
195
186
  });
196
- i(this, "logWarning", (e) => T("GuideLineModeItem: ", e));
197
- i(this, "logError", (e) => V("GuideLineModeItem: ", e));
198
- var r, o;
199
- this.five = e, this.mode = t.mode, this.plugin = t.plugin, this.parent = t.parent, this.startTagContainer = { tag: null, plugin: new y(this.five) }, this.endTagContainer = { tag: null, plugin: new y(this.five) };
200
- const s = new l.BufferGeometry(), a = new l.ShaderMaterial({
201
- vertexShader: B,
202
- fragmentShader: I,
187
+ t(this, "logWarning", (e) => V("GuideLineModeItem: ", e));
188
+ t(this, "logError", (e) => T("GuideLineModeItem: ", e));
189
+ var s, a;
190
+ this.five = e, this.mode = i.mode, this.plugin = i.plugin, this.parent = i.parent, this.startTagContainer = { tag: null, plugin: new b(this.five) }, this.endTagContainer = { tag: null, plugin: new b(this.five) };
191
+ const r = new l.BufferGeometry(), n = new l.ShaderMaterial({
192
+ vertexShader: S,
193
+ fragmentShader: A,
203
194
  transparent: !0,
204
195
  uniforms: {
205
196
  map: { value: null },
@@ -216,7 +207,7 @@ class R {
216
207
  vOffset: { value: 0 }
217
208
  }
218
209
  });
219
- this.mesh = new l.Mesh(s, a), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), this.updateVisible(), this.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveModelShownFloorChange((o = (r = this.five.model) == null ? void 0 : r.shownFloor) != null ? o : null), this.flowAnime.onUpdate(this.onFlowAnimeUpdate), this.flickerAnime.onUpdate(this.onFlickerAnimeUpdate), this.parent.hooks.on("show", this.updateVisible), this.parent.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("show", this.updateVisible), this.plugin.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("enable", this.updateVisible), this.plugin.hooks.on("disable", this.updateVisible), this.plugin.hooks.on("dispose", this.dispose), this.five.on("modeChange", this.onFiveModeChange), this.five.on("modelShownFloorChange", this.onFiveModelShownFloorChange);
210
+ this.mesh = new l.Mesh(r, n), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), this.updateVisible(), this.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveModelShownFloorChange((a = (s = this.five.model) == null ? void 0 : s.shownFloor) != null ? a : null), this.flowAnime.onUpdate(this.onFlowAnimeUpdate), this.flickerAnime.onUpdate(this.onFlickerAnimeUpdate), this.parent.hooks.on("show", this.updateVisible), this.parent.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("show", this.updateVisible), this.plugin.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("enable", this.updateVisible), this.plugin.hooks.on("disable", this.updateVisible), this.plugin.hooks.on("dispose", this.dispose), this.five.on("modeChange", this.onFiveModeChange), this.five.on("modelShownFloorChange", this.onFiveModelShownFloorChange);
220
211
  }
221
212
  get panoGroup() {
222
213
  return this._panoGroup;
@@ -225,14 +216,6 @@ class R {
225
216
  get visibleFloorIndexes() {
226
217
  return this._visibleFloorIndexes;
227
218
  }
228
- /** THREE Curve 路径 */
229
- get curvePath() {
230
- return this._curvePath;
231
- }
232
- /** THREE Curve 路径上的点 */
233
- get curvePoints() {
234
- return this._curvePoints;
235
- }
236
219
  /** 自定义展示 */
237
220
  setCustomVisible(e) {
238
221
  if (this.disposed)
@@ -246,10 +229,10 @@ class R {
246
229
  this.defaultVisible !== e && (this.defaultVisible = e, this.updateVisible());
247
230
  }
248
231
  /** 基础宽、长 */
249
- setUnitSize(e, t) {
232
+ setUnitSize(e, i) {
250
233
  if (this.disposed)
251
234
  return this.logError("disposed");
252
- this.width = e, this.unitLength = t, this.setGeometryByPath(this.path, { width: e, unit_length: t });
235
+ this.width = e, this.unitLength = i, this.setGeometryByPath(this.path, { width: e, unit_length: i });
253
236
  }
254
237
  /** 设置缩放 */
255
238
  setScale(e) {
@@ -258,40 +241,40 @@ class R {
258
241
  this.scale = e, this.setGeometryByPath(this.path, { scale: e });
259
242
  }
260
243
  /** 通过点位设置线条形状 */
261
- setGeometryByPanoGroup(e, t) {
244
+ setGeometryByPanoGroup(e, i) {
262
245
  if (this.disposed)
263
246
  return this.logError("disposed");
264
247
  if (!this.five.work)
265
248
  return this.logError("setPathByPanoGroup: work is not ready");
266
- const s = S(e);
267
- if (this._panoGroup = s, (t == null ? void 0 : t.skipPanoGroup) !== void 0) {
268
- const r = t.skipPanoGroup ? s.map((o) => this.five.work.observers[o]).map((o) => o.standingPosition.clone()) : null;
269
- this.skippedPositions = r;
249
+ const r = P(e);
250
+ if (this._panoGroup = r, (i == null ? void 0 : i.skipPanoGroup) !== void 0) {
251
+ const s = i.skipPanoGroup ? r.map((a) => this.five.work.observers[a]).map((a) => a.standingPosition.clone()) : null;
252
+ this.skippedPositions = s;
270
253
  }
271
- const a = this.getPathFromPanoGroup(s, this.five.work, t);
272
- this.path = a, this.setGeometryByPath(a, t);
254
+ const n = this.getPathFromPanoGroup(r, this.five.work, i);
255
+ this.path = n, this.setGeometryByPath(n, i);
273
256
  }
274
257
  /** 通过路径设置线条形状 */
275
- setGeometryByPath(e, t) {
276
- var f, g, c;
258
+ setGeometryByPath(e, i) {
259
+ var h, p, v;
277
260
  if (this.disposed)
278
261
  return this.logError("disposed");
279
- const s = (f = t == null ? void 0 : t.scale) != null ? f : this.scale, a = (g = t == null ? void 0 : t.width) != null ? g : this.width, r = (c = t == null ? void 0 : t.unit_length) != null ? c : this.unitLength;
280
- this.path = e, this.scale = s, this.width = a, this.unitLength = r;
281
- const { geometry: o, maxU: u, curvePath: d, curvePoints: h } = U({
262
+ const r = (h = i == null ? void 0 : i.scale) != null ? h : this.scale, n = (p = i == null ? void 0 : i.width) != null ? p : this.width, s = (v = i == null ? void 0 : i.unit_length) != null ? v : this.unitLength;
263
+ this.path = e, this.scale = r, this.width = n, this.unitLength = s;
264
+ const { geometry: a, maxU: d } = U({
282
265
  path: e,
283
- width: a * s,
284
- unitLength: r * s,
266
+ width: n * r,
267
+ unitLength: s * r,
285
268
  skipPositions: this.skippedPositions
286
269
  });
287
- this._curvePath = d, this._curvePoints = h, this.mesh.geometry = o, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = u, this.five.needsRender = !0;
270
+ this.mesh.geometry = a, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = d, this.five.needsRender = !0;
288
271
  }
289
272
  /** 设置线条材质 */
290
273
  setMartial(e) {
291
- var t;
274
+ var i;
292
275
  if (this.disposed)
293
276
  return this.logError("disposed");
294
- (e == null ? void 0 : e.visible) !== void 0 && this.setDefaultVisible(e.visible), (e == null ? void 0 : e.color) !== void 0 && this.setColor(e.color), (e == null ? void 0 : e.opacity) !== void 0 && this.setOpacity(e.opacity), ((t = e == null ? void 0 : e.texture) == null ? void 0 : t.url) !== void 0 && this.setTextureUrl(e.texture.url), (e == null ? void 0 : e.background_color) !== void 0 && this.setBackgroundColor(e.background_color), (e == null ? void 0 : e.background_opacity) !== void 0 && this.setBackgroundOpacity(e.background_opacity), (e == null ? void 0 : e.border_color) !== void 0 && this.setBorderColor(e.border_color), (e == null ? void 0 : e.border_opacity) !== void 0 && this.setBorderOpacity(e.border_opacity);
277
+ (e == null ? void 0 : e.visible) !== void 0 && this.setDefaultVisible(e.visible), (e == null ? void 0 : e.color) !== void 0 && this.setColor(e.color), (e == null ? void 0 : e.opacity) !== void 0 && this.setOpacity(e.opacity), ((i = e == null ? void 0 : e.texture) == null ? void 0 : i.url) !== void 0 && this.setTextureUrl(e.texture.url), (e == null ? void 0 : e.background_color) !== void 0 && this.setBackgroundColor(e.background_color), (e == null ? void 0 : e.background_opacity) !== void 0 && this.setBackgroundOpacity(e.background_opacity), (e == null ? void 0 : e.border_color) !== void 0 && this.setBorderColor(e.border_color), (e == null ? void 0 : e.border_opacity) !== void 0 && this.setBorderOpacity(e.border_opacity);
295
278
  }
296
279
  /** 设置贴图颜色 */
297
280
  setColor(e) {
@@ -339,15 +322,15 @@ class R {
339
322
  setTextureUrl(e) {
340
323
  if (this.disposed)
341
324
  return this.logError("disposed");
342
- this.textureUrl = e, E(e).then((t) => {
343
- this.disposed || this.textureUrl === e && (t.wrapT = l.RepeatWrapping, this.textureHasLoaded = !0, this.mesh.material.uniforms.map.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.mesh.material.needsUpdate = !0, this.five.needsRender = !0, this.updateVisible());
325
+ this.textureUrl = e, L(e).then((i) => {
326
+ this.disposed || this.textureUrl === e && (i.wrapT = l.RepeatWrapping, this.textureHasLoaded = !0, this.mesh.material.uniforms.map.value = i, this.mesh.material.uniformsNeedUpdate = !0, this.mesh.material.needsUpdate = !0, this.five.needsRender = !0, this.updateVisible());
344
327
  });
345
328
  }
346
329
  setVisibleFloorIndexes(e) {
347
- var t, s;
330
+ var i, r;
348
331
  if (this.disposed)
349
332
  return this.logError("disposed");
350
- this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((s = (t = this.five.model) == null ? void 0 : t.shownFloor) != null ? s : null);
333
+ this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((r = (i = this.five.model) == null ? void 0 : i.shownFloor) != null ? r : null);
351
334
  }
352
335
  setStartTag(e) {
353
336
  this.setTag("start", e);
@@ -361,42 +344,22 @@ class R {
361
344
  return this.logError("disposed");
362
345
  this.flickerAnime.play();
363
346
  }
364
- /** 求起点到 panoIndex 曲线长度
365
- * @param index panoIndex panoGroup 中的索引
366
- *
367
- * @description 为什么不使用 panoIndex 作为参数?
368
- * - panoIndex 在一个曲线中可能出现多次,无法确定是哪一个。
369
- */
370
- getLengthByPanoGroupIndex(e) {
371
- return this.disposed ? this.logError("disposed") : this.cacheLengths.length !== 0 ? this.cacheLengths[e] : (this.cacheLengths = this.getPanoGroupLengths(), this.cacheLengths[e]);
372
- }
373
- getPanoGroupLengths() {
374
- const e = this.panoGroup.map((h) => this.five.work.observers[h]), t = this.curvePoints.length, s = this.curvePath.getLength(), a = t - 1, r = s / a, o = this.curvePath.getLengths(a), u = [];
375
- let d = 0;
376
- for (let h = 0; h < t; h++) {
377
- const f = this.curvePoints[h], g = e[d];
378
- if (!g)
379
- break;
380
- g.standingPosition.clone().setY(0).distanceTo(f.clone().setY(0)) < r && (u.push(o[h]), d += 1);
381
- }
382
- return u;
383
- }
384
- setTag(e, t) {
385
- const s = e === "start" ? this.startTagContainer : this.endTagContainer;
386
- t || s.plugin.clearTags();
387
- const r = A({}, {
347
+ setTag(e, i) {
348
+ const r = e === "start" ? this.startTagContainer : this.endTagContainer;
349
+ i || r.plugin.clearTags();
350
+ const s = G({}, {
388
351
  contentType: "Custom",
389
352
  stickType: "2DPoint",
390
353
  config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"], followModelVisibility: !1 } },
391
354
  style: { point: { enabled: !1 } },
392
355
  data: {}
393
- }, t);
394
- s.tag = r, b(r) && (s.tag.element = (o) => {
356
+ }, i);
357
+ r.tag = s, f(s) && (r.tag.element = (a) => {
395
358
  var h;
396
- (h = s.app) == null || h.$destroy();
397
- const u = e === "start" ? p(m({}, r.data), { name: this.name, distance: Math.floor(this.curvePath.getLength()), i18n: this.plugin.config.i18n }) : r.data, d = new O({ target: o, intro: !0, props: u });
398
- return s.app = d, () => d.$destroy();
399
- }), s.plugin.load({ tagList: [s.tag] });
359
+ (h = r.app) == null || h.$destroy();
360
+ const d = new O({ target: a, intro: !0, props: s.data });
361
+ return r.app = d, () => d.$destroy();
362
+ }), r.plugin.load({ tagList: [r.tag] });
400
363
  }
401
364
  doShow() {
402
365
  this.mode === "model" && this.flowAnime.play(), this.five.scene.add(this.mesh), this.startTagContainer.plugin.show(), this.endTagContainer.plugin.show(), this.five.needsRender = !0;
@@ -405,21 +368,21 @@ class R {
405
368
  this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.mesh), this.startTagContainer.plugin.hide(), this.endTagContainer.plugin.hide(), this.five.needsRender = !0;
406
369
  }
407
370
  /** 通过 panoIndex 数组计算路径 */
408
- getPathFromPanoGroup(e, t, s) {
371
+ getPathFromPanoGroup(e, i, r) {
409
372
  if (e.length < 2)
410
373
  return [];
411
- const r = e.map((o) => t.observers[o]).map((o) => o.standingPosition.toArray());
412
- return [m({ type: "CatmullRomCurve3", points: r }, s)];
374
+ const s = e.map((a) => i.observers[a]).map((a) => a.standingPosition.toArray());
375
+ return [u({ type: "CatmullRomCurve3", points: s }, r)];
413
376
  }
414
377
  }
415
- function b(n) {
416
- return n.contentType === "Custom";
378
+ function f(o) {
379
+ return o.contentType === "Custom";
417
380
  }
418
- const te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
381
+ const Z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
419
382
  __proto__: null,
420
- GuideLineModeItem: R
383
+ GuideLineModeItem: B
421
384
  }, Symbol.toStringTag, { value: "Module" }));
422
385
  export {
423
- R as GuideLineModeItem,
424
- te as GuideLineModeItem$1
386
+ B as GuideLineModeItem,
387
+ Z as GuideLineModeItem$1
425
388
  };
@@ -18,19 +18,12 @@ declare class GuideLineModeItem {
18
18
  get panoGroup(): number[];
19
19
  /** 可展示的楼层 */
20
20
  get visibleFloorIndexes(): number[];
21
- /** THREE Curve 路径 */
22
- get curvePath(): THREE.CurvePath<THREE.Vector3>;
23
- /** THREE Curve 路径上的点 */
24
- get curvePoints(): THREE.Vector3[];
25
- name: string;
26
21
  startTagContainer: GuideLineTagContainer;
27
22
  endTagContainer: GuideLineTagContainer;
28
23
  readonly mesh: THREE.Mesh<THREE.BufferGeometry, THREE.ShaderMaterial>;
29
24
  private five;
30
25
  private mode;
31
26
  private path;
32
- private _curvePath;
33
- private _curvePoints;
34
27
  private _panoGroup;
35
28
  private skippedPositions;
36
29
  private textureUrl;
@@ -54,8 +47,6 @@ declare class GuideLineModeItem {
54
47
  private disposed;
55
48
  private flowAnime;
56
49
  private flickerAnime;
57
- /** 缓存 panoGroup 中每个点距离起点的长度 */
58
- private cacheLengths;
59
50
  constructor(five: Five, options: {
60
51
  mode: PluginType.GuideLineModeItemMode;
61
52
  plugin: GuideLinePlugin;
@@ -99,14 +90,6 @@ declare class GuideLineModeItem {
99
90
  setEndTag(tag: Tag | PluginType.ModelGuideLineTagData | null): void;
100
91
  /** 闪烁 */
101
92
  flicker(): void;
102
- /** 求起点到 panoIndex 曲线长度
103
- * @param index panoIndex 在 panoGroup 中的索引
104
- *
105
- * @description 为什么不使用 panoIndex 作为参数?
106
- * - panoIndex 在一个曲线中可能出现多次,无法确定是哪一个。
107
- */
108
- getLengthByPanoGroupIndex(index: number): number | void;
109
- private getPanoGroupLengths;
110
93
  private setTag;
111
94
  /** 开始走点动画 */
112
95
  private onWalkAnimationStart;
@@ -19,12 +19,5 @@ interface LineGeometryOption {
19
19
  export declare function createLineGeometry(options: LineGeometryOption): {
20
20
  geometry: THREE.BufferGeometry;
21
21
  maxU: number;
22
- curvePath?: undefined;
23
- curvePoints?: undefined;
24
- } | {
25
- geometry: THREE.BufferGeometry;
26
- maxU: number;
27
- curvePath: THREE.CurvePath<THREE.Vector3>;
28
- curvePoints: THREE.Vector3[];
29
22
  };
30
23
  export {};
@@ -1,5 +1,5 @@
1
1
  import * as n from "three";
2
- import { Vector3 as x } from "three";
2
+ import { Vector3 as P } from "three";
3
3
  import { polylineNormals as G } from "../../vendor/polyline-normals/index.js";
4
4
  import "../../vendor/polyline-miter-util/index.js";
5
5
  import "../../vendor/gl-vec2/add.js";
@@ -12,35 +12,33 @@ function Q(e) {
12
12
  const i = e.width, g = e.unitLength / i, c = i / 2, E = e.path;
13
13
  if (E.length === 0)
14
14
  return { geometry: new n.BufferGeometry(), maxU: 0 };
15
- const u = new n.CurvePath();
15
+ const h = new n.CurvePath();
16
16
  E.forEach((t) => {
17
- const m = I(t);
18
- m && u.add(m);
17
+ const a = I(t);
18
+ a && h.add(a);
19
19
  });
20
- const w = Math.ceil(u.getLength() * 100);
21
- u.arcLengthDivisions = w;
22
- const o = u.getPoints(w), y = o.length, L = G(o.map((t) => [t.x, t.z])), B = (y - 1) * z * M, d = 2 * y, C = d * X, U = d * k, r = new Uint32Array(B), s = new Float32Array(C), a = new Float32Array(U);
23
- let N = 0, R = 0;
20
+ const x = Math.ceil(h.getLength() * 100), o = h.getPoints(x), w = o.length, L = G(o.map((t) => [t.x, t.z])), B = (w - 1) * z * M, y = 2 * w, C = y * X, U = y * k, r = new Uint32Array(B), s = new Float32Array(C), u = new Float32Array(U);
21
+ let d = 0, N = 0;
24
22
  for (let t = 0; t < o.length; t++) {
25
- const [m, A] = L[t][0], T = o[t], { x: _, y: b, z: P } = T, f = new x(_ + m * c, b + 0.05, P + A * c);
26
- s[t * 6 + 0] = f.x, s[t * 6 + 1] = f.y, s[t * 6 + 2] = f.z;
27
- const h = new x(_ - m * c, b + 0.05, P - A * c);
28
- s[t * 6 + 3] = h.x, s[t * 6 + 4] = h.y, s[t * 6 + 5] = h.z, N += t > 0 ? o[t - 1].clone().sub(o[t]).length() : 0;
29
- const v = N / i / g;
30
- if (R = v, a[t * 4 + 0] = 0, a[t * 4 + 1] = v, a[t * 4 + 2] = 1, a[t * 4 + 3] = v, e.skipPositions) {
31
- const V = new n.Vector3().lerpVectors(f, h, 0.5);
23
+ const [a, R] = L[t][0], T = o[t], { x: A, y: _, z: b } = T, l = new P(A + a * c, _ + 0.05, b + R * c);
24
+ s[t * 6 + 0] = l.x, s[t * 6 + 1] = l.y, s[t * 6 + 2] = l.z;
25
+ const f = new P(A - a * c, _ + 0.05, b - R * c);
26
+ s[t * 6 + 3] = f.x, s[t * 6 + 4] = f.y, s[t * 6 + 5] = f.z, d += t > 0 ? o[t - 1].clone().sub(o[t]).length() : 0;
27
+ const p = d / i / g;
28
+ if (N = p, u[t * 4 + 0] = 0, u[t * 4 + 1] = p, u[t * 4 + 2] = 1, u[t * 4 + 3] = p, e.skipPositions) {
29
+ const V = new n.Vector3().lerpVectors(l, f, 0.5);
32
30
  if (e.skipPositions.some((F) => F.distanceTo(V) < 0.26))
33
31
  continue;
34
32
  }
35
33
  t !== o.length - 1 && (r[t * 6 + 0] = t * 2 + 0, r[t * 6 + 1] = t * 2 + 2, r[t * 6 + 2] = t * 2 + 1, r[t * 6 + 3] = t * 2 + 2, r[t * 6 + 4] = t * 2 + 3, r[t * 6 + 5] = t * 2 + 1);
36
34
  }
37
- const l = new n.BufferGeometry();
38
- return l.setAttribute("position", new n.BufferAttribute(s, 3)), l.setAttribute("uv", new n.BufferAttribute(a, 2)), l.setIndex(new n.BufferAttribute(r, 1)), { geometry: l, maxU: R, curvePath: u, curvePoints: o };
35
+ const m = new n.BufferGeometry();
36
+ return m.setAttribute("position", new n.BufferAttribute(s, 3)), m.setAttribute("uv", new n.BufferAttribute(u, 2)), m.setIndex(new n.BufferAttribute(r, 1)), { geometry: m, maxU: N };
39
37
  }
40
38
  function I(e) {
41
39
  if (O(e)) {
42
- const i = [e.closed, e.curve_type, e.tension], p = e.points.map((c) => new n.Vector3().fromArray(c));
43
- return new n.CatmullRomCurve3(p, ...i);
40
+ const i = [e.closed, e.curve_type, e.tension], v = e.points.map((c) => new n.Vector3().fromArray(c));
41
+ return new n.CatmullRomCurve3(v, ...i);
44
42
  }
45
43
  }
46
44
  function O(e) {