@realsee/dnalogel 3.35.0-dev.1 → 3.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (418) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/ModelMakerPlugin/Controller.d.ts +1 -1
  3. package/dist/ModelMakerPlugin/item/baseItem.d.ts +1 -1
  4. package/dist/PanoMeasurePlugin/Controller/ViewController.d.ts +1 -0
  5. package/dist/PanoMeasurePlugin/Model/polyline.d.ts +2 -1
  6. package/dist/PanoMeasurePlugin/typings/data.d.ts +3 -0
  7. package/dist/PanoTagPlugin/controller/TagRender.d.ts +1 -2
  8. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +6 -11
  9. package/dist/PanoTagPlugin/controller/index.d.ts +0 -1
  10. package/dist/PanoTagPlugin/utils/debounce.d.ts +0 -1
  11. package/dist/PanoVideoPlugin/Controller.d.ts +3 -1
  12. package/dist/PanoVideoPlugin/typings.d.ts +2 -2
  13. package/dist/index.cjs.js +54 -54
  14. package/dist/index.js +3161 -3165
  15. package/dist/index.umd.js +44 -44
  16. package/dist/shared-utils/tag.d.ts +4 -4
  17. package/docs/assets/search.js +1 -1
  18. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +44 -34
  19. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +44 -34
  20. package/docs/classes/CSS3DRender.html +43 -33
  21. package/docs/classes/GuideLineItem.GuideLineItem.html +31 -21
  22. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +55 -45
  23. package/docs/classes/{Magnifier.html → ModelMakerPluginInstance.html} +203 -111
  24. package/docs/classes/ModelRoomLabelController.html +23 -13
  25. package/docs/classes/MoveController.html +43 -33
  26. package/docs/classes/Object3DHelperController.html +39 -47
  27. package/docs/classes/PaintBrush.html +27 -17
  28. package/docs/classes/PanoMeasurePluginLine.html +56 -36
  29. package/docs/classes/PanoMeasurePluginModel.html +42 -32
  30. package/docs/classes/PanoMeasurePluginPoint.html +23 -13
  31. package/docs/classes/PanoMeasurePluginPolyline.html +61 -34
  32. package/docs/classes/PanoTagPluginController.html +234 -126
  33. package/docs/classes/Sculpt.html +852 -0
  34. package/docs/classes/Util.BetterTween.html +27 -13
  35. package/docs/classes/Util.Interval.html +29 -15
  36. package/docs/classes/Util.LineSegments.html +25 -11
  37. package/docs/classes/Util.Magnifier.html +93 -60
  38. package/docs/classes/Util.Object3D.html +26 -12
  39. package/docs/classes/Util.PointDomHelper.html +28 -14
  40. package/docs/classes/Util.PointHelper.html +28 -14
  41. package/docs/classes/Util.PointSelectorHelper.html +34 -20
  42. package/docs/classes/Util.Rectangle.html +30 -16
  43. package/docs/classes/WalkController.html +39 -29
  44. package/docs/enums/CameraMovementEffect.html +19 -9
  45. package/docs/enums/ContentType.html +33 -23
  46. package/docs/enums/DIRECTION.html +21 -11
  47. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +21 -11
  48. package/docs/enums/DimensionType.html +19 -9
  49. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +20 -10
  50. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +21 -11
  51. package/docs/enums/PaintBrushTypeEnum.html +20 -10
  52. package/docs/enums/PointType.html +19 -9
  53. package/docs/enums/Rotation.html +20 -10
  54. package/docs/functions/AreaMakerPlugin.html +17 -7
  55. package/docs/functions/CSS3DRenderPlugin.html +17 -7
  56. package/docs/functions/CameraMovementPlugin.html +17 -7
  57. package/docs/functions/CruisePlugin.html +17 -7
  58. package/docs/functions/CurrentPanoImagePlugin.html +17 -7
  59. package/docs/functions/GuideLinePlugin.html +17 -7
  60. package/docs/functions/ItemLabelPlugin.html +17 -7
  61. package/docs/functions/MapviewFloorplanPlugin.html +17 -7
  62. package/docs/functions/ModelChassisCompassPlugin.html +17 -7
  63. package/docs/functions/ModelEntryDoorGuidePlugin.html +17 -7
  64. package/docs/functions/ModelFloorplanPlugin.html +17 -7
  65. package/docs/functions/ModelItemLabelPlugin.html +17 -7
  66. package/docs/functions/ModelMakerPlugin.html +303 -0
  67. package/docs/functions/ModelRoomLabelPlugin.html +17 -7
  68. package/docs/functions/ModelTVVideoPlugin.html +17 -7
  69. package/docs/functions/ModelViewPlugin.html +17 -7
  70. package/docs/functions/MovePlugin.html +18 -8
  71. package/docs/functions/Object3DHelperPlugin.html +17 -7
  72. package/docs/functions/PanoCompassPlugin.html +17 -7
  73. package/docs/functions/PanoCursorRaycasterPlugin.html +17 -7
  74. package/docs/functions/PanoDoorLabelPlugin.html +17 -7
  75. package/docs/functions/PanoFloorplanRadarPlugin.html +17 -7
  76. package/docs/functions/PanoMeasurePlugin.html +17 -7
  77. package/docs/functions/PanoRulerPlugin.html +17 -7
  78. package/docs/functions/PanoRulerProPlugin.html +17 -7
  79. package/docs/functions/PanoSpatialTagPlugin.html +17 -7
  80. package/docs/functions/PanoTagPlugin.html +20 -8
  81. package/docs/functions/PanoVideoPlugin.html +17 -7
  82. package/docs/functions/PipelinePlugin.html +17 -7
  83. package/docs/functions/SculptPlugin.html +306 -0
  84. package/docs/functions/TopviewFloorplanPlugin.html +17 -7
  85. package/docs/functions/Util.absoluteUrl.html +22 -8
  86. package/docs/functions/Util.blink.html +351 -0
  87. package/docs/functions/Util.checkFiveModelLoaded.html +22 -8
  88. package/docs/functions/Util.equal.html +22 -8
  89. package/docs/functions/Util.getCoordsFromClient.html +22 -8
  90. package/docs/functions/Util.getCoordsFromElement.html +22 -8
  91. package/docs/functions/Util.getFrameTime.html +22 -8
  92. package/docs/functions/Util.getIntersectFromRelativePosition.html +29 -10
  93. package/docs/functions/Util.getRaycasterFromFivePointer.html +22 -8
  94. package/docs/functions/Util.isAbsoluteURL.html +22 -8
  95. package/docs/functions/Util.isModelLike.html +22 -8
  96. package/docs/functions/Util.isNil.html +22 -8
  97. package/docs/functions/Util.isPanoramaLike.html +22 -8
  98. package/docs/functions/Util.nextFrame.html +22 -8
  99. package/docs/functions/Util.notNil.html +22 -8
  100. package/docs/functions/Util.reblink.html +349 -0
  101. package/docs/functions/Util.requestAnimationFrameInterval.html +22 -8
  102. package/docs/functions/Util.tweenProgress.html +22 -8
  103. package/docs/functions/Util.uuid.html +22 -8
  104. package/docs/functions/pluginFlag.html +17 -7
  105. package/docs/index.html +18 -7
  106. package/docs/interfaces/AddTagConfig.html +18 -8
  107. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +17 -7
  108. package/docs/interfaces/AreaMakerPluginType.Config.html +17 -7
  109. package/docs/interfaces/AreaMakerPluginType.EventMap.html +30 -20
  110. package/docs/interfaces/AreaMakerPluginType.Params.html +18 -8
  111. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +20 -10
  112. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +19 -9
  113. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +17 -7
  114. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +17 -7
  115. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +17 -7
  116. package/docs/interfaces/AreaMakerPluginType.State.html +19 -9
  117. package/docs/interfaces/CSS3DRenderPluginEventMap.html +23 -13
  118. package/docs/interfaces/CSS3DRenderPluginState.html +20 -10
  119. package/docs/interfaces/CameraMovementPluginExportType.html +19 -9
  120. package/docs/interfaces/ContentTypeMapInterface.html +773 -0
  121. package/docs/interfaces/CruisePluginTypes.Config.html +21 -10
  122. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +24 -13
  123. package/docs/interfaces/CruisePluginTypes.EventMap.html +33 -22
  124. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +352 -0
  125. package/docs/interfaces/CruisePluginTypes.MoveAction.html +39 -23
  126. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +30 -18
  127. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +30 -18
  128. package/docs/interfaces/CruisePluginTypes.PluginData.html +41 -30
  129. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +18 -7
  130. package/docs/interfaces/CruisePluginTypes.PluginState.html +25 -14
  131. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +23 -13
  132. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +24 -14
  133. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +19 -9
  134. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +18 -8
  135. package/docs/interfaces/CurrentPanoImagePluginType.State.html +20 -10
  136. package/docs/interfaces/EventMap.html +27 -17
  137. package/docs/interfaces/FloorplanBounding.html +20 -10
  138. package/docs/interfaces/FloorplanData.html +22 -12
  139. package/docs/interfaces/FloorplanEntrance.html +23 -13
  140. package/docs/interfaces/FloorplanExtraObject.html +22 -12
  141. package/docs/interfaces/FloorplanExtraObject3D.html +20 -10
  142. package/docs/interfaces/FloorplanFloorData.html +21 -11
  143. package/docs/interfaces/FloorplanImagePosition.html +19 -9
  144. package/docs/interfaces/FloorplanObserver.html +21 -11
  145. package/docs/interfaces/FloorplanOutlineItem.html +21 -11
  146. package/docs/interfaces/FloorplanPosition.html +19 -9
  147. package/docs/interfaces/FloorplanRoomItem.html +26 -16
  148. package/docs/interfaces/FloorplanRoomLabelItem.html +19 -9
  149. package/docs/interfaces/FloorplanServerBounding.html +20 -10
  150. package/docs/interfaces/FloorplanServerComputedData.html +22 -12
  151. package/docs/interfaces/FloorplanServerData.html +19 -9
  152. package/docs/interfaces/FloorplanServerDoorItem.html +22 -12
  153. package/docs/interfaces/FloorplanServerDoorPosition.html +20 -10
  154. package/docs/interfaces/FloorplanServerEntrance.html +23 -13
  155. package/docs/interfaces/FloorplanServerFloorData.html +21 -11
  156. package/docs/interfaces/FloorplanServerImagePosition.html +19 -9
  157. package/docs/interfaces/FloorplanServerObserver.html +21 -11
  158. package/docs/interfaces/FloorplanServerOutlineItem.html +21 -11
  159. package/docs/interfaces/FloorplanServerPosition.html +19 -9
  160. package/docs/interfaces/FloorplanServerRoomItem.html +27 -17
  161. package/docs/interfaces/FloorplanServerRoomLabelItem.html +19 -9
  162. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +20 -10
  163. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +21 -11
  164. package/docs/interfaces/GuideLinePluginType.EventMap.html +24 -14
  165. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +19 -9
  166. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +17 -7
  167. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +26 -16
  168. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +17 -7
  169. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +19 -9
  170. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +32 -22
  171. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +18 -8
  172. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +33 -23
  173. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +16 -6
  174. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +17 -7
  175. package/docs/interfaces/GuideLinePluginType.PluginState.html +19 -9
  176. package/docs/interfaces/GuideLinePluginType.Route.html +22 -12
  177. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +20 -10
  178. package/docs/interfaces/HelperOffset.html +20 -10
  179. package/docs/interfaces/ImagePlaneGroup.html +18 -8
  180. package/docs/interfaces/ItemLabelPluginData.html +18 -8
  181. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +23 -13
  182. package/docs/interfaces/ItemLabelPluginParametersType.html +21 -11
  183. package/docs/interfaces/MinMax.html +19 -9
  184. package/docs/interfaces/ModelChassisCompassPluginData.html +19 -9
  185. package/docs/interfaces/ModelChassisCompassPluginExportType.html +20 -10
  186. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +19 -9
  187. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +20 -10
  188. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +20 -10
  189. package/docs/interfaces/ModelItemLabelPluginData.html +18 -8
  190. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +23 -13
  191. package/docs/interfaces/ModelItemLabelPluginParametersType.html +19 -9
  192. package/docs/interfaces/ModelMakerPluginType.EventMap.html +556 -0
  193. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +349 -0
  194. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +391 -0
  195. package/docs/interfaces/ModelMakerPluginType.ServerData.html +332 -0
  196. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +401 -0
  197. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +381 -0
  198. package/docs/interfaces/ModelMakerPluginType.State.html +364 -0
  199. package/docs/interfaces/ModelRoomLabelPluginData.html +18 -8
  200. package/docs/interfaces/ModelTVVideoPluginData.html +21 -11
  201. package/docs/interfaces/ModelTVVideoPluginExportType.html +20 -10
  202. package/docs/interfaces/ModelTVVideoPluginParameterType.html +18 -8
  203. package/docs/interfaces/ModelViewPluginExportType.html +23 -13
  204. package/docs/interfaces/Object3DHelperState.html +20 -10
  205. package/docs/interfaces/ObjectHelperControllers.html +22 -12
  206. package/docs/interfaces/PaintBrushAction.html +24 -14
  207. package/docs/interfaces/PaintBrushConfigs.html +24 -14
  208. package/docs/interfaces/PaintBrushState.html +22 -12
  209. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +22 -12
  210. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +17 -7
  211. package/docs/interfaces/PanoMeasureParameterType.html +28 -18
  212. package/docs/interfaces/PanoMeasurePluginLineJson.html +20 -10
  213. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +19 -9
  214. package/docs/interfaces/PanoMeasurePluginPointJson.html +19 -9
  215. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +30 -10
  216. package/docs/interfaces/PanoRulerPluginExportType.html +22 -12
  217. package/docs/interfaces/PanoRulerPluginOptions.html +19 -9
  218. package/docs/interfaces/PanoRulerPluginParameterType.html +20 -10
  219. package/docs/interfaces/PanoRulerProPluginExportType.html +21 -11
  220. package/docs/interfaces/PanoRulerProPluginOptions.html +19 -9
  221. package/docs/interfaces/PanoRulerProPluginParameterType.html +19 -9
  222. package/docs/interfaces/PanoRulerProPluginState.html +20 -10
  223. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +17 -7
  224. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +17 -7
  225. package/docs/interfaces/PanoSpatialTagPluginData.html +23 -13
  226. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +22 -12
  227. package/docs/interfaces/PanoSpatialTagPluginExportType.html +25 -15
  228. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +22 -12
  229. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +25 -15
  230. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +23 -13
  231. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +22 -12
  232. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +18 -8
  233. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +20 -10
  234. package/docs/interfaces/PanoVideoPluginType.PluginData.html +18 -8
  235. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +78 -18
  236. package/docs/interfaces/PanoVideoPluginType.PluginState.html +18 -8
  237. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +20 -10
  238. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +22 -12
  239. package/docs/interfaces/Point.html +20 -10
  240. package/docs/interfaces/Room.html +21 -11
  241. package/docs/interfaces/RoomInfo.html +19 -9
  242. package/docs/interfaces/RoomLabel.html +26 -16
  243. package/docs/interfaces/RoomRules.html +17 -7
  244. package/docs/interfaces/Rooms.html +17 -7
  245. package/docs/interfaces/Scissor.html +21 -11
  246. package/docs/interfaces/State.html +20 -10
  247. package/docs/interfaces/TagCacheInterface.html +24 -14
  248. package/docs/interfaces/TagConfig.html +65 -49
  249. package/docs/interfaces/TagGLTFObjectGroup.html +18 -8
  250. package/docs/interfaces/TagIconUrl.html +24 -14
  251. package/docs/interfaces/TagObjectGroup.html +18 -8
  252. package/docs/interfaces/TagStyle.html +18 -8
  253. package/docs/interfaces/Tags.html +61 -437
  254. package/docs/interfaces/TemporaryState.html +18 -8
  255. package/docs/interfaces/Util.BlinkAnimeOptions.html +380 -0
  256. package/docs/interfaces/Util.MagnifierParameter.html +43 -24
  257. package/docs/interfaces/Util.MouseGroupParameter.html +25 -11
  258. package/docs/interfaces/Util.PointIntersection.html +33 -12
  259. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +387 -0
  260. package/docs/modules/AreaMakerPluginType.html +16 -6
  261. package/docs/modules/CruisePluginTypes.html +18 -6
  262. package/docs/modules/CurrentPanoImagePluginType.html +17 -7
  263. package/docs/modules/GuideLineItem.html +17 -7
  264. package/docs/modules/GuideLineModeItem.html +17 -7
  265. package/docs/modules/GuideLinePluginType.html +16 -6
  266. package/docs/modules/ModelMakerPluginType.html +339 -0
  267. package/docs/modules/PanoVideoPluginType.html +17 -7
  268. package/docs/modules/SculptData.html +318 -0
  269. package/docs/modules/Util.html +26 -8
  270. package/docs/modules.html +34 -11
  271. package/docs/types/AddObject3DHelperConfig.html +315 -0
  272. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +16 -6
  273. package/docs/types/AreaMakerPluginType.ItemRenderer.html +16 -6
  274. package/docs/types/AreaMakerPluginType.PluginData.html +16 -6
  275. package/docs/types/AreaMakerPluginType.ServerData.html +16 -6
  276. package/docs/types/ArrayPosition.html +17 -7
  277. package/docs/types/AudioAppearance.html +17 -7
  278. package/docs/types/CSS3DRenderExportType.html +17 -7
  279. package/docs/types/CSS3DRenderPluginExportType.html +17 -7
  280. package/docs/types/CSS3DRenderPluginParameterType.html +17 -7
  281. package/docs/types/ClassFunctionParameters.html +17 -7
  282. package/docs/types/Color.html +17 -7
  283. package/docs/types/ContentTypeConfigKey.html +17 -7
  284. package/docs/types/ContentTypeConfigKeySplit.html +18 -8
  285. package/docs/types/ContentTypeMap.html +17 -7
  286. package/docs/types/Create3DDomContainerReturnType.html +17 -7
  287. package/docs/types/Create3DElementReturnType.html +17 -7
  288. package/docs/types/CruisePluginExportType.html +17 -7
  289. package/docs/types/CruisePluginTypes.CruiseData.html +17 -6
  290. package/docs/types/CruisePluginTypes.MoveEffect.html +17 -6
  291. package/docs/types/CurrentPanoImagePluginExportType.html +17 -7
  292. package/docs/types/DeprecatedMediaPlaneProperty.html +17 -7
  293. package/docs/types/DeprecatedTagProperty.html +17 -7
  294. package/docs/types/Direction-1.html +17 -7
  295. package/docs/types/Direction4.html +17 -7
  296. package/docs/types/ElementRenderer.html +17 -7
  297. package/docs/types/FloorplanRuleLabels.html +17 -7
  298. package/docs/types/FloorplanServerRuleLabels.html +17 -7
  299. package/docs/types/GuideLinePluginExportType.html +17 -7
  300. package/docs/types/GuideLinePluginType.GuideLineItem.html +18 -8
  301. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +16 -6
  302. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +16 -6
  303. package/docs/types/GuideLinePluginType.GuideLineStyle.html +16 -6
  304. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +16 -6
  305. package/docs/types/GuideLinePluginType.PathItem.html +16 -6
  306. package/docs/types/GuideLinePluginType.PluginData.html +16 -6
  307. package/docs/types/HelperEventMap.html +17 -7
  308. package/docs/types/InternalHelperEventMap.html +29 -11
  309. package/docs/types/LoadTagConfig.html +17 -7
  310. package/docs/types/MapviewFloorplanPluginParameterType.html +17 -7
  311. package/docs/types/MapviewFloorplanPluginReturnType.html +17 -7
  312. package/docs/types/MediaData.html +20 -10
  313. package/docs/types/MediaStore.html +17 -7
  314. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +17 -7
  315. package/docs/types/ModelFloorplanPluginParameterType.html +17 -7
  316. package/docs/types/ModelFloorplanPluginReturnType.html +17 -7
  317. package/docs/types/ModelId.html +17 -7
  318. package/docs/types/ModelMakerPluginType.ElementRenderer.html +329 -0
  319. package/docs/types/ModelMakerPluginType.ItemType.html +308 -0
  320. package/docs/types/ModelRoomLabelPluginParameters.html +17 -7
  321. package/docs/types/ModelRoomLabelPluginReturnType.html +17 -7
  322. package/docs/types/MoveArgs.html +17 -7
  323. package/docs/types/MoveOpts.html +17 -7
  324. package/docs/types/Object3DHelperEventMap.html +17 -7
  325. package/docs/types/ObjectFit.html +17 -7
  326. package/docs/types/PaintBrushEventMap.html +17 -7
  327. package/docs/types/PanoCompassPluginData.html +17 -7
  328. package/docs/types/PanoCompassPluginExportType.html +17 -7
  329. package/docs/types/PanoCompassPluginParameterType.html +17 -7
  330. package/docs/types/PanoFloorplanRadarPluginParameterType.html +17 -7
  331. package/docs/types/PanoFloorplanRadarPluginReturnType.html +17 -7
  332. package/docs/types/PanoIndex.html +17 -7
  333. package/docs/types/PanoMeasurePluginEvent.html +17 -7
  334. package/docs/types/PanoMeasureReturnType.html +17 -7
  335. package/docs/types/PanoSpatialTagPluginId.html +17 -7
  336. package/docs/types/PanoTagPluginExportInterface.html +17 -7
  337. package/docs/types/PanoTagPluginParamsInterface.html +17 -7
  338. package/docs/types/PanoVideoPluginParameterType.html +17 -7
  339. package/docs/types/PanoVideoPluginReturnType.html +17 -7
  340. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +22 -12
  341. package/docs/types/PipelinePluginParameterType.html +17 -7
  342. package/docs/types/PipelinePluginReturnType.html +17 -7
  343. package/docs/types/PlaneTag.html +17 -7
  344. package/docs/types/Point2DTag.html +17 -7
  345. package/docs/types/Point3DTag.html +17 -7
  346. package/docs/types/PointTag.html +17 -7
  347. package/docs/types/PointTagInstance.html +17 -7
  348. package/docs/types/Position.html +17 -7
  349. package/docs/types/{AudioTagTypeConfigKey.html → PositionFrom.html} +28 -10
  350. package/docs/types/RotateArgs.html +17 -7
  351. package/docs/types/RotateOpts.html +17 -7
  352. package/docs/types/RuleLabelsKey.html +17 -7
  353. package/docs/types/RuleLabelsValue.html +17 -7
  354. package/docs/types/ScaleCallback.html +314 -0
  355. package/docs/types/ScalePosition.html +303 -0
  356. package/docs/types/SculptData.BoxData.html +306 -0
  357. package/docs/types/SculptData.CircleData.html +306 -0
  358. package/docs/types/SculptData.CylinderData.html +306 -0
  359. package/docs/types/SculptData.PointData.html +306 -0
  360. package/docs/types/SculptData.PolygonData.html +306 -0
  361. package/docs/types/SculptData.PolylineData.html +306 -0
  362. package/docs/types/SculptData.PrismData.html +306 -0
  363. package/docs/types/SculptData.RectangleData.html +306 -0
  364. package/docs/types/StickType.html +17 -7
  365. package/docs/types/Tag.html +35 -13
  366. package/docs/types/Tag2D.html +17 -7
  367. package/docs/types/Tag3D.html +17 -7
  368. package/docs/types/TagConfigByKey.html +18 -8
  369. package/docs/types/TagContentType.html +17 -7
  370. package/docs/types/TagContentTypeMapping.html +17 -7
  371. package/docs/types/TagDimensionType.html +17 -7
  372. package/docs/types/TagElement.html +17 -7
  373. package/docs/types/TagEvents.html +38 -12
  374. package/docs/types/TagGLTFObject.html +17 -7
  375. package/docs/types/TagHooks.html +17 -7
  376. package/docs/types/TagId.html +17 -7
  377. package/docs/types/TagInstance.html +44 -8
  378. package/docs/types/TagPointType.html +17 -7
  379. package/docs/types/TagRendererMap.html +17 -7
  380. package/docs/types/TopviewFloorplanPluginParameterType.html +17 -7
  381. package/docs/types/TopviewFloorplanPluginReturnType.html +17 -7
  382. package/docs/types/WorkCode.html +17 -7
  383. package/docs/variables/FLOOR_TYPE_MAP.html +17 -7
  384. package/docs/variables/PLUGIN.html +17 -7
  385. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +17 -7
  386. package/docs/variables/ROOM_TYPE_MAP.html +17 -7
  387. package/docs/variables/defaultGlobalConfig.html +17 -7
  388. package/docs/variables/itemLabelPluginServerParams.html +17 -7
  389. package/docs/variables/modelItemLabelPluginServerParams.html +17 -7
  390. package/docs/variables/modelRoomLabelPluginServerParams.html +17 -7
  391. package/libs/ModelMakerPlugin/Controller.d.ts +1 -1
  392. package/libs/ModelMakerPlugin/Controller.js +88 -86
  393. package/libs/ModelMakerPlugin/item/baseItem.d.ts +1 -1
  394. package/libs/ModelMakerPlugin/item/baseItem.js +23 -26
  395. package/libs/PanoMeasurePlugin/Controller/ViewController.d.ts +1 -0
  396. package/libs/PanoMeasurePlugin/Controller/ViewController.js +49 -35
  397. package/libs/PanoMeasurePlugin/Model/polyline.d.ts +2 -1
  398. package/libs/PanoMeasurePlugin/Model/polyline.js +37 -35
  399. package/libs/PanoMeasurePlugin/typings/data.d.ts +3 -0
  400. package/libs/PanoRulerPlugin/Plugin.js +15 -15
  401. package/libs/PanoTagPlugin/controller/TagComputer.js +0 -2
  402. package/libs/PanoTagPlugin/controller/TagRender.d.ts +1 -2
  403. package/libs/PanoTagPlugin/controller/TagRender.js +63 -67
  404. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +6 -11
  405. package/libs/PanoTagPlugin/controller/TagUtil.js +107 -106
  406. package/libs/PanoTagPlugin/controller/index.d.ts +0 -1
  407. package/libs/PanoTagPlugin/controller/index.js +61 -67
  408. package/libs/PanoTagPlugin/utils/debounce.d.ts +0 -1
  409. package/libs/PanoTagPlugin/utils/debounce.js +4 -10
  410. package/libs/PanoTagPlugin/utils/index.js +6 -7
  411. package/libs/PanoVideoPlugin/Controller.d.ts +3 -1
  412. package/libs/PanoVideoPlugin/Controller.js +41 -41
  413. package/libs/PanoVideoPlugin/typings.d.ts +2 -2
  414. package/libs/base/BasePlugin.js +3 -3
  415. package/libs/shared-utils/logger.js +1 -1
  416. package/libs/shared-utils/tag.d.ts +4 -4
  417. package/libs/shared-utils/tag.js +26 -30
  418. package/package.json +2 -2
