@realsee/dnalogel 3.37.2 → 3.39.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 (420) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/GuideLinePlugin/Controller.d.ts +14 -1
  3. package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +13 -2
  4. package/dist/GuideLinePlugin/typing.d.ts +15 -2
  5. package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +11 -1
  6. package/dist/ModelMakerPlugin/Controller.d.ts +8 -1
  7. package/dist/ModelMakerPlugin/index.d.ts +1 -0
  8. package/dist/Sculpt/Meshes/Box.d.ts +1 -0
  9. package/dist/Sculpt/Meshes/Line.d.ts +2 -0
  10. package/dist/Sculpt/Meshes/Polyline.d.ts +1 -0
  11. package/dist/Sculpt/Objects/Base/index.d.ts +6 -0
  12. package/dist/Sculpt/utils/color.d.ts +7 -1
  13. package/dist/Sculpt/utils/three/ColoredMesh.d.ts +3 -0
  14. package/dist/index.cjs.js +87 -55
  15. package/dist/index.js +4957 -4826
  16. package/dist/index.umd.js +76 -44
  17. package/docs/assets/search.js +1 -1
  18. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +3 -3
  19. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +3 -3
  20. package/docs/classes/CSS3DRender.html +3 -3
  21. package/docs/classes/GuideLineItem.GuideLineItem.html +7 -7
  22. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +64 -50
  23. package/docs/classes/ModelMakerPluginInstance.html +26 -16
  24. package/docs/classes/ModelRoomLabelController.html +3 -3
  25. package/docs/classes/MoveController.html +3 -3
  26. package/docs/classes/Object3DHelperController.html +3 -3
  27. package/docs/classes/PaintBrush.html +3 -3
  28. package/docs/classes/PanoMeasurePluginLine.html +3 -3
  29. package/docs/classes/PanoMeasurePluginModel.html +3 -3
  30. package/docs/classes/PanoMeasurePluginPoint.html +3 -3
  31. package/docs/classes/PanoMeasurePluginPolyline.html +3 -3
  32. package/docs/classes/PanoTagPluginController.html +3 -3
  33. package/docs/classes/Sculpt.html +3 -3
  34. package/docs/classes/Util.BetterTween.html +3 -3
  35. package/docs/classes/Util.Interval.html +3 -3
  36. package/docs/classes/Util.LineSegments.html +3 -3
  37. package/docs/classes/Util.Magnifier.html +3 -3
  38. package/docs/classes/Util.Object3D.html +3 -3
  39. package/docs/classes/Util.PointDomHelper.html +3 -3
  40. package/docs/classes/Util.PointHelper.html +3 -3
  41. package/docs/classes/Util.PointSelectorHelper.html +3 -3
  42. package/docs/classes/Util.Rectangle.html +3 -3
  43. package/docs/classes/WalkController.html +3 -3
  44. package/docs/enums/CameraMovementEffect.html +3 -3
  45. package/docs/enums/ContentType.html +3 -3
  46. package/docs/enums/DIRECTION.html +3 -3
  47. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +3 -3
  48. package/docs/enums/DimensionType.html +3 -3
  49. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +3 -3
  50. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +3 -3
  51. package/docs/enums/PaintBrushTypeEnum.html +3 -3
  52. package/docs/enums/PointType.html +3 -3
  53. package/docs/enums/Rotation.html +3 -3
  54. package/docs/functions/AreaMakerPlugin.html +3 -3
  55. package/docs/functions/CSS3DRenderPlugin.html +3 -3
  56. package/docs/functions/CameraMovementPlugin.html +3 -3
  57. package/docs/functions/CruisePlugin.html +3 -3
  58. package/docs/functions/CurrentPanoImagePlugin.html +3 -3
  59. package/docs/functions/GuideLinePlugin.html +3 -3
  60. package/docs/functions/ItemLabelPlugin.html +3 -3
  61. package/docs/functions/MapviewFloorplanPlugin.html +3 -3
  62. package/docs/functions/ModelChassisCompassPlugin.html +3 -3
  63. package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
  64. package/docs/functions/ModelFloorplanPlugin.html +3 -3
  65. package/docs/functions/ModelItemLabelPlugin.html +3 -3
  66. package/docs/functions/ModelMakerPlugin.html +4 -4
  67. package/docs/functions/ModelRoomLabelPlugin.html +3 -3
  68. package/docs/functions/ModelTVVideoPlugin.html +3 -3
  69. package/docs/functions/ModelViewPlugin.html +3 -3
  70. package/docs/functions/MovePlugin.html +3 -3
  71. package/docs/functions/Object3DHelperPlugin.html +3 -3
  72. package/docs/functions/PanoCompassPlugin.html +3 -3
  73. package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
  74. package/docs/functions/PanoDoorLabelPlugin.html +3 -3
  75. package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
  76. package/docs/functions/PanoMeasurePlugin.html +3 -3
  77. package/docs/functions/PanoRulerPlugin.html +3 -3
  78. package/docs/functions/PanoRulerProPlugin.html +3 -3
  79. package/docs/functions/PanoSpatialTagPlugin.html +3 -3
  80. package/docs/functions/PanoTagPlugin.html +3 -3
  81. package/docs/functions/PanoVideoPlugin.html +3 -3
  82. package/docs/functions/PipelinePlugin.html +3 -3
  83. package/docs/functions/SculptPlugin.html +3 -3
  84. package/docs/functions/TopviewFloorplanPlugin.html +3 -3
  85. package/docs/functions/Util.absoluteUrl.html +3 -3
  86. package/docs/functions/Util.awaitNextFrame.html +3 -3
  87. package/docs/functions/Util.blink.html +3 -3
  88. package/docs/functions/Util.checkFiveModelLoaded.html +3 -3
  89. package/docs/functions/Util.equal.html +3 -3
  90. package/docs/functions/Util.getCoordsFromClient.html +3 -3
  91. package/docs/functions/Util.getCoordsFromElement.html +3 -3
  92. package/docs/functions/Util.getFrameTime.html +3 -3
  93. package/docs/functions/Util.getIntersectFromRelativePosition.html +3 -3
  94. package/docs/functions/Util.getRaycasterFromFivePointer.html +3 -3
  95. package/docs/functions/Util.isAbsoluteURL.html +3 -3
  96. package/docs/functions/Util.isModelLike.html +3 -3
  97. package/docs/functions/Util.isNil.html +3 -3
  98. package/docs/functions/Util.isPanoramaLike.html +3 -3
  99. package/docs/functions/Util.nextFrame.html +3 -3
  100. package/docs/functions/Util.notNil.html +3 -3
  101. package/docs/functions/Util.reblink.html +3 -3
  102. package/docs/functions/Util.requestAnimationFrameInterval.html +3 -3
  103. package/docs/functions/Util.tweenProgress.html +3 -3
  104. package/docs/functions/Util.uuid.html +3 -3
  105. package/docs/functions/pluginFlag.html +3 -3
  106. package/docs/index.html +4 -4
  107. package/docs/interfaces/AddTagConfig.html +3 -3
  108. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
  109. package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
  110. package/docs/interfaces/AreaMakerPluginType.EventMap.html +3 -3
  111. package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
  112. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +3 -3
  113. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
  114. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
  115. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
  116. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -3
  117. package/docs/interfaces/AreaMakerPluginType.State.html +3 -3
  118. package/docs/interfaces/CSS3DRenderPluginEventMap.html +3 -3
  119. package/docs/interfaces/CSS3DRenderPluginState.html +3 -3
  120. package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
  121. package/docs/interfaces/ContentTypeMapInterface.html +3 -3
  122. package/docs/interfaces/CruisePluginTypes.Config.html +3 -3
  123. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +3 -3
  124. package/docs/interfaces/CruisePluginTypes.EventMap.html +3 -3
  125. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +3 -3
  126. package/docs/interfaces/CruisePluginTypes.MoveAction.html +3 -3
  127. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +3 -3
  128. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +3 -3
  129. package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
  130. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +3 -3
  131. package/docs/interfaces/CruisePluginTypes.PluginState.html +3 -3
  132. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +3 -3
  133. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +3 -3
  134. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
  135. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -3
  136. package/docs/interfaces/CurrentPanoImagePluginType.State.html +3 -3
  137. package/docs/interfaces/EventMap.html +3 -3
  138. package/docs/interfaces/FloorplanBounding.html +3 -3
  139. package/docs/interfaces/FloorplanData.html +3 -3
  140. package/docs/interfaces/FloorplanEntrance.html +3 -3
  141. package/docs/interfaces/FloorplanExtraObject.html +3 -3
  142. package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
  143. package/docs/interfaces/FloorplanFloorData.html +3 -3
  144. package/docs/interfaces/FloorplanImagePosition.html +3 -3
  145. package/docs/interfaces/FloorplanObserver.html +3 -3
  146. package/docs/interfaces/FloorplanOutlineItem.html +3 -3
  147. package/docs/interfaces/FloorplanPosition.html +3 -3
  148. package/docs/interfaces/FloorplanRoomItem.html +3 -3
  149. package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
  150. package/docs/interfaces/FloorplanServerBounding.html +3 -3
  151. package/docs/interfaces/FloorplanServerComputedData.html +3 -3
  152. package/docs/interfaces/FloorplanServerData.html +3 -3
  153. package/docs/interfaces/FloorplanServerDoorItem.html +3 -3
  154. package/docs/interfaces/FloorplanServerDoorPosition.html +3 -3
  155. package/docs/interfaces/FloorplanServerEntrance.html +3 -3
  156. package/docs/interfaces/FloorplanServerFloorData.html +3 -3
  157. package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
  158. package/docs/interfaces/FloorplanServerObserver.html +3 -3
  159. package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
  160. package/docs/interfaces/FloorplanServerPosition.html +3 -3
  161. package/docs/interfaces/FloorplanServerRoomItem.html +3 -3
  162. package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
  163. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
  164. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +16 -9
  165. package/docs/interfaces/GuideLinePluginType.EventMap.html +8 -8
  166. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
  167. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
  168. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +14 -14
  169. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +5 -5
  170. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
  171. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +20 -20
  172. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
  173. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +55 -26
  174. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
  175. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +5 -5
  176. package/docs/interfaces/GuideLinePluginType.PluginState.html +5 -5
  177. package/docs/interfaces/GuideLinePluginType.Route.html +8 -16
  178. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +5 -12
  179. package/docs/interfaces/HelperOffset.html +3 -3
  180. package/docs/interfaces/ImagePlaneGroup.html +3 -3
  181. package/docs/interfaces/ItemLabelPluginData.html +3 -3
  182. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +3 -3
  183. package/docs/interfaces/ItemLabelPluginParametersType.html +3 -3
  184. package/docs/interfaces/MinMax.html +3 -3
  185. package/docs/interfaces/ModelChassisCompassPluginData.html +3 -3
  186. package/docs/interfaces/ModelChassisCompassPluginExportType.html +3 -3
  187. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -3
  188. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +3 -3
  189. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +3 -3
  190. package/docs/interfaces/ModelItemLabelPluginData.html +3 -3
  191. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +3 -3
  192. package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -3
  193. package/docs/interfaces/ModelMakerPluginType.EventMap.html +3 -3
  194. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +3 -3
  195. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +3 -3
  196. package/docs/interfaces/ModelMakerPluginType.ServerData.html +3 -3
  197. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +3 -3
  198. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +3 -3
  199. package/docs/interfaces/ModelMakerPluginType.State.html +3 -3
  200. package/docs/interfaces/ModelRoomLabelPluginData.html +3 -3
  201. package/docs/interfaces/ModelTVVideoPluginData.html +3 -3
  202. package/docs/interfaces/ModelTVVideoPluginExportType.html +3 -3
  203. package/docs/interfaces/ModelTVVideoPluginParameterType.html +3 -3
  204. package/docs/interfaces/ModelViewPluginExportType.html +3 -3
  205. package/docs/interfaces/Object3DHelperState.html +3 -3
  206. package/docs/interfaces/ObjectHelperControllers.html +3 -3
  207. package/docs/interfaces/PaintBrushAction.html +3 -3
  208. package/docs/interfaces/PaintBrushConfigs.html +3 -3
  209. package/docs/interfaces/PaintBrushState.html +3 -3
  210. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +3 -3
  211. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +3 -3
  212. package/docs/interfaces/PanoMeasureParameterType.html +3 -3
  213. package/docs/interfaces/PanoMeasurePluginLineJson.html +3 -3
  214. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
  215. package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -3
  216. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +3 -3
  217. package/docs/interfaces/PanoRulerPluginExportType.html +3 -3
  218. package/docs/interfaces/PanoRulerPluginOptions.html +3 -3
  219. package/docs/interfaces/PanoRulerPluginParameterType.html +3 -3
  220. package/docs/interfaces/PanoRulerProPluginExportType.html +3 -3
  221. package/docs/interfaces/PanoRulerProPluginOptions.html +3 -3
  222. package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -3
  223. package/docs/interfaces/PanoRulerProPluginState.html +3 -3
  224. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +3 -3
  225. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +3 -3
  226. package/docs/interfaces/PanoSpatialTagPluginData.html +3 -3
  227. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +3 -3
  228. package/docs/interfaces/PanoSpatialTagPluginExportType.html +3 -3
  229. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +3 -3
  230. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +3 -3
  231. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +3 -3
  232. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +3 -3
  233. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
  234. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +3 -3
  235. package/docs/interfaces/PanoVideoPluginType.PluginData.html +3 -3
  236. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +3 -3
  237. package/docs/interfaces/PanoVideoPluginType.PluginState.html +3 -3
  238. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +3 -3
  239. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +3 -3
  240. package/docs/interfaces/Point.html +3 -3
  241. package/docs/interfaces/Room.html +3 -3
  242. package/docs/interfaces/RoomInfo.html +3 -3
  243. package/docs/interfaces/RoomLabel.html +3 -3
  244. package/docs/interfaces/RoomRules.html +3 -3
  245. package/docs/interfaces/Rooms.html +3 -3
  246. package/docs/interfaces/Scissor.html +3 -3
  247. package/docs/interfaces/State.html +3 -3
  248. package/docs/interfaces/TagCacheInterface.html +3 -3
  249. package/docs/interfaces/TagConfig.html +3 -3
  250. package/docs/interfaces/TagGLTFObjectGroup.html +3 -3
  251. package/docs/interfaces/TagIconUrl.html +3 -3
  252. package/docs/interfaces/TagObjectGroup.html +3 -3
  253. package/docs/interfaces/TagStyle.html +3 -3
  254. package/docs/interfaces/Tags.html +3 -3
  255. package/docs/interfaces/TemporaryState.html +3 -3
  256. package/docs/interfaces/Util.BlinkAnimeOptions.html +3 -3
  257. package/docs/interfaces/Util.MagnifierParameter.html +3 -3
  258. package/docs/interfaces/Util.MouseGroupParameter.html +3 -3
  259. package/docs/interfaces/Util.PointIntersection.html +3 -3
  260. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +3 -3
  261. package/docs/modules/AreaMakerPluginType.html +3 -3
  262. package/docs/modules/CruisePluginTypes.html +3 -3
  263. package/docs/modules/CurrentPanoImagePluginType.html +3 -3
  264. package/docs/modules/GuideLineItem.html +3 -3
  265. package/docs/modules/GuideLineModeItem.html +3 -3
  266. package/docs/modules/GuideLinePluginType.html +3 -3
  267. package/docs/modules/ModelMakerPluginType.html +3 -3
  268. package/docs/modules/PanoVideoPluginType.html +3 -3
  269. package/docs/modules/SculptData.html +3 -3
  270. package/docs/modules/Util.html +3 -3
  271. package/docs/modules.html +4 -4
  272. package/docs/types/AddObject3DHelperConfig.html +3 -3
  273. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +3 -3
  274. package/docs/types/AreaMakerPluginType.ItemRenderer.html +3 -3
  275. package/docs/types/AreaMakerPluginType.PluginData.html +3 -3
  276. package/docs/types/AreaMakerPluginType.ServerData.html +3 -3
  277. package/docs/types/ArrayPosition.html +3 -3
  278. package/docs/types/AudioAppearance.html +3 -3
  279. package/docs/types/CSS3DRenderExportType.html +3 -3
  280. package/docs/types/CSS3DRenderPluginExportType.html +3 -3
  281. package/docs/types/CSS3DRenderPluginParameterType.html +3 -3
  282. package/docs/types/ClassFunctionParameters.html +3 -3
  283. package/docs/types/Color.html +3 -3
  284. package/docs/types/ContentTypeConfigKey.html +3 -3
  285. package/docs/types/ContentTypeConfigKeySplit.html +3 -3
  286. package/docs/types/ContentTypeMap.html +3 -3
  287. package/docs/types/Create3DDomContainerReturnType.html +3 -3
  288. package/docs/types/Create3DElementReturnType.html +3 -3
  289. package/docs/types/CruisePluginExportType.html +3 -3
  290. package/docs/types/CruisePluginTypes.CruiseData.html +3 -3
  291. package/docs/types/CruisePluginTypes.MoveEffect.html +3 -3
  292. package/docs/types/CurrentPanoImagePluginExportType.html +3 -3
  293. package/docs/types/DeprecatedMediaPlaneProperty.html +3 -3
  294. package/docs/types/DeprecatedTagProperty.html +3 -3
  295. package/docs/types/Direction-1.html +3 -3
  296. package/docs/types/Direction4.html +3 -3
  297. package/docs/types/ElementRenderer.html +3 -3
  298. package/docs/types/FloorplanRuleLabels.html +3 -3
  299. package/docs/types/FloorplanServerRuleLabels.html +3 -3
  300. package/docs/types/GuideLinePluginExportType.html +4 -4
  301. package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
  302. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
  303. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
  304. package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
  305. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
  306. package/docs/types/GuideLinePluginType.PathItem.html +4 -4
  307. package/docs/types/GuideLinePluginType.PluginData.html +4 -4
  308. package/docs/types/HelperEventMap.html +3 -3
  309. package/docs/types/InternalHelperEventMap.html +3 -3
  310. package/docs/types/LoadTagConfig.html +3 -3
  311. package/docs/types/MapviewFloorplanPluginParameterType.html +3 -3
  312. package/docs/types/MapviewFloorplanPluginReturnType.html +3 -3
  313. package/docs/types/MediaData.html +3 -3
  314. package/docs/types/MediaStore.html +3 -3
  315. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +3 -3
  316. package/docs/types/ModelFloorplanPluginParameterType.html +3 -3
  317. package/docs/types/ModelFloorplanPluginReturnType.html +3 -3
  318. package/docs/types/ModelId.html +3 -3
  319. package/docs/types/ModelMakerPluginType.ElementRenderer.html +3 -3
  320. package/docs/types/ModelMakerPluginType.ItemType.html +3 -3
  321. package/docs/types/ModelRoomLabelPluginParameters.html +3 -3
  322. package/docs/types/ModelRoomLabelPluginReturnType.html +3 -3
  323. package/docs/types/MoveArgs.html +3 -3
  324. package/docs/types/MoveOpts.html +3 -3
  325. package/docs/types/Object3DHelperEventMap.html +3 -3
  326. package/docs/types/ObjectFit.html +3 -3
  327. package/docs/types/PaintBrushEventMap.html +3 -3
  328. package/docs/types/PanoCompassPluginData.html +3 -3
  329. package/docs/types/PanoCompassPluginExportType.html +3 -3
  330. package/docs/types/PanoCompassPluginParameterType.html +3 -3
  331. package/docs/types/PanoFloorplanRadarPluginParameterType.html +3 -3
  332. package/docs/types/PanoFloorplanRadarPluginReturnType.html +3 -3
  333. package/docs/types/PanoIndex.html +3 -3
  334. package/docs/types/PanoMeasurePluginEvent.html +3 -3
  335. package/docs/types/PanoMeasureReturnType.html +3 -3
  336. package/docs/types/PanoSpatialTagPluginId.html +3 -3
  337. package/docs/types/PanoTagPluginExportInterface.html +3 -3
  338. package/docs/types/PanoTagPluginParamsInterface.html +3 -3
  339. package/docs/types/PanoVideoPluginParameterType.html +3 -3
  340. package/docs/types/PanoVideoPluginReturnType.html +3 -3
  341. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +3 -3
  342. package/docs/types/PipelinePluginParameterType.html +3 -3
  343. package/docs/types/PipelinePluginReturnType.html +3 -3
  344. package/docs/types/PlaneTag.html +3 -3
  345. package/docs/types/Point2DTag.html +3 -3
  346. package/docs/types/Point3DTag.html +3 -3
  347. package/docs/types/PointTag.html +3 -3
  348. package/docs/types/PointTagInstance.html +3 -3
  349. package/docs/types/Position.html +3 -3
  350. package/docs/types/PositionFrom.html +3 -3
  351. package/docs/types/RotateArgs.html +3 -3
  352. package/docs/types/RotateOpts.html +3 -3
  353. package/docs/types/RuleLabelsKey.html +3 -3
  354. package/docs/types/RuleLabelsValue.html +3 -3
  355. package/docs/types/ScaleCallback.html +3 -3
  356. package/docs/types/ScalePosition.html +3 -3
  357. package/docs/types/SculptData.BoxData.html +3 -3
  358. package/docs/types/SculptData.CircleData.html +3 -3
  359. package/docs/types/SculptData.CylinderData.html +3 -3
  360. package/docs/types/SculptData.PointData.html +3 -3
  361. package/docs/types/SculptData.PolygonData.html +3 -3
  362. package/docs/types/SculptData.PolylineData.html +3 -3
  363. package/docs/types/SculptData.PrismData.html +3 -3
  364. package/docs/types/SculptData.RectangleData.html +3 -3
  365. package/docs/types/StickType.html +3 -3
  366. package/docs/types/Tag.html +3 -3
  367. package/docs/types/Tag2D.html +3 -3
  368. package/docs/types/Tag3D.html +3 -3
  369. package/docs/types/TagConfigByKey.html +3 -3
  370. package/docs/types/TagContentType.html +3 -3
  371. package/docs/types/TagContentTypeMapping.html +3 -3
  372. package/docs/types/TagDimensionType.html +3 -3
  373. package/docs/types/TagElement.html +3 -3
  374. package/docs/types/TagEvents.html +3 -3
  375. package/docs/types/TagGLTFObject.html +3 -3
  376. package/docs/types/TagHooks.html +3 -3
  377. package/docs/types/TagId.html +3 -3
  378. package/docs/types/TagInstance.html +3 -3
  379. package/docs/types/TagPointType.html +3 -3
  380. package/docs/types/TagRendererMap.html +3 -3
  381. package/docs/types/TopviewFloorplanPluginParameterType.html +3 -3
  382. package/docs/types/TopviewFloorplanPluginReturnType.html +3 -3
  383. package/docs/types/WorkCode.html +3 -3
  384. package/docs/variables/FLOOR_TYPE_MAP.html +3 -3
  385. package/docs/variables/PLUGIN.html +3 -3
  386. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +3 -3
  387. package/docs/variables/ROOM_TYPE_MAP.html +3 -3
  388. package/docs/variables/defaultGlobalConfig.html +3 -3
  389. package/docs/variables/itemLabelPluginServerParams.html +3 -3
  390. package/docs/variables/modelItemLabelPluginServerParams.html +3 -3
  391. package/docs/variables/modelRoomLabelPluginServerParams.html +3 -3
  392. package/libs/CruisePlugin/index.js +1 -1
  393. package/libs/GuideLinePlugin/Controller.d.ts +14 -1
  394. package/libs/GuideLinePlugin/Controller.js +34 -32
  395. package/libs/GuideLinePlugin/GuideLineItem/index.js +57 -56
  396. package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
  397. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +176 -121
  398. package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +13 -2
  399. package/libs/GuideLinePlugin/typing.d.ts +15 -2
  400. package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +11 -1
  401. package/libs/GuideLinePlugin/utils/createLineGeometry.js +70 -36
  402. package/libs/ModelMakerPlugin/Controller.d.ts +8 -1
  403. package/libs/ModelMakerPlugin/Controller.js +111 -99
  404. package/libs/ModelMakerPlugin/index.d.ts +1 -0
  405. package/libs/Sculpt/Meshes/Box.d.ts +1 -0
  406. package/libs/Sculpt/Meshes/Box.js +22 -17
  407. package/libs/Sculpt/Meshes/Line.d.ts +2 -0
  408. package/libs/Sculpt/Meshes/Line.js +56 -39
  409. package/libs/Sculpt/Meshes/Point.js +31 -31
  410. package/libs/Sculpt/Meshes/Polyline.d.ts +1 -0
  411. package/libs/Sculpt/Meshes/Polyline.js +41 -36
  412. package/libs/Sculpt/Objects/Base/index.d.ts +6 -0
  413. package/libs/Sculpt/Objects/Base/index.js +25 -25
  414. package/libs/Sculpt/utils/color.d.ts +7 -1
  415. package/libs/Sculpt/utils/three/ColoredMesh.d.ts +3 -0
  416. package/libs/Sculpt/utils/three/ColoredMesh.js +44 -25
  417. package/libs/base/BasePlugin.js +1 -1
  418. package/libs/index.js +1 -1
  419. package/libs/shared-utils/logger.js +1 -1
  420. package/package.json +1 -1
