@realsee/dnalogel 3.20.4 → 3.20.6

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 (369) hide show
  1. package/dist/GuideLinePlugin/typing.d.ts +1 -1
  2. package/dist/PanoMeasurePlugin/Controller/index.d.ts +3 -3
  3. package/dist/PanoMeasurePlugin/Model/index.d.ts +3 -3
  4. package/dist/PanoMeasurePlugin/Model/line.d.ts +1 -0
  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/index.cjs.js +14 -14
  9. package/dist/index.js +107 -102
  10. package/dist/index.umd.js +14 -14
  11. package/docs/assets/search.js +1 -1
  12. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +3 -3
  13. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +3 -3
  14. package/docs/classes/CSS3DRender.html +3 -3
  15. package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
  16. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +3 -3
  17. package/docs/classes/Magnifier.html +3 -3
  18. package/docs/classes/ModelRoomLabelController.html +3 -3
  19. package/docs/classes/MoveController.html +3 -3
  20. package/docs/classes/Object3DHelperController.html +3 -3
  21. package/docs/classes/PaintBrush.html +3 -3
  22. package/docs/classes/PanoMeasurePluginLine.html +20 -10
  23. package/docs/classes/PanoMeasurePluginModel.html +6 -6
  24. package/docs/classes/PanoMeasurePluginPoint.html +3 -3
  25. package/docs/classes/PanoMeasurePluginPolyline.html +22 -12
  26. package/docs/classes/PanoTagPluginController.html +3 -3
  27. package/docs/classes/Util.BetterTween.html +3 -3
  28. package/docs/classes/Util.Interval.html +3 -3
  29. package/docs/classes/Util.LineSegments.html +3 -3
  30. package/docs/classes/Util.Magnifier.html +3 -3
  31. package/docs/classes/Util.Object3D.html +3 -3
  32. package/docs/classes/Util.PointDomHelper.html +3 -3
  33. package/docs/classes/Util.PointHelper.html +3 -3
  34. package/docs/classes/Util.PointSelectorHelper.html +3 -3
  35. package/docs/classes/Util.Rectangle.html +3 -3
  36. package/docs/classes/WalkController.html +3 -3
  37. package/docs/enums/CameraMovementEffect.html +3 -3
  38. package/docs/enums/ContentType.html +3 -3
  39. package/docs/enums/DIRECTION.html +3 -3
  40. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +3 -3
  41. package/docs/enums/DimensionType.html +3 -3
  42. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +3 -3
  43. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +3 -3
  44. package/docs/enums/PaintBrushTypeEnum.html +3 -3
  45. package/docs/enums/PointType.html +3 -3
  46. package/docs/enums/Rotation.html +3 -3
  47. package/docs/functions/AreaMakerPlugin.html +3 -3
  48. package/docs/functions/CSS3DRenderPlugin.html +3 -3
  49. package/docs/functions/CameraMovementPlugin.html +3 -3
  50. package/docs/functions/CruisePlugin.html +3 -3
  51. package/docs/functions/CurrentPanoImagePlugin.html +3 -3
  52. package/docs/functions/GuideLinePlugin.html +3 -3
  53. package/docs/functions/ItemLabelPlugin.html +3 -3
  54. package/docs/functions/MapviewFloorplanPlugin.html +3 -3
  55. package/docs/functions/ModelChassisCompassPlugin.html +3 -3
  56. package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
  57. package/docs/functions/ModelFloorplanPlugin.html +3 -3
  58. package/docs/functions/ModelItemLabelPlugin.html +3 -3
  59. package/docs/functions/ModelRoomLabelPlugin.html +3 -3
  60. package/docs/functions/ModelTVVideoPlugin.html +3 -3
  61. package/docs/functions/ModelViewPlugin.html +3 -3
  62. package/docs/functions/MovePlugin.html +3 -3
  63. package/docs/functions/Object3DHelperPlugin.html +3 -3
  64. package/docs/functions/PanoCompassPlugin.html +3 -3
  65. package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
  66. package/docs/functions/PanoDoorLabelPlugin.html +3 -3
  67. package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
  68. package/docs/functions/PanoMeasurePlugin.html +3 -3
  69. package/docs/functions/PanoRulerPlugin.html +3 -3
  70. package/docs/functions/PanoRulerProPlugin.html +3 -3
  71. package/docs/functions/PanoSpatialTagPlugin.html +3 -3
  72. package/docs/functions/PanoTagPlugin.html +3 -3
  73. package/docs/functions/PanoVideoPlugin.html +3 -3
  74. package/docs/functions/PipelinePlugin.html +3 -3
  75. package/docs/functions/TopviewFloorplanPlugin.html +3 -3
  76. package/docs/functions/Util.absoluteUrl.html +3 -3
  77. package/docs/functions/Util.checkFiveModelLoaded.html +3 -3
  78. package/docs/functions/Util.equal.html +3 -3
  79. package/docs/functions/Util.getCoordsFromClient.html +3 -3
  80. package/docs/functions/Util.getCoordsFromElement.html +3 -3
  81. package/docs/functions/Util.getFrameTime.html +3 -3
  82. package/docs/functions/Util.getIntersectFromRelativePosition.html +3 -3
  83. package/docs/functions/Util.getRaycasterFromFivePointer.html +3 -3
  84. package/docs/functions/Util.isAbsoluteURL.html +3 -3
  85. package/docs/functions/Util.isModelLike.html +3 -3
  86. package/docs/functions/Util.isNil.html +3 -3
  87. package/docs/functions/Util.isPanoramaLike.html +3 -3
  88. package/docs/functions/Util.nextFrame.html +3 -3
  89. package/docs/functions/Util.notNil.html +3 -3
  90. package/docs/functions/Util.requestAnimationFrameInterval.html +3 -3
  91. package/docs/functions/Util.tweenProgress.html +3 -3
  92. package/docs/functions/Util.uuid.html +3 -3
  93. package/docs/functions/pluginFlag.html +3 -3
  94. package/docs/index.html +4 -4
  95. package/docs/interfaces/AddTagConfig.html +3 -3
  96. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
  97. package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
  98. package/docs/interfaces/AreaMakerPluginType.EventMap.html +3 -3
  99. package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
  100. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +3 -3
  101. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
  102. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
  103. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
  104. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -3
  105. package/docs/interfaces/AreaMakerPluginType.State.html +3 -3
  106. package/docs/interfaces/CSS3DRenderPluginEventMap.html +3 -3
  107. package/docs/interfaces/CSS3DRenderPluginState.html +3 -3
  108. package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
  109. package/docs/interfaces/CruisePluginTypes.Config.html +3 -3
  110. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +3 -3
  111. package/docs/interfaces/CruisePluginTypes.EventMap.html +3 -3
  112. package/docs/interfaces/CruisePluginTypes.MoveAction.html +3 -3
  113. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +3 -3
  114. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +3 -3
  115. package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
  116. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +3 -3
  117. package/docs/interfaces/CruisePluginTypes.PluginState.html +3 -3
  118. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +3 -3
  119. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +3 -3
  120. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
  121. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -3
  122. package/docs/interfaces/CurrentPanoImagePluginType.State.html +3 -3
  123. package/docs/interfaces/EventMap.html +3 -3
  124. package/docs/interfaces/FloorplanBounding.html +3 -3
  125. package/docs/interfaces/FloorplanData.html +3 -3
  126. package/docs/interfaces/FloorplanEntrance.html +3 -3
  127. package/docs/interfaces/FloorplanExtraObject.html +3 -3
  128. package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
  129. package/docs/interfaces/FloorplanFloorData.html +3 -3
  130. package/docs/interfaces/FloorplanImagePosition.html +3 -3
  131. package/docs/interfaces/FloorplanObserver.html +3 -3
  132. package/docs/interfaces/FloorplanOutlineItem.html +3 -3
  133. package/docs/interfaces/FloorplanPosition.html +3 -3
  134. package/docs/interfaces/FloorplanRoomItem.html +3 -3
  135. package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
  136. package/docs/interfaces/FloorplanServerBounding.html +3 -3
  137. package/docs/interfaces/FloorplanServerComputedData.html +3 -3
  138. package/docs/interfaces/FloorplanServerData.html +3 -3
  139. package/docs/interfaces/FloorplanServerDoorItem.html +3 -3
  140. package/docs/interfaces/FloorplanServerDoorPosition.html +3 -3
  141. package/docs/interfaces/FloorplanServerEntrance.html +3 -3
  142. package/docs/interfaces/FloorplanServerFloorData.html +3 -3
  143. package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
  144. package/docs/interfaces/FloorplanServerObserver.html +3 -3
  145. package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
  146. package/docs/interfaces/FloorplanServerPosition.html +3 -3
  147. package/docs/interfaces/FloorplanServerRoomItem.html +3 -3
  148. package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
  149. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +3 -3
  150. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
  151. package/docs/interfaces/GuideLinePluginType.EventMap.html +3 -3
  152. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +3 -3
  153. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +3 -3
  154. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +3 -3
  155. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -3
  156. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +3 -3
  157. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +3 -3
  158. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -3
  159. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +3 -3
  160. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +3 -3
  161. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +3 -3
  162. package/docs/interfaces/GuideLinePluginType.PluginState.html +3 -3
  163. package/docs/interfaces/GuideLinePluginType.Route.html +3 -3
  164. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +3 -3
  165. package/docs/interfaces/HelperOffset.html +3 -3
  166. package/docs/interfaces/ImagePlaneGroup.html +3 -3
  167. package/docs/interfaces/ItemLabelPluginData.html +3 -3
  168. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +3 -3
  169. package/docs/interfaces/ItemLabelPluginParametersType.html +3 -3
  170. package/docs/interfaces/MinMax.html +3 -3
  171. package/docs/interfaces/ModelChassisCompassPluginData.html +3 -3
  172. package/docs/interfaces/ModelChassisCompassPluginExportType.html +3 -3
  173. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -3
  174. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +3 -3
  175. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +3 -3
  176. package/docs/interfaces/ModelItemLabelPluginData.html +3 -3
  177. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +3 -3
  178. package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -3
  179. package/docs/interfaces/ModelRoomLabelPluginData.html +3 -3
  180. package/docs/interfaces/ModelTVVideoPluginData.html +3 -3
  181. package/docs/interfaces/ModelTVVideoPluginExportType.html +3 -3
  182. package/docs/interfaces/ModelTVVideoPluginParameterType.html +3 -3
  183. package/docs/interfaces/ModelViewPluginExportType.html +3 -3
  184. package/docs/interfaces/Object3DHelperState.html +3 -3
  185. package/docs/interfaces/ObjectHelperControllers.html +3 -3
  186. package/docs/interfaces/PaintBrushAction.html +3 -3
  187. package/docs/interfaces/PaintBrushConfigs.html +3 -3
  188. package/docs/interfaces/PaintBrushState.html +3 -3
  189. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +3 -3
  190. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +3 -3
  191. package/docs/interfaces/PanoMeasureParameterType.html +3 -3
  192. package/docs/interfaces/PanoMeasurePluginLineJson.html +3 -3
  193. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
  194. package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -3
  195. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +3 -3
  196. package/docs/interfaces/PanoRulerPluginExportType.html +3 -3
  197. package/docs/interfaces/PanoRulerPluginOptions.html +3 -3
  198. package/docs/interfaces/PanoRulerPluginParameterType.html +3 -3
  199. package/docs/interfaces/PanoRulerProPluginExportType.html +3 -3
  200. package/docs/interfaces/PanoRulerProPluginOptions.html +3 -3
  201. package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -3
  202. package/docs/interfaces/PanoRulerProPluginState.html +3 -3
  203. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +3 -3
  204. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +3 -3
  205. package/docs/interfaces/PanoSpatialTagPluginData.html +3 -3
  206. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +3 -3
  207. package/docs/interfaces/PanoSpatialTagPluginExportType.html +3 -3
  208. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +3 -3
  209. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +3 -3
  210. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +3 -3
  211. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +3 -3
  212. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
  213. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +3 -3
  214. package/docs/interfaces/PanoVideoPluginType.PluginData.html +3 -3
  215. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +3 -3
  216. package/docs/interfaces/PanoVideoPluginType.PluginState.html +3 -3
  217. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +3 -3
  218. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +3 -3
  219. package/docs/interfaces/Point.html +3 -3
  220. package/docs/interfaces/Room.html +3 -3
  221. package/docs/interfaces/RoomInfo.html +3 -3
  222. package/docs/interfaces/RoomLabel.html +3 -3
  223. package/docs/interfaces/RoomRules.html +3 -3
  224. package/docs/interfaces/Rooms.html +3 -3
  225. package/docs/interfaces/Scissor.html +3 -3
  226. package/docs/interfaces/State.html +3 -3
  227. package/docs/interfaces/TagCacheInterface.html +3 -3
  228. package/docs/interfaces/TagConfig.html +3 -3
  229. package/docs/interfaces/TagGLTFObjectGroup.html +3 -3
  230. package/docs/interfaces/TagIconUrl.html +3 -3
  231. package/docs/interfaces/TagObjectGroup.html +3 -3
  232. package/docs/interfaces/TagStyle.html +3 -3
  233. package/docs/interfaces/Tags.html +3 -3
  234. package/docs/interfaces/TemporaryState.html +3 -3
  235. package/docs/interfaces/Util.MagnifierParameter.html +3 -3
  236. package/docs/interfaces/Util.MouseGroupParameter.html +3 -3
  237. package/docs/interfaces/Util.PointIntersection.html +3 -3
  238. package/docs/modules/AreaMakerPluginType.html +3 -3
  239. package/docs/modules/CruisePluginTypes.html +3 -3
  240. package/docs/modules/CurrentPanoImagePluginType.html +3 -3
  241. package/docs/modules/GuideLineItem.html +3 -3
  242. package/docs/modules/GuideLineModeItem.html +3 -3
  243. package/docs/modules/GuideLinePluginType.html +3 -3
  244. package/docs/modules/PanoVideoPluginType.html +3 -3
  245. package/docs/modules/Util.html +3 -3
  246. package/docs/modules.html +4 -4
  247. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +3 -3
  248. package/docs/types/AreaMakerPluginType.ItemRenderer.html +3 -3
  249. package/docs/types/AreaMakerPluginType.PluginData.html +3 -3
  250. package/docs/types/AreaMakerPluginType.ServerData.html +3 -3
  251. package/docs/types/ArrayPosition.html +3 -3
  252. package/docs/types/AudioAppearance.html +3 -3
  253. package/docs/types/AudioTagTypeConfigKey.html +3 -3
  254. package/docs/types/CSS3DRenderExportType.html +3 -3
  255. package/docs/types/CSS3DRenderPluginExportType.html +3 -3
  256. package/docs/types/CSS3DRenderPluginParameterType.html +3 -3
  257. package/docs/types/ClassFunctionParameters.html +3 -3
  258. package/docs/types/Color.html +3 -3
  259. package/docs/types/ContentTypeConfigKey.html +3 -3
  260. package/docs/types/ContentTypeConfigKeySplit.html +3 -3
  261. package/docs/types/ContentTypeMap.html +3 -3
  262. package/docs/types/Create3DDomContainerReturnType.html +3 -3
  263. package/docs/types/Create3DElementReturnType.html +3 -3
  264. package/docs/types/CruisePluginExportType.html +3 -3
  265. package/docs/types/CruisePluginTypes.CruiseData.html +3 -3
  266. package/docs/types/CruisePluginTypes.MoveEffect.html +3 -3
  267. package/docs/types/CurrentPanoImagePluginExportType.html +3 -3
  268. package/docs/types/DeprecatedMediaPlaneProperty.html +3 -3
  269. package/docs/types/DeprecatedTagProperty.html +3 -3
  270. package/docs/types/Direction-1.html +3 -3
  271. package/docs/types/Direction4.html +3 -3
  272. package/docs/types/ElementRenderer.html +3 -3
  273. package/docs/types/FloorplanRuleLabels.html +3 -3
  274. package/docs/types/FloorplanServerRuleLabels.html +3 -3
  275. package/docs/types/GuideLinePluginExportType.html +3 -3
  276. package/docs/types/GuideLinePluginType.GuideLineItem.html +5 -5
  277. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +3 -3
  278. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +3 -3
  279. package/docs/types/GuideLinePluginType.GuideLineStyle.html +3 -3
  280. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +3 -3
  281. package/docs/types/GuideLinePluginType.PathItem.html +3 -3
  282. package/docs/types/GuideLinePluginType.PluginData.html +3 -3
  283. package/docs/types/HelperEventMap.html +3 -3
  284. package/docs/types/InternalHelperEventMap.html +3 -3
  285. package/docs/types/LoadTagConfig.html +3 -3
  286. package/docs/types/MapviewFloorplanPluginParameterType.html +3 -3
  287. package/docs/types/MapviewFloorplanPluginReturnType.html +3 -3
  288. package/docs/types/MediaData.html +3 -3
  289. package/docs/types/MediaStore.html +3 -3
  290. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +3 -3
  291. package/docs/types/ModelFloorplanPluginParameterType.html +3 -3
  292. package/docs/types/ModelFloorplanPluginReturnType.html +3 -3
  293. package/docs/types/ModelId.html +3 -3
  294. package/docs/types/ModelRoomLabelPluginParameters.html +3 -3
  295. package/docs/types/ModelRoomLabelPluginReturnType.html +3 -3
  296. package/docs/types/MoveArgs.html +3 -3
  297. package/docs/types/MoveOpts.html +3 -3
  298. package/docs/types/Object3DHelperEventMap.html +3 -3
  299. package/docs/types/ObjectFit.html +3 -3
  300. package/docs/types/PaintBrushEventMap.html +3 -3
  301. package/docs/types/PanoCompassPluginData.html +3 -3
  302. package/docs/types/PanoCompassPluginExportType.html +3 -3
  303. package/docs/types/PanoCompassPluginParameterType.html +3 -3
  304. package/docs/types/PanoFloorplanRadarPluginParameterType.html +3 -3
  305. package/docs/types/PanoFloorplanRadarPluginReturnType.html +3 -3
  306. package/docs/types/PanoIndex.html +3 -3
  307. package/docs/types/PanoMeasurePluginEvent.html +3 -3
  308. package/docs/types/PanoMeasureReturnType.html +3 -3
  309. package/docs/types/PanoSpatialTagPluginId.html +3 -3
  310. package/docs/types/PanoTagPluginExportInterface.html +3 -3
  311. package/docs/types/PanoTagPluginParamsInterface.html +3 -3
  312. package/docs/types/PanoVideoPluginParameterType.html +3 -3
  313. package/docs/types/PanoVideoPluginReturnType.html +3 -3
  314. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +3 -3
  315. package/docs/types/PipelinePluginParameterType.html +3 -3
  316. package/docs/types/PipelinePluginReturnType.html +3 -3
  317. package/docs/types/PlaneTag.html +3 -3
  318. package/docs/types/Point2DTag.html +3 -3
  319. package/docs/types/Point3DTag.html +3 -3
  320. package/docs/types/PointTag.html +3 -3
  321. package/docs/types/PointTagInstance.html +3 -3
  322. package/docs/types/Position.html +3 -3
  323. package/docs/types/RotateArgs.html +3 -3
  324. package/docs/types/RotateOpts.html +3 -3
  325. package/docs/types/RuleLabelsKey.html +3 -3
  326. package/docs/types/RuleLabelsValue.html +3 -3
  327. package/docs/types/StickType.html +3 -3
  328. package/docs/types/Tag.html +3 -3
  329. package/docs/types/Tag2D.html +3 -3
  330. package/docs/types/Tag3D.html +3 -3
  331. package/docs/types/TagConfigByKey.html +3 -3
  332. package/docs/types/TagContentType.html +3 -3
  333. package/docs/types/TagContentTypeMapping.html +3 -3
  334. package/docs/types/TagDimensionType.html +3 -3
  335. package/docs/types/TagElement.html +3 -3
  336. package/docs/types/TagEvents.html +3 -3
  337. package/docs/types/TagGLTFObject.html +3 -3
  338. package/docs/types/TagHooks.html +3 -3
  339. package/docs/types/TagId.html +3 -3
  340. package/docs/types/TagInstance.html +3 -3
  341. package/docs/types/TagPointType.html +3 -3
  342. package/docs/types/TagRendererMap.html +3 -3
  343. package/docs/types/TopviewFloorplanPluginParameterType.html +3 -3
  344. package/docs/types/TopviewFloorplanPluginReturnType.html +3 -3
  345. package/docs/types/WorkCode.html +3 -3
  346. package/docs/variables/FLOOR_TYPE_MAP.html +3 -3
  347. package/docs/variables/PLUGIN.html +3 -3
  348. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +3 -3
  349. package/docs/variables/ROOM_TYPE_MAP.html +3 -3
  350. package/docs/variables/defaultGlobalConfig.html +3 -3
  351. package/docs/variables/itemLabelPluginServerParams.html +3 -3
  352. package/docs/variables/modelItemLabelPluginServerParams.html +3 -3
  353. package/docs/variables/modelRoomLabelPluginServerParams.html +3 -3
  354. package/libs/GuideLinePlugin/Controller.js +24 -26
  355. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +33 -33
  356. package/libs/GuideLinePlugin/typing.d.ts +1 -1
  357. package/libs/PanoMeasurePlugin/Controller/index.d.ts +3 -3
  358. package/libs/PanoMeasurePlugin/Controller/index.js +50 -50
  359. package/libs/PanoMeasurePlugin/Model/index.d.ts +3 -3
  360. package/libs/PanoMeasurePlugin/Model/line.d.ts +1 -0
  361. package/libs/PanoMeasurePlugin/Model/line.js +8 -5
  362. package/libs/PanoMeasurePlugin/Model/polyline.d.ts +1 -0
  363. package/libs/PanoMeasurePlugin/Model/polyline.js +3 -0
  364. package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +0 -4
  365. package/libs/PanoMeasurePlugin/typings/data.d.ts +1 -1
  366. package/libs/PanoRulerProPlugin/Controller.js +22 -21
  367. package/libs/base/BasePlugin.js +1 -1
  368. package/libs/shared-utils/logger.js +1 -1
  369. package/package.json +1 -1
