@realsee/dnalogel 3.74.0-alpha.3 → 3.74.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (520) hide show
  1. package/CHANGELOG.md +2 -15
  2. package/dist/PanoTagPlugin/controller/Tag/BaseTag.d.ts +8 -0
  3. package/dist/PanoTagPlugin/controller/Tag/PointTag.d.ts +14 -0
  4. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +15 -0
  5. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +2 -0
  6. package/dist/Sculpt/Objects/Polygon/index.d.ts +0 -13
  7. package/dist/Sculpt/Objects/Prism/index.d.ts +0 -18
  8. package/dist/Sculpt/index.d.ts +0 -26
  9. package/dist/index.cjs.js +77 -77
  10. package/dist/index.js +4364 -4253
  11. package/dist/index.umd.js +66 -66
  12. package/libs/PanoMeasurePlugin/utils/isIntersecting.js +32 -36
  13. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +3 -3
  14. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPoint.js +7 -7
  15. package/libs/PanoTagPlugin/Components/TagItem.js +20 -20
  16. package/libs/PanoTagPlugin/controller/Tag/BaseTag.d.ts +8 -0
  17. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +362 -341
  18. package/libs/PanoTagPlugin/controller/Tag/PointTag.d.ts +14 -0
  19. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +151 -42
  20. package/libs/PanoTagPlugin/controller/index.js +1 -1
  21. package/libs/PanoTagPlugin/tag.config.js +4 -0
  22. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +15 -0
  23. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +2 -0
  24. package/libs/Sculpt/Objects/Polygon/index.d.ts +0 -13
  25. package/libs/Sculpt/Objects/Polygon/index.js +104 -107
  26. package/libs/Sculpt/Objects/Prism/index.d.ts +0 -18
  27. package/libs/Sculpt/index.d.ts +0 -26
  28. package/libs/Sculpt/index.js +79 -95
  29. package/libs/base/BasePlugin.js +1 -1
  30. package/libs/shared-utils/logger.js +1 -1
  31. package/package.json +1 -1
  32. package/docs/.nojekyll +0 -1
  33. package/docs/assets/custom.css +0 -0
  34. package/docs/assets/highlight.css +0 -127
  35. package/docs/assets/icons.js +0 -18
  36. package/docs/assets/icons.svg +0 -1
  37. package/docs/assets/main.js +0 -60
  38. package/docs/assets/navigation.js +0 -1
  39. package/docs/assets/search.js +0 -1
  40. package/docs/assets/style.css +0 -1493
  41. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -59
  42. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -71
  43. package/docs/classes/CSS3DRender.html +0 -100
  44. package/docs/classes/GuideLineItem.GuideLineItem.html +0 -21
  45. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -70
  46. package/docs/classes/ModelMakerPluginInstance.html +0 -116
  47. package/docs/classes/ModelMakerPluginType.ModelMakerBoxItem.html +0 -52
  48. package/docs/classes/ModelMakerPluginType.ModelMakerPolygonItem.html +0 -52
  49. package/docs/classes/ModelMakerPluginType.ModelMakerPrismItem.html +0 -53
  50. package/docs/classes/ModelRoomLabelController.html +0 -19
  51. package/docs/classes/MoveController.html +0 -45
  52. package/docs/classes/Object3DHelperController.html +0 -45
  53. package/docs/classes/PaintBrush.html +0 -15
  54. package/docs/classes/PanoMeasurePluginLine.html +0 -24
  55. package/docs/classes/PanoMeasurePluginModel.html +0 -23
  56. package/docs/classes/PanoMeasurePluginPoint.html +0 -7
  57. package/docs/classes/PanoMeasurePluginPolyline.html +0 -27
  58. package/docs/classes/PanoTagPluginController.html +0 -111
  59. package/docs/classes/Sculpt.html +0 -77
  60. package/docs/classes/Util.BetterTween.html +0 -6
  61. package/docs/classes/Util.FiveDomEvents.html +0 -13
  62. package/docs/classes/Util.FivePuppet.html +0 -20
  63. package/docs/classes/Util.Interval.html +0 -11
  64. package/docs/classes/Util.LegacyPointHelper.html +0 -7
  65. package/docs/classes/Util.LightTag.html +0 -47
  66. package/docs/classes/Util.LineSegments.html +0 -4
  67. package/docs/classes/Util.Magnifier.html +0 -26
  68. package/docs/classes/Util.Object3D.html +0 -8
  69. package/docs/classes/Util.PointDomHelper.html +0 -8
  70. package/docs/classes/Util.PointHelper.html +0 -10
  71. package/docs/classes/Util.PointSelector.html +0 -66
  72. package/docs/classes/Util.PointSelectorHelper.html +0 -14
  73. package/docs/classes/Util.Rectangle.html +0 -12
  74. package/docs/classes/Util.sculpt.BaseEditor.html +0 -17
  75. package/docs/classes/Util.sculpt.BoxMesh.html +0 -48
  76. package/docs/classes/Util.sculpt.BoxMeshEditor.html +0 -18
  77. package/docs/classes/Util.sculpt.CircleMesh.html +0 -26
  78. package/docs/classes/Util.sculpt.CircleMeshEditor.html +0 -18
  79. package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +0 -26
  80. package/docs/classes/Util.sculpt.CylinderMesh.html +0 -25
  81. package/docs/classes/Util.sculpt.CylinderMeshEditor.html +0 -18
  82. package/docs/classes/Util.sculpt.LineMesh.html +0 -34
  83. package/docs/classes/Util.sculpt.PointMesh.html +0 -24
  84. package/docs/classes/Util.sculpt.PolygonMesh.html +0 -40
  85. package/docs/classes/Util.sculpt.PrismMesh.html +0 -48
  86. package/docs/classes/Util.sculpt.PrismMeshEditor.html +0 -18
  87. package/docs/classes/Util.sculpt.RectangleMesh.html +0 -41
  88. package/docs/classes/Util.sculpt.RectangleMeshEditor.html +0 -18
  89. package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +0 -44
  90. package/docs/classes/WalkController.html +0 -42
  91. package/docs/enums/CameraMovementEffect.html +0 -4
  92. package/docs/enums/ContentType.html +0 -34
  93. package/docs/enums/DIRECTION.html +0 -5
  94. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -5
  95. package/docs/enums/DimensionType.html +0 -4
  96. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -4
  97. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -5
  98. package/docs/enums/PaintBrushTypeEnum.html +0 -4
  99. package/docs/enums/PointType.html +0 -4
  100. package/docs/enums/Rotation.html +0 -5
  101. package/docs/functions/AreaMakerPlugin.html +0 -1
  102. package/docs/functions/CSS3DRenderPlugin.html +0 -1
  103. package/docs/functions/CameraMovementPlugin.html +0 -2
  104. package/docs/functions/CruisePlugin.html +0 -1
  105. package/docs/functions/CurrentPanoImagePlugin.html +0 -1
  106. package/docs/functions/FloorplanGuidePlugin.html +0 -1
  107. package/docs/functions/GuideLinePlugin.html +0 -1
  108. package/docs/functions/ItemLabelPlugin.html +0 -1
  109. package/docs/functions/MapviewFloorplanPlugin.html +0 -1
  110. package/docs/functions/MeasurePlugin.html +0 -1
  111. package/docs/functions/ModelChassisCompassPlugin.html +0 -2
  112. package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -2
  113. package/docs/functions/ModelFloorplanPlugin.html +0 -1
  114. package/docs/functions/ModelItemLabelPlugin.html +0 -1
  115. package/docs/functions/ModelMakerPlugin.html +0 -1
  116. package/docs/functions/ModelRoomLabelPlugin.html +0 -1
  117. package/docs/functions/ModelTVVideoPlugin.html +0 -1
  118. package/docs/functions/ModelViewPlugin.html +0 -2
  119. package/docs/functions/MovePlugin.html +0 -1
  120. package/docs/functions/Object3DHelperPlugin.html +0 -1
  121. package/docs/functions/PanoCompassPlugin.html +0 -1
  122. package/docs/functions/PanoCursorRaycasterPlugin.html +0 -2
  123. package/docs/functions/PanoDoorLabelPlugin.html +0 -1
  124. package/docs/functions/PanoFloorplanRadarPlugin.html +0 -1
  125. package/docs/functions/PanoMeasurePlugin.html +0 -1
  126. package/docs/functions/PanoRulerPlugin.html +0 -2
  127. package/docs/functions/PanoRulerProPlugin.html +0 -2
  128. package/docs/functions/PanoSpatialTagPlugin.html +0 -2
  129. package/docs/functions/PanoTagPlugin.html +0 -1
  130. package/docs/functions/PanoVideoPlugin.html +0 -10
  131. package/docs/functions/PipelinePlugin.html +0 -1
  132. package/docs/functions/SculptPlugin.html +0 -2
  133. package/docs/functions/SculptPluginForFive.html +0 -2
  134. package/docs/functions/TopviewFloorplanPlugin.html +0 -1
  135. package/docs/functions/Util.awaitNextFrame.html +0 -1
  136. package/docs/functions/Util.blink.html +0 -13
  137. package/docs/functions/Util.blinkWithPreset.html +0 -6
  138. package/docs/functions/Util.bounding.html +0 -1
  139. package/docs/functions/Util.boundingBox.html +0 -1
  140. package/docs/functions/Util.boundingSphere.html +0 -1
  141. package/docs/functions/Util.boxVertex.html +0 -7
  142. package/docs/functions/Util.boxVertexes.html +0 -1
  143. package/docs/functions/Util.checkFiveModelLoaded.html +0 -2
  144. package/docs/functions/Util.cleanup.html +0 -3
  145. package/docs/functions/Util.convexHull.html +0 -2
  146. package/docs/functions/Util.equal.html +0 -5
  147. package/docs/functions/Util.fiveModelIsLoaded.html +0 -2
  148. package/docs/functions/Util.generatePolygonGeometry.html +0 -2
  149. package/docs/functions/Util.getCoordsFromClient.html +0 -1
  150. package/docs/functions/Util.getCoordsFromElement.html +0 -1
  151. package/docs/functions/Util.getFrameTime.html +0 -3
  152. package/docs/functions/Util.getGeometryArea.html +0 -1
  153. package/docs/functions/Util.getGeometryInfo.html +0 -1
  154. package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -1
  155. package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -1
  156. package/docs/functions/Util.initialCSS3DRender.html +0 -1
  157. package/docs/functions/Util.inside.html +0 -1
  158. package/docs/functions/Util.isModelLike.html +0 -1
  159. package/docs/functions/Util.isNil.html +0 -2
  160. package/docs/functions/Util.isPanoramaLike.html +0 -1
  161. package/docs/functions/Util.lookObject.html +0 -7
  162. package/docs/functions/Util.lookPoint.html +0 -5
  163. package/docs/functions/Util.nextFrame.html +0 -1
  164. package/docs/functions/Util.notNil.html +0 -2
  165. package/docs/functions/Util.reblink.html +0 -13
  166. package/docs/functions/Util.replaceStaticPrefix.html +0 -8
  167. package/docs/functions/Util.requestAnimationFrameInterval.html +0 -5
  168. package/docs/functions/Util.sculpt.createBox.html +0 -1
  169. package/docs/functions/Util.sculpt.createCircle.html +0 -1
  170. package/docs/functions/Util.sculpt.createCylinder.html +0 -1
  171. package/docs/functions/Util.sculpt.createLine.html +0 -2
  172. package/docs/functions/Util.sculpt.createPoint.html +0 -1
  173. package/docs/functions/Util.sculpt.createPolygon.html +0 -1
  174. package/docs/functions/Util.sculpt.createPrism.html +0 -1
  175. package/docs/functions/Util.sculpt.createRectangle.html +0 -2
  176. package/docs/functions/Util.sculpt.transformUnit.html +0 -1
  177. package/docs/functions/Util.sculpt.transformUnitSquare.html +0 -1
  178. package/docs/functions/Util.tag.html +0 -1
  179. package/docs/functions/Util.triangleArea.html +0 -2
  180. package/docs/functions/Util.triangleCenter.html +0 -2
  181. package/docs/functions/Util.tweenProgress.html +0 -1
  182. package/docs/functions/Util.uuid.html +0 -2
  183. package/docs/functions/Util.waitFiveModelLoaded.html +0 -2
  184. package/docs/functions/Util.worldBounding.html +0 -1
  185. package/docs/functions/Util.worldBoundingBox.html +0 -1
  186. package/docs/functions/Util.worldBoundingSphere.html +0 -1
  187. package/docs/functions/createPolyline.html +0 -2
  188. package/docs/functions/pluginFlag.html +0 -1
  189. package/docs/functions/validatePolygon.html +0 -1
  190. package/docs/hierarchy.html +0 -1
  191. package/docs/index.html +0 -70
  192. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -4
  193. package/docs/interfaces/AreaMakerPluginType.Config.html +0 -8
  194. package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -25
  195. package/docs/interfaces/AreaMakerPluginType.Params.html +0 -4
  196. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -20
  197. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -13
  198. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -9
  199. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -3
  200. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -3
  201. package/docs/interfaces/AreaMakerPluginType.State.html +0 -8
  202. package/docs/interfaces/BoxAnimationConfig.html +0 -6
  203. package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -9
  204. package/docs/interfaces/CSS3DRenderPluginState.html +0 -7
  205. package/docs/interfaces/CameraMovementPluginExportType.html +0 -11
  206. package/docs/interfaces/ContentTypeMapInterface.html +0 -73
  207. package/docs/interfaces/CruisePluginTypes.Config.html +0 -7
  208. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -8
  209. package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -33
  210. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +0 -6
  211. package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -16
  212. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -19
  213. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -20
  214. package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -8
  215. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -2
  216. package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -15
  217. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -13
  218. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -15
  219. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -4
  220. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -3
  221. package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -7
  222. package/docs/interfaces/FloorplanBounding.html +0 -9
  223. package/docs/interfaces/FloorplanData.html +0 -7
  224. package/docs/interfaces/FloorplanEntrance.html +0 -14
  225. package/docs/interfaces/FloorplanExtraObject.html +0 -9
  226. package/docs/interfaces/FloorplanExtraObject3D.html +0 -5
  227. package/docs/interfaces/FloorplanFloorData.html +0 -9
  228. package/docs/interfaces/FloorplanImagePosition.html +0 -4
  229. package/docs/interfaces/FloorplanObserver.html +0 -8
  230. package/docs/interfaces/FloorplanOutlineItem.html +0 -6
  231. package/docs/interfaces/FloorplanPosition.html +0 -4
  232. package/docs/interfaces/FloorplanRoomItem.html +0 -24
  233. package/docs/interfaces/FloorplanRoomLabelItem.html +0 -6
  234. package/docs/interfaces/FloorplanServerBounding.html +0 -9
  235. package/docs/interfaces/FloorplanServerComputedData.html +0 -6
  236. package/docs/interfaces/FloorplanServerData.html +0 -4
  237. package/docs/interfaces/FloorplanServerDoorItem.html +0 -6
  238. package/docs/interfaces/FloorplanServerDoorPosition.html +0 -4
  239. package/docs/interfaces/FloorplanServerEntrance.html +0 -14
  240. package/docs/interfaces/FloorplanServerFloorData.html +0 -8
  241. package/docs/interfaces/FloorplanServerImagePosition.html +0 -4
  242. package/docs/interfaces/FloorplanServerObserver.html +0 -8
  243. package/docs/interfaces/FloorplanServerOutlineItem.html +0 -6
  244. package/docs/interfaces/FloorplanServerPosition.html +0 -4
  245. package/docs/interfaces/FloorplanServerRoomItem.html +0 -27
  246. package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -6
  247. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -4
  248. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -7
  249. package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -13
  250. package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +0 -5
  251. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -8
  252. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -2
  253. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -32
  254. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +0 -4
  255. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -5
  256. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -42
  257. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -3
  258. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -57
  259. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -1
  260. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -2
  261. package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -7
  262. package/docs/interfaces/GuideLinePluginType.Route.html +0 -13
  263. package/docs/interfaces/HelperOffset.html +0 -4
  264. package/docs/interfaces/ImagePlaneGroup.html +0 -3
  265. package/docs/interfaces/ItemLabelPluginData.html +0 -2
  266. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -7
  267. package/docs/interfaces/ItemLabelPluginParametersType.html +0 -5
  268. package/docs/interfaces/MinMax.html +0 -3
  269. package/docs/interfaces/ModelChassisCompassPluginData.html +0 -3
  270. package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -4
  271. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -3
  272. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -4
  273. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -4
  274. package/docs/interfaces/ModelItemLabelPluginData.html +0 -2
  275. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -7
  276. package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -3
  277. package/docs/interfaces/ModelMakerPluginType.BoxItemObjectData.html +0 -17
  278. package/docs/interfaces/ModelMakerPluginType.EventMap.html +0 -18
  279. package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.html +0 -23
  280. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +0 -11
  281. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +0 -10
  282. package/docs/interfaces/ModelMakerPluginType.ServerData.html +0 -3
  283. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +0 -10
  284. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +0 -10
  285. package/docs/interfaces/ModelMakerPluginType.State.html +0 -8
  286. package/docs/interfaces/ModelMakerPluginType.TrianglesItemObjectData.html +0 -11
  287. package/docs/interfaces/ModelRoomLabelPluginData.html +0 -2
  288. package/docs/interfaces/ModelTVVideoPluginData.html +0 -5
  289. package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -4
  290. package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -2
  291. package/docs/interfaces/ModelViewPluginExportType.html +0 -8
  292. package/docs/interfaces/Object3DHelperState.html +0 -4
  293. package/docs/interfaces/ObjectHelperControllers.html +0 -5
  294. package/docs/interfaces/PaintBrushAction.html +0 -14
  295. package/docs/interfaces/PaintBrushConfigs.html +0 -8
  296. package/docs/interfaces/PaintBrushState.html +0 -6
  297. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -16
  298. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -1
  299. package/docs/interfaces/PanoMeasureParameterType.html +0 -20
  300. package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -4
  301. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -4
  302. package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -3
  303. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -7
  304. package/docs/interfaces/PanoRulerPluginExportType.html +0 -6
  305. package/docs/interfaces/PanoRulerPluginOptions.html +0 -3
  306. package/docs/interfaces/PanoRulerPluginParameterType.html +0 -4
  307. package/docs/interfaces/PanoRulerProPluginExportType.html +0 -5
  308. package/docs/interfaces/PanoRulerProPluginOptions.html +0 -3
  309. package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -3
  310. package/docs/interfaces/PanoRulerProPluginState.html +0 -4
  311. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -1
  312. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -1
  313. package/docs/interfaces/PanoSpatialTagPluginData.html +0 -7
  314. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -6
  315. package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -9
  316. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -6
  317. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -9
  318. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -7
  319. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -6
  320. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -3
  321. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -8
  322. package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -2
  323. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -15
  324. package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -2
  325. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -14
  326. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -13
  327. package/docs/interfaces/PluginEventMap.html +0 -16
  328. package/docs/interfaces/Point.html +0 -4
  329. package/docs/interfaces/Room.html +0 -5
  330. package/docs/interfaces/RoomInfo.html +0 -3
  331. package/docs/interfaces/RoomLabel.html +0 -16
  332. package/docs/interfaces/RoomRules.html +0 -1
  333. package/docs/interfaces/Rooms.html +0 -1
  334. package/docs/interfaces/Scissor.html +0 -13
  335. package/docs/interfaces/SculptConfig.html +0 -14
  336. package/docs/interfaces/State.html +0 -7
  337. package/docs/interfaces/TagCacheInterface.html +0 -9
  338. package/docs/interfaces/TagConfig.html +0 -164
  339. package/docs/interfaces/TagGLTFObjectGroup.html +0 -3
  340. package/docs/interfaces/TagIconAnimationConfig.html +0 -7
  341. package/docs/interfaces/TagIconUrl.html +0 -20
  342. package/docs/interfaces/TagObjectGroup.html +0 -3
  343. package/docs/interfaces/TagState.html +0 -3
  344. package/docs/interfaces/TagStyle.html +0 -5
  345. package/docs/interfaces/Tags.html +0 -8
  346. package/docs/interfaces/TemporaryState.html +0 -2
  347. package/docs/interfaces/Util.AnimeInstance.html +0 -14
  348. package/docs/interfaces/Util.BlinkAnimeOptions.html +0 -21
  349. package/docs/interfaces/Util.EventHandlerConfig.html +0 -21
  350. package/docs/interfaces/Util.FiveDomEvent.html +0 -7
  351. package/docs/interfaces/Util.FiveDomEventMap.html +0 -20
  352. package/docs/interfaces/Util.LegacyMouseGroupParameter.html +0 -4
  353. package/docs/interfaces/Util.MagnifierParameter.html +0 -13
  354. package/docs/interfaces/Util.MouseGroupParameter.html +0 -4
  355. package/docs/interfaces/Util.ObjectInitialState.html +0 -9
  356. package/docs/interfaces/Util.PointIntersection.html +0 -21
  357. package/docs/interfaces/Util.PointSelectorHelperConfig.html +0 -6
  358. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +0 -27
  359. package/docs/modules/AreaMakerPluginType.html +0 -17
  360. package/docs/modules/CruisePluginTypes.html +0 -14
  361. package/docs/modules/CurrentPanoImagePluginType.html +0 -6
  362. package/docs/modules/GuideLineItem.html +0 -2
  363. package/docs/modules/GuideLineModeItem.html +0 -3
  364. package/docs/modules/GuideLinePluginType.html +0 -25
  365. package/docs/modules/ModelMakerPluginType.html +0 -19
  366. package/docs/modules/PanoVideoPluginType.html +0 -8
  367. package/docs/modules/SculptData.html +0 -9
  368. package/docs/modules/SculptType.html +0 -2
  369. package/docs/modules/Util.html +0 -91
  370. package/docs/modules/Util.sculpt.html +0 -27
  371. package/docs/modules.html +0 -281
  372. package/docs/types/AddObject3DHelperConfig.html +0 -19
  373. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -7
  374. package/docs/types/AreaMakerPluginType.ItemRenderer.html +0 -1
  375. package/docs/types/AreaMakerPluginType.PluginData.html +0 -2
  376. package/docs/types/AreaMakerPluginType.ServerData.html +0 -2
  377. package/docs/types/ArrayPosition.html +0 -1
  378. package/docs/types/AudioAppearance.html +0 -1
  379. package/docs/types/CSS3DRenderExportType.html +0 -1
  380. package/docs/types/CSS3DRenderPluginExportType.html +0 -1
  381. package/docs/types/CSS3DRenderPluginParameterType.html +0 -1
  382. package/docs/types/ClassFunctionParameters.html +0 -1
  383. package/docs/types/Color.html +0 -1
  384. package/docs/types/ContentTypeConfigKey.html +0 -1
  385. package/docs/types/ContentTypeConfigKeySplit.html +0 -1
  386. package/docs/types/ContentTypeMap.html +0 -1
  387. package/docs/types/Create3DDomContainerReturnType.html +0 -1
  388. package/docs/types/Create3DElementReturnType.html +0 -1
  389. package/docs/types/CruisePluginExportType.html +0 -1
  390. package/docs/types/CruisePluginTypes.CruiseData.html +0 -5
  391. package/docs/types/CruisePluginTypes.MoveEffect.html +0 -1
  392. package/docs/types/CurrentPanoImagePluginExportType.html +0 -1
  393. package/docs/types/DeprecatedMediaPlaneProperty.html +0 -3
  394. package/docs/types/DeprecatedTagProperty.html +0 -3
  395. package/docs/types/Direction-1.html +0 -1
  396. package/docs/types/Direction4.html +0 -1
  397. package/docs/types/ElementRenderer.html +0 -2
  398. package/docs/types/FloorplanGuidePluginParameterType.html +0 -1
  399. package/docs/types/FloorplanGuidePluginReturnType.html +0 -1
  400. package/docs/types/FloorplanRuleLabels.html +0 -2
  401. package/docs/types/FloorplanServerRuleLabels.html +0 -1
  402. package/docs/types/GuideLinePluginExportType.html +0 -1
  403. package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -2
  404. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -1
  405. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -1
  406. package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -2
  407. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -2
  408. package/docs/types/GuideLinePluginType.PathItem.html +0 -2
  409. package/docs/types/GuideLinePluginType.PluginData.html +0 -2
  410. package/docs/types/GuideLinePluginType.RouteConfig.html +0 -4
  411. package/docs/types/HelperEventMap.html +0 -1
  412. package/docs/types/InternalHelperEventMap.html +0 -1
  413. package/docs/types/MapviewFloorplanPluginParameterType.html +0 -1
  414. package/docs/types/MapviewFloorplanPluginReturnType.html +0 -1
  415. package/docs/types/MeasureEndReason.html +0 -1
  416. package/docs/types/MeasurePluginConfig.html +0 -5
  417. package/docs/types/MeasurePluginEventMap.html +0 -1
  418. package/docs/types/MediaData.html +0 -2
  419. package/docs/types/MediaStore.html +0 -1
  420. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -1
  421. package/docs/types/ModelFloorplanPluginParameterType.html +0 -1
  422. package/docs/types/ModelFloorplanPluginReturnType.html +0 -1
  423. package/docs/types/ModelId.html +0 -1
  424. package/docs/types/ModelMakerPluginType.ElementRenderer.html +0 -1
  425. package/docs/types/ModelMakerPluginType.ItemType.html +0 -2
  426. package/docs/types/ModelMakerPluginType.MarkerItem.html +0 -1
  427. package/docs/types/ModelMakerPluginType.ServerItem.html +0 -2
  428. package/docs/types/ModelRoomLabelPluginParameters.html +0 -1
  429. package/docs/types/ModelRoomLabelPluginReturnType.html +0 -1
  430. package/docs/types/MoveArgs.html +0 -2
  431. package/docs/types/MoveOpts.html +0 -2
  432. package/docs/types/Object3DHelperEventMap.html +0 -1
  433. package/docs/types/ObjectFit.html +0 -1
  434. package/docs/types/PaintBrushEventMap.html +0 -1
  435. package/docs/types/PanoCompassPluginData.html +0 -1
  436. package/docs/types/PanoCompassPluginExportType.html +0 -1
  437. package/docs/types/PanoCompassPluginParameterType.html +0 -1
  438. package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -1
  439. package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -1
  440. package/docs/types/PanoIndex.html +0 -1
  441. package/docs/types/PanoMeasurePluginEvent.html +0 -1
  442. package/docs/types/PanoMeasureReturnType.html +0 -1
  443. package/docs/types/PanoSpatialTagPluginId.html +0 -1
  444. package/docs/types/PanoTagPluginExportInterface.html +0 -1
  445. package/docs/types/PanoTagPluginParamsInterface.html +0 -1
  446. package/docs/types/PanoVideoPluginParameterType.html +0 -1
  447. package/docs/types/PanoVideoPluginReturnType.html +0 -1
  448. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -2
  449. package/docs/types/PipelinePluginParameterType.html +0 -1
  450. package/docs/types/PipelinePluginReturnType.html +0 -1
  451. package/docs/types/PlaneTag.html +0 -2
  452. package/docs/types/Point2DTag.html +0 -2
  453. package/docs/types/Point3DTag.html +0 -2
  454. package/docs/types/PointTagInstance.html +0 -1
  455. package/docs/types/Position.html +0 -1
  456. package/docs/types/PositionFrom.html +0 -1
  457. package/docs/types/RotateArgs.html +0 -2
  458. package/docs/types/RotateOpts.html +0 -2
  459. package/docs/types/RuleLabelsKey.html +0 -1
  460. package/docs/types/RuleLabelsValue.html +0 -1
  461. package/docs/types/ScaleCallback.html +0 -1
  462. package/docs/types/ScalePosition.html +0 -3
  463. package/docs/types/SculptData.BoxData.html +0 -1
  464. package/docs/types/SculptData.CircleData.html +0 -1
  465. package/docs/types/SculptData.CylinderData.html +0 -1
  466. package/docs/types/SculptData.PointData.html +0 -1
  467. package/docs/types/SculptData.PolygonData.html +0 -1
  468. package/docs/types/SculptData.PolylineData.html +0 -1
  469. package/docs/types/SculptData.PrismData.html +0 -1
  470. package/docs/types/SculptData.RectangleData.html +0 -1
  471. package/docs/types/SculptType.Theme.html +0 -10
  472. package/docs/types/StickType.html +0 -1
  473. package/docs/types/Tag.html +0 -17
  474. package/docs/types/Tag2D.html +0 -2
  475. package/docs/types/Tag3D.html +0 -2
  476. package/docs/types/TagClickParams.html +0 -1
  477. package/docs/types/TagConfigByKey.html +0 -1
  478. package/docs/types/TagContentType.html +0 -1
  479. package/docs/types/TagContentTypeMapping.html +0 -1
  480. package/docs/types/TagDimensionType.html +0 -1
  481. package/docs/types/TagElement.html +0 -2
  482. package/docs/types/TagEvents.html +0 -1
  483. package/docs/types/TagGLTFObject.html +0 -1
  484. package/docs/types/TagHooks.html +0 -1
  485. package/docs/types/TagId.html +0 -1
  486. package/docs/types/TagInstance.html +0 -1
  487. package/docs/types/TagPlacement.html +0 -5
  488. package/docs/types/TagPointType.html +0 -2
  489. package/docs/types/TagRendererMap.html +0 -1
  490. package/docs/types/TopviewFloorplanPluginParameterType.html +0 -1
  491. package/docs/types/TopviewFloorplanPluginReturnType.html +0 -1
  492. package/docs/types/Util.ActionIfNoIntersection.html +0 -1
  493. package/docs/types/Util.AdherePoint.html +0 -2
  494. package/docs/types/Util.PointSelectorConfig.html +0 -1
  495. package/docs/types/Util.SupportedTarget.html +0 -2
  496. package/docs/types/Util.Target.html +0 -2
  497. package/docs/types/Util.ThreeObject.html +0 -2
  498. package/docs/types/WorkCode.html +0 -1
  499. package/docs/variables/FLOOR_TYPE_MAP.html +0 -2
  500. package/docs/variables/PLUGIN.html +0 -1
  501. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -2
  502. package/docs/variables/ROOM_TYPE_MAP.html +0 -2
  503. package/docs/variables/Util.ANIME_PRESETS.html +0 -2
  504. package/docs/variables/Util.CURRENT_PANO_IMAGE_DEFAULT_IMAGE.html +0 -2
  505. package/docs/variables/Util.DEFAULT_ANIME_CONFIG.html +0 -2
  506. package/docs/variables/Util.DEFAULT_STATIC_PREFIX.html +0 -2
  507. package/docs/variables/Util.DNALOGEL_DEFAULT_ASSETS.html +0 -2
  508. package/docs/variables/Util.ENTRY_DOOR_DEFAULT_IMAGE.html +0 -2
  509. package/docs/variables/Util.FLOORPLAN_DEFAULT_IMAGE.html +0 -2
  510. package/docs/variables/Util.GUIDELINE_DEFAULT_ARROW_TEXTURE.html +0 -2
  511. package/docs/variables/Util.GUIDELINE_WHITE_ARROW_TEXTURE.html +0 -2
  512. package/docs/variables/Util.MODEL_CHASSIS_COMPASS_DEFAULT_MODEL.html +0 -2
  513. package/docs/variables/Util.MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL.html +0 -2
  514. package/docs/variables/Util.PANO_COMPASS_DEFAULT_IMAGE.html +0 -2
  515. package/docs/variables/Util.PANO_SPATIAL_TAG_BLUR_IMAGE.html +0 -2
  516. package/docs/variables/Util.PANO_TAG_DEFAULT_LINK_ICON.html +0 -2
  517. package/docs/variables/defaultGlobalConfig.html +0 -1
  518. package/docs/variables/itemLabelPluginServerParams.html +0 -1
  519. package/docs/variables/modelItemLabelPluginServerParams.html +0 -1
  520. package/docs/variables/modelRoomLabelPluginServerParams.html +0 -1