@@ -1,32 +1,32 @@
1
- var V = Object.defineProperty, T = Object.defineProperties;
2
- var U = Object.getOwnPropertyDescriptors;
3
- var k = Object.getOwnPropertySymbols;
4
- var x = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
5
- var v = (l, e, t) => e in l ? V(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t, d = (l, e) => {
1
+ var x = Object.defineProperty, w = Object.defineProperties;
2
+ var M = Object.getOwnPropertyDescriptors;
3
+ var D = Object.getOwnPropertySymbols;
4
+ var P = Object.prototype.hasOwnProperty, U = Object.prototype.propertyIsEnumerable;
5
+ var b = (l, e, t) => e in l ? x(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t, m = (l, e) => {
6
6
  for (var t in e || (e = {}))
7
- x.call(e, t) && v(l, t, e[t]);
8
- if (k)
9
- for (var t of k(e))
10
- F.call(e, t) && v(l, t, e[t]);
7
+ P.call(e, t) && b(l, t, e[t]);
8
+ if (D)
9
+ for (var t of D(e))
10
+ U.call(e, t) && b(l, t, e[t]);
11
11
  return l;
12
- }, p = (l, e) => T(l, U(e));
13
- var i = (l, e, t) => (v(l, typeof e != "symbol" ? e + "" : e, t), t);
14
- import * as n from "three";
15
- import { logWarning as L, logError as S } from "../../shared-utils/log.js";
16
- import { createLineGeometry as O } from "../utils/createLineGeometry.js";
17
- import { isPanoramaLike as _, isModelLike as M } from "../../shared-utils/five/mode.js";
12
+ }, c = (l, e) => w(l, M(e));
13
+ var i = (l, e, t) => (b(l, typeof e != "symbol" ? e + "" : e, t), t);
14
+ import * as h from "three";
15
+ import { logWarning as F, logError as L } from "../../shared-utils/log.js";
16
+ import { createLineGeometry as S } from "../utils/createLineGeometry.js";
17
+ import { isPanoramaLike as O, isModelLike as _ } from "../../shared-utils/five/mode.js";
18
18
  import "hammerjs";
19
19
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
20
20
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
21
21
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
22
22
  import "animejs";
23
- import { notNil as w } from "../../shared-utils/isNil.js";
24
- import { BetterTween as E, tweenProgress as A } from "../../shared-utils/animationFrame/BetterTween.js";
23
+ import { notNil as V } from "../../shared-utils/isNil.js";
24
+ import { BetterTween as A, tweenProgress as E } from "../../shared-utils/animationFrame/BetterTween.js";
25
25
  import { loadTexture as G } from "../../shared-utils/three/loadTexture.js";
26
- import P from "../../PanoTagPlugin/controller/index.js";
26
+ import k from "../../PanoTagPlugin/controller/index.js";
27
27
  import B from "../Components/Tag.js";
28
- import { filterAdjacentDistinct as I } from "../utils/index.js";
29
- import { objectAssignDeepExports as W } from "../../vendor/object-assign-deep/objectAssignDeep.js";
28
+ import { filterAdjacentDistinct as N } from "../utils/index.js";
29
+ import { objectAssignDeepExports as I } from "../../vendor/object-assign-deep/objectAssignDeep.js";
30
30
  const R = (
31
31
  /* glsl */
32
32
  `
@@ -37,7 +37,7 @@ const R = (
37
37
  gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
38
38
  }
39
39
  `
40
- ), N = (
40
+ ), H = (
41
41
  /* glsl */
42
42
  `
43
43
  // 是否使用颜色
@@ -63,7 +63,13 @@ const R = (
63
63
  // 整体透明度
64
64
  uniform float opacity;
65
65
  // 最大 U 值
66
- uniform float maxU;
66
+ uniform float maxV;
67
+ // 只显示 includeMinV ~ includeMaxV 之内的颜色
68
+ uniform float includeMinV;
69
+ uniform float includeMaxV;
70
+ // 不显示 excludeMinV ~ excludeMaxV 之内的颜色
71
+ uniform float excludeMinV;
72
+ uniform float excludeMaxV;
67
73
  // v offset
68
74
  uniform float vOffset;
69
75
  // 闪烁动画值
@@ -75,6 +81,7 @@ const R = (
75
81
  vec4 getImage() {
76
82
  vec2 uv = vUv;
77
83
  uv.y = uv.y - vOffset;
84
+
78
85
  // 原始贴图颜色
79
86
  vec4 image = texture2D(map, uv);
80
87
  // 如果使用颜色
@@ -93,13 +100,14 @@ const R = (
93
100
  float gradientLength = 1.0;
94
101
  if (v <= gradientLength) {
95
102
  return v / gradientLength; // 在 [0, gradientLength] 范围内,透明度为 [0, 1]
96
- } else if (v <= maxU - gradientLength) {
97
- return 1.0; // 在 (gradientLength, maxU - gradientLength) 范围内,透明度为 1
103
+ } else if (v <= maxV - gradientLength) {
104
+ return 1.0; // 在 (gradientLength, maxV - gradientLength) 范围内,透明度为 1
98
105
  } else {
99
- return (maxU - v) / gradientLength; // 在 [maxU - gradientLength, maxU] 范围内,透明度为 [1, 0]
106
+ return (maxV - v) / gradientLength; // 在 [maxV - gradientLength, maxV] 范围内,透明度为 [1, 0]
100
107
  }
101
108
  }
102
109
 
110
+ // 获取边框颜色
103
111
  vec4 getBorder() {
104
112
  float u = vUv.x;
105
113
  if (u <= borderWidth || u >= 1.0 - borderWidth) {
@@ -108,6 +116,7 @@ const R = (
108
116
  return vec4(0.0, 0.0, 0.0, 0.0);
109
117
  }
110
118
 
119
+ // 获取背景色
111
120
  vec4 getBackground() {
112
121
  // border-box
113
122
  if (backgroundClip == 0) {
@@ -122,7 +131,29 @@ const R = (
122
131
  }
123
132
  }
124
133
 
134
+ // 根据摄像机位置计算透明度
135
+ float distanceOpacity() {
136
+ return 1.0;
137
+ }
138
+
125
139
  void main() {
140
+ float v = vUv.y;
141
+ if (includeMinV != -1.0 && includeMaxV != -1.0) {
142
+ if (v < includeMinV || v > includeMaxV) {
143
+ gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);
144
+ return;
145
+ } else {
146
+ // debug
147
+ // gl_FragColor = vec4(255.0, 255.0, 255.0, 0.6);
148
+ // return;
149
+ }
150
+ }
151
+ if (excludeMinV != -1.0 && excludeMaxV != -1.0) {
152
+ if (v >= excludeMinV && v <= excludeMaxV) {
153
+ gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);
154
+ return;
155
+ }
156
+ }
126
157
  vec4 image = getImage();
127
158
  vec4 border = getBorder();
128
159
  vec4 background = getBackground();
@@ -135,11 +166,12 @@ const R = (
135
166
  // 设置整体透明度
136
167
  gl_FragColor.a = gl_FragColor.a * opacity;
137
168
  gl_FragColor.a = gl_FragColor.a * linearGradientOpacity();
169
+ gl_FragColor.a = gl_FragColor.a * distanceOpacity();
138
170
  gl_FragColor.a = gl_FragColor.a * flicker;
139
171
  }
140
172
  `
141
173
  );
142
- class H {
174
+ class Y {
143
175
  constructor(e, t) {
144
176
  i(this, "name", "");
145
177
  i(this, "startTagContainer");
@@ -148,7 +180,9 @@ class H {
148
180
  i(this, "geometryStyle", {});
149
181
  i(this, "materialStyle", {});
150
182
  i(this, "meshStyle", {});
151
- i(this, "mesh");
183
+ i(this, "group", new h.Group());
184
+ i(this, "meshWithDepthTest");
185
+ i(this, "meshWithoutDepthTest");
152
186
  i(this, "five");
153
187
  i(this, "mode");
154
188
  i(this, "_curvePath", null);
@@ -174,15 +208,17 @@ class H {
174
208
  i(this, "plugin");
175
209
  i(this, "textureHasLoaded", !1);
176
210
  i(this, "disposed", !1);
177
- i(this, "flowAnime", new E({ progress: 0 }).to({ progress: 1 }).duration(1500).repeat(1 / 0));
178
- i(this, "flickerAnime", A(300).yoyo(!0).repeat(5));
211
+ i(this, "flowAnime", new A({ progress: 0 }).to({ progress: 1 }).duration(1500).repeat(1 / 0));
212
+ i(this, "flickerAnime", E(300).yoyo(!0).repeat(5));
179
213
  /** 缓存 panoGroup 中每个点距离起点的长度 */
180
214
  i(this, "cacheLengths", []);
181
215
  /** 为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
182
216
  i(this, "heightOffset", 0);
217
+ i(this, "panoMap", {});
218
+ i(this, "autoDepthTestEffectDistance");
183
219
  i(this, "dispose", () => {
184
220
  var e, t;
185
- this.disposed || (this.disposed = !0, this.parent.hooks.off("show", this.updateVisible), this.parent.hooks.off("hide", this.updateVisible), this.plugin.hooks.off("show", this.updateVisible), this.plugin.hooks.off("hide", this.updateVisible), this.plugin.hooks.off("enable", this.updateVisible), this.plugin.hooks.off("disable", this.updateVisible), this.five.off("modeChange", this.onFiveModeChange), this.five.off("modelShownFloorChange", this.onFiveModelShownFloorChange), this.doHide(), (e = this.startTagContainer) == null || e.plugin.dispose(), (t = this.endTagContainer) == null || t.plugin.dispose());
221
+ this.disposed || (this.disposed = !0, this.parent.hooks.off("show", this.updateVisible), this.parent.hooks.off("hide", this.updateVisible), this.plugin.hooks.off("show", this.updateVisible), this.plugin.hooks.off("hide", this.updateVisible), this.plugin.hooks.off("enable", this.updateVisible), this.plugin.hooks.off("disable", this.updateVisible), this.five.off("modeChange", this.onFiveModeChange), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("modelShownFloorChange", this.onFiveModelShownFloorChange), this.doHide(), (e = this.startTagContainer) == null || e.plugin.dispose(), (t = this.endTagContainer) == null || t.plugin.dispose());
186
222
  });
187
223
  /** 开始走点动画 */
188
224
  i(this, "onWalkAnimationStart", () => {
@@ -194,7 +230,20 @@ class H {
194
230
  });
195
231
  /** 模型状态变更 */
196
232
  i(this, "onFiveModeChange", (e) => {
197
- this.modeVisible = this.mode === "panorama" ? _(e) : M(e), this.updateVisible();
233
+ this.modeVisible = this.mode === "panorama" ? O(e) : _(e), this.updateVisible();
234
+ });
235
+ /** 走点 */
236
+ i(this, "onFivePanoArrived", (e) => {
237
+ var r, s, o;
238
+ const t = this.panoMap[e];
239
+ if (t === void 0)
240
+ this.group.children.includes(this.meshWithoutDepthTest) && this.group.remove(this.meshWithoutDepthTest), this.meshWithDepthTest.material.uniforms.excludeMinV.value = -1, this.meshWithDepthTest.material.uniforms.excludeMaxV.value = -1;
241
+ else {
242
+ this.group.children.includes(this.meshWithoutDepthTest) || this.group.add(this.meshWithoutDepthTest), this.meshWithoutDepthTest.visible = !0;
243
+ const a = this.meshWithDepthTest.geometry.getAttribute("uv"), n = 100 * ((r = this.autoDepthTestEffectDistance) != null ? r : 2), u = (s = a.getY((t - n) * 2)) != null ? s : 0, d = (o = a.getY((t + n) * 2)) != null ? o : a.getY(a.count - 1);
244
+ this.meshWithDepthTest.material.uniforms.excludeMinV.value = u, this.meshWithDepthTest.material.uniforms.excludeMaxV.value = d, this.meshWithoutDepthTest.material.uniforms.includeMinV.value = u, this.meshWithoutDepthTest.material.uniforms.includeMaxV.value = d;
245
+ }
246
+ this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
198
247
  });
199
248
  i(this, "onFiveModelShownFloorChange", (e) => {
200
249
  this.floorVisible = e === null || this.visibleFloorIndexes === null || this.visibleFloorIndexes.includes(e), this.updateVisible();
@@ -206,43 +255,47 @@ class H {
206
255
  });
207
256
  i(this, "onFlowAnimeUpdate", (e) => {
208
257
  const { progress: t } = e;
209
- this.mesh.material.uniforms.vOffset.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
258
+ this.meshWithDepthTest.material.uniforms.vOffset.value = t, this.meshWithoutDepthTest.material.uniforms.vOffset.value = t, this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
210
259
  });
211
260
  i(this, "onFlickerAnimeUpdate", (e) => {
212
- var r, o, a, h;
213
- const { progress: t } = e, s = 1 - t;
214
- this.mesh.material.uniforms.flicker.value = s, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && b(this.startTagContainer.tag) && ((a = this.startTagContainer.app) == null || a.$set(p(d({}, this.startTagContainer.tag.data), {
215
- opacity: s,
261
+ var s, o, a, n;
262
+ const { progress: t } = e, r = 1 - t;
263
+ this.meshWithDepthTest.material.uniforms.flicker.value = r, this.meshWithoutDepthTest.material.uniforms.flicker.value = r, this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && T(this.startTagContainer.tag) && ((a = this.startTagContainer.app) == null || a.$set(c(m({}, this.startTagContainer.tag.data), {
264
+ opacity: r,
216
265
  name: this.name,
217
- distance: Math.round((o = (r = this.curvePath) == null ? void 0 : r.getLength()) != null ? o : 0)
218
- }))), this.endTagContainer.tag && b(this.endTagContainer.tag) && ((h = this.endTagContainer.app) == null || h.$set(p(d({}, this.endTagContainer.tag.data), { opacity: s })));
266
+ distance: Math.round((o = (s = this.curvePath) == null ? void 0 : s.getLength()) != null ? o : 0)
267
+ }))), this.endTagContainer.tag && T(this.endTagContainer.tag) && ((n = this.endTagContainer.app) == null || n.$set(c(m({}, this.endTagContainer.tag.data), { opacity: r })));
219
268
  });
220
- i(this, "logWarning", (e) => L("GuideLineModeItem: ", e));
221
- i(this, "logError", (e) => S("GuideLineModeItem: ", e));
269
+ i(this, "logWarning", (e) => F("GuideLineModeItem: ", e));
270
+ i(this, "logError", (e) => L("GuideLineModeItem: ", e));
222
271
  var o, a;
223
- this.five = e, this.mode = t.mode, this.plugin = t.plugin, this.parent = t.parent, this.startTagContainer = { tag: null, plugin: new P(this.five, { containerZIndex: 1 }) }, this.endTagContainer = { tag: null, plugin: new P(this.five, { containerZIndex: 1 }) };
224
- const s = new n.BufferGeometry(), r = new n.ShaderMaterial({
272
+ this.five = e, this.mode = t.mode, this.plugin = t.plugin, this.parent = t.parent, this.group.name = "GuideLineModeItem", this.startTagContainer = { tag: null, plugin: new k(this.five, { containerZIndex: 1 }) }, this.endTagContainer = { tag: null, plugin: new k(this.five, { containerZIndex: 1 }) };
273
+ const r = new h.BufferGeometry(), s = new h.ShaderMaterial({
225
274
  vertexShader: R,
226
- fragmentShader: N,
275
+ fragmentShader: H,
227
276
  transparent: !0,
228
277
  uniforms: {
229
278
  map: { value: null },
230
279
  useMapColor: { value: 0 },
231
- mapColor: { value: new n.Color() },
280
+ mapColor: { value: new h.Color() },
232
281
  mapOpacity: { value: 1 },
233
- backgroundColor: { value: new n.Color() },
282
+ backgroundColor: { value: new h.Color() },
234
283
  backgroundOpacity: { value: 0 },
235
- borderColor: { value: new n.Color() },
284
+ borderColor: { value: new h.Color() },
236
285
  borderOpacity: { value: 0 },
237
286
  backgroundClip: { value: 0 },
238
287
  borderWidth: { value: 0.05 },
239
288
  opacity: { value: 1 },
240
289
  flicker: { value: 1 },
241
- maxU: { value: 0 },
242
- vOffset: { value: 0 }
290
+ maxV: { value: 0 },
291
+ vOffset: { value: 0 },
292
+ includeMinV: { value: -1 },
293
+ includeMaxV: { value: -1 },
294
+ excludeMinV: { value: -1 },
295
+ excludeMaxV: { value: -1 }
243
296
  }
244
297
  });
245
- this.mesh = new n.Mesh(s, r), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), this.updateVisible(), this.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveModelShownFloorChange((a = (o = this.five.model) == null ? void 0 : o.shownFloor) != null ? a : null), this.flowAnime.onUpdate(this.onFlowAnimeUpdate), this.flickerAnime.onUpdate(this.onFlickerAnimeUpdate), this.parent.hooks.on("show", this.updateVisible), this.parent.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("show", this.updateVisible), this.plugin.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("enable", this.updateVisible), this.plugin.hooks.on("disable", this.updateVisible), this.plugin.hooks.on("dispose", this.dispose), this.five.on("modeChange", this.onFiveModeChange), this.five.on("modelShownFloorChange", this.onFiveModelShownFloorChange);
298
+ this.meshWithDepthTest = new h.Mesh(r, s), this.meshWithoutDepthTest = new h.Mesh(r, s.clone()), this.meshWithoutDepthTest.material.depthTest = !1, this.meshWithDepthTest.name = "GuideLineModeItemWithDepthTest", this.meshWithoutDepthTest.name = "GuideLineModeItemWithoutDepthTest", this.group.add(this.meshWithDepthTest), this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd), this.onFivePanoArrived(this.five.getCurrentState().panoIndex)), this.updateVisible(), this.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveModelShownFloorChange((a = (o = this.five.model) == null ? void 0 : o.shownFloor) != null ? a : null), this.flowAnime.onUpdate(this.onFlowAnimeUpdate), this.flickerAnime.onUpdate(this.onFlickerAnimeUpdate), this.parent.hooks.on("show", this.updateVisible), this.parent.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("show", this.updateVisible), this.plugin.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("enable", this.updateVisible), this.plugin.hooks.on("disable", this.updateVisible), this.plugin.hooks.on("dispose", this.dispose), this.five.on("modeChange", this.onFiveModeChange), this.five.on("panoArrived", this.onFivePanoArrived), this.five.on("modelShownFloorChange", this.onFiveModelShownFloorChange), this.five.needsRender = !0;
246
299
  }
247
300
  get panoGroup() {
248
301
  return this._panoGroup;
@@ -289,84 +342,86 @@ class H {
289
342
  return this.logError("disposed");
290
343
  if (!this.five.work)
291
344
  return this.logError("setPathByPanoGroup: work is not ready");
292
- const s = I(e);
293
- if (this._panoGroup = s, (t == null ? void 0 : t.skipPanoGroup) !== void 0) {
294
- const o = t.skipPanoGroup ? s.map((a) => this.plugin.workUtil.getObserverStandingPosition(a)).filter(w) : null;
345
+ const r = N(e);
346
+ if (this._panoGroup = r, (t == null ? void 0 : t.skipPanoGroup) !== void 0) {
347
+ const o = t.skipPanoGroup ? r.map((a) => this.plugin.workUtil.getObserverStandingPosition(a)).filter(V) : null;
295
348
  this.skippedPositions = o;
296
349
  }
297
- const r = this.getPathFromPanoGroup(s, this.five.work, t);
298
- this.path = r, this.setGeometryByPath(r, t);
350
+ const s = this.getPathFromPanoGroup(r, this.five.work, t);
351
+ this.path = s, this.setGeometryByPath(s, t);
299
352
  }
300
353
  /** 通过路径设置线条形状 */
301
354
  setGeometryByPath(e, t) {
302
- var c, y, C;
355
+ var f, y, W, C;
303
356
  if (this.disposed)
304
357
  return this.logError("disposed");
305
- const s = (c = t == null ? void 0 : t.scale) != null ? c : this.scale, r = (y = t == null ? void 0 : t.width) != null ? y : this.width, o = (C = t == null ? void 0 : t.unit_length) != null ? C : this.unitLength;
306
- this.scale = s, this.width = r, this.unitLength = o;
307
- const { geometry: a, maxU: h, curvePath: u, curvePoints: g } = O({
358
+ const r = (f = t == null ? void 0 : t.scale) != null ? f : this.scale, s = (y = t == null ? void 0 : t.width) != null ? y : this.width, o = (W = t == null ? void 0 : t.unit_length) != null ? W : this.unitLength;
359
+ this.scale = r, this.width = s, this.unitLength = o;
360
+ const { geometry: a, maxV: n, curvePath: u, curvePoints: d, panoMap: p, totalLength: g } = S({
308
361
  path: e,
309
- width: r * s,
310
- unitLength: o * s,
311
- skipPositions: this.skippedPositions
362
+ width: s * r,
363
+ unitLength: o * r,
364
+ skipPositions: this.skippedPositions,
365
+ useAutoDepthTest: t.useAutoDepthTest
312
366
  });
313
- this._curvePath = u, this._curvePoints = g, this.mesh.geometry = a, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = h, this.five.needsRender = !0;
314
- const m = e, f = d(d({}, this.geometryStyle), t);
315
- this.path = m, this.geometryStyle = f;
367
+ this.autoDepthTestEffectDistance = (C = t.autoDepthTestEffectDistance) != null ? C : (() => {
368
+ const v = g / 10;
369
+ return v > 3 ? 3 : v < 1 ? 1 : v;
370
+ })(), this.panoMap = p, this._curvePath = u, this._curvePoints = d, this.meshWithDepthTest.geometry.copy(a), this.onFivePanoArrived(this.five.getCurrentState().panoIndex), this.meshWithDepthTest.material.needsUpdate = !0, this.meshWithDepthTest.material.uniforms.maxV.value = n, this.meshWithoutDepthTest.material.needsUpdate = !0, this.meshWithoutDepthTest.material.uniforms.maxV.value = n, this.five.needsRender = !0, this.path = e, this.geometryStyle = m(m({}, this.geometryStyle), t);
316
371
  }
317
372
  /** 设置线条材质 */
318
373
  setMartial(e) {
319
- var s, r, o, a, h;
374
+ var r, s, o, a, n;
320
375
  if (this.disposed)
321
376
  return this.logError("disposed");
322
- this.setDefaultVisible((s = e == null ? void 0 : e.visible) != null ? s : !1), this.setColor((r = e == null ? void 0 : e.color) != null ? r : "#ffffff"), this.setOpacity((o = e == null ? void 0 : e.opacity) != null ? o : 0.5), this.setTextureUrl((h = (a = e == null ? void 0 : e.texture) == null ? void 0 : a.url) != null ? h : "https://vr-image-4.realsee-cdn.cn/release/web/arrow1.ebe7d0ff.png"), (e == null ? void 0 : e.background_color) !== void 0 && this.setBackgroundColor(e.background_color), (e == null ? void 0 : e.background_opacity) !== void 0 && this.setBackgroundOpacity(e.background_opacity), (e == null ? void 0 : e.border_color) !== void 0 && this.setBorderColor(e.border_color), (e == null ? void 0 : e.border_opacity) !== void 0 && this.setBorderOpacity(e.border_opacity), (e == null ? void 0 : e.border_width) !== void 0 && this.setBorderWidth(e.border_width), (e == null ? void 0 : e.background_clip) !== void 0 && this.setBackgroundClip(e.background_clip);
323
- const t = d(d({}, this.materialStyle), e);
377
+ this.setDefaultVisible((r = e == null ? void 0 : e.visible) != null ? r : !1), this.setColor((s = e == null ? void 0 : e.color) != null ? s : "#ffffff"), this.setOpacity((o = e == null ? void 0 : e.opacity) != null ? o : 0.5), this.setTextureUrl((n = (a = e == null ? void 0 : e.texture) == null ? void 0 : a.url) != null ? n : "https://vr-image-4.realsee-cdn.cn/release/web/arrow1.ebe7d0ff.png"), (e == null ? void 0 : e.background_color) !== void 0 && this.setBackgroundColor(e.background_color), (e == null ? void 0 : e.background_opacity) !== void 0 && this.setBackgroundOpacity(e.background_opacity), (e == null ? void 0 : e.border_color) !== void 0 && this.setBorderColor(e.border_color), (e == null ? void 0 : e.border_opacity) !== void 0 && this.setBorderOpacity(e.border_opacity), (e == null ? void 0 : e.border_width) !== void 0 && this.setBorderWidth(e.border_width), (e == null ? void 0 : e.background_clip) !== void 0 && this.setBackgroundClip(e.background_clip);
378
+ const t = m(m({}, this.materialStyle), e);
324
379
  this.materialStyle = t;
325
380
  }
326
381
  /** 设置模型状态 */
327
382
  setMeshStyle(e) {
328
383
  if (e != null && e.translate) {
329
- const r = new n.Vector3(), o = new n.Vector3().fromArray(e.translate);
330
- o.y += this.heightOffset, r.add(o), this.mesh.position.copy(r), s(this.startTagContainer, o), s(this.endTagContainer, o);
384
+ const s = new h.Vector3(), o = new h.Vector3().fromArray(e.translate);
385
+ o.y += this.heightOffset, s.add(o), this.group.position.copy(s), r(this.startTagContainer, o), r(this.endTagContainer, o);
331
386
  }
332
- const t = d(d({}, this.meshStyle), e);
387
+ const t = m(m({}, this.meshStyle), e);
333
388
  this.meshStyle = t;
334
- function s(r, o) {
335
- if (!r.tag)
389
+ function r(s, o) {
390
+ if (!s.tag)
336
391
  return;
337
- const a = new n.Vector3().fromArray(r.tag.position);
392
+ const a = new h.Vector3().fromArray(s.tag.position);
338
393
  a.add(o);
339
- const h = a.toArray();
340
- r.plugin.changeTagById(r.tag.id, { position: h });
394
+ const n = a.toArray();
395
+ s.plugin.changeTagById(s.tag.id, { position: n });
341
396
  }
342
397
  }
343
398
  /** 设置 Y 轴上的偏移量,为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
344
399
  setHeightOffset(e) {
345
- const t = new n.Vector3();
346
- this.meshStyle.translate && t.add(new n.Vector3().fromArray(this.meshStyle.translate)), t.setY(t.y + e), this.mesh.position.copy(t), this.heightOffset = e, this.five.needsRender = !0;
400
+ const t = new h.Vector3();
401
+ this.meshStyle.translate && t.add(new h.Vector3().fromArray(this.meshStyle.translate)), t.setY(t.y + e), this.group.position.copy(t), this.heightOffset = e, this.five.needsRender = !0;
347
402
  }
348
403
  /** 设置贴图颜色 */
349
404
  setColor(e) {
350
405
  if (this.disposed)
351
406
  return this.logError("disposed");
352
- e && (this.mesh.material.uniforms.mapColor.value = new n.Color().set(e)), this.mesh.material.uniforms.useMapColor.value = e ? 1 : 0, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
407
+ e && (this.meshWithDepthTest.material.uniforms.mapColor.value = new h.Color().set(e), this.meshWithoutDepthTest.material.uniforms.mapColor.value = new h.Color().set(e)), this.meshWithDepthTest.material.uniforms.useMapColor.value = e ? 1 : 0, this.meshWithoutDepthTest.material.uniforms.useMapColor.value = e ? 1 : 0, this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
353
408
  }
354
409
  /** 设置边框 */
355
410
  setBorderColor(e) {
356
411
  if (this.disposed)
357
412
  return this.logError("disposed");
358
- this.mesh.material.uniforms.borderColor.value = new n.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
413
+ this.meshWithDepthTest.material.uniforms.borderColor.value = new h.Color().set(e), this.meshWithoutDepthTest.material.uniforms.borderColor.value = new h.Color().set(e), this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
359
414
  }
360
415
  /** 设置边框透明度 */
361
416
  setBorderOpacity(e) {
362
417
  if (this.disposed)
363
418
  return this.logError("disposed");
364
- this.mesh.material.uniforms.borderOpacity.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
419
+ this.meshWithDepthTest.material.uniforms.borderOpacity.value = e, this.meshWithoutDepthTest.material.uniforms.borderOpacity.value = e, this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
365
420
  }
366
421
  setBackgroundClip(e) {
367
422
  if (this.disposed)
368
423
  return this.logError("disposed");
369
- this.mesh.material.uniforms.backgroundClip.value = e === "border-box" ? 0 : 1, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
424
+ this.meshWithDepthTest.material.uniforms.backgroundClip.value = e === "border-box" ? 0 : 1, this.meshWithoutDepthTest.material.uniforms.backgroundClip.value = e === "border-box" ? 0 : 1, this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
370
425
  }
371
426
  /**
372
427
  * @description: 设置边框宽度
@@ -374,45 +429,45 @@ class H {
374
429
  setBorderWidth(e) {
375
430
  if (this.disposed)
376
431
  return this.logError("disposed");
377
- this.mesh.material.uniforms.borderWidth.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
432
+ this.meshWithDepthTest.material.uniforms.borderWidth.value = e, this.meshWithoutDepthTest.material.uniforms.borderWidth.value = e, this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
378
433
  }
379
434
  /** 设置背景颜色 */
380
435
  setBackgroundColor(e) {
381
436
  if (this.disposed)
382
437
  return this.logError("disposed");
383
- this.mesh.material.uniforms.backgroundColor.value = new n.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
438
+ this.meshWithDepthTest.material.uniforms.backgroundColor.value = new h.Color().set(e), this.meshWithoutDepthTest.material.uniforms.backgroundColor.value = new h.Color().set(e), this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
384
439
  }
385
440
  /** 设置背景透明度 */
386
441
  setBackgroundOpacity(e) {
387
442
  if (this.disposed)
388
443
  return this.logError("disposed");
389
- this.mesh.material.uniforms.backgroundOpacity.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
444
+ this.meshWithDepthTest.material.uniforms.backgroundOpacity.value = e, this.meshWithoutDepthTest.material.uniforms.backgroundOpacity.value = e, this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
390
445
  }
391
446
  /** 设置整体透明度 */
392
447
  setOpacity(e) {
393
448
  if (this.disposed)
394
449
  return this.logError("disposed");
395
- this.mesh.material.uniforms.opacity.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
450
+ this.meshWithDepthTest.material.uniforms.opacity.value = e, this.meshWithoutDepthTest.material.uniforms.opacity.value = e, this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
396
451
  }
397
452
  /** 设置贴图透明度 */
398
453
  setMapOpacity(e) {
399
454
  if (this.disposed)
400
455
  return this.logError("disposed");
401
- this.mesh.material.uniforms.mapOpacity.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
456
+ this.meshWithDepthTest.material.uniforms.mapOpacity.value = e, this.meshWithoutDepthTest.material.uniforms.mapOpacity.value = e, this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
402
457
  }
403
458
  /** 设置贴图 */
404
459
  setTextureUrl(e) {
405
460
  if (this.disposed)
406
461
  return this.logError("disposed");
407
462
  this.textureUrl = e, G(e).then((t) => {
408
- this.disposed || this.textureUrl === e && (t.wrapT = n.RepeatWrapping, this.textureHasLoaded = !0, this.mesh.material.uniforms.map.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.mesh.material.needsUpdate = !0, this.five.needsRender = !0, this.updateVisible());
463
+ this.disposed || this.textureUrl === e && (t.wrapT = h.RepeatWrapping, this.textureHasLoaded = !0, this.meshWithDepthTest.material.uniforms.map.value = t, this.meshWithoutDepthTest.material.uniforms.map.value = t, this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.meshWithDepthTest.material.needsUpdate = !0, this.meshWithoutDepthTest.material.needsUpdate = !0, this.five.needsRender = !0, this.updateVisible());
409
464
  });
410
465
  }
411
466
  setVisibleFloorIndexes(e) {
412
- var t, s;
467
+ var t, r;
413
468
  if (this.disposed)
414
469
  return this.logError("disposed");
415
- this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((s = (t = this.five.model) == null ? void 0 : t.shownFloor) != null ? s : null);
470
+ this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((r = (t = this.five.model) == null ? void 0 : t.shownFloor) != null ? r : null);
416
471
  }
417
472
  setStartTag(e) {
418
473
  this.setTag("start", e);
@@ -439,66 +494,66 @@ class H {
439
494
  var u;
440
495
  if (!this.curvePoints || !this.curvePath)
441
496
  return [];
442
- const e = this.curvePoints.length, t = this.curvePath.getLength(), s = e - 1, r = t / s, o = (u = this.curvePath.getLengths(s)) != null ? u : [], a = [];
443
- let h = 0;
444
- for (let g = 0; g < e; g++) {
445
- const m = this.curvePoints[g], f = this.plugin.workUtil.getObserverStandingPosition(h);
446
- if (!f)
497
+ const e = this.curvePoints.length, t = this.curvePath.getLength(), r = e - 1, s = t / r, o = (u = this.curvePath.getLengths(r)) != null ? u : [], a = [];
498
+ let n = 0;
499
+ for (let d = 0; d < e; d++) {
500
+ const p = this.curvePoints[d], g = this.plugin.workUtil.getObserverStandingPosition(n);
501
+ if (!g)
447
502
  break;
448
- f.clone().setY(0).distanceTo(m.clone().setY(0)) < r && (a.push(o[g]), h += 1);
503
+ g.clone().setY(0).distanceTo(p.clone().setY(0)) < s && (a.push(o[d]), n += 1);
449
504
  }
450
505
  return a;
451
506
  }
452
507
  setTag(e, t) {
453
- const s = this.curvePath, r = e === "start" ? this.startTagContainer : this.endTagContainer;
508
+ const r = this.curvePath, s = e === "start" ? this.startTagContainer : this.endTagContainer;
454
509
  if (!(t != null && t.data))
455
- return r.plugin.clearTags();
456
- const a = W({}, {
510
+ return s.plugin.clearTags();
511
+ const a = I({}, {
457
512
  contentType: "Custom",
458
513
  stickType: "2DPoint",
459
514
  config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"], followModelVisibility: !1 } },
460
515
  style: { point: { enabled: !1 } },
461
516
  data: {}
462
517
  }, t);
463
- r.tag = a, b(a) && (r.tag.element = (u) => {
464
- var f, c;
465
- (f = r.app) == null || f.$destroy();
466
- const g = e === "start" ? p(d({}, a.data), { name: this.name, distance: Math.round((c = s.getLength()) != null ? c : 0), i18n: this.plugin.config.i18n }) : a.data, m = new B({ target: u, intro: !0, props: g });
467
- return r.app = m, () => m.$destroy();
468
- }), r.plugin.load({ tagList: [r.tag] });
469
- const h = this.meshStyle.translate;
470
- if (h && a.position) {
471
- const u = new n.Vector3().fromArray(a.position), g = new n.Vector3().fromArray(h);
472
- u.add(g), u.y += this.heightOffset;
473
- const m = u.toArray();
474
- r.plugin.changeTagById(r.tag.id, { position: m });
518
+ s.tag = a, T(a) && (s.tag.element = (u) => {
519
+ var g, f;
520
+ (g = s.app) == null || g.$destroy();
521
+ const d = e === "start" ? c(m({}, a.data), { name: this.name, distance: Math.round((f = r.getLength()) != null ? f : 0), i18n: this.plugin.config.i18n }) : a.data, p = new B({ target: u, intro: !0, props: d });
522
+ return s.app = p, () => p.$destroy();
523
+ }), s.plugin.load({ tagList: [s.tag] });
524
+ const n = this.meshStyle.translate;
525
+ if (n && a.position) {
526
+ const u = new h.Vector3().fromArray(a.position), d = new h.Vector3().fromArray(n);
527
+ u.add(d), u.y += this.heightOffset;
528
+ const p = u.toArray();
529
+ s.plugin.changeTagById(s.tag.id, { position: p });
475
530
  }
476
531
  }
477
532
  doShow() {
478
- this.mode === "model" && this.flowAnime.play(), this.five.scene.add(this.mesh), this.startTagContainer.plugin.show(), this.endTagContainer.plugin.show(), this.five.needsRender = !0;
533
+ this.mode === "model" && this.flowAnime.play(), this.five.scene.add(this.group), this.startTagContainer.plugin.show(), this.endTagContainer.plugin.show(), this.five.needsRender = !0;
479
534
  }
480
535
  doHide() {
481
- this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.mesh), this.startTagContainer.plugin.hide(), this.endTagContainer.plugin.hide(), this.five.needsRender = !0;
536
+ this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.group), this.startTagContainer.plugin.hide(), this.endTagContainer.plugin.hide(), this.five.needsRender = !0;
482
537
  }
483
538
  /** 通过 panoIndex 数组计算路径 */
484
- getPathFromPanoGroup(e, t, s) {
539
+ getPathFromPanoGroup(e, t, r) {
485
540
  if (e.length < 2)
486
541
  return [];
487
- const r = e.map((o) => {
542
+ const s = e.map((o) => {
488
543
  var a;
489
544
  return (a = this.plugin.workUtil.getObserverStandingPosition(o)) == null ? void 0 : a.toArray();
490
- }).filter(w);
491
- return [d({ type: "CatmullRomCurve3", points: r }, s)];
545
+ }).filter(V);
546
+ return [c(m({ type: "CatmullRomCurve3", points: s }, r), { panoIndexList: e })];
492
547
  }
493
548
  }
494
- function b(l) {
549
+ function T(l) {
495
550
  return l.contentType === "Custom";
496
551
  }
497
- const ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
552
+ const he = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
498
553
  __proto__: null,
499
- GuideLineModeItem: H
554
+ GuideLineModeItem: Y
500
555
  }, Symbol.toStringTag, { value: "Module" }));
501
556
  export {
502
- H as GuideLineModeItem,
503
- ae as GuideLineModeItem$1
557
+ Y as GuideLineModeItem,
558
+ he as GuideLineModeItem$1
504
559
  };
@@ -29,7 +29,9 @@ declare class GuideLineModeItem {
29
29
  geometryStyle: PluginType.GuideLineGeometryStyle;
30
30
  materialStyle: PluginType.GuideLineMaterialStyle;
31
31
  meshStyle: PluginType.GuideLineMeshStyle;
32
- readonly mesh: THREE.Mesh<THREE.BufferGeometry, THREE.ShaderMaterial>;
32
+ readonly group: THREE.Group;
33
+ readonly meshWithDepthTest: THREE.Mesh<THREE.BufferGeometry, THREE.ShaderMaterial>;
34
+ readonly meshWithoutDepthTest: THREE.Mesh<THREE.BufferGeometry, THREE.ShaderMaterial>;
33
35
  private five;
34
36
  private mode;
35
37
  private _curvePath;
@@ -61,6 +63,8 @@ declare class GuideLineModeItem {
61
63
  private cacheLengths;
62
64
  /** 为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
63
65
  private heightOffset;
66
+ private panoMap;
67
+ private autoDepthTestEffectDistance?;
64
68
  constructor(five: Five, options: {
65
69
  mode: PluginType.GuideLineModeItemMode;
66
70
  plugin: GuideLinePlugin;
@@ -78,9 +82,14 @@ declare class GuideLineModeItem {
78
82
  /** 通过点位设置线条形状 */
79
83
  setGeometryByPanoGroup(_panoGroup: number[], options?: CatmullRomCurve3RestParams & PluginType.GuideLineGeometryStyle & {
80
84
  skipPanoGroup?: boolean;
85
+ useAutoDepthTest?: boolean;
86
+ autoDepthTestEffectDistance?: number;
81
87
  }): void;
82
88
  /** 通过路径设置线条形状 */
83
- setGeometryByPath(path: PluginType.PathItem[], options?: PluginType.GuideLineGeometryStyle): void;
89
+ setGeometryByPath(path: PluginType.PathItem[], options?: PluginType.GuideLineGeometryStyle & {
90
+ useAutoDepthTest?: boolean;
91
+ autoDepthTestEffectDistance?: number;
92
+ }): void;
84
93
  /** 设置线条材质 */
85
94
  setMartial(options?: PluginType.GuideLineMaterialStyle): void;
86
95
  /** 设置模型状态 */
@@ -128,6 +137,8 @@ declare class GuideLineModeItem {
128
137
  private onWalkAnimationEnd;
129
138
  /** 模型状态变更 */
130
139
  private onFiveModeChange;
140
+ /** 走点 */
141
+ private onFivePanoArrived;
131
142
  private onFiveModelShownFloorChange;
132
143
  /** 更新可见性 */
133
144
  private updateVisible;
@@ -4,7 +4,6 @@ import type * as BasePluginWithData from '../base/BasePluginWithData';
4
4
  import type { Tag } from '../PanoTagPlugin';
5
5
  export interface RouteConfig {
6
6
  arrowTextureUrl?: string;
7
- skipPanoIndexMesh?: boolean;
8
7
  unitWidth?: number;
9
8
  unitHeight?: number;
10
9
  }
@@ -88,8 +87,21 @@ export type GuideLineItem = RequireAtLeastOne<{
88
87
  export interface PanoramaGuideLineStyle extends GuideLineStyle {
89
88
  start_tag?: Tag;
90
89
  end_tag?: Tag;
91
- /** 是否跳过点位 */
90
+ /**
91
+ * @description 是否跳过点位
92
+ * @default false
93
+ */
92
94
  skip_group?: boolean;
95
+ /**
96
+ * @description 是否自动关闭点位附近路线的深度测试
97
+ * @default false
98
+ */
99
+ use_auto_depthtest?: boolean;
100
+ /**
101
+ * @description use_auto_depthtest 开启时,自动关闭深度测试的距离
102
+ * @default 1~3 之间
103
+ */
104
+ auto_depth_test_effect_distance?: number;
93
105
  }
94
106
  /** 模型路径样式 */
95
107
  export interface ModelGuideLineStyle extends GuideLineStyle {
@@ -165,4 +177,5 @@ export interface CatmullRomCurve3 {
165
177
  closed?: boolean;
166
178
  curve_type?: string;
167
179
  tension?: number;
180
+ panoIndexList?: number[];
168
181
  }