@realsee/dnalogel 3.71.4 → 3.71.5-alpha.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 (510) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/PanoTagPlugin/controller/Tag/BaseTag.d.ts +3 -0
  3. package/dist/PanoTagPlugin/controller/Tag/PlaneTag.d.ts +8 -1
  4. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +8 -0
  5. package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +19 -1
  6. package/dist/index.cjs.js +124 -124
  7. package/dist/index.js +17744 -17529
  8. package/dist/index.umd.js +116 -116
  9. package/dist/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +2 -1
  10. package/dist/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +2 -0
  11. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +2 -2
  12. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +2 -2
  13. package/docs/classes/CSS3DRender.html +2 -2
  14. package/docs/classes/GuideLineItem.GuideLineItem.html +2 -2
  15. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +2 -2
  16. package/docs/classes/ModelMakerPluginInstance.html +2 -2
  17. package/docs/classes/ModelMakerPluginType.ModelMakerBoxItem.html +2 -2
  18. package/docs/classes/ModelMakerPluginType.ModelMakerPolygonItem.html +2 -2
  19. package/docs/classes/ModelMakerPluginType.ModelMakerPrismItem.html +2 -2
  20. package/docs/classes/ModelRoomLabelController.html +2 -2
  21. package/docs/classes/MoveController.html +2 -2
  22. package/docs/classes/Object3DHelperController.html +2 -2
  23. package/docs/classes/PaintBrush.html +2 -2
  24. package/docs/classes/PanoMeasurePluginLine.html +2 -2
  25. package/docs/classes/PanoMeasurePluginModel.html +2 -2
  26. package/docs/classes/PanoMeasurePluginPoint.html +2 -2
  27. package/docs/classes/PanoMeasurePluginPolyline.html +2 -2
  28. package/docs/classes/PanoTagPluginController.html +18 -18
  29. package/docs/classes/Sculpt.html +2 -2
  30. package/docs/classes/Util.BetterTween.html +2 -2
  31. package/docs/classes/Util.FiveDomEvents.html +2 -2
  32. package/docs/classes/Util.FivePuppet.html +2 -2
  33. package/docs/classes/Util.Interval.html +2 -2
  34. package/docs/classes/Util.LegacyPointHelper.html +2 -2
  35. package/docs/classes/Util.LightTag.html +2 -2
  36. package/docs/classes/Util.LineSegments.html +2 -2
  37. package/docs/classes/Util.Magnifier.html +2 -2
  38. package/docs/classes/Util.Object3D.html +2 -2
  39. package/docs/classes/Util.PointDomHelper.html +2 -2
  40. package/docs/classes/Util.PointHelper.html +2 -2
  41. package/docs/classes/Util.PointSelector.html +2 -2
  42. package/docs/classes/Util.PointSelectorHelper.html +2 -2
  43. package/docs/classes/Util.Rectangle.html +2 -2
  44. package/docs/classes/Util.sculpt.BaseEditor.html +2 -2
  45. package/docs/classes/Util.sculpt.BoxMesh.html +2 -2
  46. package/docs/classes/Util.sculpt.BoxMeshEditor.html +2 -2
  47. package/docs/classes/Util.sculpt.CircleMesh.html +2 -2
  48. package/docs/classes/Util.sculpt.CircleMeshEditor.html +2 -2
  49. package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +2 -2
  50. package/docs/classes/Util.sculpt.CylinderMesh.html +2 -2
  51. package/docs/classes/Util.sculpt.CylinderMeshEditor.html +2 -2
  52. package/docs/classes/Util.sculpt.LineMesh.html +2 -2
  53. package/docs/classes/Util.sculpt.PointMesh.html +2 -2
  54. package/docs/classes/Util.sculpt.PolygonMesh.html +2 -2
  55. package/docs/classes/Util.sculpt.PrismMesh.html +2 -2
  56. package/docs/classes/Util.sculpt.PrismMeshEditor.html +2 -2
  57. package/docs/classes/Util.sculpt.RectangleMesh.html +2 -2
  58. package/docs/classes/Util.sculpt.RectangleMeshEditor.html +2 -2
  59. package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +2 -2
  60. package/docs/classes/WalkController.html +2 -2
  61. package/docs/enums/CameraMovementEffect.html +2 -2
  62. package/docs/enums/ContentType.html +2 -2
  63. package/docs/enums/DIRECTION.html +2 -2
  64. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
  65. package/docs/enums/DimensionType.html +2 -2
  66. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
  67. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
  68. package/docs/enums/PaintBrushTypeEnum.html +2 -2
  69. package/docs/enums/PointType.html +2 -2
  70. package/docs/enums/Rotation.html +2 -2
  71. package/docs/functions/AreaMakerPlugin.html +1 -1
  72. package/docs/functions/CSS3DRenderPlugin.html +1 -1
  73. package/docs/functions/CameraMovementPlugin.html +2 -2
  74. package/docs/functions/CruisePlugin.html +1 -1
  75. package/docs/functions/CurrentPanoImagePlugin.html +1 -1
  76. package/docs/functions/FloorplanGuidePlugin.html +1 -1
  77. package/docs/functions/GuideLinePlugin.html +1 -1
  78. package/docs/functions/ItemLabelPlugin.html +1 -1
  79. package/docs/functions/MapviewFloorplanPlugin.html +1 -1
  80. package/docs/functions/MeasurePlugin.html +1 -1
  81. package/docs/functions/ModelChassisCompassPlugin.html +2 -2
  82. package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
  83. package/docs/functions/ModelFloorplanPlugin.html +1 -1
  84. package/docs/functions/ModelItemLabelPlugin.html +1 -1
  85. package/docs/functions/ModelMakerPlugin.html +1 -1
  86. package/docs/functions/ModelRoomLabelPlugin.html +1 -1
  87. package/docs/functions/ModelTVVideoPlugin.html +1 -1
  88. package/docs/functions/ModelViewPlugin.html +2 -2
  89. package/docs/functions/MovePlugin.html +1 -1
  90. package/docs/functions/Object3DHelperPlugin.html +1 -1
  91. package/docs/functions/PanoCompassPlugin.html +1 -1
  92. package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
  93. package/docs/functions/PanoDoorLabelPlugin.html +1 -1
  94. package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
  95. package/docs/functions/PanoMeasurePlugin.html +1 -1
  96. package/docs/functions/PanoRulerPlugin.html +2 -2
  97. package/docs/functions/PanoRulerProPlugin.html +2 -2
  98. package/docs/functions/PanoSpatialTagPlugin.html +2 -2
  99. package/docs/functions/PanoTagPlugin.html +1 -1
  100. package/docs/functions/PanoVideoPlugin.html +2 -2
  101. package/docs/functions/PipelinePlugin.html +1 -1
  102. package/docs/functions/SculptPlugin.html +2 -2
  103. package/docs/functions/SculptPluginForFive.html +2 -2
  104. package/docs/functions/TopviewFloorplanPlugin.html +1 -1
  105. package/docs/functions/Util.awaitNextFrame.html +1 -1
  106. package/docs/functions/Util.blink.html +2 -2
  107. package/docs/functions/Util.blinkWithPreset.html +2 -2
  108. package/docs/functions/Util.bounding.html +1 -1
  109. package/docs/functions/Util.boundingBox.html +1 -1
  110. package/docs/functions/Util.boundingSphere.html +1 -1
  111. package/docs/functions/Util.boxVertex.html +2 -2
  112. package/docs/functions/Util.boxVertexes.html +1 -1
  113. package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
  114. package/docs/functions/Util.cleanup.html +2 -2
  115. package/docs/functions/Util.convexHull.html +2 -2
  116. package/docs/functions/Util.equal.html +2 -2
  117. package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
  118. package/docs/functions/Util.getCoordsFromClient.html +1 -1
  119. package/docs/functions/Util.getCoordsFromElement.html +1 -1
  120. package/docs/functions/Util.getFrameTime.html +2 -2
  121. package/docs/functions/Util.getIntersectFromRelativePosition.html +1 -1
  122. package/docs/functions/Util.getRaycasterFromFivePointer.html +1 -1
  123. package/docs/functions/Util.initialCSS3DRender.html +1 -1
  124. package/docs/functions/Util.inside.html +1 -1
  125. package/docs/functions/Util.isModelLike.html +1 -1
  126. package/docs/functions/Util.isNil.html +2 -2
  127. package/docs/functions/Util.isPanoramaLike.html +1 -1
  128. package/docs/functions/Util.lookObject.html +2 -2
  129. package/docs/functions/Util.lookPoint.html +2 -2
  130. package/docs/functions/Util.nextFrame.html +1 -1
  131. package/docs/functions/Util.notNil.html +2 -2
  132. package/docs/functions/Util.reblink.html +2 -2
  133. package/docs/functions/Util.replaceStaticPrefix.html +2 -2
  134. package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
  135. package/docs/functions/Util.sculpt.createBox.html +1 -1
  136. package/docs/functions/Util.sculpt.createCircle.html +1 -1
  137. package/docs/functions/Util.sculpt.createCylinder.html +1 -1
  138. package/docs/functions/Util.sculpt.createLine.html +2 -2
  139. package/docs/functions/Util.sculpt.createPoint.html +1 -1
  140. package/docs/functions/Util.sculpt.createPolygon.html +1 -1
  141. package/docs/functions/Util.sculpt.createPrism.html +1 -1
  142. package/docs/functions/Util.sculpt.createRectangle.html +2 -2
  143. package/docs/functions/Util.tag.html +1 -1
  144. package/docs/functions/Util.tweenProgress.html +1 -1
  145. package/docs/functions/Util.uuid.html +2 -2
  146. package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
  147. package/docs/functions/Util.worldBounding.html +1 -1
  148. package/docs/functions/Util.worldBoundingBox.html +1 -1
  149. package/docs/functions/Util.worldBoundingSphere.html +1 -1
  150. package/docs/functions/createPolyline.html +2 -2
  151. package/docs/functions/pluginFlag.html +1 -1
  152. package/docs/hierarchy.html +1 -1
  153. package/docs/index.html +2 -2
  154. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +2 -2
  155. package/docs/interfaces/AreaMakerPluginType.Config.html +2 -2
  156. package/docs/interfaces/AreaMakerPluginType.EventMap.html +2 -2
  157. package/docs/interfaces/AreaMakerPluginType.Params.html +2 -2
  158. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +2 -2
  159. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +2 -2
  160. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +2 -2
  161. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +2 -2
  162. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
  163. package/docs/interfaces/AreaMakerPluginType.State.html +2 -2
  164. package/docs/interfaces/BoxAnimationConfig.html +2 -2
  165. package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
  166. package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
  167. package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
  168. package/docs/interfaces/ContentTypeMapInterface.html +2 -2
  169. package/docs/interfaces/CruisePluginTypes.Config.html +2 -2
  170. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
  171. package/docs/interfaces/CruisePluginTypes.EventMap.html +2 -2
  172. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +2 -2
  173. package/docs/interfaces/CruisePluginTypes.MoveAction.html +2 -2
  174. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +2 -2
  175. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +2 -2
  176. package/docs/interfaces/CruisePluginTypes.PluginData.html +2 -2
  177. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
  178. package/docs/interfaces/CruisePluginTypes.PluginState.html +2 -2
  179. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +2 -2
  180. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +2 -2
  181. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +2 -2
  182. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
  183. package/docs/interfaces/CurrentPanoImagePluginType.State.html +2 -2
  184. package/docs/interfaces/FloorplanBounding.html +2 -2
  185. package/docs/interfaces/FloorplanData.html +2 -2
  186. package/docs/interfaces/FloorplanEntrance.html +2 -2
  187. package/docs/interfaces/FloorplanExtraObject.html +2 -2
  188. package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
  189. package/docs/interfaces/FloorplanFloorData.html +2 -2
  190. package/docs/interfaces/FloorplanImagePosition.html +2 -2
  191. package/docs/interfaces/FloorplanObserver.html +2 -2
  192. package/docs/interfaces/FloorplanOutlineItem.html +2 -2
  193. package/docs/interfaces/FloorplanPosition.html +2 -2
  194. package/docs/interfaces/FloorplanRoomItem.html +2 -2
  195. package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
  196. package/docs/interfaces/FloorplanServerBounding.html +2 -2
  197. package/docs/interfaces/FloorplanServerComputedData.html +2 -2
  198. package/docs/interfaces/FloorplanServerData.html +2 -2
  199. package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
  200. package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
  201. package/docs/interfaces/FloorplanServerEntrance.html +2 -2
  202. package/docs/interfaces/FloorplanServerFloorData.html +2 -2
  203. package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
  204. package/docs/interfaces/FloorplanServerObserver.html +2 -2
  205. package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
  206. package/docs/interfaces/FloorplanServerPosition.html +2 -2
  207. package/docs/interfaces/FloorplanServerRoomItem.html +2 -2
  208. package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
  209. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
  210. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +2 -2
  211. package/docs/interfaces/GuideLinePluginType.EventMap.html +2 -2
  212. package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +2 -2
  213. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +2 -2
  214. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
  215. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +2 -2
  216. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +2 -2
  217. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
  218. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +2 -2
  219. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
  220. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +2 -2
  221. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
  222. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
  223. package/docs/interfaces/GuideLinePluginType.PluginState.html +2 -2
  224. package/docs/interfaces/GuideLinePluginType.Route.html +2 -2
  225. package/docs/interfaces/HelperOffset.html +2 -2
  226. package/docs/interfaces/ImagePlaneGroup.html +2 -2
  227. package/docs/interfaces/ItemLabelPluginData.html +2 -2
  228. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
  229. package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
  230. package/docs/interfaces/MinMax.html +2 -2
  231. package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
  232. package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
  233. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
  234. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
  235. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
  236. package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
  237. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
  238. package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
  239. package/docs/interfaces/ModelMakerPluginType.BoxItemObjectData.html +2 -2
  240. package/docs/interfaces/ModelMakerPluginType.EventMap.html +2 -2
  241. package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.html +2 -2
  242. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +2 -2
  243. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +2 -2
  244. package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
  245. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +2 -2
  246. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +2 -2
  247. package/docs/interfaces/ModelMakerPluginType.State.html +2 -2
  248. package/docs/interfaces/ModelMakerPluginType.TrianglesItemObjectData.html +2 -2
  249. package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
  250. package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
  251. package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
  252. package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
  253. package/docs/interfaces/ModelViewPluginExportType.html +2 -2
  254. package/docs/interfaces/Object3DHelperState.html +2 -2
  255. package/docs/interfaces/ObjectHelperControllers.html +2 -2
  256. package/docs/interfaces/PaintBrushAction.html +2 -2
  257. package/docs/interfaces/PaintBrushConfigs.html +2 -2
  258. package/docs/interfaces/PaintBrushState.html +2 -2
  259. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +2 -2
  260. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  261. package/docs/interfaces/PanoMeasureParameterType.html +2 -2
  262. package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
  263. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +2 -2
  264. package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
  265. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +2 -2
  266. package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
  267. package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
  268. package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
  269. package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
  270. package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
  271. package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
  272. package/docs/interfaces/PanoRulerProPluginState.html +2 -2
  273. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  274. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  275. package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
  276. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
  277. package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
  278. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
  279. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
  280. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
  281. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
  282. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +2 -2
  283. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +2 -2
  284. package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
  285. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +2 -2
  286. package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
  287. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +2 -2
  288. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +2 -2
  289. package/docs/interfaces/PluginEventMap.html +2 -2
  290. package/docs/interfaces/Point.html +2 -2
  291. package/docs/interfaces/Room.html +2 -2
  292. package/docs/interfaces/RoomInfo.html +2 -2
  293. package/docs/interfaces/RoomLabel.html +2 -2
  294. package/docs/interfaces/RoomRules.html +1 -1
  295. package/docs/interfaces/Rooms.html +1 -1
  296. package/docs/interfaces/Scissor.html +2 -2
  297. package/docs/interfaces/SculptConfig.html +2 -2
  298. package/docs/interfaces/State.html +2 -2
  299. package/docs/interfaces/TagCacheInterface.html +2 -2
  300. package/docs/interfaces/TagConfig.html +11 -11
  301. package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
  302. package/docs/interfaces/TagIconAnimationConfig.html +2 -2
  303. package/docs/interfaces/TagIconUrl.html +2 -2
  304. package/docs/interfaces/TagObjectGroup.html +2 -2
  305. package/docs/interfaces/TagState.html +2 -2
  306. package/docs/interfaces/TagStyle.html +2 -2
  307. package/docs/interfaces/Tags.html +2 -2
  308. package/docs/interfaces/TemporaryState.html +2 -2
  309. package/docs/interfaces/Util.AnimeInstance.html +2 -2
  310. package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
  311. package/docs/interfaces/Util.EventHandlerConfig.html +2 -2
  312. package/docs/interfaces/Util.FiveDomEvent.html +2 -2
  313. package/docs/interfaces/Util.FiveDomEventMap.html +2 -2
  314. package/docs/interfaces/Util.LegacyMouseGroupParameter.html +2 -2
  315. package/docs/interfaces/Util.MagnifierParameter.html +2 -2
  316. package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
  317. package/docs/interfaces/Util.ObjectInitialState.html +2 -2
  318. package/docs/interfaces/Util.PointIntersection.html +2 -2
  319. package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
  320. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +2 -2
  321. package/docs/modules/AreaMakerPluginType.html +2 -2
  322. package/docs/modules/CruisePluginTypes.html +2 -2
  323. package/docs/modules/CurrentPanoImagePluginType.html +2 -2
  324. package/docs/modules/GuideLineItem.html +2 -2
  325. package/docs/modules/GuideLineModeItem.html +2 -2
  326. package/docs/modules/GuideLinePluginType.html +2 -2
  327. package/docs/modules/ModelMakerPluginType.html +2 -2
  328. package/docs/modules/PanoVideoPluginType.html +2 -2
  329. package/docs/modules/SculptData.html +2 -2
  330. package/docs/modules/SculptType.html +2 -2
  331. package/docs/modules/Util.html +2 -2
  332. package/docs/modules/Util.sculpt.html +2 -2
  333. package/docs/modules.html +2 -2
  334. package/docs/types/AddObject3DHelperConfig.html +2 -2
  335. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
  336. package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
  337. package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
  338. package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
  339. package/docs/types/ArrayPosition.html +1 -1
  340. package/docs/types/AudioAppearance.html +1 -1
  341. package/docs/types/CSS3DRenderExportType.html +1 -1
  342. package/docs/types/CSS3DRenderPluginExportType.html +1 -1
  343. package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
  344. package/docs/types/ClassFunctionParameters.html +1 -1
  345. package/docs/types/Color.html +1 -1
  346. package/docs/types/ContentTypeConfigKey.html +1 -1
  347. package/docs/types/ContentTypeConfigKeySplit.html +1 -1
  348. package/docs/types/ContentTypeMap.html +1 -1
  349. package/docs/types/Create3DDomContainerReturnType.html +1 -1
  350. package/docs/types/Create3DElementReturnType.html +1 -1
  351. package/docs/types/CruisePluginExportType.html +1 -1
  352. package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
  353. package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
  354. package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
  355. package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
  356. package/docs/types/DeprecatedTagProperty.html +2 -2
  357. package/docs/types/Direction-1.html +1 -1
  358. package/docs/types/Direction4.html +1 -1
  359. package/docs/types/ElementRenderer.html +2 -2
  360. package/docs/types/FloorplanGuidePluginParameterType.html +1 -1
  361. package/docs/types/FloorplanGuidePluginReturnType.html +1 -1
  362. package/docs/types/FloorplanRuleLabels.html +2 -2
  363. package/docs/types/FloorplanServerRuleLabels.html +1 -1
  364. package/docs/types/GuideLinePluginExportType.html +1 -1
  365. package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
  366. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
  367. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
  368. package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
  369. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
  370. package/docs/types/GuideLinePluginType.PathItem.html +2 -2
  371. package/docs/types/GuideLinePluginType.PluginData.html +2 -2
  372. package/docs/types/GuideLinePluginType.RouteConfig.html +2 -2
  373. package/docs/types/HelperEventMap.html +1 -1
  374. package/docs/types/InternalHelperEventMap.html +1 -1
  375. package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
  376. package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
  377. package/docs/types/MeasureEndReason.html +1 -1
  378. package/docs/types/MeasurePluginConfig.html +2 -2
  379. package/docs/types/MediaData.html +2 -2
  380. package/docs/types/MediaStore.html +1 -1
  381. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
  382. package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
  383. package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
  384. package/docs/types/ModelId.html +1 -1
  385. package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
  386. package/docs/types/ModelMakerPluginType.ItemType.html +2 -2
  387. package/docs/types/ModelMakerPluginType.MarkerItem.html +1 -1
  388. package/docs/types/ModelMakerPluginType.ServerItem.html +2 -2
  389. package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
  390. package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
  391. package/docs/types/MoveArgs.html +2 -2
  392. package/docs/types/MoveOpts.html +2 -2
  393. package/docs/types/Object3DHelperEventMap.html +1 -1
  394. package/docs/types/ObjectFit.html +1 -1
  395. package/docs/types/PaintBrushEventMap.html +1 -1
  396. package/docs/types/PanoCompassPluginData.html +1 -1
  397. package/docs/types/PanoCompassPluginExportType.html +1 -1
  398. package/docs/types/PanoCompassPluginParameterType.html +1 -1
  399. package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
  400. package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
  401. package/docs/types/PanoIndex.html +1 -1
  402. package/docs/types/PanoMeasurePluginEvent.html +1 -1
  403. package/docs/types/PanoMeasureReturnType.html +1 -1
  404. package/docs/types/PanoSpatialTagPluginId.html +1 -1
  405. package/docs/types/PanoTagPluginExportInterface.html +1 -1
  406. package/docs/types/PanoTagPluginParamsInterface.html +1 -1
  407. package/docs/types/PanoVideoPluginParameterType.html +1 -1
  408. package/docs/types/PanoVideoPluginReturnType.html +1 -1
  409. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
  410. package/docs/types/PipelinePluginParameterType.html +1 -1
  411. package/docs/types/PipelinePluginReturnType.html +1 -1
  412. package/docs/types/PlaneTag.html +2 -2
  413. package/docs/types/Point2DTag.html +2 -2
  414. package/docs/types/Point3DTag.html +2 -2
  415. package/docs/types/PointTagInstance.html +1 -1
  416. package/docs/types/Position.html +1 -1
  417. package/docs/types/PositionFrom.html +1 -1
  418. package/docs/types/RotateArgs.html +2 -2
  419. package/docs/types/RotateOpts.html +2 -2
  420. package/docs/types/RuleLabelsKey.html +1 -1
  421. package/docs/types/RuleLabelsValue.html +1 -1
  422. package/docs/types/ScaleCallback.html +1 -1
  423. package/docs/types/ScalePosition.html +2 -2
  424. package/docs/types/SculptData.BoxData.html +1 -1
  425. package/docs/types/SculptData.CircleData.html +1 -1
  426. package/docs/types/SculptData.CylinderData.html +1 -1
  427. package/docs/types/SculptData.PointData.html +1 -1
  428. package/docs/types/SculptData.PolygonData.html +1 -1
  429. package/docs/types/SculptData.PolylineData.html +1 -1
  430. package/docs/types/SculptData.PrismData.html +1 -1
  431. package/docs/types/SculptData.RectangleData.html +1 -1
  432. package/docs/types/SculptType.Theme.html +2 -2
  433. package/docs/types/StickType.html +1 -1
  434. package/docs/types/Tag.html +2 -2
  435. package/docs/types/Tag2D.html +2 -2
  436. package/docs/types/Tag3D.html +2 -2
  437. package/docs/types/TagClickParams.html +1 -1
  438. package/docs/types/TagConfigByKey.html +1 -1
  439. package/docs/types/TagContentType.html +1 -1
  440. package/docs/types/TagContentTypeMapping.html +1 -1
  441. package/docs/types/TagDimensionType.html +1 -1
  442. package/docs/types/TagElement.html +2 -2
  443. package/docs/types/TagEvents.html +1 -1
  444. package/docs/types/TagGLTFObject.html +1 -1
  445. package/docs/types/TagHooks.html +1 -1
  446. package/docs/types/TagId.html +1 -1
  447. package/docs/types/TagInstance.html +1 -1
  448. package/docs/types/TagPlacement.html +2 -2
  449. package/docs/types/TagPointType.html +2 -2
  450. package/docs/types/TagRendererMap.html +1 -1
  451. package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
  452. package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
  453. package/docs/types/Util.ActionIfNoIntersection.html +1 -1
  454. package/docs/types/Util.AdherePoint.html +2 -2
  455. package/docs/types/Util.PointSelectorConfig.html +1 -1
  456. package/docs/types/Util.SupportedTarget.html +2 -2
  457. package/docs/types/Util.Target.html +2 -2
  458. package/docs/types/Util.ThreeObject.html +2 -2
  459. package/docs/types/WorkCode.html +1 -1
  460. package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
  461. package/docs/variables/PLUGIN.html +1 -1
  462. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
  463. package/docs/variables/ROOM_TYPE_MAP.html +2 -2
  464. package/docs/variables/Util.ANIME_PRESETS.html +2 -2
  465. package/docs/variables/Util.CURRENT_PANO_IMAGE_DEFAULT_IMAGE.html +2 -2
  466. package/docs/variables/Util.DEFAULT_ANIME_CONFIG.html +2 -2
  467. package/docs/variables/Util.DEFAULT_STATIC_PREFIX.html +2 -2
  468. package/docs/variables/Util.DNALOGEL_DEFAULT_ASSETS.html +2 -2
  469. package/docs/variables/Util.ENTRY_DOOR_DEFAULT_IMAGE.html +2 -2
  470. package/docs/variables/Util.FLOORPLAN_DEFAULT_IMAGE.html +2 -2
  471. package/docs/variables/Util.GUIDELINE_DEFAULT_ARROW_TEXTURE.html +2 -2
  472. package/docs/variables/Util.GUIDELINE_WHITE_ARROW_TEXTURE.html +2 -2
  473. package/docs/variables/Util.MODEL_CHASSIS_COMPASS_DEFAULT_MODEL.html +2 -2
  474. package/docs/variables/Util.MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL.html +2 -2
  475. package/docs/variables/Util.PANO_COMPASS_DEFAULT_IMAGE.html +2 -2
  476. package/docs/variables/Util.PANO_SPATIAL_TAG_BLUR_IMAGE.html +2 -2
  477. package/docs/variables/Util.PANO_TAG_DEFAULT_LINK_ICON.html +2 -2
  478. package/docs/variables/defaultGlobalConfig.html +1 -1
  479. package/docs/variables/itemLabelPluginServerParams.html +1 -1
  480. package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
  481. package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
  482. package/libs/CruisePlugin/Move.js +121 -30
  483. package/libs/CruisePlugin/Work.js +265 -174
  484. package/libs/CruisePlugin/index.js +98 -7
  485. package/libs/GuideLinePlugin/Controller.js +127 -36
  486. package/libs/GuideLinePlugin/GuideLineItem.js +94 -3
  487. package/libs/GuideLinePlugin/GuideLineModeItem.js +94 -3
  488. package/libs/GuideLinePlugin/index.js +98 -7
  489. package/libs/Object3DHelperPlugin/Controller.js +3 -2
  490. package/libs/Object3DHelperPlugin/index.js +6 -5
  491. package/libs/PanoTagPlugin/controller/Tag/BaseTag.d.ts +3 -0
  492. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +397 -363
  493. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.d.ts +8 -1
  494. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +253 -102
  495. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +1 -1
  496. package/libs/PanoTagPlugin/controller/index.js +143 -46
  497. package/libs/PanoTagPlugin/index.js +103 -12
  498. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +8 -0
  499. package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +19 -1
  500. package/libs/PanoTagPlugin/utils/model/mediaPlane.js +123 -69
  501. package/libs/Sculpt/Editors/RectangleMeshEditor.js +64 -38
  502. package/libs/base/BasePlugin.js +1 -1
  503. package/libs/index.js +59 -59
  504. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +2 -1
  505. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +86 -60
  506. package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +2 -0
  507. package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +40 -26
  508. package/libs/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +12 -11
  509. package/libs/shared-utils/logger.js +1 -1
  510. package/package.json +1 -1
