@realsee/dnalogel 2.18.5 → 2.19.0-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 (325) hide show
  1. package/dist/PanoMeasurePlugin/Controller/MixedController.d.ts +1 -4
  2. package/dist/PanoTagPlugin/controller/TagRender.d.ts +1 -1
  3. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +1 -1
  4. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +3 -0
  5. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +12 -2
  6. package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +3 -1
  7. package/dist/index.cjs.js +24 -24
  8. package/dist/index.js +5261 -5239
  9. package/dist/index.umd.js +25 -25
  10. package/docs/assets/search.js +1 -1
  11. package/docs/classes/CSS3DRender.html +30 -30
  12. package/docs/classes/CruisePluginController.html +25 -25
  13. package/docs/classes/GuideLineItem.GuideLineItem.html +19 -19
  14. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +30 -30
  15. package/docs/classes/Magnifier.html +19 -19
  16. package/docs/classes/ModelRoomLabelController.html +10 -10
  17. package/docs/classes/Object3DHelperController.html +24 -24
  18. package/docs/classes/PaintBrush.html +14 -14
  19. package/docs/classes/PanoMeasurePluginLine.html +22 -22
  20. package/docs/classes/PanoMeasurePluginModel.html +21 -21
  21. package/docs/classes/PanoMeasurePluginPoint.html +13 -13
  22. package/docs/classes/PanoMeasurePluginPolyline.html +25 -25
  23. package/docs/classes/PanoTagPluginController.html +55 -55
  24. package/docs/classes/Util.BetterTween.html +8 -8
  25. package/docs/classes/Util.FivePointSelector.html +11 -11
  26. package/docs/classes/Util.Interval.html +11 -11
  27. package/docs/classes/Util.Magnifier.html +16 -16
  28. package/docs/classes/Util.PointDomHelper.html +10 -10
  29. package/docs/classes/Util.PointHelper.html +10 -10
  30. package/docs/classes/Util.Rectangle.html +12 -12
  31. package/docs/enums/CameraMovementEffect.html +6 -6
  32. package/docs/enums/ContentType.html +27 -18
  33. package/docs/enums/DIRECTION.html +8 -8
  34. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
  35. package/docs/enums/DimensionType.html +6 -6
  36. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
  37. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
  38. package/docs/enums/PaintBrushTypeEnum.html +7 -7
  39. package/docs/enums/Rotation.html +7 -7
  40. package/docs/functions/CSS3DRenderPlugin.html +3 -3
  41. package/docs/functions/CameraMovementPlugin.html +3 -3
  42. package/docs/functions/CruisePlugin.html +3 -3
  43. package/docs/functions/GuideLinePlugin.html +4 -4
  44. package/docs/functions/ItemLabelPlugin.html +3 -3
  45. package/docs/functions/MapviewFloorplanPlugin.html +3 -3
  46. package/docs/functions/ModelChassisCompassPlugin.html +3 -3
  47. package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
  48. package/docs/functions/ModelFloorplanPlugin.html +3 -3
  49. package/docs/functions/ModelItemLabelPlugin.html +3 -3
  50. package/docs/functions/ModelRoomLabelPlugin.html +3 -3
  51. package/docs/functions/ModelTVVideoPlugin.html +3 -3
  52. package/docs/functions/ModelViewPlugin.html +3 -3
  53. package/docs/functions/Object3DHelperPlugin.html +3 -3
  54. package/docs/functions/PanoCompassPlugin.html +3 -3
  55. package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
  56. package/docs/functions/PanoDoorLabelPlugin.html +3 -3
  57. package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
  58. package/docs/functions/PanoMeasurePlugin.html +3 -3
  59. package/docs/functions/PanoRulerPlugin.html +3 -3
  60. package/docs/functions/PanoRulerProPlugin.html +3 -3
  61. package/docs/functions/PanoSpatialTagPlugin.html +3 -3
  62. package/docs/functions/PanoTagPlugin.html +3 -3
  63. package/docs/functions/PanoVideoPlugin.html +3 -3
  64. package/docs/functions/TopviewFloorplanPlugin.html +3 -3
  65. package/docs/functions/Util.getCoordsFromClient.html +4 -4
  66. package/docs/functions/Util.getCoordsFromElement.html +4 -4
  67. package/docs/functions/Util.getFrameTime.html +4 -4
  68. package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
  69. package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
  70. package/docs/functions/Util.isAbsoluteURL.html +4 -4
  71. package/docs/functions/Util.isModelLike.html +4 -4
  72. package/docs/functions/Util.isNil.html +4 -4
  73. package/docs/functions/Util.isPanoramaLike.html +4 -4
  74. package/docs/functions/Util.nextFrame.html +4 -4
  75. package/docs/functions/Util.notNil.html +4 -4
  76. package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
  77. package/docs/functions/Util.tweenProgress.html +4 -4
  78. package/docs/functions/Util.uuid.html +4 -4
  79. package/docs/functions/pluginFlag.html +4 -4
  80. package/docs/index.html +4 -4
  81. package/docs/interfaces/AddTagConfig.html +5 -5
  82. package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
  83. package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
  84. package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
  85. package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
  86. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
  87. package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
  88. package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
  89. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
  90. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
  91. package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
  92. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +6 -6
  93. package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
  94. package/docs/interfaces/EventMap.html +16 -16
  95. package/docs/interfaces/FloorplanBounding.html +7 -7
  96. package/docs/interfaces/FloorplanData.html +9 -9
  97. package/docs/interfaces/FloorplanEntrance.html +10 -10
  98. package/docs/interfaces/FloorplanExtraObject.html +9 -9
  99. package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
  100. package/docs/interfaces/FloorplanFloorData.html +8 -8
  101. package/docs/interfaces/FloorplanImagePosition.html +6 -6
  102. package/docs/interfaces/FloorplanObserver.html +8 -8
  103. package/docs/interfaces/FloorplanOutlineItem.html +8 -8
  104. package/docs/interfaces/FloorplanPosition.html +6 -6
  105. package/docs/interfaces/FloorplanRoomItem.html +12 -12
  106. package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
  107. package/docs/interfaces/FloorplanServerBounding.html +7 -7
  108. package/docs/interfaces/FloorplanServerComputedData.html +9 -9
  109. package/docs/interfaces/FloorplanServerData.html +6 -6
  110. package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
  111. package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
  112. package/docs/interfaces/FloorplanServerEntrance.html +10 -10
  113. package/docs/interfaces/FloorplanServerFloorData.html +8 -8
  114. package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
  115. package/docs/interfaces/FloorplanServerObserver.html +8 -8
  116. package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
  117. package/docs/interfaces/FloorplanServerPosition.html +6 -6
  118. package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
  119. package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
  120. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
  121. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
  122. package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
  123. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
  124. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
  125. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
  126. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
  127. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
  128. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
  129. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
  130. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
  131. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +6 -6
  132. package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
  133. package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
  134. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
  135. package/docs/interfaces/HelperOffset.html +7 -7
  136. package/docs/interfaces/ImagePlaneGroup.html +5 -5
  137. package/docs/interfaces/ItemLabelPluginData.html +5 -5
  138. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
  139. package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
  140. package/docs/interfaces/MinMax.html +6 -6
  141. package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
  142. package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
  143. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
  144. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
  145. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
  146. package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
  147. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
  148. package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
  149. package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
  150. package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
  151. package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
  152. package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
  153. package/docs/interfaces/ModelViewPluginExportType.html +10 -10
  154. package/docs/interfaces/Object3DHelperState.html +7 -7
  155. package/docs/interfaces/ObjectHelperControllers.html +8 -8
  156. package/docs/interfaces/PaintBrushAction.html +11 -11
  157. package/docs/interfaces/PaintBrushConfigs.html +11 -11
  158. package/docs/interfaces/PaintBrushState.html +9 -9
  159. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
  160. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
  161. package/docs/interfaces/PanoMeasureParameterType.html +13 -13
  162. package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
  163. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
  164. package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
  165. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
  166. package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
  167. package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
  168. package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
  169. package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
  170. package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
  171. package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
  172. package/docs/interfaces/PanoRulerProPluginState.html +7 -7
  173. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
  174. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
  175. package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
  176. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
  177. package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
  178. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
  179. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
  180. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
  181. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
  182. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
  183. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
  184. package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
  185. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
  186. package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
  187. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
  188. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
  189. package/docs/interfaces/Point.html +7 -7
  190. package/docs/interfaces/Room.html +8 -8
  191. package/docs/interfaces/RoomInfo.html +6 -6
  192. package/docs/interfaces/RoomLabel.html +13 -13
  193. package/docs/interfaces/RoomRules.html +4 -4
  194. package/docs/interfaces/Rooms.html +4 -4
  195. package/docs/interfaces/Scissor.html +8 -8
  196. package/docs/interfaces/State.html +7 -7
  197. package/docs/interfaces/TagCacheInterface.html +11 -11
  198. package/docs/interfaces/TagConfig.html +23 -11
  199. package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
  200. package/docs/interfaces/TagIconUrl.html +11 -11
  201. package/docs/interfaces/TagObjectGroup.html +5 -5
  202. package/docs/interfaces/TagStyle.html +5 -5
  203. package/docs/interfaces/Tags.html +22 -10
  204. package/docs/interfaces/TemporaryState.html +5 -5
  205. package/docs/interfaces/Util.MagnifierParameter.html +10 -10
  206. package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
  207. package/docs/modules/CruisePluginTypes.html +4 -4
  208. package/docs/modules/GuideLineItem.html +4 -4
  209. package/docs/modules/GuideLineModeItem.html +4 -4
  210. package/docs/modules/GuideLinePluginType.html +4 -4
  211. package/docs/modules/PanoVideoPluginType.html +4 -4
  212. package/docs/modules/Util.html +4 -4
  213. package/docs/modules.html +4 -4
  214. package/docs/types/ArrayPosition.html +4 -4
  215. package/docs/types/AudioAppearance.html +4 -4
  216. package/docs/types/AudioTagTypeConfigKey.html +4 -4
  217. package/docs/types/CSS3DRenderExportType.html +4 -4
  218. package/docs/types/CSS3DRenderPluginExportType.html +4 -4
  219. package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
  220. package/docs/types/ClassFunctionParameters.html +4 -4
  221. package/docs/types/Color.html +4 -4
  222. package/docs/types/ContentTypeConfigKey.html +4 -4
  223. package/docs/types/ContentTypeConfigKeySplit.html +4 -4
  224. package/docs/types/ContentTypeMap.html +5 -5
  225. package/docs/types/Create3DDomContainerReturnType.html +4 -4
  226. package/docs/types/Create3DElementReturnType.html +4 -4
  227. package/docs/types/CruisePluginExportType.html +4 -4
  228. package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
  229. package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
  230. package/docs/types/Direction-1.html +4 -4
  231. package/docs/types/Direction4.html +4 -4
  232. package/docs/types/ElementRenderer.html +4 -4
  233. package/docs/types/FloorplanRuleLabels.html +4 -4
  234. package/docs/types/FloorplanServerRuleLabels.html +4 -4
  235. package/docs/types/GuideLinePluginExportType.html +4 -4
  236. package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
  237. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
  238. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
  239. package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
  240. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
  241. package/docs/types/GuideLinePluginType.PathItem.html +4 -4
  242. package/docs/types/GuideLinePluginType.PluginData.html +4 -4
  243. package/docs/types/HelperEventMap.html +4 -4
  244. package/docs/types/LoadTagConfig.html +4 -4
  245. package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
  246. package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
  247. package/docs/types/MediaData.html +4 -4
  248. package/docs/types/MediaStore.html +4 -4
  249. package/docs/types/ModelElement.html +4 -4
  250. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
  251. package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
  252. package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
  253. package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
  254. package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
  255. package/docs/types/MoveArgs.html +4 -4
  256. package/docs/types/MoveOpts.html +4 -4
  257. package/docs/types/Object3DHelperEventMap.html +4 -4
  258. package/docs/types/ObjectFit.html +4 -4
  259. package/docs/types/PaintBrushEventMap.html +4 -4
  260. package/docs/types/PanoCompassPluginData.html +4 -4
  261. package/docs/types/PanoCompassPluginExportType.html +4 -4
  262. package/docs/types/PanoCompassPluginParameterType.html +4 -4
  263. package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
  264. package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
  265. package/docs/types/PanoIndex.html +4 -4
  266. package/docs/types/PanoMeasurePluginEvent.html +4 -4
  267. package/docs/types/PanoMeasureReturnType.html +4 -4
  268. package/docs/types/PanoSpatialTagPluginId.html +4 -4
  269. package/docs/types/PanoTagPluginExportInterface.html +4 -4
  270. package/docs/types/PanoTagPluginParamsInterface.html +4 -4
  271. package/docs/types/PanoVideoPluginParameterType.html +4 -4
  272. package/docs/types/PanoVideoPluginReturnType.html +4 -4
  273. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
  274. package/docs/types/PlaneTag.html +4 -4
  275. package/docs/types/PlaneTagElement.html +4 -4
  276. package/docs/types/Point2DElement.html +4 -4
  277. package/docs/types/Point2DTag.html +4 -4
  278. package/docs/types/Point3DElement.html +4 -4
  279. package/docs/types/Point3DTag.html +4 -4
  280. package/docs/types/PointTag.html +4 -4
  281. package/docs/types/PointTagElement.html +4 -4
  282. package/docs/types/Position.html +4 -4
  283. package/docs/types/RotateArgs.html +4 -4
  284. package/docs/types/RotateOpts.html +4 -4
  285. package/docs/types/RuleLabelsKey.html +4 -4
  286. package/docs/types/RuleLabelsValue.html +4 -4
  287. package/docs/types/StickType.html +4 -4
  288. package/docs/types/Tag.html +4 -4
  289. package/docs/types/Tag2D.html +4 -4
  290. package/docs/types/Tag3D.html +4 -4
  291. package/docs/types/TagContentType.html +4 -4
  292. package/docs/types/TagDimensionType.html +4 -4
  293. package/docs/types/TagElement.html +4 -4
  294. package/docs/types/TagEvents.html +4 -4
  295. package/docs/types/TagGLTFObject.html +4 -4
  296. package/docs/types/TagHooks.html +4 -4
  297. package/docs/types/TagIconSize.html +4 -4
  298. package/docs/types/TagId.html +4 -4
  299. package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
  300. package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
  301. package/docs/types/WorkCode.html +4 -4
  302. package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
  303. package/docs/variables/PLUGIN.html +4 -4
  304. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
  305. package/docs/variables/ROOM_TYPE_MAP.html +4 -4
  306. package/docs/variables/itemLabelPluginServerParams.html +4 -4
  307. package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
  308. package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
  309. package/libs/PanoMeasurePlugin/Controller/MixedController.d.ts +1 -4
  310. package/libs/PanoMeasurePlugin/Controller/MixedController.js +35 -39
  311. package/libs/PanoTagPlugin/controller/TagComputer.js +9 -9
  312. package/libs/PanoTagPlugin/controller/TagRender.d.ts +1 -1
  313. package/libs/PanoTagPlugin/controller/TagRender.js +97 -93
  314. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +1 -1
  315. package/libs/PanoTagPlugin/controller/TagUtil.js +17 -17
  316. package/libs/PanoTagPlugin/controller/index.js +121 -103
  317. package/libs/PanoTagPlugin/index.js +12 -10
  318. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +3 -0
  319. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +12 -2
  320. package/libs/PanoTagPlugin/typings/tag/TagData.js +1 -1
  321. package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +3 -1
  322. package/libs/PanoTagPlugin/utils/tag/tagCheck.js +13 -5
  323. package/libs/base/BasePlugin.js +1 -1
  324. package/libs/shared-utils/logger.js +1 -1
  325. package/package.json +1 -1