@@ -209,17 +209,17 @@ class H {
209
209
  this.mesh.material.uniforms.vOffset.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
210
210
  });
211
211
  i(this, "onFlickerAnimeUpdate", (e) => {
212
- var r, a, o, l;
212
+ var r, o, a, l;
213
213
  const { progress: t } = e, s = 1 - t;
214
- this.mesh.material.uniforms.flicker.value = s, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && b(this.startTagContainer.tag) && ((o = this.startTagContainer.app) == null || o.$set(p(d({}, this.startTagContainer.tag.data), {
214
+ 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(d({}, this.startTagContainer.tag.data), {
215
215
  opacity: s,
216
216
  name: this.name,
217
- distance: Math.round((a = (r = this.curvePath) == null ? void 0 : r.getLength()) != null ? a : 0)
217
+ distance: Math.round((o = (r = this.curvePath) == null ? void 0 : r.getLength()) != null ? o : 0)
218
218
  }))), this.endTagContainer.tag && b(this.endTagContainer.tag) && ((l = this.endTagContainer.app) == null || l.$set(p(d({}, this.endTagContainer.tag.data), { opacity: s })));
219
219
  });
220
220
  i(this, "logWarning", (e) => L("GuideLineModeItem: ", e));
221
221
  i(this, "logError", (e) => S("GuideLineModeItem: ", e));
222
- var a, o;
222
+ var o, a;
223
223
  this.five = e, this.mode = t.mode, this.plugin = t.plugin, this.parent = t.parent, this.startTagContainer = { tag: null, plugin: new P(this.five) }, this.endTagContainer = { tag: null, plugin: new P(this.five) };
224
224
  const s = new n.BufferGeometry(), r = new n.ShaderMaterial({
225
225
  vertexShader: R,
@@ -242,7 +242,7 @@ class H {
242
242
  vOffset: { value: 0 }
243
243
  }
244
244
  });
245
- this.mesh = new n.Mesh(s, r), 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 = (a = this.five.model) == null ? void 0 : a.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);
245
+ this.mesh = new n.Mesh(s, r), 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 = (o = this.five.model) == null ? void 0 : o.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);
246
246
  }
