@realsee/dnalogel 3.20.5 → 3.20.7

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 (389) hide show
  1. package/dist/PanoMeasurePlugin/Controller/index.d.ts +3 -3
  2. package/dist/PanoMeasurePlugin/Model/area.d.ts +2 -1
  3. package/dist/PanoMeasurePlugin/Model/index.d.ts +3 -3
  4. package/dist/PanoMeasurePlugin/Model/line.d.ts +2 -1
  5. package/dist/PanoMeasurePlugin/Model/polyline.d.ts +1 -0
  6. package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +0 -4
  7. package/dist/PanoMeasurePlugin/typings/data.d.ts +1 -1
  8. package/dist/PanoMeasurePlugin/utils/line.d.ts +1 -1
  9. package/dist/index.cjs.js +44 -44
  10. package/dist/index.js +1458 -1433
  11. package/dist/index.umd.js +44 -44
  12. package/dist/shared-utils/createLine/index.d.ts +2 -2
  13. package/dist/shared-utils/five/FiveLine.d.ts +8 -0
  14. package/docs/assets/search.js +1 -1
  15. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +3 -3
  16. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +3 -3
  17. package/docs/classes/CSS3DRender.html +3 -3
  18. package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
  19. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +3 -3
  20. package/docs/classes/Magnifier.html +3 -3
  21. package/docs/classes/ModelRoomLabelController.html +3 -3
  22. package/docs/classes/MoveController.html +3 -3
  23. package/docs/classes/Object3DHelperController.html +3 -3
  24. package/docs/classes/PaintBrush.html +3 -3
  25. package/docs/classes/PanoMeasurePluginLine.html +22 -12
  26. package/docs/classes/PanoMeasurePluginModel.html +6 -6
  27. package/docs/classes/PanoMeasurePluginPoint.html +3 -3
  28. package/docs/classes/PanoMeasurePluginPolyline.html +22 -12
  29. package/docs/classes/PanoTagPluginController.html +3 -3
  30. package/docs/classes/Util.BetterTween.html +3 -3
  31. package/docs/classes/Util.Interval.html +3 -3
  32. package/docs/classes/Util.LineSegments.html +3 -3
  33. package/docs/classes/Util.Magnifier.html +3 -3
  34. package/docs/classes/Util.Object3D.html +3 -3
  35. package/docs/classes/Util.PointDomHelper.html +3 -3
  36. package/docs/classes/Util.PointHelper.html +3 -3
  37. package/docs/classes/Util.PointSelectorHelper.html +3 -3
  38. package/docs/classes/Util.Rectangle.html +3 -3
  39. package/docs/classes/WalkController.html +3 -3
  40. package/docs/enums/CameraMovementEffect.html +3 -3
  41. package/docs/enums/ContentType.html +3 -3
  42. package/docs/enums/DIRECTION.html +3 -3
  43. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +3 -3
  44. package/docs/enums/DimensionType.html +3 -3
  45. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +3 -3
  46. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +3 -3
  47. package/docs/enums/PaintBrushTypeEnum.html +3 -3
  48. package/docs/enums/PointType.html +3 -3
  49. package/docs/enums/Rotation.html +3 -3
  50. package/docs/functions/AreaMakerPlugin.html +3 -3
  51. package/docs/functions/CSS3DRenderPlugin.html +3 -3
  52. package/docs/functions/CameraMovementPlugin.html +3 -3
  53. package/docs/functions/CruisePlugin.html +3 -3
  54. package/docs/functions/CurrentPanoImagePlugin.html +3 -3
  55. package/docs/functions/GuideLinePlugin.html +3 -3
  56. package/docs/functions/ItemLabelPlugin.html +3 -3
  57. package/docs/functions/MapviewFloorplanPlugin.html +3 -3
  58. package/docs/functions/ModelChassisCompassPlugin.html +3 -3
  59. package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
  60. package/docs/functions/ModelFloorplanPlugin.html +3 -3
  61. package/docs/functions/ModelItemLabelPlugin.html +3 -3
  62. package/docs/functions/ModelRoomLabelPlugin.html +3 -3
  63. package/docs/functions/ModelTVVideoPlugin.html +3 -3
  64. package/docs/functions/ModelViewPlugin.html +3 -3
  65. package/docs/functions/MovePlugin.html +3 -3
  66. package/docs/functions/Object3DHelperPlugin.html +3 -3
  67. package/docs/functions/PanoCompassPlugin.html +3 -3
  68. package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
  69. package/docs/functions/PanoDoorLabelPlugin.html +3 -3
  70. package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
  71. package/docs/functions/PanoMeasurePlugin.html +3 -3
  72. package/docs/functions/PanoRulerPlugin.html +3 -3
  73. package/docs/functions/PanoRulerProPlugin.html +3 -3
  74. package/docs/functions/PanoSpatialTagPlugin.html +3 -3
  75. package/docs/functions/PanoTagPlugin.html +3 -3
  76. package/docs/functions/PanoVideoPlugin.html +3 -3
  77. package/docs/functions/PipelinePlugin.html +3 -3
  78. package/docs/functions/TopviewFloorplanPlugin.html +3 -3
  79. package/docs/functions/Util.absoluteUrl.html +3 -3
  80. package/docs/functions/Util.checkFiveModelLoaded.html +3 -3
  81. package/docs/functions/Util.equal.html +3 -3
  82. package/docs/functions/Util.getCoordsFromClient.html +3 -3
  83. package/docs/functions/Util.getCoordsFromElement.html +3 -3
  84. package/docs/functions/Util.getFrameTime.html +3 -3
  85. package/docs/functions/Util.getIntersectFromRelativePosition.html +3 -3
  86. package/docs/functions/Util.getRaycasterFromFivePointer.html +3 -3
  87. package/docs/functions/Util.isAbsoluteURL.html +3 -3
  88. package/docs/functions/Util.isModelLike.html +3 -3
  89. package/docs/functions/Util.isNil.html +3 -3
  90. package/docs/functions/Util.isPanoramaLike.html +3 -3
  91. package/docs/functions/Util.nextFrame.html +3 -3
  92. package/docs/functions/Util.notNil.html +3 -3
  93. package/docs/functions/Util.requestAnimationFrameInterval.html +3 -3
  94. package/docs/functions/Util.tweenProgress.html +3 -3
  95. package/docs/functions/Util.uuid.html +3 -3
  96. package/docs/functions/pluginFlag.html +3 -3
  97. package/docs/index.html +4 -4
  98. package/docs/interfaces/AddTagConfig.html +3 -3
  99. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
  100. package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
  101. package/docs/interfaces/AreaMakerPluginType.EventMap.html +3 -3
  102. package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
  103. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +3 -3
  104. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
  105. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
  106. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
  107. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -3
  108. package/docs/interfaces/AreaMakerPluginType.State.html +3 -3
  109. package/docs/interfaces/CSS3DRenderPluginEventMap.html +3 -3
  110. package/docs/interfaces/CSS3DRenderPluginState.html +3 -3
  111. package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
  112. package/docs/interfaces/CruisePluginTypes.Config.html +3 -3
  113. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +3 -3
  114. package/docs/interfaces/CruisePluginTypes.EventMap.html +3 -3
  115. package/docs/interfaces/CruisePluginTypes.MoveAction.html +3 -3
  116. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +3 -3
  117. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +3 -3
  118. package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
  119. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +3 -3
  120. package/docs/interfaces/CruisePluginTypes.PluginState.html +3 -3
  121. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +3 -3
  122. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +3 -3
  123. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
  124. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -3
  125. package/docs/interfaces/CurrentPanoImagePluginType.State.html +3 -3
  126. package/docs/interfaces/EventMap.html +3 -3
  127. package/docs/interfaces/FloorplanBounding.html +3 -3
  128. package/docs/interfaces/FloorplanData.html +3 -3
  129. package/docs/interfaces/FloorplanEntrance.html +3 -3
  130. package/docs/interfaces/FloorplanExtraObject.html +3 -3
  131. package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
  132. package/docs/interfaces/FloorplanFloorData.html +3 -3
  133. package/docs/interfaces/FloorplanImagePosition.html +3 -3
  134. package/docs/interfaces/FloorplanObserver.html +3 -3
  135. package/docs/interfaces/FloorplanOutlineItem.html +3 -3
  136. package/docs/interfaces/FloorplanPosition.html +3 -3
  137. package/docs/interfaces/FloorplanRoomItem.html +3 -3
  138. package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
  139. package/docs/interfaces/FloorplanServerBounding.html +3 -3
  140. package/docs/interfaces/FloorplanServerComputedData.html +3 -3
  141. package/docs/interfaces/FloorplanServerData.html +3 -3
  142. package/docs/interfaces/FloorplanServerDoorItem.html +3 -3
  143. package/docs/interfaces/FloorplanServerDoorPosition.html +3 -3
  144. package/docs/interfaces/FloorplanServerEntrance.html +3 -3
  145. package/docs/interfaces/FloorplanServerFloorData.html +3 -3
  146. package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
  147. package/docs/interfaces/FloorplanServerObserver.html +3 -3
  148. package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
  149. package/docs/interfaces/FloorplanServerPosition.html +3 -3
  150. package/docs/interfaces/FloorplanServerRoomItem.html +3 -3
  151. package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
  152. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +3 -3
  153. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
  154. package/docs/interfaces/GuideLinePluginType.EventMap.html +3 -3
  155. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +3 -3
  156. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +3 -3
  157. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +3 -3
  158. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -3
  159. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +3 -3
  160. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +3 -3
  161. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -3
  162. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +3 -3
  163. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +3 -3
  164. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +3 -3
  165. package/docs/interfaces/GuideLinePluginType.PluginState.html +3 -3
  166. package/docs/interfaces/GuideLinePluginType.Route.html +3 -3
  167. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +3 -3
  168. package/docs/interfaces/HelperOffset.html +3 -3
  169. package/docs/interfaces/ImagePlaneGroup.html +3 -3
  170. package/docs/interfaces/ItemLabelPluginData.html +3 -3
  171. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +3 -3
  172. package/docs/interfaces/ItemLabelPluginParametersType.html +3 -3
  173. package/docs/interfaces/MinMax.html +3 -3
  174. package/docs/interfaces/ModelChassisCompassPluginData.html +3 -3
  175. package/docs/interfaces/ModelChassisCompassPluginExportType.html +3 -3
  176. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -3
  177. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +3 -3
  178. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +3 -3
  179. package/docs/interfaces/ModelItemLabelPluginData.html +3 -3
  180. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +3 -3
  181. package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -3
  182. package/docs/interfaces/ModelRoomLabelPluginData.html +3 -3
  183. package/docs/interfaces/ModelTVVideoPluginData.html +3 -3
  184. package/docs/interfaces/ModelTVVideoPluginExportType.html +3 -3
  185. package/docs/interfaces/ModelTVVideoPluginParameterType.html +3 -3
  186. package/docs/interfaces/ModelViewPluginExportType.html +3 -3
  187. package/docs/interfaces/Object3DHelperState.html +3 -3
  188. package/docs/interfaces/ObjectHelperControllers.html +3 -3
  189. package/docs/interfaces/PaintBrushAction.html +3 -3
  190. package/docs/interfaces/PaintBrushConfigs.html +3 -3
  191. package/docs/interfaces/PaintBrushState.html +3 -3
  192. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +3 -3
  193. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +3 -3
  194. package/docs/interfaces/PanoMeasureParameterType.html +3 -3
  195. package/docs/interfaces/PanoMeasurePluginLineJson.html +3 -3
  196. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
  197. package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -3
  198. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +3 -3
  199. package/docs/interfaces/PanoRulerPluginExportType.html +3 -3
  200. package/docs/interfaces/PanoRulerPluginOptions.html +3 -3
  201. package/docs/interfaces/PanoRulerPluginParameterType.html +3 -3
  202. package/docs/interfaces/PanoRulerProPluginExportType.html +3 -3
  203. package/docs/interfaces/PanoRulerProPluginOptions.html +3 -3
  204. package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -3
  205. package/docs/interfaces/PanoRulerProPluginState.html +3 -3
  206. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +3 -3
  207. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +3 -3
  208. package/docs/interfaces/PanoSpatialTagPluginData.html +3 -3
  209. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +3 -3
  210. package/docs/interfaces/PanoSpatialTagPluginExportType.html +3 -3
  211. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +3 -3
  212. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +3 -3
  213. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +3 -3
  214. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +3 -3
  215. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
  216. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +3 -3
  217. package/docs/interfaces/PanoVideoPluginType.PluginData.html +3 -3
  218. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +3 -3
  219. package/docs/interfaces/PanoVideoPluginType.PluginState.html +3 -3
  220. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +3 -3
  221. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +3 -3
  222. package/docs/interfaces/Point.html +3 -3
  223. package/docs/interfaces/Room.html +3 -3
  224. package/docs/interfaces/RoomInfo.html +3 -3
  225. package/docs/interfaces/RoomLabel.html +3 -3
  226. package/docs/interfaces/RoomRules.html +3 -3
  227. package/docs/interfaces/Rooms.html +3 -3
  228. package/docs/interfaces/Scissor.html +3 -3
  229. package/docs/interfaces/State.html +3 -3
  230. package/docs/interfaces/TagCacheInterface.html +3 -3
  231. package/docs/interfaces/TagConfig.html +3 -3
  232. package/docs/interfaces/TagGLTFObjectGroup.html +3 -3
  233. package/docs/interfaces/TagIconUrl.html +3 -3
  234. package/docs/interfaces/TagObjectGroup.html +3 -3
  235. package/docs/interfaces/TagStyle.html +3 -3
  236. package/docs/interfaces/Tags.html +3 -3
  237. package/docs/interfaces/TemporaryState.html +3 -3
  238. package/docs/interfaces/Util.MagnifierParameter.html +3 -3
  239. package/docs/interfaces/Util.MouseGroupParameter.html +3 -3
  240. package/docs/interfaces/Util.PointIntersection.html +3 -3
  241. package/docs/modules/AreaMakerPluginType.html +3 -3
  242. package/docs/modules/CruisePluginTypes.html +3 -3
  243. package/docs/modules/CurrentPanoImagePluginType.html +3 -3
  244. package/docs/modules/GuideLineItem.html +3 -3
  245. package/docs/modules/GuideLineModeItem.html +3 -3
  246. package/docs/modules/GuideLinePluginType.html +3 -3
  247. package/docs/modules/PanoVideoPluginType.html +3 -3
  248. package/docs/modules/Util.html +3 -3
  249. package/docs/modules.html +4 -4
  250. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +3 -3
  251. package/docs/types/AreaMakerPluginType.ItemRenderer.html +3 -3
  252. package/docs/types/AreaMakerPluginType.PluginData.html +3 -3
  253. package/docs/types/AreaMakerPluginType.ServerData.html +3 -3
  254. package/docs/types/ArrayPosition.html +3 -3
  255. package/docs/types/AudioAppearance.html +3 -3
  256. package/docs/types/AudioTagTypeConfigKey.html +3 -3
  257. package/docs/types/CSS3DRenderExportType.html +3 -3
  258. package/docs/types/CSS3DRenderPluginExportType.html +3 -3
  259. package/docs/types/CSS3DRenderPluginParameterType.html +3 -3
  260. package/docs/types/ClassFunctionParameters.html +3 -3
  261. package/docs/types/Color.html +3 -3
  262. package/docs/types/ContentTypeConfigKey.html +3 -3
  263. package/docs/types/ContentTypeConfigKeySplit.html +3 -3
  264. package/docs/types/ContentTypeMap.html +3 -3
  265. package/docs/types/Create3DDomContainerReturnType.html +3 -3
  266. package/docs/types/Create3DElementReturnType.html +3 -3
  267. package/docs/types/CruisePluginExportType.html +3 -3
  268. package/docs/types/CruisePluginTypes.CruiseData.html +3 -3
  269. package/docs/types/CruisePluginTypes.MoveEffect.html +3 -3
  270. package/docs/types/CurrentPanoImagePluginExportType.html +3 -3
  271. package/docs/types/DeprecatedMediaPlaneProperty.html +3 -3
  272. package/docs/types/DeprecatedTagProperty.html +3 -3
  273. package/docs/types/Direction-1.html +3 -3
  274. package/docs/types/Direction4.html +3 -3
  275. package/docs/types/ElementRenderer.html +3 -3
  276. package/docs/types/FloorplanRuleLabels.html +3 -3
  277. package/docs/types/FloorplanServerRuleLabels.html +3 -3
  278. package/docs/types/GuideLinePluginExportType.html +3 -3
  279. package/docs/types/GuideLinePluginType.GuideLineItem.html +3 -3
  280. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +3 -3
  281. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +3 -3
  282. package/docs/types/GuideLinePluginType.GuideLineStyle.html +3 -3
  283. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +3 -3
  284. package/docs/types/GuideLinePluginType.PathItem.html +3 -3
  285. package/docs/types/GuideLinePluginType.PluginData.html +3 -3
  286. package/docs/types/HelperEventMap.html +3 -3
  287. package/docs/types/InternalHelperEventMap.html +3 -3
  288. package/docs/types/LoadTagConfig.html +3 -3
  289. package/docs/types/MapviewFloorplanPluginParameterType.html +3 -3
  290. package/docs/types/MapviewFloorplanPluginReturnType.html +3 -3
  291. package/docs/types/MediaData.html +3 -3
  292. package/docs/types/MediaStore.html +3 -3
  293. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +3 -3
  294. package/docs/types/ModelFloorplanPluginParameterType.html +3 -3
  295. package/docs/types/ModelFloorplanPluginReturnType.html +3 -3
  296. package/docs/types/ModelId.html +3 -3
  297. package/docs/types/ModelRoomLabelPluginParameters.html +3 -3
  298. package/docs/types/ModelRoomLabelPluginReturnType.html +3 -3
  299. package/docs/types/MoveArgs.html +3 -3
  300. package/docs/types/MoveOpts.html +3 -3
  301. package/docs/types/Object3DHelperEventMap.html +3 -3
  302. package/docs/types/ObjectFit.html +3 -3
  303. package/docs/types/PaintBrushEventMap.html +3 -3
  304. package/docs/types/PanoCompassPluginData.html +3 -3
  305. package/docs/types/PanoCompassPluginExportType.html +3 -3
  306. package/docs/types/PanoCompassPluginParameterType.html +3 -3
  307. package/docs/types/PanoFloorplanRadarPluginParameterType.html +3 -3
  308. package/docs/types/PanoFloorplanRadarPluginReturnType.html +3 -3
  309. package/docs/types/PanoIndex.html +3 -3
  310. package/docs/types/PanoMeasurePluginEvent.html +3 -3
  311. package/docs/types/PanoMeasureReturnType.html +3 -3
  312. package/docs/types/PanoSpatialTagPluginId.html +3 -3
  313. package/docs/types/PanoTagPluginExportInterface.html +3 -3
  314. package/docs/types/PanoTagPluginParamsInterface.html +3 -3
  315. package/docs/types/PanoVideoPluginParameterType.html +3 -3
  316. package/docs/types/PanoVideoPluginReturnType.html +3 -3
  317. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +3 -3
  318. package/docs/types/PipelinePluginParameterType.html +3 -3
  319. package/docs/types/PipelinePluginReturnType.html +3 -3
  320. package/docs/types/PlaneTag.html +3 -3
  321. package/docs/types/Point2DTag.html +3 -3
  322. package/docs/types/Point3DTag.html +3 -3
  323. package/docs/types/PointTag.html +3 -3
  324. package/docs/types/PointTagInstance.html +3 -3
  325. package/docs/types/Position.html +3 -3
  326. package/docs/types/RotateArgs.html +3 -3
  327. package/docs/types/RotateOpts.html +3 -3
  328. package/docs/types/RuleLabelsKey.html +3 -3
  329. package/docs/types/RuleLabelsValue.html +3 -3
  330. package/docs/types/StickType.html +3 -3
  331. package/docs/types/Tag.html +3 -3
  332. package/docs/types/Tag2D.html +3 -3
  333. package/docs/types/Tag3D.html +3 -3
  334. package/docs/types/TagConfigByKey.html +3 -3
  335. package/docs/types/TagContentType.html +3 -3
  336. package/docs/types/TagContentTypeMapping.html +3 -3
  337. package/docs/types/TagDimensionType.html +3 -3
  338. package/docs/types/TagElement.html +3 -3
  339. package/docs/types/TagEvents.html +3 -3
  340. package/docs/types/TagGLTFObject.html +3 -3
  341. package/docs/types/TagHooks.html +3 -3
  342. package/docs/types/TagId.html +3 -3
  343. package/docs/types/TagInstance.html +3 -3
  344. package/docs/types/TagPointType.html +3 -3
  345. package/docs/types/TagRendererMap.html +3 -3
  346. package/docs/types/TopviewFloorplanPluginParameterType.html +3 -3
  347. package/docs/types/TopviewFloorplanPluginReturnType.html +3 -3
  348. package/docs/types/WorkCode.html +3 -3
  349. package/docs/variables/FLOOR_TYPE_MAP.html +3 -3
  350. package/docs/variables/PLUGIN.html +3 -3
  351. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +3 -3
  352. package/docs/variables/ROOM_TYPE_MAP.html +3 -3
  353. package/docs/variables/defaultGlobalConfig.html +3 -3
  354. package/docs/variables/itemLabelPluginServerParams.html +3 -3
  355. package/docs/variables/modelItemLabelPluginServerParams.html +3 -3
  356. package/docs/variables/modelRoomLabelPluginServerParams.html +3 -3
  357. package/libs/PanoCursorRaycasterPlugin/index.js +9 -8
  358. package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
  359. package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
  360. package/libs/PanoMeasurePlugin/Controller/BaseController.js +3 -2
  361. package/libs/PanoMeasurePlugin/Controller/EditController.js +3 -2
  362. package/libs/PanoMeasurePlugin/Controller/MixedController.js +3 -2
  363. package/libs/PanoMeasurePlugin/Controller/ViewController.js +3 -2
  364. package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -2
  365. package/libs/PanoMeasurePlugin/Controller/index.d.ts +3 -3
  366. package/libs/PanoMeasurePlugin/Controller/index.js +53 -52
  367. package/libs/PanoMeasurePlugin/Model/area.d.ts +2 -1
  368. package/libs/PanoMeasurePlugin/Model/area.js +14 -6
  369. package/libs/PanoMeasurePlugin/Model/index.d.ts +3 -3
  370. package/libs/PanoMeasurePlugin/Model/index.js +3 -2
  371. package/libs/PanoMeasurePlugin/Model/line.d.ts +2 -1
  372. package/libs/PanoMeasurePlugin/Model/line.js +9 -5
  373. package/libs/PanoMeasurePlugin/Model/polyline.d.ts +1 -0
  374. package/libs/PanoMeasurePlugin/Model/polyline.js +29 -25
  375. package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +0 -4
  376. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -2
  377. package/libs/PanoMeasurePlugin/index.js +14 -13
  378. package/libs/PanoMeasurePlugin/typings/data.d.ts +1 -1
  379. package/libs/PanoMeasurePlugin/utils/line.d.ts +1 -1
  380. package/libs/PanoMeasurePlugin/utils/line.js +5 -4
  381. package/libs/PanoRulerProPlugin/Controller.js +22 -21
  382. package/libs/base/BasePlugin.js +1 -1
  383. package/libs/index.js +121 -120
  384. package/libs/shared-utils/createLine/index.d.ts +2 -2
  385. package/libs/shared-utils/createLine/index.js +5 -5
  386. package/libs/shared-utils/five/FiveLine.d.ts +8 -0
  387. package/libs/shared-utils/five/FiveLine.js +15 -0
  388. package/libs/shared-utils/logger.js +1 -1
  389. package/package.json +1 -1
