@realsee/dnalogel 2.20.0-dev.9 → 2.20.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 (325) hide show
  1. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
  2. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +1 -1
  3. package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +3 -1
  4. package/dist/index.cjs.js +23 -23
  5. package/dist/index.js +764 -757
  6. package/dist/index.umd.js +5 -5
  7. package/dist/shared-utils/three/PointDomHelper.d.ts +2 -2
  8. package/dist/shared-utils/three/PointHelper.d.ts +2 -1
  9. package/dist/typings/typings.d.ts +9 -0
  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 +46 -46
  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 +19 -19
  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/PointType.html +6 -6
  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 +14 -14
  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 +12 -12
  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 +8 -8
  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 +4 -4
  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/DeprecatedMediaPlaneProperty.html +4 -4
  231. package/docs/types/DeprecatedTagProperty.html +4 -4
  232. package/docs/types/Direction-1.html +4 -4
  233. package/docs/types/Direction4.html +4 -4
  234. package/docs/types/ElementRenderer.html +4 -4
  235. package/docs/types/FloorplanRuleLabels.html +4 -4
  236. package/docs/types/FloorplanServerRuleLabels.html +4 -4
  237. package/docs/types/GuideLinePluginExportType.html +4 -4
  238. package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
  239. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
  240. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
  241. package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
  242. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
  243. package/docs/types/GuideLinePluginType.PathItem.html +4 -4
  244. package/docs/types/GuideLinePluginType.PluginData.html +4 -4
  245. package/docs/types/HelperEventMap.html +4 -4
  246. package/docs/types/LoadTagConfig.html +4 -4
  247. package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
  248. package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
  249. package/docs/types/MediaData.html +4 -4
  250. package/docs/types/MediaStore.html +4 -4
  251. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
  252. package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
  253. package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
  254. package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
  255. package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
  256. package/docs/types/MoveArgs.html +4 -4
  257. package/docs/types/MoveOpts.html +4 -4
  258. package/docs/types/Object3DHelperEventMap.html +4 -4
  259. package/docs/types/ObjectFit.html +4 -4
  260. package/docs/types/PaintBrushEventMap.html +4 -4
  261. package/docs/types/PanoCompassPluginData.html +4 -4
  262. package/docs/types/PanoCompassPluginExportType.html +4 -4
  263. package/docs/types/PanoCompassPluginParameterType.html +4 -4
  264. package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
  265. package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
  266. package/docs/types/PanoIndex.html +4 -4
  267. package/docs/types/PanoMeasurePluginEvent.html +4 -4
  268. package/docs/types/PanoMeasureReturnType.html +4 -4
  269. package/docs/types/PanoSpatialTagPluginId.html +4 -4
  270. package/docs/types/PanoTagPluginExportInterface.html +4 -4
  271. package/docs/types/PanoTagPluginParamsInterface.html +4 -4
  272. package/docs/types/PanoVideoPluginParameterType.html +4 -4
  273. package/docs/types/PanoVideoPluginReturnType.html +4 -4
  274. package/docs/types/PartialObjectDeep.html +4 -4
  275. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
  276. package/docs/types/PlaneTag.html +4 -4
  277. package/docs/types/Point2DTag.html +4 -4
  278. package/docs/types/Point3DTag.html +4 -4
  279. package/docs/types/PointTag.html +4 -4
  280. package/docs/types/PointTagInstance.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 +5 -5
  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/TagId.html +4 -4
  297. package/docs/types/TagInstance.html +5 -5
  298. package/docs/types/TagPointType.html +4 -4
  299. package/docs/types/TagRendererMap.html +4 -4
  300. package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
  301. package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
  302. package/docs/types/WorkCode.html +4 -4
  303. package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
  304. package/docs/variables/PLUGIN.html +4 -4
  305. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
  306. package/docs/variables/ROOM_TYPE_MAP.html +4 -4
  307. package/docs/variables/itemLabelPluginServerParams.html +4 -4
  308. package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
  309. package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
  310. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +56 -56
  311. package/libs/PanoTagPlugin/Components/TagItem.js +99 -99
  312. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
  313. package/libs/PanoTagPlugin/controller/TagComputer.js +83 -77
  314. package/libs/PanoTagPlugin/controller/TagRender.js +6 -6
  315. package/libs/PanoTagPlugin/controller/TagUtil.js +1 -1
  316. package/libs/PanoTagPlugin/controller/index.js +45 -44
  317. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +1 -1
  318. package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +3 -1
  319. package/libs/base/BasePlugin.js +1 -1
  320. package/libs/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +1 -1
  321. package/libs/shared-utils/logger.js +1 -1
  322. package/libs/shared-utils/three/PointDomHelper.d.ts +2 -2
  323. package/libs/shared-utils/three/PointHelper.d.ts +2 -1
  324. package/libs/typings/typings.d.ts +9 -0
  325. package/package.json +1 -1
@@ -1,19 +1,19 @@
1
1
  var M = Object.defineProperty, U = Object.defineProperties;
2
- var R = Object.getOwnPropertyDescriptors;
2
+ var D = Object.getOwnPropertyDescriptors;
3
3
  var P = Object.getOwnPropertySymbols;