@@ -1,76 +1,76 @@
1
- var G = Object.defineProperty, K = Object.defineProperties;
2
- var Q = Object.getOwnPropertyDescriptors;
3
- var C = Object.getOwnPropertySymbols;
4
- var D = Object.prototype.hasOwnProperty, j = Object.prototype.propertyIsEnumerable;
5
- var k = Math.pow, M = (u, i, e) => i in u ? G(u, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[i] = e, g = (u, i) => {
6
- for (var e in i || (i = {}))
7
- D.call(i, e) && M(u, e, i[e]);
8
- if (C)
9
- for (var e of C(i))
10
- j.call(i, e) && M(u, e, i[e]);
11
- return u;
12
- }, w = (u, i) => K(u, Q(i));
13
- var A = (u, i) => {
14
- var e = {};
15
- for (var t in u)
16
- D.call(u, t) && i.indexOf(t) < 0 && (e[t] = u[t]);
17
- if (u != null && C)
18
- for (var t of C(u))
19
- i.indexOf(t) < 0 && j.call(u, t) && (e[t] = u[t]);
20
- return e;
1
+ var K = Object.defineProperty, Q = Object.defineProperties;
2
+ var Y = Object.getOwnPropertyDescriptors;
3
+ var x = Object.getOwnPropertySymbols;
4
+ var A = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
5
+ var I = Math.pow, w = (g, e, i) => e in g ? K(g, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : g[e] = i, b = (g, e) => {
6
+ for (var i in e || (e = {}))
7
+ A.call(e, i) && w(g, i, e[i]);
8
+ if (x)
9
+ for (var i of x(e))
10
+ E.call(e, i) && w(g, i, e[i]);
11
+ return g;
12
+ }, U = (g, e) => Q(g, Y(e));
13
+ var O = (g, e) => {
14
+ var i = {};
15
+ for (var t in g)
16
+ A.call(g, t) && e.indexOf(t) < 0 && (i[t] = g[t]);
17
+ if (g != null && x)
18
+ for (var t of x(g))
19
+ e.indexOf(t) < 0 && E.call(g, t) && (i[t] = g[t]);
20
+ return i;
21
21
  };
22
- var a = (u, i, e) => (M(u, typeof i != "symbol" ? i + "" : i, e), e);
23
- var U = (u, i, e) => new Promise((t, r) => {
24
- var n = (s) => {
22
+ var l = (g, e, i) => (w(g, typeof e != "symbol" ? e + "" : e, i), i);
23
+ var T = (g, e, i) => new Promise((t, o) => {
24
+ var s = (n) => {
25
25
  try {
26
- o(e.next(s));
27
- } catch (d) {
28
- r(d);
26
+ a(i.next(n));
27
+ } catch (f) {
28
+ o(f);
29
29
  }
30
- }, l = (s) => {
30
+ }, r = (n) => {
31
31
  try {
32
- o(e.throw(s));
33
- } catch (d) {
34
- r(d);
32
+ a(i.throw(n));
33
+ } catch (f) {
34
+ o(f);
35
35
  }
36
- }, o = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(n, l);
37
- o((e = e.apply(u, i)).next());
36
+ }, a = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(s, r);
37
+ a((i = i.apply(g, e)).next());
38
38
  });
39
- import { Subscribe as Y } from "../../../shared-utils/Subscribe.js";
40
- import { calculateTagConfig as T } from "../../utils/tag/calculateTagConfig.js";
41
- import { getTagStickType as ee } from "../../utils/tag/format.js";
39
+ import { Subscribe as ee } from "../../../shared-utils/Subscribe.js";
40
+ import { calculateTagConfig as S } from "../../utils/tag/calculateTagConfig.js";
41
+ import { getTagStickType as ie } from "../../utils/tag/format.js";
42
42
  import "../../../shared-utils/tag.js";
43
- import { isPanoramaLike as S, isModelLike as P } from "../../../shared-utils/five/mode.js";
44
- import * as E from "three";
43
+ import { isPanoramaLike as V, isModelLike as M } from "../../../shared-utils/five/mode.js";
44
+ import * as y from "three";
45
45
  import "../../../vendor/hammerjs/hammer.js";
46
46
  import "../../../shared-utils/three/PointSelector/index.js";
47
- import { centerPoint as ie } from "../../../shared-utils/three/centerPoint.js";
47
+ import { centerPoint as te } from "../../../shared-utils/three/centerPoint.js";
48
48
  import "../../../shared-utils/three/CSS3DRenderer/index.js";
49
49
  import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
50
- import { anyPositionToVector3 as O } from "../../../shared-utils/positionToVector3.js";
51
- import { toArray as te } from "../../../shared-utils/util.js";
50
+ import { anyPositionToVector3 as R } from "../../../shared-utils/positionToVector3.js";
51
+ import { toArray as ne } from "../../../shared-utils/util.js";
52
52
  import "@realsee/five/line";
53
- import { isNil as R, notNil as _ } from "../../../shared-utils/isNil.js";
53
+ import { isNil as _, notNil as L } from "../../../shared-utils/isNil.js";
54
54
  import "../../../shared-utils/three/core/Five_LineMaterial2.js";
55
55
  import "../../../shared-utils/three/core/Sphere.js";
56
- import { blink as ne, reblink as se } from "../../../shared-utils/three/blink.js";
56
+ import { blink as se, reblink as oe } from "../../../shared-utils/three/blink.js";
57
57
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
58
58
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
59
- import { vectorToCoordinates as oe } from "../../../shared-utils/vectorToCoordinate.js";
60
- import { transformPosition as L } from "../../../shared-utils/five/transformPosition.js";
61
- import { lookPoint as re } from "../../../shared-utils/five/lookPoint.js";
59
+ import { vectorToCoordinates as re } from "../../../shared-utils/vectorToCoordinate.js";
60
+ import { transformPosition as $ } from "../../../shared-utils/five/transformPosition.js";
61
+ import { lookPoint as ae } from "../../../shared-utils/five/lookPoint.js";
62
62
  import { uuid as le } from "../../../shared-utils/uuid.js";
63
63
  import "../../../shared-utils/five/FivePuppet.js";
64
- import { objectAssignDeepExports as y } from "../../../vendor/object-assign-deep/objectAssignDeep.js";
65
- import { getTagPosition as $, getTagCenterPosition as z } from "../../utils/tagPosition.js";
66
- import { checkRange as I } from "../../utils/checkRange.js";
67
- import { isMediaPlaneTag as ae, isMediaModelTag as V } from "../../utils/tag/tagCheck.js";
68
- import { getUrlExt as N } from "../../../shared-utils/url/getUrl.js";
64
+ import { objectAssignDeepExports as P } from "../../../vendor/object-assign-deep/objectAssignDeep.js";
65
+ import { getTagPosition as N, getTagCenterPosition as z } from "../../utils/tagPosition.js";
66
+ import { checkRange as k } from "../../utils/checkRange.js";
67
+ import { isMediaPlaneTag as W, isMediaModelTag as B } from "../../utils/tag/tagCheck.js";
68
+ import { getUrlExt as J } from "../../../shared-utils/url/getUrl.js";
69
69
  import { getFloorIndex as fe } from "../../../shared-utils/five/getFloorIndex.js";
70
- import { safeObj as J } from "../../../shared-utils/safeObj.js";
71
- import { Cache as de } from "../../utils/Cache.js";
72
- import { _raycaster as B } from "../../../shared-utils/three/temp.js";
73
- import { withResolvers as ce } from "../../../shared-utils/promise/withResolvers.js";
70
+ import { safeObj as H } from "../../../shared-utils/safeObj.js";
71
+ import { Cache as ce } from "../../utils/Cache.js";
72
+ import { _raycaster as D } from "../../../shared-utils/three/temp.js";
73
+ import { withResolvers as de } from "../../../shared-utils/promise/withResolvers.js";
74
74
  import "../../../shared-utils/typescript/entries.js";
75
75
  import "../../utils/tag/adaptConfig.js";
76
76
  import "../../typings/tag/TagConfig.js";
@@ -121,88 +121,90 @@ import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
121
121
  import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
122
122
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
123
123
  import "../../../shared-utils/formatRad.js";
124
- class Ji {
125
- constructor(i, e) {
126
- a(this, "plugin");
127
- a(this, "id");
128
- a(this, "contentType");
129
- a(this, "stickType");
130
- a(this, "enabled");
131
- a(this, "config");
132
- a(this, "data");
133
- a(this, "state");
134
- a(this, "temporaryState", { visible: !0 });
135
- a(this, "originPosition");
136
- a(this, "position");
137
- a(this, "fiveState");
138
- a(this, "model");
139
- a(this, "matrix");
140
- a(this, "screenPosition");
141
- a(this, "normal");
142
- a(this, "mediaPlane");
143
- a(this, "hooks");
144
- a(this, "zIndex");
145
- a(this, "play");
146
- a(this, "pause");
147
- a(this, "tag3DContentSvelte");
148
- a(this, "dom");
149
- a(this, "contentDom");
150
- a(this, "initialConfig");
151
- a(this, "computedConfig");
124
+ class Wi {
125
+ constructor(e, i) {
126
+ l(this, "plugin");
127
+ l(this, "id");
128
+ l(this, "contentType");
129
+ l(this, "stickType");
130
+ l(this, "enabled");
131
+ l(this, "config");
132
+ l(this, "data");
133
+ l(this, "state");
134
+ l(this, "temporaryState", { visible: !0 });
135
+ l(this, "originPosition");
136
+ l(this, "position");
137
+ l(this, "fiveState");
138
+ l(this, "model");
139
+ l(this, "matrix");
140
+ l(this, "screenPosition");
141
+ l(this, "normal");
142
+ l(this, "mediaPlane");
143
+ l(this, "hooks");
144
+ l(this, "zIndex");
145
+ l(this, "manuallyOperated", !1);
146
+ l(this, "play");
147
+ l(this, "pause");
148
+ l(this, "tag3DContentSvelte");
149
+ l(this, "rectanglePlane");
150
+ l(this, "dom");
151
+ l(this, "contentDom");
152
+ l(this, "initialConfig");
153
+ l(this, "computedConfig");
152
154
  /**
153
155
  * 存储当前的闪烁动画实例
154
156
  * @private
155
157
  */
156
- a(this, "_currentBlinkInstance");
157
- a(this, "cache");
158
- a(this, "entryFromModel");
159
- a(this, "_updating", !1);
158
+ l(this, "_currentBlinkInstance");
159
+ l(this, "cache");
160
+ l(this, "entryFromModel");
161
+ l(this, "_updating", !1);
160
162
  /**
161
163
  * 是否启用 hover 行为,默认 为config.popoverConfig.enabled
162
164
  */
163
- a(this, "hoverEnabled");
164
- a(this, "ready", () => {
165
- const { promise: i, resolve: e } = ce();
165
+ l(this, "hoverEnabled");
166
+ l(this, "ready", () => {
167
+ const { promise: e, resolve: i } = de();
166
168
  if (!this._updating)
167
- e();
169
+ i();
168
170
  else {
169
171
  const t = setInterval(() => {
170
- this._updating || (clearInterval(t), e());
172
+ this._updating || (clearInterval(t), i());
171
173
  }, 17);
172
174
  setTimeout(() => {
173
- clearInterval(t), e();
175
+ clearInterval(t), i();
174
176
  }, 300);
175
177
  }
176
- return i;
178
+ return e;
177
179
  });
178
- var d, p, v, m, c, h;
179
- this.plugin = i;
180
- const t = ee(e);
181
- e.stickType = t;
182
- const r = JSON.parse(JSON.stringify(e.data)), n = (d = e.initialConfig) != null ? d : e.config ? JSON.parse(JSON.stringify(e.config)) : {};
183
- e.initialConfig = n;
184
- const l = T(e, i.config), o = this.getConfig(e);
185
- e.config = o, this.id = (p = e.id) != null ? p : le(), this.enabled = (v = e.enabled) != null ? v : !0, this.contentType = e.contentType, this.hoverEnabled = (c = (m = o.popoverConfig) == null ? void 0 : m.enabled) != null ? c : !0, this.data = (h = o.initialData) != null && h.important ? y(e.data, r, o.initialData) : y(e.data, o.initialData, r);
186
- let s;
187
- typeof o.unfoldedConfig == "object" ? o.unfoldedConfig.keep === "unfolded" ? s = !0 : o.unfoldedConfig.keep === "folded" ? s = !1 : s = !this.can("fold") : s = !this.can("fold"), this.state = g({
180
+ var f, m, p, c, u, h;
181
+ this.plugin = e;
182
+ const t = ie(i);
183
+ i.stickType = t;
184
+ const o = JSON.parse(JSON.stringify(i.data)), s = (f = i.initialConfig) != null ? f : i.config ? JSON.parse(JSON.stringify(i.config)) : {};
185
+ i.initialConfig = s;
186
+ const r = S(i, e.config), a = this.getConfig(i);
187
+ i.config = a, this.id = (m = i.id) != null ? m : le(), this.enabled = (p = i.enabled) != null ? p : !0, this.contentType = i.contentType, this.hoverEnabled = (u = (c = a.popoverConfig) == null ? void 0 : c.enabled) != null ? u : !0, this.data = (h = a.initialData) != null && h.important ? P(i.data, o, a.initialData) : P(i.data, a.initialData, o);
188
+ let n;
189
+ typeof a.unfoldedConfig == "object" ? a.unfoldedConfig.keep === "unfolded" ? n = !0 : a.unfoldedConfig.keep === "folded" ? n = !1 : n = !this.can("fold") : n = !this.can("fold"), this.state = b({
188
190
  visible: void 0,
189
- unfolded: s
190
- }, o.initialState), this.isPopoverConfigEnabled() && (this.state.unfolded = !1), this.originPosition = e.position, e.originPosition = this.originPosition, this.position = (() => {
191
- const f = e.originPosition;
192
- if (!f)
191
+ unfolded: n
192
+ }, a.initialState), this.isPopoverConfigEnabled() && (this.state.unfolded = !1), this.originPosition = i.position, i.originPosition = this.originPosition, this.position = (() => {
193
+ const d = i.originPosition;
194
+ if (!d)
193
195
  return;
194
- const b = i.workUtil.transform;
195
- return Array.isArray(f) && f.length === 4 ? f.map(O).map((x) => L(x, b).toArray()) : L(O(f), b).toArray();
196
- })(), this.matrix = e.matrix ? (() => {
197
- const f = new E.Matrix4().fromArray(e.matrix);
198
- return f.premultiply(i.workUtil.transform), f.elements;
199
- })() : e.matrix, this.initialConfig = n, this.computedConfig = l, this.stickType = t, this.config = e.config, this.fiveState = e.fiveState, this.normal = e.normal, this.cache = new de(), this.hooks = new Y(), Object.keys(e).forEach((f) => {
200
- this[f] === void 0 && e[f] !== void 0 && (this[f] = e[f]);
196
+ const v = e.workUtil.transform;
197
+ return Array.isArray(d) && d.length === 4 ? d.map(R).map((C) => $(C, v).toArray()) : $(R(d), v).toArray();
198
+ })(), this.matrix = i.matrix ? (() => {
199
+ const d = new y.Matrix4().fromArray(i.matrix);
200
+ return d.premultiply(e.workUtil.transform), d.elements;
201
+ })() : i.matrix, this.initialConfig = s, this.computedConfig = r, this.stickType = t, this.config = i.config, this.fiveState = i.fiveState, this.normal = i.normal, this.cache = new ce(), this.hooks = new ee(), Object.keys(i).forEach((d) => {
202
+ this[d] === void 0 && i[d] !== void 0 && (this[d] = i[d]);
201
203
  });
202
204
  }
203
205
  get visible() {
204
- var i;
205
- return ((i = this.temporaryState) == null ? void 0 : i.visible) !== !1 && this.state.visible !== !1 && this.enabled !== !1;
206
+ var e;
207
+ return ((e = this.temporaryState) == null ? void 0 : e.visible) !== !1 && this.state.visible !== !1 && this.enabled !== !1;
206
208
  }
207
209
  get five() {
208
210
  return this.plugin.five;
@@ -214,13 +216,13 @@ class Ji {
214
216
  return this.plugin.workUtil;
215
217
  }
216
218
  get centerPosition() {
217
- const i = $(this);
218
- return ie(...Array.isArray(i) ? i : [i]);
219
+ const e = N(this);
220
+ return te(...Array.isArray(e) ? e : [e]);
219
221
  }
220
222
  get currentConfig() {
221
- var r, n;
222
- const i = T(this, this.plugin.config, { useCache: !0 }), e = this.five.getCurrentState().mode, t = (r = i.configWithFiveMode) == null ? void 0 : r[e];
223
- return (n = t != null ? t : i) != null ? n : {};
223
+ var o, s;
224
+ const e = S(this, this.plugin.config, { useCache: !0 }), i = this.five.getCurrentState().mode, t = (o = e.configWithFiveMode) == null ? void 0 : o[i];
225
+ return (s = t != null ? t : e) != null ? s : {};
224
226
  }
225
227
  get currentVisible() {
226
228
  return !(!this.plugin.state.enabled || !this.plugin.state.visible || !this.enabled || !this.state.visible);
@@ -237,79 +239,79 @@ class Ji {
237
239
  /**
238
240
  * @description 找到标签
239
241
  */
240
- find(i) {
241
- return U(this, null, function* () {
242
- var r;
243
- const e = this.fiveState;
242
+ find(e) {
243
+ return T(this, null, function* () {
244
+ var o;
245
+ const i = this.fiveState;
244
246
  if (!this.fiveState)
245
247
  return this;
246
- const t = (r = i == null ? void 0 : i.targetMode) != null ? r : this.five.state.mode;
248
+ const t = (o = e == null ? void 0 : e.targetMode) != null ? o : this.five.state.mode;
247
249
  if (t === "Panorama") {
248
- const n = e == null ? void 0 : e.panoIndex;
249
- if (R(n))
250
+ const s = i == null ? void 0 : i.panoIndex;
251
+ if (_(s))
250
252
  return this;
251
- const l = this.workUtil.getObserverPosition(n), o = this.centerPosition.clone().sub(l).normalize();
252
- this.five.setState(g({
253
+ const r = this.workUtil.getObserverPosition(s), a = this.centerPosition.clone().sub(r).normalize();
254
+ this.five.setState(b({
253
255
  mode: "Panorama",
254
256
  workCode: this.workUtil.workCode,
255
- panoIndex: n
256
- }, oe(o))), yield this.five.ready();
257
+ panoIndex: s
258
+ }, re(a))), yield this.five.ready();
257
259
  } else
258
- t === "Mapview" && (yield re(this.five, this.centerPosition, i == null ? void 0 : i.pointConfig));
260
+ t === "Mapview" && (yield ae(this.five, this.centerPosition, e == null ? void 0 : e.pointConfig));
259
261
  return this;
260
262
  });
261
263
  }
262
264
  /**
263
265
  * @description 闪烁
264
266
  */
265
- blink(i) {
266
- return U(this, null, function* () {
267
- var o, s, d, p, v, m;
268
- yield this.ready(), this._currentBlinkInstance && !this._currentBlinkInstance.completed && ((s = (o = this._currentBlinkInstance).preComplete) == null || s.call(o), this._currentBlinkInstance = void 0);
269
- const e = (d = this.enabled) != null ? d : !0, t = (p = this.state) == null ? void 0 : p.visible, r = e && t;
270
- r === !1 && (this.state.visible = !0, this.enabled = !0, this.applyVisible(), this.plugin.render(), this.computeRenderType() !== "Mesh" ? yield new Promise((c) => {
267
+ blink(e) {
268
+ return T(this, null, function* () {
269
+ var a, n, f, m, p, c;
270
+ yield this.ready(), this._currentBlinkInstance && !this._currentBlinkInstance.completed && ((n = (a = this._currentBlinkInstance).preComplete) == null || n.call(a), this._currentBlinkInstance = void 0);
271
+ const i = (f = this.enabled) != null ? f : !0, t = (m = this.state) == null ? void 0 : m.visible, o = i && t;
272
+ o === !1 && (this.state.visible = !0, this.enabled = !0, this.applyVisible(), this.plugin.render(), this.computeRenderType() !== "Mesh" ? yield new Promise((u) => {
271
273
  if (this.dom || this.contentDom) {
272
- c();
274
+ u();
273
275
  return;
274
276
  }
275
277
  const h = setInterval(() => {
276
- (this.dom || this.contentDom) && (c(), clearInterval(h));
278
+ (this.dom || this.contentDom) && (u(), clearInterval(h));
277
279
  }, 16.7);
278
- }) : this.stickType === "Model" && !((v = this.model) != null && v.object) ? yield (m = this.model) == null ? void 0 : m.promise : this.stickType === "Plane" && (yield new Promise((c) => {
280
+ }) : this.stickType === "Model" && !((p = this.model) != null && p.object) ? yield (c = this.model) == null ? void 0 : c.promise : this.stickType === "Plane" && (yield new Promise((u) => {
279
281
  if (this.mediaPlane) {
280
- c();
282
+ u();
281
283
  return;
282
284
  }
283
285
  const h = setInterval(() => {
284
- this.mediaPlane && (c(), clearInterval(h));
286
+ this.mediaPlane && (u(), clearInterval(h));
285
287
  }, 16.7);
286
288
  })), this.dom && (this.dom.style.visibility = "hidden"), this.contentDom && (this.contentDom.style.visibility = "hidden"));
287
- const n = (() => {
288
- var h, f, b;
289
- const c = [];
290
- return c.push(this.dom), c.push((f = (h = this.tag3DContentSvelte) == null ? void 0 : h.css3DInstance) == null ? void 0 : f.container), c.push((b = this.model) == null ? void 0 : b.object), c.push(this.mediaPlane), c.filter(Boolean);
289
+ const s = (() => {
290
+ var h, d, v;
291
+ const u = [];
292
+ return u.push(this.dom), u.push((d = (h = this.tag3DContentSvelte) == null ? void 0 : h.css3DInstance) == null ? void 0 : d.container), u.push((v = this.model) == null ? void 0 : v.object), u.push(this.mediaPlane), u.filter(Boolean);
291
293
  })();
292
- if (!n.length) {
294
+ if (!s.length) {
293
295
  console.warn("tagDom is empty");
294
296
  return;
295
297
  }
296
- const l = r ? ne : se;
297
- this._currentBlinkInstance = l(n, g({
298
+ const r = o ? se : oe;
299
+ this._currentBlinkInstance = r(s, b({
298
300
  begin: () => {
299
- r === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
301
+ o === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
300
302
  },
301
303
  updateRender: () => {
302
304
  this.five.needsRender = !0;
303
305
  }
304
- }, i));
306
+ }, e));
305
307
  try {
306
308
  yield this._currentBlinkInstance.finished;
307
- } catch (c) {
308
- console.debug("Blink animation interrupted:", c);
309
+ } catch (u) {
310
+ console.debug("Blink animation interrupted:", u);
309
311
  } finally {
310
312
  this._currentBlinkInstance = void 0;
311
313
  }
312
- e === !1 && (this.enabled = !1, this.updateVisible()), t === !1 && this.updateVisible(), r === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
314
+ i === !1 && (this.enabled = !1, this.updateVisible()), t === !1 && this.updateVisible(), o === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
313
315
  });
314
316
  }
315
317
  /**
@@ -337,48 +339,49 @@ class Ji {
337
339
  * @description 禁用
338
340
  */
339
341
  disable() {
340
- this.enabled = !1, this.hooks.emit("disable"), this.applyVisible();
342
+ var e;
343
+ this.enabled = !1, this.hooks.emit("disable"), (e = this.rectanglePlane) == null || e.delete(), this.applyVisible();
341
344
  }
342
345
  /**
343
346
  * @deprecated use `setData` instead
344
347
  */
345
- changeData(i, e = !0) {
346
- return this.setData(i, e);
348
+ changeData(e, i = !0) {
349
+ return this.setData(e, i);
347
350
  }
348
351
  /**
349
352
  * @deprecated use `setPosition` instead
350
353
  */
351
- changePosition(i) {
352
- return this.setPosition(i);
354
+ changePosition(e) {
355
+ return this.setPosition(e);
353
356
  }
354
357
  /**
355
358
  * @description 修改标签数据
356
359
  * @param deepMerge 是否深度合并 data,默认为 true
357
360
  */
358
- setData(i, e = !0) {
359
- e ? this.data = y(this.data, i) : this.data = g(g({}, this.data), i), this.hooks.emit("dataChanged", this.data);
361
+ setData(e, i = !0) {
362
+ i ? this.data = P(this.data, e) : this.data = b(b({}, this.data), e), this.hooks.emit("dataChanged", this.data);
360
363
  }
361
364
  /**
362
365
  * @description 修改标签位置
363
366
  */
364
- setPosition(i) {
367
+ setPosition(e) {
365
368
  throw new Error("Method not implemented.");
366
369
  }
367
370
  /**
368
371
  * @description 设置标签实例的属性
369
372
  * @param deepMerge 是否深度合并 data,默认为 true
370
373
  */
371
- set(i, e = !0) {
372
- this.plugin.tagsLengthWillUpdate = !0, e ? y(this, i) : Object.assign(this, i), this.cache.clear();
374
+ set(e, i = !0) {
375
+ this.plugin.tagsLengthWillUpdate = !0, i ? P(this, e) : Object.assign(this, e), this.cache.clear();
373
376
  }
374
377
  updateConfig() {
375
378
  var t;
376
- const i = this.getConfig(void 0, { useCache: !1 });
377
- this.computedConfig = i;
378
- const e = this.getConfig();
379
- if (this.config = e, this.config.initialData) {
380
- const r = JSON.parse(JSON.stringify(this.data));
381
- this.data = (t = e.initialData) != null && t.important ? y(this.data, r, e.initialData) : y(this.data, e.initialData, r);
379
+ const e = this.getConfig(void 0, { useCache: !1 });
380
+ this.computedConfig = e;
381
+ const i = this.getConfig();
382
+ if (this.config = i, this.config.initialData) {
383
+ const o = JSON.parse(JSON.stringify(this.data));
384
+ this.data = (t = i.initialData) != null && t.important ? P(this.data, o, i.initialData) : P(this.data, i.initialData, o);
382
385
  }
383
386
  this.cache.clear();
384
387
  }
@@ -386,154 +389,156 @@ class Ji {
386
389
  this.enabled ? (this.state.visible = this.getVisible(), this.applyVisible()) : this.applyVisible(), this._updating = !1;
387
390
  }
388
391
  updateZIndex() {
389
- const i = this.getSquaredDistance();
390
- this.zIndex = Math.round((1e4 - (i != null ? i : 0)) * 100);
392
+ const e = this.getSquaredDistance();
393
+ this.zIndex = Math.round((1e4 - (e != null ? e : 0)) * 100);
391
394
  }
392
- getConfig(i, e) {
393
- var l, o, s;
394
- const t = T(i != null ? i : this, this.plugin.config, { useCache: e == null ? void 0 : e.useCache }), r = (l = e == null ? void 0 : e.fiveMode) != null ? l : this.five.getCurrentState().mode, n = (o = t.configWithFiveMode) == null ? void 0 : o[r];
395
- return (s = n != null ? n : t) != null ? s : {};
395
+ getConfig(e, i) {
396
+ var r, a, n;
397
+ const t = S(e != null ? e : this, this.plugin.config, { useCache: i == null ? void 0 : i.useCache }), o = (r = i == null ? void 0 : i.fiveMode) != null ? r : this.five.getCurrentState().mode, s = (a = t.configWithFiveMode) == null ? void 0 : a[o];
398
+ return (n = s != null ? s : t) != null ? n : {};
396
399
  }
397
- getDistance(i, e = 3) {
398
- const t = g(g({}, this.five.getCurrentState()), i), { panoIndex: r, mode: n } = t, l = n === "Panorama" ? this.workUtil.getObserverPosition(r) : this.five.camera.position, o = this.centerPosition;
399
- return !l || !o ? -1 : l.distanceTo(o);
400
+ getDistance(e, i = 3) {
401
+ const t = b(b({}, this.five.getCurrentState()), e), { panoIndex: o, mode: s } = t, r = s === "Panorama" ? this.workUtil.getObserverPosition(o) : this.five.camera.position, a = this.centerPosition;
402
+ return !r || !a ? -1 : r.distanceTo(a);
400
403
  }
401
404
  /**
402
405
  * @description 用于排序的距离,性能更好
403
406
  */
404
407
  getSquaredDistance() {
405
- const i = this.five.camera.position;
406
- let e;
407
- return Array.isArray(this.position[0]) ? e = this.position[0] : e = this.position, k(e[0] - i.x, 2) + k(e[1] - i.y, 2) + k(e[2] - i.z, 2);
408
+ const e = this.five.camera.position;
409
+ let i;
410
+ return Array.isArray(this.position[0]) ? i = this.position[0] : i = this.position, I(i[0] - e.x, 2) + I(i[1] - e.y, 2) + I(i[2] - e.z, 2);
408
411
  }
409
- getVisible(i) {
412
+ getVisible(e) {
410
413
  if (!this.enabled || !this.plugin.state.enabled || !this.fiveUtil.model)
411
414
  return !1;
412
- const e = g(g({}, this.five.getCurrentState()), i);
413
- let t = this.cache.getVisible(this, e);
414
- return R(t) && (t = this.computeVisible(e).value, this.cache.setVisible(this, e, t)), t;
415
+ const i = b(b({}, this.five.getCurrentState()), e);
416
+ let t = this.cache.getVisible(this, i);
417
+ return _(t) && (t = this.computeVisible(i).value, this.cache.setVisible(this, i, t)), t;
415
418
  }
416
- getUnfoldedByPanoIndex(i) {
419
+ getUnfoldedByPanoIndex(e) {
417
420
  if (!this.currentVisible)
418
421
  return;
419
- const t = this.computeUnfoldedByPanoIndex(i);
422
+ const t = this.computeUnfoldedByPanoIndex(e);
420
423
  return t && this.getUnfoldedByCamera();
421
424
  }
422
425
  getUnfoldedByCamera() {
423
426
  return this.currentVisible ? this.computeUnfoldedByCamera() : void 0;
424
427
  }
425
- can(i) {
426
- var t, r;
427
- if ((i === "fold" || i === "unfold") && ((r = (t = this.currentConfig) == null ? void 0 : t.popoverConfig) == null ? void 0 : r.enabled) === !0)
428
+ can(e) {
429
+ var t, o;
430
+ if ((e === "fold" || e === "unfold") && ((o = (t = this.currentConfig) == null ? void 0 : t.popoverConfig) == null ? void 0 : o.enabled) === !0)
428
431
  return !1;
429
- const e = this.currentConfig;
430
- if (!e || typeof e != "object")
432
+ const i = this.currentConfig;
433
+ if (!i || typeof i != "object")
431
434
  return !0;
432
- if (i === "show" || i === "hide") {
433
- if (!e.visibleConfig || typeof e.visibleConfig != "object")
435
+ if (e === "show" || e === "hide") {
436
+ if (!i.visibleConfig || typeof i.visibleConfig != "object")
434
437
  return !0;
435
- if (i === "show" && e.visibleConfig.keep === "hidden" || i === "hide" && e.visibleConfig.keep === "visible")
438
+ if (e === "show" && i.visibleConfig.keep === "hidden" || e === "hide" && i.visibleConfig.keep === "visible")
436
439
  return !1;
437
440
  }
438
- if (i === "fold" || i === "unfold") {
439
- if (!e.unfoldedConfig || typeof e.unfoldedConfig != "object")
441
+ if (e === "fold" || e === "unfold") {
442
+ if (!i.unfoldedConfig || typeof i.unfoldedConfig != "object")
440
443
  return !0;
441
- if (i === "fold" && e.unfoldedConfig.keep === "unfolded" || i === "unfold" && e.unfoldedConfig.keep === "folded")
444
+ if (e === "fold" && i.unfoldedConfig.keep === "unfolded" || e === "unfold" && i.unfoldedConfig.keep === "folded")
442
445
  return !1;
443
446
  }
444
447
  return !0;
445
448
  }
446
- onClick(i) {
449
+ onClick(e) {
447
450
  }
448
451
  computeRenderType() {
449
- const i = (() => {
452
+ const e = (() => {
450
453
  if (this.stickType === "3DPoint")
451
454
  return "Dom";
452
- const e = this.getConfig();
453
- if (!e || typeof e != "object" || !e.renderType)
455
+ const i = this.getConfig();
456
+ if (!i || typeof i != "object" || !i.renderType)
454
457
  return;
455
458
  const t = this.data.mediaData;
456
- if (!(!t || t.length === 0) && e.renderType === "Mesh") {
457
- if (ae(this)) {
459
+ if ((!t || t.length === 0) && W(this))
460
+ return i.renderType;
461
+ if (i.renderType === "Mesh") {
462
+ if (W(this)) {
458
463
  if (t.length === 1) {
459
464
  if (t[0].type === "Video")
460
465
  return navigator.userAgent.toLowerCase().indexOf("firefox") > -1 && navigator.userAgent.toLowerCase().indexOf("mobile") > -1 ? "Dom" : "Mesh";
461
466
  if (t[0].type === "Image")
462
- return N(t[0].url) === "gif" ? "Dom" : "Mesh";
467
+ return J(t[0].url) === "gif" ? "Dom" : "Mesh";
463
468
  }
464
- } else if (V(this))
465
- return t.length === 1 && t[0].type === "Image" ? N(t[0].url) === "gif" ? "Dom" : "Mesh" : "BehindDom";
469
+ } else if (B(this))
470
+ return t.length === 1 && t[0].type === "Image" ? J(t[0].url) === "gif" ? "Dom" : "Mesh" : "BehindDom";
466
471
  }
467
472
  })();
468
- return i != null ? i : "Dom";
473
+ return e != null ? e : "Dom";
469
474
  }
470
- computeVisible(i) {
471
- const e = g(g({}, this.five.getCurrentState()), i), { panoIndex: t, mode: r } = e, n = [];
475
+ computeVisible(e) {
476
+ const i = b(b({}, this.five.getCurrentState()), e), { panoIndex: t, mode: o } = i, s = [];
472
477
  return (() => {
473
- var d, v, m, c;
474
- const s = (d = this.getConfig().visibleConfig) != null ? d : {};
475
- if (typeof s == "function")
478
+ var f, p, c, u;
479
+ const n = (f = this.getConfig().visibleConfig) != null ? f : {};
480
+ if (typeof n == "function")
476
481
  return {
477
- value: s(this.five, { tag: this, distance: this.getDistance(e, void 0) }),
478
- checkedList: n,
482
+ value: n(this.five, { tag: this, distance: this.getDistance(i, void 0) }),
483
+ checkedList: s,
479
484
  reason: "config function result"
480
485
  };
481
486
  {
482
- if (s.keep === "hidden")
483
- return { value: !1, checkedList: n, reason: "config.keep is hidden" };
484
- if (s.keep === "visible")
485
- return { value: !0, checkedList: n, reason: "config.keep is visible" };
486
- const h = this.computeVisibleByFiveMode(s, r);
487
+ if (n.keep === "hidden")
488
+ return { value: !1, checkedList: s, reason: "config.keep is hidden" };
489
+ if (n.keep === "visible")
490
+ return { value: !0, checkedList: s, reason: "config.keep is visible" };
491
+ const h = this.computeVisibleByFiveMode(n, o);
487
492
  if ((h == null ? void 0 : h.value) === !1)
488
493
  return h;
489
- if (s.followModelVisibility === !0 && ["poincare", "aerophoto", "sand"].includes(this.workUtil.fromType) && (r === "Floorplan" || r === "Mapview")) {
490
- const p = this.computeVisibleByFloorIndex(), { value: f } = p, b = A(p, ["value"]);
491
- if (f === !1)
492
- return g({ value: !1, checkedList: n, reason: "followModelVisibility check failed" }, b);
494
+ if (n.followModelVisibility === !0 && ["poincare", "aerophoto", "sand"].includes(this.workUtil.fromType) && (o === "Floorplan" || o === "Mapview")) {
495
+ const m = this.computeVisibleByFloorIndex(), { value: d } = m, v = O(m, ["value"]);
496
+ if (d === !1)
497
+ return b({ value: !1, checkedList: s, reason: "followModelVisibility check failed" }, v);
493
498
  }
494
- if (S(r) && s.visiblePanoIndex !== void 0 && s.visiblePanoIndex !== "all" && t !== void 0) {
495
- if (n.push("visiblePanoIndex"), Array.isArray(s.visiblePanoIndex) && !s.visiblePanoIndex.includes(t))
499
+ if (V(o) && n.visiblePanoIndex !== void 0 && n.visiblePanoIndex !== "all" && t !== void 0) {
500
+ if (s.push("visiblePanoIndex"), Array.isArray(n.visiblePanoIndex) && !n.visiblePanoIndex.includes(t))
496
501
  return {
497
502
  value: !1,
498
- checkedList: n,
499
- reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${s.visiblePanoIndex}`
503
+ checkedList: s,
504
+ reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${n.visiblePanoIndex}`
500
505
  };
501
- if (s.visiblePanoIndex === "current" && t !== ((v = this.fiveState) == null ? void 0 : v.panoIndex))
506
+ if (n.visiblePanoIndex === "current" && t !== ((p = this.fiveState) == null ? void 0 : p.panoIndex))
502
507
  return {
503
508
  value: !1,
504
- checkedList: n,
505
- reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(m = this.fiveState) == null ? void 0 : m.panoIndex}`
509
+ checkedList: s,
510
+ reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(c = this.fiveState) == null ? void 0 : c.panoIndex}`
506
511
  };
507
512
  }
508
- if (s.visibleDistance !== void 0 && (n.push("visibleDistance"), s.visibleDistance !== "unLimited")) {
509
- const f = this.getDistance(e, 1);
510
- if (I(f, s.visibleDistance) === !1)
513
+ if (n.visibleDistance !== void 0 && (s.push("visibleDistance"), n.visibleDistance !== "unLimited")) {
514
+ const d = this.getDistance(i, 1);
515
+ if (k(d, n.visibleDistance) === !1)
511
516
  return {
512
517
  value: !1,
513
- checkedList: n,
518
+ checkedList: s,
514
519
  panoIndex: t,
515
- visibleDistance: s.visibleDistance,
516
- reason: `distance is not in visibleDistance. distance: ${f}, visibleDistance: ${s.visibleDistance.min} - ${s.visibleDistance.max}`
520
+ visibleDistance: n.visibleDistance,
521
+ reason: `distance is not in visibleDistance. distance: ${d}, visibleDistance: ${n.visibleDistance.min} - ${n.visibleDistance.max}`
517
522
  };
518
523
  }
519
- if (s.intersectRaycaster !== !1 && (typeof s.intersectRaycaster != "object" || s.intersectRaycaster.enabled !== !1)) {
520
- if (n.push("intersectRaycaster"), t === void 0)
524
+ if (n.intersectRaycaster !== !1 && (typeof n.intersectRaycaster != "object" || n.intersectRaycaster.enabled !== !1)) {
525
+ if (s.push("intersectRaycaster"), t === void 0)
521
526
  return {
522
527
  value: !1,
523
- checkedList: n,
528
+ checkedList: s,
524
529
  reason: `intersectRaycaster check failed: panoIndex is ${t}`
525
530
  };
526
- if (t === ((c = this.fiveState) == null ? void 0 : c.panoIndex))
527
- n.push("intersectCheckSkiped");
531
+ if (t === ((u = this.fiveState) == null ? void 0 : u.panoIndex))
532
+ s.push("intersectCheckSkiped");
528
533
  else {
529
- const f = this.computeVisibleByIntersect(t);
530
- if (f.value === !1)
531
- return Object.assign(f, { checkedList: n });
534
+ const d = this.computeVisibleByIntersect(t);
535
+ if (d.value === !1)
536
+ return Object.assign(d, { checkedList: s });
532
537
  }
533
538
  }
534
539
  return {
535
540
  value: !0,
536
- checkedList: n,
541
+ checkedList: s,
537
542
  reason: "all check passed"
538
543
  };
539
544
  }
@@ -542,214 +547,243 @@ class Ji {
542
547
  /**
543
548
  * @description 计算标签可见性
544
549
  */
545
- computeVisibleByFiveMode(i, e) {
550
+ computeVisibleByFiveMode(e, i) {
546
551
  const t = () => {
547
- var l, o;
548
- let n = typeof i.visibleFiveMode == "function" ? i.visibleFiveMode(this) : i.visibleFiveMode;
549
- if (n || (n = (o = (l = this.fiveState) == null ? void 0 : l.mode) != null ? o : this.workUtil.observers.length ? "Panorama" : "ModelLike"), Array.isArray(n))
550
- return n.includes(e);
551
- if (n === "ModelLike")
552
- return P(e);
553
- if (n === "PanoramaLike")
554
- return !S(e);
555
- if (n === "all")
552
+ var r, a;
553
+ let s = typeof e.visibleFiveMode == "function" ? e.visibleFiveMode(this) : e.visibleFiveMode;
554
+ if (s || (s = (a = (r = this.fiveState) == null ? void 0 : r.mode) != null ? a : this.workUtil.observers.length ? "Panorama" : "ModelLike"), Array.isArray(s))
555
+ return s.includes(i);
556
+ if (s === "ModelLike")
557
+ return M(i);
558
+ if (s === "PanoramaLike")
559
+ return !V(i);
560
+ if (s === "all")
556
561
  return !0;
557
- if (typeof n == "string")
558
- return n === e;
562
+ if (typeof s == "string")
563
+ return s === i;
559
564
  };
560
565
  if ((() => {
561
- var l;
562
- const n = t();
563
- if (_((l = this.fiveState) == null ? void 0 : l.panoIndex) && i.entryFromModel) {
564
- if (P(e) && n ? this.entryFromModel = !1 : this.entryFromModel = !0, P(e))
566
+ var r;
567
+ const s = t();
568
+ if (L((r = this.fiveState) == null ? void 0 : r.panoIndex) && e.entryFromModel) {
569
+ if (M(i) && s ? this.entryFromModel = !1 : this.entryFromModel = !0, M(i))
565
570
  return !0;
566
571
  } else
567
572
  this.entryFromModel = !1;
568
- return n;
573
+ return s;
569
574
  })() === !1)
570
575
  return {
571
576
  value: !1,
572
577
  reason: "current mode is not included in visibleFiveMode",
573
- visibleFiveMode: i.visibleFiveMode,
574
- mode: e
578
+ visibleFiveMode: e.visibleFiveMode,
579
+ mode: i
575
580
  };
576
581
  }
577
582
  /** 通过射线检测标签可用性 */
578
- computeVisibleByIntersect(i) {
579
- var s, d, p, v;
580
- const e = J(J((s = this.getConfig().visibleConfig) != null ? s : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, r = S(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(t) : this.five.camera.position;
581
- if (r === void 0)
583
+ computeVisibleByIntersect(e) {
584
+ var n, f, m, p;
585
+ const i = H(H((n = this.getConfig().visibleConfig) != null ? n : {}).intersectRaycaster), t = e != null ? e : this.five.getCurrentState().panoIndex, o = V(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(t) : this.five.camera.position;
586
+ if (o === void 0)
582
587
  return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
583
- const n = te(
588
+ const s = ne(
584
589
  (() => {
585
- var c;
586
- const m = (c = e.checkPoints) != null ? c : "center";
587
- return m === "center" ? z(this) : m === "corner" ? $(this) : Array.isArray(m) ? m : [];
590
+ var u;
591
+ const c = (u = i.checkPoints) != null ? u : "center";
592
+ return c === "center" ? z(this) : c === "corner" ? N(this) : Array.isArray(c) ? c : [];
588
593
  })()
589
594
  );
590
- let l = 0, o = 0;
591
- for (const m of n) {
592
- const c = new E.Vector3().subVectors(m, r).normalize();
595
+ let r = 0, a = 0;
596
+ for (const c of s) {
597
+ const u = new y.Vector3().subVectors(c, o).normalize();
593
598
  let h;
594
- B.set(r, c);
595
- const [f] = this.fiveUtil.model.intersectRaycaster(B);
596
- h = f == null ? void 0 : f.distance;
597
- const b = (() => {
598
- if (!V(this))
599
+ D.set(o, u);
600
+ const [d] = this.fiveUtil.model.intersectRaycaster(D);
601
+ h = d == null ? void 0 : d.distance;
602
+ const v = (() => {
603
+ if (!B(this))
599
604
  return;
600
- const q = this.plugin.tags.filter(V).map((Z) => {
601
- var F;
602
- return (F = Z.model) == null ? void 0 : F.object;
603
- }).filter(_), [X] = B.intersectObjects(q, !0);
604
- return X;
605
- })(), x = r.distanceTo(m), H = (d = e.distanceAccuracy) != null ? d : 0.01;
606
- h = Math.min(h != null ? h : 1 / 0, (p = b == null ? void 0 : b.distance) != null ? p : 1 / 0), h + H >= x ? l++ : o++;
607
- const W = (v = e.needPassed) != null ? v : 1;
608
- if (l >= W)
605
+ const X = this.plugin.tags.filter(B).map((G) => {
606
+ var j;
607
+ return (j = G.model) == null ? void 0 : j.object;
608
+ }).filter(L), [Z] = D.intersectObjects(X, !0);
609
+ return Z;
610
+ })(), C = o.distanceTo(c), F = (f = i.distanceAccuracy) != null ? f : 0.01;
611
+ h = Math.min(h != null ? h : 1 / 0, (m = v == null ? void 0 : v.distance) != null ? m : 1 / 0), h + F >= C ? r++ : a++;
612
+ const q = (p = i.needPassed) != null ? p : 1;
613
+ if (r >= q)
609
614
  return { value: !0 };
610
615
  }
611
- return o === 0 ? { value: !0 } : {
616
+ return a === 0 ? { value: !0 } : {
612
617
  value: !1,
613
618
  reason: {
614
619
  type: "intersectRaycaster check failed",
615
- passedCount: l,
616
- needPassed: e.needPassed,
620
+ passedCount: r,
621
+ needPassed: i.needPassed,
617
622
  model: this.fiveUtil.model.name
618
623
  }
619
624
  };
620
625
  }
621
626
  computeVisibleByFloorIndex() {
622
- var r, n, l, o, s, d, p;
623
- let i = 0;
624
- const e = (r = this.fiveState) == null ? void 0 : r.panoIndex;
625
- e !== void 0 ? i = (n = this.workUtil.getObserver(e)) == null ? void 0 : n.floorIndex : i = fe(
627
+ var o, s, r, a, n, f, m;
628
+ let e = 0;
629
+ const i = (o = this.fiveState) == null ? void 0 : o.panoIndex;
630
+ i !== void 0 ? e = (s = this.workUtil.getObserver(i)) == null ? void 0 : s.floorIndex : e = fe(
626
631
  this.workUtil.work,
627
- (p = (d = (o = (l = this.model) == null ? void 0 : l.object) == null ? void 0 : o.position) != null ? d : (s = this.mediaPlane) == null ? void 0 : s.position) != null ? p : z(this)
632
+ (m = (f = (a = (r = this.model) == null ? void 0 : r.object) == null ? void 0 : a.position) != null ? f : (n = this.mediaPlane) == null ? void 0 : n.position) != null ? m : z(this)
628
633
  );
629
634
  const t = this.fiveUtil.model.shownFloor;
630
635
  return {
631
- value: t === null || t === i,
636
+ value: t === null || t === e,
632
637
  currentFiveFloorIndex: t,
633
- tagFloorIndex: i
638
+ tagFloorIndex: e
634
639
  };
635
640
  }
636
641
  /**
637
642
  * @description 获取是否展开
638
643
  */
639
- computeUnfoldedByPanoIndex(i) {
640
- const e = this.getConfig().unfoldedConfig;
641
- if (e) {
642
- if (typeof e == "function")
643
- return e(this.five, { tag: this, distance: this.getDistance({ panoIndex: i }) });
644
- if (e.keep === "folded")
644
+ computeUnfoldedByPanoIndex(e) {
645
+ const i = this.getConfig().unfoldedConfig;
646
+ if (i) {
647
+ if (typeof i == "function")
648
+ return i(this.five, { tag: this, distance: this.getDistance({ panoIndex: e }) });
649
+ if (i.keep === "folded")
645
650
  return !1;
646
- if (e.keep === "unfolded")
651
+ if (i.keep === "unfolded")
647
652
  return !0;
648
- if (e.unfoldDistance && I(this.getDistance({ panoIndex: i }), e.unfoldDistance) === !1)
653
+ if (i.unfoldDistance && k(this.getDistance({ panoIndex: e }), i.unfoldDistance) === !1)
649
654
  return !1;
650
655
  }
651
656
  }
657
+ // 该方法有很大优化空间,这个检测显示方法不应该挂在tagBase下,做了多次不必要计算(MinimumDistance,ScreenCenter)。
652
658
  computeUnfoldedByCamera() {
653
- var e;
654
- if (this.entryFromModel && P(this.five.state.mode))
659
+ var i, t;
660
+ if (this.entryFromModel && M(this.five.state.mode))
655
661
  return !1;
656
- const i = this.getConfig().unfoldedConfig;
657
- if (i) {
658
- if (typeof i == "function")
659
- return i(this.five, { tag: this, distance: this.getDistance() });
660
- if (i.keep === "folded")
662
+ const e = this.getConfig().unfoldedConfig;
663
+ if (e) {
664
+ if (typeof e == "function")
665
+ return e(this.five, { tag: this, distance: this.getDistance() });
666
+ if (e.keep === "folded")
661
667
  return !1;
662
- if (i.keep === "unfolded")
668
+ if (e.keep === "unfolded")
663
669
  return !0;
664
- if (i.autoUnfold === void 0 || i.autoUnfold === !1 || i.autoUnfold.enable === !1 || !i.autoUnfold.strategy)
670
+ if (typeof e != "object" || e.autoUnfold === void 0 || e.autoUnfold === !1 || e.autoUnfold.enable === !1 || !e.autoUnfold.strategy)
665
671
  return;
666
- if (i.autoUnfold.strategy === "ScreenPostion") {
667
- const t = this.computeTagProject();
668
- if (t && I(t.x, i.autoUnfold.autoUnfoldProjectX) === !1)
672
+ if (e.autoUnfold.strategy === "ScreenPostion") {
673
+ const o = this.computeTagProject();
674
+ if (o && k(o.x, e.autoUnfold.autoUnfoldProjectX) === !1)
669
675
  return !1;
670
676
  }
671
- if (i.autoUnfold.strategy === "MinimumDistance") {
672
- const n = this.plugin.filterPointTag.filter((o) => o.currentVisible).filter((o) => {
673
- const s = this.computeTagProject();
674
- if (!s)
677
+ if (e.autoUnfold.strategy === "MinimumDistance") {
678
+ const r = this.plugin.filterPointTag.filter((n) => n.currentVisible).filter((n) => {
679
+ const f = this.computeTagProject();
680
+ if (!f)
675
681
  return !1;
676
- const { x: d, y: p, z: v } = s;
677
- return !(Math.abs(v) > 1 || Math.abs(d) > 1 || Math.abs(p) > 1);
678
- }).map((o) => ({ tag: o, id: o.id, tagConfig: o.getConfig().unfoldedConfig })).filter(({ tagConfig: o }) => {
679
- var s, d;
680
- return !(typeof o == "function" || o.keep || o.autoUnfold === !1 || ((s = o.autoUnfold) == null ? void 0 : s.enable) === !1 || ((d = o.autoUnfold) == null ? void 0 : d.strategy) !== "MinimumDistance");
681
- }).map((o) => w(g({}, o), { distance: o.tag.getDistance() })).filter(({ distance: o, tagConfig: s }) => {
682
- const d = s.autoUnfold.distance;
683
- return !(d && I(o, d) === !1);
684
- }).sort((o, s) => o.distance - s.distance).findIndex((o) => o.id === this.id);
685
- if (n === -1 || n <= ((e = i.autoUnfold.maxNumber) != null ? e : 1) - 1 === !1)
682
+ const { x: m, y: p, z: c } = f;
683
+ return !(Math.abs(c) > 1 || Math.abs(m) > 1 || Math.abs(p) > 1);
684
+ }).map((n) => ({ tag: n, id: n.id, tagConfig: n.getConfig().unfoldedConfig })).filter(({ tagConfig: n }) => {
685
+ var f, m;
686
+ return !(typeof n == "function" || n.keep || n.autoUnfold === !1 || ((f = n.autoUnfold) == null ? void 0 : f.enable) === !1 || ((m = n.autoUnfold) == null ? void 0 : m.strategy) !== "MinimumDistance");
687
+ }).map((n) => U(b({}, n), { distance: n.tag.getDistance() })).filter(({ distance: n, tagConfig: f }) => {
688
+ const m = f.autoUnfold.distance;
689
+ return !(m && k(n, m) === !1);
690
+ }).sort((n, f) => n.distance - f.distance).findIndex((n) => n.id === this.id);
691
+ if (r === -1 || r <= ((i = e.autoUnfold.maxNumber) != null ? i : 1) - 1 === !1)
686
692
  return !1;
687
693
  }
688
- return i.autoUnfold.strategy !== "FoldWhenMove";
694
+ if (e.autoUnfold.strategy === "FoldWhenMove")
695
+ return !1;
696
+ if (e.autoUnfold.strategy === "ScreenCenter") {
697
+ const o = this.plugin.filterPointTag, s = new y.Matrix4();
698
+ s.multiplyMatrices(this.five.camera.projectionMatrix, this.five.camera.matrixWorldInverse);
699
+ const r = new y.Frustum();
700
+ r.setFromProjectionMatrix(s);
701
+ const a = this.five.camera.getWorldDirection(new y.Vector3()), f = o.filter((p) => {
702
+ var d, v;
703
+ if (!p.currentVisible)
704
+ return !1;
705
+ const c = p.getConfig().unfoldedConfig;
706
+ if (p.manuallyOperated || typeof c != "object" || (c == null ? void 0 : c.autoUnfold) === !1 || ((d = c == null ? void 0 : c.autoUnfold) == null ? void 0 : d.strategy) !== "ScreenCenter" || c.keep || ((v = c.autoUnfold) == null ? void 0 : v.enable) === !1 || !r.containsPoint(new y.Vector3().fromArray(p.position)))
707
+ return !1;
708
+ const h = c.autoUnfold.distance;
709
+ if (h) {
710
+ const C = p.getDistance();
711
+ if (k(C, h) === !1)
712
+ return !1;
713
+ }
714
+ return !0;
715
+ }).sort((p, c) => {
716
+ const u = new y.Vector3().fromArray(p.position), h = new y.Vector3().fromArray(c.position);
717
+ return a.angleTo(u.sub(this.five.camera.position)) - a.angleTo(h.sub(this.five.camera.position));
718
+ }).findIndex((p) => p.id === this.id);
719
+ if (f === -1 || f <= ((t = e.autoUnfold.maxNumber) != null ? t : 1) - 1 === !1)
720
+ return !1;
721
+ }
722
+ return !0;
689
723
  }
690
724
  }
691
725
  computeTagProject() {
692
- const i = this.centerPosition;
693
- if (!i)
726
+ const e = this.centerPosition;
727
+ if (!e)
694
728
  return;
695
- const { x: e, y: t, z: r } = i.project(this.five.camera);
696
- if (!(r > 1))
697
- return { x: e, y: t, z: r };
729
+ const { x: i, y: t, z: o } = e.project(this.five.camera);
730
+ if (!(o > 1))
731
+ return { x: i, y: t, z: o };
698
732
  }
699
- addObjectClickHandler(i, e, t) {
700
- if (!e || !this.plugin.domEvents)
733
+ addObjectClickHandler(e, i, t) {
734
+ if (!i || !this.plugin.domEvents)
701
735
  return () => {
702
736
  };
703
- const r = () => !(!i.currentVisible || i.loading), n = (l) => {
704
- if (!r())
737
+ const o = () => !(!e.currentVisible || e.loading), s = (r) => {
738
+ if (!o())
705
739
  return !1;
706
- t(l.origDomEvent);
740
+ t(r.origDomEvent);
707
741
  };
708
- return this.plugin.domEvents.addEventListener(e, "click", n), () => {
709
- var l;
710
- (l = this.plugin.domEvents) == null || l.removeEventListener(e, "click", n);
742
+ return this.plugin.domEvents.addEventListener(i, "click", s), () => {
743
+ var r;
744
+ (r = this.plugin.domEvents) == null || r.removeEventListener(i, "click", s);
711
745
  };
712
746
  }
713
747
  whyHide() {
714
- var e;
748
+ var i;
715
749
  if (!this.plugin.state.enabled)
716
750
  return { reason: `plugin.state.enabled is ${this.plugin.state.enabled}` };
717
751
  if (!this.plugin.state.visible)
718
752
  return { reason: `plugin.state.visible is ${this.plugin.state.visible}` };
719
753
  if (!this.enabled)
720
754
  return { reason: `tag ${this.id} enabled is: ${this.enabled}` };
721
- const i = w(g({}, this.computeVisible()), {
755
+ const e = U(b({}, this.computeVisible()), {
722
756
  tagInstance: this
723
757
  });
724
- return i.value !== this.state.visible ? { reason: "插件故障,请联系维护人员, err: 0", info: i } : this.state.visible ? { reason: "应该是能看见才对", info: i } : i.value === !0 ? { reason: "插件故障,请联系维护人员, err: 1", info: i } : { reason: (e = i.reason.type) != null ? e : i.reason, info: i };
758
+ return e.value !== this.state.visible ? { reason: "插件故障,请联系维护人员, err: 0", info: e } : this.state.visible ? { reason: "应该是能看见才对", info: e } : e.value === !0 ? { reason: "插件故障,请联系维护人员, err: 1", info: e } : { reason: (i = e.reason.type) != null ? i : e.reason, info: e };
725
759
  }
726
760
  /**
727
761
  * @description 销毁并移除
728
762
  */
729
763
  destroy() {
730
- var e, t, r, n;
731
- const i = this.plugin.tags.findIndex((l) => l.id === this.id);
732
- if (i === -1) {
764
+ var i, t, o, s;
765
+ const e = this.plugin.tags.findIndex((r) => r.id === this.id);
766
+ if (e === -1) {
733
767
  console.warn(`Destroy failed: tag ${this.id} not found`);
734
768
  return;
735
769
  }
736
- this._currentBlinkInstance && !this._currentBlinkInstance.completed && ((t = (e = this._currentBlinkInstance).preComplete) == null || t.call(e), this._currentBlinkInstance = void 0), this.disable(), (n = (r = this.tag3DContentSvelte) == null ? void 0 : r.dispose) == null || n.call(r), this.hooks.off(), this.cache.clear(), this.plugin.tags.splice(i, 1), this.plugin.tagsLengthWillUpdate = !0, this.plugin.hooks.emit("tagsLengthChange");
770
+ this._currentBlinkInstance && !this._currentBlinkInstance.completed && ((t = (i = this._currentBlinkInstance).preComplete) == null || t.call(i), this._currentBlinkInstance = void 0), this.disable(), (s = (o = this.tag3DContentSvelte) == null ? void 0 : o.dispose) == null || s.call(o), this.hooks.off(), this.cache.clear(), this.plugin.tags.splice(e, 1), this.plugin.tagsLengthWillUpdate = !0, this.plugin.hooks.emit("tagsLengthChange");
737
771
  }
738
772
  /**
739
773
  * @description 判断 popover 是否在配置上启用(永久配置)
740
774
  */
741
775
  isPopoverConfigEnabled() {
742
- var i, e;
743
- return ((e = (i = this.currentConfig) == null ? void 0 : i.popoverConfig) == null ? void 0 : e.enabled) === !0;
776
+ var e, i;
777
+ return ((i = (e = this.currentConfig) == null ? void 0 : e.popoverConfig) == null ? void 0 : i.enabled) === !0;
744
778
  }
745
779
  /**
746
780
  * @description 判断当前标签是否允许临时 hover 弹出 popover(临时控制)
747
781
  */
748
782
  isHoverEnabled() {
749
- var i;
750
- return !(((i = this.plugin) == null ? void 0 : i.globalHoverEnabled) === !1 || this.hoverEnabled === !1);
783
+ var e;
784
+ return !(((e = this.plugin) == null ? void 0 : e.globalHoverEnabled) === !1 || this.hoverEnabled === !1);
751
785
  }
752
786
  }
753
787
  export {
754
- Ji as BaseTag
788
+ Wi as BaseTag
755
789
  };