@@ -13,6 +13,7 @@ import W from "../Modules/rangePiece/index.js";
13
13
  import "@realsee/five";
14
14
  import "../../shared-utils/uuid.js";
15
15
  import "../utils/line.js";
16
+ import "../../shared-utils/five/FiveLine.js";
16
17
  import "@realsee/five/line";
17
18
  import "../utils/constants.js";
18
19
  import "../utils/dom/distanceItem.js";
@@ -29,7 +30,7 @@ import "../../shared-utils/animationFrame/index.js";
29
30
  import "../../shared-utils/noop.js";
30
31
  import "../utils/calculateThreeMouse.js";
31
32
  import "../utils/mouseGroup.js";
32
- class re extends T {
33
+ class ae extends T {
33
34
  constructor(e) {
34
35
  super(e);
35
36
  t(this, "state", "watching");
@@ -143,5 +144,5 @@ class re extends T {
143
144
  }
144
145
  }
145
146
  export {
146
- re as default
147
+ ae as default
147
148
  };
@@ -7,6 +7,7 @@ import "three";
7
7
  import "../Model/line.js";
8
8
  import "../../shared-utils/uuid.js";
9
9
  import "../utils/line.js";
10
+ import "../../shared-utils/five/FiveLine.js";
10
11
  import "@realsee/five/line";
11
12
  import "../utils/constants.js";
12
13
  import "@realsee/five";
@@ -16,7 +17,7 @@ import "../utils/isNDCPointInScreen.js";
16
17
  import "../../shared-utils/three/centerPoint.js";
17
18
  import "../Model/point.js";
18
19
  import "../utils/ironbox.js";
19
- class F extends h {
20
+ class R extends h {
20
21
  constructor(e) {
21
22
  super(e);
22
23
  s(this, "type", "view");
@@ -66,5 +67,5 @@ class F extends h {
66
67
  }
67
68
  }
68
69
  export {
69
- F as default
70
+ R as default
70
71
  };
@@ -17,6 +17,7 @@ import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
17
17
  import "../Model/line.js";
18
18
  import "../../shared-utils/uuid.js";
19
19
  import "../utils/line.js";
20
+ import "../../shared-utils/five/FiveLine.js";
20
21
  import "@realsee/five/line";
21
22
  import "../utils/constants.js";
22
23
  import "@realsee/five";
@@ -50,7 +51,7 @@ import "../../shared-utils/three/IObject3D.js";
50
51
  import "../utils/generatePolygonGeometry.js";
51
52
  import "earcut";
52
53
  const C = () => !1;
53
- class Ut extends G {
54
+ class bt extends G {
54
55
  constructor(t) {
55
56
  super(t);
56
57
  s(this, "type", "watch");
@@ -223,5 +224,5 @@ class Ut extends G {
223
224
  }
224
225
  }
225
226
  export {
226
- Ut as default
227
+ bt as default
227
228
  };
@@ -1,5 +1,5 @@
1
1
  import type { Config } from '../typings';
2
- import type { EditParameter, MeasureType, OpenParameter, PluginData } from '../typings/data';
2
+ import type { EditParameter, MeasureType, OpenParameter, MeasurePluginData } from '../typings/data';
3
3
  import type { PanoMeasurePluginEvent } from '../typings/event.type';
4
4
  import type { UserDistanceItem } from '../utils/dom/distanceItem';
5
5
  import type { Polyline } from '../Model/polyline';
@@ -49,7 +49,7 @@ export default class MeasureController {
49
49
  * @description 数据加载时会覆盖当前已保存的数据
50
50
  * @description 如果当前正在编辑中,会自动退出并保存编辑
51
51
  */
52
- load(data: PluginData): void;
52
+ load(data: MeasurePluginData): void;
53
53
  /** 插件功能入口
54
54
  * @description 会隐藏鼠标的默认聚焦环
55
55
  * @description 会隐藏当前 VR 内的点位展示
@@ -96,7 +96,7 @@ export default class MeasureController {
96
96
  /** Mixed 模式才有用,添加终点 */
97
97
  addEndPoint(): void;
98
98
  /** 导出数据 */
99
- toJson(): PluginData;
99
+ toJson(): MeasurePluginData;
100
100
  /**
101
101
  * @deprecated 暂不支持
102
102
  * @description 改变插件的模式(pc端模式或移动端模式)
@@ -1,7 +1,7 @@
1
1
  var b = Object.defineProperty;
2
2
  var w = Object.getOwnPropertySymbols;
3
3
  var T = Object.prototype.hasOwnProperty, U = Object.prototype.propertyIsEnumerable;
4
- var p = (s, e, t) => e in s ? b(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, h = (s, e) => {
4
+ var p = (s, e, t) => e in s ? b(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, a = (s, e) => {
5
5
  for (var t in e || (e = {}))
6
6
  T.call(e, t) && p(s, t, e[t]);
7
7
  if (w)
@@ -9,16 +9,16 @@ var p = (s, e, t) => e in s ? b(s, e, { enumerable: !0, configurable: !0, writab
9
9
  U.call(e, t) && p(s, t, e[t]);
10
10
  return s;
11
11
  };
12
- var i = (s, e, t) => (p(s, typeof e != "symbol" ? e + "" : e, t), t);
12
+ var r = (s, e, t) => (p(s, typeof e != "symbol" ? e + "" : e, t), t);
13
13
  import l from "./EditController.js";
14
14
  import P from "./ViewController.js";
15
15
  import v from "./WatchController.js";
16
- import a from "./MixedController.js";
16
+ import h from "./MixedController.js";
17
17
  import { omit as k } from "../../shared-utils/filter.js";
18
18
  import { Group as D } from "three";
19
19
  import { Model as E } from "../Model/index.js";
20
- import { Subscribe as x } from "@realsee/five";
21
- import { getMouseGroup as G } from "../utils/mouseGroup.js";
20
+ import { Subscribe as G } from "@realsee/five";
21
+ import { getMouseGroup as x } from "../utils/mouseGroup.js";
22
22
  import { UIController as S } from "../Modules/UIController/index.js";
23
23
  import { GuideController as L } from "../Modules/GuideController.js";
24
24
  import { ShortcutKeyController as O } from "./ShortcutKeyController.js";
@@ -31,6 +31,7 @@ import { isTouchDevice as B } from "../../shared-utils/isTouchDevice.js";
31
31
  import "../Model/line.js";
32
32
  import "../../shared-utils/uuid.js";
33
33
  import "../utils/line.js";
34
+ import "../../shared-utils/five/FiveLine.js";
34
35
  import "@realsee/five/line";
35
36
  import "../utils/constants.js";
36
37
  import "../utils/dom/distanceItem.js";
@@ -109,39 +110,39 @@ import "../../vendor/svelte/transition/index.js";
109
110
  import "../../vendor/svelte/easing/index.js";
110
111
  import "../../vendor/object-assign-deep/objectAssignDeep.js";
111
112
  import "../Components/Tip.js";
112
- class Et {
113
+ class Gt {
113
114
  constructor(e, t) {
114
- i(this, "hasOpen", !1);
115
- i(this, "hook", new x());
116
- i(this, "magnifier");
117
- i(this, "controller", null);
115
+ r(this, "hasOpen", !1);
116
+ r(this, "hook", new G());
117
+ r(this, "magnifier");
118
+ r(this, "controller", null);
118
119
  /** 允许的测量类型 */
119
- i(this, "allowMeasureType");
120
+ r(this, "allowMeasureType");
120
121
  /** 当前的测量类型 */
121
- i(this, "currentMeasureType");
122
- i(this, "five");
123
- i(this, "model");
124
- i(this, "group");
125
- i(this, "config");
126
- i(this, "isMobile");
127
- i(this, "useUIController");
128
- i(this, "params");
129
- i(this, "useGuideController");
130
- i(this, "container", document.createElement("div"));
131
- i(this, "shortcutKeyController");
122
+ r(this, "currentMeasureType");
123
+ r(this, "five");
124
+ r(this, "model");
125
+ r(this, "group");
126
+ r(this, "config");
127
+ r(this, "isMobile");
128
+ r(this, "useUIController");
129
+ r(this, "params");
130
+ r(this, "useGuideController");
131
+ r(this, "container", document.createElement("div"));
132
+ r(this, "shortcutKeyController");
132
133
  /** 关闭插件功能
133
134
  * @description 清除标尺线条
134
135
  * @description 还原点位展示和默认鼠标 UI
135
136
  */
136
- i(this, "disable", () => {
137
- var e, t, r, o;
138
- this.hasOpen = !1, this.container.style.opacity = "0", (e = this.controller) == null || e.dispose(), (t = this.useUIController) == null || t.hide(), (r = this.useGuideController) == null || r.hide(), (o = this.shortcutKeyController) == null || o.dispose(), this.controller = null, this.five.helperVisible = !0, this.five.scene.remove(this.group), this.five.needsRender = !0, this.hook.emit("disable", !0);
137
+ r(this, "disable", () => {
138
+ var e, t, i, o;
139
+ this.hasOpen = !1, this.container.style.opacity = "0", (e = this.controller) == null || e.dispose(), (t = this.useUIController) == null || t.hide(), (i = this.useGuideController) == null || i.hide(), (o = this.shortcutKeyController) == null || o.dispose(), this.controller = null, this.five.helperVisible = !0, this.five.scene.remove(this.group), this.five.needsRender = !0, this.hook.emit("disable", !0);
139
140
  });
140
- i(this, "getCurrentMode", () => this.controller instanceof l ? "Edit" : this.controller instanceof v ? "Watch" : this.controller instanceof a ? "Mixed" : this.controller instanceof P ? "View" : null);
141
+ r(this, "getCurrentMode", () => this.controller instanceof l ? "Edit" : this.controller instanceof v ? "Watch" : this.controller instanceof h ? "Mixed" : this.controller instanceof P ? "View" : null);
141
142
  /** 变更场景
142
143
  * @description 如果从编辑场景改变到观看场景,不会自动保存,默认丢弃所有改动
143
144
  */
144
- i(this, "changeMode", (e) => {
145
+ r(this, "changeMode", (e) => {
145
146
  var o;
146
147
  if (!this.hasOpen || this.getCurrentMode() === e)
147
148
  return;
@@ -150,36 +151,36 @@ class Et {
150
151
  View: P,
151
152
  Watch: v,
152
153
  Edit: l,
153
- Mixed: a
154
+ Mixed: h
154
155
  };
155
156
  if (!t[e])
156
157
  throw new Error("不存在的 Mode");
157
- const r = this.createControllerParams();
158
- this.controller = new t[e](r), this.hook.emit("modeChange", e);
158
+ const i = this.createControllerParams();
159
+ this.controller = new t[e](i), this.hook.emit("modeChange", e);
159
160
  });
160
161
  /**
161
162
  * @description: 切换测量的类型
162
163
  */
163
- i(this, "changeMeasureType", (e) => {
164
+ r(this, "changeMeasureType", (e) => {
164
165
  this.currentMeasureType = e, this.hook.emit("measureTypeChange", e);
165
166
  });
166
167
  var n, c, u, d, f, g, M, y, C;
167
168
  this.five = e, this.params = t, this.config = k(t, ["openParams", "magnifierParams"]), this.model = new E(this.config), this.isMobile = (c = (n = t == null ? void 0 : t.openParams) == null ? void 0 : n.isMobile) != null ? c : !1, this.magnifier = new A(e, (u = t.magnifierParams) != null ? u : { width: 190, height: 190, scale: 2 }), this.allowMeasureType = Array.from(new Set((f = (d = t.editParams) == null ? void 0 : d.allowMeasureType) != null ? f : ["line"])), this.currentMeasureType = (g = this.allowMeasureType[0]) != null ? g : "line", this.group = new D(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0";
168
- const r = (y = (M = t.editParams) == null ? void 0 : M.pointSelectorMode) != null ? y : B ? "fixed" : "cursor", o = (C = this.params.openParams) != null ? C : {};
169
+ const i = (y = (M = t.editParams) == null ? void 0 : M.pointSelectorMode) != null ? y : B ? "fixed" : "cursor", o = (C = this.params.openParams) != null ? C : {};
169
170
  if (this.params.useUIController !== !1) {
170
- const m = h({
171
+ const m = a({
171
172
  container: this.container,
172
173
  openParams: o,
173
174
  i18n: t.i18n,
174
- pointSelectorMode: r,
175
+ pointSelectorMode: i,
175
176
  useNewUI: this.allowMeasureType.length > 1
176
177
  }, I(this.params.useUIController));
177
178
  this.useUIController = new S(this, m);
178
179
  }
179
180
  if (this.params.useGuideController !== !1) {
180
- const m = h({
181
+ const m = a({
181
182
  container: this.container,
182
- pointSelectorMode: r,
183
+ pointSelectorMode: i,
183
184
  i18n: t.i18n
184
185
  }, I(this.params.useGuideController));
185
186
  this.useGuideController = new L(this, m);
@@ -207,8 +208,8 @@ class Et {
207
208
  * @description 会隐藏当前 VR 内的点位展示
208
209
  */
209
210
  enable(e) {
210
- var t;
211
- this.hasOpen || (this.hasOpen = !0, this.five.scene.add(this.group), this.container.style.opacity = "1", e != null && e.mode ? this.changeMode(e.mode) : this.isMobile ? this.changeMode("Mixed") : this.changeMode("Watch"), (t = this.useUIController) == null || t.show(), this.shortcutKeyController = new O(this, this.five), this.hook.emit("enable", !0));
211
+ var t, i;
212
+ this.hasOpen || (this.hasOpen = !0, this.five.scene.add(this.group), this.container.style.opacity = "1", e != null && e.mode ? this.changeMode(e.mode) : this.isMobile ? this.changeMode("Mixed") : this.changeMode("Watch"), (t = this.useUIController) == null || t.show(), (i = this.useGuideController) == null || i.show(), this.shortcutKeyController = new O(this, this.five), this.hook.emit("enable", !0));
212
213
  }
213
214
  /** 进入编辑模式 */
214
215
  edit(e) {
@@ -252,20 +253,20 @@ class Et {
252
253
  */
253
254
  save(e) {
254
255
  var o;
255
- if (!(this.controller instanceof l) && !(this.controller instanceof a))
256
+ if (!(this.controller instanceof l) && !(this.controller instanceof h))
256
257
  return this;
257
- const t = (o = e == null ? void 0 : e.mode) != null ? o : "View", r = this.controller.model.areas;
258
- return this.controller instanceof l ? this.controller.complete() : r.forEach((n) => {
258
+ const t = (o = e == null ? void 0 : e.mode) != null ? o : "View", i = this.controller.model.areas;
259
+ return this.controller instanceof l ? this.controller.complete() : i.forEach((n) => {
259
260
  n.showArea(), this.model.addArea(n);
260
261
  }), this.changeMode(t), this;
261
262
  }
262
263
  /** Mixed 模式才有用,添加起点 */
263
264
  addStartPoint() {
264
- this.controller instanceof a && this.hook.emit("willChangeState", "watching", "editing");
265
+ this.controller instanceof h && this.hook.emit("willChangeState", "watching", "editing");
265
266
  }
266
267
  /** Mixed 模式才有用,添加终点 */
267
268
  addEndPoint() {
268
- this.controller instanceof a && this.hook.emit("willChangeState", "editing", "watching");
269
+ this.controller instanceof h && this.hook.emit("willChangeState", "editing", "watching");
269
270
  }
270
271
  /** 导出数据 */
271
272
  toJson() {
@@ -279,20 +280,20 @@ class Et {
279
280
  changeIsMobile(e) {
280
281
  }
281
282
  changeConfigs(e) {
282
- var t, r;
283
- Object.assign(this.config, e), (t = this.controller) == null || t.updateDistanceUI(), (r = this.controller) == null || r.updateAreaUI();
283
+ var t, i;
284
+ Object.assign(this.config, e), (t = this.controller) == null || t.updateDistanceUI(), (i = this.controller) == null || i.updateAreaUI();
284
285
  }
285
286
  /** 设置线段的文本 */
286
287
  setCustomText(e, t) {
287
288
  var o;
288
- const r = this.model.getLineByID(e);
289
- if (!r)
289
+ const i = this.model.getLineByID(e);
290
+ if (!i)
290
291
  throw new Error("不存在的线段");
291
- r.setText(t), (o = this.controller) == null || o.updateDistanceUI();
292
+ i.setText(t), (o = this.controller) == null || o.updateDistanceUI();
292
293
  }
293
294
  createControllerParams() {
294
- var r, o;
295
- const e = (r = this.params.openParams) != null ? r : {}, t = (o = this.params.editParams) != null ? o : {};
295
+ var i, o;
296
+ const e = (i = this.params.openParams) != null ? i : {}, t = (o = this.params.editParams) != null ? o : {};
296
297
  return e.isMobile = this.isMobile, {
297
298
  five: this.five,
298
299
  hook: this.hook,
@@ -305,11 +306,11 @@ class Et {
305
306
  editParams: t,
306
307
  magnifierParams: this.params.magnifierParams,
307
308
  getMeasureType: () => this.currentMeasureType,
308
- mouseGroup: G(h({}, e.crossHairParameter)),
309
+ mouseGroup: x(a({}, e.crossHairParameter)),
309
310
  userDistanceItemCreator: this.params.userDistanceItemCreator
310
311
  };
311
312
  }
312
313
  }
313
314
  export {
314
- Et as default
315
+ Gt as default
315
316
  };
@@ -1,10 +1,10 @@
1
1
  import * as THREE from 'three';
2
- import type { Line as FiveLine } from '@realsee/five/line';
3
2
  import { Subscribe, type Five, type SubscribeEventMap } from '@realsee/five';
4
3
  import PolygonMesh from './polygon';
5
4
  import { Polyline } from './polyline';
6
5
  import type { Model } from '.';
7
6
  import { AreaItem } from '../utils/dom/areaDom';
7
+ import type { FiveLine } from '../../shared-utils/five/FiveLine';
8
8
  export interface AreaHook extends SubscribeEventMap {
9
9
  selected: (area: Area, position: {
10
10
  left: string;
@@ -71,4 +71,5 @@ export default class Area {
71
71
  * @todo: 没写完
72
72
  */
73
73
  dispose(): void;
74
+ toJSON(): any;
74
75
  }
@@ -1,5 +1,5 @@
1
- var m = Object.defineProperty;
2
- var d = (o, t, e) => t in o ? m(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
1
+ var l = Object.defineProperty;
2
+ var d = (o, t, e) => t in o ? l(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
3
3
  var i = (o, t, e) => (d(o, typeof t != "symbol" ? t + "" : t, e), e);
4
4
  import * as r from "three";
5
5
  import { uuid as f } from "../../shared-utils/uuid.js";
@@ -10,6 +10,7 @@ import { Polyline as y } from "./polyline.js";
10
10
  import a from "./point.js";
11
11
  import { AreaItem as C } from "../utils/dom/areaDom.js";
12
12
  import "../utils/line.js";
13
+ import "../../shared-utils/five/FiveLine.js";
13
14
  import "@realsee/five/line";
14
15
  import "../utils/constants.js";
15
16
  import "../utils/dom/distanceItem.js";
@@ -38,7 +39,7 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
38
39
  import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
39
40
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
40
41
  import "../../shared-utils/isNil.js";
41
- class et {
42
+ class ot {
42
43
  constructor(t, e) {
43
44
  i(this, "id", f());
44
45
  i(this, "selected", !1);
@@ -71,8 +72,8 @@ class et {
71
72
  t && (this.points = t), this.model = e.model, this.polygon = new v(t), this.polyline = new y({ model: e.model }), this.areaItem = new C({
72
73
  area: this,
73
74
  clickCallback: (p, s) => {
74
- const h = p.clientX + "px", l = p.clientY + "px";
75
- this.hook.emit("selected", this, { left: h, top: l });
75
+ const h = p.clientX + "px", m = p.clientY + "px";
76
+ this.hook.emit("selected", this, { left: h, top: m });
76
77
  }
77
78
  }), this.domContainer = e.domContainer || null, this.meshContainer = e.meshContainer || null, this.five = e.five || null, this.areaItem.appendTo(this.domContainer), (n = this.five) == null || n.on("cameraUpdate", this.updateDom);
78
79
  }
@@ -128,7 +129,14 @@ class et {
128
129
  dispose() {
129
130
  this.remove(), this.model.areas.splice(this.model.areas.indexOf(this), 1), this.planeHelper = null, this.five.off("cameraUpdate", this.updateDom), this.five.needsRender = !0;
130
131
  }
132
+ toJSON() {
133
+ return {
134
+ id: this.id,
135
+ points: this.points.map((t) => t.toArray()),
136
+ text: this.text
137
+ };
138
+ }
131
139
  }
132
140
  export {
133
- et as default
141
+ ot as default
134
142
  };
@@ -1,5 +1,5 @@
1
1
  import type { Config } from '../typings';
2
- import type { PluginData } from '../typings/data';
2
+ import type { MeasurePluginData } from '../typings/data';
3
3
  import type Area from './area';
4
4
  import type Line from './line';
5
5
  import { Polyline } from './polyline';
@@ -39,7 +39,7 @@ export declare class Model {
39
39
  clear(): void;
40
40
  dispose(): void;
41
41
  getClosestPoint(): void;
42
- parse(data: PluginData): void;
43
- toJson(): PluginData;
42
+ parse(data: MeasurePluginData): void;
43
+ toJson(): MeasurePluginData;
44
44
  }
45
45
  export {};
@@ -6,6 +6,7 @@ import { Subscribe as p } from "@realsee/five";
6
6
  import "./line.js";
7
7
  import "../../shared-utils/uuid.js";
8
8
  import "../utils/line.js";
9
+ import "../../shared-utils/five/FiveLine.js";
9
10
  import "@realsee/five/line";
10
11
  import "../utils/constants.js";
11
12
  import "three";
@@ -14,7 +15,7 @@ import "../utils/dom/base.js";
14
15
  import "../utils/isNDCPointInScreen.js";
15
16
  import "../../shared-utils/three/centerPoint.js";
16
17
  import "./point.js";
17
- class I {
18
+ class v {
18
19
  constructor(e) {
19
20
  r(this, "config");
20
21
  r(this, "polylines", []);
@@ -95,5 +96,5 @@ class I {
95
96
  }
96
97
  }
97
98
  export {
98
- I as Model
99
+ v as Model
99
100
  };
@@ -1,11 +1,11 @@
1
1
  import type { Model } from '.';
2
2
  import type Point from './point';
3
3
  import type { LineJson } from '../typings/data';
4
- import type { Line as FiveLine } from '@realsee/five/line';
5
4
  import type { Polyline } from './polyline';
6
5
  import { Subscribe, type SubscribeEventMap } from '@realsee/five';
7
6
  import { DistanceItem } from '../utils/dom/distanceItem';
8
7
  import type * as THREE from 'three';
8
+ import type { FiveLine } from '../../shared-utils/five/FiveLine';
9
9
  export interface ILineHook extends SubscribeEventMap {
10
10
  selected: (line: Line) => void;
11
11
  textChanged: (text: string | undefined) => void;
@@ -33,6 +33,7 @@ export default class Line {
33
33
  getPolyline(): Polyline;
34
34
  findAnotherPoint(point: Point): Point;
35
35
  setText(text: string | null): void;
36
+ toJSON(): LineJson;
36
37
  toJson(): LineJson;
37
38
  clone(): Line;
38
39
  }
@@ -1,17 +1,18 @@
1
- var r = Object.defineProperty;
2
- var m = (s, t, i) => t in s ? r(s, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[t] = i;
1
+ var l = Object.defineProperty;
2
+ var m = (s, t, i) => t in s ? l(s, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[t] = i;
3
3
  var e = (s, t, i) => (m(s, typeof t != "symbol" ? t + "" : t, i), i);
4
4
  import { uuid as p } from "../../shared-utils/uuid.js";
5
5
  import { createLineMesh as n } from "../utils/line.js";
6
6
  import { Subscribe as c } from "@realsee/five";
7
7
  import { DistanceItem as d } from "../utils/dom/distanceItem.js";
8
+ import "../../shared-utils/five/FiveLine.js";
8
9
  import "@realsee/five/line";
9
10
  import "../utils/constants.js";
10
11
  import "three";
11
12
  import "../utils/dom/base.js";
12
13
  import "../utils/isNDCPointInScreen.js";
13
14
  import "../../shared-utils/three/centerPoint.js";
14
- class l {
15
+ class r {
15
16
  constructor(t, i, o) {
16
17
  e(this, "id");
17
18
  e(this, "selected", !1);
@@ -65,14 +66,17 @@ class l {
65
66
  setText(t) {
66
67
  this.text = t, this.hook.emit("textChanged", t);
67
68
  }
69
+ toJSON() {
70
+ return this.toJson();
71
+ }
68
72
  toJson() {
69
73
  return { id: this.id, points: this.points.map((t) => t.toJson()), text: this.text };
70
74
  }
71
75
  clone() {
72
- const t = new l(this.points[0].clone(), this.points[1].clone(), this.model);
76
+ const t = new r(this.points[0].clone(), this.points[1].clone(), this.model);
73
77
  return t.text = this.text, t;
74
78
  }
75
79
  }
76
80
  export {
77
- l as default
81
+ r as default
78
82
  };
@@ -38,6 +38,7 @@ export declare class Polyline {
38
38
  includes(item: Point | Line): boolean;
39
39
  isEmpty(): boolean;
40
40
  getLastPoint(): Point;
41
+ toJSON(): PolylineJson;
41
42
  toJson(): PolylineJson;
42
43
  getPointByID(id: string): Point;
43
44
  fromJson(data: PolylineJson): this;
@@ -1,11 +1,12 @@
1
1
  var c = Object.defineProperty;
2
- var f = (r, i, e) => i in r ? c(r, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[i] = e;
3
- var o = (r, i, e) => (f(r, typeof i != "symbol" ? i + "" : i, e), e);
4
- import a from "./line.js";
5
- import m from "./point.js";
2
+ var f = (r, i, t) => i in r ? c(r, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[i] = t;
3
+ var o = (r, i, t) => (f(r, typeof i != "symbol" ? i + "" : i, t), t);
4
+ import m from "./line.js";
5
+ import a from "./point.js";
6
6
  import { uuid as P } from "../../shared-utils/uuid.js";
7
7
  import { Subscribe as g } from "@realsee/five";
8
8
  import "../utils/line.js";
9
+ import "../../shared-utils/five/FiveLine.js";
9
10
  import "@realsee/five/line";
10
11
  import "../utils/constants.js";
11
12
  import "three";
@@ -13,7 +14,7 @@ import "../utils/dom/distanceItem.js";
13
14
  import "../utils/dom/base.js";
14
15
  import "../utils/isNDCPointInScreen.js";
15
16
  import "../../shared-utils/three/centerPoint.js";
16
- class M {
17
+ class B {
17
18
  constructor(i) {
18
19
  o(this, "id", P());
19
20
  o(this, "lines", []);
@@ -25,8 +26,8 @@ class M {
25
26
  }
26
27
  get points() {
27
28
  const i = /* @__PURE__ */ new Set();
28
- return this.lines.forEach((e) => {
29
- i.add(e.points[0]), i.add(e.points[1]);
29
+ return this.lines.forEach((t) => {
30
+ i.add(t.points[0]), i.add(t.points[1]);
30
31
  }), Array.from(i);
31
32
  }
32
33
  addLine(i) {
@@ -34,8 +35,8 @@ class M {
34
35
  console.error(new Error("不能重复添加线段"));
35
36
  return;
36
37
  }
37
- const e = this.getLastPoint(), l = e && i.findAnotherPoint(e);
38
- if (e && !l) {
38
+ const t = this.getLastPoint(), l = t && i.findAnotherPoint(t);
39
+ if (t && !l) {
39
40
  console.error(new Error("传入线段无法与当前折线进行连接"));
40
41
  return;
41
42
  }
@@ -51,8 +52,8 @@ class M {
51
52
  this.lines.pop() && this.hook.emit("lineRemoved", i);
52
53
  }
53
54
  isLastLine(i) {
54
- const e = this.getLastLine();
55
- return e ? i.id === e.id : !1;
55
+ const t = this.getLastLine();
56
+ return t ? i.id === t.id : !1;
56
57
  }
57
58
  getLastLine() {
58
59
  return this.lines.slice(-1)[0];
@@ -65,14 +66,14 @@ class M {
65
66
  }
66
67
  clear() {
67
68
  const i = this.lines.slice();
68
- this.lines.length = 0, i.reduceRight((e, l) => this.hook.emit("lineRemoved", l), void 0);
69
+ this.lines.length = 0, i.reduceRight((t, l) => this.hook.emit("lineRemoved", l), void 0);
69
70
  }
70
71
  /** 是否产生重叠 */
71
72
  overlapWith(i) {
72
- return i.type === "point" ? this.includes(i) : i.type === "line" ? i.points.some((e) => this.includes(e)) : i.type === "polyline" ? i.points.some((e) => this.includes(e)) : !0;
73
+ return i.type === "point" ? this.includes(i) : i.type === "line" ? i.points.some((t) => this.includes(t)) : i.type === "polyline" ? i.points.some((t) => this.includes(t)) : !0;
73
74
  }
74
75
  includes(i) {
75
- return i.type === "point" ? this.points.find(({ id: e }) => e === i.id) !== void 0 : i.type === "line" ? this.lines.find(({ id: e }) => e === i.id) !== void 0 : !1;
76
+ return i.type === "point" ? this.points.find(({ id: t }) => t === i.id) !== void 0 : i.type === "line" ? this.lines.find(({ id: t }) => t === i.id) !== void 0 : !1;
76
77
  }
77
78
  isEmpty() {
78
79
  return this.lines.length === 0;
@@ -80,6 +81,9 @@ class M {
80
81
  getLastPoint() {
81
82
  return this.points.slice(-1)[0];
82
83
  }
84
+ toJSON() {
85
+ return this.toJson();
86
+ }
83
87
  toJson() {
84
88
  return {
85
89
  id: this.id,
@@ -88,29 +92,29 @@ class M {
88
92
  };
89
93
  }
90
94
  getPointByID(i) {
91
- return this.points.find(({ id: e }) => e === i);
95
+ return this.points.find(({ id: t }) => t === i);
92
96
  }
93
97
  fromJson(i) {
94
98
  this.clear(), this.id = i.id;
95
- const { getPoint: e } = u(), l = i.lines.map((t) => {
96
- const [d, p] = t.points, n = e(d), h = e(p);
99
+ const { getPoint: t } = u(), l = i.lines.map((e) => {
100
+ const [d, p] = e.points, n = t(d), h = t(p);
97
101
  if (!n || !h)
98
102
  throw new Error("线上的点不存在");
99
- const s = new a(n, h, this.model);
100
- return s.id = t.id, s.text = t.text, s;
103
+ const s = new m(n, h, this.model);
104
+ return s.id = e.id, s.text = e.text, s;
101
105
  });
102
106
  this.lines.push(...l), this.visiblePanoIndexes = i.visiblePanoIndexes;
103
107
  function u() {
104
- const t = /* @__PURE__ */ new Map();
108
+ const e = /* @__PURE__ */ new Map();
105
109
  function d(n) {
106
- const h = t.get(n.id);
110
+ const h = e.get(n.id);
107
111
  if (h)
108
112
  return h;
109
- const s = new m(n.position);
110
- return s.id = n.id, t.set(n.id, s), s;
113
+ const s = new a(n.position);
114
+ return s.id = n.id, e.set(n.id, s), s;
111
115
  }
112
116
  function p() {
113
- return Array.from(t.values());
117
+ return Array.from(e.values());
114
118
  }
115
119
  return { getPoint: d, getAllPoints: p };
116
120
  }
@@ -121,5 +125,5 @@ class M {
121
125
  }
122
126
  }
123
127
  export {
124
- M as Polyline
128
+ B as Polyline
125
129
  };
@@ -15,10 +15,6 @@ export interface GuideControllerParams {
15
15
  i18n?: (key: string) => string;
16
16
  tips?: PartialObjectDeep<MeasureTip>;
17
17
  tipStyle?: Partial<CSSStyleDeclaration>;
18
- startTip?: string;
19
- endTip?: string;
20
- firstPointTip?: string;
21
- nextPointTip?: string;
22
18
  pointSelectorMode?: PointSelectorMode;
23
19
  }
24
20
  export declare class GuideController {