4
- var B = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
4
+ var R = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
5
5
  var g = (d, l, e) => l in d ? M(d, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[l] = e, x = (d, l) => {
6
6
  for (var e in l || (l = {}))
7
- B.call(l, e) && g(d, e, l[e]);
7
+ R.call(l, e) && g(d, e, l[e]);
8
8
  if (P)
9
9
  for (var e of P(l))
10
- C.call(l, e) && g(d, e, l[e]);
10
+ B.call(l, e) && g(d, e, l[e]);
11
11
  return d;
12
- }, I = (d, l) => U(d, R(l));
13
- var V = (d, l, e) => (g(d, typeof l != "symbol" ? l + "" : l, e), e);
14
- import * as D from "three";
12
+ }, I = (d, l) => U(d, D(l));
13
+ var T = (d, l, e) => (g(d, typeof l != "symbol" ? l + "" : l, e), e);
14
+ import * as C from "three";
15
15
  import { is3DTag as j, isMediaModelTag as y } from "../utils/tag/tagCheck.js";
16
- import { tagPosition as T, getTagPosition as k } from "../utils/tagPosition.js";
16
+ import { tagPosition as V, getTagPosition as k } from "../utils/tagPosition.js";
17
17
  import { checkRange as h } from "../utils/checkRange.js";
18
18
  import "hammerjs";
19
19
  import "@realsee/five";