@@ -7,7 +7,11 @@ export type PointTagInterface<C extends TagContentType = TagContentType> = TagIn
7
7
  export declare class PointTag<C extends TagContentType = TagContentType> extends BaseTag<C, '2DPoint' | '3DPoint'> {
8
8
  private __Object__;
9
9
  private requestIdleCallbackId?;
10
+ private iconPixelGap;
11
+ private _temp;
12
+ private _lastUpdateCache;
10
13
  constructor(plugin: PanoTagPluginController, tagData: TagData);
14
+ initialTagLine(): void;
11
15
  /**
12
16
  * @description 展开自己,收起其他标签
13
17
  */
@@ -22,6 +26,11 @@ export declare class PointTag<C extends TagContentType = TagContentType> extends
22
26
  */
23
27
  setUnfold(unfolded: boolean): void;
24
28
  setPosition(position: ArrayPosition): void;
29
+ /**
30
+ * 更新标签连线的位置,使其端点与icon保持固定像素距离
31
+ * 使用屏幕空间反投影方法,确保任意视角下都保持固定像素距离
32
+ */
33
+ private updateTagNormalLinePosition;
25
34
  updateScreenPosition(params?: {
26
35
  force?: boolean;
27
36
  }): void;
@@ -29,4 +38,9 @@ export declare class PointTag<C extends TagContentType = TagContentType> extends
29
38
  setData(...data: Parameters<InstanceType<typeof BaseTag<C, '2DPoint' | '3DPoint'>>['setData']>): void;
30
39
  updateUnfoldedByPanoIndex(): void;
31
40
  computeNormal(): THREE.Vector3;
41
+ removeTagNormalLine(): void;
42
+ /**
43
+ * @description 获取额外的闪烁目标,包括法线(如果有)
44
+ */
45
+ protected getAdditionalBlinkTargets(): any | any[] | null;
32
46
  }