@@ -1,40 +1,40 @@
1
- var I = Object.defineProperty;
2
- var P = (l, n, e) => n in l ? I(l, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[n] = e;
3
- var r = (l, n, e) => (P(l, typeof n != "symbol" ? n + "" : n, e), e);
4
- var M = (l, n, e) => new Promise((i, d) => {
5
- var t = (s) => {
1
+ var P = Object.defineProperty;
2
+ var W = (p, n, e) => n in p ? P(p, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[n] = e;
3
+ var s = (p, n, e) => (W(p, typeof n != "symbol" ? n + "" : n, e), e);
4
+ var R = (p, n, e) => new Promise((o, t) => {
5
+ var l = (r) => {
6
6
  try {
7
- o(e.next(s));
8
- } catch (a) {
9
- d(a);
7
+ a(e.next(r));
8
+ } catch (d) {
9
+ t(d);
10
10
  }
11
- }, c = (s) => {
11
+ }, i = (r) => {
12
12
  try {
13
- o(e.throw(s));
14
- } catch (a) {
15
- d(a);
13
+ a(e.throw(r));
14
+ } catch (d) {
15
+ t(d);
16
16
  }
17
- }, o = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(t, c);
18
- o((e = e.apply(l, n)).next());
17
+ }, a = (r) => r.done ? o(r.value) : Promise.resolve(r.value).then(l, i);
18
+ a((e = e.apply(p, n)).next());
19
19
  });
20
- import { Controller as D } from "../base/BasePluginWithData.js";
20
+ import { Controller as C } from "../base/BasePluginWithData.js";
21
21
  import * as h from "three";
22
- import { ModelMakerBoxItem as A } from "./item/boxItem.js";
23
- import { PrismMesh as j } from "../Sculpt/Meshes/Prism.js";
24
- import { anyPositionToVector3 as T } from "../shared-utils/positionToVector3.js";
25
- import { PolygonWithEdgeMesh as H } from "../Sculpt/Meshes/PolygonWithEdge.js";
22
+ import { ModelMakerBoxItem as D } from "./item/boxItem.js";
23
+ import { PrismMesh as x } from "../Sculpt/Meshes/Prism.js";
24
+ import { anyPositionToVector3 as I } from "../shared-utils/positionToVector3.js";
25
+ import { PolygonWithEdgeMesh as A } from "../Sculpt/Meshes/PolygonWithEdge.js";
26
26
  import "hammerjs";
27
27
  import "@realsee/five";
28
28
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
29
29
  import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
30
30
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
31
31
  import "animejs";
32
- import { notNil as V } from "../shared-utils/isNil.js";
33
- import { tagRendererMap as F } from "./utils/tagRenderer.js";
34
- import { ModelMakerPrismItem as L } from "./item/prismItem.js";
35
- import { ModelMakerPolygonItem as O } from "./item/polygonItem.js";
36
- import { boxVertex as m } from "../shared-utils/Object3DHelper/utils/boundingBox.js";
37
- import { getFiveDomEvent as Z } from "./utils/getFiveDomEvent.js";
32
+ import { notNil as j } from "../shared-utils/isNil.js";
33
+ import { tagRendererMap as T } from "./utils/tagRenderer.js";
34
+ import { ModelMakerPrismItem as H } from "./item/prismItem.js";
35
+ import { ModelMakerPolygonItem as F } from "./item/polygonItem.js";
36
+ import { boxVertex as f } from "../shared-utils/Object3DHelper/utils/boundingBox.js";
37
+ import { getFiveDomEvent as z } from "./utils/getFiveDomEvent.js";
38
38
  import "../base/BasePlugin.js";
39
39
  import "../shared-utils/Subscribe.js";
40
40
  import "../shared-utils/url/absoluteUrl.js";
@@ -75,103 +75,105 @@ import "../shared-utils/tag.js";
75
75
  import "../shared-utils/five/vector3ToScreen.js";
76
76
  import "../shared-utils/five/FiveDomEvents.js";
77
77
  import "../shared-utils/five/calculateThreeMouse.js";
78
- class Se extends D {
79
- constructor(e, i) {
78
+ class Ge extends C {
79
+ constructor(e, o) {
80
80
  super(e);
81
- r(this, "state");
82
- r(this, "items", []);
83
- r(this, "data");
84
- r(this, "group", new h.Group());
85
- r(this, "tagRendererMap", {});
86
- r(this, "fiveDomEvents");
87
- r(this, "zFightingOffset", 0);
88
- r(this, "tagContainerZIndex");
89
- r(this, "handleEnable", () => {
90
- this.items.forEach((e) => e.enable());
81
+ s(this, "state");
82
+ s(this, "items", []);
83
+ s(this, "data");
84
+ s(this, "group", new h.Group());
85
+ s(this, "tagRendererMap", {});
86
+ s(this, "fiveDomEvents");
87
+ s(this, "zFightingOffset", 0);
88
+ s(this, "tagWrapper");
89
+ s(this, "handleEnable", () => {
90
+ var e, o;
91
+ this.five.scene.add(this.group), (o = (e = this.five.getElement()) == null ? void 0 : e.parentElement) == null || o.appendChild(this.tagWrapper), this.five.needsRender = !0;
91
92
  });
92
- r(this, "handleDisable", () => {
93
- this.items.forEach((e) => e.disable());
93
+ s(this, "handleDisable", () => {
94
+ this.five.scene.remove(this.group), this.tagWrapper.remove(), this.five.needsRender = !0;
94
95
  });
95
- r(this, "updateTagRenderer", () => {
96
+ s(this, "updateTagRenderer", () => {
96
97
  this.items.forEach((e) => {
97
- var d;
98
- const i = (d = this.tagRendererMap[e.type]) != null ? d : F[e.type];
99
- i && e.__renderer !== i && (e.__renderer = i, typeof e.__disposeRenderer == "function" && e.__disposeRenderer(), e.tag.container.innerHTML = "", e.__disposeRenderer = i(e.tag.container, e));
98
+ var t;
99
+ const o = (t = this.tagRendererMap[e.type]) != null ? t : T[e.type];
100
+ o && e.__renderer !== o && (e.__renderer = o, typeof e.__disposeRenderer == "function" && e.__disposeRenderer(), e.tag.container.innerHTML = "", e.__disposeRenderer = o(e.tag.container, e));
100
101
  });
101
102
  });
102
- this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.fiveDomEvents = Z(e), this.tagContainerZIndex = i == null ? void 0 : i.tagContainerZIndex, e.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
103
+ this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.fiveDomEvents = z(e), this.tagWrapper = (() => {
104
+ var l;
105
+ const t = document.createElement("div");
106
+ return t.style.position = "absolute", t.style.top = "0", t.style.left = "0", t.style.width = "100%", t.style.height = "100%", t.style.pointerEvents = "none", t.style.zIndex = `${(l = o == null ? void 0 : o.tagContainerZIndex) != null ? l : ""}`, t;
107
+ })(), e.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
103
108
  }
104
109
  load(e) {
105
- return M(this, null, function* () {
106
- var d;
107
- this.clear(), this.data = e;
108
- const i = this.tagContainerZIndex;
109
- (d = e == null ? void 0 : e.list) == null || d.forEach((t) => {
110
- var c;
110
+ return R(this, null, function* () {
111
+ var o;
112
+ this.clear(), this.data = e, (o = e == null ? void 0 : e.list) == null || o.forEach((t) => {
113
+ var l;
111
114
  if (t.type === "triangles") {
112
- const o = new H();
113
- o.setPoints(t.object_data.points), o.setStyle({
115
+ const i = new A();
116
+ i.setPoints(t.object_data.points), i.setStyle({
114
117
  color: t.object_data.color,
115
118
  opacity: t.object_data.opacity,
116
119
  lineColor: t.object_data.color,
117
120
  occlusionVisibility: !1
118
- }), this.fiveDomEvents.addEventListener(o, "hover", () => o.highlight()), this.fiveDomEvents.addEventListener(o, "unHover", () => o.unhighlight());
119
- const s = new O({
121
+ }), this.fiveDomEvents.addEventListener(i, "hover", () => i.highlight()), this.fiveDomEvents.addEventListener(i, "unHover", () => i.unhighlight());
122
+ const a = new F({
120
123
  five: this.five,
121
- model: o,
124
+ tagWrapper: this.tagWrapper,
125
+ model: i,
122
126
  group: this.group,
123
127
  type: t.type,
124
- rawData: t,
125
- tagContainerZIndex: i
128
+ rawData: t
126
129
  });
127
- this.items.push(s);
130
+ this.items.push(a);
128
131
  } else if (t.type === "prism") {
129
- const o = new j();
130
- this.zFightingOffset += 1e-4, o.setPoints({
131
- points: t.object_data.points.map((a) => {
132
- var b;
133
- return [a[0], a[1] + ((b = t.object_data.fixedY) != null ? b : 0), a[2]];
134
- }),
135
- heightPoint: T(t.object_data.points[0]).add(new h.Vector3().setY(t.object_data.height + ((c = t.object_data.fixedHeight) != null ? c : 0))).add(new h.Vector3().setY(this.zFightingOffset))
136
- }), o.setStyle({
132
+ const i = new x();
133
+ this.zFightingOffset += 1e-4;
134
+ const a = t.object_data.points.map((m) => {
135
+ var c;
136
+ return [m[0], m[1] + ((c = t.object_data.fixedY) != null ? c : 0), m[2]];
137
+ }), r = t.object_data.height + ((l = t.object_data.fixedHeight) != null ? l : 0) + this.zFightingOffset, d = I(a[0]).add(new h.Vector3().setY(r));
138
+ i.setPoints({ points: a, heightPoint: d }), i.setStyle({
137
139
  color: t.object_data.color,
138
140
  opacity: t.object_data.opacity,
139
141
  lineColor: t.object_data.color,
140
142
  occlusionVisibility: !1
141
143
  });
142
- const s = new L({
144
+ const u = new H({
143
145
  five: this.five,
144
- model: o,
146
+ tagWrapper: this.tagWrapper,
147
+ model: i,
145
148
  group: this.group,
146
149
  type: t.type,
147
- rawData: t,
148
- tagContainerZIndex: i
150
+ rawData: t
149
151
  });
150
- this.items.push(s);
152
+ this.items.push(u);
151
153
  } else if (t.type === "box") {
152
- const o = new j(), { start: s, end: a, rotation: b = [0, 0, 0, 0], opacity: R, color: f } = t.object_data, u = new h.Vector3().fromArray(s), g = new h.Vector3().fromArray(a), k = new h.Euler().fromArray(b), y = new h.Quaternion().setFromEuler(k), _ = y.clone().inverse(), w = new h.Vector3().lerpVectors(u, g, 0.5), v = w.clone().negate(), E = u.clone().add(v).applyQuaternion(_), x = g.clone().add(v).applyQuaternion(_), p = new h.Box3(E.clone().max(x), E.clone().min(x));
153
- o.setPoints({
154
- points: [m(p, 2), m(p, 3), m(p, 7), m(p, 6)],
155
- heightPoint: m(p, 0)
156
- }), o.position.copy(w), o.quaternion.copy(y), o.setStyle({ color: f, opacity: R, lineColor: f, occlusionVisibility: !1 });
157
- const C = new A({
154
+ const i = new x(), { start: a, end: r, rotation: d = [0, 0, 0, 0], opacity: u, color: m } = t.object_data, c = new h.Vector3().fromArray(a), g = new h.Vector3().fromArray(r), V = new h.Euler().fromArray(d), y = new h.Quaternion().setFromEuler(V), v = y.clone().inverse(), _ = new h.Vector3().lerpVectors(c, g, 0.5), w = _.clone().negate(), E = c.clone().add(w).applyQuaternion(v), M = g.clone().add(w).applyQuaternion(v), b = new h.Box3(E.clone().max(M), E.clone().min(M));
155
+ i.setPoints({
156
+ points: [f(b, 2), f(b, 3), f(b, 7), f(b, 6)],
157
+ heightPoint: f(b, 0)
158
+ }), i.position.copy(_), i.quaternion.copy(y), i.setStyle({ color: m, opacity: u, lineColor: m, occlusionVisibility: !1 });
159
+ const k = new D({
158
160
  five: this.five,
159
- model: o,
161
+ tagWrapper: this.tagWrapper,
162
+ model: i,
160
163
  group: this.group,
161
164
  type: t.type,
162
- rawData: t,
163
- tagContainerZIndex: i
165
+ rawData: t
164
166
  });
165
- this.items.push(C);
167
+ this.items.push(k);
166
168
  }
167
169
  }), this.five.needsRender = !0, this.state.enabled ? this.handleEnable() : this.handleDisable(), this.state.visible ? this.handleShow() : this.handleHide(), this.updateTagRenderer(), this.hooks.emit("dataLoaded", e);
168
170
  });
169
171
  }
170
172
  setState(e) {
171
- V(e.enabled) && this.state.enabled !== e.enabled && (this.state.enabled = e.enabled, e.enabled ? this.handleEnable() : this.handleDisable(), this.hooks.emit(e.enabled ? "enable" : "disable", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" })), V(e.visible) && this.state.visible !== e.visible && (this.state.visible = e.visible, e.visible ? this.handleShow() : this.handleHide(), this.hooks.emit(e.visible ? "show" : "hide", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" }));
173
+ j(e.enabled) && this.state.enabled !== e.enabled && (this.state.enabled = e.enabled, e.enabled ? this.handleEnable() : this.handleDisable(), this.hooks.emit(e.enabled ? "enable" : "disable", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" })), j(e.visible) && this.state.visible !== e.visible && (this.state.visible = e.visible, e.visible ? this.handleShow() : this.handleHide(), this.hooks.emit(e.visible ? "show" : "hide", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" }));
172
174
  }
173
175
  getItemById(e) {
174
- return this.items.find((i) => i.rawData.id === e);
176
+ return this.items.find((o) => o.rawData.id === e);
175
177
  }
176
178
  registerTagRenderer(e) {
177
179
  this.tagRendererMap = e, this.updateTagRenderer();
@@ -195,12 +197,12 @@ class Se extends D {
195
197
  this.hooks.emit("dispose"), this.handleDisable();
196
198
  }
197
199
  handleShow() {
198
- this.items.forEach((e) => e.show());
200
+ this.group.visible = !0, this.tagWrapper.style.visibility = "visible", this.five.needsRender = !0;
199
201
  }
200
202
  handleHide() {
201
- this.items.forEach((e) => e.hide());
203
+ this.group.visible = !1, this.tagWrapper.style.visibility = "hidden", this.five.needsRender = !0;
202
204
  }
203
205
  }
204
206
  export {
205
- Se as Controller
207
+ Ge as Controller
206
208
  };
@@ -22,7 +22,6 @@ export declare class ModelMakerBaseItem extends Subscribe<Event> {
22
22
  };
23
23
  protected five: Five;
24
24
  protected group: THREE.Object3D;
25
- protected enabled: boolean;
26
25
  protected fiveDomEvents: FiveDomEvents;
27
26
  constructor(params: {
28
27
  five: Five;
@@ -30,6 +29,7 @@ export declare class ModelMakerBaseItem extends Subscribe<Event> {
30
29
  group: THREE.Object3D;
31
30
  type: string;
32
31
  rawData?: any;
32
+ tagWrapper?: HTMLElement;
33
33
  visibleMode?: Mode[];
34
34
  position?: THREE.Vector3;
35
35
  tagContainerZIndex?: number;
@@ -1,32 +1,31 @@
1
- var l = Object.defineProperty;
2
- var m = (s, i, e) => i in s ? l(s, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[i] = e;
3
- var t = (s, i, e) => (m(s, typeof i != "symbol" ? i + "" : i, e), e);
4
- import * as a from "three";
1
+ var d = Object.defineProperty;
2
+ var m = (s, t, e) => t in s ? d(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
3
+ var i = (s, t, e) => (m(s, typeof t != "symbol" ? t + "" : t, e), e);
4
+ import * as l from "three";
5
5
  import { addIfNotExists as v } from "../../shared-utils/three/addIfNotExists.js";
6
- import { Subscribe as f } from "../../shared-utils/Subscribe.js";
7
- import { tag as b } from "../../shared-utils/tag.js";
8
- import { boundingBox as c } from "../../shared-utils/Object3DHelper/utils/boundingBox.js";
9
- import { getFiveDomEvent as u } from "../utils/getFiveDomEvent.js";
6
+ import { Subscribe as a } from "../../shared-utils/Subscribe.js";
7
+ import { tag as c } from "../../shared-utils/tag.js";
8
+ import { boundingBox as p } from "../../shared-utils/Object3DHelper/utils/boundingBox.js";
9
+ import { getFiveDomEvent as f } from "../utils/getFiveDomEvent.js";
10
10
  import "../../shared-utils/positionToVector3.js";
11
11
  import "../../shared-utils/five/vector3ToScreen.js";
12
12
  import "../../shared-utils/five/FiveDomEvents.js";
13
13
  import "../../shared-utils/three/getObjectVisible.js";
14
14
  import "../../shared-utils/five/calculateThreeMouse.js";
15
- class B extends f {
15
+ class B extends a {
16
16
  constructor(e) {
17
- var o, r, n, h;
17
+ var o, r, h;
18
18
  super();
19
- t(this, "type");
20
- t(this, "tag");
21
- t(this, "rawData");
22
- t(this, "model");
23
- t(this, "five");
24
- t(this, "group");
25
- t(this, "enabled", !1);
26
- t(this, "fiveDomEvents");
27
- this.five = e.five, this.model = e.model, this.group = e.group, this.type = e.type, this.rawData = e.rawData, this.fiveDomEvents = u(this.five);
28
- const d = (n = (r = (o = e.position) != null ? o : this.model.worldCenter) != null ? r : this.model.center) != null ? n : c(this.model).getCenter(new a.Vector3());
29
- this.tag = b(this.five, d, { wrapperStyle: { zIndex: `${(h = e.tagContainerZIndex) != null ? h : ""}` } });
19
+ i(this, "type");
20
+ i(this, "tag");
21
+ i(this, "rawData");
22
+ i(this, "model");
23
+ i(this, "five");
24
+ i(this, "group");
25
+ i(this, "fiveDomEvents");
26
+ this.five = e.five, this.model = e.model, this.group = e.group, this.type = e.type, this.rawData = e.rawData, this.fiveDomEvents = f(this.five);
27
+ const n = (h = (r = (o = e.position) != null ? o : this.model.worldCenter) != null ? r : this.model.center) != null ? h : p(this.model).getCenter(new l.Vector3());
28
+ this.tag = c(this.five, n, { wrapper: e.tagWrapper });
30
29
  }
31
30
  get container() {
32
31
  return this.tag.container;
@@ -34,7 +33,7 @@ class B extends f {
34
33
  get state() {
35
34
  return {
36
35
  visible: this.model.visible,
37
- enabled: this.enabled
36
+ enabled: this.group.children.includes(this.model)
38
37
  };
39
38
  }
40
39
  show() {
@@ -44,14 +43,12 @@ class B extends f {
44
43
  this.tag.hide(), this.model.visible = !1, this.five.needsRender = !0, this.emit("hide");
45
44
  }
46
45
  enable() {
47
- if (this.enabled)
48
- return;
49
- this.enabled = !0, v(this.group, this.model), this.five.needsRender = !0, this.tag.enable();
46
+ v(this.group, this.model), this.five.needsRender = !0, this.tag.enable();
50
47
  const e = this.onClick.bind(this);
51
48
  this.fiveDomEvents.addEventListener(this.model, "click", e), this.emit("enable");
52
49
  }
53
50
  disable() {
54
- this.enabled && (this.enabled = !1, this.group.remove(this.model), this.five.needsRender = !0, this.tag.disable(), this.fiveDomEvents.removeEventListener(this.model, "click"), this.emit("disable"));
51
+ this.group.remove(this.model), this.five.needsRender = !0, this.tag.disable(), this.fiveDomEvents.removeEventListener(this.model, "click"), this.emit("disable");
55
52
  }
56
53
  onClick() {
57
54
  return this.emit("click", this);
@@ -7,6 +7,7 @@ export default class ViewController extends BaseController {
7
7
  private polylineRemoved;
8
8
  private polylineAdded;
9
9
  private onCameraUpdate;
10
+ private onFiveModeChange;
10
11
  private onFivePanoWillArrive;
11
12
  private onFivePanoArrived;
12
13
  }
@@ -1,8 +1,8 @@
1
- var r = Object.defineProperty;
2
- var d = (n, o, e) => o in n ? r(n, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[o] = e;
3
- var s = (n, o, e) => (d(n, typeof o != "symbol" ? o + "" : o, e), e);
4
- import a from "hammerjs";
5
- import h from "./BaseController.js";
1
+ var d = Object.defineProperty;
2
+ var a = (n, s, t) => s in n ? d(n, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[s] = t;
3
+ var o = (n, s, t) => (a(n, typeof s != "symbol" ? s + "" : s, t), t);
4
+ import h from "hammerjs";
5
+ import m from "./BaseController.js";
6
6
  import "three";
7
7
  import "../Model/line.js";
8
8
  import "../../shared-utils/uuid.js";
@@ -17,53 +17,67 @@ import "../utils/isNDCPointInScreen.js";
17
17
  import "../../shared-utils/three/centerPoint.js";
18
18
  import "../Model/point.js";
19
19
  import "../utils/ironbox.js";
20
- class R extends h {
21
- constructor(e) {
22
- super(e);
23
- s(this, "type", "view");
24
- s(this, "hammer");
25
- s(this, "polylineRemoved", (e) => {
26
- e.lines.forEach((i) => this.removeLine(i)), this.hook.emit(
20
+ class R extends m {
21
+ constructor(t) {
22
+ super(t);
23
+ o(this, "type", "view");
24
+ o(this, "hammer");
25
+ o(this, "polylineRemoved", (t) => {
26
+ t.lines.forEach((e) => this.removeLine(e)), this.hook.emit(
27
27
  "selectedChange",
28
- this.model.getAllLines().filter((i) => i.selected).map((i) => i)
28
+ this.model.getAllLines().filter((e) => e.selected).map((e) => e)
29
29
  );
30
30
  });
31
- s(this, "polylineAdded", (e) => {
32
- const i = this.five.getCurrentState().panoIndex;
33
- e.lines.forEach((t) => {
34
- e.visiblePanoIndexes && !e.visiblePanoIndexes.includes(i) && (t.mesh.visible = !1), t.distanceItem.appendTo(this.container), t.distanceItem.update(this.five), this.group.add(t.mesh);
31
+ o(this, "polylineAdded", (t) => {
32
+ const e = this.five.getCurrentState().panoIndex;
33
+ t.lines.forEach((i) => {
34
+ t.visiblePanoIndexes && !t.visiblePanoIndexes.includes(e) && (i.mesh.visible = !1), i.distanceItem.appendTo(this.container), i.distanceItem.update(this.five), this.group.add(i.mesh);
35
35
  });
36
36
  });
37
- s(this, "onCameraUpdate", () => {
37
+ o(this, "onCameraUpdate", () => {
38
38
  this.updateDistanceUI();
39
39
  });
40
- s(this, "onFivePanoWillArrive", (e) => {
41
- this.model.polylines.forEach((i) => {
42
- i.visiblePanoIndexes && (i.visiblePanoIndexes.includes(e) || i.lines.forEach((t) => {
43
- t.mesh.visible = !1, t.distanceItem.update(this.five);
40
+ o(this, "onFiveModeChange", (t) => {
41
+ this.model.polylines.forEach((e) => {
42
+ e.visibleFiveMode && (e.visibleFiveMode.includes(t) || e.lines.forEach((i) => {
43
+ i.mesh.visible = !1, i.distanceItem.update(this.five);
44
+ }));
45
+ }), this.five.ready().then(() => {
46
+ const e = this.five.getCurrentState().mode;
47
+ this.model.polylines.forEach((i) => {
48
+ i.visibleFiveMode && i.visibleFiveMode.includes(e) && i.lines.forEach((r) => {
49
+ r.mesh.visible = !0, r.distanceItem.update(this.five);
50
+ });
51
+ });
52
+ });
53
+ });
54
+ o(this, "onFivePanoWillArrive", (t) => {
55
+ this.model.polylines.forEach((e) => {
56
+ e.visiblePanoIndexes && (e.visiblePanoIndexes.includes(t) || e.lines.forEach((i) => {
57
+ i.mesh.visible = !1, i.distanceItem.update(this.five);
44
58
  }));
45
59
  });
46
60
  });
47
- s(this, "onFivePanoArrived", (e) => {
48
- this.model.polylines.forEach((i) => {
49
- i.visiblePanoIndexes && i.visiblePanoIndexes.includes(e) && i.lines.forEach((t) => {
50
- t.mesh.visible = !0, t.distanceItem.update(this.five);
61
+ o(this, "onFivePanoArrived", (t) => {
62
+ this.model.polylines.forEach((e) => {
63
+ e.visiblePanoIndexes && e.visiblePanoIndexes.includes(t) && e.lines.forEach((i) => {
64
+ i.mesh.visible = !0, i.distanceItem.update(this.five);
51
65
  });
52
66
  });
53
67
  });
54
- this.model.getAllLines().forEach((t) => {
55
- t.distanceItem.appendTo(this.container), t.distanceItem.update(this.five), this.group.add(t.mesh);
68
+ this.model.getAllLines().forEach((i) => {
69
+ i.distanceItem.appendTo(this.container), i.distanceItem.update(this.five), this.group.add(i.mesh);
56
70
  });
57
- const i = this.five.getElement();
58
- if (i) {
59
- const t = new a(i);
60
- this.hammer = t;
71
+ const e = this.five.getElement();
72
+ if (e) {
73
+ const i = new h(e);
74
+ this.hammer = i;
61
75
  }
62
- this.onFivePanoWillArrive(this.five.getCurrentState().panoIndex), this.onFivePanoArrived(this.five.getCurrentState().panoIndex), this.updateDistanceUI(), this.five.needsRender = !0, this.model.hook.on("polylineAdded", this.polylineAdded), this.model.hook.on("polylineRemoved", this.polylineRemoved), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("panoArrived", this.onFivePanoArrived), this.five.on("panoWillArrive", this.onFivePanoWillArrive);
76
+ this.onFivePanoWillArrive(this.five.getCurrentState().panoIndex), this.onFivePanoArrived(this.five.getCurrentState().panoIndex), this.onFiveModeChange(this.five.getCurrentState().mode), this.updateDistanceUI(), this.five.needsRender = !0, this.model.hook.on("polylineAdded", this.polylineAdded), this.model.hook.on("polylineRemoved", this.polylineRemoved), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("panoArrived", this.onFivePanoArrived), this.five.on("modeChange", this.onFiveModeChange), this.five.on("panoWillArrive", this.onFivePanoWillArrive);
63
77
  }
64
78
  dispose() {
65
- var e;
66
- super.dispose(), this.model.hook.off("polylineAdded", this.polylineAdded), this.model.hook.off("polylineRemoved", this.polylineRemoved), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("panoWillArrive", this.onFivePanoWillArrive), this.five.needsRender = !0, this.hook.emit("selectedChange", []), (e = this.hammer) == null || e.destroy();
79
+ var t;
80
+ super.dispose(), this.model.hook.off("polylineAdded", this.polylineAdded), this.model.hook.off("polylineRemoved", this.polylineRemoved), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("modeChange", this.onFiveModeChange), this.five.off("panoWillArrive", this.onFivePanoWillArrive), this.five.needsRender = !0, this.hook.emit("selectedChange", []), (t = this.hammer) == null || t.destroy();
67
81
  }
68
82
  }
69
83
  export {
@@ -1,7 +1,7 @@
1
1
  import type { PolylineJson } from '../typings/data';
2
2
  import Line from './line';
3
3
  import Point from './point';
4
- import { Subscribe } from '@realsee/five';
4
+ import { Subscribe, type Mode as FiveMode } from '@realsee/five';
5
5
  import type { Model } from '.';
6
6
  export type PolylineEventMap = {
7
7
  /** 新增线条
@@ -17,6 +17,7 @@ export declare class Polyline {
17
17
  id: string;
18
18
  lines: Line[];
19
19
  visiblePanoIndexes?: number[];
20
+ visibleFiveMode?: FiveMode[];
20
21
  readonly model: Model;
21
22
  readonly type = "polyline";
22
23
  readonly hook: Subscribe<PolylineEventMap>;
@@ -1,10 +1,10 @@
1
1
  var c = Object.defineProperty;
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);
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 t = (r, i, e) => (f(r, typeof i != "symbol" ? i + "" : i, e), e);
4
4
  import m from "./line.js";
5
5
  import a from "./point.js";
6
- import { uuid as P } from "../../shared-utils/uuid.js";
7
- import { Subscribe as g } from "@realsee/five";
6
+ import { uuid as v } from "../../shared-utils/uuid.js";
7
+ import { Subscribe as P } from "@realsee/five";
8
8
  import "../utils/line.js";
9
9
  import "../../shared-utils/five/FiveLine.js";
10
10
  import "@realsee/five/line";
@@ -14,20 +14,21 @@ import "../utils/dom/distanceItem.js";
14
14
  import "../utils/dom/base.js";
15
15
  import "../utils/isNDCPointInScreen.js";
16
16
  import "../../shared-utils/three/centerPoint.js";
17
- class B {
17
+ class R {
18
18
  constructor(i) {
19
- o(this, "id", P());
20
- o(this, "lines", []);
21
- o(this, "visiblePanoIndexes");
22
- o(this, "model");
23
- o(this, "type", "polyline");
24
- o(this, "hook", new g());
19
+ t(this, "id", v());
20
+ t(this, "lines", []);
21
+ t(this, "visiblePanoIndexes");
22
+ t(this, "visibleFiveMode");
23
+ t(this, "model");
24
+ t(this, "type", "polyline");
25
+ t(this, "hook", new P());
25
26
  this.model = i.model;
26
27
  }
27
28
  get points() {
28
29
  const i = /* @__PURE__ */ new Set();
29
- return this.lines.forEach((t) => {
30
- i.add(t.points[0]), i.add(t.points[1]);
30
+ return this.lines.forEach((e) => {
31
+ i.add(e.points[0]), i.add(e.points[1]);
31
32
  }), Array.from(i);
32
33
  }
33
34
  addLine(i) {
@@ -35,8 +36,8 @@ class B {
35
36
  console.error(new Error("不能重复添加线段"));
36
37
  return;
37
38
  }
38
- const t = this.getLastPoint(), l = t && i.findAnotherPoint(t);
39
- if (t && !l) {
39
+ const e = this.getLastPoint(), l = e && i.findAnotherPoint(e);
40
+ if (e && !l) {
40
41
  console.error(new Error("传入线段无法与当前折线进行连接"));
41
42
  return;
42
43
  }
@@ -52,8 +53,8 @@ class B {
52
53
  this.lines.pop() && this.hook.emit("lineRemoved", i);
53
54
  }
54
55
  isLastLine(i) {
55
- const t = this.getLastLine();
56
- return t ? i.id === t.id : !1;
56
+ const e = this.getLastLine();
57
+ return e ? i.id === e.id : !1;
57
58
  }
58
59
  getLastLine() {
59
60
  return this.lines.slice(-1)[0];
@@ -66,14 +67,14 @@ class B {
66
67
  }
67
68
  clear() {
68
69
  const i = this.lines.slice();
69
- this.lines.length = 0, i.reduceRight((t, l) => this.hook.emit("lineRemoved", l), void 0);
70
+ this.lines.length = 0, i.reduceRight((e, l) => this.hook.emit("lineRemoved", l), void 0);
70
71
  }
71
72
  /** 是否产生重叠 */
72
73
  overlapWith(i) {
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;
74
+ 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;
74
75
  }
75
76
  includes(i) {
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;
77
+ 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;
77
78
  }
78
79
  isEmpty() {
79
80
  return this.lines.length === 0;
@@ -88,33 +89,34 @@ class B {
88
89
  return {
89
90
  id: this.id,
90
91
  lines: this.lines.map((i) => i.toJson()),
91
- visiblePanoIndexes: this.visiblePanoIndexes
92
+ visiblePanoIndexes: this.visiblePanoIndexes,
93
+ visibleFiveMode: this.visibleFiveMode
92
94
  };
93
95
  }
94
96
  getPointByID(i) {
95
- return this.points.find(({ id: t }) => t === i);
97
+ return this.points.find(({ id: e }) => e === i);
96
98
  }
97
99
  fromJson(i) {
98
100
  this.clear(), this.id = i.id;
99
- const { getPoint: t } = u(), l = i.lines.map((e) => {
100
- const [d, p] = e.points, n = t(d), h = t(p);
101
- if (!n || !h)
101
+ const { getPoint: e } = u(), l = i.lines.map((n) => {
102
+ const [d, p] = n.points, s = e(d), h = e(p);
103
+ if (!s || !h)
102
104
  throw new Error("线上的点不存在");
103
- const s = new m(n, h, this.model);
104
- return s.id = e.id, s.text = e.text, s;
105
+ const o = new m(s, h, this.model);
106
+ return o.id = n.id, o.text = n.text, o;
105
107
  });
106
- this.lines.push(...l), this.visiblePanoIndexes = i.visiblePanoIndexes;
108
+ this.lines.push(...l), this.visiblePanoIndexes = i.visiblePanoIndexes, this.visibleFiveMode = i.visibleFiveMode;
107
109
  function u() {
108
- const e = /* @__PURE__ */ new Map();
109
- function d(n) {
110
- const h = e.get(n.id);
110
+ const n = /* @__PURE__ */ new Map();
111
+ function d(s) {
112
+ const h = n.get(s.id);
111
113
  if (h)
112
114
  return h;
113
- const s = new a(n.position);
114
- return s.id = n.id, e.set(n.id, s), s;
115
+ const o = new a(s.position);
116
+ return o.id = s.id, n.set(s.id, o), o;
115
117
  }
116
118
  function p() {
117
- return Array.from(e.values());
119
+ return Array.from(n.values());
118
120
  }
119
121
  return { getPoint: d, getAllPoints: p };
120
122
  }
@@ -125,5 +127,5 @@ class B {
125
127
  }
126
128
  }
127
129
  export {
128
- B as Polyline
130
+ R as Polyline
129
131
  };