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