@realsee/dnalogel 3.34.6 → 3.35.0-dev.1

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 (408) hide show
  1. package/CHANGELOG.md +0 -9
  2. package/dist/ModelMakerPlugin/Controller.d.ts +1 -1
  3. package/dist/ModelMakerPlugin/item/baseItem.d.ts +1 -1
  4. package/dist/PanoTagPlugin/controller/TagRender.d.ts +2 -1
  5. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +11 -6
  6. package/dist/PanoTagPlugin/controller/index.d.ts +1 -0
  7. package/dist/PanoTagPlugin/utils/debounce.d.ts +1 -0
  8. package/dist/PanoVideoPlugin/Controller.d.ts +1 -2
  9. package/dist/index.cjs.js +54 -54
  10. package/dist/index.js +3159 -3139
  11. package/dist/index.umd.js +44 -44
  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 +34 -44
  15. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +34 -44
  16. package/docs/classes/CSS3DRender.html +33 -43
  17. package/docs/classes/GuideLineItem.GuideLineItem.html +21 -31
  18. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +45 -55
  19. package/docs/classes/{ModelMakerPluginInstance.html → Magnifier.html} +111 -203
  20. package/docs/classes/ModelRoomLabelController.html +13 -23
  21. package/docs/classes/MoveController.html +33 -43
  22. package/docs/classes/Object3DHelperController.html +47 -39
  23. package/docs/classes/PaintBrush.html +17 -27
  24. package/docs/classes/PanoMeasurePluginLine.html +36 -56
  25. package/docs/classes/PanoMeasurePluginModel.html +32 -42
  26. package/docs/classes/PanoMeasurePluginPoint.html +13 -23
  27. package/docs/classes/PanoMeasurePluginPolyline.html +34 -54
  28. package/docs/classes/PanoTagPluginController.html +126 -234
  29. package/docs/classes/Util.BetterTween.html +13 -27
  30. package/docs/classes/Util.Interval.html +15 -29
  31. package/docs/classes/Util.LineSegments.html +11 -25
  32. package/docs/classes/Util.Magnifier.html +60 -93
  33. package/docs/classes/Util.Object3D.html +12 -26
  34. package/docs/classes/Util.PointDomHelper.html +14 -28
  35. package/docs/classes/Util.PointHelper.html +14 -28
  36. package/docs/classes/Util.PointSelectorHelper.html +20 -34
  37. package/docs/classes/Util.Rectangle.html +16 -30
  38. package/docs/classes/WalkController.html +29 -39
  39. package/docs/enums/CameraMovementEffect.html +9 -19
  40. package/docs/enums/ContentType.html +23 -33
  41. package/docs/enums/DIRECTION.html +11 -21
  42. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +11 -21
  43. package/docs/enums/DimensionType.html +9 -19
  44. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +10 -20
  45. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +11 -21
  46. package/docs/enums/PaintBrushTypeEnum.html +10 -20
  47. package/docs/enums/PointType.html +9 -19
  48. package/docs/enums/Rotation.html +10 -20
  49. package/docs/functions/AreaMakerPlugin.html +7 -17
  50. package/docs/functions/CSS3DRenderPlugin.html +7 -17
  51. package/docs/functions/CameraMovementPlugin.html +7 -17
  52. package/docs/functions/CruisePlugin.html +7 -17
  53. package/docs/functions/CurrentPanoImagePlugin.html +7 -17
  54. package/docs/functions/GuideLinePlugin.html +7 -17
  55. package/docs/functions/ItemLabelPlugin.html +7 -17
  56. package/docs/functions/MapviewFloorplanPlugin.html +7 -17
  57. package/docs/functions/ModelChassisCompassPlugin.html +7 -17
  58. package/docs/functions/ModelEntryDoorGuidePlugin.html +7 -17
  59. package/docs/functions/ModelFloorplanPlugin.html +7 -17
  60. package/docs/functions/ModelItemLabelPlugin.html +7 -17
  61. package/docs/functions/ModelRoomLabelPlugin.html +7 -17
  62. package/docs/functions/ModelTVVideoPlugin.html +7 -17
  63. package/docs/functions/ModelViewPlugin.html +7 -17
  64. package/docs/functions/MovePlugin.html +8 -18
  65. package/docs/functions/Object3DHelperPlugin.html +7 -17
  66. package/docs/functions/PanoCompassPlugin.html +7 -17
  67. package/docs/functions/PanoCursorRaycasterPlugin.html +7 -17
  68. package/docs/functions/PanoDoorLabelPlugin.html +7 -17
  69. package/docs/functions/PanoFloorplanRadarPlugin.html +7 -17
  70. package/docs/functions/PanoMeasurePlugin.html +7 -17
  71. package/docs/functions/PanoRulerPlugin.html +7 -17
  72. package/docs/functions/PanoRulerProPlugin.html +7 -17
  73. package/docs/functions/PanoSpatialTagPlugin.html +7 -17
  74. package/docs/functions/PanoTagPlugin.html +8 -20
  75. package/docs/functions/PanoVideoPlugin.html +7 -17
  76. package/docs/functions/PipelinePlugin.html +7 -17
  77. package/docs/functions/TopviewFloorplanPlugin.html +7 -17
  78. package/docs/functions/Util.absoluteUrl.html +8 -22
  79. package/docs/functions/Util.checkFiveModelLoaded.html +8 -22
  80. package/docs/functions/Util.equal.html +8 -22
  81. package/docs/functions/Util.getCoordsFromClient.html +8 -22
  82. package/docs/functions/Util.getCoordsFromElement.html +8 -22
  83. package/docs/functions/Util.getFrameTime.html +8 -22
  84. package/docs/functions/Util.getIntersectFromRelativePosition.html +10 -29
  85. package/docs/functions/Util.getRaycasterFromFivePointer.html +8 -22
  86. package/docs/functions/Util.isAbsoluteURL.html +8 -22
  87. package/docs/functions/Util.isModelLike.html +8 -22
  88. package/docs/functions/Util.isNil.html +8 -22
  89. package/docs/functions/Util.isPanoramaLike.html +8 -22
  90. package/docs/functions/Util.nextFrame.html +8 -22
  91. package/docs/functions/Util.notNil.html +8 -22
  92. package/docs/functions/Util.requestAnimationFrameInterval.html +8 -22
  93. package/docs/functions/Util.tweenProgress.html +8 -22
  94. package/docs/functions/Util.uuid.html +8 -22
  95. package/docs/functions/pluginFlag.html +7 -17
  96. package/docs/index.html +7 -18
  97. package/docs/interfaces/AddTagConfig.html +8 -18
  98. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +7 -17
  99. package/docs/interfaces/AreaMakerPluginType.Config.html +7 -17
  100. package/docs/interfaces/AreaMakerPluginType.EventMap.html +20 -30
  101. package/docs/interfaces/AreaMakerPluginType.Params.html +8 -18
  102. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +10 -20
  103. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +9 -19
  104. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +7 -17
  105. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +7 -17
  106. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +7 -17
  107. package/docs/interfaces/AreaMakerPluginType.State.html +9 -19
  108. package/docs/interfaces/CSS3DRenderPluginEventMap.html +13 -23
  109. package/docs/interfaces/CSS3DRenderPluginState.html +10 -20
  110. package/docs/interfaces/CameraMovementPluginExportType.html +9 -19
  111. package/docs/interfaces/CruisePluginTypes.Config.html +10 -21
  112. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +13 -24
  113. package/docs/interfaces/CruisePluginTypes.EventMap.html +22 -33
  114. package/docs/interfaces/CruisePluginTypes.MoveAction.html +23 -39
  115. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +18 -30
  116. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +18 -30
  117. package/docs/interfaces/CruisePluginTypes.PluginData.html +30 -41
  118. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +7 -18
  119. package/docs/interfaces/CruisePluginTypes.PluginState.html +14 -25
  120. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +13 -23
  121. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +14 -24
  122. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +9 -19
  123. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +8 -18
  124. package/docs/interfaces/CurrentPanoImagePluginType.State.html +10 -20
  125. package/docs/interfaces/EventMap.html +17 -27
  126. package/docs/interfaces/FloorplanBounding.html +10 -20
  127. package/docs/interfaces/FloorplanData.html +12 -22
  128. package/docs/interfaces/FloorplanEntrance.html +13 -23
  129. package/docs/interfaces/FloorplanExtraObject.html +12 -22
  130. package/docs/interfaces/FloorplanExtraObject3D.html +10 -20
  131. package/docs/interfaces/FloorplanFloorData.html +11 -21
  132. package/docs/interfaces/FloorplanImagePosition.html +9 -19
  133. package/docs/interfaces/FloorplanObserver.html +11 -21
  134. package/docs/interfaces/FloorplanOutlineItem.html +11 -21
  135. package/docs/interfaces/FloorplanPosition.html +9 -19
  136. package/docs/interfaces/FloorplanRoomItem.html +16 -26
  137. package/docs/interfaces/FloorplanRoomLabelItem.html +9 -19
  138. package/docs/interfaces/FloorplanServerBounding.html +10 -20
  139. package/docs/interfaces/FloorplanServerComputedData.html +12 -22
  140. package/docs/interfaces/FloorplanServerData.html +9 -19
  141. package/docs/interfaces/FloorplanServerDoorItem.html +12 -22
  142. package/docs/interfaces/FloorplanServerDoorPosition.html +10 -20
  143. package/docs/interfaces/FloorplanServerEntrance.html +13 -23
  144. package/docs/interfaces/FloorplanServerFloorData.html +11 -21
  145. package/docs/interfaces/FloorplanServerImagePosition.html +9 -19
  146. package/docs/interfaces/FloorplanServerObserver.html +11 -21
  147. package/docs/interfaces/FloorplanServerOutlineItem.html +11 -21
  148. package/docs/interfaces/FloorplanServerPosition.html +9 -19
  149. package/docs/interfaces/FloorplanServerRoomItem.html +17 -27
  150. package/docs/interfaces/FloorplanServerRoomLabelItem.html +9 -19
  151. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +10 -20
  152. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +11 -21
  153. package/docs/interfaces/GuideLinePluginType.EventMap.html +14 -24
  154. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +9 -19
  155. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +7 -17
  156. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +16 -26
  157. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +7 -17
  158. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +9 -19
  159. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +22 -32
  160. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +8 -18
  161. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +23 -33
  162. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +6 -16
  163. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +7 -17
  164. package/docs/interfaces/GuideLinePluginType.PluginState.html +9 -19
  165. package/docs/interfaces/GuideLinePluginType.Route.html +12 -22
  166. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +10 -20
  167. package/docs/interfaces/HelperOffset.html +10 -20
  168. package/docs/interfaces/ImagePlaneGroup.html +8 -18
  169. package/docs/interfaces/ItemLabelPluginData.html +8 -18
  170. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +13 -23
  171. package/docs/interfaces/ItemLabelPluginParametersType.html +11 -21
  172. package/docs/interfaces/MinMax.html +9 -19
  173. package/docs/interfaces/ModelChassisCompassPluginData.html +9 -19
  174. package/docs/interfaces/ModelChassisCompassPluginExportType.html +10 -20
  175. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +9 -19
  176. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +10 -20
  177. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +10 -20
  178. package/docs/interfaces/ModelItemLabelPluginData.html +8 -18
  179. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +13 -23
  180. package/docs/interfaces/ModelItemLabelPluginParametersType.html +9 -19
  181. package/docs/interfaces/ModelRoomLabelPluginData.html +8 -18
  182. package/docs/interfaces/ModelTVVideoPluginData.html +11 -21
  183. package/docs/interfaces/ModelTVVideoPluginExportType.html +10 -20
  184. package/docs/interfaces/ModelTVVideoPluginParameterType.html +8 -18
  185. package/docs/interfaces/ModelViewPluginExportType.html +13 -23
  186. package/docs/interfaces/Object3DHelperState.html +10 -20
  187. package/docs/interfaces/ObjectHelperControllers.html +12 -22
  188. package/docs/interfaces/PaintBrushAction.html +14 -24
  189. package/docs/interfaces/PaintBrushConfigs.html +14 -24
  190. package/docs/interfaces/PaintBrushState.html +12 -22
  191. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +12 -22
  192. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -17
  193. package/docs/interfaces/PanoMeasureParameterType.html +18 -28
  194. package/docs/interfaces/PanoMeasurePluginLineJson.html +10 -20
  195. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +9 -19
  196. package/docs/interfaces/PanoMeasurePluginPointJson.html +9 -19
  197. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +10 -20
  198. package/docs/interfaces/PanoRulerPluginExportType.html +12 -22
  199. package/docs/interfaces/PanoRulerPluginOptions.html +9 -19
  200. package/docs/interfaces/PanoRulerPluginParameterType.html +10 -20
  201. package/docs/interfaces/PanoRulerProPluginExportType.html +11 -21
  202. package/docs/interfaces/PanoRulerProPluginOptions.html +9 -19
  203. package/docs/interfaces/PanoRulerProPluginParameterType.html +9 -19
  204. package/docs/interfaces/PanoRulerProPluginState.html +10 -20
  205. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -17
  206. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -17
  207. package/docs/interfaces/PanoSpatialTagPluginData.html +13 -23
  208. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +12 -22
  209. package/docs/interfaces/PanoSpatialTagPluginExportType.html +15 -25
  210. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +12 -22
  211. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +15 -25
  212. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +13 -23
  213. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +12 -22
  214. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +8 -18
  215. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +10 -20
  216. package/docs/interfaces/PanoVideoPluginType.PluginData.html +8 -18
  217. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +11 -21
  218. package/docs/interfaces/PanoVideoPluginType.PluginState.html +8 -18
  219. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +10 -20
  220. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +12 -22
  221. package/docs/interfaces/Point.html +10 -20
  222. package/docs/interfaces/Room.html +11 -21
  223. package/docs/interfaces/RoomInfo.html +9 -19
  224. package/docs/interfaces/RoomLabel.html +16 -26
  225. package/docs/interfaces/RoomRules.html +7 -17
  226. package/docs/interfaces/Rooms.html +7 -17
  227. package/docs/interfaces/Scissor.html +11 -21
  228. package/docs/interfaces/State.html +10 -20
  229. package/docs/interfaces/TagCacheInterface.html +14 -24
  230. package/docs/interfaces/TagConfig.html +49 -65
  231. package/docs/interfaces/TagGLTFObjectGroup.html +8 -18
  232. package/docs/interfaces/TagIconUrl.html +14 -24
  233. package/docs/interfaces/TagObjectGroup.html +8 -18
  234. package/docs/interfaces/TagStyle.html +8 -18
  235. package/docs/interfaces/Tags.html +437 -61
  236. package/docs/interfaces/TemporaryState.html +8 -18
  237. package/docs/interfaces/Util.MagnifierParameter.html +24 -43
  238. package/docs/interfaces/Util.MouseGroupParameter.html +11 -25
  239. package/docs/interfaces/Util.PointIntersection.html +12 -33
  240. package/docs/modules/AreaMakerPluginType.html +6 -16
  241. package/docs/modules/CruisePluginTypes.html +6 -18
  242. package/docs/modules/CurrentPanoImagePluginType.html +7 -17
  243. package/docs/modules/GuideLineItem.html +7 -17
  244. package/docs/modules/GuideLineModeItem.html +7 -17
  245. package/docs/modules/GuideLinePluginType.html +6 -16
  246. package/docs/modules/PanoVideoPluginType.html +7 -17
  247. package/docs/modules/Util.html +8 -26
  248. package/docs/modules.html +11 -34
  249. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +6 -16
  250. package/docs/types/AreaMakerPluginType.ItemRenderer.html +6 -16
  251. package/docs/types/AreaMakerPluginType.PluginData.html +6 -16
  252. package/docs/types/AreaMakerPluginType.ServerData.html +6 -16
  253. package/docs/types/ArrayPosition.html +7 -17
  254. package/docs/types/AudioAppearance.html +7 -17
  255. package/docs/types/{PositionFrom.html → AudioTagTypeConfigKey.html} +10 -28
  256. package/docs/types/CSS3DRenderExportType.html +7 -17
  257. package/docs/types/CSS3DRenderPluginExportType.html +7 -17
  258. package/docs/types/CSS3DRenderPluginParameterType.html +7 -17
  259. package/docs/types/ClassFunctionParameters.html +7 -17
  260. package/docs/types/Color.html +7 -17
  261. package/docs/types/ContentTypeConfigKey.html +7 -17
  262. package/docs/types/ContentTypeConfigKeySplit.html +8 -18
  263. package/docs/types/ContentTypeMap.html +7 -17
  264. package/docs/types/Create3DDomContainerReturnType.html +7 -17
  265. package/docs/types/Create3DElementReturnType.html +7 -17
  266. package/docs/types/CruisePluginExportType.html +7 -17
  267. package/docs/types/CruisePluginTypes.CruiseData.html +6 -17
  268. package/docs/types/CruisePluginTypes.MoveEffect.html +6 -17
  269. package/docs/types/CurrentPanoImagePluginExportType.html +7 -17
  270. package/docs/types/DeprecatedMediaPlaneProperty.html +7 -17
  271. package/docs/types/DeprecatedTagProperty.html +7 -17
  272. package/docs/types/Direction-1.html +7 -17
  273. package/docs/types/Direction4.html +7 -17
  274. package/docs/types/ElementRenderer.html +7 -17
  275. package/docs/types/FloorplanRuleLabels.html +7 -17
  276. package/docs/types/FloorplanServerRuleLabels.html +7 -17
  277. package/docs/types/GuideLinePluginExportType.html +7 -17
  278. package/docs/types/GuideLinePluginType.GuideLineItem.html +8 -18
  279. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +6 -16
  280. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +6 -16
  281. package/docs/types/GuideLinePluginType.GuideLineStyle.html +6 -16
  282. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +6 -16
  283. package/docs/types/GuideLinePluginType.PathItem.html +6 -16
  284. package/docs/types/GuideLinePluginType.PluginData.html +6 -16
  285. package/docs/types/HelperEventMap.html +7 -17
  286. package/docs/types/InternalHelperEventMap.html +11 -29
  287. package/docs/types/LoadTagConfig.html +7 -17
  288. package/docs/types/MapviewFloorplanPluginParameterType.html +7 -17
  289. package/docs/types/MapviewFloorplanPluginReturnType.html +7 -17
  290. package/docs/types/MediaData.html +10 -20
  291. package/docs/types/MediaStore.html +7 -17
  292. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -17
  293. package/docs/types/ModelFloorplanPluginParameterType.html +7 -17
  294. package/docs/types/ModelFloorplanPluginReturnType.html +7 -17
  295. package/docs/types/ModelId.html +7 -17
  296. package/docs/types/ModelRoomLabelPluginParameters.html +7 -17
  297. package/docs/types/ModelRoomLabelPluginReturnType.html +7 -17
  298. package/docs/types/MoveArgs.html +7 -17
  299. package/docs/types/MoveOpts.html +7 -17
  300. package/docs/types/Object3DHelperEventMap.html +7 -17
  301. package/docs/types/ObjectFit.html +7 -17
  302. package/docs/types/PaintBrushEventMap.html +7 -17
  303. package/docs/types/PanoCompassPluginData.html +7 -17
  304. package/docs/types/PanoCompassPluginExportType.html +7 -17
  305. package/docs/types/PanoCompassPluginParameterType.html +7 -17
  306. package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -17
  307. package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -17
  308. package/docs/types/PanoIndex.html +7 -17
  309. package/docs/types/PanoMeasurePluginEvent.html +7 -17
  310. package/docs/types/PanoMeasureReturnType.html +7 -17
  311. package/docs/types/PanoSpatialTagPluginId.html +7 -17
  312. package/docs/types/PanoTagPluginExportInterface.html +7 -17
  313. package/docs/types/PanoTagPluginParamsInterface.html +7 -17
  314. package/docs/types/PanoVideoPluginParameterType.html +7 -17
  315. package/docs/types/PanoVideoPluginReturnType.html +7 -17
  316. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +12 -22
  317. package/docs/types/PipelinePluginParameterType.html +7 -17
  318. package/docs/types/PipelinePluginReturnType.html +7 -17
  319. package/docs/types/PlaneTag.html +7 -17
  320. package/docs/types/Point2DTag.html +7 -17
  321. package/docs/types/Point3DTag.html +7 -17
  322. package/docs/types/PointTag.html +7 -17
  323. package/docs/types/PointTagInstance.html +7 -17
  324. package/docs/types/Position.html +7 -17
  325. package/docs/types/RotateArgs.html +7 -17
  326. package/docs/types/RotateOpts.html +7 -17
  327. package/docs/types/RuleLabelsKey.html +7 -17
  328. package/docs/types/RuleLabelsValue.html +7 -17
  329. package/docs/types/StickType.html +7 -17
  330. package/docs/types/Tag.html +13 -35
  331. package/docs/types/Tag2D.html +7 -17
  332. package/docs/types/Tag3D.html +7 -17
  333. package/docs/types/TagConfigByKey.html +8 -18
  334. package/docs/types/TagContentType.html +7 -17
  335. package/docs/types/TagContentTypeMapping.html +7 -17
  336. package/docs/types/TagDimensionType.html +7 -17
  337. package/docs/types/TagElement.html +7 -17
  338. package/docs/types/TagEvents.html +12 -38
  339. package/docs/types/TagGLTFObject.html +7 -17
  340. package/docs/types/TagHooks.html +7 -17
  341. package/docs/types/TagId.html +7 -17
  342. package/docs/types/TagInstance.html +8 -44
  343. package/docs/types/TagPointType.html +7 -17
  344. package/docs/types/TagRendererMap.html +7 -17
  345. package/docs/types/TopviewFloorplanPluginParameterType.html +7 -17
  346. package/docs/types/TopviewFloorplanPluginReturnType.html +7 -17
  347. package/docs/types/WorkCode.html +7 -17
  348. package/docs/variables/FLOOR_TYPE_MAP.html +7 -17
  349. package/docs/variables/PLUGIN.html +7 -17
  350. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -17
  351. package/docs/variables/ROOM_TYPE_MAP.html +7 -17
  352. package/docs/variables/defaultGlobalConfig.html +7 -17
  353. package/docs/variables/itemLabelPluginServerParams.html +7 -17
  354. package/docs/variables/modelItemLabelPluginServerParams.html +7 -17
  355. package/docs/variables/modelRoomLabelPluginServerParams.html +7 -17
  356. package/libs/ModelMakerPlugin/Controller.d.ts +1 -1
  357. package/libs/ModelMakerPlugin/Controller.js +86 -88
  358. package/libs/ModelMakerPlugin/item/baseItem.d.ts +1 -1
  359. package/libs/ModelMakerPlugin/item/baseItem.js +26 -23
  360. package/libs/PanoRulerPlugin/Plugin.js +15 -15
  361. package/libs/PanoTagPlugin/controller/TagComputer.js +2 -0
  362. package/libs/PanoTagPlugin/controller/TagRender.d.ts +2 -1
  363. package/libs/PanoTagPlugin/controller/TagRender.js +67 -63
  364. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +11 -6
  365. package/libs/PanoTagPlugin/controller/TagUtil.js +106 -107
  366. package/libs/PanoTagPlugin/controller/index.d.ts +1 -0
  367. package/libs/PanoTagPlugin/controller/index.js +67 -61
  368. package/libs/PanoTagPlugin/utils/debounce.d.ts +1 -0
  369. package/libs/PanoTagPlugin/utils/debounce.js +10 -4
  370. package/libs/PanoTagPlugin/utils/index.js +7 -6
  371. package/libs/PanoVideoPlugin/Controller.d.ts +1 -2
  372. package/libs/PanoVideoPlugin/Controller.js +1 -1
  373. package/libs/base/BasePlugin.js +3 -3
  374. package/libs/shared-utils/logger.js +1 -1
  375. package/libs/shared-utils/tag.d.ts +4 -4
  376. package/libs/shared-utils/tag.js +30 -26
  377. package/package.json +2 -2
  378. package/docs/classes/Sculpt.html +0 -852
  379. package/docs/functions/ModelMakerPlugin.html +0 -303
  380. package/docs/functions/SculptPlugin.html +0 -306
  381. package/docs/functions/Util.blink.html +0 -351
  382. package/docs/functions/Util.reblink.html +0 -349
  383. package/docs/interfaces/ContentTypeMapInterface.html +0 -773
  384. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +0 -352
  385. package/docs/interfaces/ModelMakerPluginType.EventMap.html +0 -556
  386. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +0 -349
  387. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +0 -391
  388. package/docs/interfaces/ModelMakerPluginType.ServerData.html +0 -332
  389. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +0 -401
  390. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +0 -381
  391. package/docs/interfaces/ModelMakerPluginType.State.html +0 -364
  392. package/docs/interfaces/Util.BlinkAnimeOptions.html +0 -380
  393. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +0 -387
  394. package/docs/modules/ModelMakerPluginType.html +0 -339
  395. package/docs/modules/SculptData.html +0 -318
  396. package/docs/types/AddObject3DHelperConfig.html +0 -315
  397. package/docs/types/ModelMakerPluginType.ElementRenderer.html +0 -329
  398. package/docs/types/ModelMakerPluginType.ItemType.html +0 -308
  399. package/docs/types/ScaleCallback.html +0 -314
  400. package/docs/types/ScalePosition.html +0 -303
  401. package/docs/types/SculptData.BoxData.html +0 -306
  402. package/docs/types/SculptData.CircleData.html +0 -306
  403. package/docs/types/SculptData.CylinderData.html +0 -306
  404. package/docs/types/SculptData.PointData.html +0 -306
  405. package/docs/types/SculptData.PolygonData.html +0 -306
  406. package/docs/types/SculptData.PolylineData.html +0 -306
  407. package/docs/types/SculptData.PrismData.html +0 -306
  408. package/docs/types/SculptData.RectangleData.html +0 -306