@@ -1,8 +1,11 @@
1
- var h = Object.defineProperty;
2
- var c = (s, o, t) => o in s ? h(s, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[o] = t;
3
- var p = (s, o, t) => (c(s, typeof o != "symbol" ? o + "" : o, t), t);
4
- import { BaseTag as g } from "./BaseTag.js";
5
- import * as l from "three";
1
+ var I = Object.defineProperty;
2
+ var M = (p, h, t) => h in p ? I(p, h, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[h] = t;
3
+ var c = (p, h, t) => (M(p, typeof h != "symbol" ? h + "" : h, t), t);
4
+ import { BaseTag as U } from "./BaseTag.js";
5
+ import * as r from "three";
6
+ import { Line as R } from "@realsee/five/line";
7
+ import { anyPositionToVector3 as g } from "../../../shared-utils/positionToVector3.js";
8
+ import { transformPosition as P } from "../../../shared-utils/five/transformPosition.js";
6
9
  import "../../../shared-utils/Subscribe.js";
7
10
  import "../../utils/tag/calculateTagConfig.js";
8
11
  import "../../../vendor/object-assign-deep/objectAssignDeep.js";
@@ -11,13 +14,11 @@ import "../../utils/tag/adaptConfig.js";
11
14
  import "../../typings/tag/TagConfig.js";
12
15
  import "@realsee/five";
13
16
  import "../../../shared-utils/tag.js";
14
- import "../../../shared-utils/positionToVector3.js";
15
17
  import "../../../shared-utils/five/vector3ToScreen.js";
16
18
  import "../../../shared-utils/five/getFiveModel.js";
17
19
  import "../../../shared-utils/Utils/FiveUtil.js";
18
20
  import "../../../shared-utils/Utils/BaseUtil.js";
19
21
  import "../../../shared-utils/Utils/WorkUtil.js";
20
- import "../../../shared-utils/five/transformPosition.js";
21
22
  import "../../../shared-utils/three/temp.js";
22
23
  import "../../../shared-utils/three/core/Raycaster.js";
23
24
  import "../../../shared-utils/dom/resizeObserver.js";
@@ -36,7 +37,6 @@ import "../../../shared-utils/three/centerPoint.js";
36
37
  import "../../../shared-utils/three/getObjectVisible.js";
37
38
  import "../../../shared-utils/three/CSS3DRenderer/index.js";
38
39
  import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
39
- import "@realsee/five/line";
40
40
  import "../../../shared-utils/isNil.js";
41
41
  import "../../../shared-utils/three/core/Five_LineMaterial2.js";
42
42
  import "../../../shared-utils/three/core/Sphere.js";
@@ -88,12 +88,57 @@ import "../../../shared-utils/five/getFloorIndex.js";
88
88
  import "../../../shared-utils/safeObj.js";
89
89
  import "../../utils/Cache.js";
90
90
  import "../../../shared-utils/promise/withResolvers.js";
91
- const v = new l.Vector2();
92
- class Lt extends g {
93
- constructor(t, i) {
94
- super(t, i);
95
- p(this, "__Object__");
96
- p(this, "requestIdleCallbackId");
91
+ const _ = new r.Vector2();
92
+ class _i extends U {
93
+ constructor(t, e) {
94
+ var o, i, n, s, a;
95
+ super(t, e);
96
+ c(this, "__Object__");
97
+ c(this, "requestIdleCallbackId");
98
+ // icon 与线条端点的固定像素间距
99
+ c(this, "iconPixelGap", 10);
100
+ // 优化:重用临时对象,避免频繁创建
101
+ c(this, "_temp", {
102
+ lineStart: new r.Vector3(),
103
+ // 线条起点(project后会变成NDC)
104
+ iconPos: new r.Vector3(),
105
+ // icon位置(project后会变成NDC)
106
+ screenDirPixel: new r.Vector2(),
107
+ // 屏幕方向(normalize后会变成单位向量)
108
+ targetNDC: new r.Vector2(),
109
+ // 目标NDC坐标
110
+ lineDir: new r.Vector3(),
111
+ // 线条方向(计算w0时重用)
112
+ lineEnd: new r.Vector3(),
113
+ // 线条终点
114
+ raycaster: new r.Raycaster()
115
+ // 射线投射器
116
+ });
117
+ // 用于变化检测的缓存值
118
+ c(this, "_lastUpdateCache", {
119
+ position: [0, 0, 0],
120
+ screenLeft: 0,
121
+ screenTop: 0,
122
+ scale: 1,
123
+ visible: !1
124
+ });
125
+ if ((i = (o = e.style) == null ? void 0 : o.point) != null && i.width) {
126
+ const d = (a = (s = (n = e.style) == null ? void 0 : n.point) == null ? void 0 : s.scale) != null ? a : 1;
127
+ this.iconPixelGap = e.style.point.width * d * 1.4 / 2 + 2;
128
+ }
129
+ e.contentType === "Audio" && (this.iconPixelGap = 34 / 2 + 2), this.initialTagLine();
130
+ }
131
+ initialTagLine() {
132
+ var n, s, a;
133
+ const t = this.config;
134
+ if (!this.five.renderer || !((n = t == null ? void 0 : t.tagNormalLineConfig) != null && n.enabled) || !this.normalLineLength)
135
+ return;
136
+ const e = this.five.renderer.getSize(_), o = this.five.renderer.getPixelRatio(), i = P(g(this.originPosition), this.plugin.workUtil.transform);
137
+ this.tagNormalLine = new R(new r.Vector3().fromArray(this.position), i), this.tagNormalLine.points.visible = !1, this.tagNormalLine.setMaterial({
138
+ color: new r.Vector3(1, 1, 1),
139
+ linewidth: (a = (s = t == null ? void 0 : t.tagNormalLineConfig) == null ? void 0 : s.lineWidth) != null ? a : 1.2,
140
+ dashed: !1
141
+ }), this.tagNormalLine.line.material.transparent = !0, this.tagNormalLine.line.material.depthWrite = !1, this.tagNormalLine.line.material.depthTest = !0, this.tagNormalLine.line.material.dashed = !1, this.tagNormalLine.line.renderOrder = 2, this.tagNormalLine.setResolution(e.width * o, e.height * o), this.tagNormalLine.visible = !1, this.tagNormalLine.name = `tagNormalLine-${this.id}`, this.plugin.group.add(this.tagNormalLine);
97
142
  }
98
143
  /**
99
144
  * @description 展开自己,收起其他标签
@@ -101,20 +146,20 @@ class Lt extends g {
101
146
  unfoldAndFoldOthers() {
102
147
  if (this.isPopoverConfigEnabled())
103
148
  return;
104
- const t = this.can("fold"), i = this.can("unfold");
105
- t && i && (this.state.unfolded = !this.state.unfolded, this.manuallyOperated = !0, this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.state.unfolded && this.plugin.tags.forEach((r) => {
106
- r.id !== this.id && r.fold();
149
+ const t = this.can("fold"), e = this.can("unfold");
150
+ t && e && (this.state.unfolded = !this.state.unfolded, this.manuallyOperated = !0, this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.state.unfolded && this.plugin.tags.forEach((o) => {
151
+ o.id !== this.id && o.fold();
107
152
  }));
108
153
  }
109
154
  onClick(t) {
110
155
  t.target === "TagPoint" && this.unfoldAndFoldOthers();
111
156
  }
112
157
  applyVisible() {
113
- var t, i;
114
- this.currentVisible && this.updateScreenPosition(), (t = this.tag3DContentSvelte) != null && t.css3DInstance && (this.tag3DContentSvelte.css3DInstance.visible = this.visible), (i = this.tag3DContentSvelte) == null || i.svelteApp.$set({
158
+ var t, e;
159
+ this.currentVisible && this.updateScreenPosition(), (t = this.tag3DContentSvelte) != null && t.css3DInstance && (this.tag3DContentSvelte.css3DInstance.visible = this.visible), (e = this.tag3DContentSvelte) == null || e.svelteApp.$set({
115
160
  state: this.plugin.state,
116
161
  temporaryState: this.temporaryState
117
- }), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
162
+ }), !this.tagNormalLine && this.normalLineLength && this.initialTagLine(), this.tagNormalLine && (this.tagNormalLine.visible = this.visible), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
118
163
  }
119
164
  unfold() {
120
165
  this.isPopoverConfigEnabled() || this.setUnfold(!0);
@@ -129,45 +174,99 @@ class Lt extends g {
129
174
  setUnfold(t) {
130
175
  if (this.isPopoverConfigEnabled())
131
176
  return;
132
- const i = this.can("fold"), r = this.can("unfold");
133
- i && r && (this.state.unfolded = t, this.hooks.emit(t ? "unfolded" : "folded"), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }));
177
+ const e = this.can("fold"), o = this.can("unfold");
178
+ e && o && (this.state.unfolded = t, this.hooks.emit(t ? "unfolded" : "folded"), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }));
134
179
  }
135
180
  setPosition(t) {
136
- this.originPosition = t, this.position = t, this.cache.clear(), this.updateVisible(), this.updateScreenPosition(), this.updateZIndex(), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
181
+ this.originPosition = t, this.position = (() => {
182
+ const e = this.plugin.workUtil.transform;
183
+ let o = P(g(t), e).toArray();
184
+ if (this.normal && this.normalLineLength) {
185
+ const i = this.computeNormal();
186
+ o = new r.Vector3().fromArray(o).clone().add(i.clone().setLength(this.normalLineLength)).toArray();
187
+ }
188
+ return o;
189
+ })(), this.cache.clear(), this._lastUpdateCache.position = [0, 0, 0], this.updateVisible(), this.updateScreenPosition(), this.updateZIndex(), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
190
+ }
191
+ /**
192
+ * 更新标签连线的位置,使其端点与icon保持固定像素距离
193
+ * 使用屏幕空间反投影方法,确保任意视角下都保持固定像素距离
194
+ */
195
+ updateTagNormalLinePosition(t) {
196
+ var L, x, C, N, S, T, D;
197
+ if (!this.screenPosition || !this.tagNormalLine)
198
+ return;
199
+ const { force: e = !1 } = t != null ? t : {};
200
+ if (!(e ? this.state.visible : this.currentVisible)) {
201
+ this.tagNormalLine.visible = !1;
202
+ return;
203
+ }
204
+ const i = this._lastUpdateCache;
205
+ if (!(this.visible !== i.visible)) {
206
+ const u = Math.abs(this.position[0] - i.position[0]) > 1e-3 || Math.abs(this.position[1] - i.position[1]) > 1e-3 || Math.abs(this.position[2] - i.position[2]) > 1e-3, E = Math.abs(((L = this.screenPosition.leftPx) != null ? L : 0) - i.screenLeft) > 0.5 || Math.abs(((x = this.screenPosition.topPx) != null ? x : 0) - i.screenTop) > 0.5 || Math.abs(((C = this.screenPosition.scale) != null ? C : 1) - i.scale) > 2e-3;
207
+ if (!u && !E)
208
+ return;
209
+ }
210
+ if (i.position = new r.Vector3().fromArray(this.position).toArray(), i.screenLeft = (N = this.screenPosition.leftPx) != null ? N : 0, i.screenTop = (S = this.screenPosition.topPx) != null ? S : 0, i.scale = (T = this.screenPosition.scale) != null ? T : 1, i.visible = this.visible, !this.five.renderer)
211
+ return;
212
+ const s = this.five.renderer.getSize(_), a = P(g(this.originPosition), this.plugin.workUtil.transform).toArray();
213
+ this._temp.lineStart.fromArray(a), this._temp.iconPos.fromArray(this.position), this._temp.lineStart.project(this.five.camera), this._temp.iconPos.project(this.five.camera), this._temp.screenDirPixel.set(
214
+ (this._temp.iconPos.x - this._temp.lineStart.x) * s.x / 2,
215
+ (this._temp.iconPos.y - this._temp.lineStart.y) * s.y / 2
216
+ );
217
+ const d = this._temp.screenDirPixel.length();
218
+ this._temp.screenDirPixel.normalize();
219
+ const m = this.iconPixelGap * ((D = this.screenPosition.scale) != null ? D : 1);
220
+ this._temp.targetNDC.set(
221
+ (this._temp.iconPos.x * s.x / 2 - this._temp.screenDirPixel.x * m) / (s.x / 2),
222
+ (this._temp.iconPos.y * s.y / 2 - this._temp.screenDirPixel.y * m) / (s.y / 2)
223
+ ), this._temp.raycaster.setFromCamera(this._temp.targetNDC, this.five.camera);
224
+ const l = this._temp.raycaster.ray;
225
+ this._temp.lineStart.fromArray(a), this._temp.iconPos.fromArray(this.position), this._temp.lineDir.copy(this._temp.iconPos).sub(this._temp.lineStart).normalize(), this._temp.lineEnd.copy(l.origin).sub(this._temp.lineStart);
226
+ const A = l.direction.dot(l.direction), f = l.direction.dot(this._temp.lineDir), y = this._temp.lineDir.dot(this._temp.lineDir), w = l.direction.dot(this._temp.lineEnd), V = this._temp.lineDir.dot(this._temp.lineEnd), v = A * y - f * f;
227
+ let b = 0;
228
+ Math.abs(v) > 1e-4 && (b = (f * V - y * w) / v), this._temp.lineEnd.copy(l.origin).add(l.direction.multiplyScalar(Math.max(0, b)));
229
+ const k = this._temp.lineStart.distanceTo(this._temp.iconPos);
230
+ if (this._temp.lineStart.distanceTo(this._temp.lineEnd) > k) {
231
+ const u = Math.max(0, 1 - m / d);
232
+ this._temp.lineEnd.copy(this._temp.lineStart).lerp(this._temp.iconPos, u);
233
+ }
234
+ this.tagNormalLine.setPoints(this._temp.lineStart, this._temp.lineEnd), this.tagNormalLine.visible = !0;
137
235
  }
138
236
  updateScreenPosition(t) {
139
- var a;
237
+ var s;
140
238
  if (this.stickType !== "2DPoint" && this.stickType !== "3DPoint")
141
239
  return;
142
- const { force: i = !1 } = t != null ? t : {}, r = i ? this.state.visible : this.currentVisible, e = (a = this.__Object__) != null ? a : {
240
+ const { force: e = !1 } = t != null ? t : {}, o = e ? this.state.visible : this.currentVisible, i = (s = this.__Object__) != null ? s : {
143
241
  timeoutId: void 0,
144
242
  inAnimation: !1
145
243
  };
146
- if (this.__Object__ = e, !r && this.screenPosition ? (e.inAnimation = !0, e.timeoutId = setTimeout(() => {
244
+ if (this.__Object__ = i, !o && this.screenPosition ? (i.inAnimation = !0, i.timeoutId = setTimeout(() => {
147
245
  requestAnimationFrame(() => {
148
- this.currentVisible || (e.inAnimation = !1, this.screenPosition = null, this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }));
246
+ this.currentVisible || (i.inAnimation = !1, this.screenPosition = null, this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }));
149
247
  });
150
- }, 1e3)) : e.timeoutId && (clearTimeout(e.timeoutId), e.inAnimation = !1, e.timeoutId = void 0), !r && !e.inAnimation)
248
+ }, 1e3)) : i.timeoutId && (clearTimeout(i.timeoutId), i.inAnimation = !1, i.timeoutId = void 0), !o && !i.inAnimation)
151
249
  return;
152
250
  const n = this.computeTagProject();
153
251
  if (n && this.five.renderer) {
154
- const m = (() => {
252
+ const a = this.getDistance(void 0, 1), d = (() => {
155
253
  if (!this.currentConfig.simulate3D)
156
254
  return 1;
157
- const u = 2 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI), f = this.getDistance(void 0, 1);
158
- return Math.max(Math.min(1 - u * f / 40, 1), 0.7);
159
- })(), d = this.five.renderer.getSize(v);
255
+ const l = 2 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI);
256
+ return Math.max(Math.min(1 - l * a / 40, 1), 0.7);
257
+ })(), m = this.five.renderer.getSize(_);
160
258
  this.screenPosition = {
161
- leftPx: (n.x + 1) / 2 * d.x,
162
- topPx: (-n.y + 1) / 2 * d.y,
163
- scale: m
164
- };
259
+ leftPx: (n.x + 1) / 2 * m.x,
260
+ topPx: (-n.y + 1) / 2 * m.y,
261
+ scale: d
262
+ }, this.updateTagNormalLinePosition({ force: t == null ? void 0 : t.force });
165
263
  } else
