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