@realsee/dnalogel 2.30.3 → 3.0.0-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 (428) hide show
  1. package/dist/CSS3DRenderPlugin/Controller.d.ts +3 -2
  2. package/dist/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +3 -1
  3. package/dist/CSS3DRenderPlugin/utils/three/CSS3DRender.d.ts +1 -0
  4. package/dist/PanoTagPlugin/controller/TagCache.d.ts +3 -3
  5. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +6 -12
  6. package/dist/PanoTagPlugin/controller/TagRender.d.ts +5 -1
  7. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +12 -6
  8. package/dist/PanoTagPlugin/controller/index.d.ts +2 -6
  9. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +3 -2
  10. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +66 -20
  11. package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +7 -2
  12. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +8 -3
  13. package/dist/PanoTagPlugin/utils/index.d.ts +0 -2
  14. package/dist/PanoTagPlugin/utils/planeNormal.d.ts +1 -1
  15. package/dist/PanoTagPlugin/utils/tag/adaptConfig.d.ts +2 -0
  16. package/dist/floorplan/utils/correctFiveState.d.ts +1 -1
  17. package/dist/index.cjs.js +57 -57
  18. package/dist/index.d.ts +1 -0
  19. package/dist/index.js +4749 -4758
  20. package/dist/index.umd.js +48 -48
  21. package/dist/shared-utils/five/FiveDomEvents.d.ts +1 -3
  22. package/dist/shared-utils/five/adapt.d.ts +9 -0
  23. package/dist/shared-utils/five/fiveModelLoad.d.ts +9 -0
  24. package/dist/shared-utils/getPxmm.d.ts +1 -1
  25. package/dist/shared-utils/typescript/entries.d.ts +2 -0
  26. package/docs/.nojekyll +1 -0
  27. package/docs/assets/highlight.css +120 -0
  28. package/docs/assets/main.js +58 -0
  29. package/docs/assets/search.js +1 -0
  30. package/docs/assets/style.css +1367 -0
  31. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +725 -0
  32. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +678 -0
  33. package/docs/classes/CSS3DRender.html +773 -0
  34. package/docs/classes/CruisePluginController.html +672 -0
  35. package/docs/classes/GuideLineItem.GuideLineItem.html +491 -0
  36. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +792 -0
  37. package/docs/classes/Magnifier.html +480 -0
  38. package/docs/classes/ModelRoomLabelController.html +398 -0
  39. package/docs/classes/Object3DHelperController.html +640 -0
  40. package/docs/classes/PaintBrush.html +502 -0
  41. package/docs/classes/PanoMeasurePluginLine.html +522 -0
  42. package/docs/classes/PanoMeasurePluginModel.html +571 -0
  43. package/docs/classes/PanoMeasurePluginPoint.html +362 -0
  44. package/docs/classes/PanoMeasurePluginPolyline.html +567 -0
  45. package/docs/classes/PanoTagPluginController.html +1050 -0
  46. package/docs/classes/Util.BetterTween.html +416 -0
  47. package/docs/classes/Util.Interval.html +432 -0
  48. package/docs/classes/Util.LineSegments.html +384 -0
  49. package/docs/classes/Util.Magnifier.html +503 -0
  50. package/docs/classes/Util.Object3D.html +406 -0
  51. package/docs/classes/Util.PointDomHelper.html +407 -0
  52. package/docs/classes/Util.PointHelper.html +398 -0
  53. package/docs/classes/Util.PointSelectorHelper.html +454 -0
  54. package/docs/classes/Util.Rectangle.html +455 -0
  55. package/docs/enums/CameraMovementEffect.html +310 -0
  56. package/docs/enums/ContentType.html +446 -0
  57. package/docs/enums/DIRECTION.html +320 -0
  58. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +320 -0
  59. package/docs/enums/DimensionType.html +310 -0
  60. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +313 -0
  61. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +320 -0
  62. package/docs/enums/PaintBrushTypeEnum.html +313 -0
  63. package/docs/enums/PointType.html +310 -0
  64. package/docs/enums/Rotation.html +317 -0
  65. package/docs/functions/AreaMakerPlugin.html +290 -0
  66. package/docs/functions/CSS3DRenderPlugin.html +288 -0
  67. package/docs/functions/CameraMovementPlugin.html +293 -0
  68. package/docs/functions/CruisePlugin.html +290 -0
  69. package/docs/functions/CurrentPanoImagePlugin.html +290 -0
  70. package/docs/functions/GuideLinePlugin.html +290 -0
  71. package/docs/functions/ItemLabelPlugin.html +290 -0
  72. package/docs/functions/MapviewFloorplanPlugin.html +290 -0
  73. package/docs/functions/ModelChassisCompassPlugin.html +293 -0
  74. package/docs/functions/ModelEntryDoorGuidePlugin.html +293 -0
  75. package/docs/functions/ModelFloorplanPlugin.html +290 -0
  76. package/docs/functions/ModelItemLabelPlugin.html +290 -0
  77. package/docs/functions/ModelRoomLabelPlugin.html +288 -0
  78. package/docs/functions/ModelTVVideoPlugin.html +290 -0
  79. package/docs/functions/ModelViewPlugin.html +293 -0
  80. package/docs/functions/Object3DHelperPlugin.html +288 -0
  81. package/docs/functions/PanoCompassPlugin.html +290 -0
  82. package/docs/functions/PanoCursorRaycasterPlugin.html +294 -0
  83. package/docs/functions/PanoDoorLabelPlugin.html +290 -0
  84. package/docs/functions/PanoFloorplanRadarPlugin.html +290 -0
  85. package/docs/functions/PanoMeasurePlugin.html +290 -0
  86. package/docs/functions/PanoRulerPlugin.html +293 -0
  87. package/docs/functions/PanoRulerProPlugin.html +293 -0
  88. package/docs/functions/PanoSpatialTagPlugin.html +293 -0
  89. package/docs/functions/PanoTagPlugin.html +295 -0
  90. package/docs/functions/PanoVideoPlugin.html +299 -0
  91. package/docs/functions/PipelinePlugin.html +288 -0
  92. package/docs/functions/TopviewFloorplanPlugin.html +290 -0
  93. package/docs/functions/Util.absoluteUrl.html +326 -0
  94. package/docs/functions/Util.checkFiveModelLoaded.html +329 -0
  95. package/docs/functions/Util.equal.html +338 -0
  96. package/docs/functions/Util.getCoordsFromClient.html +328 -0
  97. package/docs/functions/Util.getCoordsFromElement.html +328 -0
  98. package/docs/functions/Util.getFrameTime.html +320 -0
  99. package/docs/functions/Util.getIntersectFromRelativePosition.html +328 -0
  100. package/docs/functions/Util.getRaycasterFromFivePointer.html +328 -0
  101. package/docs/functions/Util.isAbsoluteURL.html +321 -0
  102. package/docs/functions/Util.isModelLike.html +321 -0
  103. package/docs/functions/Util.isNil.html +329 -0
  104. package/docs/functions/Util.isPanoramaLike.html +321 -0
  105. package/docs/functions/Util.nextFrame.html +334 -0
  106. package/docs/functions/Util.notNil.html +329 -0
  107. package/docs/functions/Util.requestAnimationFrameInterval.html +350 -0
  108. package/docs/functions/Util.tweenProgress.html +323 -0
  109. package/docs/functions/Util.uuid.html +319 -0
  110. package/docs/functions/pluginFlag.html +288 -0
  111. package/docs/index.html +354 -0
  112. package/docs/interfaces/AddTagConfig.html +303 -0
  113. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +329 -0
  114. package/docs/interfaces/AreaMakerPluginType.Config.html +334 -0
  115. package/docs/interfaces/AreaMakerPluginType.EventMap.html +620 -0
  116. package/docs/interfaces/AreaMakerPluginType.Params.html +333 -0
  117. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +383 -0
  118. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +368 -0
  119. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +333 -0
  120. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +326 -0
  121. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +325 -0
  122. package/docs/interfaces/AreaMakerPluginType.State.html +354 -0
  123. package/docs/interfaces/CSS3DRenderPluginEventMap.html +449 -0
  124. package/docs/interfaces/CSS3DRenderPluginState.html +325 -0
  125. package/docs/interfaces/CameraMovementPluginExportType.html +358 -0
  126. package/docs/interfaces/CruisePluginTypes.Config.html +359 -0
  127. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +361 -0
  128. package/docs/interfaces/CruisePluginTypes.EventMap.html +696 -0
  129. package/docs/interfaces/CruisePluginTypes.MoveAction.html +385 -0
  130. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +421 -0
  131. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +411 -0
  132. package/docs/interfaces/CruisePluginTypes.PluginData.html +351 -0
  133. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +319 -0
  134. package/docs/interfaces/CruisePluginTypes.PluginState.html +408 -0
  135. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +382 -0
  136. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +521 -0
  137. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +323 -0
  138. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +315 -0
  139. package/docs/interfaces/CurrentPanoImagePluginType.State.html +337 -0
  140. package/docs/interfaces/EventMap.html +542 -0
  141. package/docs/interfaces/FloorplanBounding.html +332 -0
  142. package/docs/interfaces/FloorplanData.html +335 -0
  143. package/docs/interfaces/FloorplanEntrance.html +360 -0
  144. package/docs/interfaces/FloorplanExtraObject.html +350 -0
  145. package/docs/interfaces/FloorplanExtraObject3D.html +339 -0
  146. package/docs/interfaces/FloorplanFloorData.html +328 -0
  147. package/docs/interfaces/FloorplanImagePosition.html +314 -0
  148. package/docs/interfaces/FloorplanObserver.html +332 -0
  149. package/docs/interfaces/FloorplanOutlineItem.html +328 -0
  150. package/docs/interfaces/FloorplanPosition.html +314 -0
  151. package/docs/interfaces/FloorplanRoomItem.html +379 -0
  152. package/docs/interfaces/FloorplanRoomLabelItem.html +320 -0
  153. package/docs/interfaces/FloorplanServerBounding.html +332 -0
  154. package/docs/interfaces/FloorplanServerComputedData.html +331 -0
  155. package/docs/interfaces/FloorplanServerData.html +314 -0
  156. package/docs/interfaces/FloorplanServerDoorItem.html +331 -0
  157. package/docs/interfaces/FloorplanServerDoorPosition.html +317 -0
  158. package/docs/interfaces/FloorplanServerEntrance.html +360 -0
  159. package/docs/interfaces/FloorplanServerFloorData.html +328 -0
  160. package/docs/interfaces/FloorplanServerImagePosition.html +314 -0
  161. package/docs/interfaces/FloorplanServerObserver.html +332 -0
  162. package/docs/interfaces/FloorplanServerOutlineItem.html +328 -0
  163. package/docs/interfaces/FloorplanServerPosition.html +314 -0
  164. package/docs/interfaces/FloorplanServerRoomItem.html +391 -0
  165. package/docs/interfaces/FloorplanServerRoomLabelItem.html +320 -0
  166. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +323 -0
  167. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +361 -0
  168. package/docs/interfaces/GuideLinePluginType.EventMap.html +525 -0
  169. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +356 -0
  170. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +347 -0
  171. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +414 -0
  172. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +346 -0
  173. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +471 -0
  174. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +343 -0
  175. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +471 -0
  176. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +308 -0
  177. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +329 -0
  178. package/docs/interfaces/GuideLinePluginType.PluginState.html +354 -0
  179. package/docs/interfaces/GuideLinePluginType.Route.html +370 -0
  180. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +352 -0
  181. package/docs/interfaces/HelperOffset.html +332 -0
  182. package/docs/interfaces/ImagePlaneGroup.html +306 -0
  183. package/docs/interfaces/ItemLabelPluginData.html +303 -0
  184. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +388 -0
  185. package/docs/interfaces/ItemLabelPluginParametersType.html +324 -0
  186. package/docs/interfaces/MinMax.html +310 -0
  187. package/docs/interfaces/ModelChassisCompassPluginData.html +310 -0
  188. package/docs/interfaces/ModelChassisCompassPluginExportType.html +346 -0
  189. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +310 -0
  190. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +317 -0
  191. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +354 -0
  192. package/docs/interfaces/ModelItemLabelPluginData.html +303 -0
  193. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +388 -0
  194. package/docs/interfaces/ModelItemLabelPluginParametersType.html +310 -0
  195. package/docs/interfaces/ModelRoomLabelPluginData.html +303 -0
  196. package/docs/interfaces/ModelTVVideoPluginData.html +324 -0
  197. package/docs/interfaces/ModelTVVideoPluginExportType.html +348 -0
  198. package/docs/interfaces/ModelTVVideoPluginParameterType.html +303 -0
  199. package/docs/interfaces/ModelViewPluginExportType.html +416 -0
  200. package/docs/interfaces/Object3DHelperState.html +317 -0
  201. package/docs/interfaces/ObjectHelperControllers.html +324 -0
  202. package/docs/interfaces/PaintBrushAction.html +363 -0
  203. package/docs/interfaces/PaintBrushConfigs.html +361 -0
  204. package/docs/interfaces/PaintBrushState.html +345 -0
  205. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +425 -0
  206. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +282 -0
  207. package/docs/interfaces/PanoMeasureParameterType.html +449 -0
  208. package/docs/interfaces/PanoMeasurePluginLineJson.html +317 -0
  209. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +314 -0
  210. package/docs/interfaces/PanoMeasurePluginPointJson.html +310 -0
  211. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +320 -0
  212. package/docs/interfaces/PanoRulerPluginExportType.html +377 -0
  213. package/docs/interfaces/PanoRulerPluginOptions.html +326 -0
  214. package/docs/interfaces/PanoRulerPluginParameterType.html +317 -0
  215. package/docs/interfaces/PanoRulerProPluginExportType.html +353 -0
  216. package/docs/interfaces/PanoRulerProPluginOptions.html +323 -0
  217. package/docs/interfaces/PanoRulerProPluginParameterType.html +310 -0
  218. package/docs/interfaces/PanoRulerProPluginState.html +317 -0
  219. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +296 -0
  220. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +285 -0
  221. package/docs/interfaces/PanoSpatialTagPluginData.html +353 -0
  222. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +335 -0
  223. package/docs/interfaces/PanoSpatialTagPluginExportType.html +431 -0
  224. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +331 -0
  225. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +352 -0
  226. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +338 -0
  227. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +331 -0
  228. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +323 -0
  229. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +341 -0
  230. package/docs/interfaces/PanoVideoPluginType.PluginData.html +314 -0
  231. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +420 -0
  232. package/docs/interfaces/PanoVideoPluginType.PluginState.html +314 -0
  233. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +349 -0
  234. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +368 -0
  235. package/docs/interfaces/Point.html +317 -0
  236. package/docs/interfaces/Room.html +324 -0
  237. package/docs/interfaces/RoomInfo.html +310 -0
  238. package/docs/interfaces/RoomLabel.html +386 -0
  239. package/docs/interfaces/RoomRules.html +285 -0
  240. package/docs/interfaces/Rooms.html +285 -0
  241. package/docs/interfaces/Scissor.html +344 -0
  242. package/docs/interfaces/State.html +331 -0
  243. package/docs/interfaces/TagCacheInterface.html +362 -0
  244. package/docs/interfaces/TagConfig.html +565 -0
  245. package/docs/interfaces/TagGLTFObjectGroup.html +306 -0
  246. package/docs/interfaces/TagIconUrl.html +363 -0
  247. package/docs/interfaces/TagObjectGroup.html +306 -0
  248. package/docs/interfaces/TagStyle.html +316 -0
  249. package/docs/interfaces/Tags.html +2688 -0
  250. package/docs/interfaces/TemporaryState.html +303 -0
  251. package/docs/interfaces/Util.MagnifierParameter.html +391 -0
  252. package/docs/interfaces/Util.MouseGroupParameter.html +350 -0
  253. package/docs/interfaces/Util.PointIntersection.html +365 -0
  254. package/docs/modules/AreaMakerPluginType.html +323 -0
  255. package/docs/modules/CruisePluginTypes.html +328 -0
  256. package/docs/modules/CurrentPanoImagePluginType.html +297 -0
  257. package/docs/modules/GuideLineItem.html +289 -0
  258. package/docs/modules/GuideLineModeItem.html +294 -0
  259. package/docs/modules/GuideLinePluginType.html +348 -0
  260. package/docs/modules/PanoVideoPluginType.html +301 -0
  261. package/docs/modules/Util.html +351 -0
  262. package/docs/modules.html +540 -0
  263. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +331 -0
  264. package/docs/types/AreaMakerPluginType.PluginData.html +301 -0
  265. package/docs/types/AreaMakerPluginType.ServerData.html +301 -0
  266. package/docs/types/ArrayPosition.html +279 -0
  267. package/docs/types/AudioAppearance.html +279 -0
  268. package/docs/types/AudioTagTypeConfigKey.html +279 -0
  269. package/docs/types/CSS3DRenderExportType.html +279 -0
  270. package/docs/types/CSS3DRenderPluginExportType.html +279 -0
  271. package/docs/types/CSS3DRenderPluginParameterType.html +279 -0
  272. package/docs/types/ClassFunctionParameters.html +286 -0
  273. package/docs/types/Color.html +279 -0
  274. package/docs/types/ContentTypeConfigKey.html +279 -0
  275. package/docs/types/ContentTypeConfigKeySplit.html +279 -0
  276. package/docs/types/ContentTypeMap.html +279 -0
  277. package/docs/types/Create3DDomContainerReturnType.html +279 -0
  278. package/docs/types/Create3DElementReturnType.html +279 -0
  279. package/docs/types/CruisePluginExportType.html +279 -0
  280. package/docs/types/CruisePluginTypes.CruiseData.html +318 -0
  281. package/docs/types/CruisePluginTypes.MoveEffect.html +295 -0
  282. package/docs/types/CurrentPanoImagePluginExportType.html +279 -0
  283. package/docs/types/DeprecatedMediaPlaneProperty.html +291 -0
  284. package/docs/types/DeprecatedTagProperty.html +294 -0
  285. package/docs/types/Direction-1.html +279 -0
  286. package/docs/types/Direction4.html +279 -0
  287. package/docs/types/ElementRenderer.html +303 -0
  288. package/docs/types/FloorplanRuleLabels.html +282 -0
  289. package/docs/types/FloorplanServerRuleLabels.html +279 -0
  290. package/docs/types/GuideLinePluginExportType.html +279 -0
  291. package/docs/types/GuideLinePluginType.GuideLineItem.html +351 -0
  292. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +372 -0
  293. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +305 -0
  294. package/docs/types/GuideLinePluginType.GuideLineStyle.html +308 -0
  295. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +308 -0
  296. package/docs/types/GuideLinePluginType.PathItem.html +308 -0
  297. package/docs/types/GuideLinePluginType.PluginData.html +317 -0
  298. package/docs/types/HelperEventMap.html +517 -0
  299. package/docs/types/LoadTagConfig.html +279 -0
  300. package/docs/types/MapviewFloorplanPluginParameterType.html +279 -0
  301. package/docs/types/MapviewFloorplanPluginReturnType.html +279 -0
  302. package/docs/types/MediaData.html +295 -0
  303. package/docs/types/MediaStore.html +284 -0
  304. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +286 -0
  305. package/docs/types/ModelFloorplanPluginParameterType.html +279 -0
  306. package/docs/types/ModelFloorplanPluginReturnType.html +279 -0
  307. package/docs/types/ModelId.html +279 -0
  308. package/docs/types/ModelRoomLabelPluginParameters.html +279 -0
  309. package/docs/types/ModelRoomLabelPluginReturnType.html +279 -0
  310. package/docs/types/MoveArgs.html +289 -0
  311. package/docs/types/MoveOpts.html +287 -0
  312. package/docs/types/Object3DHelperEventMap.html +372 -0
  313. package/docs/types/ObjectFit.html +279 -0
  314. package/docs/types/PaintBrushEventMap.html +310 -0
  315. package/docs/types/PanoCompassPluginData.html +279 -0
  316. package/docs/types/PanoCompassPluginExportType.html +279 -0
  317. package/docs/types/PanoCompassPluginParameterType.html +279 -0
  318. package/docs/types/PanoFloorplanRadarPluginParameterType.html +279 -0
  319. package/docs/types/PanoFloorplanRadarPluginReturnType.html +279 -0
  320. package/docs/types/PanoIndex.html +279 -0
  321. package/docs/types/PanoMeasurePluginEvent.html +279 -0
  322. package/docs/types/PanoMeasureReturnType.html +279 -0
  323. package/docs/types/PanoSpatialTagPluginId.html +279 -0
  324. package/docs/types/PanoTagPluginExportInterface.html +279 -0
  325. package/docs/types/PanoTagPluginParamsInterface.html +279 -0
  326. package/docs/types/PanoVideoPluginParameterType.html +279 -0
  327. package/docs/types/PanoVideoPluginReturnType.html +279 -0
  328. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +287 -0
  329. package/docs/types/PipelinePluginParameterType.html +279 -0
  330. package/docs/types/PipelinePluginReturnType.html +279 -0
  331. package/docs/types/PlaneTag.html +287 -0
  332. package/docs/types/Point2DTag.html +287 -0
  333. package/docs/types/Point3DTag.html +287 -0
  334. package/docs/types/PointTag.html +284 -0
  335. package/docs/types/PointTagInstance.html +284 -0
  336. package/docs/types/Position.html +279 -0
  337. package/docs/types/RotateArgs.html +291 -0
  338. package/docs/types/RotateOpts.html +287 -0
  339. package/docs/types/RuleLabelsKey.html +279 -0
  340. package/docs/types/RuleLabelsValue.html +279 -0
  341. package/docs/types/StickType.html +279 -0
  342. package/docs/types/Tag.html +345 -0
  343. package/docs/types/Tag2D.html +287 -0
  344. package/docs/types/Tag3D.html +287 -0
  345. package/docs/types/TagConfigByKey.html +284 -0
  346. package/docs/types/TagContentType.html +279 -0
  347. package/docs/types/TagDimensionType.html +281 -0
  348. package/docs/types/TagElement.html +289 -0
  349. package/docs/types/TagEvents.html +332 -0
  350. package/docs/types/TagGLTFObject.html +302 -0
  351. package/docs/types/TagHooks.html +279 -0
  352. package/docs/types/TagId.html +279 -0
  353. package/docs/types/TagInstance.html +353 -0
  354. package/docs/types/TagPointType.html +282 -0
  355. package/docs/types/TagRendererMap.html +284 -0
  356. package/docs/types/TopviewFloorplanPluginParameterType.html +279 -0
  357. package/docs/types/TopviewFloorplanPluginReturnType.html +279 -0
  358. package/docs/types/WorkCode.html +279 -0
  359. package/docs/variables/FLOOR_TYPE_MAP.html +289 -0
  360. package/docs/variables/PLUGIN.html +279 -0
  361. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +282 -0
  362. package/docs/variables/ROOM_TYPE_MAP.html +289 -0
  363. package/docs/variables/defaultGlobalConfig.html +279 -0
  364. package/docs/variables/itemLabelPluginServerParams.html +286 -0
  365. package/docs/variables/modelItemLabelPluginServerParams.html +286 -0
  366. package/docs/variables/modelRoomLabelPluginServerParams.html +286 -0
  367. package/libs/CSS3DRenderPlugin/Controller.d.ts +3 -2
  368. package/libs/CSS3DRenderPlugin/Controller.js +4 -3
  369. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +3 -1
  370. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +11 -11
  371. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.d.ts +1 -0
  372. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +68 -66
  373. package/libs/CruisePlugin/Controller.js +5 -3
  374. package/libs/CruisePlugin/index.js +8 -6
  375. package/libs/CurrentPanoImagePlugin/Controller.js +21 -18
  376. package/libs/CurrentPanoImagePlugin/index.js +4 -3
  377. package/libs/GuideLinePlugin/Controller.js +7 -5
  378. package/libs/GuideLinePlugin/GuideLineItem.js +5 -3
  379. package/libs/GuideLinePlugin/GuideLineModeItem.js +5 -3
  380. package/libs/GuideLinePlugin/index.js +10 -8
  381. package/libs/PanoSpatialTagPlugin/Plugin.js +6 -18
  382. package/libs/PanoTagPlugin/Components/Tag/index.js +70 -71
  383. package/libs/PanoTagPlugin/Components/TagContainer.js +32 -33
  384. package/libs/PanoTagPlugin/Components/TagItem.js +115 -116
  385. package/libs/PanoTagPlugin/controller/TagCache.d.ts +3 -3
  386. package/libs/PanoTagPlugin/controller/TagCache.js +14 -14
  387. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +6 -12
  388. package/libs/PanoTagPlugin/controller/TagComputer.js +168 -199
  389. package/libs/PanoTagPlugin/controller/TagRender.d.ts +5 -1
  390. package/libs/PanoTagPlugin/controller/TagRender.js +138 -117
  391. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +12 -6
  392. package/libs/PanoTagPlugin/controller/TagUtil.js +178 -152
  393. package/libs/PanoTagPlugin/controller/index.d.ts +2 -6
  394. package/libs/PanoTagPlugin/controller/index.js +140 -148
  395. package/libs/PanoTagPlugin/index.js +16 -13
  396. package/libs/PanoTagPlugin/tag.config.js +11 -3
  397. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +3 -2
  398. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +66 -20
  399. package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +7 -2
  400. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +8 -3
  401. package/libs/PanoTagPlugin/utils/addDebugPoints.js +1 -1
  402. package/libs/PanoTagPlugin/utils/index.d.ts +0 -2
  403. package/libs/PanoTagPlugin/utils/index.js +23 -31
  404. package/libs/PanoTagPlugin/utils/planeNormal.d.ts +1 -1
  405. package/libs/PanoTagPlugin/utils/tag/adaptConfig.d.ts +2 -0
  406. package/libs/PanoTagPlugin/utils/tag/adaptConfig.js +7 -0
  407. package/libs/base/BasePlugin.js +1 -1
  408. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -2
  409. package/libs/floorplan/utils/correctFiveState.d.ts +1 -1
  410. package/libs/floorplan/utils/correctFiveState.js +30 -29
  411. package/libs/index.d.ts +1 -0
  412. package/libs/index.js +120 -117
  413. package/libs/shared-utils/five/FiveDomEvents.d.ts +1 -3
  414. package/libs/shared-utils/five/FiveDomEvents.js +50 -56
  415. package/libs/shared-utils/five/adapt.d.ts +9 -0
  416. package/libs/shared-utils/five/adapt.js +16 -0
  417. package/libs/shared-utils/five/fiveModelLoad.d.ts +9 -0
  418. package/libs/shared-utils/five/fiveModelLoad.js +29 -0
  419. package/libs/shared-utils/five/mode.js +5 -5
  420. package/libs/shared-utils/getPxmm.d.ts +1 -1
  421. package/libs/shared-utils/getPxmm.js +1 -3
  422. package/libs/shared-utils/logger.js +1 -1
  423. package/libs/shared-utils/typescript/entries.d.ts +2 -0
  424. package/libs/shared-utils/typescript/entries.js +6 -0
  425. package/package.json +2 -6
  426. package/dist/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +0 -4
  427. package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +0 -4
  428. package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +0 -16