247
247
  get panoGroup() {
248
248
  return this._panoGroup;
@@ -291,8 +291,8 @@ class H {
291
291
  return this.logError("setPathByPanoGroup: work is not ready");
292
292
  const s = W(e);
293
293
  if (this._panoGroup = s, (t == null ? void 0 : t.skipPanoGroup) !== void 0) {
294
- const a = t.skipPanoGroup ? s.map((o) => this.plugin.workUtils.getObserverStandingPosition(o)).filter(w) : null;
295
- this.skippedPositions = a;
294
+ const o = t.skipPanoGroup ? s.map((a) => this.plugin.workUtils.getObserverStandingPosition(a)).filter(w) : null;
295
+ this.skippedPositions = o;
296
296
  }
297
297
  const r = this.getPathFromPanoGroup(s, this.five.work, t);
298
298
  this.path = r, this.setGeometryByPath(r, t);
@@ -302,41 +302,41 @@ class H {
302
302
  var c, y, C;
303
303
  if (this.disposed)
304
304
  return this.logError("disposed");
305
- const s = (c = t == null ? void 0 : t.scale) != null ? c : this.scale, r = (y = t == null ? void 0 : t.width) != null ? y : this.width, a = (C = t == null ? void 0 : t.unit_length) != null ? C : this.unitLength;
306
- this.scale = s, this.width = r, this.unitLength = a;
307
- const { geometry: o, maxU: l, curvePath: u, curvePoints: g } = O({
305
+ const s = (c = t == null ? void 0 : t.scale) != null ? c : this.scale, r = (y = t == null ? void 0 : t.width) != null ? y : this.width, o = (C = t == null ? void 0 : t.unit_length) != null ? C : this.unitLength;
306
+ this.scale = s, this.width = r, this.unitLength = o;
307
+ const { geometry: a, maxU: l, curvePath: u, curvePoints: g } = O({
308
308
  path: e,
309
309
  width: r * s,
310
- unitLength: a * s,
310
+ unitLength: o * s,
311
311
  skipPositions: this.skippedPositions
312
312
  });
313
- this._curvePath = u, this._curvePoints = g, this.mesh.geometry = o, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = l, this.five.needsRender = !0;
313
+ this._curvePath = u, this._curvePoints = g, this.mesh.geometry = a, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = l, this.five.needsRender = !0;
314
314
  const m = e, f = d(d({}, this.geometryStyle), t);
315
315
  this.path = m, this.geometryStyle = f;
316
316
  }
317
317
  /** 设置线条材质 */
318
318
  setMartial(e) {
319
- var s;
319
+ var s, r;
320
320
  if (this.disposed)
321
321
  return this.logError("disposed");
322
- (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), ((s = e == null ? void 0 : e.texture) == null ? void 0 : s.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), (e == null ? void 0 : e.border_width) !== void 0 && this.setBorderWidth(e.border_width), (e == null ? void 0 : e.background_clip) !== void 0 && this.setBackgroundClip(e.background_clip);
322
+ (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), this.setTextureUrl((r = (s = e == null ? void 0 : e.texture) == null ? void 0 : s.url) != null ? r : "https://vr-image-4.realsee-cdn.cn/release/web/arrow1.ebe7d0ff.png"), (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), (e == null ? void 0 : e.border_width) !== void 0 && this.setBorderWidth(e.border_width), (e == null ? void 0 : e.background_clip) !== void 0 && this.setBackgroundClip(e.background_clip);
323
323
  const t = d(d({}, this.materialStyle), e);
324
324
  this.materialStyle = t;
325
325
  }
326
326
  /** 设置模型状态 */
327
327
  setMeshStyle(e) {
328
328
  if (e != null && e.translate) {
329
- const r = new n.Vector3(), a = new n.Vector3().fromArray(e.translate);
330
- a.y += this.heightOffset, r.add(a), this.mesh.position.copy(r), s(this.startTagContainer, a), s(this.endTagContainer, a);
329
+ const r = new n.Vector3(), o = new n.Vector3().fromArray(e.translate);
330
+ o.y += this.heightOffset, r.add(o), this.mesh.position.copy(r), s(this.startTagContainer, o), s(this.endTagContainer, o);
331
331
  }
332
332
  const t = d(d({}, this.meshStyle), e);
333
333
  this.meshStyle = t;
334
- function s(r, a) {
334
+ function s(r, o) {
335
335
  if (!r.tag)
336
336
  return;
337
- const o = new n.Vector3().fromArray(r.tag.position);
338
- o.add(a);
339
- const l = o.toArray();
337
+ const a = new n.Vector3().fromArray(r.tag.position);
338
+ a.add(o);
339
+ const l = a.toArray();
340
340
  r.plugin.changeTagById(r.tag.id, { position: l });
341
341
  }
342
342
  }
@@ -439,36 +439,36 @@ class H {
439
439
  var u;
440
440
  if (!this.curvePoints || !this.curvePath)
441
441
  return [];
442
- const e = this.curvePoints.length, t = this.curvePath.getLength(), s = e - 1, r = t / s, a = (u = this.curvePath.getLengths(s)) != null ? u : [], o = [];
442
+ const e = this.curvePoints.length, t = this.curvePath.getLength(), s = e - 1, r = t / s, o = (u = this.curvePath.getLengths(s)) != null ? u : [], a = [];
443
443
  let l = 0;
444
444
  for (let g = 0; g < e; g++) {
445
445
  const m = this.curvePoints[g], f = this.plugin.workUtils.getObserverStandingPosition(l);
446
446
  if (!f)
447
447
  break;
448
- f.clone().setY(0).distanceTo(m.clone().setY(0)) < r && (o.push(a[g]), l += 1);
448
+ f.clone().setY(0).distanceTo(m.clone().setY(0)) < r && (a.push(o[g]), l += 1);
449
449
  }
450
- return o;
450
+ return a;
451
451
  }
452
452
  setTag(e, t) {
453
453
  const s = this.curvePath, r = e === "start" ? this.startTagContainer : this.endTagContainer;
454
454
  if (!(t != null && t.data))
455
455
  return r.plugin.clearTags();
456
- const o = I({}, {
456
+ const a = I({}, {
457
457
  contentType: "Custom",
458
458
  stickType: "2DPoint",
459
459
  config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"], followModelVisibility: !1 } },
460
460
  style: { point: { enabled: !1 } },
461
461
  data: {}
462
462
  }, t);
463
- r.tag = o, b(o) && (r.tag.element = (u) => {
463
+ r.tag = a, b(a) && (r.tag.element = (u) => {
464
464
  var f, c;
465
465
  (f = r.app) == null || f.$destroy();
466
- const g = e === "start" ? p(d({}, o.data), { name: this.name, distance: Math.round((c = s.getLength()) != null ? c : 0), i18n: this.plugin.config.i18n }) : o.data, m = new B({ target: u, intro: !0, props: g });
466
+ const g = e === "start" ? p(d({}, a.data), { name: this.name, distance: Math.round((c = s.getLength()) != null ? c : 0), i18n: this.plugin.config.i18n }) : a.data, m = new B({ target: u, intro: !0, props: g });
467
467
  return r.app = m, () => m.$destroy();
468
468
  }), r.plugin.load({ tagList: [r.tag] });
469
469
  const l = this.meshStyle.translate;
470
- if (l && o.position) {
471
- const u = new n.Vector3().fromArray(o.position), g = new n.Vector3().fromArray(l);
470
+ if (l && a.position) {
471
+ const u = new n.Vector3().fromArray(a.position), g = new n.Vector3().fromArray(l);
472
472
  u.add(g), u.y += this.heightOffset;
473
473
  const m = u.toArray();
474
474
  r.plugin.changeTagById(r.tag.id, { position: m });
@@ -484,9 +484,9 @@ class H {
484
484
  getPathFromPanoGroup(e, t, s) {
485
485
  if (e.length < 2)
486
486
  return [];
487
- const r = e.map((a) => {
488
- var o;
489
- return (o = this.plugin.workUtils.getObserverStandingPosition(a)) == null ? void 0 : o.toArray();
487
+ const r = e.map((o) => {
488
+ var a;
489
+ return (a = this.plugin.workUtils.getObserverStandingPosition(o)) == null ? void 0 : a.toArray();
490
490
  }).filter(w);
491
491
  return [d({ type: "CatmullRomCurve3", points: r }, s)];
492
492
  }
@@ -494,11 +494,11 @@ class H {
494
494
  function b(h) {
495
495
  return h.contentType === "Custom";
496
496
  }
497
- const oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
497
+ const ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
498
498
  __proto__: null,
499
499
  GuideLineModeItem: H
500
500
  }, Symbol.toStringTag, { value: "Module" }));
501
501
  export {
502
502
  H as GuideLineModeItem,
503
- oe as GuideLineModeItem$1
503
+ ae as GuideLineModeItem$1
504
504
  };
@@ -68,7 +68,7 @@ export interface GuideLineItemContainer<T> {
68
68
  /** 单条路线的数据 */
69
69
  export type GuideLineItem = RequireAtLeastOne<{
70
70
  /** server ID */
71
- id?: number;
71
+ id?: number | string;
72
72
  /** client ID,不存在时,会使用 String(id) 作为 client ID */
73
73
  render_id?: string;
74
74
  /** 路线名称 */
@@ -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";
@@ -111,37 +111,37 @@ import "../../vendor/object-assign-deep/objectAssignDeep.js";
111
111
  import "../Components/Tip.js";
112
112
  class Et {
113
113
  constructor(e, t) {
114
- i(this, "hasOpen", !1);
115
- i(this, "hook", new x());
116
- i(this, "magnifier");
117
- i(this, "controller", null);
114
+ r(this, "hasOpen", !1);
115
+ r(this, "hook", new G());
116
+ r(this, "magnifier");
117
+ r(this, "controller", null);
118
118
  /** 允许的测量类型 */
119
- i(this, "allowMeasureType");
119
+ r(this, "allowMeasureType");
120
120
  /** 当前的测量类型 */
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");
121
+ r(this, "currentMeasureType");
122
+ r(this, "five");
123
+ r(this, "model");
124
+ r(this, "group");
125
+ r(this, "config");
126
+ r(this, "isMobile");
127
+ r(this, "useUIController");
128
+ r(this, "params");
129
+ r(this, "useGuideController");
130
+ r(this, "container", document.createElement("div"));
131
+ r(this, "shortcutKeyController");
132
132
  /** 关闭插件功能
133
133
  * @description 清除标尺线条
134
134
  * @description 还原点位展示和默认鼠标 UI
135
135
  */
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);
136
+ r(this, "disable", () => {
137
+ var e, t, i, o;
138
+ 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
139
  });
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);
140
+ 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
141
  /** 变更场景
142
142
  * @description 如果从编辑场景改变到观看场景,不会自动保存,默认丢弃所有改动
143
143
  */
144
- i(this, "changeMode", (e) => {
144
+ r(this, "changeMode", (e) => {
145
145
  var o;
146
146
  if (!this.hasOpen || this.getCurrentMode() === e)
147
147
  return;
@@ -150,36 +150,36 @@ class Et {
150
150
  View: P,
151
151
  Watch: v,
152
152
  Edit: l,
153
- Mixed: a
153
+ Mixed: h
154
154
  };
155
155
  if (!t[e])
156
156
  throw new Error("不存在的 Mode");
157
- const r = this.createControllerParams();
158
- this.controller = new t[e](r), this.hook.emit("modeChange", e);
157
+ const i = this.createControllerParams();
158
+ this.controller = new t[e](i), this.hook.emit("modeChange", e);
159
159
  });
160
160
  /**
161
161
  * @description: 切换测量的类型
162
162
  */
163
- i(this, "changeMeasureType", (e) => {
163
+ r(this, "changeMeasureType", (e) => {
164
164
  this.currentMeasureType = e, this.hook.emit("measureTypeChange", e);
165
165
  });
166
166
  var n, c, u, d, f, g, M, y, C;
167
167
  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 : {};
168
+ const i = (y = (M = t.editParams) == null ? void 0 : M.pointSelectorMode) != null ? y : B ? "fixed" : "cursor", o = (C = this.params.openParams) != null ? C : {};
169
169
  if (this.params.useUIController !== !1) {
170
- const m = h({
170
+ const m = a({
171
171
  container: this.container,
172
172
  openParams: o,
173
173
  i18n: t.i18n,
174
- pointSelectorMode: r,
174
+ pointSelectorMode: i,
175
175
  useNewUI: this.allowMeasureType.length > 1
176
176
  }, I(this.params.useUIController));
177
177
  this.useUIController = new S(this, m);
178
178
  }
179
179
  if (this.params.useGuideController !== !1) {
180
- const m = h({
180
+ const m = a({
181
181
  container: this.container,
182
- pointSelectorMode: r,
182
+ pointSelectorMode: i,
183
183
  i18n: t.i18n
184
184
  }, I(this.params.useGuideController));
185
185
  this.useGuideController = new L(this, m);
@@ -207,8 +207,8 @@ class Et {
207
207
  * @description 会隐藏当前 VR 内的点位展示
208
208
  */
209
209
  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));
210
+ var t, i;
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(), (i = this.useGuideController) == null || i.show(), this.shortcutKeyController = new O(this, this.five), this.hook.emit("enable", !0));
212
212
  }
213
213
  /** 进入编辑模式 */
214
214
  edit(e) {
@@ -252,20 +252,20 @@ class Et {
252
252
  */
253
253
  save(e) {
254
254
  var o;
255
- if (!(this.controller instanceof l) && !(this.controller instanceof a))
255
+ if (!(this.controller instanceof l) && !(this.controller instanceof h))
256
256
  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) => {
257
+ const t = (o = e == null ? void 0 : e.mode) != null ? o : "View", i = this.controller.model.areas;
258
+ return this.controller instanceof l ? this.controller.complete() : i.forEach((n) => {
259
259
  n.showArea(), this.model.addArea(n);
260
260
  }), this.changeMode(t), this;
261
261
  }
262
262
  /** Mixed 模式才有用,添加起点 */
263
263
  addStartPoint() {
264
- this.controller instanceof a && this.hook.emit("willChangeState", "watching", "editing");
264
+ this.controller instanceof h && this.hook.emit("willChangeState", "watching", "editing");
265
265
  }
266
266
  /** Mixed 模式才有用,添加终点 */
267
267
  addEndPoint() {
268
- this.controller instanceof a && this.hook.emit("willChangeState", "editing", "watching");
268
+ this.controller instanceof h && this.hook.emit("willChangeState", "editing", "watching");
269
269
  }
270
270
  /** 导出数据 */
271
271
  toJson() {
@@ -279,20 +279,20 @@ class Et {
279
279
  changeIsMobile(e) {
280
280
  }
281
281
  changeConfigs(e) {
282
- var t, r;
283
- Object.assign(this.config, e), (t = this.controller) == null || t.updateDistanceUI(), (r = this.controller) == null || r.updateAreaUI();
282
+ var t, i;
283
+ Object.assign(this.config, e), (t = this.controller) == null || t.updateDistanceUI(), (i = this.controller) == null || i.updateAreaUI();
284
284
  }
285
285
  /** 设置线段的文本 */
286
286
  setCustomText(e, t) {
287
287
  var o;
288
- const r = this.model.getLineByID(e);
289
- if (!r)
288
+ const i = this.model.getLineByID(e);
289
+ if (!i)
290
290
  throw new Error("不存在的线段");
291
- r.setText(t), (o = this.controller) == null || o.updateDistanceUI();
291
+ i.setText(t), (o = this.controller) == null || o.updateDistanceUI();
292
292
  }
293
293
  createControllerParams() {
294
- var r, o;
295
- const e = (r = this.params.openParams) != null ? r : {}, t = (o = this.params.editParams) != null ? o : {};
294
+ var i, o;
295
+ const e = (i = this.params.openParams) != null ? i : {}, t = (o = this.params.editParams) != null ? o : {};
296
296
  return e.isMobile = this.isMobile, {
297
297
  five: this.five,
298
298
  hook: this.hook,
@@ -305,7 +305,7 @@ class Et {
305
305
  editParams: t,
306
306
  magnifierParams: this.params.magnifierParams,
307
307
  getMeasureType: () => this.currentMeasureType,
308
- mouseGroup: G(h({}, e.crossHairParameter)),
308
+ mouseGroup: x(a({}, e.crossHairParameter)),
309
309
  userDistanceItemCreator: this.params.userDistanceItemCreator
310
310
  };
311
311
  }
@@ -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 {};
@@ -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,5 +1,5 @@
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";
@@ -11,7 +11,7 @@ import "three";
11
11
  import "../utils/dom/base.js";
12
12
  import "../utils/isNDCPointInScreen.js";
13
13
  import "../../shared-utils/three/centerPoint.js";
14
- class l {
14
+ class r {
15
15
  constructor(t, i, o) {
16
16
  e(this, "id");
17
17
  e(this, "selected", !1);
@@ -65,14 +65,17 @@ class l {
65
65
  setText(t) {
66
66
  this.text = t, this.hook.emit("textChanged", t);
67
67
  }
68
+ toJSON() {
69
+ return this.toJson();
70
+ }
68
71
  toJson() {
69
72
  return { id: this.id, points: this.points.map((t) => t.toJson()), text: this.text };
70
73
  }
71
74
  clone() {
72
- const t = new l(this.points[0].clone(), this.points[1].clone(), this.model);
75
+ const t = new r(this.points[0].clone(), this.points[1].clone(), this.model);
73
76
  return t.text = this.text, t;
74
77
  }
75
78
  }
76
79
  export {
77
- l as default
80
+ r as default
78
81
  };
@@ -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;
@@ -80,6 +80,9 @@ class M {
80
80
  getLastPoint() {
81
81
  return this.points.slice(-1)[0];
82
82
  }
83
+ toJSON() {
84
+ return this.toJson();
85
+ }
83
86
  toJson() {
84
87
  return {
85
88
  id: this.id,
@@ -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 {
@@ -13,7 +13,7 @@ export interface PointJson {
13
13
  id: string;
14
14
  position: number[];
15
15
  }
16
- export interface PluginData {
16
+ export interface MeasurePluginData {
17
17
  polylines: PolylineJson[];
18
18
  }
19
19
  /** 开放可配置参数 */
@@ -1,30 +1,30 @@
1
1
  var m = Object.defineProperty;
2
2
  var f = Object.getOwnPropertySymbols;
3
3
  var v = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
4
- var p = (i, e, t) => e in i ? m(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, c = (i, e) => {
5
- for (var t in e || (e = {}))
6
- v.call(e, t) && p(i, t, e[t]);
4
+ var p = (i, t, e) => t in i ? m(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, c = (i, t) => {
5
+ for (var e in t || (t = {}))
6
+ v.call(t, e) && p(i, e, t[e]);
7
7
  if (f)
8
- for (var t of f(e))
9
- b.call(e, t) && p(i, t, e[t]);
8
+ for (var e of f(t))
9
+ b.call(t, e) && p(i, e, t[e]);
10
10
  return i;
11
11
  };
12
- var r = (i, e, t) => (p(i, typeof e != "symbol" ? e + "" : e, t), t);
13
- var d = (i, e, t) => new Promise((a, o) => {
12
+ var r = (i, t, e) => (p(i, typeof t != "symbol" ? t + "" : t, e), e);
13
+ var d = (i, t, e) => new Promise((a, o) => {
14
14
  var n = (s) => {
15
15
  try {
16
- h(t.next(s));
16
+ h(e.next(s));
17
17
  } catch (u) {
18
18
  o(u);
19
19
  }
20
20
  }, l = (s) => {
21
21
  try {
22
- h(t.throw(s));
22
+ h(e.throw(s));
23
23
  } catch (u) {
24
24
  o(u);
25
25
  }
26
26
  }, h = (s) => s.done ? a(s.value) : Promise.resolve(s.value).then(n, l);
27
- h((t = t.apply(i, e)).next());
27
+ h((e = e.apply(i, t)).next());
28
28
  });
29
29
  import I from "./RulerItems.js";
30
30
  import "../vendor/svelte/internal/index.js";
@@ -38,7 +38,7 @@ import "../shared-utils/throttle.js";
38
38
  import "three";
39
39
  import "./RulerItem.js";
40
40
  class A {
41
- constructor(e, t) {
41
+ constructor(t, e) {
42
42
  r(this, "five");
43
43
  r(this, "container", document.createElement("div"));
44
44
  r(this, "panoRulerProData");
@@ -48,26 +48,26 @@ class A {
48
48
  loaded: !1,
49
49
  options: {
50
50
  className: "",
51
- distanceText: (e) => `${e.toFixed(1)}m`
51
+ distanceText: (t) => `${t.toFixed(1)}m`
52
52
  }
53
53
  });
54
54
  var a, o;
55
- this.five = e, this.container.classList.add("panoRulerProPlugin-container"), this.container.setAttribute(
55
+ this.five = t, this.container.classList.add("panoRulerProPlugin-container"), this.container.setAttribute(
56
56
  "style",
57
57
  "position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
58
- ), t && (t.data && this.load(t.data), this.state.options = c(c({}, this.state.options), t.options || {}), (a = t.options) != null && a.className && this.container.classList.add((o = t.options) == null ? void 0 : o.className)), this.five.once("modelLoaded", () => d(this, null, function* () {
58
+ ), e && (e.data && this.load(e.data), this.state.options = c(c({}, this.state.options), e.options || {}), (a = e.options) != null && a.className && this.container.classList.add((o = e.options) == null ? void 0 : o.className)), this.five.once("modelLoaded", () => d(this, null, function* () {
59
59
  var n, l;
60
60
  (l = (n = this.five.getElement()) == null ? void 0 : n.parentNode) == null || l.append(this.container);
61
61
  })), this.five.once("dispose", () => this.dispose());
62
62
  }
63
- load(e) {
63
+ load(t) {
64
64
  return d(this, null, function* () {
65
65
  if (!this.five.work)
66
66
  return;
67
- const t = e.data;
68
- if (!t)
67
+ const e = t.data;
68
+ if (!e)
69
69
  throw new Error("标尺数据依赖不齐全!");
70
- this.panoRulerProData = t, this.state.loaded = !0;
70
+ this.panoRulerProData = e, this.state.loaded = !0;
71
71
  });
72
72
  }
73
73
  enable() {
@@ -78,7 +78,7 @@ class A {
78
78
  }
79
79
  render() {
80
80
  return d(this, null, function* () {
81
- var e;
81
+ var t;
82
82
  if (this.state.enabled) {
83
83
  if (!this.panoRulerProData || !this.container)
84
84
  return;
@@ -91,11 +91,12 @@ class A {
91
91
  }
92
92
  });
93
93
  } else
94
- (e = this.rulerItems) == null || e.$destroy(), this.rulerItems = void 0;
94
+ (t = this.rulerItems) == null || t.$destroy(), this.rulerItems = void 0;
95
95
  });
96
96
  }
97
97
  dispose() {
98
- this.container && (this.rulerItems.$destroy(), this.rulerItems = void 0), this.container.remove();
98
+ var t;
99
+ this.container && ((t = this.rulerItems) == null || t.$destroy(), this.rulerItems = void 0), this.container.remove();
99
100
  }
100
101
  }
101
102
  export {
@@ -14,7 +14,7 @@ let b = class {
14
14
  /**
15
15
  * @realsee/dnalogel 版本号
16
16
  */
17
- i(this, "VERSION", "3.20.4");
17
+ i(this, "VERSION", "3.20.6");
18
18
  i(this, "five");
19
19
  /**
20
20
  * @description: 插件事件钩子