@realsee/dnalogel 3.35.0-dev.0 → 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 (404) 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/PanoVideoPlugin/Controller.d.ts +3 -1
  8. package/dist/PanoVideoPlugin/typings.d.ts +2 -2
  9. package/dist/index.cjs.js +21 -21
  10. package/dist/index.js +111 -100
  11. package/dist/index.umd.js +23 -23
  12. package/dist/shared-utils/tag.d.ts +4 -4
  13. package/docs/assets/search.js +1 -1
  14. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +44 -34
  15. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +44 -34
  16. package/docs/classes/CSS3DRender.html +43 -33
  17. package/docs/classes/GuideLineItem.GuideLineItem.html +31 -21
  18. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +55 -45
  19. package/docs/classes/{Magnifier.html → ModelMakerPluginInstance.html} +203 -111
  20. package/docs/classes/ModelRoomLabelController.html +23 -13
  21. package/docs/classes/MoveController.html +43 -33
  22. package/docs/classes/Object3DHelperController.html +39 -47
  23. package/docs/classes/PaintBrush.html +27 -17
  24. package/docs/classes/PanoMeasurePluginLine.html +56 -36
  25. package/docs/classes/PanoMeasurePluginModel.html +42 -32
  26. package/docs/classes/PanoMeasurePluginPoint.html +23 -13
  27. package/docs/classes/PanoMeasurePluginPolyline.html +61 -34
  28. package/docs/classes/PanoTagPluginController.html +234 -126
  29. package/docs/classes/Sculpt.html +852 -0
  30. package/docs/classes/Util.BetterTween.html +27 -13
  31. package/docs/classes/Util.Interval.html +29 -15
  32. package/docs/classes/Util.LineSegments.html +25 -11
  33. package/docs/classes/Util.Magnifier.html +93 -60
  34. package/docs/classes/Util.Object3D.html +26 -12
  35. package/docs/classes/Util.PointDomHelper.html +28 -14
  36. package/docs/classes/Util.PointHelper.html +28 -14
  37. package/docs/classes/Util.PointSelectorHelper.html +34 -20
  38. package/docs/classes/Util.Rectangle.html +30 -16
  39. package/docs/classes/WalkController.html +39 -29
  40. package/docs/enums/CameraMovementEffect.html +19 -9
  41. package/docs/enums/ContentType.html +33 -23
  42. package/docs/enums/DIRECTION.html +21 -11
  43. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +21 -11
  44. package/docs/enums/DimensionType.html +19 -9
  45. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +20 -10
  46. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +21 -11
  47. package/docs/enums/PaintBrushTypeEnum.html +20 -10
  48. package/docs/enums/PointType.html +19 -9
  49. package/docs/enums/Rotation.html +20 -10
  50. package/docs/functions/AreaMakerPlugin.html +17 -7
  51. package/docs/functions/CSS3DRenderPlugin.html +17 -7
  52. package/docs/functions/CameraMovementPlugin.html +17 -7
  53. package/docs/functions/CruisePlugin.html +17 -7
  54. package/docs/functions/CurrentPanoImagePlugin.html +17 -7
  55. package/docs/functions/GuideLinePlugin.html +17 -7
  56. package/docs/functions/ItemLabelPlugin.html +17 -7
  57. package/docs/functions/MapviewFloorplanPlugin.html +17 -7
  58. package/docs/functions/ModelChassisCompassPlugin.html +17 -7
  59. package/docs/functions/ModelEntryDoorGuidePlugin.html +17 -7
  60. package/docs/functions/ModelFloorplanPlugin.html +17 -7
  61. package/docs/functions/ModelItemLabelPlugin.html +17 -7
  62. package/docs/functions/ModelMakerPlugin.html +303 -0
  63. package/docs/functions/ModelRoomLabelPlugin.html +17 -7
  64. package/docs/functions/ModelTVVideoPlugin.html +17 -7
  65. package/docs/functions/ModelViewPlugin.html +17 -7
  66. package/docs/functions/MovePlugin.html +18 -8
  67. package/docs/functions/Object3DHelperPlugin.html +17 -7
  68. package/docs/functions/PanoCompassPlugin.html +17 -7
  69. package/docs/functions/PanoCursorRaycasterPlugin.html +17 -7
  70. package/docs/functions/PanoDoorLabelPlugin.html +17 -7
  71. package/docs/functions/PanoFloorplanRadarPlugin.html +17 -7
  72. package/docs/functions/PanoMeasurePlugin.html +17 -7
  73. package/docs/functions/PanoRulerPlugin.html +17 -7
  74. package/docs/functions/PanoRulerProPlugin.html +17 -7
  75. package/docs/functions/PanoSpatialTagPlugin.html +17 -7
  76. package/docs/functions/PanoTagPlugin.html +20 -8
  77. package/docs/functions/PanoVideoPlugin.html +17 -7
  78. package/docs/functions/PipelinePlugin.html +17 -7
  79. package/docs/functions/SculptPlugin.html +306 -0
  80. package/docs/functions/TopviewFloorplanPlugin.html +17 -7
  81. package/docs/functions/Util.absoluteUrl.html +22 -8
  82. package/docs/functions/Util.blink.html +351 -0
  83. package/docs/functions/Util.checkFiveModelLoaded.html +22 -8
  84. package/docs/functions/Util.equal.html +22 -8
  85. package/docs/functions/Util.getCoordsFromClient.html +22 -8
  86. package/docs/functions/Util.getCoordsFromElement.html +22 -8
  87. package/docs/functions/Util.getFrameTime.html +22 -8
  88. package/docs/functions/Util.getIntersectFromRelativePosition.html +29 -10
  89. package/docs/functions/Util.getRaycasterFromFivePointer.html +22 -8
  90. package/docs/functions/Util.isAbsoluteURL.html +22 -8
  91. package/docs/functions/Util.isModelLike.html +22 -8
  92. package/docs/functions/Util.isNil.html +22 -8
  93. package/docs/functions/Util.isPanoramaLike.html +22 -8
  94. package/docs/functions/Util.nextFrame.html +22 -8
  95. package/docs/functions/Util.notNil.html +22 -8
  96. package/docs/functions/Util.reblink.html +349 -0
  97. package/docs/functions/Util.requestAnimationFrameInterval.html +22 -8
  98. package/docs/functions/Util.tweenProgress.html +22 -8
  99. package/docs/functions/Util.uuid.html +22 -8
  100. package/docs/functions/pluginFlag.html +17 -7
  101. package/docs/index.html +18 -7
  102. package/docs/interfaces/AddTagConfig.html +18 -8
  103. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +17 -7
  104. package/docs/interfaces/AreaMakerPluginType.Config.html +17 -7
  105. package/docs/interfaces/AreaMakerPluginType.EventMap.html +30 -20
  106. package/docs/interfaces/AreaMakerPluginType.Params.html +18 -8
  107. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +20 -10
  108. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +19 -9
  109. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +17 -7
  110. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +17 -7
  111. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +17 -7
  112. package/docs/interfaces/AreaMakerPluginType.State.html +19 -9
  113. package/docs/interfaces/CSS3DRenderPluginEventMap.html +23 -13
  114. package/docs/interfaces/CSS3DRenderPluginState.html +20 -10
  115. package/docs/interfaces/CameraMovementPluginExportType.html +19 -9
  116. package/docs/interfaces/ContentTypeMapInterface.html +773 -0
  117. package/docs/interfaces/CruisePluginTypes.Config.html +21 -10
  118. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +24 -13
  119. package/docs/interfaces/CruisePluginTypes.EventMap.html +33 -22
  120. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +352 -0
  121. package/docs/interfaces/CruisePluginTypes.MoveAction.html +39 -23
  122. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +30 -18
  123. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +30 -18
  124. package/docs/interfaces/CruisePluginTypes.PluginData.html +41 -30
  125. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +18 -7
  126. package/docs/interfaces/CruisePluginTypes.PluginState.html +25 -14
  127. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +23 -13
  128. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +24 -14
  129. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +19 -9
  130. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +18 -8
  131. package/docs/interfaces/CurrentPanoImagePluginType.State.html +20 -10
  132. package/docs/interfaces/EventMap.html +27 -17
  133. package/docs/interfaces/FloorplanBounding.html +20 -10
  134. package/docs/interfaces/FloorplanData.html +22 -12
  135. package/docs/interfaces/FloorplanEntrance.html +23 -13
  136. package/docs/interfaces/FloorplanExtraObject.html +22 -12
  137. package/docs/interfaces/FloorplanExtraObject3D.html +20 -10
  138. package/docs/interfaces/FloorplanFloorData.html +21 -11
  139. package/docs/interfaces/FloorplanImagePosition.html +19 -9
  140. package/docs/interfaces/FloorplanObserver.html +21 -11
  141. package/docs/interfaces/FloorplanOutlineItem.html +21 -11
  142. package/docs/interfaces/FloorplanPosition.html +19 -9
  143. package/docs/interfaces/FloorplanRoomItem.html +26 -16
  144. package/docs/interfaces/FloorplanRoomLabelItem.html +19 -9
  145. package/docs/interfaces/FloorplanServerBounding.html +20 -10
  146. package/docs/interfaces/FloorplanServerComputedData.html +22 -12
  147. package/docs/interfaces/FloorplanServerData.html +19 -9
  148. package/docs/interfaces/FloorplanServerDoorItem.html +22 -12
  149. package/docs/interfaces/FloorplanServerDoorPosition.html +20 -10
  150. package/docs/interfaces/FloorplanServerEntrance.html +23 -13
  151. package/docs/interfaces/FloorplanServerFloorData.html +21 -11
  152. package/docs/interfaces/FloorplanServerImagePosition.html +19 -9
  153. package/docs/interfaces/FloorplanServerObserver.html +21 -11
  154. package/docs/interfaces/FloorplanServerOutlineItem.html +21 -11
  155. package/docs/interfaces/FloorplanServerPosition.html +19 -9
  156. package/docs/interfaces/FloorplanServerRoomItem.html +27 -17
  157. package/docs/interfaces/FloorplanServerRoomLabelItem.html +19 -9
  158. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +20 -10
  159. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +21 -11
  160. package/docs/interfaces/GuideLinePluginType.EventMap.html +24 -14
  161. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +19 -9
  162. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +17 -7
  163. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +26 -16
  164. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +17 -7
  165. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +19 -9
  166. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +32 -22
  167. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +18 -8
  168. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +33 -23
  169. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +16 -6
  170. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +17 -7
  171. package/docs/interfaces/GuideLinePluginType.PluginState.html +19 -9
  172. package/docs/interfaces/GuideLinePluginType.Route.html +22 -12
  173. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +20 -10
  174. package/docs/interfaces/HelperOffset.html +20 -10
  175. package/docs/interfaces/ImagePlaneGroup.html +18 -8
  176. package/docs/interfaces/ItemLabelPluginData.html +18 -8
  177. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +23 -13
  178. package/docs/interfaces/ItemLabelPluginParametersType.html +21 -11
  179. package/docs/interfaces/MinMax.html +19 -9
  180. package/docs/interfaces/ModelChassisCompassPluginData.html +19 -9
  181. package/docs/interfaces/ModelChassisCompassPluginExportType.html +20 -10
  182. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +19 -9
  183. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +20 -10
  184. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +20 -10
  185. package/docs/interfaces/ModelItemLabelPluginData.html +18 -8
  186. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +23 -13
  187. package/docs/interfaces/ModelItemLabelPluginParametersType.html +19 -9
  188. package/docs/interfaces/ModelMakerPluginType.EventMap.html +556 -0
  189. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +349 -0
  190. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +391 -0
  191. package/docs/interfaces/ModelMakerPluginType.ServerData.html +332 -0
  192. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +401 -0
  193. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +381 -0
  194. package/docs/interfaces/ModelMakerPluginType.State.html +364 -0
  195. package/docs/interfaces/ModelRoomLabelPluginData.html +18 -8
  196. package/docs/interfaces/ModelTVVideoPluginData.html +21 -11
  197. package/docs/interfaces/ModelTVVideoPluginExportType.html +20 -10
  198. package/docs/interfaces/ModelTVVideoPluginParameterType.html +18 -8
  199. package/docs/interfaces/ModelViewPluginExportType.html +23 -13
  200. package/docs/interfaces/Object3DHelperState.html +20 -10
  201. package/docs/interfaces/ObjectHelperControllers.html +22 -12
  202. package/docs/interfaces/PaintBrushAction.html +24 -14
  203. package/docs/interfaces/PaintBrushConfigs.html +24 -14
  204. package/docs/interfaces/PaintBrushState.html +22 -12
  205. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +22 -12
  206. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +17 -7
  207. package/docs/interfaces/PanoMeasureParameterType.html +28 -18
  208. package/docs/interfaces/PanoMeasurePluginLineJson.html +20 -10
  209. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +19 -9
  210. package/docs/interfaces/PanoMeasurePluginPointJson.html +19 -9
  211. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +30 -10
  212. package/docs/interfaces/PanoRulerPluginExportType.html +22 -12
  213. package/docs/interfaces/PanoRulerPluginOptions.html +19 -9
  214. package/docs/interfaces/PanoRulerPluginParameterType.html +20 -10
  215. package/docs/interfaces/PanoRulerProPluginExportType.html +21 -11
  216. package/docs/interfaces/PanoRulerProPluginOptions.html +19 -9
  217. package/docs/interfaces/PanoRulerProPluginParameterType.html +19 -9
  218. package/docs/interfaces/PanoRulerProPluginState.html +20 -10
  219. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +17 -7
  220. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +17 -7
  221. package/docs/interfaces/PanoSpatialTagPluginData.html +23 -13
  222. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +22 -12
  223. package/docs/interfaces/PanoSpatialTagPluginExportType.html +25 -15
  224. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +22 -12
  225. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +25 -15
  226. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +23 -13
  227. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +22 -12
  228. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +18 -8
  229. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +20 -10
  230. package/docs/interfaces/PanoVideoPluginType.PluginData.html +18 -8
  231. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +78 -18
  232. package/docs/interfaces/PanoVideoPluginType.PluginState.html +18 -8
  233. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +20 -10
  234. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +22 -12
  235. package/docs/interfaces/Point.html +20 -10
  236. package/docs/interfaces/Room.html +21 -11
  237. package/docs/interfaces/RoomInfo.html +19 -9
  238. package/docs/interfaces/RoomLabel.html +26 -16
  239. package/docs/interfaces/RoomRules.html +17 -7
  240. package/docs/interfaces/Rooms.html +17 -7
  241. package/docs/interfaces/Scissor.html +21 -11
  242. package/docs/interfaces/State.html +20 -10
  243. package/docs/interfaces/TagCacheInterface.html +24 -14
  244. package/docs/interfaces/TagConfig.html +65 -49
  245. package/docs/interfaces/TagGLTFObjectGroup.html +18 -8
  246. package/docs/interfaces/TagIconUrl.html +24 -14
  247. package/docs/interfaces/TagObjectGroup.html +18 -8
  248. package/docs/interfaces/TagStyle.html +18 -8
  249. package/docs/interfaces/Tags.html +61 -437
  250. package/docs/interfaces/TemporaryState.html +18 -8
  251. package/docs/interfaces/Util.BlinkAnimeOptions.html +380 -0
  252. package/docs/interfaces/Util.MagnifierParameter.html +43 -24
  253. package/docs/interfaces/Util.MouseGroupParameter.html +25 -11
  254. package/docs/interfaces/Util.PointIntersection.html +33 -12
  255. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +387 -0
  256. package/docs/modules/AreaMakerPluginType.html +16 -6
  257. package/docs/modules/CruisePluginTypes.html +18 -6
  258. package/docs/modules/CurrentPanoImagePluginType.html +17 -7
  259. package/docs/modules/GuideLineItem.html +17 -7
  260. package/docs/modules/GuideLineModeItem.html +17 -7
  261. package/docs/modules/GuideLinePluginType.html +16 -6
  262. package/docs/modules/ModelMakerPluginType.html +339 -0
  263. package/docs/modules/PanoVideoPluginType.html +17 -7
  264. package/docs/modules/SculptData.html +318 -0
  265. package/docs/modules/Util.html +26 -8
  266. package/docs/modules.html +34 -11
  267. package/docs/types/AddObject3DHelperConfig.html +315 -0
  268. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +16 -6
  269. package/docs/types/AreaMakerPluginType.ItemRenderer.html +16 -6
  270. package/docs/types/AreaMakerPluginType.PluginData.html +16 -6
  271. package/docs/types/AreaMakerPluginType.ServerData.html +16 -6
  272. package/docs/types/ArrayPosition.html +17 -7
  273. package/docs/types/AudioAppearance.html +17 -7
  274. package/docs/types/CSS3DRenderExportType.html +17 -7
  275. package/docs/types/CSS3DRenderPluginExportType.html +17 -7
  276. package/docs/types/CSS3DRenderPluginParameterType.html +17 -7
  277. package/docs/types/ClassFunctionParameters.html +17 -7
  278. package/docs/types/Color.html +17 -7
  279. package/docs/types/ContentTypeConfigKey.html +17 -7
  280. package/docs/types/ContentTypeConfigKeySplit.html +18 -8
  281. package/docs/types/ContentTypeMap.html +17 -7
  282. package/docs/types/Create3DDomContainerReturnType.html +17 -7
  283. package/docs/types/Create3DElementReturnType.html +17 -7
  284. package/docs/types/CruisePluginExportType.html +17 -7
  285. package/docs/types/CruisePluginTypes.CruiseData.html +17 -6
  286. package/docs/types/CruisePluginTypes.MoveEffect.html +17 -6
  287. package/docs/types/CurrentPanoImagePluginExportType.html +17 -7
  288. package/docs/types/DeprecatedMediaPlaneProperty.html +17 -7
  289. package/docs/types/DeprecatedTagProperty.html +17 -7
  290. package/docs/types/Direction-1.html +17 -7
  291. package/docs/types/Direction4.html +17 -7
  292. package/docs/types/ElementRenderer.html +17 -7
  293. package/docs/types/FloorplanRuleLabels.html +17 -7
  294. package/docs/types/FloorplanServerRuleLabels.html +17 -7
  295. package/docs/types/GuideLinePluginExportType.html +17 -7
  296. package/docs/types/GuideLinePluginType.GuideLineItem.html +18 -8
  297. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +16 -6
  298. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +16 -6
  299. package/docs/types/GuideLinePluginType.GuideLineStyle.html +16 -6
  300. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +16 -6
  301. package/docs/types/GuideLinePluginType.PathItem.html +16 -6
  302. package/docs/types/GuideLinePluginType.PluginData.html +16 -6
  303. package/docs/types/HelperEventMap.html +17 -7
  304. package/docs/types/InternalHelperEventMap.html +29 -11
  305. package/docs/types/LoadTagConfig.html +17 -7
  306. package/docs/types/MapviewFloorplanPluginParameterType.html +17 -7
  307. package/docs/types/MapviewFloorplanPluginReturnType.html +17 -7
  308. package/docs/types/MediaData.html +20 -10
  309. package/docs/types/MediaStore.html +17 -7
  310. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +17 -7
  311. package/docs/types/ModelFloorplanPluginParameterType.html +17 -7
  312. package/docs/types/ModelFloorplanPluginReturnType.html +17 -7
  313. package/docs/types/ModelId.html +17 -7
  314. package/docs/types/ModelMakerPluginType.ElementRenderer.html +329 -0
  315. package/docs/types/ModelMakerPluginType.ItemType.html +308 -0
  316. package/docs/types/ModelRoomLabelPluginParameters.html +17 -7
  317. package/docs/types/ModelRoomLabelPluginReturnType.html +17 -7
  318. package/docs/types/MoveArgs.html +17 -7
  319. package/docs/types/MoveOpts.html +17 -7
  320. package/docs/types/Object3DHelperEventMap.html +17 -7
  321. package/docs/types/ObjectFit.html +17 -7
  322. package/docs/types/PaintBrushEventMap.html +17 -7
  323. package/docs/types/PanoCompassPluginData.html +17 -7
  324. package/docs/types/PanoCompassPluginExportType.html +17 -7
  325. package/docs/types/PanoCompassPluginParameterType.html +17 -7
  326. package/docs/types/PanoFloorplanRadarPluginParameterType.html +17 -7
  327. package/docs/types/PanoFloorplanRadarPluginReturnType.html +17 -7
  328. package/docs/types/PanoIndex.html +17 -7
  329. package/docs/types/PanoMeasurePluginEvent.html +17 -7
  330. package/docs/types/PanoMeasureReturnType.html +17 -7
  331. package/docs/types/PanoSpatialTagPluginId.html +17 -7
  332. package/docs/types/PanoTagPluginExportInterface.html +17 -7
  333. package/docs/types/PanoTagPluginParamsInterface.html +17 -7
  334. package/docs/types/PanoVideoPluginParameterType.html +17 -7
  335. package/docs/types/PanoVideoPluginReturnType.html +17 -7
  336. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +22 -12
  337. package/docs/types/PipelinePluginParameterType.html +17 -7
  338. package/docs/types/PipelinePluginReturnType.html +17 -7
  339. package/docs/types/PlaneTag.html +17 -7
  340. package/docs/types/Point2DTag.html +17 -7
  341. package/docs/types/Point3DTag.html +17 -7
  342. package/docs/types/PointTag.html +17 -7
  343. package/docs/types/PointTagInstance.html +17 -7
  344. package/docs/types/Position.html +17 -7
  345. package/docs/types/{AudioTagTypeConfigKey.html → PositionFrom.html} +28 -10
  346. package/docs/types/RotateArgs.html +17 -7
  347. package/docs/types/RotateOpts.html +17 -7
  348. package/docs/types/RuleLabelsKey.html +17 -7
  349. package/docs/types/RuleLabelsValue.html +17 -7
  350. package/docs/types/ScaleCallback.html +314 -0
  351. package/docs/types/ScalePosition.html +303 -0
  352. package/docs/types/SculptData.BoxData.html +306 -0
  353. package/docs/types/SculptData.CircleData.html +306 -0
  354. package/docs/types/SculptData.CylinderData.html +306 -0
  355. package/docs/types/SculptData.PointData.html +306 -0
  356. package/docs/types/SculptData.PolygonData.html +306 -0
  357. package/docs/types/SculptData.PolylineData.html +306 -0
  358. package/docs/types/SculptData.PrismData.html +306 -0
  359. package/docs/types/SculptData.RectangleData.html +306 -0
  360. package/docs/types/StickType.html +17 -7
  361. package/docs/types/Tag.html +35 -13
  362. package/docs/types/Tag2D.html +17 -7
  363. package/docs/types/Tag3D.html +17 -7
  364. package/docs/types/TagConfigByKey.html +18 -8
  365. package/docs/types/TagContentType.html +17 -7
  366. package/docs/types/TagContentTypeMapping.html +17 -7
  367. package/docs/types/TagDimensionType.html +17 -7
  368. package/docs/types/TagElement.html +17 -7
  369. package/docs/types/TagEvents.html +38 -12
  370. package/docs/types/TagGLTFObject.html +17 -7
  371. package/docs/types/TagHooks.html +17 -7
  372. package/docs/types/TagId.html +17 -7
  373. package/docs/types/TagInstance.html +44 -8
  374. package/docs/types/TagPointType.html +17 -7
  375. package/docs/types/TagRendererMap.html +17 -7
  376. package/docs/types/TopviewFloorplanPluginParameterType.html +17 -7
  377. package/docs/types/TopviewFloorplanPluginReturnType.html +17 -7
  378. package/docs/types/WorkCode.html +17 -7
  379. package/docs/variables/FLOOR_TYPE_MAP.html +17 -7
  380. package/docs/variables/PLUGIN.html +17 -7
  381. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +17 -7
  382. package/docs/variables/ROOM_TYPE_MAP.html +17 -7
  383. package/docs/variables/defaultGlobalConfig.html +17 -7
  384. package/docs/variables/itemLabelPluginServerParams.html +17 -7
  385. package/docs/variables/modelItemLabelPluginServerParams.html +17 -7
  386. package/docs/variables/modelRoomLabelPluginServerParams.html +17 -7
  387. package/libs/ModelMakerPlugin/Controller.d.ts +1 -1
  388. package/libs/ModelMakerPlugin/Controller.js +88 -86
  389. package/libs/ModelMakerPlugin/item/baseItem.d.ts +1 -1
  390. package/libs/ModelMakerPlugin/item/baseItem.js +23 -26
  391. package/libs/PanoMeasurePlugin/Controller/ViewController.d.ts +1 -0
  392. package/libs/PanoMeasurePlugin/Controller/ViewController.js +49 -35
  393. package/libs/PanoMeasurePlugin/Model/polyline.d.ts +2 -1
  394. package/libs/PanoMeasurePlugin/Model/polyline.js +37 -35
  395. package/libs/PanoMeasurePlugin/typings/data.d.ts +3 -0
  396. package/libs/PanoRulerPlugin/Plugin.js +15 -15
  397. package/libs/PanoVideoPlugin/Controller.d.ts +3 -1
  398. package/libs/PanoVideoPlugin/Controller.js +41 -41
  399. package/libs/PanoVideoPlugin/typings.d.ts +2 -2
  400. package/libs/base/BasePlugin.js +3 -3
  401. package/libs/shared-utils/logger.js +1 -1
  402. package/libs/shared-utils/tag.d.ts +4 -4
  403. package/libs/shared-utils/tag.js +26 -30
  404. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -48,7 +48,7 @@ import Um from "earcut";
