@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,8 +1,11 @@
1
+ import type { Mode as FiveMode } from '@realsee/five';
1
2
  export interface PolylineJson {
2
3
  id: string;
3
4
  lines: LineJson[];
4
5
  /** 当前折线在哪个点位上可见,字段不存在时,不做限制 */
5
6
  visiblePanoIndexes?: number[];
7
+ /** 当前折线在哪些 FiveMode 上可见,字段不存在时,不做限制 */
8
+ visibleFiveMode?: FiveMode[];
6
9
  }
7
10
  export interface LineJson {
8
11
  id: string;
@@ -70,10 +70,7 @@ const ue = (t, n) => Math.sqrt(Math.pow(t.z - n.z, 2) + Math.pow(t.x - n.x, 2)),
70
70
  `, o = document.createElement("div");
71
71
  return o.setAttribute("class", "PanoRulerPlugin-rule"), o.setAttribute("data-name", r), o.setAttribute("style", "display: none"), o.innerHTML = c, o;
72
72
  }, h = document.createElement("div");
73
- h.setAttribute(
74
- "style",
75
- "position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
76
- );
73
+ h.setAttribute("style", "position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;");
77
74
  const S = document.createElement("div");
78
75
  S.innerHTML = ce, h.appendChild(S);
79
76
  const l = {}, u = (r, a) => {
@@ -129,9 +126,7 @@ const ue = (t, n) => Math.sqrt(Math.pow(t.z - n.z, 2) + Math.pow(t.x - n.x, 2)),
129
126
  const o = r || n.roomInfo, i = a || n.roomRules;
130
127
  if (!o || !i)
131
128
  throw new Error("标尺数据依赖不齐全!");
132
- return e.loaded = !1, e.options = B(B({}, e.options), c || {}), t.model.loaded ? u(o, i) : yield new Promise(
133
- (y) => t.once("modelLoaded", () => y(u(o, i)))
134
- );
129
+ return e.loaded = !1, e.options = B(B({}, e.options), c || {}), t.model.loaded ? u(o, i) : yield new Promise((y) => t.once("modelLoaded", () => y(u(o, i))));
135
130
  });
136
131
  n.roomInfo && n.roomRules && x(n.roomInfo, n.roomRules);
137
132
  const v = (r, a, c, o) => {
@@ -218,24 +213,29 @@ const ue = (t, n) => Math.sqrt(Math.pow(t.z - n.z, 2) + Math.pow(t.x - n.x, 2)),
218
213
  continue;
219
214
  }
220
215
  const K = w.distanceTo(_);
221
- if (_.clone().sub(_.clone().sub(w).divide(new L(2, 2, 2))).distanceTo(y) / K > 8) {
216
+ if (_.clone().sub(
217
+ _.clone().sub(w).divide(new L(2, 2, 2))
218
+ ).distanceTo(y) / K > 8) {
222
219
  g.style.display = "none";
223
220
  continue;
224
221
  }
225
222
  const O = w.clone().project(c), R = (O.x + 1) / 2 * m, F = (-O.y + 1) / 2 * d, V = _.clone().project(c), N = (V.x + 1) / 2 * m, D = (-V.y + 1) / 2 * d, E = Math.sqrt(Math.pow(N - R, 2) + Math.pow(D - F, 2));
226
223
  let H = E, z = 50;
227
- const M = v({ x: ~~R, y: ~~F }, {
228
- x: ~~N,
229
- y: ~~D
230
- }, m, d);
224
+ const M = v(
225
+ { x: ~~R, y: ~~F },
226
+ {
227
+ x: ~~N,
228
+ y: ~~D
229
+ },
230
+ m,
231
+ d
232
+ );
231
233
  if (M && M.length === 1 && (f === w ? (H = Math.sqrt(Math.pow(M[0].x - R, 2) + Math.pow(M[0].y - F, 2)), z = H / E * 50) : f === _ && (H = Math.sqrt(Math.pow(M[0].x - N, 2) + Math.pow(M[0].y - D, 2)), z = 100 - H / E * 50)), M && M.length === 2) {
232
234
  const G = {
233
235
  x: (M[0].x + M[1].x) / 2,
234
236
  y: (M[0].y + M[1].y) / 2
235
237
  };
236
- z = Math.sqrt(
237
- Math.pow(G.x - R, 2) + Math.pow(G.y - F, 2)
238
- ) / E * 100;
238
+ z = Math.sqrt(Math.pow(G.x - R, 2) + Math.pow(G.y - F, 2)) / E * 100;
239
239
  }
240
240
  const te = (Math.PI / 2 - Math.atan2(N - R, F - D)) / Math.PI * 180, W = T.querySelector(".PanoRulerPlugin-rule-label"), U = W.children[0].clientWidth;
241
241
  U >= E || U / 2 >= z / 100 * E || U / 2 >= (1 - z / 100) * E ? T.style.display = "none" : (T.style.display = "block", T.style.width = E + "px", T.style.left = R + "px", T.style.top = F + "px", T.style.transform = `rotate(${-te}deg)`, W.style.left = `${z}%`);
@@ -89,8 +89,6 @@ class ni extends W {
89
89
  * @description 获取是否可见
90
90
  */
91
91
  getVisible(e, i) {
92
- if (!e.enabled)
93
- return !1;
94
92
  const s = h(h({}, this.five.getCurrentState()), i), { panoIndex: t, mode: r } = s, n = x(r) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
95
93
  if ((n == null ? void 0 : n.visible) !== void 0)
96
94
  return n.visible;
@@ -35,8 +35,6 @@ export declare abstract class TagRender extends TagComputer {
35
35
  * @description 更新所有标签
36
36
  */
37
37
  protected updateRenderAllTags(): void;
38
- protected updateAllTagsNextFrame(): void;
39
- protected updateTag(tag: TagInstance): void;
40
38
  protected updateRenderVideoPlane(): void;
41
39
  /**
42
40
  * @description 渲染图片贴片
@@ -70,6 +68,7 @@ export declare abstract class TagRender extends TagComputer {
70
68
  * @description 渲染单个点的标签
71
69
  */
72
70
  protected updateRenderPointTag(): void;
71
+ protected updatePointTagPosition(): void;
73
72
  protected updateTagContainerVisible(): void;
74
73
  protected disposeAllCSS3DContainer(): void;
75
74
  /**
@@ -1,16 +1,16 @@
1
1
  var A = Object.defineProperty;
2
- var j = Object.getOwnPropertySymbols;
3
- var I = Object.prototype.hasOwnProperty, V = Object.prototype.propertyIsEnumerable;
4
- var S = (p, m, t) => m in p ? A(p, m, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[m] = t, k = (p, m) => {
2
+ var R = Object.getOwnPropertySymbols;
3
+ var k = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
4
+ var C = (d, m, t) => m in d ? A(d, m, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[m] = t, j = (d, m) => {
5
5
  for (var t in m || (m = {}))
6
- I.call(m, t) && S(p, t, m[t]);
7
- if (j)
8
- for (var t of j(m))
9
- V.call(m, t) && S(p, t, m[t]);
10
- return p;
6
+ k.call(m, t) && C(d, t, m[t]);
7
+ if (R)
8
+ for (var t of R(m))
9
+ I.call(m, t) && C(d, t, m[t]);
10
+ return d;
11
11
  };
12
- var u = (p, m, t) => (S(p, typeof m != "symbol" ? m + "" : m, t), t);
13
- var C = (p, m, t) => new Promise((e, o) => {
12
+ var u = (d, m, t) => (C(d, typeof m != "symbol" ? m + "" : m, t), t);
13
+ var S = (d, m, t) => new Promise((e, o) => {
14
14
  var i = (s) => {
15
15
  try {
16
16
  a(t.next(s));
@@ -24,18 +24,17 @@ var C = (p, m, t) => new Promise((e, o) => {
24
24
  o(n);
25
25
  }
26
26
  }, a = (s) => s.done ? e(s.value) : Promise.resolve(s.value).then(i, r);
27
- a((t = t.apply(p, m)).next());
27
+ a((t = t.apply(d, m)).next());
28
28
  });
29
- import { TagComputer as x } from "./TagComputer.js";
30
- import { Group as M, Quaternion as E, Vector3 as b, Matrix4 as v } from "three";
29
+ import { TagComputer as V } from "./TagComputer.js";
30
+ import { Group as y, Quaternion as x, Vector3 as b, Matrix4 as v } from "three";
31
31
  import O from "../Components/TagContainer.js";
32
- import G from "../Components/Tag/index.js";
33
- import { loadGLTF as F } from "../../shared-utils/three/GLTFLoader.js";
34
- import { isMediaModelTag as g, isStickModelTag as _ } from "../utils/tag/tagCheck.js";
35
- import { VideoPlane as L, ImagePlane as w } from "../utils/model/mediaPlane.js";
36
- import { centerPoint as W } from "../../shared-utils/three/centerPoint.js";
37
- import { arrayPositionToVector3 as D } from "../../shared-utils/positionToVector3.js";
38
- import { debounceByKey as y } from "../utils/debounce.js";
32
+ import E from "../Components/Tag/index.js";
33
+ import { loadGLTF as G } from "../../shared-utils/three/GLTFLoader.js";
34
+ import { isMediaModelTag as D, isStickModelTag as F } from "../utils/tag/tagCheck.js";
35
+ import { VideoPlane as _, ImagePlane as w } from "../utils/model/mediaPlane.js";
36
+ import { centerPoint as L } from "../../shared-utils/three/centerPoint.js";
37
+ import { arrayPositionToVector3 as g } from "../../shared-utils/positionToVector3.js";
39
38
  import "../utils/tagPosition.js";
40
39
  import "../utils/checkRange.js";
41
40
  import "../../shared-utils/five/mode.js";
@@ -162,15 +161,15 @@ import "../Components/Tag/LinkTag.js";
162
161
  import "../Components/Tag/PanoramaTag.js";
163
162
  import "../Components/Tag/CustomTag.js";
164
163
  import "@realsee/five/gltf-loader";
165
- const q = /* @__PURE__ */ new Map(), $ = /* @__PURE__ */ new Map();
166
- class bi extends x {
164
+ const W = /* @__PURE__ */ new Map(), $ = /* @__PURE__ */ new Map();
165
+ class Pi extends V {
167
166
  constructor(t) {
168
167
  super(t);
169
168
  u(this, "rendererMap", /* @__PURE__ */ new Map());
170
169
  u(this, "contentTypeMap", /* @__PURE__ */ new Map());
171
- u(this, "group", new M());
172
- u(this, "imagePlaneGroup", new M());
173
- u(this, "gltfObjectGroup", new M());
170
+ u(this, "group", new y());
171
+ u(this, "imagePlaneGroup", new y());
172
+ u(this, "gltfObjectGroup", new y());
174
173
  /** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
175
174
  u(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
176
175
  /** 临时状态 */
@@ -178,14 +177,14 @@ class bi extends x {
178
177
  /** 点标签 */
179
178
  u(this, "TagContainerSvelte");
180
179
  /** 加载外部模型 */
181
- u(this, "loadModel", (t) => C(this, null, function* () {
180
+ u(this, "loadModel", (t) => S(this, null, function* () {
182
181
  var a;
183
182
  const e = t.data.modelUrl;
184
183
  if (!e)
185
184
  return;
186
185
  t.loading = !0;
187
- const o = F(e).then((s) => {
188
- var d;
186
+ const o = G(e).then((s) => {
187
+ var p;
189
188
  const n = Object.assign(s.scene, {
190
189
  customID: t.id,
191
190
  isTagModel: !0,
@@ -194,7 +193,7 @@ class bi extends x {
194
193
  this.hooks.emit("click", { target: "TagModel", tag: t, event: h });
195
194
  })
196
195
  });
197
- return n.visible = this.getCurrentVisibleState(t), new v().fromArray(t.matrix).decompose(n.position, n.quaternion, n.scale), n.updateWorldMatrix(!0, !0), n.visible = this.getVisible(t), (d = this.getTagConfig(t).modelConfig) != null && d.autoLookAtEnabled && n.lookAt(this.five.camera.position.clone().setY(n.position.y)), n;
196
+ return n.visible = this.getCurrentVisibleState(t), new v().fromArray(t.matrix).decompose(n.position, n.quaternion, n.scale), n.updateWorldMatrix(!0, !0), n.visible = this.getVisible(t), (p = this.getTagConfig(t).modelConfig) != null && p.autoLookAtEnabled && n.lookAt(this.five.camera.position.clone().setY(n.position.y)), n;
198
197
  });
199
198
  t.model = { promise: o };
200
199
  const i = yield o;
@@ -202,10 +201,10 @@ class bi extends x {
202
201
  return;
203
202
  t.model.object = i;
204
203
  const r = this.gltfObjectGroup.children.find((s) => s.customID === t.id);
205
- if (r && (this.gltfObjectGroup.remove(r), r.removeEventListener()), this.updateRender3DDomTag(), g(t)) {
204
+ if (r && (this.gltfObjectGroup.remove(r), r.removeEventListener()), this.updateRender3DDomTag(), D(t)) {
206
205
  if (this.getRenderType(t) === "Mesh" && !t.mediaPlane) {
207
- const s = t.data.mediaPosition.map(D);
208
- t.mediaPlane = new w(t.data.mediaData[0].url, t.data.mediaPosition.map(D), {
206
+ const s = t.data.mediaPosition.map(g);
207
+ t.mediaPlane = new w(t.data.mediaData[0].url, t.data.mediaPosition.map(g), {
209
208
  objectFit: t.data.objectFit
210
209
  });
211
210
  const n = new b().addVectors(s[0], s[2]).divideScalar(2);
@@ -238,7 +237,7 @@ class bi extends x {
238
237
  this.tags.length && (this.tags.forEach((e) => {
239
238
  var o, i;
240
239
  (i = (o = e.mediaPlane) == null ? void 0 : o.parent) == null || i.remove(e.mediaPlane);
241
- }), this.tags = [], (t = this.TagContainerSvelte) == null || t.$destroy(), this.TagContainerSvelte = void 0, this.disposeAllCSS3DContainer(), this.updateRenderAllTags()), this.enabledModelTagSet.clear(), this.clearCache(), this.tagsLengthWillUpdate = !0;
240
+ }), this.tags = [], (t = this.TagContainerSvelte) == null || t.$destroy(), this.TagContainerSvelte = void 0, this.disposeAllCSS3DContainer(), this.updateRenderAllTags()), this.enabledModelTagSet.clear(), this.clearCache();
242
241
  }
243
242
  /**
244
243
  * @description 更新所有标签
@@ -246,12 +245,6 @@ class bi extends x {
246
245
  updateRenderAllTags() {
247
246
  this.enabledModelTagSet.clear(), this.tags.forEach((t) => t.stickType === "Model" && this.enabledModelTagSet.add(t.id)), this.updateRenderPointTag(), this.updateRender3DDomTag(), this.updateRenderModelTag(), this.updateRenderImagePlane(), this.updateRenderVideoPlane();
248
247
  }
249
- updateAllTagsNextFrame() {
250
- requestAnimationFrame(() => this.updateRenderAllTags());
251
- }
252
- updateTag(t) {
253
- t.stickType === "2DPoint" ? y("updateRenderPointTag", () => this.updateRenderPointTag()) : t.stickType === "3DPoint" ? (y("updateRenderPointTag", () => this.updateRenderPointTag()), y("updateRender3DDomTag", () => this.updateRender3DDomTag())) : t.stickType === "Model" ? (this.enabledModelTagSet.clear(), this.tags.forEach((e) => e.stickType === "Model" && this.enabledModelTagSet.add(e.id)), this.updateRenderModelTag()) : t.stickType === "Plane" && (this.updateRenderImagePlane(), this.updateRenderVideoPlane());
254
- }
255
248
  updateRenderVideoPlane() {
256
249
  this.filterImagePlane.filter((e) => {
257
250
  var o, i;
@@ -266,12 +259,12 @@ class bi extends x {
266
259
  return;
267
260
  const r = this.getCurrentVisibleState(e), a = (() => !!(e.mediaPlane && !r))(), s = (() => !!(!e.mediaPlane && r))(), n = (() => !!(e.mediaPlane && e.mediaPlane.src !== i))();
268
261
  if ((a || n) && e.mediaPlane && (this.imagePlaneGroup.remove(e.mediaPlane), e.mediaPlane.dispose(), e.mediaPlane.removeFromParent(), e.mediaPlane = void 0), s || n) {
269
- const d = e.position.map(D), h = new L(i, d, {
262
+ const p = e.position.map(g), h = new _(i, p, {
270
263
  videoCoverSrc: o.videoCoverUrl,
271
264
  playButton: e.data.playIcon,
272
265
  paused: !((l = e.data.autoplayConfig) != null && l.autoplayVideo),
273
266
  objectFit: e.data.objectFit,
274
- videoTextureMap: q,
267
+ videoTextureMap: W,
275
268
  ImageTextureMap: $,
276
269
  domEvents: this.domEvents
277
270
  });
@@ -294,7 +287,7 @@ class bi extends x {
294
287
  const { url: o } = e.data.mediaData[0];
295
288
  if (!o)
296
289
  return;
297
- const i = e.position.map(D), r = this.getCurrentVisibleState(e), a = (() => !!(e.mediaPlane && !r))(), s = (() => !!(!e.mediaPlane && r))(), n = (() => !!(e.mediaPlane && e.mediaPlane.src !== o))();
290
+ const i = e.position.map(g), r = this.getCurrentVisibleState(e), a = (() => !!(e.mediaPlane && !r))(), s = (() => !!(!e.mediaPlane && r))(), n = (() => !!(e.mediaPlane && e.mediaPlane.src !== o))();
298
291
  (a || n) && e.mediaPlane && (this.imagePlaneGroup.remove(e.mediaPlane), e.mediaPlane.dispose(), e.mediaPlane.removeFromParent(), e.mediaPlane = void 0), (s || n) && (e.mediaPlane = new w(o, i, { objectFit: e.data.objectFit }), this.getTagConfig(e).clickable !== !1 && this.domEvents.addAutoBindEventListener(
299
292
  e.mediaPlane,
300
293
  "click",
@@ -314,12 +307,12 @@ class bi extends x {
314
307
  if (e.tag3DContentSvelte) {
315
308
  const { svelteApp: a, css3DInstance: s, initialNormal: n, currentNormal: l } = e.tag3DContentSvelte;
316
309
  if (a.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !n.equals(l)) {
317
- const d = new E().setFromUnitVectors(n, l);
318
- s.css3DObject.setRotationFromQuaternion(d);
310
+ const p = new x().setFromUnitVectors(n, l);
311
+ s.css3DObject.setRotationFromQuaternion(p);
319
312
  }
320
313
  return;
321
314
  } else {
322
- if (g(e) && !((o = e.model) != null && o.object) || ((i = e.state) == null ? void 0 : i.visible) === !1 || !this.state.visible || !this.state.enabled || !this.css3DRenderPlugin)
315
+ if (D(e) && !((o = e.model) != null && o.object) || ((i = e.state) == null ? void 0 : i.visible) === !1 || !this.state.visible || !this.state.enabled || !this.css3DRenderPlugin)
323
316
  return;
324
317
  if (e.stickType === "3DPoint" && !e.normal)
325
318
  return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
@@ -329,26 +322,26 @@ class bi extends x {
329
322
  const s = this.getTagNormal(e);
330
323
  if (!s)
331
324
  return;
332
- const n = this.getTagConfig(e), l = k({ wrapperStyle: { zIndex: this.calculateTagZIndex(e).toString() } }, n.tag3DConfig);
325
+ const n = this.getTagConfig(e), l = j({ wrapperStyle: { zIndex: this.calculateTagZIndex(e).toString() } }, n.tag3DConfig);
333
326
  if (this.getRenderType(e) === "BehindDom" || l.mode === "behind") {
334
327
  l.mode = "behind", l.container = document.createElement("div");
335
328
  const f = "black";
336
329
  l.container.style.backgroundColor = f, l.container.style.border = `3px solid ${f}`, this.css3DRenderPlugin.hooks.on("render", () => {
337
330
  var c;
338
- if (d.css3DObject.opacityMesh && n.clickable !== !1) {
339
- const T = this.addObjectClickHandler(e, d.css3DObject.opacityMesh, (P) => {
340
- this.hooks.emit("click", { event: P, target: "TagContent", tag: e });
331
+ if (p.css3DObject.opacityMesh && n.clickable !== !1) {
332
+ const P = this.addObjectClickHandler(e, p.css3DObject.opacityMesh, (T) => {
333
+ this.hooks.emit("click", { event: T, target: "TagContent", tag: e });
341
334
  });
342
- (c = this.store.css3DRenderDisposer.get(e.id)) == null || c.push(T);
335
+ (c = this.store.css3DRenderDisposer.get(e.id)) == null || c.push(P);
343
336
  }
344
337
  });
345
338
  }
346
- const d = this.css3DRenderPlugin.create3DDomContainer(a, l);
347
- if (!d)
339
+ const p = this.css3DRenderPlugin.create3DDomContainer(a, l);
340
+ if (!p)
348
341
  return;
349
- this.store.css3DRenderDisposer.set(e.id, [d.dispose]);
350
- const h = new G({
351
- target: d.container,
342
+ this.store.css3DRenderDisposer.set(e.id, [p.dispose]);
343
+ const h = new E({
344
+ target: p.container,
352
345
  props: {
353
346
  tag: e,
354
347
  hooks: this.hooks,
@@ -360,14 +353,14 @@ class bi extends x {
360
353
  });
361
354
  e.tag3DContentSvelte = {
362
355
  svelteApp: h,
363
- domContainer: d,
364
- css3DInstance: d,
356
+ domContainer: p,
357
+ css3DInstance: p,
365
358
  initialNormal: s,
366
359
  currentNormal: s,
367
360
  dispose: () => {
368
- h.$destroy(), d.dispose();
361
+ h.$destroy(), p.dispose();
369
362
  }
370
- }, g(e) && ((r = e.model) != null && r.object) && this.updateTagCss3DObjectMatrix(e, e.model.object);
363
+ }, D(e) && ((r = e.model) != null && r.object) && this.updateTagCss3DObjectMatrix(e, e.model.object);
371
364
  }
372
365
  }), this.clearUnusedPanelTag();
373
366
  }
@@ -399,23 +392,23 @@ class bi extends x {
399
392
  * @param model 模型
400
393
  */
401
394
  updateTagCss3DObjectMatrix(t, e) {
402
- var T, P, R;
403
- const o = (P = (T = this.getTagConfig(t).tag3DConfig) == null ? void 0 : T.ratio) != null ? P : 216e-5, i = (R = t.tag3DContentSvelte) == null ? void 0 : R.css3DInstance.css3DObject;
395
+ var P, T, M;
396
+ const o = (T = (P = this.getTagConfig(t).tag3DConfig) == null ? void 0 : P.ratio) != null ? T : 216e-5, i = (M = t.tag3DContentSvelte) == null ? void 0 : M.css3DInstance.css3DObject;
404
397
  if (!i)
405
398
  return;
406
- const r = g(t) ? t.data.mediaPosition : t.position;
399
+ const r = D(t) ? t.data.mediaPosition : t.position;
407
400
  if (!r || r.length !== 4 || !Array.isArray(r[0]) || !Array.isArray(r[2]))
408
401
  return;
409
402
  e.updateWorldMatrix(!1, !1);
410
- const a = e.matrixWorld, s = new b().fromArray(r[0]), n = new b().fromArray(r[2]), l = W(s, n).add(new b(0, 0, 5e-4)), d = new v().setPosition(l), h = new v().makeScale(o, o, o), f = new v().multiply(a).multiply(d).multiply(h);
403
+ const a = e.matrixWorld, s = new b().fromArray(r[0]), n = new b().fromArray(r[2]), l = L(s, n).add(new b(0, 0, 5e-4)), p = new v().setPosition(l), h = new v().makeScale(o, o, o), f = new v().multiply(a).multiply(p).multiply(h);
411
404
  f.decompose(i.position, i.quaternion, i.scale);
412
405
  const c = i.opacityMesh;
413
406
  c && f.decompose(c.position, c.quaternion, c.scale);
414
407
  }
415
408
  /** 添加模型标签 */
416
409
  addMediaModelTag(t) {
417
- return C(this, null, function* () {
418
- const e = t.filter(_).map((o) => this.loadModel(o));
410
+ return S(this, null, function* () {
411
+ const e = t.filter(F).map((o) => this.loadModel(o));
419
412
  yield Promise.all(e), this.setVisible(), this.updateRenderAllTags();
420
413
  });
421
414
  }
@@ -445,7 +438,10 @@ class bi extends x {
445
438
  */
446
439
  updateRenderPointTag() {
447
440
  const t = this.filterPointTag;
448
- this.setTagZIndex(t), this.setPointTagPosition(), y("updateDomView", () => this.updateDomView())();
441
+ this.setTagZIndex(t), this.setPointTagPosition(), this.updateDomView();
442
+ }
443
+ updatePointTagPosition() {
444
+ this.setPointTagPosition(), this.updateDomView();
449
445
  }
450
446
  updateTagContainerVisible() {
451
447
  var t;
@@ -509,5 +505,5 @@ class bi extends x {
509
505
  }
510
506
  }
511
507
  export {
512
- bi as TagRender
508
+ Pi as TagRender
513
509
  };
@@ -12,7 +12,7 @@ export declare abstract class TagUtil extends TagCache {
12
12
  get container(): Element;
13
13
  set container(container: Element);
14
14
  config: Pick<Tags, 'globalConfig' | 'contentTypeConfig'>;
15
- set tagsLengthWillUpdate(value: boolean);
15
+ tagsLengthWillUpdate: boolean;
16
16
  workUtil: WorkUtil;
17
17
  set workCode(workCode: string);
18
18
  get workCode(): string;
@@ -36,16 +36,6 @@ export declare abstract class TagUtil extends TagCache {
36
36
  disposed: boolean;
37
37
  };
38
38
  protected domEvents: FiveDomEvents;
39
- private _cache_pointTag?;
40
- private _cache_2DPointTag?;
41
- private _cache_imagePlane?;
42
- private _cache_mediaModel?;
43
- private _cache_css3DTag?;
44
- protected get filterPointTag(): PointTagInstance[];
45
- protected get filter2DPointTag(): TagInstance<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "2DPoint">[];
46
- protected get filterImagePlane(): TagInstance<"MediaPlane", "Plane">[];
47
- protected get filterMediaModel(): TagInstance<"MediaModel", "Model">[];
48
- protected get filterCSS3DTag(): (TagInstance<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "Plane"> | TagInstance<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "Model"> | TagInstance<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "3DPoint">)[];
49
39
  private _container;
50
40
  private _css3DRenderPlugin;
51
41
  protected constructor(five: Five);
@@ -78,6 +68,11 @@ export declare abstract class TagUtil extends TagCache {
78
68
  protected getPositions(tag: TagInstance): [THREE.Vector3, THREE.Vector3, THREE.Vector3, THREE.Vector3] | [import("../typings").ArrayPosition, import("../typings").ArrayPosition, import("../typings").ArrayPosition, import("../typings").ArrayPosition];
79
69
  protected addObjectClickHandler(tag: TagInstance, object: THREE.Object3D | undefined, handler: (event: Event) => any): () => void;
80
70
  protected getTagNormal(tag: TagInstance): THREE.Vector3 | undefined;
71
+ protected get filterPointTag(): PointTagInstance[];
72
+ protected get filter2DPointTag(): TagInstance<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "2DPoint">[];
73
+ protected get filterImagePlane(): TagInstance<"MediaPlane", "Plane">[];
74
+ protected get filterMediaModel(): TagInstance<"MediaModel", "Model">[];
75
+ protected get filterCSS3DTag(): (TagInstance<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "Plane"> | TagInstance<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "Model"> | TagInstance<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "3DPoint">)[];
81
76
  protected getTransformedPostion(position: Tag['position']): THREE.Vector3 | [THREE.Vector3, THREE.Vector3, THREE.Vector3, THREE.Vector3];
82
77
  /**
83
78
  * @description 检查是否已经销毁