@@ -6,8 +6,8 @@ import * as C from "three";
6
6
  import { DefaultConfig as P } from "../tag.config.js";
7
7
  import { anyPositionToVector3 as w, arrayPositionToVector3 as h } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
8
8
  import { planeNormal as p } from "../utils/planeNormal.js";
9
- import { tagPosition as E, getTagPosition as k } from "../utils/tagPosition.js";
10
- import { normalPositionToPositions as M } from "../utils/normalPositionToPositions.js";
9
+ import { tagPosition as E, getTagPosition as M } from "../utils/tagPosition.js";
10
+ import { normalPositionToPositions as k } from "../utils/normalPositionToPositions.js";
11
11
  import { TagCache as b } from "./TagCache.js";
12
12
  import { writable as I } from "../../vendor/svelte/store/index.js";
13
13
  import { isIOSWX as A } from "../../shared-utils/device.js";
@@ -97,12 +97,12 @@ class De extends b {
97
97
  * TODO: 缓存
98
98
  */
99
99
  getTagConfig(e) {
100
- var o, a;
100
+ var o, d;
101
101
  if (!e)
102
102
  return (o = this.config.globalConfig) != null ? o : {};
103
103
  const i = {};
104
- this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((d) => {
105
- const r = d;
104
+ this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((a) => {
105
+ const r = a;
106
106
  if (i[r])
107
107
  return;
108
108
  const f = r.split("-");
@@ -123,7 +123,7 @@ class De extends b {
123
123
  }
124
124
  });
125
125
  const t = T({}, this.config.globalConfig, ...Object.values(i), e.config);
126
- return typeof t.unfoldedConfig == "object" && (t.unfoldedConfig.disableFold && (t.unfoldedConfig = { keep: "unfolded" }), t.unfoldedConfig.disableUnfold && (t.unfoldedConfig = { keep: "folded" }), t.unfoldedConfig.keep && (t.unfoldedConfig = { keep: t.unfoldedConfig.keep })), typeof t.visibleConfig == "object" && t.visibleConfig.keep && (t.visibleConfig = { keep: t.visibleConfig.keep, visibleFiveMode: (a = t.visibleConfig) == null ? void 0 : a.visibleFiveMode }), t;
126
+ return typeof t.unfoldedConfig == "object" && (t.unfoldedConfig.disableFold && (t.unfoldedConfig = { keep: "unfolded" }), t.unfoldedConfig.disableUnfold && (t.unfoldedConfig = { keep: "folded" }), t.unfoldedConfig.keep && (t.unfoldedConfig = { keep: t.unfoldedConfig.keep })), typeof t.visibleConfig == "object" && t.visibleConfig.keep && (t.visibleConfig = { keep: t.visibleConfig.keep, visibleFiveMode: (d = t.visibleConfig) == null ? void 0 : d.visibleFiveMode }), t;
127
127
  }
128
128
  loadVideoFirstFrame() {
129
129
  A && this.hooks.emit("loadVideoFirstFrame");
@@ -175,7 +175,7 @@ class De extends b {
175
175
  * @description: 获取角度
176
176
  */
177
177
  getAngle(e, i) {
178
- var a, d;
178
+ var d, a;
179
179
  const t = i != null ? i : this.five.getCurrentState().panoIndex;
180
180
  if (t === void 0)
181
181
  throw new Error(`getDistance(): fivePanoIndex is ${t}`);
@@ -183,7 +183,7 @@ class De extends b {
183
183
  if (o.angle !== void 0)
184
184
  return o.angle;
185
185
  {
186
- const r = (d = (a = this.five.work) == null ? void 0 : a.observers[t]) == null ? void 0 : d.position;
186
+ const r = (a = (d = this.five.work) == null ? void 0 : d.observers[t]) == null ? void 0 : a.position;
187
187
  if (r === void 0)
188
188
  throw new Error(`getAngleRange(): observerPosition is ${r}`);
189
189
  const f = (() => e.stickType === "3DPoint" ? w(e.normal) : p(e.position))();
@@ -200,7 +200,7 @@ class De extends b {
200
200
  * @description: 获取距离
201
201
  */
202
202
  getDistance(e, i) {
203
- var a, d;
203
+ var d, a;
204
204
  const t = i != null ? i : this.five.getCurrentState().panoIndex;
205
205
  if (t === void 0)
206
206
  throw new Error(`getDistance(): fivePanoIndex is ${t}`);
@@ -208,10 +208,10 @@ class De extends b {
208
208
  if (o.distance !== void 0)
209
209
  return o.distance;
210
210
  {
211
- const r = (d = (a = this.five.work) == null ? void 0 : a.observers[t]) == null ? void 0 : d.position;
211
+ const r = (a = (d = this.five.work) == null ? void 0 : d.observers[t]) == null ? void 0 : a.position;
212
212
  if (r === void 0)
213
213
  throw new Error(`getDistance(): observerPosition is ${r}`);
214
- const f = k(e);
214
+ const f = M(e);
215
215
  if (!f)
216
216
  return -1;
217
217
  const s = r.distanceTo(f);
@@ -224,7 +224,7 @@ class De extends b {
224
224
  if (g(e))
225
225
  return e.data.mediaPosition;
226
226
  const i = e;
227
- return M(
227
+ return k(
228
228
  this.five.camera.position,
229
229
  h(i.position),
230
230
  h(i.normal)
@@ -234,7 +234,7 @@ class De extends b {
234
234
  if (!i || !this.domEvents)
235
235
  return () => {
236
236
  };
237
- const o = () => !(!e.state.visible || !this.state.visible || g(e) && !e.mediaVisible), a = (s) => {
237
+ const o = () => !(!e.state.visible || !this.state.visible || g(e) && !e.mediaVisible), d = (s) => {
238
238
  if (!o()) {
239
239
  this.mouseInfo = void 0;
240
240
  return;
@@ -246,7 +246,7 @@ class De extends b {
246
246
  isDown: !0,
247
247
  mouseDownTimestamp: Date.now()
248
248
  };
249
- }, d = (s) => {
249
+ }, a = (s) => {
250
250
  if (!o()) {
251
251
  this.mouseInfo = void 0;
252
252
  return;
@@ -273,8 +273,8 @@ class De extends b {
273
273
  const n = s.origDomEvent;
274
274
  this.mouseInfo && (this.mouseInfo.isDown && this.mouseInfo.x === Math.floor(n.changedTouches[n.changedTouches.length - 1].clientX) && this.mouseInfo.y === Math.floor(n.changedTouches[n.changedTouches.length - 1].clientY) && Date.now() - this.mouseInfo.mouseDownTimestamp < 400 && t(n), this.mouseInfo = void 0);
275
275
  };
276
- return this.domEvents.addEventListener(i, "mousedown", a, !1), this.domEvents.addEventListener(i, "mouseup", d, !1), this.domEvents.addEventListener(i, "touchstart", r, !1), this.domEvents.addEventListener(i, "touchend", f, !1), () => {
277
- this.domEvents && (this.mouseInfo = void 0, this.domEvents.removeEventListener(i, "mousedown", a), this.domEvents.removeEventListener(i, "mouseup", d), this.domEvents.removeEventListener(i, "touchstart", r), this.domEvents.removeEventListener(i, "touchend", f));
276
+ return this.domEvents.addEventListener(i, "mousedown", d, !1), this.domEvents.addEventListener(i, "mouseup", a, !1), this.domEvents.addEventListener(i, "touchstart", r, !1), this.domEvents.addEventListener(i, "touchend", f, !1), () => {
277
+ this.domEvents && (this.mouseInfo = void 0, this.domEvents.removeEventListener(i, "mousedown", d), this.domEvents.removeEventListener(i, "mouseup", a), this.domEvents.removeEventListener(i, "touchstart", r), this.domEvents.removeEventListener(i, "touchend", f));
278
278
  };
279
279
  }
280
280
  getTagNormal(e) {
@@ -307,7 +307,7 @@ class De extends b {
307
307
  return this.tags.filter((e) => e.stickType === "Model");
308
308
  }
309
309
  get filterCSS3DTag() {
310
- return this.tags.filter((i) => i.stickType === "3DPoint" || i.stickType === "Plane" || i.stickType === "Model").filter((i) => {
310
+ return this.tags.filter((i) => i.stickType === "3DPoint" || i.stickType === "Plane" || i.stickType === "Model" && i.contentType === "MediaModel").filter((i) => {
311
311
  const t = this.getRenderType(i);
312
312
  return t === "BehindDom" || t === "Dom";
313
313
  });
@@ -1,72 +1,73 @@
1
- var S = Object.defineProperty, F = Object.defineProperties;
2
- var P = Object.getOwnPropertyDescriptors;
3
- var b = Object.getOwnPropertySymbols;
4
- var M = Object.prototype.hasOwnProperty, U = Object.prototype.propertyIsEnumerable;
5
- var u = (d, a, e) => a in d ? S(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, l = (d, a) => {
1
+ var E = Object.defineProperty, F = Object.defineProperties;
2
+ var w = Object.getOwnPropertyDescriptors;
3
+ var C = Object.getOwnPropertySymbols;
4
+ var U = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
5
+ var v = (h, a, e) => a in h ? E(h, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[a] = e, l = (h, a) => {
6
6
  for (var e in a || (a = {}))
7
- M.call(a, e) && u(d, e, a[e]);
8
- if (b)
9
- for (var e of b(a))
10
- U.call(a, e) && u(d, e, a[e]);
11
- return d;
12
- }, m = (d, a) => F(d, P(a));
13
- var c = (d, a, e) => (u(d, typeof a != "symbol" ? a + "" : a, e), e);
14
- var f = (d, a, e) => new Promise((t, i) => {
15
- var s = (n) => {
7
+ U.call(a, e) && v(h, e, a[e]);
8
+ if (C)
9
+ for (var e of C(a))
10
+ I.call(a, e) && v(h, e, a[e]);
11
+ return h;
12
+ }, u = (h, a) => F(h, w(a));
13
+ var g = (h, a, e) => (v(h, typeof a != "symbol" ? a + "" : a, e), e);
14
+ var f = (h, a, e) => new Promise((t, i) => {
15
+ var s = (r) => {
16
16
  try {
17
- r(e.next(n));
18
- } catch (h) {
19
- i(h);
17
+ n(e.next(r));
18
+ } catch (d) {
19
+ i(d);
20
20
  }
21
- }, o = (n) => {
21
+ }, o = (r) => {
22
22
  try {
23
- r(e.throw(n));
24
- } catch (h) {
25
- i(h);
23
+ n(e.throw(r));
24
+ } catch (d) {
25
+ i(d);
26
26
  }
27
- }, r = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(s, o);
28
- r((e = e.apply(d, a)).next());
27
+ }, n = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(s, o);
28
+ n((e = e.apply(h, a)).next());
29
29
  });
30
- import { Subscribe as E } from "@realsee/five";
30
+ import * as b from "three";
31
+ import { Subscribe as B } from "@realsee/five";
31
32
  import { objectAssignDeepExports as p } from "../../vendor/object-assign-deep/objectAssignDeep.js";
32
- import { arrayPositionToVector3 as T } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
33
- import { addDebugPoints as w } from "../utils/addDebugPoints.js";
34
- import "three";
35
- import { isMediaModelTag as C } from "../utils/tag/tagCheck.js";
36
- import { waitFiveModelLoaded as I } from "../utils/actionAfterFiveModelLoad.js";
37
- import { debounce as A } from "../utils/debounce.js";
38
- import { throttle as B } from "../utils/throttle.js";
39
- import { resizeObserver as y } from "../utils/resizeObserver.js";
40
- import R from "../utils/tag/format.js";
41
- import { generateBlankAudio as O, AudioNamespace as _ } from "../../shared-utils/audio.js";
42
- import { TagRender as k } from "./TagRender.js";
43
- import { uuid as L } from "../../shared-utils/uuid.js";
33
+ import { arrayPositionToVector3 as A } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
34
+ import { addDebugPoints as R } from "../utils/addDebugPoints.js";
35
+ import { isMediaModelTag as y, isModelTag as O } from "../utils/tag/tagCheck.js";
36
+ import { waitFiveModelLoaded as _ } from "../utils/actionAfterFiveModelLoad.js";
37
+ import { debounce as D } from "../utils/debounce.js";
38
+ import { throttle as k } from "../utils/throttle.js";
39
+ import { resizeObserver as S } from "../utils/resizeObserver.js";
40
+ import L from "../utils/tag/format.js";
41
+ import { generateBlankAudio as G, AudioNamespace as V } from "../../shared-utils/audio.js";
42
+ import { TagRender as N } from "./TagRender.js";
43
+ import { uuid as z } from "../../shared-utils/uuid.js";
44
+ import "hammerjs";
45
+ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
46
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
47
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
48
+ import { tweenProgress as x } from "../../shared-utils/animationFrame/BetterTween.js";
44
49
  import "./TagComputer.js";
45
50
  import "../utils/tagPosition.js";
46
51
  import "../../shared-utils/three/centerPoint.js";
47
52
  import "../utils/checkRange.js";
48
- import "hammerjs";
49
- import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
50
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
53
+ import "../../shared-utils/isNil.js";
54
+ import "./TagUtil.js";
55
+ import "../tag.config.js";
56
+ import "../utils/planeNormal.js";
57
+ import "../utils/normalPositionToPositions.js";
58
+ import "./TagCache.js";
59
+ import "../../base/BasePlugin.js";
60
+ import "../../shared-utils/Subscribe.js";
61
+ import "../../shared-utils/isAbsoluteURL.js";
51
62
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
52
63
  import "three/examples/jsm/renderers/CSS3DRenderer";
53
64
  import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
54
65
  import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
55
66
  import "../../CSS3DRenderPlugin/utils/even.js";
56
- import "../../shared-utils/Subscribe.js";
57
67
  import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
58
68
  import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
59
69
  import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
60
70
  import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
61
- import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
62
- import "../../shared-utils/isNil.js";
63
- import "./TagUtil.js";
64
- import "../tag.config.js";
65
- import "../utils/planeNormal.js";
66
- import "../utils/normalPositionToPositions.js";
67
- import "./TagCache.js";
68
- import "../../base/BasePlugin.js";
69
- import "../../shared-utils/isAbsoluteURL.js";
70
71
  import "../../vendor/svelte/store/index.js";
71
72
  import "../../vendor/svelte/internal/index.js";
72
73
  import "../../shared-utils/device.js";
@@ -156,35 +157,36 @@ import "../../CSS3DRenderPlugin/Controller.js";
156
157
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
157
158
  import "../../shared-utils/three/GLTFLoader.js";
158
159
  import "@realsee/five/gltf-loader";
159
- const D = "Dnalogel-PanoTagPlugin", ri = (d) => `${D}--${d}`;
160
- class ai extends k {
160
+ import "../../shared-utils/animationFrame/index.js";
161
+ const M = "Dnalogel-PanoTagPlugin", pi = (h) => `${M}--${h}`;
162
+ class ci extends N {
161
163
  constructor(e, t) {
162
164
  super(e);
163
165
  /** state */
164
- c(this, "state", { enabled: !0, visible: !0 });
166
+ g(this, "state", { enabled: !0, visible: !0 });
165
167
  /** 插件参数 */
166
- c(this, "params");
168
+ g(this, "params");
167
169
  /** debug */
168
- c(this, "debug");
170
+ g(this, "debug");
169
171
  /** 更改 tag 模型 */
170
- c(this, "changeTagModel", (e, t) => f(this, null, function* () {
172
+ g(this, "changeTagModel", (e, t) => f(this, null, function* () {
171
173
  e.data = p({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
172
174
  }));
173
- c(this, "handleFiveInitAnimationEnded", () => {
175
+ g(this, "handleFiveInitAnimationEnded", () => {
174
176
  const e = this.five.getCurrentState().mode;
175
177
  this.tags.forEach((t) => {
176
- C(t) && e === "Panorama" && this.changeTagMode(t, "front"), t.state.visible = this.getVisible(t);
178
+ y(t) && e === "Panorama" && this.changeTagMode(t, "front"), t.state.visible = this.getVisible(t);
177
179
  }), this.updateRenderAllTags();
178
180
  });
179
181
  /** 楼层切换时,需要更新标签可见性 */
180
- c(this, "handleFiveModelShownFloorChange", () => {
182
+ g(this, "handleFiveModelShownFloorChange", () => {
181
183
  this.tags.forEach((e) => {
182
184
  var i, s;
183
185
  const t = this.getTagConfig(e).visibleConfig;
184
186
  typeof t == "object" && ((i = t.visibleFiveMode) != null && i.includes("Floorplan") || (s = t.visibleFiveMode) != null && s.includes("Mapview")) && (e.state.visible = this.getVisibleByFiveMode(e));
185
187
  }), this.updateRenderAllTags();
186
188
  });
187
- this.params = l({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, O(1, { namespace: _.PlayAudio });
189
+ this.params = p({}, { debug: !1, config: this.config }, l({}, t)), this.debug = this.params.debug, this.config = this.params.config, G(1, { namespace: V.PlayAudio });
188
190
  try {
189
191
  const i = window;
190
192
  Array.isArray(i.__PANOTAGPLUGIN_DEBUG_LIST__) || (i.__PANOTAGPLUGIN_DEBUG_LIST__ = []), i.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), i.__PANOTAGPLUGIN_DEBUG__ = this;
@@ -197,16 +199,16 @@ class ai extends k {
197
199
  load(e, t) {
198
200
  return f(this, null, function* () {
199
201
  var s, o;
200
- this.clearTags(), console.info(D, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = p({}, this.config, {
202
+ this.clearTags(), console.info(M, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = p({}, this.config, {
201
203
  globalConfig: (s = e.globalConfig) != null ? s : {},
202
204
  contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
203
205
  });
204
206
  const i = yield this.addTag(e.tagList, t);
205
207
  if (this.debug)
206
208
  try {
207
- w(this.five, this.tags);
208
- } catch (r) {
209
- console.error(r);
209
+ R(this.five, this.tags);
210
+ } catch (n) {
211
+ console.error(n);
210
212
  }
211
213
  return i;
212
214
  });
@@ -217,17 +219,17 @@ class ai extends k {
217
219
  addTag(e, t) {
218
220
  return f(this, null, function* () {
219
221
  const s = (Array.isArray(e) ? e : [e]).map((o) => {
220
- var h;
221
- const r = this.getTagConfig(o);
222
- return m(l({}, o), {
223
- id: (h = o.id) != null ? h : L(),
224
- data: p({}, r.initialData, o.data),
222
+ var d;
223
+ const n = this.getTagConfig(o);
224
+ return u(l({}, o), {
225
+ id: (d = o.id) != null ? d : z(),
226
+ data: p({}, n.initialData, o.data),
225
227
  state: l({
226
228
  visible: void 0,
227
229
  unfolded: !this.can("fold", o)
228
- }, r.initialState),
229
- hooks: new E(),
230
- mergedConfig: r,
230
+ }, n.initialState),
231
+ hooks: new B(),
232
+ mergedConfig: n,
231
233
  unfold: () => this.changeUnfoldedById(o.id, !0),
232
234
  fold: () => this.changeUnfoldedById(o.id, !1),
233
235
  enable: () => this.changeEnabledById(o.id, !0),
@@ -235,9 +237,9 @@ class ai extends k {
235
237
  destroy: () => this.destroyTagById(o.id)
236
238
  });
237
239
  }).filter((o) => o.position);
238
- return s.forEach(R), this.tags.push(...s), I(this.five).then(() => f(this, null, function* () {
239
- var o, r, n;
240
- this.store.eventListenerDisposer && ((r = (o = this.store).eventListenerDisposer) == null || r.call(o)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (n = t == null ? void 0 : t.withAnimation) != null ? n : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags(), yield this.addMediaModelTag(s);
240
+ return s.forEach(L), this.tags.push(...s), _(this.five).then(() => f(this, null, function* () {
241
+ var o, n, r;
242
+ this.store.eventListenerDisposer && ((n = (o = this.store).eventListenerDisposer) == null || n.call(o)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (r = t == null ? void 0 : t.withAnimation) != null ? r : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags(), yield this.addMediaModelTag(s);
241
243
  }));
242
244
  });
243
245
  }
@@ -297,22 +299,22 @@ class ai extends k {
297
299
  * @description: 销毁
298
300
  */
299
301
  dispose() {
300
- var e, t, i, s, o, r;
301
- this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filterCSS3DTag.forEach((n) => {
302
- var h;
303
- return (h = n.tag3DContentSvelte) == null ? void 0 : h.svelteApp.$destroy();
304
- }), 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");
302
+ var e, t, i, s, o, n;
303
+ this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filterCSS3DTag.forEach((r) => {
304
+ var d;
305
+ return (d = r.tag3DContentSvelte) == null ? void 0 : d.svelteApp.$destroy();
306
+ }), this.tags = [], (t = this.store.disposers) == null || t.forEach((r) => r == null ? void 0 : r()), this.store.disposers = [], (s = (i = this.store).eventListenerDisposer) == null || s.call(i), this.store.eventListenerDisposer = void 0, (n = (o = this.store).resizeObserverDisposer) == null || n.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");
305
307
  }
306
308
  changeUnfoldedById(e, t) {
307
- var r;
309
+ var n;
308
310
  const i = this.getTagById(e);
309
311
  if (!i)
310
312
  return;
311
313
  const s = this.can("fold", i), o = this.can("unfold", i);
312
314
  if (s && o) {
313
315
  i.state.unfolded = t;
314
- const n = this.filterPointTag;
315
- (r = this.TagContainerSvelte) == null || r.$set({ tags: n });
316
+ const r = this.filterPointTag;
317
+ (n = this.TagContainerSvelte) == null || n.$set({ tags: r });
316
318
  } else
317
319
  console.warn(`tag ${e} cannot be ${t ? "unfolded" : "folded"}`);
318
320
  }
@@ -325,7 +327,7 @@ class ai extends k {
325
327
  */
326
328
  changeTagNormalById(e, t) {
327
329
  const i = this.getTagById(e);
328
- i && i.tag3DContentSvelte && (i.tag3DContentSvelte.currentNormal = T(t));
330
+ i && i.tag3DContentSvelte && (i.tag3DContentSvelte.currentNormal = A(t));
329
331
  }
330
332
  /**
331
333
  * @description: 改变data
@@ -345,7 +347,7 @@ class ai extends k {
345
347
  */
346
348
  changeTagById(e, t, i = !0) {
347
349
  const s = this.getTagById(e);
348
- t && (i ? p(s, t) : Object.assign(s, t), s != null && s.tag3DContentSvelte && (t != null && t.normal) && (s.tag3DContentSvelte.currentNormal = T(t.normal)), this.updateRenderAllTags(), this.clearUnusedPanelTag());
350
+ t && (i ? p(s, t) : Object.assign(s, t), s != null && s.tag3DContentSvelte && (t != null && t.normal) && (s.tag3DContentSvelte.currentNormal = A(t.normal)), this.updateRenderAllTags(), this.clearUnusedPanelTag());
349
351
  }
350
352
  /**
351
353
  * @description: 销毁tag
@@ -392,9 +394,9 @@ class ai extends k {
392
394
  * @description: 添加 cameraUpdate, panoArrived 等事件监听
393
395
  */
394
396
  addEventListener() {
395
- const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), r = this.handleFiveCameraUpdateDebounce(), n = this.handleFivePanoArrived.bind(this), h = this.loadVideoFirstFrame.bind(this), g = this.clickhandler.bind(this), v = this.five.currentMode;
396
- return v && this.handleFiveModeChange(v), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", o), e.on("cameraUpdate", r), e.on("panoArrived", n), e.on("panoArrived", h), t.on("click", g), () => {
397
- e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", o), e.off("cameraUpdate", r), e.off("panoArrived", n), e.off("panoArrived", h), t.off("click", g), this.store.eventListenerDisposer = void 0;
397
+ const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), n = this.handleFiveCameraUpdateDebounce(), r = this.handleFivePanoArrived.bind(this), d = this.loadVideoFirstFrame.bind(this), c = this.clickhandler.bind(this), m = this.five.currentMode;
398
+ return m && this.handleFiveModeChange(m), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", o), e.on("cameraUpdate", n), e.on("panoArrived", r), e.on("panoArrived", d), t.on("click", c), () => {
399
+ e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", o), e.off("cameraUpdate", n), e.off("panoArrived", r), e.off("panoArrived", d), t.off("click", c), this.store.eventListenerDisposer = void 0;
398
400
  };
399
401
  }
400
402
  addResizeListener() {
@@ -412,17 +414,17 @@ class ai extends k {
412
414
  this.state.enabled && (this.show(), this.updateRenderAllTags());
413
415
  }, i = () => {
414
416
  this.state.enabled && this.hide();
415
- }, { observe: s, unobserve: o } = y(
416
- B(() => {
417
+ }, { observe: s, unobserve: o } = S(
418
+ k(() => {
417
419
  this.store.resizeObserverDisposer && i();
418
420
  }, 500),
419
421
  e
420
- ), { observe: r, unobserve: n } = y(
421
- A(() => t(), 400),
422
+ ), { observe: n, unobserve: r } = S(
423
+ D(() => t(), 400),
422
424
  e
423
425
  );
424
- return s(), r(), () => {
425
- o(), n();
426
+ return s(), n(), () => {
427
+ o(), r();
426
428
  };
427
429
  }
428
430
  /**
@@ -430,13 +432,13 @@ class ai extends k {
430
432
  */
431
433
  handleFiveModeChange(e) {
432
434
  this.setModelMedialVisible(), this.tags.forEach((t) => {
433
- C(t) && e !== "Panorama" && this.changeTagMode(t, "behind"), t.state.visible = this.getVisible(t);
435
+ y(t) && e !== "Panorama" && this.changeTagMode(t, "behind"), t.state.visible = this.getVisible(t);
434
436
  }), this.updateRenderAllTags();
435
437
  }
436
438
  handleFiveWantsMoveToPano() {
437
439
  this.tags.forEach((e) => {
438
440
  const t = this.getTagConfig(e);
439
- typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = m(l({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = m(l({}, e.temporaryState), { visible: !!t.visibleConfig.alwaysShowWhenMovePano }));
441
+ typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = u(l({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = u(l({}, e.temporaryState), { visible: !!t.visibleConfig.alwaysShowWhenMovePano }));
440
442
  }), this.updateTagContainerVisible();
441
443
  }
442
444
  /**
@@ -466,7 +468,7 @@ class ai extends k {
466
468
  }), this.updateRenderAllTags());
467
469
  }
468
470
  handleFiveCameraUpdateDebounce() {
469
- return A(() => {
471
+ return D(() => {
470
472
  this.setUnfoldedByCamera(), this.updateRenderAllTags();
471
473
  }, 100);
472
474
  }
@@ -475,8 +477,24 @@ class ai extends k {
475
477
  }
476
478
  handleFivePanoArrived() {
477
479
  return f(this, null, function* () {
478
- this.setModelMedialVisible(), yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
479
- e.temporaryState = m(l({}, e.temporaryState), { visible: !0 });
480
+ var e, t, i;
481
+ this.setModelMedialVisible(), yield this.setVisibleAndUnfolded(), this.tags.forEach((s) => {
482
+ s.temporaryState = u(l({}, s.temporaryState), { visible: !0 });
483
+ }), (i = (t = (e = this.config) == null ? void 0 : e.globalConfig) == null ? void 0 : t.modelConfig) != null && i.autoLookAtEnabled && this.tags.filter(O).filter((s) => {
484
+ var o, n;
485
+ return (n = (o = s.config) == null ? void 0 : o.modelConfig) == null ? void 0 : n.autoLookAtEnabled;
486
+ }).forEach((s) => {
487
+ var T;
488
+ const o = new b.Mesh(new b.BoxGeometry(), new b.MeshBasicMaterial()), n = (T = s.model) == null ? void 0 : T.object;
489
+ if (!n)
490
+ return;
491
+ o.position.copy(n.position), o.quaternion.copy(n.quaternion);
492
+ const r = this.five.camera.position;
493
+ o.lookAt(r.clone().setY(o.position.y));
494
+ const d = n.quaternion.clone(), c = o.quaternion.clone(), m = x();
495
+ m.onUpdate(({ progress: P }) => {
496
+ n.quaternion.copy(d.clone().slerp(c, P));
497
+ }), m.play();
480
498
  }), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
481
499
  });
482
500
  }
@@ -491,12 +509,12 @@ class ai extends k {
491
509
  });
492
510
  }
493
511
  changeTagMode(e, t) {
494
- var i, s, o, r, n, h;
495
- ((i = this.getTagConfig(e)) == 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((g) => g == null ? void 0 : g()), e.tag3DContentSvelte = void 0);
512
+ var i, s, o, n, r, d;
513
+ ((i = this.getTagConfig(e)) == null ? void 0 : i.renderType) !== "Mesh" && ((n = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.css3DInstance) == null ? void 0 : o.css3DObject) == null ? void 0 : n.mode) !== t && ((r = e.config) != null && r.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (d = this.store.css3DRenderDisposer.get(e.id)) == null || d.forEach((c) => c == null ? void 0 : c()), e.tag3DContentSvelte = void 0);
496
514
  }
497
515
  }
498
516
  export {
499
- ai as PanoTagPluginController,
500
- ai as default,
501
- ri as pluginFlag
517
+ ci as PanoTagPluginController,
518
+ ci as default,
519
+ pi as pluginFlag
502
520
  };
@@ -1,11 +1,11 @@
1
1
  import t from "./controller/index.js";
2
- import { pluginFlag as vr } from "./controller/index.js";
3
- import { ContentType as Ar } from "./typings/tag/TagData.js";
4
- import { DimensionType as Er } from "./typings/tag/Utils.js";
2
+ import { pluginFlag as Ar } from "./controller/index.js";
3
+ import { ContentType as Er } from "./typings/tag/TagData.js";
4
+ import { DimensionType as Hr } from "./typings/tag/Utils.js";
5
+ import "three";
5
6
  import "@realsee/five";
6
7
  import "../vendor/object-assign-deep/objectAssignDeep.js";
7
8
  import "../CSS3DRenderPlugin/utils/positionToVector3.js";
8
- import "three";
9
9
  import "./utils/addDebugPoints.js";
10
10
  import "./utils/tag/tagCheck.js";
11
11
  import "./utils/actionAfterFiveModelLoad.js";
@@ -131,12 +131,14 @@ import "../CSS3DRenderPlugin/Controller.js";
131
131
  import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
132
132
  import "../shared-utils/three/GLTFLoader.js";
133
133
  import "@realsee/five/gltf-loader";
134
- const jr = (o, r) => new t(o, r);
134
+ import "../shared-utils/animationFrame/BetterTween.js";
135
+ import "../shared-utils/animationFrame/index.js";
136
+ const qr = (o, r) => new t(o, r);
135
137
  export {
136
- Ar as ContentType,
137
- Er as DimensionType,
138
- jr as PanoTagPlugin,
138
+ Er as ContentType,
139
+ Hr as DimensionType,
140
+ qr as PanoTagPlugin,
139
141
  t as PanoTagPluginController,
140
- jr as default,
141
- vr as pluginFlag
142
+ qr as default,
143
+ Ar as pluginFlag
142
144
  };
@@ -124,6 +124,9 @@ export interface TagConfig<C extends TagContentType = TagContentType, S extends
124
124
  };
125
125
  initialData?: PartialDeep<ContentTypeMap[C]>;
126
126
  tag3DConfig?: Create3DDomContainerParamsType['config'];
127
+ modelConfig?: {
128
+ autoLookAtEnabled?: boolean;
129
+ };
127
130
  /** 当图片为一张时可以通过Mesh渲染 */
128
131
  renderType?: 'Mesh' | 'Dom';
129
132
  clickable?: false;
@@ -35,6 +35,8 @@ export declare enum ContentType {
35
35
  MediaPlane = "MediaPlane",
36
36
  /** 带有多媒体的模型 */
37
37
  MediaModel = "MediaModel",
38
+ /** 模型 */
39
+ Model = "Model",
38
40
  /** 其他/自定义标签 */
39
41
  Custom = "Custom",
40
42
  /** Unknown */
@@ -162,13 +164,21 @@ interface ContentTypeMapInterface {
162
164
  type: 'iframe' | 'window';
163
165
  };
164
166
  };
167
+ Model: {
168
+ modelUrl: string;
169
+ matrix?: number[];
170
+ action?: {
171
+ url?: string;
172
+ type: 'iframe' | 'window' | 'custom';
173
+ };
174
+ };
165
175
  Custom: Object;
166
176
  Unknown: Object;
167
177
  }
168
- type ContentTypeMapInterfaceWithextraData = {
178
+ type ContentTypeMapInterfaceWithExtraData = {
169
179
  [key in keyof ContentTypeMapInterface]: ContentTypeMapInterface[key] & {
170
180
  extraData?: Object;
171
181
  };
172
182
  };
173
- export type ContentTypeMap = Pick<ContentTypeMapInterfaceWithextraData, TagContentType>;
183
+ export type ContentTypeMap = Pick<ContentTypeMapInterfaceWithExtraData, TagContentType>;
174
184
  export {};
@@ -1,4 +1,4 @@
1
- var a = /* @__PURE__ */ ((i) => (i.Audio = "Audio", i.Text = "Text", i.ImageText = "ImageText", i.Image = "Image", i.Video = "Video", i.Link = "Link", i.Sticker = "Sticker", i.VRLink = "VRLink", i.PanoLink = "PanoLink", i.Marketing = "Marketing", i.MediaPlane = "MediaPlane", i.MediaModel = "MediaModel", i.Custom = "Custom", i.Unknown = "Unknown", i))(a || {});
1
+ var a = /* @__PURE__ */ ((i) => (i.Audio = "Audio", i.Text = "Text", i.ImageText = "ImageText", i.Image = "Image", i.Video = "Video", i.Link = "Link", i.Sticker = "Sticker", i.VRLink = "VRLink", i.PanoLink = "PanoLink", i.Marketing = "Marketing", i.MediaPlane = "MediaPlane", i.MediaModel = "MediaModel", i.Model = "Model", i.Custom = "Custom", i.Unknown = "Unknown", i))(a || {});
2
2
  export {
3
3
  a as ContentType
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { PlaneTagElement, Tag } from '../../typings';
1
+ import type { PlaneTagElement, Tag, TagElement } from '../../typings';
2
2
  export declare function isPointTag(tag: Tag<any, any>): boolean;
3
3
  export declare function isPlaneTag(tag: Tag<any, any>): tag is PlaneTagElement;
4
4
  export declare function isPoint2DTag(tag: Tag<any, any>): boolean;
@@ -6,4 +6,6 @@ export declare function isPoint3DTag(tag: Tag<any, any>): boolean;
6
6
  export declare function is2DTag(tag: Tag<any, any>): boolean;
7
7
  export declare function is3DTag(tag: Tag<any, any>): tag is Tag<any, '3DPoint'> | Tag<any, 'Plane'>;
8
8
  export declare function isMediaModelTag(tag: Tag<any, any>): tag is Tag<'MediaModel', 'Model'>;
9
+ export declare function isModelTag(tag: Tag<any, any>): tag is Tag<'Model', 'Model'>;
10
+ export declare function isStickModelTag(tag: Tag<any, any>): tag is TagElement<'Model', 'Model'> | TagElement<'MediaModel', 'Model'>;
9
11
  export declare function isMediaPlaneTag(tag: Tag<any, any>): tag is Tag<'MediaModel', 'Model'>;