@@ -1,34 +1,44 @@
1
- var k = Object.defineProperty;
2
- var E = (b, f, t) => f in b ? k(b, f, { enumerable: !0, configurable: !0, writable: !0, value: t }) : b[f] = t;
3
- var P = (b, f, t) => (E(b, typeof f != "symbol" ? f + "" : f, t), t);
4
- var M = (b, f, t) => new Promise((e, o) => {
1
+ var A = Object.defineProperty;
2
+ var j = Object.getOwnPropertySymbols;
3
+ var V = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
4
+ var y = (c, d, t) => d in c ? A(c, d, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[d] = t, w = (c, d) => {
5
+ for (var t in d || (d = {}))
6
+ V.call(d, t) && y(c, t, d[t]);
7
+ if (j)
8
+ for (var t of j(d))
9
+ x.call(d, t) && y(c, t, d[t]);
10
+ return c;
11
+ };
12
+ var b = (c, d, t) => (y(c, typeof d != "symbol" ? d + "" : d, t), t);
13
+ var M = (c, d, t) => new Promise((e, o) => {
5
14
  var i = (r) => {
6
15
  try {
7
16
  a(t.next(r));
8
- } catch (s) {
9
- o(s);
17
+ } catch (n) {
18
+ o(n);
10
19
  }
11
- }, n = (r) => {
20
+ }, s = (r) => {
12
21
  try {
13
22
  a(t.throw(r));
14
- } catch (s) {
15
- o(s);
23
+ } catch (n) {
24
+ o(n);
16
25
  }
17
- }, a = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(i, n);
18
- a((t = t.apply(b, f)).next());
26
+ }, a = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(i, s);
27
+ a((t = t.apply(c, d)).next());
19
28
  });
20
- import { TagComputer as w } from "./TagComputer.js";
21
- import { Group as y, Quaternion as O, Vector3 as D, Matrix4 as g } from "three";
22
- import A from "../Components/TagContainer.js";
23
- import V from "../Components/Tag/index.js";
29
+ import { TagComputer as O } from "./TagComputer.js";
30
+ import { Group as R, Quaternion as I, Vector3 as D, Matrix4 as g } from "three";
31
+ import G from "../Components/TagContainer.js";
32
+ import F from "../Components/Tag/index.js";
33
+ import { CSS3DRenderPlugin as L } from "../../CSS3DRenderPlugin/index.js";
34
+ import { loadGLTF as W } from "../../shared-utils/three/GLTFLoader.js";
35
+ import { isMediaModelTag as S, isStickModelTag as $ } from "../utils/tag/tagCheck.js";
36
+ import { VideoPlane as k, ImagePlane as E } from "../utils/model/mediaPlane.js";
37
+ import { centerPoint as q } from "../../shared-utils/three/centerPoint.js";
24
38
  import { arrayPositionToVector3 as C } from "../../shared-utils/positionToVector3.js";
25
- import { centerPoint as x } from "../../shared-utils/three/centerPoint.js";
26
- import { isMediaModelTag as S, isStickModelTag as G } from "../utils/tag/tagCheck.js";
27
- import { CSS3DRenderPlugin as I } from "../../CSS3DRenderPlugin/index.js";
28
- import { loadGLTF as F } from "../../shared-utils/three/GLTFLoader.js";
29
- import { VideoPlane as R, ImagePlane as j } from "../utils/model/mediaPlane.js";
30
39
  import "../utils/tagPosition.js";
31
40
  import "../utils/checkRange.js";
41
+ import "../../shared-utils/five/mode.js";
32
42
  import "hammerjs";
33
43
  import "@realsee/five";
34
44
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
@@ -59,6 +69,8 @@ import "../../vendor/svelte/internal/index.js";
59
69
  import "../../shared-utils/device.js";
60
70
  import "../../shared-utils/five/FiveDomEvents.js";
61
71
  import "../../shared-utils/three/getObjectVisible.js";
72
+ import "../utils/tag/adaptConfig.js";
73
+ import "../../shared-utils/typescript/entries.js";
62
74
  import "../../shared-utils/five/getFloorIndex.js";
63
75
  import "../../shared-utils/safeObj.js";
64
76
  import "../../shared-utils/util.js";
@@ -142,52 +154,53 @@ import "../Components/Tag/CustomTag.js";
142
154
  import "../../CSS3DRenderPlugin/Controller.js";
143
155
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
144
156
  import "@realsee/five/gltf-loader";
145
- const L = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
146
- class ri extends w {
157
+ const B = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map();
158
+ class pi extends O {
147
159
  constructor(t) {
148
160
  super(t);
149
- P(this, "group", new y());
150
- P(this, "renderMap", /* @__PURE__ */ new Map());
151
- P(this, "imagePlaneGroup", new y());
152
- P(this, "gltfObjectGroup", new y());
161
+ b(this, "group", new R());
162
+ b(this, "renderMap", /* @__PURE__ */ new Map());
163
+ b(this, "imagePlaneGroup", new R());
164
+ b(this, "gltfObjectGroup", new R());
153
165
  /** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
154
- P(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
166
+ b(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
155
167
  /** 临时状态 */
156
- P(this, "temporaryState", { visible: !0 });
168
+ b(this, "temporaryState", { visible: !0 });
157
169
  /** 点标签 */
158
- P(this, "TagContainerSvelte");
170
+ b(this, "TagContainerSvelte");
159
171
  /** 加载外部模型 */
160
- P(this, "loadModel", (t) => M(this, null, function* () {
172
+ b(this, "loadModel", (t) => M(this, null, function* () {
161
173
  var a;
162
174
  const e = t.data.modelUrl;
163
175
  if (!e)
164
176
  return;
165
- const o = F(e).then((r) => {
166
- var l, m, h, p, u;
167
- const s = Object.assign(r.scene, {
177
+ t.loading = !0;
178
+ const o = W(e).then((r) => {
179
+ var m, h, f, p, P;
180
+ const n = Object.assign(r.scene, {
168
181
  customID: t.id,
169
182
  isTagModel: !0,
170
183
  removeEventListener: t.config.clickable === !1 ? () => {
171
- } : this.addObjectClickHandler(t, r.scene, (c) => {
172
- this.hooks.emit("click", { target: "TagModel", tag: t, event: c });
184
+ } : this.addObjectClickHandler(t, r.scene, (u) => {
185
+ this.hooks.emit("click", { target: "TagModel", tag: t, event: u });
173
186
  })
174
187
  });
175
- return s.visible = this.getCurrentVisibleState(t), new g().fromArray(t.matrix).decompose(s.position, s.quaternion, s.scale), s.updateWorldMatrix(!0, !0), s.visible = this.getVisibleByFiveMode(t), (h = (m = (l = this.config) == null ? void 0 : l.globalConfig) == null ? void 0 : m.modelConfig) != null && h.autoLookAtEnabled && ((u = (p = t.config) == null ? void 0 : p.modelConfig) != null && u.autoLookAtEnabled) && s.lookAt(this.five.camera.position.clone().setY(s.position.y)), s;
188
+ return n.visible = this.getCurrentVisibleState(t), new g().fromArray(t.matrix).decompose(n.position, n.quaternion, n.scale), n.updateWorldMatrix(!0, !0), n.visible = this.getVisible(t), (f = (h = (m = this.config) == null ? void 0 : m.globalConfig) == null ? void 0 : h.modelConfig) != null && f.autoLookAtEnabled && ((P = (p = t.config) == null ? void 0 : p.modelConfig) != null && P.autoLookAtEnabled) && n.lookAt(this.five.camera.position.clone().setY(n.position.y)), n;
176
189
  });
177
190
  t.model = { promise: o };
178
191
  const i = yield o;
179
- if (((a = t.model) == null ? void 0 : a.promise) !== o || !this.tags.includes(t))
192
+ if (t.loading = !1, ((a = t.model) == null ? void 0 : a.promise) !== o || !this.tags.includes(t))
180
193
  return;
181
194
  t.model.object = i;
182
- const n = this.gltfObjectGroup.children.find((r) => r.customID === t.id);
183
- if (n && (this.gltfObjectGroup.remove(n), n.removeEventListener()), this.updateRender3DDomTag(), S(t)) {
195
+ const s = this.gltfObjectGroup.children.find((r) => r.customID === t.id);
196
+ if (s && (this.gltfObjectGroup.remove(s), s.removeEventListener()), this.updateRender3DDomTag(), S(t)) {
184
197
  if (this.getRenderType(t) === "Mesh" && !t.mediaPlane) {
185
198
  const r = t.data.mediaPosition.map(C);
186
- t.mediaPlane = new j(t.data.mediaData[0].url, t.data.mediaPosition.map(C), {
199
+ t.mediaPlane = new E(t.data.mediaData[0].url, t.data.mediaPosition.map(C), {
187
200
  objectFit: t.data.objectFit
188
201
  });
189
- const s = new D().addVectors(r[0], r[2]).divideScalar(2);
190
- t.mediaPlane.position.copy(s), i.add(t.mediaPlane);
202
+ const n = new D().addVectors(r[0], r[2]).divideScalar(2);
203
+ t.mediaPlane.position.copy(n), i.add(t.mediaPlane);
191
204
  }
192
205
  this.getRenderType(t) !== "Mesh" && (i.updateTagCss3DObjectMatrix = () => this.updateTagCss3DObjectMatrix(t, i), i.updateTagCss3DObjectMatrix());
193
206
  }
@@ -219,34 +232,34 @@ class ri extends w {
219
232
  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();
220
233
  }
221
234
  updateRenderVideoPlane() {
222
- this.sort(this.filterImagePlane).filter((e) => {
235
+ this.filterImagePlane.filter((e) => {
223
236
  var o, i;
224
237
  return ((i = (o = e.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : i.type) === "Video";
225
238
  }).forEach((e) => {
226
- var l, m, h, p, u;
239
+ var m, h, f, p, P;
227
240
  const o = e.data.mediaData[0];
228
241
  if (!o)
229
242
  return;
230
243
  const { url: i } = o;
231
244
  if (!i)
232
245
  return;
233
- e.mediaPlane && !((m = (l = e.state) == null ? void 0 : l.visible) == null || m) && e.mediaPlane instanceof R && e.mediaPlane.pause();
234
- const n = e.position.map(C), a = this.getCurrentVisibleState(e), r = (() => !!(e.mediaPlane && !a))(), s = (() => !!(!e.mediaPlane && a))(), d = (() => !!(e.mediaPlane && e.mediaPlane.src !== i))();
235
- if ((r || d) && (e.mediaPlane && this.imagePlaneGroup.remove(e.mediaPlane), (h = e.mediaPlane) == null || h.dispose(), (p = e.mediaPlane) == null || p.removeFromParent(), e.mediaPlane = void 0), s || d) {
236
- const c = new R(i, n, {
246
+ e.mediaPlane && !((h = (m = e.state) == null ? void 0 : m.visible) == null || h) && e.mediaPlane instanceof k && e.mediaPlane.pause();
247
+ const s = e.position.map(C), a = this.getCurrentVisibleState(e), r = (() => !!(e.mediaPlane && !a))(), n = (() => !!(!e.mediaPlane && a))(), l = (() => !!(e.mediaPlane && e.mediaPlane.src !== i))();
248
+ if ((r || l) && (e.mediaPlane && this.imagePlaneGroup.remove(e.mediaPlane), (f = e.mediaPlane) == null || f.dispose(), (p = e.mediaPlane) == null || p.removeFromParent(), e.mediaPlane = void 0), n || l) {
249
+ const u = new k(i, s, {
237
250
  videoCoverSrc: o.videoCoverUrl,
238
251
  playButton: e.data.playIcon,
239
- paused: !((u = e.data.autoplayConfig) != null && u.autoplayVideo),
252
+ paused: !((P = e.data.autoplayConfig) != null && P.autoplayVideo),
240
253
  objectFit: e.data.objectFit,
241
- videoTextureMap: L,
242
- ImageTextureMap: B,
254
+ videoTextureMap: B,
255
+ ImageTextureMap: N,
243
256
  domEvents: this.domEvents
244
257
  });
245
- c.onVideoReady = (T) => {
246
- T.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: c.videoInstance }));
258
+ u.onVideoReady = (T) => {
259
+ T.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: u.videoInstance }));
247
260
  };
248
261
  const v = (T) => (this.five.on("renderFrame", T), () => this.five.off("renderFrame", T));
249
- c.initialRenderHooks(v), e.mediaPlane = c, this.imagePlaneGroup.add(e.mediaPlane);
262
+ u.initialRenderHooks(v), e.mediaPlane = u, this.imagePlaneGroup.add(e.mediaPlane);
250
263
  }
251
264
  });
252
265
  }
@@ -254,17 +267,17 @@ class ri extends w {
254
267
  * @description: 渲染图片贴片
255
268
  */
256
269
  updateRenderImagePlane() {
257
- this.sort(this.filterImagePlane).filter((e) => {
270
+ this.filterImagePlane.filter((e) => {
258
271
  var o, i;
259
272
  return ((i = (o = e.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : i.type) === "Image";
260
273
  }).forEach((e) => {
261
- var d, l;
274
+ var l, m;
262
275
  const { url: o } = e.data.mediaData[0];
263
276
  if (!o)
264
277
  return;
265
- const i = e.position.map(C), n = this.getCurrentVisibleState(e), a = (() => !!(e.mediaPlane && !n))(), r = (() => !!(!e.mediaPlane && n))(), s = (() => !!(e.mediaPlane && e.mediaPlane.src !== o))();
266
- (a || s) && (e.mediaPlane && this.imagePlaneGroup.remove(e.mediaPlane), (d = e.mediaPlane) == null || d.dispose(), (l = e.mediaPlane) == null || l.removeFromParent(), e.mediaPlane = void 0), (r || s) && (e.mediaPlane = new j(o, i, { objectFit: e.data.objectFit }), e.config.clickable !== !1 && this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (m) => {
267
- this.hooks.emit("click", { tag: e, target: "TagContent", event: m.origDomEvent });
278
+ const i = e.position.map(C), s = this.getCurrentVisibleState(e), a = (() => !!(e.mediaPlane && !s))(), r = (() => !!(!e.mediaPlane && s))(), n = (() => !!(e.mediaPlane && e.mediaPlane.src !== o))();
279
+ (a || n) && (e.mediaPlane && this.imagePlaneGroup.remove(e.mediaPlane), (l = e.mediaPlane) == null || l.dispose(), (m = e.mediaPlane) == null || m.removeFromParent(), e.mediaPlane = void 0), (r || n) && (e.mediaPlane = new E(o, i, { objectFit: e.data.objectFit }), e.config.clickable !== !1 && this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (h) => {
280
+ this.hooks.emit("click", { tag: e, target: "TagContent", event: h.origDomEvent });
268
281
  }), this.imagePlaneGroup.add(e.mediaPlane));
269
282
  });
270
283
  }
@@ -272,45 +285,45 @@ class ri extends w {
272
285
  * @description: 渲染3D贴片
273
286
  */
274
287
  updateRender3DDomTag() {
275
- this.sort([...this.filterCSS3DTag]).forEach((e) => {
276
- var o, i, n, a;
288
+ this.filterCSS3DTag.forEach((e) => {
289
+ var o, i, s;
277
290
  if (e.tag3DContentSvelte) {
278
- const { svelteApp: r, css3DInstance: s, initialNormal: d, currentNormal: l } = e.tag3DContentSvelte;
279
- if (r.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !d.equals(l)) {
280
- const m = new O().setFromUnitVectors(d, l);
281
- s.css3DObject.setRotationFromQuaternion(m);
291
+ const { svelteApp: a, css3DInstance: r, initialNormal: n, currentNormal: l } = e.tag3DContentSvelte;
292
+ if (a.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !n.equals(l)) {
293
+ const m = new I().setFromUnitVectors(n, l);
294
+ r.css3DObject.setRotationFromQuaternion(m);
282
295
  }
283
296
  return;
284
297
  } else {
285
298
  if (S(e) && !((o = e.model) != null && o.object) || ((i = e.state) == null ? void 0 : i.visible) === !1 || !this.state.visible || !this.state.enabled)
286
299
  return;
287
- if (this.css3DRenderPlugin || (this.css3DRenderPlugin = I(this.five)), e.stickType === "3DPoint" && !e.normal)
300
+ if (this.css3DRenderPlugin || (this.css3DRenderPlugin = L(this.five)), e.stickType === "3DPoint" && !e.normal)
288
301
  return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
289
- const r = this.getPositions(e);
290
- if (!r)
302
+ const a = this.getPositions(e);
303
+ if (!a)
291
304
  return;
292
- const s = this.getTagNormal(e);
293
- if (!s)
305
+ const r = this.getTagNormal(e);
306
+ if (!r)
294
307
  return;
295
- const d = this.getTagConfig(e), l = (n = d.tag3DConfig) != null ? n : {};
296
- if (this.getRenderType(e) === "BehindDom") {
308
+ const n = this.getTagConfig(e), l = w({ wrapperStyle: { zIndex: this.calculateTagZIndex(e).toString() } }, n.tag3DConfig);
309
+ if (this.getRenderType(e) === "BehindDom" || l.mode === "behind") {
297
310
  l.mode = "behind", l.container = document.createElement("div");
298
- const p = "black";
299
- l.container.style.backgroundColor = p, l.container.style.border = `3px solid ${p}`, this.css3DRenderPlugin.hooks.on("render", () => {
300
- var u;
301
- if (m.css3DObject.opacityMesh && d.clickable !== !1) {
302
- const c = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (v) => {
303
- this.hooks.emit("click", { event: v, target: "TagContent", tag: e });
311
+ const f = "black";
312
+ l.container.style.backgroundColor = f, l.container.style.border = `3px solid ${f}`, this.css3DRenderPlugin.hooks.on("render", () => {
313
+ var p;
314
+ if (m.css3DObject.opacityMesh && n.clickable !== !1) {
315
+ const P = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (u) => {
316
+ this.hooks.emit("click", { event: u, target: "TagContent", tag: e });
304
317
  });
305
- (u = this.store.css3DRenderDisposer.get(e.id)) == null || u.push(c);
318
+ (p = this.store.css3DRenderDisposer.get(e.id)) == null || p.push(P);
306
319
  }
307
320
  });
308
321
  }
309
- const m = this.css3DRenderPlugin.create3DDomContainer(r, l);
322
+ const m = this.css3DRenderPlugin.create3DDomContainer(a, l);
310
323
  if (!m)
311
324
  return;
312
325
  this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
313
- const h = new V({
326
+ const h = new F({
314
327
  target: m.container,
315
328
  props: {
316
329
  tag: e,
@@ -325,12 +338,12 @@ class ri extends w {
325
338
  svelteApp: h,
326
339
  domContainer: m,
327
340
  css3DInstance: m,
328
- initialNormal: s,
329
- currentNormal: s,
341
+ initialNormal: r,
342
+ currentNormal: r,
330
343
  dispose: () => {
331
344
  h.$destroy(), m.dispose();
332
345
  }
333
- }, S(e) && ((a = e.model) != null && a.object) && this.updateTagCss3DObjectMatrix(e, e.model.object);
346
+ }, S(e) && ((s = e.model) != null && s.object) && this.updateTagCss3DObjectMatrix(e, e.model.object);
334
347
  }
335
348
  }), this.clearUnusedPanelTag();
336
349
  }
@@ -344,8 +357,8 @@ class ri extends w {
344
357
  updateRenderModelTag() {
345
358
  const t = (i) => !this.enabledModelTagSet.has(i.customID), e = this.gltfObjectGroup.children.filter(t);
346
359
  e.forEach((i) => i.removeEventListener()), this.gltfObjectGroup.remove(...e), this.tags.filter((i) => i.stickType === "Model").forEach((i) => {
347
- var n;
348
- (n = i.model) == null || n.promise.then((a) => {
360
+ var s;
361
+ (s = i.model) == null || s.promise.then((a) => {
349
362
  a.visible = this.getCurrentVisibleState(i);
350
363
  });
351
364
  }), this.five.needsRender = !0;
@@ -361,50 +374,35 @@ class ri extends w {
361
374
  * @param model 模型
362
375
  */
363
376
  updateTagCss3DObjectMatrix(t, e) {
364
- var u, c, v;
365
- const o = (c = (u = t.config.tag3DConfig) == null ? void 0 : u.ratio) != null ? c : 216e-5, i = (v = t.tag3DContentSvelte) == null ? void 0 : v.css3DInstance.css3DObject;
377
+ var P, u, v;
378
+ const o = (u = (P = t.config.tag3DConfig) == null ? void 0 : P.ratio) != null ? u : 216e-5, i = (v = t.tag3DContentSvelte) == null ? void 0 : v.css3DInstance.css3DObject;
366
379
  if (!i)
367
380
  return;
368
- const n = S(t) ? t.data.mediaPosition : t.position;
369
- if (!n || n.length !== 4 || !Array.isArray(n[0]) || !Array.isArray(n[2]))
381
+ const s = S(t) ? t.data.mediaPosition : t.position;
382
+ if (!s || s.length !== 4 || !Array.isArray(s[0]) || !Array.isArray(s[2]))
370
383
  return;
371
384
  e.updateWorldMatrix(!1, !1);
372
- const a = e.matrixWorld, r = new D().fromArray(n[0]), s = new D().fromArray(n[2]), d = x(r, s).add(new D(0, 0, 5e-4)), l = new g().setPosition(d), m = new g().makeScale(o, o, o), h = new g().multiply(a).multiply(l).multiply(m);
373
- h.decompose(i.position, i.quaternion, i.scale);
385
+ const a = e.matrixWorld, r = new D().fromArray(s[0]), n = new D().fromArray(s[2]), l = q(r, n).add(new D(0, 0, 5e-4)), m = new g().setPosition(l), h = new g().makeScale(o, o, o), f = new g().multiply(a).multiply(m).multiply(h);
386
+ f.decompose(i.position, i.quaternion, i.scale);
374
387
  const p = i.opacityMesh;
375
- p && h.decompose(p.position, p.quaternion, p.scale);
388
+ p && f.decompose(p.position, p.quaternion, p.scale);
376
389
  }
377
390
  /** 添加模型标签 */
378
391
  addMediaModelTag(t) {
379
392
  return M(this, null, function* () {
380
- const e = t.filter(G).map((o) => this.loadModel(o));
381
- yield Promise.all(e), this.setModelMedialVisible(), this.updateRenderAllTags();
393
+ const e = t.filter($).map((o) => this.loadModel(o));
394
+ yield Promise.all(e), this.setVisible(), this.updateRenderAllTags();
382
395
  });
383
396
  }
384
397
  /**
385
398
  * @description: 渲染单个点的标签
386
399
  */
387
400
  updateRenderPointTag() {
388
- var e;
389
401
  const t = this.filterPointTag;
390
- if (this.setTagZIndex(t), this.setPointTagPosition(), this.TagContainerSvelte)
391
- this.TagContainerSvelte.$set({ tags: t, state: this.state, temporaryState: this.temporaryState });
392
- else {
393
- const o = (e = this.five.getElement()) == null ? void 0 : e.parentElement;
394
- if (!o)
395
- return console.error("updateRenderPlaneTag: tag2DContainer not found");
396
- this.TagContainerSvelte = new A({
397
- target: o,
398
- props: {
399
- hooks: this.hooks,
400
- tags: t,
401
- state: this.state,
402
- temporaryState: this.temporaryState,
403
- mediaStore: this.mediaStore,
404
- renderMap: this.renderMap
405
- }
406
- });
407
- }
402
+ this.setTagZIndex(t), this.updateDomView();
403
+ }
404
+ updatePointTagPosition() {
405
+ this.setPointTagPosition(), this.updateDomView();
408
406
  }
409
407
  updateTagContainerVisible() {
410
408
  var t;
@@ -413,8 +411,8 @@ class ri extends w {
413
411
  temporaryState: this.temporaryState,
414
412
  withAnimation: this.store.visibleWithAnimation
415
413
  }), this.filterCSS3DTag.forEach((e) => {
416
- var o, i, n, a, r;
417
- (a = (i = (o = e.tag3DContentSvelte) == null ? void 0 : o.css3DInstance) == null ? void 0 : i.css3DObject) == null || a.setVisible((this.state.visible && ((n = e.state) == null ? void 0 : n.visible)) !== !1), (r = e.tag3DContentSvelte) == null || r.svelteApp.$set({
414
+ var o, i, s, a, r;
415
+ (a = (i = (o = e.tag3DContentSvelte) == null ? void 0 : o.css3DInstance) == null ? void 0 : i.css3DObject) == null || a.setVisible((this.state.visible && ((s = e.state) == null ? void 0 : s.visible)) !== !1), (r = e.tag3DContentSvelte) == null || r.svelteApp.$set({
418
416
  state: this.state,
419
417
  temporaryState: this.temporaryState,
420
418
  withAnimation: this.store.visibleWithAnimation
@@ -439,7 +437,30 @@ class ri extends w {
439
437
  (!o || o.stickType === "2DPoint") && (e == null || e.forEach((i) => i == null ? void 0 : i()), this.store.css3DRenderDisposer.delete(t));
440
438
  }
441
439
  }
440
+ updateDomView(t = {}) {
441
+ var o, i;
442
+ const e = this.filterPointTag;
443
+ if (this.TagContainerSvelte)
444
+ this.TagContainerSvelte.$set({ tags: e, state: this.state, temporaryState: this.temporaryState });
445
+ else {
446
+ const s = (o = this.five.getElement()) == null ? void 0 : o.parentElement;
447
+ if (!s)
448
+ return console.error("updateRenderPlaneTag: tag2DContainer not found");
449
+ this.TagContainerSvelte = new G({
450
+ target: s,
451
+ props: {
452
+ hooks: this.hooks,
453
+ tags: e,
454
+ state: this.state,
455
+ temporaryState: this.temporaryState,
456
+ mediaStore: this.mediaStore,
457
+ renderMap: this.renderMap,
458
+ withAnimation: (i = t == null ? void 0 : t.withAnimation) != null ? i : this.store.visibleWithAnimation
459
+ }
460
+ });
461
+ }
462
+ }
442
463
  }
443
464
  export {
444
- ri as TagRender
465
+ pi as TagRender
445
466
  };
@@ -3,7 +3,9 @@ import * as THREE from 'three';
3
3
  import type { Tag, Tags, PointTagInstance, Point3DTag } from '../typings';
4
4
  import { TagCache } from './TagCache';
5
5
  import type { CSS3DRenderPluginExportType } from '../../CSS3DRenderPlugin';
6
- import type { Five } from '@realsee/five';
6
+ import { Five } from '@realsee/five';
7
+ import type { State as FiveState } from '@realsee/five';
8
+ import type { Mode } from '@realsee/five';
7
9
  import { FiveDomEvents } from '../../shared-utils/five/FiveDomEvents';
8
10
  export declare abstract class TagUtil extends TagCache {
9
11
  tags: TagInstance[];
@@ -21,7 +23,6 @@ export declare abstract class TagUtil extends TagCache {
21
23
  resizeObserverDisposerAdding: boolean;
22
24
  disposed: boolean;
23
25
  };
24
- protected get isPanorama(): boolean;
25
26
  protected domEvents: FiveDomEvents;
26
27
  private mouseInfo?;
27
28
  protected constructor(five: Five);
@@ -29,16 +30,17 @@ export declare abstract class TagUtil extends TagCache {
29
30
  /** 暂停当前标签内进行的所有多媒体 */
30
31
  pauseCurrentMedia(): void;
31
32
  /**
32
- * @description: 获取merge后的配置
33
+ * @description: 获取标签配置
33
34
  */
34
35
  getTagConfig(tag: Tag, params?: {
35
- useCache: boolean;
36
+ useCache?: boolean;
37
+ fiveMode?: Mode;
36
38
  }): TagConfig<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown">;
37
39
  /**
38
40
  * @description 获取标签当前状态
39
41
  */
40
42
  getCurrentVisibleState(tag: TagInstance): boolean;
41
- protected loadVideoFirstFrame(): void;
43
+ protected loadVideoFirstFrame: () => void;
42
44
  protected updateTagConfig(): void;
43
45
  protected can<T extends Tag>(action: 'show' | 'hide' | 'fold' | 'unfold', paramsTag: T): boolean;
44
46
  protected getRenderType(tag: TagInstance): 'Dom' | 'Mesh' | 'BehindDom';
@@ -49,7 +51,7 @@ export declare abstract class TagUtil extends TagCache {
49
51
  /**
50
52
  * @description: 获取距离
51
53
  */
52
- protected getDistance(tag: TagInstance, panoIndex?: number): number;
54
+ protected getDistance(tag: TagInstance, fiveState?: Partial<FiveState>): number;
53
55
  protected getPositions(tag: TagInstance): [THREE.Vector3, THREE.Vector3, THREE.Vector3, THREE.Vector3] | [import("../typings").ArrayPosition, import("../typings").ArrayPosition, import("../typings").ArrayPosition, import("../typings").ArrayPosition];
54
56
  protected preventWhenMouseDown: () => false | void;
55
57
  protected addObjectClickHandler(tag: TagInstance, object: THREE.Object3D | undefined, handler: (event: Event) => any): () => void;
@@ -64,4 +66,8 @@ export declare abstract class TagUtil extends TagCache {
64
66
  * @returns isDisposed; 已经销毁返回 true,否则返回 false
65
67
  */
66
68
  protected checkDisposed(): boolean;
69
+ /**
70
+ * @description: 获取merge后的配置
71
+ */
72
+ private calculateTagConfig;
67
73
  }