@@ -58,17 +58,17 @@ import "../../shared-utils/threex/domevents/index.js";
58
58
  class Ue extends S {
59
59
  constructor(e) {
60
60
  super(e);
61
- V(this, "raycaster", new D.Raycaster());
61
+ T(this, "raycaster", new C.Raycaster());
62
62
  }
63
63
  /**
64
64
  * @description: 获取是否可见
65
65
  */
66
66
  getVisibleByPanoIndex(e, t) {
67
- const s = this.getCache({ panoIndex: t, id: e.id }), n = t != null ? t : this.five.getCurrentState().panoIndex;
67
+ const n = this.getCache({ panoIndex: t, id: e.id }), s = t != null ? t : this.five.getCurrentState().panoIndex;
68
68
  if (e.stickType === "Model")
69
69
  return !0;
70
- if (s.visible !== void 0)
71
- return s.visible;
70
+ if (n.visible !== void 0)
71
+ return n.visible;
72
72
  {
73
73
  const i = (() => {
74
74
  var c, u, v;
@@ -79,16 +79,16 @@ class Ue extends S {
79
79
  return { value: !1, reason: "config.keep is hidden" };
80
80
  if (o.keep === "visible")
81
81
  return { value: !0, reason: "config.keep is visible" };
82
- if (o.visiblePanoIndex !== void 0 && o.visiblePanoIndex !== "all" && n !== void 0) {
83
- if (Array.isArray(o.visiblePanoIndex) && !o.visiblePanoIndex.includes(n))
82
+ if (o.visiblePanoIndex !== void 0 && o.visiblePanoIndex !== "all" && s !== void 0) {
83
+ if (Array.isArray(o.visiblePanoIndex) && !o.visiblePanoIndex.includes(s))
84
84
  return {
85
85
  value: !1,
86
- reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${n}, visiblePanoIndex: ${o.visiblePanoIndex}`
86
+ reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${s}, visiblePanoIndex: ${o.visiblePanoIndex}`
87
87
  };
88
- if (o.visiblePanoIndex === "current" && n !== ((u = e.fiveState) == null ? void 0 : u.panoIndex))
88
+ if (o.visiblePanoIndex === "current" && s !== ((u = e.fiveState) == null ? void 0 : u.panoIndex))
89
89
  return {
90
90
  value: !1,
91
- reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${n}, tag.panoIndex: ${(v = e.fiveState) == null ? void 0 : v.panoIndex}`
91
+ reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${s}, tag.panoIndex: ${(v = e.fiveState) == null ? void 0 : v.panoIndex}`
92
92
  };
93
93
  }
94
94
  if (o.visibleDistance !== void 0 && o.visibleDistance !== "unLimited" && h(f, o.visibleDistance) === !1)
@@ -97,12 +97,12 @@ class Ue extends S {
97
97
  reason: `distance is not in visibleDistance. distance: ${f}, visibleDistance: ${o.visibleDistance}`
98
98
  };
99
99
  if (o.intersectRaycaster !== !1 && (typeof o.intersectRaycaster != "object" || o.intersectRaycaster.enabled !== !1)) {
100
- if (n === void 0)
100
+ if (s === void 0)
101
101
  return {
102
102
  value: !1,
103
- reason: `intersectRaycaster check failed: fivePanoIndex is ${n}`
103
+ reason: `intersectRaycaster check failed: fivePanoIndex is ${s}`
104
104
  };
105
- const r = this.getRaycasterFromPanoIndex(e, n);
105
+ const r = this.getRaycasterFromPanoIndex(e, s);
106
106
  if (!r)
107
107
  return { value: !1, reason: `intersectRaycaster check failed: raycaster is ${r}` };
108
108
  const a = this.getTagEnableByIntersect(e, r);
@@ -119,19 +119,19 @@ class Ue extends S {
119
119
  reason: "all check passed"
120
120
  };
121
121
  })();
122
- return s.visible = i.value, s.__debug_visible_reason__ = i, s.visible;
122
+ return n.visible = i.value, n.__debug_visible_reason__ = i, n.visible;
123
123
  }
124
124
  }
125
125
  getVisibleByFiveMode(e, t) {
126
- const s = t != null ? t : this.five.getCurrentState().mode, n = this.getTagConfig(e).visibleConfig;
127
- if (n) {
128
- if (typeof n == "object") {
129
- const i = n == null ? void 0 : n.visibleFiveMode;
130
- return i ? i != null && i.includes(s) ? n.followModelVisibility === !0 && (s === "Floorplan" || s === "Mapview") ? this.getVisibleByFloorIndex(e) : !0 : !1 : s === "Panorama";
131
- } else if (typeof n == "function")
126
+ const n = t != null ? t : this.five.getCurrentState().mode, s = this.getTagConfig(e).visibleConfig;
127
+ if (s) {
128
+ if (typeof s == "object") {
129
+ const i = s == null ? void 0 : s.visibleFiveMode;
130
+ return i ? i != null && i.includes(n) ? s.followModelVisibility === !0 && (n === "Floorplan" || n === "Mapview") ? this.getVisibleByFloorIndex(e) : !0 : !1 : n === "Panorama";
131
+ } else if (typeof s == "function")
132
132
  return t === "Panorama";
133
133
  } else
134
- return s === "Panorama";
134
+ return n === "Panorama";
135
135
  }
136
136
  /**
137
137
  * @description 获取标签当前状态
@@ -142,21 +142,21 @@ class Ue extends S {
142
142
  return (t = this.state.visible && e.state.visible) != null ? t : !0;
143
143
  }
144
144
  getVisible(e) {
145
- const t = this.five.getCurrentState(), s = this.getVisibleByFiveMode(e), n = t.mode === "Panorama" ? this.getVisibleByPanoIndex(e, t.panoIndex) : !0;
146
- return s && n;
145
+ const t = this.five.getCurrentState(), n = this.getVisibleByFiveMode(e), s = t.mode === "Panorama" ? this.getVisibleByPanoIndex(e, t.panoIndex) : !0;
146
+ return n && s;
147
147
  }
148
148
  /** 获取当前点位上模型中的多媒体是否应该展示 */
149
149
  getModelMedialVisibleByPanoIndex(e) {
150
150
  if (!this.getCurrentVisibleState(e))
151
151
  return !1;
152
- const t = this.five.getCurrentState().panoIndex, s = this.getCache({ panoIndex: t, id: e.id });
153
- if (s.modelMedialVisible !== void 0)
154
- return s.modelMedialVisible;
155
- const n = this.getRaycasterFromPanoIndex(e, t);
156
- if (!n)
152
+ const t = this.five.getCurrentState().panoIndex, n = this.getCache({ panoIndex: t, id: e.id });
153
+ if (n.modelMedialVisible !== void 0)
154
+ return n.modelMedialVisible;
155
+ const s = this.getRaycasterFromPanoIndex(e, t);
156
+ if (!s)
157
157
  return !1;
158
- const i = this.getTagEnableByIntersect(e, n);
159
- return s.modelMedialVisible = i.value, s.__debug_visible_reason__ = i, i.value !== !1;
158
+ const i = this.getTagEnableByIntersect(e, s);
159
+ return n.modelMedialVisible = i.value, n.__debug_visible_reason__ = i, i.value !== !1;
160
160
  }
161
161
  /**
162
162
  * @description: 获取是否展开
@@ -164,9 +164,9 @@ class Ue extends S {
164
164
  getUnfoldedByPanoIndex(e, t) {
165
165
  if (!this.getVisibleByPanoIndex(e))
166
166
  return;
167
- const n = this.getCache({ panoIndex: t, id: e.id });
168
- if (n.unfolded !== void 0)
169
- return n.unfolded;
167
+ const s = this.getCache({ panoIndex: t, id: e.id });
168
+ if (s.unfolded !== void 0)
169
+ return s.unfolded;
170
170
  {
171
171
  const i = this.getTagConfig(e).unfoldedConfig;
172
172
  if (!i)
@@ -182,9 +182,9 @@ class Ue extends S {
182
182
  if (i.unfoldDistance && h(c, i.unfoldDistance) === !1)
183
183
  return !1;
184
184
  })();
185
- n.unfolded = o;
185
+ s.unfolded = o;
186
186
  const f = this.getUnfoldedByCamera(e);
187
- return f !== void 0 ? f : n.unfolded;
187
+ return f !== void 0 ? f : s.unfolded;
188
188
  }
189
189
  }
190
190
  /**
@@ -193,10 +193,10 @@ class Ue extends S {
193
193
  getUnfoldedByCamera(e) {
194
194
  return this.getVisible(e) ? (() => {
195
195
  var o;
196
- const n = this.getDistance(e), i = this.getTagConfig(e).unfoldedConfig;
196
+ const s = this.getDistance(e), i = this.getTagConfig(e).unfoldedConfig;
197
197
  if (i) {
198
198
  if (typeof i == "function")
199
- return i(this.five, { tag: e, distance: n });
199
+ return i(this.five, { tag: e, distance: s });
200
200
  if (i.keep === "folded")
201
201
  return !1;
202
202
  if (i.keep === "unfolded")
@@ -230,9 +230,15 @@ class Ue extends S {
230
230
  })() : void 0;
231
231
  }
232
232
  sort(e) {
233
- return e.sort((t, s) => {
234
- const n = this.getDistance(t), i = this.getDistance(s);
235
- return n === void 0 || i === void 0 ? 0 : i - n;
233
+ return e.sort((t, n) => {
234
+ const s = this.getDistance(t), i = this.getDistance(n);
235
+ return s === void 0 || i === void 0 ? 0 : i - s;
236
+ });
237
+ }
238
+ setTagZIndex(e) {
239
+ return e.forEach((t) => {
240
+ const n = this.getDistance(t);
241
+ t.zIndex = Math.round((n != null ? n : 0) * 100);
236
242
  });
237
243
  }
238
244
  /**
@@ -241,17 +247,17 @@ class Ue extends S {
241
247
  setPointTagPosition() {
242
248
  const e = this.filterPointTag;
243
249
  e.length !== 0 && e.forEach((t) => {
244
- var n;
245
- if (!((n = t.state) != null && n.visible)) {
250
+ var s;
251
+ if (!((s = t.state) != null && s.visible)) {
246
252
  t.screenPosition = null;
247
253
  return;
248
254
  }
249
- const s = this.getTagProject(t);
250
- if (!s) {
255
+ const n = this.getTagProject(t);
256
+ if (!n) {
251
257
  t.screenPosition = null;
252
258
  return;
253
259
  }
254
- t.screenPosition = { leftPercent: (s.x + 1) / 2 * 100, topPercent: (-s.y + 1) / 2 * 100 };
260
+ t.screenPosition = { leftPercent: (n.x + 1) / 2 * 100, topPercent: (-n.y + 1) / 2 * 100 };
255
261
  });
256
262
  }
257
263
  setVisible() {
@@ -269,23 +275,23 @@ class Ue extends S {
269
275
  setModelMedialVisible() {
270
276
  const e = this.five.getCurrentState().mode;
271
277
  this.tags.forEach((t) => {
272
- var n;
278
+ var s;
273
279
  if (!y(t))
274
280
  return;
275
- if (!((n = t.model) != null && n.object)) {
281
+ if (!((s = t.model) != null && s.object)) {
276
282
  t.mediaVisible = !1;
277
283
  return;
278
284
  }
279
- const s = e === "Panorama" ? this.getModelMedialVisibleByPanoIndex(t) : !0;
280
- t.mediaVisible = s;
285
+ const n = e === "Panorama" ? this.getModelMedialVisibleByPanoIndex(t) : !0;
286
+ t.mediaVisible = n;
281
287
  });
282
288
  }
283
289
  setUnfoldedByPanoIndex() {
284
290
  this.tags.forEach((e) => {
285
291
  const t = this.getUnfoldedByPanoIndex(e);
286
292
  if (e.state && (t !== void 0 && (e.state.unfolded = t), t && !e.state.visible)) {
287
- const s = this.getTagConfig(e);
288
- typeof s.unfoldedConfig == "object" && s.unfoldedConfig.autoFoldWhenHide !== !1 && (e.state.unfolded = !1);
293
+ const n = this.getTagConfig(e);
294
+ typeof n.unfoldedConfig == "object" && n.unfoldedConfig.autoFoldWhenHide !== !1 && (e.state.unfolded = !1);
289
295
  }
290
296
  });
291
297
  }
@@ -295,17 +301,17 @@ class Ue extends S {
295
301
  getTagProject(e) {
296
302
  if (!this.getVisible(e))
297
303
  return;
298
- const s = T(e.position);
299
- if (!s)
304
+ const n = V(e.position);
305
+ if (!n)
300
306
  return;
301
- const { x: n, y: i, z: o } = s.project(this.five.camera);
307
+ const { x: s, y: i, z: o } = n.project(this.five.camera);
302
308
  if (!(o > 1))
303
- return { x: n, y: i, z: o };
309
+ return { x: s, y: i, z: o };
304
310
  }
305
311
  /** 通过射线检测标签可用性 */
306
312
  getTagEnableByIntersect(e, t) {
307
313
  var u, v, r;
308
- const s = (u = this.getTagConfig(e).visibleConfig) != null ? u : {}, n = this.getDistance(e), [i] = this.five.model.intersectRaycaster(t), o = (() => {
314
+ const n = (u = this.getTagConfig(e).visibleConfig) != null ? u : {}, s = this.getDistance(e), [i] = this.five.model.intersectRaycaster(t), o = (() => {
309
315
  if (!y(e))
310
316
  return;
311
317
  const a = this.tags.filter(y).map((b) => {
@@ -315,34 +321,34 @@ class Ue extends S {
315
321
  return t.intersectObjects(a, !0)[0];
316
322
  })(), f = (() => {
317
323
  var a;
318
- return typeof s == "object" && typeof s.intersectRaycaster == "object" && (a = s.intersectRaycaster.distanceAccuracy) != null ? a : 0.01;
324
+ return typeof n == "object" && typeof n.intersectRaycaster == "object" && (a = n.intersectRaycaster.distanceAccuracy) != null ? a : 0.01;
319
325
  })(), c = Math.min((v = i == null ? void 0 : i.distance) != null ? v : 1 / 0, (r = o == null ? void 0 : o.distance) != null ? r : 1 / 0);
320
- return c + f < n ? {
326
+ return c + f < s ? {
321
327
  value: !1,
322
- reason: `intersectRaycaster check failed: distance is ${n}, intersection.distance is ${i == null ? void 0 : i.distance}, intersection.point is ${i == null ? void 0 : i.point.toArray()},
328
+ reason: `intersectRaycaster check failed: distance is ${s}, intersection.distance is ${i == null ? void 0 : i.distance}, intersection.point is ${i == null ? void 0 : i.point.toArray()},
323
329
  customModelIntersection.point is ${o == null ? void 0 : o.point.toArray()}, minIntersectionDistance is ${c}`
324
330
  } : { value: !0, reason: "" };
325
331
  }
326
332
  /** 获取点位看向标签的射线 */
327
333
  getRaycasterFromPanoIndex(e, t) {
328
334
  var o;
329
- const s = (o = this.five.work.observers[t]) == null ? void 0 : o.position;
330
- if (s === void 0)
331
- throw new Error(`getVisible(): observerPosition is ${s}`);
332
- const n = T(e.position);
333
- if (!n)
335
+ const n = (o = this.five.work.observers[t]) == null ? void 0 : o.position;
336
+ if (n === void 0)
337
+ throw new Error(`getVisible(): observerPosition is ${n}`);
338
+ const s = V(e.position);
339
+ if (!s)
334
340
  return;
335
- const i = n.sub(s).normalize();
336
- return this.raycaster.set(s, i), this.raycaster;
341
+ const i = s.sub(n).normalize();
342
+ return this.raycaster.set(n, i), this.raycaster;
337
343
  }
338
344
  /** 检测是否匹配当前楼层 */
339
345
  getVisibleByFloorIndex(e) {
340
346
  var i, o, f, c, u, v, r;
341
347
  let t = 0;
342
- const s = (i = e.fiveState) == null ? void 0 : i.panoIndex;
343
- s !== void 0 ? t = (o = this.five.work.observers[s]) == null ? void 0 : o.floorIndex : t = E(this.five.work.observers, (r = (v = (c = (f = e.model) == null ? void 0 : f.object) == null ? void 0 : c.position) != null ? v : (u = e.mediaPlane) == null ? void 0 : u.position) != null ? r : k(e));
344
- const n = this.five.model.shownFloor;
345
- return n === null || n === t;
348
+ const n = (i = e.fiveState) == null ? void 0 : i.panoIndex;
349
+ n !== void 0 ? t = (o = this.five.work.observers[n]) == null ? void 0 : o.floorIndex : t = E(this.five.work.observers, (r = (v = (c = (f = e.model) == null ? void 0 : f.object) == null ? void 0 : c.position) != null ? v : (u = e.mediaPlane) == null ? void 0 : u.position) != null ? r : k(e));
350
+ const s = this.five.model.shownFloor;
351
+ return s === null || s === t;
346
352
  }
347
353
  }
348
354
  export {
@@ -23,8 +23,8 @@ import O from "../Components/TagContainer.js";
23
23
  import A from "../Components/Tag/index.js";
24
24
  import { arrayPositionToVector3 as y } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
25
25
  import { centerPoint as x } from "../../shared-utils/three/centerPoint.js";
26
- import { isMediaModelTag as P, isStickModelTag as G } from "../utils/tag/tagCheck.js";
27
- import { CSS3DRenderPlugin as I } from "../../CSS3DRenderPlugin/index.js";
26
+ import { isMediaModelTag as P, isStickModelTag as I } from "../utils/tag/tagCheck.js";
27
+ import { CSS3DRenderPlugin as G } from "../../CSS3DRenderPlugin/index.js";
28
28
  import { loadGLTF as V } from "../../shared-utils/three/GLTFLoader.js";
29
29
  import { VideoPlane as M, ImagePlane as j } from "../utils/model/mediaPlane.js";
30
30
  import "../utils/tagPosition.js";
@@ -265,7 +265,7 @@ class ei extends w {
265
265
  } else {
266
266
  if (P(e) && !((o = e.model) != null && o.object) || ((i = e.state) == null ? void 0 : i.visible) === !1 || !this.state.visible || !this.state.enabled)
267
267
  return;
268
- if (this.css3DRenderPlugin || (this.css3DRenderPlugin = I(this.five)), e.stickType === "3DPoint" && !e.normal)
268
+ if (this.css3DRenderPlugin || (this.css3DRenderPlugin = G(this.five)), e.stickType === "3DPoint" && !e.normal)
269
269
  return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
270
270
  const r = this.getPositions(e);
271
271
  if (!r)
@@ -358,7 +358,7 @@ class ei extends w {
358
358
  /** 添加模型标签 */
359
359
  addMediaModelTag(t) {
360
360
  return C(this, null, function* () {
361
- const e = t.filter(G).map((o) => this.loadModel(o));
361
+ const e = t.filter(I).map((o) => this.loadModel(o));
362
362
  yield Promise.all(e), this.setModelMedialVisible(), this.updateRenderAllTags();
363
363
  });
364
364
  }
@@ -367,8 +367,8 @@ class ei extends w {
367
367
  */
368
368
  updateRenderPointTag() {
369
369
  var e;
370
- const t = this.sort(this.filterPointTag);
371
- if (this.setPointTagPosition(), this.TagContainerSvelte)
370
+ const t = this.filterPointTag;
371
+ if (this.setTagZIndex(t), this.setPointTagPosition(), this.TagContainerSvelte)
372
372
  this.TagContainerSvelte.$set({ tags: t, state: this.state, temporaryState: this.temporaryState });
373
373
  else {
374
374
  const o = (e = this.five.getElement()) == null ? void 0 : e.parentElement;
@@ -131,7 +131,7 @@ class Pe extends b {
131
131
  updateTagConfig(e) {
132
132
  e != null && e.force && this.clearCache(), this.tags.forEach((i) => {
133
133
  const t = this.getTagConfig(i);
134
- i.config = t, i.data = T({}, i.data, t.initialData);
134
+ i.config = t, i.data = T({}, t.initialData, i.data);
135
135
  });
136
136
  }
137
137
  can(e, i) {
@@ -2,32 +2,32 @@ var E = Object.defineProperty, F = Object.defineProperties;
2
2
  var w = Object.getOwnPropertyDescriptors;
3
3
  var C = Object.getOwnPropertySymbols;
4
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, f = (h, a) => {
5
+ var b = (d, a, e) => a in d ? E(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, f = (d, a) => {
6
6
  for (var e in a || (a = {}))
7
- U.call(a, e) && v(h, e, a[e]);
7
+ U.call(a, e) && b(d, e, a[e]);
8
8
  if (C)
9
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 p = (h, a, e) => new Promise((t, i) => {
10
+ I.call(a, e) && b(d, e, a[e]);
11
+ return d;
12
+ }, u = (d, a) => F(d, w(a));
13
+ var m = (d, a, e) => (b(d, typeof a != "symbol" ? a + "" : a, e), e);
14
+ var p = (d, a, e) => new Promise((t, i) => {
15
15
  var s = (r) => {
16
16
  try {
17
17
  n(e.next(r));
18
- } catch (d) {
19
- i(d);
18
+ } catch (h) {
19
+ i(h);
20
20
  }
21
21
  }, o = (r) => {
22
22
  try {
23
23
  n(e.throw(r));
24
- } catch (d) {
25
- i(d);
24
+ } catch (h) {
25
+ i(h);
26
26
  }
27
27
  }, n = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(s, o);
28
- n((e = e.apply(h, a)).next());
28
+ n((e = e.apply(d, a)).next());
29
29
  });
30
- import * as b from "three";
30
+ import * as T from "three";
31
31
  import { Subscribe as B } from "@realsee/five";
32
32
  import { objectAssignDeepExports as c } from "../../vendor/object-assign-deep/objectAssignDeep.js";
33
33
  import { arrayPositionToVector3 as A } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
@@ -38,8 +38,8 @@ import { debounce as D } from "../utils/debounce.js";
38
38
  import { throttle as _ } from "../utils/throttle.js";
39
39
  import { resizeObserver as S } from "../utils/resizeObserver.js";
40
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";
41
+ import { generateBlankAudio as G, AudioNamespace as N } from "../../shared-utils/audio.js";
42
+ import { TagRender as V } from "./TagRender.js";
43
43
  import { uuid as z } from "../../shared-utils/uuid.js";
44
44
  import "hammerjs";
45
45
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
@@ -158,35 +158,35 @@ import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
158
158
  import "../../shared-utils/three/GLTFLoader.js";
159
159
  import "@realsee/five/gltf-loader";
160
160
  import "../../shared-utils/animationFrame/index.js";
161
- const M = "Dnalogel-PanoTagPlugin", pi = (h) => `${M}--${h}`;
162
- class ci extends N {
161
+ const M = "Dnalogel-PanoTagPlugin", pi = (d) => `${M}--${d}`;
162
+ class ci extends V {
163
163
  constructor(e, t) {
164
164
  super(e);
165
165
  /** state */
166
- g(this, "state", { enabled: !0, visible: !0 });
166
+ m(this, "state", { enabled: !0, visible: !0 });
167
167
  /** 插件参数 */
168
- g(this, "params");
168
+ m(this, "params");
169
169
  /** debug */
170
- g(this, "debug");
170
+ m(this, "debug");
171
171
  /** 更改 tag 模型 */
172
- g(this, "changeTagModel", (e, t) => p(this, null, function* () {
172
+ m(this, "changeTagModel", (e, t) => p(this, null, function* () {
173
173
  e.data = c({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
174
174
  }));
175
- g(this, "handleFiveInitAnimationEnded", () => {
175
+ m(this, "handleFiveInitAnimationEnded", () => {
176
176
  const e = this.five.getCurrentState().mode;
177
177
  this.tags.forEach((t) => {
178
178
  y(t) && e === "Panorama" && this.changeTagMode(t, "front"), t.state.visible = this.getVisible(t);
179
179
  }), this.updateRenderAllTags();
180
180
  });
181
181
  /** 楼层切换时,需要更新标签可见性 */
182
- g(this, "handleFiveModelShownFloorChange", () => {
182
+ m(this, "handleFiveModelShownFloorChange", () => {
183
183
  this.tags.forEach((e) => {
184
184
  var i, s;
185
185
  const t = this.getTagConfig(e).visibleConfig;
186
186
  typeof t == "object" && ((i = t.visibleFiveMode) != null && i.includes("Floorplan") || (s = t.visibleFiveMode) != null && s.includes("Mapview")) && (e.state.visible = this.getVisibleByFiveMode(e));
187
187
  }), this.updateRenderAllTags();
188
188
  });
189
- this.params = c({}, { debug: !1, config: this.config }, f({}, t)), this.debug = this.params.debug, this.config = this.params.config, G(1, { namespace: V.PlayAudio });
189
+ this.params = c({}, { debug: !1, config: this.config }, f({}, t)), this.debug = this.params.debug, this.config = this.params.config, G(1, { namespace: N.PlayAudio });
190
190
  try {
191
191
  const i = window;
192
192
  Array.isArray(i.__PANOTAGPLUGIN_DEBUG_LIST__) || (i.__PANOTAGPLUGIN_DEBUG_LIST__ = []), i.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), i.__PANOTAGPLUGIN_DEBUG__ = this;
@@ -219,12 +219,12 @@ class ci extends N {
219
219
  addTag(e, t) {
220
220
  return p(this, null, function* () {
221
221
  const s = (Array.isArray(e) ? e : [e]).map((o) => {
222
- var d, l;
223
- const n = this.getTagConfig(o);
222
+ var l, g;
223
+ const n = this.getTagConfig(o), r = JSON.parse(JSON.stringify(o.data));
224
224
  return u(f({}, o), {
225
- enabled: (d = o.enabled) != null ? d : !0,
226
- id: (l = o.id) != null ? l : z(),
227
- data: c({}, n.initialData, o.data),
225
+ enabled: (l = o.enabled) != null ? l : !0,
226
+ id: (g = o.id) != null ? g : z(),
227
+ data: c(o.data, n.initialData, r),
228
228
  state: f({
229
229
  visible: void 0,
230
230
  unfolded: !this.can("fold", o)
@@ -236,7 +236,8 @@ class ci extends N {
236
236
  fold: () => this.changeUnfoldedById(o.id, !1),
237
237
  enable: () => this.changeEnabledById(o.id, !0),
238
238
  disable: () => this.changeEnabledById(o.id, !1),
239
- destroy: () => this.destroyTagById(o.id)
239
+ destroy: () => this.destroyTagById(o.id),
240
+ changeData: (v) => this.changeDataById(o.id, v)
240
241
  });
241
242
  }).filter((o) => o.position);
242
243
  return s.forEach(L), this.tags.push(...s), k(this.five).then(() => p(this, null, function* () {
@@ -303,8 +304,8 @@ class ci extends N {
303
304
  dispose() {
304
305
  var e, t, i, s, o, n;
305
306
  this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filterCSS3DTag.forEach((r) => {
306
- var d;
307
- return (d = r.tag3DContentSvelte) == null ? void 0 : d.svelteApp.$destroy();
307
+ var h;
308
+ return (h = r.tag3DContentSvelte) == null ? void 0 : h.svelteApp.$destroy();
308
309
  }), 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");
309
310
  }
310
311
  changeUnfoldedById(e, t) {
@@ -337,7 +338,7 @@ class ci extends N {
337
338
  changeDataById(e, t, i = !0) {
338
339
  const s = this.getTagById(e);
339
340
  let o = !1;
340
- s && (s.data && (o = !0), i ? s.data = c({}, s.data, t) : s.data = f(f({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags(), o && s.hooks.emit("dataChanged", s.data));
341
+ s && (s.data && (o = !0), i ? s.data = c(s.data, t) : s.data = f(f({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags(), o && s.hooks.emit("dataChanged", s.data));
341
342
  }
342
343
  /**
343
344
  * @description: 改变tag的stickType
@@ -398,9 +399,9 @@ class ci extends N {
398
399
  * @description: 添加 cameraUpdate, panoArrived 等事件监听
399
400
  */
400
401
  addEventListener() {
401
- 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), l = this.clickhandler.bind(this), m = this.five.currentMode;
402
- 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", l), () => {
403
- 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", l), this.store.eventListenerDisposer = void 0;
402
+ 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), h = this.loadVideoFirstFrame.bind(this), l = this.clickhandler.bind(this), g = this.five.currentMode;
403
+ return g && this.handleFiveModeChange(g), 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", h), t.on("click", l), () => {
404
+ 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", h), t.off("click", l), this.store.eventListenerDisposer = void 0;
404
405
  };
405
406
  }
406
407
  addResizeListener() {
@@ -488,17 +489,17 @@ class ci extends N {
488
489
  var o, n;
489
490
  return (n = (o = s.config) == null ? void 0 : o.modelConfig) == null ? void 0 : n.autoLookAtEnabled;
490
491
  }).forEach((s) => {
491
- var T;
492
- const o = new b.Mesh(new b.BoxGeometry(), new b.MeshBasicMaterial()), n = (T = s.model) == null ? void 0 : T.object;
492
+ var v;
493
+ const o = new T.Mesh(new T.BoxGeometry(), new T.MeshBasicMaterial()), n = (v = s.model) == null ? void 0 : v.object;
493
494
  if (!n)
494
495
  return;
495
496
  o.position.copy(n.position), o.quaternion.copy(n.quaternion);
496
497
  const r = this.five.camera.position;
497
498
  o.lookAt(r.clone().setY(o.position.y));
498
- const d = n.quaternion.clone(), l = o.quaternion.clone(), m = x();
499
- m.onUpdate(({ progress: P }) => {
500
- n.quaternion.copy(d.clone().slerp(l, P));
501
- }), m.play();
499
+ const h = n.quaternion.clone(), l = o.quaternion.clone(), g = x();
500
+ g.onUpdate(({ progress: P }) => {
501
+ n.quaternion.copy(h.clone().slerp(l, P));
502
+ }), g.play();
502
503
  }), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
503
504
  });
504
505
  }
@@ -513,8 +514,8 @@ class ci extends N {
513
514
  });
514
515
  }
515
516
  changeTagMode(e, t) {
516
- var i, s, o, n, r, d;
517
- ((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((l) => l == null ? void 0 : l()), e.tag3DContentSvelte = void 0);
517
+ var i, s, o, n, r, h;
518
+ ((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 } }, (h = this.store.css3DRenderDisposer.get(e.id)) == null || h.forEach((l) => l == null ? void 0 : l()), e.tag3DContentSvelte = void 0);
518
519
  }
519
520
  }
520
521
  export {
@@ -37,7 +37,7 @@ export type Tag<C extends TagContentType = TagContentType, S extends StickType =
37
37
  /** 「展开/收起」 「可见/不可见」 的策略配置 */
38
38
  config?: TagConfig<C>;
39
39
  /** 打标签时的 five state */
40
- fiveState?: FiveState;
40
+ fiveState?: Partial<FiveState>;
41
41
  /** 样式 */
42
42
  style?: TagStyle;
43
43
  } & (S extends '3DPoint' ? {
@@ -1,7 +1,7 @@
1
1
  import type { Tag } from './Tag';
2
2
  import type TagContentSvelte from '../../Components/Tag/index.svelte';
3
3
  import type { TagContentType } from './TagData';
4
- import type { StickType, TagGLTFObject } from './Utils';
4
+ import type { PartialObjectDeep, StickType, TagGLTFObject } from './Utils';
5
5
  import type { Create3DDomContainerReturnType } from '../../../CSS3DRenderPlugin';
6
6
  import type { Vector3 } from 'three';
7
7
  import type { ImagePlane, VideoPlane } from '../../utils/model/mediaPlane';
@@ -15,6 +15,7 @@ export type TagInstance<C extends TagContentType = TagContentType, S extends Sti
15
15
  leftPercent: number;
16
16
  topPercent: number;
17
17
  } | null;
18
+ zIndex?: number;
18
19
  temporaryState: {
19
20
  visible: boolean;
20
21
  };
@@ -47,5 +48,6 @@ export type TagInstance<C extends TagContentType = TagContentType, S extends Sti
47
48
  enable: () => void;
48
49
  disable: () => void;
49
50
  destroy: () => void;
51
+ changeData: (data: PartialObjectDeep<TagInstance<C>['data']>) => void;
50
52
  };
51
53
  export {};
@@ -14,7 +14,7 @@ let n = class {
14
14
  /**
15
15
  * @realsee/dnalogel 版本号
16
16
  */
17
- e(this, "VERSION", "2.20.0-dev.9");
17
+ e(this, "VERSION", "2.20.0");
18
18
  e(this, "five");
19
19
  /**
20
20
  * 插件事件钩子
@@ -21,7 +21,7 @@ function x(o) {
21
21
  paddingRight: "4px",
22
22
  pointerEvents: "none",
23
23
  userSelect: "none",
24
- zIndex: "9999",
24
+ zIndex: "99999",
25
25
  backgroundColor: "rgba(0,0,0,0.7)",
26
26
  fontSize: "12px",
27
27
  color: "#fff",
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.info(
3
- "%c %c@realsee/dnalogel %cv2.20.0-dev.9",
3
+ "%c %c@realsee/dnalogel %cv2.20.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",