166
264
  this.screenPosition = null;
167
265
  this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
168
266
  }
169
- set(t, i = !0) {
170
- super.set(t, i), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), t.position && this.setPosition(this.position);
267
+ set(t, e = !0) {
268
+ var o, i, n;
269
+ super.set(t, e), this.normalLineLength = (n = (i = (o = t.style) == null ? void 0 : o.point) == null ? void 0 : i.normalLen) != null ? n : 0, this._lastUpdateCache.position = [0, 0, 0], this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), t.position && this.setPosition(this.position);
171
270
  }
172
271
  setData(...t) {
173
272
  super.setData(...t), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
@@ -177,14 +276,24 @@ class Lt extends g {
177
276
  return;
178
277
  const t = this.getUnfoldedByPanoIndex();
179
278
  if (this.state && (t !== void 0 && (this.state.unfolded = t), t && !this.state.visible)) {
180
- const i = this.getConfig();
181
- typeof i.unfoldedConfig == "object" && i.unfoldedConfig.autoFoldWhenHide !== !1 && (this.state.unfolded = !1);
279
+ const e = this.getConfig();
280
+ typeof e.unfoldedConfig == "object" && e.unfoldedConfig.autoFoldWhenHide !== !1 && (this.state.unfolded = !1);
182
281
  }
183
282
  }
184
283
  computeNormal() {
185
- return new l.Vector3().fromArray(this.normal);
284
+ return new r.Vector3().fromArray(this.normal);
285
+ }
286
+ removeTagNormalLine() {
287
+ this.tagNormalLine && (this.plugin.group.remove(this.tagNormalLine), this.tagNormalLine = null);
288
+ }
289
+ /**
290
+ * @description 获取额外的闪烁目标,包括法线(如果有)
291
+ */
292
+ getAdditionalBlinkTargets() {
293
+ var t;
294
+ return (t = this.tagNormalLine) != null && t.line ? this.tagNormalLine.line : null;
186
295
  }
187
296
  }