@@ -1,43 +1,43 @@
1
- var V = Object.defineProperty, E = Object.defineProperties;
2
- var R = Object.getOwnPropertyDescriptors;
3
- var D = Object.getOwnPropertySymbols;
4
- var F = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
5
- var A = (d, a, e) => a in d ? V(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, c = (d, a) => {
1
+ var k = Object.defineProperty, F = Object.defineProperties;
2
+ var M = Object.getOwnPropertyDescriptors;
3
+ var P = Object.getOwnPropertySymbols;
4
+ var R = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
5
+ var A = (d, a, e) => a in d ? k(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, c = (d, a) => {
6
6
  for (var e in a || (a = {}))
7
- F.call(a, e) && A(d, e, a[e]);
8
- if (D)
9
- for (var e of D(a))
7
+ R.call(a, e) && A(d, e, a[e]);
8
+ if (P)
9
+ for (var e of P(a))
10
10
  O.call(a, e) && A(d, e, a[e]);
11
11
  return d;
12
- }, C = (d, a) => E(d, R(a));
12
+ }, C = (d, a) => F(d, M(a));
13
13
  var f = (d, a, e) => (A(d, typeof a != "symbol" ? a + "" : a, e), e);
14
14
  var g = (d, a, e) => new Promise((t, i) => {
15
15
  var s = (n) => {
16
16
  try {
17
17
  r(e.next(n));
18
- } catch (l) {
19
- i(l);
18
+ } catch (h) {
19
+ i(h);
20
20
  }
21
21
  }, o = (n) => {
22
22
  try {
23
23
  r(e.throw(n));
24
- } catch (l) {
25
- i(l);
24
+ } catch (h) {
25
+ i(h);
26
26
  }
27
27
  }, r = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(s, o);
28
28
  r((e = e.apply(d, a)).next());
29
29
  });
30
- import * as P from "three";
30
+ import * as D from "three";
31
31
  import { Subscribe as _ } from "@realsee/five";
32
32
  import { objectAssignDeepExports as u } from "../../vendor/object-assign-deep/objectAssignDeep.js";
33
- import { addDebugPoints as M } from "../utils/addDebugPoints.js";
33
+ import { addDebugPoints as L } from "../utils/addDebugPoints.js";
34
34
  import { arrayPositionToVector3 as w } from "../../shared-utils/positionToVector3.js";
35
- import { isMediaModelTag as L, isModelTag as G } from "../utils/tag/tagCheck.js";
35
+ import { isMediaModelTag as S, isModelTag as G } from "../utils/tag/tagCheck.js";
36
36
  import { debounce as N } from "../utils/debounce.js";
37
- import { throttle as S } from "../utils/throttle.js";
38
- import z, { getTagStickType as $ } from "../utils/tag/format.js";
39
- import { generateBlankAudio as W, AudioNamespace as x } from "../../shared-utils/audio.js";
40
- import { resizeObserver as U } from "../../shared-utils/dom/resizeObserver.js";
37
+ import { throttle as U } from "../utils/throttle.js";
38
+ import z, { getTagStickType as W } from "../utils/tag/format.js";
39
+ import { generateBlankAudio as $, AudioNamespace as x } from "../../shared-utils/audio.js";
40
+ import { resizeObserver as I } from "../../shared-utils/dom/resizeObserver.js";
41
41
  import { TagRender as j } from "./TagRender.js";
42
42
  import { uuid as J } from "../../shared-utils/uuid.js";
43
43
  import { isModelLike as q } from "../../shared-utils/five/mode.js";
@@ -49,7 +49,7 @@ import { waitFiveModelLoaded as H } from "../../shared-utils/five/fiveModelLoad.
49
49
  import { blink as Q, reblink as Y } from "../../shared-utils/three/blink.js";
50
50
  import { tweenProgress as Z } from "../../shared-utils/animationFrame/BetterTween.js";
51
51
  import { DebugUtil as K } from "../utils/DebugUtil.js";
52
- import { safeObj as I } from "../../shared-utils/safeObj.js";
52
+ import { safeObj as B } from "../../shared-utils/safeObj.js";
53
53
  import { sleep as X } from "../../CruisePlugin/utils/sleep.js";
54
54
  import "./TagComputer.js";
55
55
  import "../utils/tagPosition.js";
@@ -173,7 +173,7 @@ import "../Components/Common/TagPoint.js";
173
173
  import "../../shared-utils/three/GLTFLoader.js";
174
174
  import "@realsee/five/gltf-loader";
175
175
  import "../../shared-utils/animationFrame/index.js";
176
- const B = "Dnalogel-PanoTagPlugin", Gi = (d) => `${B}--${d}`;
176
+ const V = "Dnalogel-PanoTagPlugin", Gi = (d) => `${V}--${d}`;
177
177
  class Ni extends j {
178
178
  constructor(e, t) {
179
179
  super(e);
@@ -184,7 +184,7 @@ class Ni extends j {
184
184
  f(this, "debugUtil", new K(this));
185
185
  /** 更改 tag 模型 */
186
186
  f(this, "changeTagModel", (e, t) => g(this, null, function* () {
187
- e.data = u({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
187
+ e.data = u({}, e.data, t), yield this.loadModel(e), this.updateTag(e);
188
188
  }));
189
189
  f(this, "whyHide", (e) => {
190
190
  var s;
@@ -200,12 +200,18 @@ class Ni extends j {
200
200
  const i = C(c({}, this.computeTagVisible(t)), {
201
201
  tagInstance: t
202
202
  });
203
- return t.state.visible ? { reason: "应该是能看见才对", info: i } : t.stickType === "Model" || t.stickType === "Plane" ? { reason: "maybe blocked by the five model" } : i.value === !0 ? { reason: "插件bug,请联系维护人员", info: i } : { reason: (s = i.reason.type) != null ? s : i.reason, info: i };
203
+ return t.state.visible ? { reason: "应该是能看见才对", info: i } : t.stickType === "Model" || t.stickType === "Plane" ? { reason: "maybe blocked by the five model", info: i } : i.value === !0 ? { reason: "插件bug,请联系维护人员", info: i } : { reason: (s = i.reason.type) != null ? s : i.reason, info: i };
204
204
  });
205
205
  f(this, "updateVisible", () => {
206
206
  const e = this.five.getCurrentState().mode;
207
207
  this.tags.forEach((t) => {
208
- L(t) && e !== "Panorama" && this.changeTagMode(t, "behind");
208
+ S(t) && e !== "Panorama" && this.changeTagMode(t, "behind");
209
+ }), this.setVisible(), this.updateRenderAllTags();
210
+ });
211
+ f(this, "handleFiveModeChange", () => {
212
+ const e = this.five.getCurrentState().mode;
213
+ this.tags.forEach((t) => {
214
+ S(t) && e !== "Panorama" && this.changeTagMode(t, "behind");
209
215
  }), this.setVisible(), this.updateRenderAllTags();
210
216
  });
211
217
  f(this, "handleFiveWantsMoveToPano", (e) => {
@@ -240,25 +246,25 @@ class Ni extends j {
240
246
  }), this.updateRenderAllTags());
241
247
  });
242
248
  f(this, "handleFiveCameraUpdate", () => {
243
- this.updatePointTagPosition();
249
+ this.setPointTagPosition(), this.updateDomView();
244
250
  });
245
251
  f(this, "handleFivePanoArrived", () => g(this, null, function* () {
246
- this.setVisible(), this.updatePointTagPosition(), yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
252
+ this.setVisible(), this.setPointTagPosition(), this.updateDomView(), yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
247
253
  e.temporaryState = C(c({}, e.temporaryState), { visible: !0 });
248
254
  }), this.tags.filter(G).filter((e) => {
249
255
  var t;
250
256
  return (t = this.getTagConfig(e).modelConfig) == null ? void 0 : t.autoLookAtEnabled;
251
257
  }).forEach((e) => {
252
- var l;
253
- const t = new P.Mesh(new P.BoxGeometry(), new P.MeshBasicMaterial()), i = (l = e.model) == null ? void 0 : l.object;
258
+ var h;
259
+ const t = new D.Mesh(new D.BoxGeometry(), new D.MeshBasicMaterial()), i = (h = e.model) == null ? void 0 : h.object;
254
260
  if (!i)
255
261
  return;
256
262
  t.position.copy(i.position), t.quaternion.copy(i.quaternion);
257
263
  const s = this.five.camera.position;
258
264
  t.lookAt(s.clone().setY(t.position.y));
259
265
  const o = i.quaternion.clone(), r = t.quaternion.clone(), n = Z();
260
- n.onUpdate(({ progress: h }) => {
261
- i.quaternion.copy(o.clone().slerp(r, h));
266
+ n.onUpdate(({ progress: l }) => {
267
+ i.quaternion.copy(o.clone().slerp(r, l));
262
268
  }), n.play();
263
269
  }), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
264
270
  }));
@@ -269,7 +275,7 @@ class Ni extends j {
269
275
  f(this, "onFiveEveryReady", () => {
270
276
  this.setUnfoldedByCamera(), q(this.five.getCurrentState().mode) && (this.setTagZIndex(this.filterPointTag), this.setVisible(), this.setPointTagPosition()), this.updateDomView({ withAnimation: !0 }), this.updateRenderVideoPlane(), this.updateRenderImagePlane(), this.updateTagModelVisible();
271
277
  });
272
- this.params = u({}, { debug: !1, config: this.config }, c({}, t)), this.debug = this.params.debug, this.config = this.params.config, W(1, { namespace: x.PlayAudio });
278
+ this.params = u({}, { debug: !1, config: this.config }, c({}, t)), this.debug = this.params.debug, this.config = this.params.config, $(1, { namespace: x.PlayAudio });
273
279
  try {
274
280
  Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ || Object.defineProperty(window, "__PANOTAGPLUGIN_DEBUG__", {
275
281
  get: function() {
@@ -291,14 +297,14 @@ class Ni extends j {
291
297
  load(e, t) {
292
298
  return g(this, null, function* () {
293
299
  var s, o;
294
- this.clearTags(), console.debug(B, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = u({}, this.config, {
300
+ this.clearTags(), console.debug(V, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = u({}, this.config, {
295
301
  globalConfig: (s = e.globalConfig) != null ? s : {},
296
302
  contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
297
303
  }), this.store.visibleWithAnimation = !0;
298
304
  const i = yield this.addTag(e.tagList, t);
299
305
  if (this.store.visibleWithAnimation = void 0, this.debug)
300
306
  try {
301
- M(this.five, this.tags);
307
+ L(this.five, this.tags);
302
308
  } catch (r) {
303
309
  console.error(r);
304
310
  }
@@ -312,28 +318,28 @@ class Ni extends j {
312
318
  return g(this, null, function* () {
313
319
  const s = (Array.isArray(e) ? e : [e]).filter((o) => o.position).map((o) => {
314
320
  var b, v, T, y;
315
- o.stickType = $(o);
321
+ o.stickType = W(o);
316
322
  const r = JSON.parse(JSON.stringify(o.data)), n = (b = o.initialConfig) != null ? b : o.config ? JSON.parse(JSON.stringify(o.config)) : {};
317
323
  o.initialConfig = n;
318
- const l = this.calculateTagConfig(o), h = this.getTagConfig(o);
319
- o.config = h;
324
+ const h = this.calculateTagConfig(o), l = this.getTagConfig(o);
325
+ o.config = l;
320
326
  const p = C(c({}, o), {
321
327
  enabled: (v = o.enabled) != null ? v : !0,
322
328
  id: (T = o.id) != null ? T : J(),
323
- data: (y = h.initialData) != null && y.important ? u(o.data, r, h.initialData) : u(o.data, h.initialData, r),
329
+ data: (y = l.initialData) != null && y.important ? u(o.data, r, l.initialData) : u(o.data, l.initialData, r),
324
330
  state: c({
325
331
  visible: void 0,
326
332
  unfolded: !this.can("fold", o)
327
- }, h.initialState),
333
+ }, l.initialState),
328
334
  hooks: new _(),
329
335
  originPosition: o.position,
330
336
  position: (() => {
331
337
  const m = this.getTransformedPostion(o.position);
332
- return Array.isArray(m) ? m.map((k) => k.toArray()) : m.toArray();
338
+ return Array.isArray(m) ? m.map((E) => E.toArray()) : m.toArray();
333
339
  })(),
334
340
  initialConfig: n,
335
- computedConfig: l,
336
- config: h,
341
+ computedConfig: h,
342
+ config: l,
337
343
  unfold: () => this.changeUnfoldedById(p.id, !0),
338
344
  fold: () => this.changeUnfoldedById(p.id, !1),
339
345
  enable: () => this.changeEnabledById(p.id, !0),
@@ -347,7 +353,7 @@ class Ni extends j {
347
353
  });
348
354
  return s.forEach(z), this.tags.push(...s), this.tagsLengthWillUpdate = !0, H(this.five).then(() => g(this, null, function* () {
349
355
  var o, r, n;
350
- this.store.eventListenerDisposer && ((r = (o = this.store).eventListenerDisposer) == null || r.call(o)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.addMediaModelTag(s), this.setVisibleAndUnfolded({ withAnimation: (n = t == null ? void 0 : t.withAnimation) != null ? n : !0 }), this.updatePointTagPosition(), this.updateRenderAllTags();
356
+ this.store.eventListenerDisposer && ((r = (o = this.store).eventListenerDisposer) == null || r.call(o)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.addMediaModelTag(s), this.setVisibleAndUnfolded({ withAnimation: (n = t == null ? void 0 : t.withAnimation) != null ? n : !0 }), this.updateRenderAllTags();
351
357
  }));
352
358
  });
353
359
  }
@@ -408,9 +414,9 @@ class Ni extends j {
408
414
  */
409
415
  dispose() {
410
416
  var e, t, i, s, o, r;
411
- this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filterCSS3DTag.forEach((n) => {
412
- var l;
413
- return (l = n.tag3DContentSvelte) == null ? void 0 : l.svelteApp.$destroy();
417
+ this.tagsLengthWillUpdate = !0, this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filterCSS3DTag.forEach((n) => {
418
+ var h;
419
+ return (h = n.tag3DContentSvelte) == null ? void 0 : h.svelteApp.$destroy();
414
420
  }), this.tags = [], (t = this.store.disposers) == null || t.forEach((n) => n == null ? void 0 : n()), this.store.disposers = [], (s = (i = this.store).eventListenerDisposer) == null || s.call(i), this.store.eventListenerDisposer = void 0, (r = (o = this.store).resizeObserverDisposer) == null || r.call(o), this.store.resizeObserverDisposer = void 0, this.store.resizeObserverDisposerAdding = !1, this.five.scene.remove(this.group), this.group.remove(...this.group.children), this.gltfObjectGroup.remove(...this.gltfObjectGroup.children), this.imagePlaneGroup.remove(...this.imagePlaneGroup.children), this.clearCache(), this.five.needsRender = !0, this.store.disposed = !0, this.hooks.emit("dispose");
415
421
  }
416
422
  /**
@@ -420,11 +426,11 @@ class Ni extends j {
420
426
  */
421
427
  blinkTagById(e, t) {
422
428
  return g(this, null, function* () {
423
- var h, p;
429
+ var l, p;
424
430
  const i = this.getTagById(e);
425
431
  if (!i)
426
432
  return;
427
- const s = (h = i.enabled) != null ? h : !0, o = (p = i.state) == null ? void 0 : p.visible, r = s && o;
433
+ const s = (l = i.enabled) != null ? l : !0, o = (p = i.state) == null ? void 0 : p.visible, r = s && o;
428
434
  r === !1 && (i.state.visible = !0, i.enabled = !0, this.setPointTagPosition(), this.updateDomView(), yield X(0), i.dom && (i.dom.style.visibility = "hidden"));
429
435
  const n = (() => {
430
436
  var v, T, y;
@@ -469,7 +475,7 @@ class Ni extends j {
469
475
  changeEnabledById(e, t) {
470
476
  var s;
471
477
  const i = this.getTagById(e);
472
- i && (i.enabled = t, (s = i.hooks) == null || s.emit(t ? "enable" : "disable"), this.updateRenderAllTags());
478
+ i && (i.enabled = t, (s = i.hooks) == null || s.emit(t ? "enable" : "disable"), this.updateTag(i));
473
479
  }
474
480
  /**
475
481
  * @description 修改3D标签normal
@@ -489,7 +495,7 @@ class Ni extends j {
489
495
  return;
490
496
  i.originPosition = t, i.position = t, this.clearCacheById(e);
491
497
  const s = this.getVisible(i);
492
- i.state && (i.state.visible = s), i.stickType === "2DPoint" || i.stickType === "3DPoint" ? this.updatePointTagPosition() : this.updateRenderAllTags();
498
+ i.state && (i.state.visible = s), this.updateTag(i);
493
499
  }
494
500
  /**
495
501
  * @description 改变data
@@ -497,7 +503,7 @@ class Ni extends j {
497
503
  changeDataById(e, t, i = !0) {
498
504
  const s = this.getTagById(e);
499
505
  let o = !1;
500
- s && (s.data && (o = !0), i ? s.data = u(s.data, t) : s.data = c(c({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags(), o && s.hooks.emit("dataChanged", s.data));
506
+ s && (s.data && (o = !0), i ? s.data = u(s.data, t) : s.data = c(c({}, s.data), t), this.clearUnusedPanelTag(), this.updateTag(s), o && s.hooks.emit("dataChanged", s.data));
501
507
  }
502
508
  /**
503
509
  * @description 改变tag的stickType
@@ -559,13 +565,13 @@ class Ni extends j {
559
565
  addEventListener() {
560
566
  const { five: e, hooks: t } = this;
561
567
  let i = !1;
562
- const s = S(() => {
568
+ const s = U(() => {
563
569
  i || (i = !0, e.ready().then(() => {
564
570
  this.onFiveEveryReady(), i = !1;
565
571
  }));
566
572
  }, 150);
567
- return e.on("cameraUpdate", s), this.updateVisible(), this.handleFivePanoArrived(), e.on("wantsMoveToPano", this.handleFiveWantsMoveToPano), e.on("models.refined", this.onFiveEveryReady), e.on("modeChange", this.updateVisible), e.on("initAnimationEnded", this.updateVisible), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", this.handleFiveCameraUpdate), e.on("panoArrived", this.handleFivePanoArrived), e.on("panoArrived", this.loadVideoFirstFrame), t.on("click", this.clickhandler), () => {
568
- e.off("wantsMoveToPano", this.handleFiveWantsMoveToPano), e.off("models.refined", this.onFiveEveryReady), e.off("modeChange", this.updateVisible), e.off("initAnimationEnded", this.updateVisible), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", this.handleFiveCameraUpdate), e.off("cameraUpdate", s), e.off("panoArrived", this.handleFivePanoArrived), e.off("panoArrived", this.loadVideoFirstFrame), t.off("click", this.clickhandler), this.store.eventListenerDisposer = void 0;
573
+ return e.on("cameraUpdate", s), this.updateVisible(), this.handleFivePanoArrived(), e.on("wantsMoveToPano", this.handleFiveWantsMoveToPano), e.on("models.refined", this.onFiveEveryReady), e.on("modeChange", this.handleFiveModeChange), e.on("initAnimationEnded", this.updateVisible), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", this.handleFiveCameraUpdate), e.on("panoArrived", this.handleFivePanoArrived), e.on("panoArrived", this.loadVideoFirstFrame), t.on("click", this.clickhandler), () => {
574
+ e.off("wantsMoveToPano", this.handleFiveWantsMoveToPano), e.off("models.refined", this.onFiveEveryReady), e.off("modeChange", this.handleFiveModeChange), e.off("initAnimationEnded", this.updateVisible), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", this.handleFiveCameraUpdate), e.off("cameraUpdate", s), e.off("panoArrived", this.handleFivePanoArrived), e.off("panoArrived", this.loadVideoFirstFrame), t.off("click", this.clickhandler), this.store.eventListenerDisposer = void 0;
569
575
  };
570
576
  }
571
577
  addResizeListener() {
@@ -583,12 +589,12 @@ class Ni extends j {
583
589
  this.state.enabled && (this.show(), this.updateRenderAllTags());
584
590
  }, i = () => {
585
591
  this.state.enabled && this.hide();
586
- }, { observe: s, unobserve: o } = U(
587
- S(() => {
592
+ }, { observe: s, unobserve: o } = I(
593
+ U(() => {
588
594
  this.store.resizeObserverDisposer && i();
589
595
  }, 500),
590
596
  e
591
- ), { observe: r, unobserve: n } = U(
597
+ ), { observe: r, unobserve: n } = I(
592
598
  N(() => t(), 400),
593
599
  e
594
600
  );
@@ -603,18 +609,18 @@ class Ni extends j {
603
609
  if (t.state && i !== void 0) {
604
610
  if (i === !0 && t.screenPosition) {
605
611
  const s = this.getTagConfig(t).unfoldedConfig;
606
- I(s).keep !== "unfolded" && (e = !0);
612
+ B(s).keep !== "unfolded" && (e = !0);
607
613
  }
608
614
  t.state.unfolded = i;
609
615
  }
610
616
  }), e && this.filterPointTag.forEach((t) => {
611
617
  const i = this.getTagConfig(t).unfoldedConfig;
612
- typeof i == "object" && (i.autoUnfold || i.autoUnfold === !1 || I(i.autoUnfold).enable === !1 || i.keep) || t.state && (t.state.unfolded = !1);
618
+ typeof i == "object" && (i.autoUnfold || i.autoUnfold === !1 || B(i.autoUnfold).enable === !1 || i.keep) || t.state && (t.state.unfolded = !1);
613
619
  });
614
620
  }
615
621
  changeTagMode(e, t) {
616
- var i, s, o, r, n, l;
617
- ((i = e.config) == null ? void 0 : i.renderType) !== "Mesh" && ((r = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.css3DInstance) == null ? void 0 : o.css3DObject) == null ? void 0 : r.mode) !== t && ((n = e.config) != null && n.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (l = this.store.css3DRenderDisposer.get(e.id)) == null || l.forEach((h) => h == null ? void 0 : h()), e.tag3DContentSvelte = void 0);
622
+ var i, s, o, r, n, h;
623
+ ((i = e.config) == null ? void 0 : i.renderType) !== "Mesh" && ((r = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.css3DInstance) == null ? void 0 : o.css3DObject) == null ? void 0 : r.mode) !== t && ((n = e.config) != null && n.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (h = this.store.css3DRenderDisposer.get(e.id)) == null || h.forEach((l) => l == null ? void 0 : l()), e.tag3DContentSvelte = void 0);
618
624
  }
619
625
  }
620
626
  export {
@@ -5,3 +5,4 @@
5
5
  * @returns
6
6
  */
7
7
  export declare const debounce: <F extends (...args: any) => any>(callback: F, waitFor?: number) => (...args: Parameters<F>) => ReturnType<F>;
8
+ export declare const debounceByKey: <F extends (...args: any) => any>(key: string, callback: F, waitFor?: number) => (...args: Parameters<F>) => ReturnType<F>;
@@ -1,12 +1,18 @@
1
- const r = (n, o = 16.666666666666668) => {
1
+ const u = (n, o = 16.666666666666668) => {
2
2
  let e = null;
3
3
  const t = n;
4
- return (...l) => {
4
+ return (...r) => {
5
5
  e && clearTimeout(e), e = setTimeout(() => {
6
- t == null || t(...l), e && clearTimeout(e), e = null;
6
+ t == null || t(...r), e && clearTimeout(e), e = null;
7
7
  }, o);
8
8
  };
9
+ }, c = /* @__PURE__ */ new Map(), i = (n, o, e = 1e3 / 60) => {
10
+ if (c.has(n))
11
+ return c.get(n);
12
+ const t = u(o, e);
13
+ return c.set(n, t), t;
9
14
  };
10
15
  export {
11
- r as debounce
16
+ u as debounce,
17
+ i as debounceByKey
12
18
  };
@@ -1,10 +1,10 @@
1
1
  import { addDebugPoints as a } from "./addDebugPoints.js";
2
2
  import { noTypecheck as n } from "./noTypecheck.js";
3
3
  import { planeNormal as f } from "./planeNormal.js";
4
- import { getTagCenterPosition as l, getTagPosition as c } from "./tagPosition.js";
4
+ import { getTagCenterPosition as c, getTagPosition as l } from "./tagPosition.js";
5
5
  import { checkRange as h } from "./checkRange.js";
6
- import { normalPositionToPositions as T } from "./normalPositionToPositions.js";
7
- import { debounce as b } from "./debounce.js";
6
+ import { normalPositionToPositions as P } from "./normalPositionToPositions.js";
7
+ import { debounce as b, debounceByKey as d } from "./debounce.js";
8
8
  import { throttle as k } from "./throttle.js";
9
9
  import { binarySearchFirstBig as F, searchFirstValueSmallThanLastValue as S } from "./search.js";
10
10
  import "three";
@@ -16,10 +16,11 @@ export {
16
16
  F as binarySearchFirstBig,
17
17
  h as checkRange,
18
18
  b as debounce,
19
- l as getTagCenterPosition,
20
- c as getTagPosition,
19
+ d as debounceByKey,
20
+ c as getTagCenterPosition,
21
+ l as getTagPosition,
21
22
  n as noTypecheck,
22
- T as normalPositionToPositions,
23
+ P as normalPositionToPositions,
23
24
  f as planeNormal,
24
25
  S as searchFirstValueSmallThanLastValue,
25
26
  k as throttle
@@ -1,6 +1,5 @@
1
1
  import type { Five } from '@realsee/five';
2
2
  import type { LoadParams, PluginEventMap, PluginState, PluginData, VideoItem } from './typings';
3
- import { VideoMeshController } from './VideoMeshController';
4
3
  import * as BasePlugin from '../base/BasePlugin';
5
4
  export declare class PanoVideoPluginController extends BasePlugin.Controller<PluginState, PluginEventMap> {
6
5
  /** 插件 State */
@@ -9,8 +8,8 @@ export declare class PanoVideoPluginController extends BasePlugin.Controller<Plu
9
8
  };
10
9
  /** 插件是否已被销毁 */
11
10
  get disposed(): boolean;
12
- controllerMap: Map<string, VideoMeshController>;
13
11
  private enabled;
12
+ private controllerMap;
14
13
  private _disposed;
15
14
  constructor(five: Five);
16
15
  /** 加载点位视频数据,加载数据并不代表会加载点位视频。 */
@@ -41,8 +41,8 @@ import "../shared-utils/url/absoluteUrl.js";
41
41
  class T extends _ {
42
42
  constructor(r) {
43
43
  super(r);
44
- s(this, "controllerMap", /* @__PURE__ */ new Map());
45
44
  s(this, "enabled", !0);
45
+ s(this, "controllerMap", /* @__PURE__ */ new Map());
46
46
  s(this, "_disposed", !1);
47
47
  this.five = r;
48
48
  }
@@ -10,12 +10,12 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
10
10
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
11
11
  import "animejs";
12
12
  import { absoluteUrl as l } from "../shared-utils/url/absoluteUrl.js";
13
- let C = class {
13
+ let v = class {
14
14
  constructor(t, r) {
15
15
  /**
16
16
  * @realsee/dnalogel 版本号
17
17
  */
18
- i(this, "VERSION", "3.34.6");
18
+ i(this, "VERSION", "3.35.0-dev.1");
19
19
  i(this, "five");
20
20
  /**
21
21
  * @description: 插件事件钩子
@@ -38,5 +38,5 @@ let C = class {
38
38
  }
39
39
  };
40
40
  export {
41
- C as Controller
41
+ v as Controller
42
42
  };
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.34.6",
3
+ "%c %c@realsee/dnalogel %cv3.35.0-dev.1",
4
4
  [
5
5
  "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=')",
6
6
  "background-repeat: no-repeat",
@@ -4,13 +4,13 @@ export declare class LightTag {
4
4
  container: HTMLDivElement;
5
5
  visible: boolean;
6
6
  enabled: boolean;
7
- wrapper: HTMLElement;
8
7
  private five;
9
8
  private position;
9
+ private wrapper;
10
10
  private disposer;
11
- private config;
11
+ private wrapperStyle;
12
12
  constructor(five: Five, position: AnyPosition, config?: {
13
- wrapper?: HTMLElement;
13
+ wrapperStyle?: Partial<CSSStyleDeclaration>;
14
14
  });
15
15
  show(): void;
16
16
  hide(params?: {
@@ -22,5 +22,5 @@ export declare class LightTag {
22
22
  private onFiveEveryReady;
23
23
  }
24
24
  export declare function tag(five: Five, position: AnyPosition, config?: {
25
- wrapper?: HTMLElement;
25
+ wrapperStyle?: Partial<CSSStyleDeclaration>;
26
26
  }): LightTag;
@@ -1,27 +1,27 @@
1
1
  var l = Object.defineProperty;
2
- var p = (s, e, t) => e in s ? l(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
- var i = (s, e, t) => (p(s, typeof e != "symbol" ? e + "" : e, t), t);
4
- import { anyPositionToVector3 as f } from "./positionToVector3.js";
2
+ var c = (o, e, t) => e in o ? l(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
+ var s = (o, e, t) => (c(o, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import { anyPositionToVector3 as p } from "./positionToVector3.js";
5
5
  import * as d from "three";
6
6
  import { vector3ToScreen as y } from "./five/vector3ToScreen.js";
7
- const c = "LightTagContainer_shgjakdhwakjdhsja";
8
- class v {
7
+ const h = "LightTagContainer_shgjakdhwakjdhsja";
8
+ class f {
9
9
  constructor(e, t, n) {
10
- i(this, "container");
11
- i(this, "visible", !1);
12
- i(this, "enabled", !1);
13
- i(this, "wrapper");
14
- i(this, "five");
15
- i(this, "position");
16
- i(this, "disposer");
17
- i(this, "config");
18
- i(this, "onCameraUpdate", () => {
10
+ s(this, "container");
11
+ s(this, "visible", !1);
12
+ s(this, "enabled", !1);
13
+ s(this, "five");
14
+ s(this, "position");
15
+ s(this, "wrapper");
16
+ s(this, "disposer");
17
+ s(this, "wrapperStyle", {});
18
+ s(this, "onCameraUpdate", () => {
19
19
  if (this.visible === !1)
20
20
  return;
21
21
  const e = y(this.five.camera, this.position);
22
22
  e ? (this.container.style.left = e.leftPercent + "%", this.container.style.top = e.topPercent + "%") : (this.container.style.left = "-100%", this.container.style.top = "-100%");
23
23
  });
24
- i(this, "onFiveEveryReady", () => {
24
+ s(this, "onFiveEveryReady", () => {
25
25
  var e;
26
26
  if (this.visible && this.five.state.mode !== "Panorama") {
27
27
  const t = new d.Raycaster();
@@ -30,10 +30,11 @@ class v {
30
30
  (n == null ? void 0 : n.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");
31
31
  }
32
32
  });
33
- this.five = e, this.position = f(t).clone(), this.container = (() => {
34
- const o = document.createElement("div");
35
- return o.style.width = "0", o.style.height = "0", o.style.position = "absolute", o;
36
- })(), this.config = n, this.enable(), this.show();
33
+ var i;
34
+ this.five = e, this.position = p(t).clone(), this.container = (() => {
35
+ const a = document.createElement("div");
36
+ return a.style.width = "0", a.style.height = "0", a.style.position = "absolute", a;
37
+ })(), this.wrapperStyle = (i = n == null ? void 0 : n.wrapperStyle) != null ? i : {}, this.enable(), this.show();
37
38
  }
38
39
  show() {
39
40
  this.visible = !0, this.container.style.opacity = "1", this.container.style.pointerEvents = "auto", this.container.style.transition = "opacity 0.2s linear", this.onCameraUpdate();
@@ -42,13 +43,16 @@ class v {
42
43
  this.visible = !1, e != null && e.withAnimation ? this.container.style.transition = "opacity 0.2s linear" : this.container.style.transition = "", this.container.style.opacity = "0", this.container.style.pointerEvents = "none";
43
44
  }
44
45
  enable() {
45
- var n, o, r, h;
46
+ var n;
46
47
  if (this.enabled)
47
48
  return;
48
- this.enabled = !0, this.wrapper || (this.wrapper = (o = (n = this.config.wrapper) != null ? n : document.getElementById(c)) != null ? o : (() => {
49
- const a = document.createElement("div");
50
- return a.id = c, 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;
51
- })(), (r = this.five.getElement()) != null && r.parentElement.contains(this.wrapper) || (h = this.five.getElement()) == null || h.parentElement.appendChild(this.wrapper)), this.wrapper.appendChild(this.container);
49
+ this.enabled = !0, this.wrapper = (n = document.getElementById(h)) != null ? n : (() => {
50
+ var a;
51
+ const i = document.createElement("div");
52
+ return i.id = h, i.style.position = "absolute", i.style.top = "0", i.style.left = "0", i.style.width = "100%", i.style.height = "100%", i.style.pointerEvents = "none", Object.keys(this.wrapperStyle).forEach((r) => {
53
+ i.style[r] = this.wrapperStyle[r];
54
+ }), (a = this.five.getElement()) == null || a.parentElement.appendChild(i), i;
55
+ })(), this.wrapper.appendChild(this.container);
52
56
  let e = !1;
53
57
  const t = () => {
54
58
  e || (e = !0, this.five.ready().then(() => {
@@ -64,8 +68,8 @@ class v {
64
68
  this.enabled && (this.enabled = !1, this.wrapper.removeChild(this.container), (e = this.disposer) == null || e.call(this));
65
69
  }
66
70
  }
67
- function w(s, e, t) {
68
- return new v(s, e, t);
71
+ function w(o, e, t) {
72
+ return new f(o, e, t);
69
73
  }
70
74
  export {
71
75
  w as tag
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.34.6",
3
+ "version": "3.35.0-dev.1",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "build:dist": "NODE_ENV=production BUILD_MODULE=dist vite build -m production",
25
25
  "build:components": "NODE_ENV=production BUILD_MODULE=components vite build -m production",
26
26
  "docs": "typedoc --options ./typedoc.json",
27
- "prepublishOnly": "run-p build docs",
27
+ "prepublishOnly": "run-p build",
28
28
  "postpublish": "cnpm sync @realsee/dnalogel"
29
29
  },
30
30
  "files": [