@realsee/dnalogel 2.21.0-dev.0 → 2.21.0-dev.10

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