188
297
  export {
189
- Lt as PointTag
298
+ _i as PointTag
190
299
  };
@@ -679,7 +679,7 @@ class Fs extends R {
679
679
  var e;
680
680
  this.tags.length && (this.tags.forEach((t) => {
681
681
  var i, o, n, s, r, a;
682
- (i = t.tag3DContentSvelte) == null || i.dispose(), (n = (o = t.mediaPlane) == null ? void 0 : o.parent) == null || n.remove(t.mediaPlane), (a = (r = (s = t.model) == null ? void 0 : s.object) == null ? void 0 : r.parent) == null || a.remove(t.model.object);
682
+ (i = t.tag3DContentSvelte) == null || i.dispose(), (n = (o = t.mediaPlane) == null ? void 0 : o.parent) == null || n.remove(t.mediaPlane), (a = (r = (s = t.model) == null ? void 0 : s.object) == null ? void 0 : r.parent) == null || a.remove(t.model.object), t != null && t.tagNormalLine && (t == null || t.removeTagNormalLine());
683
683
  }), this.tags = [], this.tagsLengthWillUpdate = !0, this.hooks.emit("tagsLengthChange"), (e = this.TagContainerSvelte) == null || e.$destroy(), this.TagContainerSvelte = void 0, this.disposeAllCSS3DContainer()), this.enabledModelTagSet.clear(), this.cache.clear();
684
684
  }
