@realsee/dnalogel 3.66.0-alpha.13 → 3.66.0-alpha.15

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