48
48
  import { GLTFLoader as Ym } from "@realsee/five/gltf-loader";
49
49
  function Xm() {
50
50
  console.debug(
51
- "%c %c@realsee/dnalogel %cv3.35.0-dev.0",
51
+ "%c %c@realsee/dnalogel %cv3.35.0",
52
52
  [
53
53
  "background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
54
54
  "background-repeat: no-repeat",
@@ -7434,7 +7434,7 @@ let rn = class {
7434
7434
  /**
7435
7435
  * @realsee/dnalogel 版本号
7436
7436
  */
7437
- d(this, "VERSION", "3.35.0-dev.0");
7437
+ d(this, "VERSION", "3.35.0");
7438
7438
  d(this, "five");
7439
7439
  /**
7440
7440
  * @description: 插件事件钩子
@@ -9908,10 +9908,7 @@ const lb = `<style type="text/css">
9908
9908
  `, y = document.createElement("div");
9909
9909
  return y.setAttribute("class", "PanoRulerPlugin-rule"), y.setAttribute("data-name", p), y.setAttribute("style", "display: none"), y.innerHTML = b, y;
9910
9910
  }, s = document.createElement("div");
9911
- s.setAttribute(
9912
- "style",
9913
- "position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
9914
- );
9911
+ s.setAttribute("style", "position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;");
9915
9912
  const o = document.createElement("div");
9916
9913
  o.innerHTML = lb, s.appendChild(o);
9917
9914
  const r = {}, a = (p, m) => {
@@ -9967,9 +9964,7 @@ const lb = `<style type="text/css">
9967
9964
  const y = p || t.roomInfo, P = m || t.roomRules;
9968
9965
  if (!y || !P)
9969
9966
  throw new Error("标尺数据依赖不齐全!");
9970
- return e.loaded = !1, e.options = D(D({}, e.options), b || {}), n.model.loaded ? a(y, P) : yield new Promise(
9971
- (I) => n.once("modelLoaded", () => I(a(y, P)))
9972
- );
9967
+ return e.loaded = !1, e.options = D(D({}, e.options), b || {}), n.model.loaded ? a(y, P) : yield new Promise((I) => n.once("modelLoaded", () => I(a(y, P))));
9973
9968
  });
9974
9969
  t.roomInfo && t.roomRules && l(t.roomInfo, t.roomRules);
9975
9970
  const c = (p, m, b, y) => {
@@ -10056,24 +10051,29 @@ const lb = `<style type="text/css">
10056
10051
  continue;
10057
10052
  }
10058
10053
  const $ = H.distanceTo(F);
10059
- if (F.clone().sub(F.clone().sub(H).divide(new oe(2, 2, 2))).distanceTo(I) / $ > 8) {
10054
+ if (F.clone().sub(
10055
+ F.clone().sub(H).divide(new oe(2, 2, 2))
10056
+ ).distanceTo(I) / $ > 8) {
10060
10057
  Q.style.display = "none";
10061
10058
  continue;
10062
10059
  }
10063
10060
  const Pe = H.clone().project(b), Ce = (Pe.x + 1) / 2 * E, be = (-Pe.y + 1) / 2 * j, Qe = F.clone().project(b), ye = (Qe.x + 1) / 2 * E, Ze = (-Qe.y + 1) / 2 * j, ee = Math.sqrt(Math.pow(ye - Ce, 2) + Math.pow(Ze - be, 2));
10064
10061
  let ve = ee, je = 50;
10065
- const me = c({ x: ~~Ce, y: ~~be }, {
10066
- x: ~~ye,
10067
- y: ~~Ze
10068
- }, E, j);
10062
+ const me = c(
10063
+ { x: ~~Ce, y: ~~be },
10064
+ {
10065
+ x: ~~ye,
10066
+ y: ~~Ze
10067
+ },
10068
+ E,
10069
+ j
10070
+ );
10069
10071
  if (me && me.length === 1 && (V === H ? (ve = Math.sqrt(Math.pow(me[0].x - Ce, 2) + Math.pow(me[0].y - be, 2)), je = ve / ee * 50) : V === F && (ve = Math.sqrt(Math.pow(me[0].x - ye, 2) + Math.pow(me[0].y - Ze, 2)), je = 100 - ve / ee * 50)), me && me.length === 2) {
10070
10072
  const re = {
10071
10073
  x: (me[0].x + me[1].x) / 2,
10072
10074
  y: (me[0].y + me[1].y) / 2
10073
10075
  };
10074
- je = Math.sqrt(
10075
- Math.pow(re.x - Ce, 2) + Math.pow(re.y - be, 2)
10076
- ) / ee * 100;
10076
+ je = Math.sqrt(Math.pow(re.x - Ce, 2) + Math.pow(re.y - be, 2)) / ee * 100;
10077
10077
  }
10078
10078
  const at = (Math.PI / 2 - Math.atan2(ye - Ce, be - Ze)) / Math.PI * 180, xe = U.querySelector(".PanoRulerPlugin-rule-label"), st = xe.children[0].clientWidth;
10079
10079
  st >= ee || st / 2 >= je / 100 * ee || st / 2 >= (1 - je / 100) * ee ? U.style.display = "none" : (U.style.display = "block", U.style.width = ee + "px", U.style.left = Ce + "px", U.style.top = be + "px", U.style.transform = `rotate(${-at}deg)`, xe.style.left = `${je}%`);
@@ -11131,6 +11131,7 @@ let yr = class {
11131
11131
  d(this, "id", nt());
11132
11132
  d(this, "lines", []);
11133
11133
  d(this, "visiblePanoIndexes");
11134
+ d(this, "visibleFiveMode");
11134
11135
  d(this, "model");
11135
11136
  d(this, "type", "polyline");
11136
11137
  d(this, "hook", new Tt());
@@ -11200,7 +11201,8 @@ let yr = class {
11200
11201
  return {
11201
11202
  id: this.id,
11202
11203
  lines: this.lines.map((t) => t.toJson()),
11203
- visiblePanoIndexes: this.visiblePanoIndexes
11204
+ visiblePanoIndexes: this.visiblePanoIndexes,
11205
+ visibleFiveMode: this.visibleFiveMode
11204
11206
  };
11205
11207
  }
11206
11208
  getPointByID(t) {
@@ -11215,7 +11217,7 @@ let yr = class {
11215
11217
  const h = new Di(l, c, this.model);
11216
11218
  return h.id = o.id, h.text = o.text, h;
11217
11219
  });
11218
- this.lines.push(...i), this.visiblePanoIndexes = t.visiblePanoIndexes;
11220
+ this.lines.push(...i), this.visiblePanoIndexes = t.visiblePanoIndexes, this.visibleFiveMode = t.visibleFiveMode;
11219
11221
  function s() {
11220
11222
  const o = /* @__PURE__ */ new Map();
11221
11223
  function r(l) {
@@ -12079,6 +12081,20 @@ class ph extends yr {
12079
12081
  d(this, "onCameraUpdate", () => {
12080
12082
  this.updateDistanceUI();
12081
12083
  });
12084
+ d(this, "onFiveModeChange", (e) => {
12085
+ this.model.polylines.forEach((i) => {
12086
+ i.visibleFiveMode && (i.visibleFiveMode.includes(e) || i.lines.forEach((s) => {
12087
+ s.mesh.visible = !1, s.distanceItem.update(this.five);
12088
+ }));
12089
+ }), this.five.ready().then(() => {
12090
+ const i = this.five.getCurrentState().mode;
12091
+ this.model.polylines.forEach((s) => {
12092
+ s.visibleFiveMode && s.visibleFiveMode.includes(i) && s.lines.forEach((o) => {
12093
+ o.mesh.visible = !0, o.distanceItem.update(this.five);
12094
+ });
12095
+ });
12096
+ });
12097
+ });
12082
12098
  d(this, "onFivePanoWillArrive", (e) => {
12083
12099
  this.model.polylines.forEach((i) => {
12084
12100
  i.visiblePanoIndexes && (i.visiblePanoIndexes.includes(e) || i.lines.forEach((s) => {
@@ -12101,11 +12117,11 @@ class ph extends yr {
12101
12117
  const s = new ur(i);
12102
12118
  this.hammer = s;
12103
12119
  }
12104
- 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);
12120
+ 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);
12105
12121
  }
12106
12122
  dispose() {
12107
12123
  var e;
12108
- 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();
12124
+ 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", []), (e = this.hammer) == null || e.destroy();
12109
12125
  }
12110
12126
  }
12111
12127
  function qb(n, t) {
@@ -33110,10 +33126,10 @@ class xu {
33110
33126
  class ik extends rn {
33111
33127
  constructor(e) {
33112
33128
  super(e);
33113
- d(this, "enabled", !0);
33114
33129
  d(this, "controllerMap", /* @__PURE__ */ new Map());
33130
+ d(this, "data");
33131
+ d(this, "enabled", !0);
33115
33132
  d(this, "_disposed", !1);
33116
- this.five = e;
33117
33133
  }
33118
33134
  /** 插件 State */
33119
33135
  get state() {
@@ -33142,7 +33158,7 @@ class ik extends rn {
33142
33158
  }))
33143
33159
  );
33144
33160
  });
33145
- });
33161
+ }), this.data = e, this.hooks.emit("dataLoaded", e);
33146
33162
  }
33147
33163
  /** 开启插件功能。 */
33148
33164
  enable(e) {
@@ -36929,11 +36945,11 @@ class u3 {
36929
36945
  d(this, "container");
36930
36946
  d(this, "visible", !1);
36931
36947
  d(this, "enabled", !1);
36948
+ d(this, "wrapper");
36932
36949
  d(this, "five");
36933
36950
  d(this, "position");
36934
- d(this, "wrapper");
36935
36951
  d(this, "disposer");
36936
- d(this, "wrapperStyle", {});
36952
+ d(this, "config");
36937
36953
  d(this, "onCameraUpdate", () => {
36938
36954
  if (this.visible === !1)
36939
36955
  return;
@@ -36949,11 +36965,10 @@ class u3 {
36949
36965
  (i == null ? void 0 : i.distance) > this.position.distanceTo(this.five.camera.position) ? (this.container.style.opacity = "1", this.container.style.pointerEvents = "auto") : (this.container.style.opacity = "0", this.container.style.pointerEvents = "none");
36950
36966
  }
36951
36967
  });
36952
- var s;
36953
36968
  this.five = t, this.position = Be(e).clone(), this.container = (() => {
36954
- const o = document.createElement("div");
36955
- return o.style.width = "0", o.style.height = "0", o.style.position = "absolute", o;
36956
- })(), this.wrapperStyle = (s = i == null ? void 0 : i.wrapperStyle) != null ? s : {}, this.enable(), this.show();
36969
+ const s = document.createElement("div");
36970
+ return s.style.width = "0", s.style.height = "0", s.style.position = "absolute", s;
36971
+ })(), this.config = i, this.enable(), this.show();
36957
36972
  }
36958
36973
  show() {
36959
36974
  this.visible = !0, this.container.style.opacity = "1", this.container.style.pointerEvents = "auto", this.container.style.transition = "opacity 0.2s linear", this.onCameraUpdate();
@@ -36962,16 +36977,13 @@ class u3 {
36962
36977
  this.visible = !1, t != null && t.withAnimation ? this.container.style.transition = "opacity 0.2s linear" : this.container.style.transition = "", this.container.style.opacity = "0", this.container.style.pointerEvents = "none";
36963
36978
  }
36964
36979
  enable() {
36965
- var i;
36980
+ var i, s, o, r;
36966
36981
  if (this.enabled)
36967
36982
  return;
36968
- this.enabled = !0, this.wrapper = (i = document.getElementById(Ju)) != null ? i : (() => {
36969
- var o;
36970
- const s = document.createElement("div");
36971
- return s.id = Ju, s.style.position = "absolute", s.style.top = "0", s.style.left = "0", s.style.width = "100%", s.style.height = "100%", s.style.pointerEvents = "none", Object.keys(this.wrapperStyle).forEach((r) => {
36972
- s.style[r] = this.wrapperStyle[r];
36973
- }), (o = this.five.getElement()) == null || o.parentElement.appendChild(s), s;
36974
- })(), this.wrapper.appendChild(this.container);
36983
+ this.enabled = !0, this.wrapper || (this.wrapper = (s = (i = this.config.wrapper) != null ? i : document.getElementById(Ju)) != null ? s : (() => {
36984
+ const a = document.createElement("div");
36985
+ return a.id = Ju, a.style.position = "absolute", a.style.top = "0", a.style.left = "0", a.style.width = "100%", a.style.height = "100%", a.style.pointerEvents = "none", a;
36986
+ })(), (o = this.five.getElement()) != null && o.parentElement.contains(this.wrapper) || (r = this.five.getElement()) == null || r.parentElement.appendChild(this.wrapper)), this.wrapper.appendChild(this.container);
36975
36987
  let t = !1;
36976
36988
  const e = () => {
36977
36989
  t || (t = !0, this.five.ready().then(() => {
@@ -36997,7 +37009,7 @@ const wm = (n) => ((!Ro || n !== Ro.five) && (Ro = {
36997
37009
  }), Ro.instance);
36998
37010
  class Cm extends ii {
36999
37011
  constructor(e) {
37000
- var s, o, r, a;
37012
+ var s, o, r;
37001
37013
  super();
37002
37014
  d(this, "type");
37003
37015
  d(this, "tag");
@@ -37005,11 +37017,10 @@ class Cm extends ii {
37005
37017
  d(this, "model");
37006
37018
  d(this, "five");
37007
37019
  d(this, "group");
37008
- d(this, "enabled", !1);
37009
37020
  d(this, "fiveDomEvents");
37010
37021
  this.five = e.five, this.model = e.model, this.group = e.group, this.type = e.type, this.rawData = e.rawData, this.fiveDomEvents = wm(this.five);
37011
37022
  const i = (r = (o = (s = e.position) != null ? s : this.model.worldCenter) != null ? o : this.model.center) != null ? r : Js(this.model).getCenter(new w.Vector3());
37012
- this.tag = f3(this.five, i, { wrapperStyle: { zIndex: `${(a = e.tagContainerZIndex) != null ? a : ""}` } });
37023
+ this.tag = f3(this.five, i, { wrapper: e.tagWrapper });
37013
37024
  }
37014
37025
  get container() {
37015
37026
  return this.tag.container;
@@ -37017,7 +37028,7 @@ class Cm extends ii {
37017
37028
  get state() {
37018
37029
  return {
37019
37030
  visible: this.model.visible,
37020
- enabled: this.enabled
37031
+ enabled: this.group.children.includes(this.model)
37021
37032
  };
37022
37033
  }
37023
37034
  show() {
@@ -37027,14 +37038,12 @@ class Cm extends ii {
37027
37038
  this.tag.hide(), this.model.visible = !1, this.five.needsRender = !0, this.emit("hide");
37028
37039
  }
37029
37040
  enable() {
37030
- if (this.enabled)
37031
- return;
37032
- this.enabled = !0, h3(this.group, this.model), this.five.needsRender = !0, this.tag.enable();
37041
+ h3(this.group, this.model), this.five.needsRender = !0, this.tag.enable();
37033
37042
  const e = this.onClick.bind(this);
37034
37043
  this.fiveDomEvents.addEventListener(this.model, "click", e), this.emit("enable");
37035
37044
  }
37036
37045
  disable() {
37037
- 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"));
37046
+ this.group.remove(this.model), this.five.needsRender = !0, this.tag.disable(), this.fiveDomEvents.removeEventListener(this.model, "click"), this.emit("disable");
37038
37047
  }
37039
37048
  onClick() {
37040
37049
  return this.emit("click", this);
@@ -37163,12 +37172,13 @@ class C3 extends vi {
37163
37172
  d(this, "tagRendererMap", {});
37164
37173
  d(this, "fiveDomEvents");
37165
37174
  d(this, "zFightingOffset", 0);
37166
- d(this, "tagContainerZIndex");
37175
+ d(this, "tagWrapper");
37167
37176
  d(this, "handleEnable", () => {
37168
- this.items.forEach((e) => e.enable());
37177
+ var e, i;
37178
+ this.five.scene.add(this.group), (i = (e = this.five.getElement()) == null ? void 0 : e.parentElement) == null || i.appendChild(this.tagWrapper), this.five.needsRender = !0;
37169
37179
  });
37170
37180
  d(this, "handleDisable", () => {
37171
- this.items.forEach((e) => e.disable());
37181
+ this.five.scene.remove(this.group), this.tagWrapper.remove(), this.five.needsRender = !0;
37172
37182
  });
37173
37183
  d(this, "updateTagRenderer", () => {
37174
37184
  this.items.forEach((e) => {
@@ -37177,70 +37187,71 @@ class C3 extends vi {
37177
37187
  i && e.__renderer !== i && (e.__renderer = i, typeof e.__disposeRenderer == "function" && e.__disposeRenderer(), e.tag.container.innerHTML = "", e.__disposeRenderer = i(e.tag.container, e));
37178
37188
  });
37179
37189
  });
37180
- this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.fiveDomEvents = wm(e), this.tagContainerZIndex = i == null ? void 0 : i.tagContainerZIndex, e.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
37190
+ this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.fiveDomEvents = wm(e), this.tagWrapper = (() => {
37191
+ var o;
37192
+ const s = document.createElement("div");
37193
+ return s.style.position = "absolute", s.style.top = "0", s.style.left = "0", s.style.width = "100%", s.style.height = "100%", s.style.pointerEvents = "none", s.style.zIndex = `${(o = i == null ? void 0 : i.tagContainerZIndex) != null ? o : ""}`, s;
37194
+ })(), e.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
37181
37195
  }
37182
37196
  load(e) {
37183
37197
  return G(this, null, function* () {
37184
- var s;
37185
- this.clear(), this.data = e;
37186
- const i = this.tagContainerZIndex;
37187
- (s = e == null ? void 0 : e.list) == null || s.forEach((o) => {
37188
- var r;
37189
- if (o.type === "triangles") {
37190
- const a = new cr();
37191
- a.setPoints(o.object_data.points), a.setStyle({
37192
- color: o.object_data.color,
37193
- opacity: o.object_data.opacity,
37194
- lineColor: o.object_data.color,
37198
+ var i;
37199
+ this.clear(), this.data = e, (i = e == null ? void 0 : e.list) == null || i.forEach((s) => {
37200
+ var o;
37201
+ if (s.type === "triangles") {
37202
+ const r = new cr();
37203
+ r.setPoints(s.object_data.points), r.setStyle({
37204
+ color: s.object_data.color,
37205
+ opacity: s.object_data.opacity,
37206
+ lineColor: s.object_data.color,
37195
37207
  occlusionVisibility: !1
37196
- }), this.fiveDomEvents.addEventListener(a, "hover", () => a.highlight()), this.fiveDomEvents.addEventListener(a, "unHover", () => a.unhighlight());
37197
- const l = new Pm({
37208
+ }), this.fiveDomEvents.addEventListener(r, "hover", () => r.highlight()), this.fiveDomEvents.addEventListener(r, "unHover", () => r.unhighlight());
37209
+ const a = new Pm({
37198
37210
  five: this.five,
37199
- model: a,
37211
+ tagWrapper: this.tagWrapper,
37212
+ model: r,
37200
37213
  group: this.group,
37201
- type: o.type,
37202
- rawData: o,
37203
- tagContainerZIndex: i
37214
+ type: s.type,
37215
+ rawData: s
37204
37216
  });
37205
- this.items.push(l);
37206
- } else if (o.type === "prism") {
37207
- const a = new hr();
37208
- this.zFightingOffset += 1e-4, a.setPoints({
37209
- points: o.object_data.points.map((c) => {
37210
- var h;
37211
- return [c[0], c[1] + ((h = o.object_data.fixedY) != null ? h : 0), c[2]];
37212
- }),
37213
- heightPoint: Be(o.object_data.points[0]).add(new w.Vector3().setY(o.object_data.height + ((r = o.object_data.fixedHeight) != null ? r : 0))).add(new w.Vector3().setY(this.zFightingOffset))
37214
- }), a.setStyle({
37215
- color: o.object_data.color,
37216
- opacity: o.object_data.opacity,
37217
- lineColor: o.object_data.color,
37217
+ this.items.push(a);
37218
+ } else if (s.type === "prism") {
37219
+ const r = new hr();
37220
+ this.zFightingOffset += 1e-4;
37221
+ const a = s.object_data.points.map((u) => {
37222
+ var f;
37223
+ return [u[0], u[1] + ((f = s.object_data.fixedY) != null ? f : 0), u[2]];
37224
+ }), l = s.object_data.height + ((o = s.object_data.fixedHeight) != null ? o : 0) + this.zFightingOffset, c = Be(a[0]).add(new w.Vector3().setY(l));
37225
+ r.setPoints({ points: a, heightPoint: c }), r.setStyle({
37226
+ color: s.object_data.color,
37227
+ opacity: s.object_data.opacity,
37228
+ lineColor: s.object_data.color,
37218
37229
  occlusionVisibility: !1
37219
37230
  });
37220
- const l = new w3({
37231
+ const h = new w3({
37221
37232
  five: this.five,
37222
- model: a,
37233
+ tagWrapper: this.tagWrapper,
37234
+ model: r,
37223
37235
  group: this.group,
37224
- type: o.type,
37225
- rawData: o,
37226
- tagContainerZIndex: i
37236
+ type: s.type,
37237
+ rawData: s
37227
37238
  });
37228
- this.items.push(l);
37229
- } else if (o.type === "box") {
37230
- const a = new hr(), { start: l, end: c, rotation: h = [0, 0, 0, 0], opacity: u, color: f } = o.object_data, g = new w.Vector3().fromArray(l), A = new w.Vector3().fromArray(c), p = new w.Euler().fromArray(h), m = new w.Quaternion().setFromEuler(p), b = m.clone().inverse(), y = new w.Vector3().lerpVectors(g, A, 0.5), P = y.clone().negate(), I = g.clone().add(P).applyQuaternion(b), k = A.clone().add(P).applyQuaternion(b), E = new w.Box3(I.clone().max(k), I.clone().min(k));
37231
- a.setPoints({
37232
- points: [_i(E, 2), _i(E, 3), _i(E, 7), _i(E, 6)],
37233
- heightPoint: _i(E, 0)
37234
- }), a.position.copy(y), a.quaternion.copy(m), a.setStyle({ color: f, opacity: u, lineColor: f, occlusionVisibility: !1 });
37235
- const j = new g3({
37239
+ this.items.push(h);
37240
+ } else if (s.type === "box") {
37241
+ const r = new hr(), { start: a, end: l, rotation: c = [0, 0, 0, 0], opacity: h, color: u } = s.object_data, f = new w.Vector3().fromArray(a), g = new w.Vector3().fromArray(l), A = new w.Euler().fromArray(c), p = new w.Quaternion().setFromEuler(A), m = p.clone().inverse(), b = new w.Vector3().lerpVectors(f, g, 0.5), y = b.clone().negate(), P = f.clone().add(y).applyQuaternion(m), I = g.clone().add(y).applyQuaternion(m), k = new w.Box3(P.clone().max(I), P.clone().min(I));
37242
+ r.setPoints({
37243
+ points: [_i(k, 2), _i(k, 3), _i(k, 7), _i(k, 6)],
37244
+ heightPoint: _i(k, 0)
37245
+ }), r.position.copy(b), r.quaternion.copy(p), r.setStyle({ color: u, opacity: h, lineColor: u, occlusionVisibility: !1 });
37246
+ const E = new g3({
37236
37247
  five: this.five,
37237
- model: a,
37248
+ tagWrapper: this.tagWrapper,
37249
+ model: r,
37238
37250
  group: this.group,
37239
- type: o.type,
37240
- rawData: o,
37241
- tagContainerZIndex: i
37251
+ type: s.type,
37252
+ rawData: s
37242
37253
  });
37243
- this.items.push(j);
37254
+ this.items.push(E);
37244
37255
  }
37245
37256
  }), 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);
37246
37257
  });
@@ -37273,10 +37284,10 @@ class C3 extends vi {
37273
37284
  this.hooks.emit("dispose"), this.handleDisable();
37274
37285
  }
37275
37286
  handleShow() {
37276
- this.items.forEach((e) => e.show());
37287
+ this.group.visible = !0, this.tagWrapper.style.visibility = "visible", this.five.needsRender = !0;
37277
37288
  }
37278
37289
  handleHide() {
37279
- this.items.forEach((e) => e.hide());
37290
+ this.group.visible = !1, this.tagWrapper.style.visibility = "hidden", this.five.needsRender = !0;
37280
37291
  }
37281
37292
  }
37282
37293
  const qx = (...n) => new C3(...n);