@realsee/dnalogel 2.18.4 → 2.19.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 (323) hide show
  1. package/dist/PanoTagPlugin/controller/TagRender.d.ts +1 -1
  2. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +1 -1
  3. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +3 -0
  4. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +12 -2
  5. package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +3 -1
  6. package/dist/index.cjs.js +22 -22
  7. package/dist/index.js +5169 -5143
  8. package/dist/index.umd.js +24 -24
  9. package/docs/assets/search.js +1 -1
  10. package/docs/classes/CSS3DRender.html +30 -30
  11. package/docs/classes/CruisePluginController.html +25 -25
  12. package/docs/classes/GuideLineItem.GuideLineItem.html +19 -19
  13. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +30 -30
  14. package/docs/classes/Magnifier.html +19 -19
  15. package/docs/classes/ModelRoomLabelController.html +10 -10
  16. package/docs/classes/Object3DHelperController.html +24 -24
  17. package/docs/classes/PaintBrush.html +14 -14
  18. package/docs/classes/PanoMeasurePluginLine.html +22 -22
  19. package/docs/classes/PanoMeasurePluginModel.html +21 -21
  20. package/docs/classes/PanoMeasurePluginPoint.html +13 -13
  21. package/docs/classes/PanoMeasurePluginPolyline.html +25 -25
  22. package/docs/classes/PanoTagPluginController.html +55 -55
  23. package/docs/classes/Util.BetterTween.html +8 -8
  24. package/docs/classes/Util.FivePointSelector.html +11 -11
  25. package/docs/classes/Util.Interval.html +11 -11
  26. package/docs/classes/Util.Magnifier.html +16 -16
  27. package/docs/classes/Util.PointDomHelper.html +10 -10
  28. package/docs/classes/Util.PointHelper.html +10 -10
  29. package/docs/classes/Util.Rectangle.html +12 -12
  30. package/docs/enums/CameraMovementEffect.html +6 -6
  31. package/docs/enums/ContentType.html +27 -18
  32. package/docs/enums/DIRECTION.html +8 -8
  33. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
  34. package/docs/enums/DimensionType.html +6 -6
  35. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
  36. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
  37. package/docs/enums/PaintBrushTypeEnum.html +7 -7
  38. package/docs/enums/Rotation.html +7 -7
  39. package/docs/functions/CSS3DRenderPlugin.html +3 -3
  40. package/docs/functions/CameraMovementPlugin.html +3 -3
  41. package/docs/functions/CruisePlugin.html +3 -3
  42. package/docs/functions/GuideLinePlugin.html +4 -4
  43. package/docs/functions/ItemLabelPlugin.html +3 -3
  44. package/docs/functions/MapviewFloorplanPlugin.html +3 -3
  45. package/docs/functions/ModelChassisCompassPlugin.html +3 -3
  46. package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
  47. package/docs/functions/ModelFloorplanPlugin.html +3 -3
  48. package/docs/functions/ModelItemLabelPlugin.html +3 -3
  49. package/docs/functions/ModelRoomLabelPlugin.html +3 -3
  50. package/docs/functions/ModelTVVideoPlugin.html +3 -3
  51. package/docs/functions/ModelViewPlugin.html +3 -3
  52. package/docs/functions/Object3DHelperPlugin.html +3 -3
  53. package/docs/functions/PanoCompassPlugin.html +3 -3
  54. package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
  55. package/docs/functions/PanoDoorLabelPlugin.html +3 -3
  56. package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
  57. package/docs/functions/PanoMeasurePlugin.html +3 -3
  58. package/docs/functions/PanoRulerPlugin.html +3 -3
  59. package/docs/functions/PanoRulerProPlugin.html +3 -3
  60. package/docs/functions/PanoSpatialTagPlugin.html +3 -3
  61. package/docs/functions/PanoTagPlugin.html +3 -3
  62. package/docs/functions/PanoVideoPlugin.html +3 -3
  63. package/docs/functions/TopviewFloorplanPlugin.html +3 -3
  64. package/docs/functions/Util.getCoordsFromClient.html +4 -4
  65. package/docs/functions/Util.getCoordsFromElement.html +4 -4
  66. package/docs/functions/Util.getFrameTime.html +4 -4
  67. package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
  68. package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
  69. package/docs/functions/Util.isAbsoluteURL.html +4 -4
  70. package/docs/functions/Util.isModelLike.html +4 -4
  71. package/docs/functions/Util.isNil.html +4 -4
  72. package/docs/functions/Util.isPanoramaLike.html +4 -4
  73. package/docs/functions/Util.nextFrame.html +4 -4
  74. package/docs/functions/Util.notNil.html +4 -4
  75. package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
  76. package/docs/functions/Util.tweenProgress.html +4 -4
  77. package/docs/functions/Util.uuid.html +4 -4
  78. package/docs/functions/pluginFlag.html +4 -4
  79. package/docs/index.html +4 -4
  80. package/docs/interfaces/AddTagConfig.html +5 -5
  81. package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
  82. package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
  83. package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
  84. package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
  85. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
  86. package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
  87. package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
  88. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
  89. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
  90. package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
  91. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +6 -6
  92. package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
  93. package/docs/interfaces/EventMap.html +16 -16
  94. package/docs/interfaces/FloorplanBounding.html +7 -7
  95. package/docs/interfaces/FloorplanData.html +9 -9
  96. package/docs/interfaces/FloorplanEntrance.html +10 -10
  97. package/docs/interfaces/FloorplanExtraObject.html +9 -9
  98. package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
  99. package/docs/interfaces/FloorplanFloorData.html +8 -8
  100. package/docs/interfaces/FloorplanImagePosition.html +6 -6
  101. package/docs/interfaces/FloorplanObserver.html +8 -8
  102. package/docs/interfaces/FloorplanOutlineItem.html +8 -8
  103. package/docs/interfaces/FloorplanPosition.html +6 -6
  104. package/docs/interfaces/FloorplanRoomItem.html +12 -12
  105. package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
  106. package/docs/interfaces/FloorplanServerBounding.html +7 -7
  107. package/docs/interfaces/FloorplanServerComputedData.html +9 -9
  108. package/docs/interfaces/FloorplanServerData.html +6 -6
  109. package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
  110. package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
  111. package/docs/interfaces/FloorplanServerEntrance.html +10 -10
  112. package/docs/interfaces/FloorplanServerFloorData.html +8 -8
  113. package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
  114. package/docs/interfaces/FloorplanServerObserver.html +8 -8
  115. package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
  116. package/docs/interfaces/FloorplanServerPosition.html +6 -6
  117. package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
  118. package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
  119. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
  120. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
  121. package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
  122. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
  123. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
  124. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
  125. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
  126. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
  127. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
  128. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
  129. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
  130. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +6 -6
  131. package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
  132. package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
  133. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
  134. package/docs/interfaces/HelperOffset.html +7 -7
  135. package/docs/interfaces/ImagePlaneGroup.html +5 -5
  136. package/docs/interfaces/ItemLabelPluginData.html +5 -5
  137. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
  138. package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
  139. package/docs/interfaces/MinMax.html +6 -6
  140. package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
  141. package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
  142. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
  143. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
  144. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
  145. package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
  146. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
  147. package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
  148. package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
  149. package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
  150. package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
  151. package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
  152. package/docs/interfaces/ModelViewPluginExportType.html +10 -10
  153. package/docs/interfaces/Object3DHelperState.html +7 -7
  154. package/docs/interfaces/ObjectHelperControllers.html +8 -8
  155. package/docs/interfaces/PaintBrushAction.html +11 -11
  156. package/docs/interfaces/PaintBrushConfigs.html +11 -11
  157. package/docs/interfaces/PaintBrushState.html +9 -9
  158. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
  159. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
  160. package/docs/interfaces/PanoMeasureParameterType.html +13 -13
  161. package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
  162. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
  163. package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
  164. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
  165. package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
  166. package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
  167. package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
  168. package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
  169. package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
  170. package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
  171. package/docs/interfaces/PanoRulerProPluginState.html +7 -7
  172. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
  173. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
  174. package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
  175. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
  176. package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
  177. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
  178. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
  179. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
  180. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
  181. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
  182. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
  183. package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
  184. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
  185. package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
  186. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
  187. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
  188. package/docs/interfaces/Point.html +7 -7
  189. package/docs/interfaces/Room.html +8 -8
  190. package/docs/interfaces/RoomInfo.html +6 -6
  191. package/docs/interfaces/RoomLabel.html +13 -13
  192. package/docs/interfaces/RoomRules.html +4 -4
  193. package/docs/interfaces/Rooms.html +4 -4
  194. package/docs/interfaces/Scissor.html +8 -8
  195. package/docs/interfaces/State.html +7 -7
  196. package/docs/interfaces/TagCacheInterface.html +11 -11
  197. package/docs/interfaces/TagConfig.html +23 -11
  198. package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
  199. package/docs/interfaces/TagIconUrl.html +11 -11
  200. package/docs/interfaces/TagObjectGroup.html +5 -5
  201. package/docs/interfaces/TagStyle.html +5 -5
  202. package/docs/interfaces/Tags.html +22 -10
  203. package/docs/interfaces/TemporaryState.html +5 -5
  204. package/docs/interfaces/Util.MagnifierParameter.html +10 -10
  205. package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
  206. package/docs/modules/CruisePluginTypes.html +4 -4
  207. package/docs/modules/GuideLineItem.html +4 -4
  208. package/docs/modules/GuideLineModeItem.html +4 -4
  209. package/docs/modules/GuideLinePluginType.html +4 -4
  210. package/docs/modules/PanoVideoPluginType.html +4 -4
  211. package/docs/modules/Util.html +4 -4
  212. package/docs/modules.html +4 -4
  213. package/docs/types/ArrayPosition.html +4 -4
  214. package/docs/types/AudioAppearance.html +4 -4
  215. package/docs/types/AudioTagTypeConfigKey.html +4 -4
  216. package/docs/types/CSS3DRenderExportType.html +4 -4
  217. package/docs/types/CSS3DRenderPluginExportType.html +4 -4
  218. package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
  219. package/docs/types/ClassFunctionParameters.html +4 -4
  220. package/docs/types/Color.html +4 -4
  221. package/docs/types/ContentTypeConfigKey.html +4 -4
  222. package/docs/types/ContentTypeConfigKeySplit.html +4 -4
  223. package/docs/types/ContentTypeMap.html +5 -5
  224. package/docs/types/Create3DDomContainerReturnType.html +4 -4
  225. package/docs/types/Create3DElementReturnType.html +4 -4
  226. package/docs/types/CruisePluginExportType.html +4 -4
  227. package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
  228. package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
  229. package/docs/types/Direction-1.html +4 -4
  230. package/docs/types/Direction4.html +4 -4
  231. package/docs/types/ElementRenderer.html +4 -4
  232. package/docs/types/FloorplanRuleLabels.html +4 -4
  233. package/docs/types/FloorplanServerRuleLabels.html +4 -4
  234. package/docs/types/GuideLinePluginExportType.html +4 -4
  235. package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
  236. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
  237. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
  238. package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
  239. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
  240. package/docs/types/GuideLinePluginType.PathItem.html +4 -4
  241. package/docs/types/GuideLinePluginType.PluginData.html +4 -4
  242. package/docs/types/HelperEventMap.html +4 -4
  243. package/docs/types/LoadTagConfig.html +4 -4
  244. package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
  245. package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
  246. package/docs/types/MediaData.html +4 -4
  247. package/docs/types/MediaStore.html +4 -4
  248. package/docs/types/ModelElement.html +4 -4
  249. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
  250. package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
  251. package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
  252. package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
  253. package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
  254. package/docs/types/MoveArgs.html +4 -4
  255. package/docs/types/MoveOpts.html +4 -4
  256. package/docs/types/Object3DHelperEventMap.html +4 -4
  257. package/docs/types/ObjectFit.html +4 -4
  258. package/docs/types/PaintBrushEventMap.html +4 -4
  259. package/docs/types/PanoCompassPluginData.html +4 -4
  260. package/docs/types/PanoCompassPluginExportType.html +4 -4
  261. package/docs/types/PanoCompassPluginParameterType.html +4 -4
  262. package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
  263. package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
  264. package/docs/types/PanoIndex.html +4 -4
  265. package/docs/types/PanoMeasurePluginEvent.html +4 -4
  266. package/docs/types/PanoMeasureReturnType.html +4 -4
  267. package/docs/types/PanoSpatialTagPluginId.html +4 -4
  268. package/docs/types/PanoTagPluginExportInterface.html +4 -4
  269. package/docs/types/PanoTagPluginParamsInterface.html +4 -4
  270. package/docs/types/PanoVideoPluginParameterType.html +4 -4
  271. package/docs/types/PanoVideoPluginReturnType.html +4 -4
  272. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
  273. package/docs/types/PlaneTag.html +4 -4
  274. package/docs/types/PlaneTagElement.html +4 -4
  275. package/docs/types/Point2DElement.html +4 -4
  276. package/docs/types/Point2DTag.html +4 -4
  277. package/docs/types/Point3DElement.html +4 -4
  278. package/docs/types/Point3DTag.html +4 -4
  279. package/docs/types/PointTag.html +4 -4
  280. package/docs/types/PointTagElement.html +4 -4
  281. package/docs/types/Position.html +4 -4
  282. package/docs/types/RotateArgs.html +4 -4
  283. package/docs/types/RotateOpts.html +4 -4
  284. package/docs/types/RuleLabelsKey.html +4 -4
  285. package/docs/types/RuleLabelsValue.html +4 -4
  286. package/docs/types/StickType.html +4 -4
  287. package/docs/types/Tag.html +4 -4
  288. package/docs/types/Tag2D.html +4 -4
  289. package/docs/types/Tag3D.html +4 -4
  290. package/docs/types/TagContentType.html +4 -4
  291. package/docs/types/TagDimensionType.html +4 -4
  292. package/docs/types/TagElement.html +4 -4
  293. package/docs/types/TagEvents.html +4 -4
  294. package/docs/types/TagGLTFObject.html +4 -4
  295. package/docs/types/TagHooks.html +4 -4
  296. package/docs/types/TagIconSize.html +4 -4
  297. package/docs/types/TagId.html +4 -4
  298. package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
  299. package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
  300. package/docs/types/WorkCode.html +4 -4
  301. package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
  302. package/docs/variables/PLUGIN.html +4 -4
  303. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
  304. package/docs/variables/ROOM_TYPE_MAP.html +4 -4
  305. package/docs/variables/itemLabelPluginServerParams.html +4 -4
  306. package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
  307. package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
  308. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +3 -3
  309. package/libs/PanoTagPlugin/controller/TagComputer.js +9 -9
  310. package/libs/PanoTagPlugin/controller/TagRender.d.ts +1 -1
  311. package/libs/PanoTagPlugin/controller/TagRender.js +97 -93
  312. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +1 -1
  313. package/libs/PanoTagPlugin/controller/TagUtil.js +17 -17
  314. package/libs/PanoTagPlugin/controller/index.js +127 -109
  315. package/libs/PanoTagPlugin/index.js +12 -10
  316. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +3 -0
  317. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +12 -2
  318. package/libs/PanoTagPlugin/typings/tag/TagData.js +1 -1
  319. package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +3 -1
  320. package/libs/PanoTagPlugin/utils/tag/tagCheck.js +13 -5
  321. package/libs/base/BasePlugin.js +1 -1
  322. package/libs/shared-utils/logger.js +1 -1
  323. package/package.json +1 -1