685
685
  /**
@@ -31,6 +31,10 @@ const e = {
31
31
  showShare: !0
32
32
  },
33
33
  viewMoreText: "查看更多"
34
+ },
35
+ tagNormalLineConfig: {
36
+ enabled: !0,
37
+ lineWidth: 1.2
34
38
  }
35
39
  },
36
40
  contentTypeConfig: {
@@ -356,6 +356,21 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
356
356
  */
357
357
  beforeOpen?: (tag?: TagInstance) => boolean | undefined;
358
358
  };
359
+ /**
360
+ * @description 标签法线相关配置
361
+ */
362
+ tagNormalLineConfig?: {
363
+ /**
364
+ * @description 是否启用标签法线
365
+ * @default true
366
+ */
367
+ enabled?: boolean;
368
+ /**
369
+ * @description 标签法线宽度
370
+ * @default 1.2
371
+ */
372
+ lineWidth?: number;
373
+ };
359
374
  }
360
375
  export declare const defaultGlobalConfig: TagConfig;
361
376
  type ConfigFunction = (five: Five, tagState: {
@@ -55,6 +55,8 @@ export interface TagIconUrl {
55
55
  scale?: number;
56
56
  /** 帧动画配置 */
57
57
  animation?: TagIconAnimationConfig;
58
+ /** 标签法线长度 */
59
+ normalLen?: number;
58
60
  }
59
61
  export interface TagStyle {
60
62
  /** 小圆点样式 */
@@ -14,24 +14,11 @@ export type PolygonCreateConfig = Partial<PolygonStyle & CreateLimitConfig & Pol
14
14
  onPointPlaced?: (points: THREE.Vector3[]) => void;
15
15
  onUndo?: () => void;
16
16
  onRedo?: () => void;
17
- /**
18
- * @description 检测到自相交时的回调
19
- * @param point 尝试添加但被拒绝的点坐标
20
- */
21
- __onSelfIntersect?: (point: THREE.Vector3) => void;
22
- /**
23
- * @description 将要添加的下一个点
24
- */
25
- __onWillAddPoint?: (point: THREE.Vector3, points: THREE.Vector3[]) => void;
26
17
  /**
27
18
  * @description 检测是否自相交,如果自交,禁止添加下一个点
28
19
  * @default false
29
20
  */
30
21
  experimental_self_intersect_check?: boolean;
31
- /**
32
- * 最多允许能添加的点数
33
- */
34
- experimental_max_point_count?: number;
35
22
  };
36
23
  export declare class Polygon extends BaseObject<PolygonImportData> {
37
24
  readonly type = "Polygon";