@@ -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";
31
- 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";
30
+ import * as b from "three";
31
+ import { Subscribe as B } from "@realsee/five";
32
+ import { objectAssignDeepExports as c } from "../../vendor/object-assign-deep/objectAssignDeep.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* () {
171
- e.data = p({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
172
+ g(this, "changeTagModel", (e, t) => f(this, null, function* () {
173
+ e.data = c({}, 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 = l({ debug: !1, config: this.config }, 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 = c({}, 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: c({}, 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
  }
@@ -245,19 +247,19 @@ class ai extends k {
245
247
  * @description: 改变配置
246
248
  */
247
249
  changeConfig(e, t = !0) {
248
- t ? this.config = p({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
250
+ t ? this.config = c({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
249
251
  }
250
252
  /**
251
253
  * @description: 改变全局配置
252
254
  */
253
255
  changeGlobalConfig(e, t = !0) {
254
- t ? this.config.globalConfig = p({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
256
+ t ? this.config.globalConfig = c({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
255
257
  }
256
258
  /**
257
259
  * @description: 改变类型配置
258
260
  */
259
261
  changeContentTypeConfig(e, t, i = !0) {
260
- this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = p({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
262
+ this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = c({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
261
263
  }
262
264
  show(e) {
263
265
  return f(this, null, function* () {
@@ -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,14 +327,14 @@ 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
332
334
  */
333
335
  changeDataById(e, t, i = !0) {
334
336
  const s = this.getTagById(e);
335
- s && (i ? s.data = p({}, s.data, t) : s.data = l(l({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags());
337
+ s && (i ? s.data = c({}, s.data, t) : s.data = l(l({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags());
336
338
  }
337
339
  /**
338
340
  * @description: 改变tag的stickType
@@ -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 ? c(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), p = 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", p), () => {
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", p), 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(), p = o.quaternion.clone(), m = x();
495
+ m.onUpdate(({ progress: P }) => {
496
+ n.quaternion.copy(d.clone().slerp(p, 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((p) => p == null ? void 0 : p()), 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'>;
@@ -1,7 +1,7 @@
1
- function i(n) {
1
+ function e(n) {
2
2
  return n.stickType === "2DPoint" || n.stickType === "3DPoint";
3
3
  }
4
- function e(n) {
4
+ function i(n) {
5
5
  return n.stickType === "Plane";
6
6
  }
7
7
  function t(n) {
@@ -20,15 +20,23 @@ function s(n) {
20
20
  return n.stickType === "Model" && n.contentType === "MediaModel";
21
21
  }
22
22
  function r(n) {
23
+ return n.stickType === "Model" && n.contentType === "Model";
24
+ }
25
+ function u(n) {
26
+ return n.stickType === "Model";
27
+ }
28
+ function p(n) {
23
29
  return n.stickType === "Plane" && n.contentType === "MediaPlane";
24
30
  }
25
31
  export {
26
32
  c as is2DTag,
27
33
  T as is3DTag,
28
34
  s as isMediaModelTag,
29
- r as isMediaPlaneTag,
30
- e as isPlaneTag,
35
+ p as isMediaPlaneTag,
36
+ r as isModelTag,
37
+ i as isPlaneTag,
31
38
  t as isPoint2DTag,
32
39
  o as isPoint3DTag,
33
- i as isPointTag
40
+ e as isPointTag,
41
+ u as isStickModelTag
34
42
  };
@@ -14,7 +14,7 @@ let n = class {
14
14
  /**
15
15
  * @realsee/dnalogel 版本号
16
16
  */
17
- e(this, "VERSION", "2.18.4");
17
+ e(this, "VERSION", "2.19.0-0");
18
18
  e(this, "five");
19
19
  /**
20
20
  * 插件事件钩子
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.info(
3
- "%c %c@realsee/dnalogel %cv2.18.4",
3
+ "%c %c@realsee/dnalogel %cv2.19.0-0",
4
4
  [
5
5
  "background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
6
6
  "background-repeat: no-repeat",
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "repository": "https://github.com/realsee-developer/dnalogel.git",
8
8
  "description": "如视 VR 看房插件合集",
9
9
  "private": false,
10
- "version": "2.18.4",
10
+ "version": "2.19.0-0",
11
11
  "license": "SEE LICENSE IN TERMS.txt",
12
12
  "scripts": {
13
13
  "clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",