@realsee/dnalogel 3.20.7 → 3.21.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 (587) hide show
  1. package/dist/Object3DHelperPlugin/Controller.d.ts +25 -18
  2. package/dist/Object3DHelperPlugin/FiveControllerWrapper.d.ts +1 -0
  3. package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +2 -55
  4. package/dist/Sculpt/Meshes/Area.d.ts +30 -0
  5. package/dist/Sculpt/Meshes/Box.d.ts +35 -0
  6. package/dist/Sculpt/Meshes/Circle.d.ts +26 -0
  7. package/dist/Sculpt/Meshes/CircleWithEdge.d.ts +11 -0
  8. package/dist/Sculpt/Meshes/Cylinder.d.ts +34 -0
  9. package/dist/Sculpt/Meshes/Line.d.ts +27 -0
  10. package/dist/Sculpt/Meshes/LineWithDots.d.ts +30 -0
  11. package/dist/Sculpt/Meshes/Point.d.ts +22 -0
  12. package/dist/Sculpt/Meshes/Polygon.d.ts +31 -0
  13. package/dist/Sculpt/Meshes/Polyline.d.ts +34 -0
  14. package/dist/Sculpt/Meshes/Prism.d.ts +31 -0
  15. package/dist/Sculpt/Meshes/Rectangle.d.ts +24 -0
  16. package/dist/Sculpt/Meshes/RectangleWithEdge.d.ts +20 -0
  17. package/dist/Sculpt/Modules/Cursor.d.ts +13 -0
  18. package/dist/Sculpt/Modules/Global.d.ts +20 -0
  19. package/dist/Sculpt/Objects/Base/Editor.d.ts +21 -0
  20. package/dist/Sculpt/Objects/Base/index.d.ts +60 -0
  21. package/dist/Sculpt/Objects/Box/Editor.d.ts +5 -0
  22. package/dist/Sculpt/Objects/Box/index.d.ts +28 -0
  23. package/dist/Sculpt/Objects/Circle/Editor.d.ts +5 -0
  24. package/dist/Sculpt/Objects/Circle/index.d.ts +28 -0
  25. package/dist/Sculpt/Objects/Cylinder/Editor.d.ts +5 -0
  26. package/dist/Sculpt/Objects/Cylinder/index.d.ts +30 -0
  27. package/dist/Sculpt/Objects/Point/Editor.d.ts +8 -0
  28. package/dist/Sculpt/Objects/Point/index.d.ts +35 -0
  29. package/dist/Sculpt/Objects/Polygon/Editor.d.ts +8 -0
  30. package/dist/Sculpt/Objects/Polygon/index.d.ts +28 -0
  31. package/dist/Sculpt/Objects/Polyline/Editor.d.ts +25 -0
  32. package/dist/Sculpt/Objects/Polyline/index.d.ts +31 -0
  33. package/dist/Sculpt/Objects/Prism/Editor.d.ts +5 -0
  34. package/dist/Sculpt/Objects/Prism/index.d.ts +28 -0
  35. package/dist/Sculpt/Objects/Rectangle/Editor.d.ts +5 -0
  36. package/dist/Sculpt/Objects/Rectangle/index.d.ts +29 -0
  37. package/dist/Sculpt/index.d.ts +184 -0
  38. package/dist/Sculpt/typings/index.d.ts +16 -0
  39. package/dist/Sculpt/typings/utils.type.d.ts +12 -0
  40. package/dist/Sculpt/utils/color.d.ts +40 -0
  41. package/dist/Sculpt/utils/data.d.ts +7 -0
  42. package/dist/Sculpt/utils/getBetterNormal.d.ts +2 -0
  43. package/dist/Sculpt/utils/radiusToSegments.d.ts +1 -0
  44. package/dist/Sculpt/utils/three/ColoredMesh.d.ts +17 -0
  45. package/dist/Sculpt/utils/three/RectangleGeometry.d.ts +6 -0
  46. package/dist/Sculpt/utils/three/rayOnLine.d.ts +5 -0
  47. package/dist/index.cjs.js +70 -70
  48. package/dist/index.d.ts +1 -0
  49. package/dist/index.js +11537 -9326
  50. package/dist/index.umd.js +63 -63
  51. package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +13 -5
  52. package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +17 -6
  53. package/dist/shared-utils/Object3DHelper/Controller/RotateController.d.ts +0 -1
  54. package/dist/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +14 -7
  55. package/dist/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +4 -2
  56. package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
  57. package/dist/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +12 -3
  58. package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +1 -0
  59. package/dist/shared-utils/Object3DHelper/typings/index.d.ts +11 -0
  60. package/dist/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +2 -0
  61. package/dist/shared-utils/five/FiveDomEvents.d.ts +50 -13
  62. package/dist/shared-utils/five/getPosition.d.ts +14 -0
  63. package/dist/shared-utils/five/getRaycasterByNdcPosition.d.ts +6 -0
  64. package/dist/shared-utils/positionToVector3.d.ts +1 -0
  65. package/dist/shared-utils/three/IObject3D.d.ts +4 -0
  66. package/dist/shared-utils/three/Magnifier.d.ts +33 -19
  67. package/dist/shared-utils/three/PointSelector.d.ts +25 -11
  68. package/dist/shared-utils/three/PointSelectorHelper.d.ts +2 -0
  69. package/{libs/PanoMeasurePlugin/utils → dist/shared-utils/three}/geometryUtil.d.ts +1 -1
  70. package/dist/shared-utils/three/getIntersect.d.ts +16 -2
  71. package/dist/shared-utils/three/getNormal.d.ts +1 -1
  72. package/dist/shared-utils/three/recurveFindObject.d.ts +2 -0
  73. package/dist/shared-utils/three/vector3ToArray.d.ts +3 -0
  74. package/docs/assets/search.js +1 -1
  75. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +9 -4
  76. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +9 -4
  77. package/docs/classes/CSS3DRender.html +10 -5
  78. package/docs/classes/GuideLineItem.GuideLineItem.html +10 -5
  79. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +10 -5
  80. package/docs/classes/ModelRoomLabelController.html +10 -5
  81. package/docs/classes/MoveController.html +10 -5
  82. package/docs/classes/Object3DHelperController.html +26 -39
  83. package/docs/classes/PaintBrush.html +10 -5
  84. package/docs/classes/PanoMeasurePluginLine.html +10 -5
  85. package/docs/classes/PanoMeasurePluginModel.html +10 -5
  86. package/docs/classes/PanoMeasurePluginPoint.html +10 -5
  87. package/docs/classes/PanoMeasurePluginPolyline.html +10 -5
  88. package/docs/classes/PanoTagPluginController.html +10 -5
  89. package/docs/classes/Sculpt.html +847 -0
  90. package/docs/classes/Util.BetterTween.html +10 -5
  91. package/docs/classes/Util.Interval.html +10 -5
  92. package/docs/classes/Util.LineSegments.html +10 -5
  93. package/docs/classes/Util.Magnifier.html +82 -58
  94. package/docs/classes/Util.Object3D.html +10 -5
  95. package/docs/classes/Util.PointDomHelper.html +10 -5
  96. package/docs/classes/Util.PointHelper.html +10 -5
  97. package/docs/classes/Util.PointSelectorHelper.html +23 -18
  98. package/docs/classes/Util.Rectangle.html +10 -5
  99. package/docs/classes/WalkController.html +10 -5
  100. package/docs/enums/CameraMovementEffect.html +10 -5
  101. package/docs/enums/ContentType.html +10 -5
  102. package/docs/enums/DIRECTION.html +10 -5
  103. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +10 -5
  104. package/docs/enums/DimensionType.html +10 -5
  105. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +10 -5
  106. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +10 -5
  107. package/docs/enums/PaintBrushTypeEnum.html +10 -5
  108. package/docs/enums/PointType.html +10 -5
  109. package/docs/enums/Rotation.html +10 -5
  110. package/docs/functions/AreaMakerPlugin.html +10 -5
  111. package/docs/functions/CSS3DRenderPlugin.html +10 -5
  112. package/docs/functions/CameraMovementPlugin.html +10 -5
  113. package/docs/functions/CruisePlugin.html +10 -5
  114. package/docs/functions/CurrentPanoImagePlugin.html +10 -5
  115. package/docs/functions/GuideLinePlugin.html +10 -5
  116. package/docs/functions/ItemLabelPlugin.html +10 -5
  117. package/docs/functions/MapviewFloorplanPlugin.html +10 -5
  118. package/docs/functions/ModelChassisCompassPlugin.html +10 -5
  119. package/docs/functions/ModelEntryDoorGuidePlugin.html +10 -5
  120. package/docs/functions/ModelFloorplanPlugin.html +10 -5
  121. package/docs/functions/ModelItemLabelPlugin.html +10 -5
  122. package/docs/functions/ModelRoomLabelPlugin.html +10 -5
  123. package/docs/functions/ModelTVVideoPlugin.html +10 -5
  124. package/docs/functions/ModelViewPlugin.html +10 -5
  125. package/docs/functions/MovePlugin.html +10 -5
  126. package/docs/functions/Object3DHelperPlugin.html +10 -5
  127. package/docs/functions/PanoCompassPlugin.html +10 -5
  128. package/docs/functions/PanoCursorRaycasterPlugin.html +10 -5
  129. package/docs/functions/PanoDoorLabelPlugin.html +10 -5
  130. package/docs/functions/PanoFloorplanRadarPlugin.html +10 -5
  131. package/docs/functions/PanoMeasurePlugin.html +10 -5
  132. package/docs/functions/PanoRulerPlugin.html +10 -5
  133. package/docs/functions/PanoRulerProPlugin.html +10 -5
  134. package/docs/functions/PanoSpatialTagPlugin.html +10 -5
  135. package/docs/functions/PanoTagPlugin.html +10 -5
  136. package/docs/functions/PanoVideoPlugin.html +10 -5
  137. package/docs/functions/PipelinePlugin.html +10 -5
  138. package/docs/functions/TopviewFloorplanPlugin.html +10 -5
  139. package/docs/functions/Util.absoluteUrl.html +10 -5
  140. package/docs/functions/Util.checkFiveModelLoaded.html +10 -5
  141. package/docs/functions/Util.equal.html +10 -5
  142. package/docs/functions/Util.getCoordsFromClient.html +10 -5
  143. package/docs/functions/Util.getCoordsFromElement.html +10 -5
  144. package/docs/functions/Util.getFrameTime.html +10 -5
  145. package/docs/functions/Util.getIntersectFromRelativePosition.html +17 -7
  146. package/docs/functions/Util.getRaycasterFromFivePointer.html +10 -5
  147. package/docs/functions/Util.isAbsoluteURL.html +10 -5
  148. package/docs/functions/Util.isModelLike.html +10 -5
  149. package/docs/functions/Util.isNil.html +10 -5
  150. package/docs/functions/Util.isPanoramaLike.html +10 -5
  151. package/docs/functions/Util.nextFrame.html +10 -5
  152. package/docs/functions/Util.notNil.html +10 -5
  153. package/docs/functions/Util.requestAnimationFrameInterval.html +10 -5
  154. package/docs/functions/Util.tweenProgress.html +10 -5
  155. package/docs/functions/Util.uuid.html +10 -5
  156. package/docs/functions/pluginFlag.html +10 -5
  157. package/docs/index.html +11 -6
  158. package/docs/interfaces/AddTagConfig.html +10 -5
  159. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +9 -4
  160. package/docs/interfaces/AreaMakerPluginType.Config.html +9 -4
  161. package/docs/interfaces/AreaMakerPluginType.EventMap.html +9 -4
  162. package/docs/interfaces/AreaMakerPluginType.Params.html +9 -4
  163. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +9 -4
  164. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +9 -4
  165. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +9 -4
  166. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +9 -4
  167. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +9 -4
  168. package/docs/interfaces/AreaMakerPluginType.State.html +9 -4
  169. package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -5
  170. package/docs/interfaces/CSS3DRenderPluginState.html +10 -5
  171. package/docs/interfaces/CameraMovementPluginExportType.html +10 -5
  172. package/docs/interfaces/CruisePluginTypes.Config.html +9 -4
  173. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +9 -4
  174. package/docs/interfaces/CruisePluginTypes.EventMap.html +9 -4
  175. package/docs/interfaces/CruisePluginTypes.MoveAction.html +9 -4
  176. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +9 -4
  177. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +9 -4
  178. package/docs/interfaces/CruisePluginTypes.PluginData.html +9 -4
  179. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +9 -4
  180. package/docs/interfaces/CruisePluginTypes.PluginState.html +9 -4
  181. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +10 -5
  182. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +10 -5
  183. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +10 -5
  184. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +10 -5
  185. package/docs/interfaces/CurrentPanoImagePluginType.State.html +10 -5
  186. package/docs/interfaces/EventMap.html +10 -5
  187. package/docs/interfaces/FloorplanBounding.html +10 -5
  188. package/docs/interfaces/FloorplanData.html +10 -5
  189. package/docs/interfaces/FloorplanEntrance.html +10 -5
  190. package/docs/interfaces/FloorplanExtraObject.html +10 -5
  191. package/docs/interfaces/FloorplanExtraObject3D.html +10 -5
  192. package/docs/interfaces/FloorplanFloorData.html +10 -5
  193. package/docs/interfaces/FloorplanImagePosition.html +10 -5
  194. package/docs/interfaces/FloorplanObserver.html +10 -5
  195. package/docs/interfaces/FloorplanOutlineItem.html +10 -5
  196. package/docs/interfaces/FloorplanPosition.html +10 -5
  197. package/docs/interfaces/FloorplanRoomItem.html +10 -5
  198. package/docs/interfaces/FloorplanRoomLabelItem.html +10 -5
  199. package/docs/interfaces/FloorplanServerBounding.html +10 -5
  200. package/docs/interfaces/FloorplanServerComputedData.html +10 -5
  201. package/docs/interfaces/FloorplanServerData.html +10 -5
  202. package/docs/interfaces/FloorplanServerDoorItem.html +10 -5
  203. package/docs/interfaces/FloorplanServerDoorPosition.html +10 -5
  204. package/docs/interfaces/FloorplanServerEntrance.html +10 -5
  205. package/docs/interfaces/FloorplanServerFloorData.html +10 -5
  206. package/docs/interfaces/FloorplanServerImagePosition.html +10 -5
  207. package/docs/interfaces/FloorplanServerObserver.html +10 -5
  208. package/docs/interfaces/FloorplanServerOutlineItem.html +10 -5
  209. package/docs/interfaces/FloorplanServerPosition.html +10 -5
  210. package/docs/interfaces/FloorplanServerRoomItem.html +10 -5
  211. package/docs/interfaces/FloorplanServerRoomLabelItem.html +10 -5
  212. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +10 -5
  213. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -4
  214. package/docs/interfaces/GuideLinePluginType.EventMap.html +9 -4
  215. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +9 -4
  216. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +9 -4
  217. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +9 -4
  218. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +9 -4
  219. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +9 -4
  220. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +9 -4
  221. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +9 -4
  222. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +9 -4
  223. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +9 -4
  224. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +9 -4
  225. package/docs/interfaces/GuideLinePluginType.PluginState.html +9 -4
  226. package/docs/interfaces/GuideLinePluginType.Route.html +9 -4
  227. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +9 -4
  228. package/docs/interfaces/HelperOffset.html +10 -5
  229. package/docs/interfaces/ImagePlaneGroup.html +10 -5
  230. package/docs/interfaces/ItemLabelPluginData.html +10 -5
  231. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -5
  232. package/docs/interfaces/ItemLabelPluginParametersType.html +10 -5
  233. package/docs/interfaces/MinMax.html +10 -5
  234. package/docs/interfaces/ModelChassisCompassPluginData.html +10 -5
  235. package/docs/interfaces/ModelChassisCompassPluginExportType.html +10 -5
  236. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +10 -5
  237. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +10 -5
  238. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +10 -5
  239. package/docs/interfaces/ModelItemLabelPluginData.html +10 -5
  240. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -5
  241. package/docs/interfaces/ModelItemLabelPluginParametersType.html +10 -5
  242. package/docs/interfaces/ModelRoomLabelPluginData.html +10 -5
  243. package/docs/interfaces/ModelTVVideoPluginData.html +10 -5
  244. package/docs/interfaces/ModelTVVideoPluginExportType.html +10 -5
  245. package/docs/interfaces/ModelTVVideoPluginParameterType.html +10 -5
  246. package/docs/interfaces/ModelViewPluginExportType.html +10 -5
  247. package/docs/interfaces/Object3DHelperState.html +14 -9
  248. package/docs/interfaces/ObjectHelperControllers.html +16 -11
  249. package/docs/interfaces/PaintBrushAction.html +10 -5
  250. package/docs/interfaces/PaintBrushConfigs.html +10 -5
  251. package/docs/interfaces/PaintBrushState.html +10 -5
  252. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -5
  253. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +10 -5
  254. package/docs/interfaces/PanoMeasureParameterType.html +10 -5
  255. package/docs/interfaces/PanoMeasurePluginLineJson.html +10 -5
  256. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +10 -5
  257. package/docs/interfaces/PanoMeasurePluginPointJson.html +10 -5
  258. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +10 -5
  259. package/docs/interfaces/PanoRulerPluginExportType.html +10 -5
  260. package/docs/interfaces/PanoRulerPluginOptions.html +10 -5
  261. package/docs/interfaces/PanoRulerPluginParameterType.html +10 -5
  262. package/docs/interfaces/PanoRulerProPluginExportType.html +10 -5
  263. package/docs/interfaces/PanoRulerProPluginOptions.html +10 -5
  264. package/docs/interfaces/PanoRulerProPluginParameterType.html +10 -5
  265. package/docs/interfaces/PanoRulerProPluginState.html +10 -5
  266. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +10 -5
  267. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +10 -5
  268. package/docs/interfaces/PanoSpatialTagPluginData.html +10 -5
  269. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -5
  270. package/docs/interfaces/PanoSpatialTagPluginExportType.html +10 -5
  271. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -5
  272. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +10 -5
  273. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -5
  274. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -5
  275. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +10 -5
  276. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +10 -5
  277. package/docs/interfaces/PanoVideoPluginType.PluginData.html +10 -5
  278. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +10 -5
  279. package/docs/interfaces/PanoVideoPluginType.PluginState.html +10 -5
  280. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +10 -5
  281. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -5
  282. package/docs/interfaces/Point.html +10 -5
  283. package/docs/interfaces/Room.html +10 -5
  284. package/docs/interfaces/RoomInfo.html +10 -5
  285. package/docs/interfaces/RoomLabel.html +10 -5
  286. package/docs/interfaces/RoomRules.html +10 -5
  287. package/docs/interfaces/Rooms.html +10 -5
  288. package/docs/interfaces/Scissor.html +10 -5
  289. package/docs/interfaces/State.html +10 -5
  290. package/docs/interfaces/TagCacheInterface.html +10 -5
  291. package/docs/interfaces/TagConfig.html +12 -7
  292. package/docs/interfaces/TagGLTFObjectGroup.html +10 -5
  293. package/docs/interfaces/TagIconUrl.html +10 -5
  294. package/docs/interfaces/TagObjectGroup.html +10 -5
  295. package/docs/interfaces/TagStyle.html +10 -5
  296. package/docs/interfaces/Tags.html +10 -5
  297. package/docs/interfaces/TemporaryState.html +10 -5
  298. package/docs/interfaces/Util.MagnifierParameter.html +32 -22
  299. package/docs/interfaces/Util.MouseGroupParameter.html +10 -5
  300. package/docs/interfaces/Util.PointIntersection.html +19 -7
  301. package/docs/modules/AreaMakerPluginType.html +9 -4
  302. package/docs/modules/CruisePluginTypes.html +9 -4
  303. package/docs/modules/CurrentPanoImagePluginType.html +10 -5
  304. package/docs/modules/GuideLineItem.html +10 -5
  305. package/docs/modules/GuideLineModeItem.html +10 -5
  306. package/docs/modules/GuideLinePluginType.html +9 -4
  307. package/docs/modules/PanoVideoPluginType.html +10 -5
  308. package/docs/modules/Util.html +10 -5
  309. package/docs/modules.html +22 -9
  310. package/docs/types/AddObject3DHelperConfig.html +310 -0
  311. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +9 -4
  312. package/docs/types/AreaMakerPluginType.ItemRenderer.html +9 -4
  313. package/docs/types/AreaMakerPluginType.PluginData.html +9 -4
  314. package/docs/types/AreaMakerPluginType.ServerData.html +9 -4
  315. package/docs/types/ArrayPosition.html +10 -5
  316. package/docs/types/AudioAppearance.html +10 -5
  317. package/docs/types/AudioTagTypeConfigKey.html +10 -5
  318. package/docs/types/CSS3DRenderExportType.html +10 -5
  319. package/docs/types/CSS3DRenderPluginExportType.html +10 -5
  320. package/docs/types/CSS3DRenderPluginParameterType.html +10 -5
  321. package/docs/types/ClassFunctionParameters.html +10 -5
  322. package/docs/types/Color.html +10 -5
  323. package/docs/types/ContentTypeConfigKey.html +10 -5
  324. package/docs/types/ContentTypeConfigKeySplit.html +10 -5
  325. package/docs/types/ContentTypeMap.html +10 -5
  326. package/docs/types/Create3DDomContainerReturnType.html +10 -5
  327. package/docs/types/Create3DElementReturnType.html +10 -5
  328. package/docs/types/CruisePluginExportType.html +10 -5
  329. package/docs/types/CruisePluginTypes.CruiseData.html +9 -4
  330. package/docs/types/CruisePluginTypes.MoveEffect.html +9 -4
  331. package/docs/types/CurrentPanoImagePluginExportType.html +10 -5
  332. package/docs/types/DeprecatedMediaPlaneProperty.html +10 -5
  333. package/docs/types/DeprecatedTagProperty.html +10 -5
  334. package/docs/types/Direction-1.html +10 -5
  335. package/docs/types/Direction4.html +10 -5
  336. package/docs/types/ElementRenderer.html +10 -5
  337. package/docs/types/FloorplanRuleLabels.html +10 -5
  338. package/docs/types/FloorplanServerRuleLabels.html +10 -5
  339. package/docs/types/GuideLinePluginExportType.html +10 -5
  340. package/docs/types/GuideLinePluginType.GuideLineItem.html +9 -4
  341. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +9 -4
  342. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +9 -4
  343. package/docs/types/GuideLinePluginType.GuideLineStyle.html +9 -4
  344. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +9 -4
  345. package/docs/types/GuideLinePluginType.PathItem.html +9 -4
  346. package/docs/types/GuideLinePluginType.PluginData.html +9 -4
  347. package/docs/types/HelperEventMap.html +10 -5
  348. package/docs/types/InternalHelperEventMap.html +22 -9
  349. package/docs/types/LoadTagConfig.html +10 -5
  350. package/docs/types/MapviewFloorplanPluginParameterType.html +10 -5
  351. package/docs/types/MapviewFloorplanPluginReturnType.html +10 -5
  352. package/docs/types/MediaData.html +10 -5
  353. package/docs/types/MediaStore.html +10 -5
  354. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +10 -5
  355. package/docs/types/ModelFloorplanPluginParameterType.html +10 -5
  356. package/docs/types/ModelFloorplanPluginReturnType.html +10 -5
  357. package/docs/types/ModelId.html +10 -5
  358. package/docs/types/ModelRoomLabelPluginParameters.html +10 -5
  359. package/docs/types/ModelRoomLabelPluginReturnType.html +10 -5
  360. package/docs/types/MoveArgs.html +10 -5
  361. package/docs/types/MoveOpts.html +10 -5
  362. package/docs/types/Object3DHelperEventMap.html +11 -6
  363. package/docs/types/ObjectFit.html +10 -5
  364. package/docs/types/PaintBrushEventMap.html +10 -5
  365. package/docs/types/PanoCompassPluginData.html +10 -5
  366. package/docs/types/PanoCompassPluginExportType.html +10 -5
  367. package/docs/types/PanoCompassPluginParameterType.html +10 -5
  368. package/docs/types/PanoFloorplanRadarPluginParameterType.html +10 -5
  369. package/docs/types/PanoFloorplanRadarPluginReturnType.html +10 -5
  370. package/docs/types/PanoIndex.html +10 -5
  371. package/docs/types/PanoMeasurePluginEvent.html +10 -5
  372. package/docs/types/PanoMeasureReturnType.html +10 -5
  373. package/docs/types/PanoSpatialTagPluginId.html +10 -5
  374. package/docs/types/PanoTagPluginExportInterface.html +10 -5
  375. package/docs/types/PanoTagPluginParamsInterface.html +10 -5
  376. package/docs/types/PanoVideoPluginParameterType.html +10 -5
  377. package/docs/types/PanoVideoPluginReturnType.html +10 -5
  378. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +10 -5
  379. package/docs/types/PipelinePluginParameterType.html +10 -5
  380. package/docs/types/PipelinePluginReturnType.html +10 -5
  381. package/docs/types/PlaneTag.html +10 -5
  382. package/docs/types/Point2DTag.html +10 -5
  383. package/docs/types/Point3DTag.html +10 -5
  384. package/docs/types/PointTag.html +10 -5
  385. package/docs/types/PointTagInstance.html +10 -5
  386. package/docs/types/Position.html +10 -5
  387. package/docs/types/PositionFrom.html +297 -0
  388. package/docs/types/RotateArgs.html +10 -5
  389. package/docs/types/RotateOpts.html +10 -5
  390. package/docs/types/RuleLabelsKey.html +10 -5
  391. package/docs/types/RuleLabelsValue.html +10 -5
  392. package/docs/types/ScaleCallback.html +309 -0
  393. package/docs/types/ScalePosition.html +298 -0
  394. package/docs/types/StickType.html +10 -5
  395. package/docs/types/Tag.html +10 -5
  396. package/docs/types/Tag2D.html +10 -5
  397. package/docs/types/Tag3D.html +10 -5
  398. package/docs/types/TagConfigByKey.html +10 -5
  399. package/docs/types/TagContentType.html +10 -5
  400. package/docs/types/TagContentTypeMapping.html +10 -5
  401. package/docs/types/TagDimensionType.html +10 -5
  402. package/docs/types/TagElement.html +10 -5
  403. package/docs/types/TagEvents.html +10 -5
  404. package/docs/types/TagGLTFObject.html +10 -5
  405. package/docs/types/TagHooks.html +10 -5
  406. package/docs/types/TagId.html +10 -5
  407. package/docs/types/TagInstance.html +10 -5
  408. package/docs/types/TagPointType.html +10 -5
  409. package/docs/types/TagRendererMap.html +10 -5
  410. package/docs/types/TopviewFloorplanPluginParameterType.html +10 -5
  411. package/docs/types/TopviewFloorplanPluginReturnType.html +10 -5
  412. package/docs/types/WorkCode.html +10 -5
  413. package/docs/variables/FLOOR_TYPE_MAP.html +10 -5
  414. package/docs/variables/PLUGIN.html +11 -6
  415. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +10 -5
  416. package/docs/variables/ROOM_TYPE_MAP.html +10 -5
  417. package/docs/variables/defaultGlobalConfig.html +10 -5
  418. package/docs/variables/itemLabelPluginServerParams.html +10 -5
  419. package/docs/variables/modelItemLabelPluginServerParams.html +10 -5
  420. package/docs/variables/modelRoomLabelPluginServerParams.html +10 -5
  421. package/libs/GuideLinePlugin/Controller.js +15 -15
  422. package/libs/Object3DHelperPlugin/Controller.d.ts +25 -18
  423. package/libs/Object3DHelperPlugin/Controller.js +91 -91
  424. package/libs/Object3DHelperPlugin/FiveControllerWrapper.d.ts +1 -0
  425. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +22 -18
  426. package/libs/Object3DHelperPlugin/index.js +8 -6
  427. package/libs/PanoMeasurePlugin/Components/Controller0.js +6 -7
  428. package/libs/PanoMeasurePlugin/Components/Controller1.js +6 -7
  429. package/libs/PanoMeasurePlugin/Controller/EditController.js +7 -8
  430. package/libs/PanoMeasurePlugin/Controller/MixedController.js +7 -7
  431. package/libs/PanoMeasurePlugin/Controller/WatchController.js +2 -2
  432. package/libs/PanoMeasurePlugin/Controller/index.js +5 -5
  433. package/libs/PanoMeasurePlugin/Model/area.js +2 -2
  434. package/libs/PanoMeasurePlugin/Model/polygon.js +1 -1
  435. package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +2 -55
  436. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +22 -156
  437. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +6 -7
  438. package/libs/PanoMeasurePlugin/index.js +24 -25
  439. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +1 -1
  440. package/libs/PanoTagPlugin/controller/TagRender.js +18 -13
  441. package/libs/PanoTagPlugin/utils/model/mediaPlane.js +20 -10
  442. package/libs/Sculpt/Meshes/Area.d.ts +30 -0
  443. package/libs/Sculpt/Meshes/Area.js +56 -0
  444. package/libs/Sculpt/Meshes/Box.d.ts +35 -0
  445. package/libs/Sculpt/Meshes/Box.js +88 -0
  446. package/libs/Sculpt/Meshes/Circle.d.ts +26 -0
  447. package/libs/Sculpt/Meshes/Circle.js +42 -0
  448. package/libs/Sculpt/Meshes/CircleWithEdge.d.ts +11 -0
  449. package/libs/Sculpt/Meshes/CircleWithEdge.js +41 -0
  450. package/libs/Sculpt/Meshes/Cylinder.d.ts +34 -0
  451. package/libs/Sculpt/Meshes/Cylinder.js +88 -0
  452. package/libs/Sculpt/Meshes/Line.d.ts +27 -0
  453. package/libs/Sculpt/Meshes/Line.js +108 -0
  454. package/libs/Sculpt/Meshes/LineWithDots.d.ts +30 -0
  455. package/libs/Sculpt/Meshes/LineWithDots.js +70 -0
  456. package/libs/Sculpt/Meshes/Point.d.ts +22 -0
  457. package/libs/Sculpt/Meshes/Point.js +74 -0
  458. package/libs/Sculpt/Meshes/Polygon.d.ts +31 -0
  459. package/libs/Sculpt/Meshes/Polygon.js +52 -0
  460. package/libs/Sculpt/Meshes/Polyline.d.ts +34 -0
  461. package/libs/Sculpt/Meshes/Polyline.js +105 -0
  462. package/libs/Sculpt/Meshes/Prism.d.ts +31 -0
  463. package/libs/Sculpt/Meshes/Prism.js +78 -0
  464. package/libs/Sculpt/Meshes/Rectangle.d.ts +24 -0
  465. package/libs/Sculpt/Meshes/Rectangle.js +49 -0
  466. package/libs/Sculpt/Meshes/RectangleWithEdge.d.ts +20 -0
  467. package/libs/Sculpt/Meshes/RectangleWithEdge.js +49 -0
  468. package/libs/Sculpt/Modules/Cursor.d.ts +13 -0
  469. package/libs/Sculpt/Modules/Cursor.js +37 -0
  470. package/libs/Sculpt/Modules/Global.d.ts +20 -0
  471. package/libs/Sculpt/Modules/Global.js +45 -0
  472. package/libs/Sculpt/Objects/Base/Editor.d.ts +21 -0
  473. package/libs/Sculpt/Objects/Base/Editor.js +52 -0
  474. package/libs/Sculpt/Objects/Base/index.d.ts +60 -0
  475. package/libs/Sculpt/Objects/Base/index.js +77 -0
  476. package/libs/Sculpt/Objects/Box/Editor.d.ts +5 -0
  477. package/libs/Sculpt/Objects/Box/Editor.js +44 -0
  478. package/libs/Sculpt/Objects/Box/index.d.ts +28 -0
  479. package/libs/Sculpt/Objects/Box/index.js +107 -0
  480. package/libs/Sculpt/Objects/Circle/Editor.d.ts +5 -0
  481. package/libs/Sculpt/Objects/Circle/Editor.js +9 -0
  482. package/libs/Sculpt/Objects/Circle/index.d.ts +28 -0
  483. package/libs/Sculpt/Objects/Circle/index.js +114 -0
  484. package/libs/Sculpt/Objects/Cylinder/Editor.d.ts +5 -0
  485. package/libs/Sculpt/Objects/Cylinder/Editor.js +41 -0
  486. package/libs/Sculpt/Objects/Cylinder/index.d.ts +30 -0
  487. package/libs/Sculpt/Objects/Cylinder/index.js +100 -0
  488. package/libs/Sculpt/Objects/Point/Editor.d.ts +8 -0
  489. package/libs/Sculpt/Objects/Point/Editor.js +25 -0
  490. package/libs/Sculpt/Objects/Point/index.d.ts +35 -0
  491. package/libs/Sculpt/Objects/Point/index.js +92 -0
  492. package/libs/Sculpt/Objects/Polygon/Editor.d.ts +8 -0
  493. package/libs/Sculpt/Objects/Polygon/Editor.js +23 -0
  494. package/libs/Sculpt/Objects/Polygon/index.d.ts +28 -0
  495. package/libs/Sculpt/Objects/Polygon/index.js +113 -0
  496. package/libs/Sculpt/Objects/Polyline/Editor.d.ts +25 -0
  497. package/libs/Sculpt/Objects/Polyline/Editor.js +68 -0
  498. package/libs/Sculpt/Objects/Polyline/index.d.ts +31 -0
  499. package/libs/Sculpt/Objects/Polyline/index.js +96 -0
  500. package/libs/Sculpt/Objects/Prism/Editor.d.ts +5 -0
  501. package/libs/Sculpt/Objects/Prism/Editor.js +44 -0
  502. package/libs/Sculpt/Objects/Prism/index.d.ts +28 -0
  503. package/libs/Sculpt/Objects/Prism/index.js +105 -0
  504. package/libs/Sculpt/Objects/Rectangle/Editor.d.ts +5 -0
  505. package/libs/Sculpt/Objects/Rectangle/Editor.js +9 -0
  506. package/libs/Sculpt/Objects/Rectangle/index.d.ts +29 -0
  507. package/libs/Sculpt/Objects/Rectangle/index.js +105 -0
  508. package/libs/Sculpt/index.d.ts +184 -0
  509. package/libs/Sculpt/index.js +209 -0
  510. package/libs/Sculpt/typings/index.d.ts +16 -0
  511. package/libs/Sculpt/typings/utils.type.d.ts +12 -0
  512. package/libs/Sculpt/utils/color.d.ts +40 -0
  513. package/libs/Sculpt/utils/color.js +7 -0
  514. package/libs/Sculpt/utils/data.d.ts +7 -0
  515. package/libs/Sculpt/utils/getBetterNormal.d.ts +2 -0
  516. package/libs/Sculpt/utils/getBetterNormal.js +8 -0
  517. package/libs/Sculpt/utils/radiusToSegments.d.ts +1 -0
  518. package/libs/Sculpt/utils/radiusToSegments.js +6 -0
  519. package/libs/Sculpt/utils/three/ColoredMesh.d.ts +17 -0
  520. package/libs/Sculpt/utils/three/ColoredMesh.js +58 -0
  521. package/libs/Sculpt/utils/three/RectangleGeometry.d.ts +6 -0
  522. package/libs/Sculpt/utils/three/RectangleGeometry.js +19 -0
  523. package/libs/Sculpt/utils/three/rayOnLine.d.ts +5 -0
  524. package/libs/Sculpt/utils/three/rayOnLine.js +8 -0
  525. package/libs/base/BasePlugin.js +1 -1
  526. package/libs/index.d.ts +1 -0
  527. package/libs/index.js +172 -127
  528. package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +13 -5
  529. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +95 -80
  530. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +17 -6
  531. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +40 -35
  532. package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +9 -9
  533. package/libs/shared-utils/Object3DHelper/Controller/RotateController.d.ts +0 -1
  534. package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +54 -53
  535. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +14 -7
  536. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +49 -15
  537. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +4 -2
  538. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +16 -12
  539. package/libs/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +8 -5
  540. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
  541. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +21 -12
  542. package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +12 -3
  543. package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.js +38 -5
  544. package/libs/shared-utils/Object3DHelper/typings/Hooks.d.ts +1 -0
  545. package/libs/shared-utils/Object3DHelper/typings/index.d.ts +11 -0
  546. package/libs/shared-utils/Object3DHelper/utils/boundingBox.js +22 -21
  547. package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +2 -0
  548. package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.js +7 -0
  549. package/libs/shared-utils/Subscribe.js +1 -1
  550. package/libs/shared-utils/five/FiveDomEvents.d.ts +50 -13
  551. package/libs/shared-utils/five/FiveDomEvents.js +135 -90
  552. package/libs/shared-utils/five/getPosition.d.ts +14 -0
  553. package/libs/shared-utils/five/getPosition.js +45 -0
  554. package/libs/shared-utils/five/getRaycasterByNdcPosition.d.ts +6 -0
  555. package/libs/shared-utils/five/getRaycasterByNdcPosition.js +8 -0
  556. package/libs/shared-utils/logger.js +1 -1
  557. package/libs/shared-utils/positionToVector3.d.ts +1 -0
  558. package/libs/shared-utils/positionToVector3.js +7 -4
  559. package/libs/shared-utils/three/IObject3D.d.ts +4 -0
  560. package/libs/shared-utils/three/IObject3D.js +22 -9
  561. package/libs/shared-utils/three/Magnifier.d.ts +33 -19
  562. package/libs/shared-utils/three/Magnifier.js +112 -70
  563. package/libs/shared-utils/three/PointSelector.d.ts +25 -11
  564. package/libs/shared-utils/three/PointSelector.js +70 -78
  565. package/libs/shared-utils/three/PointSelectorHelper.d.ts +2 -0
  566. package/libs/shared-utils/three/PointSelectorHelper.js +14 -14
  567. package/libs/shared-utils/three/generatePolygonGeometry.js +15 -0
  568. package/{dist/PanoMeasurePlugin/utils → libs/shared-utils/three}/geometryUtil.d.ts +1 -1
  569. package/libs/shared-utils/three/geometryUtil.js +37 -0
  570. package/libs/shared-utils/three/getIntersect.d.ts +16 -2
  571. package/libs/shared-utils/three/getIntersect.js +20 -5
  572. package/libs/shared-utils/three/getNormal.d.ts +1 -1
  573. package/libs/shared-utils/three/getNormal.js +8 -7
  574. package/libs/shared-utils/three/recurveFindObject.d.ts +2 -0
  575. package/libs/shared-utils/three/recurveFindObject.js +6 -0
  576. package/libs/shared-utils/three/vector3ToArray.d.ts +3 -0
  577. package/libs/shared-utils/three/vector3ToArray.js +6 -0
  578. package/libs/vendor/hotkeys-js/dist/hotkeys.esm.js +372 -0
  579. package/package.json +4 -3
  580. package/dist/shared-utils/getIntersectionFromEvent.d.ts +0 -4
  581. package/docs/classes/Magnifier.html +0 -485
  582. package/libs/PanoMeasurePlugin/utils/generatePolygonGeometry.js +0 -13
  583. package/libs/PanoMeasurePlugin/utils/geometryUtil.js +0 -39
  584. package/libs/shared-utils/getIntersectionFromEvent.d.ts +0 -4
  585. package/libs/shared-utils/getIntersectionFromEvent.js +0 -9
  586. /package/dist/{PanoMeasurePlugin/utils → shared-utils/three}/generatePolygonGeometry.d.ts +0 -0
  587. /package/libs/{PanoMeasurePlugin/utils → shared-utils/three}/generatePolygonGeometry.d.ts +0 -0
@@ -0,0 +1,88 @@
1
+ var u = Object.defineProperty;
2
+ var c = Object.getOwnPropertySymbols;
3
+ var p = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
4
+ var n = (i, e, t) => e in i ? u(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, l = (i, e) => {
5
+ for (var t in e || (e = {}))
6
+ p.call(e, t) && n(i, t, e[t]);
7
+ if (c)
8
+ for (var t of c(e))
9
+ b.call(e, t) && n(i, t, e[t]);
10
+ return i;
11
+ };
12
+ var o = (i, e, t) => (n(i, typeof e != "symbol" ? e + "" : e, t), t);
13
+ import { IObject3D as f } from "../../shared-utils/three/IObject3D.js";
14
+ import * as h from "three";
15
+ import "hammerjs";
16
+ import "@realsee/five";
17
+ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
18
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
19
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
20
+ import { notNil as d } from "../../shared-utils/isNil.js";
21
+ import { CircleWithEdgeMesh as g } from "./CircleWithEdge.js";
22
+ import { radiusToSegments as M } from "../utils/radiusToSegments.js";
23
+ import { ColoredMesh as y } from "../utils/three/ColoredMesh.js";
24
+ import { anyPositionToVector3 as C } from "../../shared-utils/positionToVector3.js";
25
+ import { DEFAULT_HIGHLIGHT_OPACITY as a } from "../utils/color.js";
26
+ class q extends f {
27
+ constructor(t) {
28
+ super();
29
+ o(this, "bottomCircle");
30
+ o(this, "topCircle");
31
+ o(this, "edgeMesh");
32
+ o(this, "opacityBeforeHighlight");
33
+ o(this, "highlighted", !1);
34
+ o(this, "params");
35
+ this.params = t, this.bottomCircle = new g(t), this.bottomCircle.name = "bottomCircle", this.topCircle = new g(t), this.topCircle.name = "topCircle", this.edgeMesh = new y(t), t != null && t.bottomCenter && (t != null && t.topCenter) && (t != null && t.radius) && this.setPoints(t), this.addIfNotExists(this.bottomCircle);
36
+ }
37
+ get bottomCenter() {
38
+ return this.bottomCircle.center;
39
+ }
40
+ get topCenter() {
41
+ return this.topCircle.center;
42
+ }
43
+ get normal() {
44
+ return this.bottomCircle.normal;
45
+ }
46
+ get radius() {
47
+ return this.bottomCircle.radius;
48
+ }
49
+ get color() {
50
+ return this.bottomCircle.color;
51
+ }
52
+ setPoints(t) {
53
+ const r = C(t.topCenter), s = C(t.bottomCenter), m = r.clone().sub(s).normalize();
54
+ this.bottomCircle.setPoints({ center: s, normal: m, radius: t.radius }), this.setTopCenter(r), this.needsRender = !0;
55
+ }
56
+ setTopCenter(t) {
57
+ this.addIfNotExists(this.topCircle), this.topCircle.setPoints({ center: t, normal: this.normal, radius: this.radius }), this.setEdgeMesh();
58
+ }
59
+ setBottomCenter(t) {
60
+ this.addIfNotExists(this.bottomCircle), this.bottomCircle.setPoints({ center: t, normal: this.normal, radius: this.radius }), this.setEdgeMesh();
61
+ }
62
+ setStyle(t) {
63
+ this.params = l(l({}, this.params), t), d(t.color) && this.bottomCircle.setStyle({ color: t.color }), d(t.color) && this.topCircle.setStyle({ color: t.color });
64
+ }
65
+ highlight() {
66
+ this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.edgeMesh.opacity, this.edgeMesh.setStyle({ opacity: this.edgeMesh.opacity * a }), this.bottomCircle.highlight(), this.topCircle.highlight(), this.needsRender = !0);
67
+ }
68
+ unhighlight() {
69
+ this.highlighted && (this.highlighted = !1, this.edgeMesh.setStyle({ opacity: this.opacityBeforeHighlight }), this.bottomCircle.unhighlight(), this.topCircle.unhighlight(), this.needsRender = !0);
70
+ }
71
+ setEdgeMesh() {
72
+ this.addIfNotExists(this.edgeMesh);
73
+ const t = this.topCircle.center, r = this.bottomCircle.center;
74
+ this.edgeMesh.geometry.dispose(), this.edgeMesh.geometry = new h.CylinderGeometry(
75
+ this.radius,
76
+ this.radius,
77
+ t.distanceTo(r),
78
+ M(this.radius),
79
+ 1,
80
+ !0
81
+ );
82
+ const s = new h.Quaternion().setFromUnitVectors(new h.Vector3(0, 1, 0), this.normal.clone().normalize());
83
+ this.edgeMesh.position.copy(new h.Vector3().lerpVectors(r, t, 0.5)), this.edgeMesh.quaternion.copy(s);
84
+ }
85
+ }
86
+ export {
87
+ q as CylinderMesh
88
+ };
@@ -0,0 +1,27 @@
1
+ import * as THREE from 'three';
2
+ import { type OcclusionStyle, type LineStyle } from '../utils/color';
3
+ import { type AnyPositions } from '../../shared-utils/positionToVector3';
4
+ import { IObject3D } from '../../shared-utils/three/IObject3D';
5
+ import type { PointsData } from '../utils/data';
6
+ export type LineMeshStyle = LineStyle & {
7
+ dashed?: boolean;
8
+ } & OcclusionStyle;
9
+ export type LineData = PointsData;
10
+ export declare class LineMesh extends IObject3D {
11
+ name: string;
12
+ points: THREE.Vector3[];
13
+ get lineWidth(): number;
14
+ get color(): THREE.Color;
15
+ get dashed(): boolean;
16
+ get occlusionVisibility(): boolean;
17
+ protected highlighted: boolean;
18
+ private line;
19
+ private backLine;
20
+ private opacityBeforeHighlight;
21
+ constructor(params?: Partial<LineMeshStyle & LineData>);
22
+ setPoints(points: AnyPositions): void;
23
+ setResolution(width: number, height: number): void;
24
+ setStyle(params: Partial<LineMeshStyle>): void;
25
+ highlight(): void;
26
+ unhighlight(): void;
27
+ }
@@ -0,0 +1,108 @@
1
+ var k = Object.defineProperty;
2
+ var E = (h, o, e) => o in h ? k(h, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[o] = e;
3
+ var l = (h, o, e) => (E(h, typeof o != "symbol" ? o + "" : o, e), e);
4
+ import * as r from "three";
5
+ import { DEFAULT_LINE_COLOR as g, DEFAULT_LINE_WIDTH as w, DEFAULT_HIGHLIGHT_OPACITY as L } from "../utils/color.js";
6
+ import { LineGeometry as y, LineMaterial as a, THREE_Line2 as H } from "@realsee/five/line";
7
+ import { anyPositionToVector3 as C } from "../../shared-utils/positionToVector3.js";
8
+ import { IObject3D as D } from "../../shared-utils/three/IObject3D.js";
9
+ import "hammerjs";
10
+ import "@realsee/five";
11
+ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
12
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
13
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
14
+ import { notNil as s } from "../../shared-utils/isNil.js";
15
+ class b extends a {
16
+ constructor(e) {
17
+ var t, i;
18
+ super(e);
19
+ l(this, "_three_color");
20
+ s(e == null ? void 0 : e.color) && (this.three_color = (t = e == null ? void 0 : e.color) != null ? t : 16777215), Object.keys(e).forEach((n) => {
21
+ ["color", "dashed", "dashScale", "dashSize", "gapSize", "resolution"].includes(n) || n in this && (this[n] = e[n]);
22
+ }), this.setDashed((i = e == null ? void 0 : e.dashed) != null ? i : !1);
23
+ }
24
+ get three_color() {
25
+ return this._three_color;
26
+ }
27
+ set three_color(e) {
28
+ this._three_color = e, this.color = e;
29
+ }
30
+ setDashed(e) {
31
+ e ? this.defines.USE_DASH = "" : delete this.defines.USE_DASH, this.needsUpdate = !0;
32
+ }
33
+ }
34
+ class _ extends H {
35
+ constructor(e, t) {
36
+ super(e, t);
37
+ l(this, "name", "Line3");
38
+ }
39
+ }
40
+ class P extends D {
41
+ constructor(e) {
42
+ var c, d, f, u;
43
+ super();
44
+ l(this, "name", "LineMesh");
45
+ l(this, "points");
46
+ l(this, "highlighted", !1);
47
+ l(this, "line");
48
+ l(this, "backLine");
49
+ l(this, "opacityBeforeHighlight");
50
+ const t = new y(), i = new b({
51
+ color: new r.Color((c = e == null ? void 0 : e.lineColor) != null ? c : g),
52
+ linewidth: (d = e == null ? void 0 : e.lineWidth) != null ? d : w,
53
+ dashScale: 40,
54
+ opacity: 1,
55
+ transparent: !0,
56
+ dashed: (f = e == null ? void 0 : e.dashed) != null ? f : !1
57
+ }), n = new b({
58
+ color: new r.Color((u = e == null ? void 0 : e.lineColor) != null ? u : g),
59
+ linewidth: i == null ? void 0 : i.linewidth,
60
+ dashScale: i.dashScale,
61
+ depthTest: !1,
62
+ depthWrite: !1,
63
+ transparent: !0,
64
+ opacity: 0.2,
65
+ dashed: i.dashed,
66
+ resolution: i.resolution
67
+ });
68
+ this.line = new _(t, i), this.backLine = new _(t, n), this.line.renderOrder = 1, this.backLine.renderOrder = 0, this.line.name = "lineFrontMaterial", this.backLine.name = "lineBackMaterial", e && this.setStyle(e), e != null && e.points && this.setPoints(e.points);
69
+ }
70
+ get lineWidth() {
71
+ return this.line.material.linewidth;
72
+ }
73
+ get color() {
74
+ return new r.Color(this.line.material.three_color);
75
+ }
76
+ get dashed() {
77
+ return this.line.material.dashed;
78
+ }
79
+ get occlusionVisibility() {
80
+ return this.backLine.visible;
81
+ }
82
+ setPoints(e) {
83
+ const t = e.map(C).filter(s);
84
+ if (this.points = t, t.length < 2)
85
+ return;
86
+ this.addIfNotExists(this.line, this.backLine);
87
+ const i = t.flatMap((n) => [n.x, n.y, n.z]);
88
+ i.length > 2 && (this.line.geometry.dispose(), this.line.geometry = new y(), this.backLine.geometry = this.line.geometry), this.line.geometry.setPositions(i), this.line.computeLineDistances(), this.needsRender = !0;
89
+ }
90
+ setResolution(e, t) {
91
+ const i = this.line.material.resolution;
92
+ (i.x !== e || i.y !== t) && (i.set(e, t), this.needsRender = !0);
93
+ const n = this.backLine.material.resolution;
94
+ (n.x !== e || n.y !== t) && (n.set(e, t), this.needsRender = !0);
95
+ }
96
+ setStyle(e) {
97
+ s(e.lineColor) && (this.line.material.three_color = new r.Color(e.lineColor), this.backLine.material.three_color = new r.Color(e.lineColor)), s(e.lineWidth) && (this.line.material.linewidth = e.lineWidth, this.backLine.material.linewidth = e.lineWidth), s(e.dashed) && (this.line.material.setDashed(e.dashed), this.backLine.material.setDashed(e.dashed)), s(e.occlusionVisibility) && (this.backLine.visible = e.occlusionVisibility), this.needsRender = !0;
98
+ }
99
+ highlight() {
100
+ this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.line.material.opacity, this.line.material.opacity = this.opacityBeforeHighlight * L, this.backLine.material.opacity = this.backLine.material.opacity * L, this.needsRender = !0);
101
+ }
102
+ unhighlight() {
103
+ this.highlighted && (this.highlighted = !1, this.line.material.opacity = this.opacityBeforeHighlight, this.backLine.material.opacity = 0.2, this.needsRender = !0);
104
+ }
105
+ }
106
+ export {
107
+ P as LineMesh
108
+ };
@@ -0,0 +1,30 @@
1
+ import { type AnyPositions } from '../../shared-utils/positionToVector3';
2
+ import { PointMesh } from './Point';
3
+ import { LineMesh, type LineMeshStyle } from './Line';
4
+ import { IObject3D } from '../../shared-utils/three/IObject3D';
5
+ import type { PointsData } from '../utils/data';
6
+ type Style = LineMeshStyle & {
7
+ pointVisibility?: boolean | {
8
+ startPoint?: boolean;
9
+ endPoint?: boolean;
10
+ };
11
+ };
12
+ /**
13
+ * Represents a mesh that consists of a line with dots at the start and end points.
14
+ */
15
+ export declare class LineWithDotsMesh extends LineMesh {
16
+ name: string;
17
+ pointGroup: IObject3D;
18
+ style: Style;
19
+ get startPoint(): PointMesh;
20
+ get endPoint(): PointMesh;
21
+ get visiblePointMeshes(): PointMesh[];
22
+ get pointMeshes(): PointMesh[];
23
+ constructor(params?: Partial<Style & PointsData>);
24
+ setPoints(points: AnyPositions): void;
25
+ setStyle: (style: Partial<Style>) => void;
26
+ highlight: () => void;
27
+ unhighlight: () => void;
28
+ private updateEdgePointsVisibility;
29
+ }
30
+ export {};
@@ -0,0 +1,70 @@
1
+ var f = Object.defineProperty, g = Object.defineProperties;
2
+ var c = Object.getOwnPropertyDescriptors;
3
+ var y = Object.getOwnPropertySymbols;
4
+ var b = Object.prototype.hasOwnProperty, P = Object.prototype.propertyIsEnumerable;
5
+ var n = (s, i, t) => i in s ? f(s, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[i] = t, o = (s, i) => {
6
+ for (var t in i || (i = {}))
7
+ b.call(i, t) && n(s, t, i[t]);
8
+ if (y)
9
+ for (var t of y(i))
10
+ P.call(i, t) && n(s, t, i[t]);
11
+ return s;
12
+ }, r = (s, i) => g(s, c(i));
13
+ var e = (s, i, t) => (n(s, typeof i != "symbol" ? i + "" : i, t), t);
14
+ import { anyPositionToVector3 as M } from "../../shared-utils/positionToVector3.js";
15
+ import { PointMesh as m } from "./Point.js";
16
+ import "hammerjs";
17
+ import "three";
18
+ import "@realsee/five";
19
+ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
20
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
21
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
22
+ import { notNil as u } from "../../shared-utils/isNil.js";
23
+ import { LineMesh as V } from "./Line.js";
24
+ import { IObject3D as E } from "../../shared-utils/three/IObject3D.js";
25
+ class R extends V {
26
+ constructor(t) {
27
+ super();
28
+ e(this, "name", "LineWithDotsMesh");
29
+ e(this, "pointGroup", new E());
30
+ e(this, "style");
31
+ e(this, "setStyle", (t) => {
32
+ super.setStyle(t), this.style = o(o({}, this.style), t), this.pointMeshes.forEach((h) => h.setStyle(r(o({}, this.style), { color: t.lineColor }))), this.updateEdgePointsVisibility(), this.needsRender = !0;
33
+ });
34
+ e(this, "highlight", () => {
35
+ super.highlight(), this.pointMeshes.forEach((t) => t.highlight());
36
+ });
37
+ e(this, "unhighlight", () => {
38
+ super.unhighlight(), this.pointMeshes.forEach((t) => t.unhighlight());
39
+ });
40
+ e(this, "updateEdgePointsVisibility", () => {
41
+ var t;
42
+ u((t = this.style) == null ? void 0 : t.pointVisibility) && (this.startPoint && (this.startPoint.visible = typeof this.style.pointVisibility == "object" ? this.style.pointVisibility.startPoint : this.style.pointVisibility), this.endPoint && (this.endPoint.visible = typeof this.style.pointVisibility == "object" ? this.style.pointVisibility.endPoint : this.style.pointVisibility));
43
+ });
44
+ this.add(this.pointGroup), t && this.setStyle(t), t != null && t.points && this.setPoints(t.points);
45
+ }
46
+ get startPoint() {
47
+ return this.pointMeshes[0];
48
+ }
49
+ get endPoint() {
50
+ return this.pointMeshes.length < 2 ? null : this.pointMeshes.at(-1);
51
+ }
52
+ get visiblePointMeshes() {
53
+ return this.pointMeshes.filter((t) => t.visible);
54
+ }
55
+ get pointMeshes() {
56
+ return this.pointGroup.children;
57
+ }
58
+ setPoints(t) {
59
+ super.setPoints(t);
60
+ const h = t.map(M).filter(u);
61
+ this.pointGroup.removeChildren(), this.addIfNotExists(this.pointGroup), h.forEach((d) => {
62
+ var p;
63
+ const l = new m(r(o({}, this.style), { color: (p = this.style) == null ? void 0 : p.lineColor }));
64
+ l.position.copy(d), this.pointGroup.add(l);
65
+ }), this.updateEdgePointsVisibility(), this.needsRender = !0;
66
+ }
67
+ }
68
+ export {
69
+ R as LineWithDotsMesh
70
+ };
@@ -0,0 +1,22 @@
1
+ import * as THREE from 'three';
2
+ import { type ColorStyle, type OcclusionStyle } from '../utils/color';
3
+ import { IObject3D } from '../../shared-utils/three/IObject3D';
4
+ import type { PointData } from '../utils/data';
5
+ export type { PointData } from '../utils/data';
6
+ export declare const circleImageURL: string;
7
+ export type PointStyle = ColorStyle & {
8
+ size: number;
9
+ } & OcclusionStyle;
10
+ export declare class PointMesh extends IObject3D {
11
+ name: string;
12
+ get color(): THREE.Color;
13
+ get size(): number;
14
+ private opacityBeforeHighlight;
15
+ private highlighted;
16
+ private fontMesh;
17
+ private backgroundMesh;
18
+ constructor(params?: Partial<PointStyle & PointData>);
19
+ setStyle(params: Partial<PointStyle>): void;
20
+ highlight(): void;
21
+ unhighlight(): void;
22
+ }
@@ -0,0 +1,74 @@
1
+ var C = Object.defineProperty, N = Object.defineProperties;
2
+ var P = Object.getOwnPropertyDescriptors;
3
+ var a = Object.getOwnPropertySymbols;
4
+ var B = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
5
+ var c = (e, i, t) => i in e ? C(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, g = (e, i) => {
6
+ for (var t in i || (i = {}))
7
+ B.call(i, t) && c(e, t, i[t]);
8
+ if (a)
9
+ for (var t of a(i))
10
+ b.call(i, t) && c(e, t, i[t]);
11
+ return e;
12
+ }, u = (e, i) => N(e, P(i));
13
+ var A = (e, i, t) => (c(e, typeof i != "symbol" ? i + "" : i, t), t);
14
+ import * as o from "three";
15
+ import { DEFAULT_HIGHLIGHT_OPACITY as k } from "../utils/color.js";
16
+ import { IObject3D as E } from "../../shared-utils/three/IObject3D.js";
17
+ import { anyPositionToVector3 as F } from "../../shared-utils/positionToVector3.js";
18
+ import "hammerjs";
19
+ import "@realsee/five";
20
+ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
21
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
22
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
23
+ import { notNil as l } from "../../shared-utils/isNil.js";
24
+ const I = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sHDgwCEMBJZu0AAAAdaVRYdENvbW1lbnQAAAAAAENyZWF0ZWQgd2l0aCBHSU1QZC5lBwAABM5JREFUWMO1V0tPG2cUPZ4Hxh6DazIOrjFNqJs0FIMqWFgWQkatsmvVbtggKlSVRVf5AWz4AWz4AUSKEChll19QJYSXkECuhFxsHjEhxCYm+DWGMZ5HF72DJq4bAzFXurI0M/I5997v3u9cC65vTJVn2lX/xHINQOYSBLTLEuIuCWw4Z3IGAEvf6ASmVHjNzHCXBG4A0AjACsAOwEbO0nsFQBnAGYASAIl+ZRMR7SolMEdsByD09fV5R0ZGgg8ePPjW5/N1iqLYpuu6RZblciKR2I9Go69evnwZnZ+fjwI4IS8AKBIRzeQfJWCANwKwh0KhtrGxsYehUOin1tbW+zzP23ietzY2NnIAoGmaLsuyUiqVyvl8XtrY2NiamZn589mzZxsAUgCOAeQAnFI2tI+VxIjaAeDzoaGh7xYWFuZOTk6OZVk+12uYqqq6JEnn0Wg0OT4+/geAXwGEAdwDIFJQXC1wO4DWR48e/RCPxxclSSroVzRFUbSDg4P848ePFwH8DuAhkWih83TRQWxFOXgAwvDwcOfo6OhvXV1d39tsNtuVBwTDWBwOh1UUxVsMw1hXVlbSdCgNV43uYSvrHg6H24aHh38eHBz85TrgF9FYLHA4HLzH43FvbW2d7u/vG+dANp8FpqIlbd3d3V8Fg8EfBUFw4BONZVmL3+9vHhkZCQL4AoAHgJPK8G+yzC0XDofdoVAo5PP5vkadTBAEtr+/39ff3x8gAp/RPOEqx2qjx+NpvXv3bk9DQ0NDvQgwDIOWlhZrMBj8kgi0UJdxRgYMArzL5XJ7vd57qLPZ7Xamp6fnNgBXtQxcjFuHw+Hyer3t9SYgCAITCAScAJoBNNEY/08GOFVVrfVMv7kMNDntFD1vjIAPrlRN0xjckOm6biFQ3jwNPwDMZrOnqVTqfb3Bi8Wivru7W/VCYkwPlKOjo0IikXh7EwQikYgE4Nw0CfXKDCipVCoTj8df3QABbW1tLUc6oUgkFPMkVACUNjc337148eKvw8PDbJ2jP1taWkoCyNDVXDSECmNSK4qiKNLq6urW8+fPI/UicHx8rD59+jSVy+WOAKSJhKENwFItLtoxk8mwsixzHR0dHe3t7c5PAU+n09rs7OzJkydPYqVSaQfANoDXALIk31S2smU1TWMPDg7K5XKZ7+3t9TudTut1U7+wsFCcmJiIpdPpbQBxADsAknQWymYCOukBHYCuKApisdhpMpnURFEU79y503TVyKenpzOTk5M7e3t7MQKPV0Zv1gNm+awB0MvlshqLxfLb29uyJElWURSbXC4XXyvqxcXFs6mpqeTc3Nzu3t7e3wQcA7BPZ8Cov1pNlJplmQtAG8MwHV6v95tAINA5MDBwPxAIuLu6upr8fr/VAN3c3JQjkcjZ+vp6fnl5+d2bN29SuVzuNYAEpf01CdRChUL+X1VskHACuA3Ay3Fcu9vt7nA6nZ7m5uYWQRCaNE3jVVW15PP580KhIGUymWw2m00DOAJwSP4WwPtq4LX2Ao6USxNlQyS/RcQcdLGwlNIz6vEMAaZpNzCk2Pll94LK/cDYimxERiBwG10sxjgvEZBE0UpE6vxj+0Ct5bTaXthgEhRmja8QWNkkPGsuIpfdjpkK+cZUWTC0KredVmtD/gdlSl6EG4AMvQAAAABJRU5ErkJggg==";
25
+ let w = null;
26
+ class O extends E {
27
+ constructor(t) {
28
+ var f, V;
29
+ super();
30
+ A(this, "name", "PointMesh");
31
+ A(this, "opacityBeforeHighlight");
32
+ A(this, "highlighted", !1);
33
+ A(this, "fontMesh");
34
+ A(this, "backgroundMesh");
35
+ const r = new o.BufferGeometry();
36
+ r.setAttribute("position", new o.Float32BufferAttribute([0, 0, 0], 3));
37
+ const d = {
38
+ transparent: !0,
39
+ side: o.DoubleSide,
40
+ size: (f = t == null ? void 0 : t.size) != null ? f : 8,
41
+ map: w || (w = new o.TextureLoader().load(I)),
42
+ sizeAttenuation: !1
43
+ }, n = new o.PointsMaterial(u(g({}, d), {
44
+ color: (V = t == null ? void 0 : t.color) != null ? V : 16777215,
45
+ depthTest: !0,
46
+ opacity: 1
47
+ })), M = new o.PointsMaterial(u(g({}, d), {
48
+ size: n.size,
49
+ color: n.color,
50
+ depthWrite: !1,
51
+ depthTest: !1,
52
+ opacity: 0.5
53
+ })), s = new o.Points(r, n), h = new o.Points(r, M);
54
+ this.fontMesh = s, this.backgroundMesh = h, s.name = "FontMesh", h.name = "BackgroundMesh", s.renderOrder = 10, h.renderOrder = 0, this.add(s, h), t != null && t.point && this.position.copy(F(t.point)), l(t.occlusionVisibility) && (this.backgroundMesh.visible = t.occlusionVisibility);
55
+ }
56
+ get color() {
57
+ return this.fontMesh.material.color;
58
+ }
59
+ get size() {
60
+ return this.fontMesh.material.size;
61
+ }
62
+ setStyle(t) {
63
+ l(t.color) && (this.fontMesh.material.setValues({ color: t.color }), this.backgroundMesh.material.setValues({ color: t.color })), l(t.size) && (this.fontMesh.material.setValues({ side: t.size }), this.backgroundMesh.material.setValues({ side: t.size })), l(t.occlusionVisibility) && (this.backgroundMesh.visible = t.occlusionVisibility);
64
+ }
65
+ highlight() {
66
+ this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.fontMesh.material.opacity, this.fontMesh.material.setValues({ opacity: this.opacityBeforeHighlight * k }));
67
+ }
68
+ unhighlight() {
69
+ this.highlighted && (this.highlighted = !1, this.fontMesh.material.setValues({ opacity: this.opacityBeforeHighlight }));
70
+ }
71
+ }
72
+ export {
73
+ O as PointMesh
74
+ };
@@ -0,0 +1,31 @@
1
+ import * as THREE from 'three';
2
+ import { type AnyPositions } from '../../shared-utils/positionToVector3';
3
+ import ColoredMesh, { type ColoredMeshStyle } from '../utils/three/ColoredMesh';
4
+ import type { PointsData } from '../utils/data';
5
+ export declare const blankGeometry: THREE.BufferGeometry & {
6
+ isBlank: true;
7
+ };
8
+ export type PolygonStyle = ColoredMeshStyle;
9
+ export type PolygonData = PointsData;
10
+ export default class PolygonMesh extends ColoredMesh<THREE.BufferGeometry> {
11
+ name: string;
12
+ get isBlank(): boolean;
13
+ points: THREE.Vector3[];
14
+ planeHelperNeedUpdate: boolean;
15
+ private planeHelper;
16
+ private opacityBeforeHighlight;
17
+ private highlighted;
18
+ constructor(params?: Partial<PolygonStyle & PolygonData>);
19
+ setPoints(points: AnyPositions): void;
20
+ getGeometryInfo(): {
21
+ center: THREE.Vector3;
22
+ area: number;
23
+ };
24
+ /**
25
+ * @description: 获取一个点投影在当前平面上的点
26
+ */
27
+ projectPoint(point: THREE.Vector3): THREE.Vector3;
28
+ highlight(): void;
29
+ unhighlight(): void;
30
+ private updatePlaneHelper;
31
+ }
@@ -0,0 +1,52 @@
1
+ var n = Object.defineProperty;
2
+ var l = (o, t, e) => t in o ? n(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
3
+ var i = (o, t, e) => (l(o, typeof t != "symbol" ? t + "" : t, e), e);
4
+ import * as r from "three";
5
+ import { generatePolygonGeometry as p } from "../../shared-utils/three/generatePolygonGeometry.js";
6
+ import { DEFAULT_HIGHLIGHT_OPACITY as a } from "../utils/color.js";
7
+ import { anyPositionToVector3 as g } from "../../shared-utils/positionToVector3.js";
8
+ import { ColoredMesh as f } from "../utils/three/ColoredMesh.js";
9
+ import { getGeometryInfo as y } from "../../shared-utils/three/geometryUtil.js";
10
+ const h = new r.BufferGeometry();
11
+ h.name = "blankGeometry";
12
+ h.isBlank = !0;
13
+ class B extends f {
14
+ constructor(e) {
15
+ super(e);
16
+ i(this, "name", "PolygonMesh");
17
+ i(this, "points", []);
18
+ i(this, "planeHelperNeedUpdate", !0);
19
+ i(this, "planeHelper", null);
20
+ i(this, "opacityBeforeHighlight");
21
+ i(this, "highlighted", !1);
22
+ e != null && e.points && this.setPoints(e.points);
23
+ }
24
+ get isBlank() {
25
+ return !!this.geometry.isBlank;
26
+ }
27
+ setPoints(e) {
28
+ var s;
29
+ this.points = e.map(g), this.geometry = (s = p(this.points)) != null ? s : h, this.planeHelperNeedUpdate = !0;
30
+ }
31
+ getGeometryInfo() {
32
+ return y(this.geometry);
33
+ }
34
+ /**
35
+ * @description: 获取一个点投影在当前平面上的点
36
+ */
37
+ projectPoint(e) {
38
+ return e && (this.planeHelperNeedUpdate && this.updatePlaneHelper(), this.planeHelper ? this.planeHelper.projectPoint(e, new r.Vector3()) : e);
39
+ }
40
+ highlight() {
41
+ this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.opacity, this.setStyle({ opacity: this.opacity * a }), this.needsRender = !0);
42
+ }
43
+ unhighlight() {
44
+ this.highlighted && (this.highlighted = !1, this.setStyle({ opacity: this.opacityBeforeHighlight }), this.needsRender = !0);
45
+ }
46
+ updatePlaneHelper() {
47
+ this.points.length >= 3 ? this.planeHelper = new r.Plane().setFromCoplanarPoints(this.points[0], this.points[1], this.points[2]) : this.planeHelper = null, this.planeHelperNeedUpdate = !1;
48
+ }
49
+ }
50
+ export {
51
+ B as PolygonMesh
52
+ };
@@ -0,0 +1,34 @@
1
+ import { type AnyPositions } from '../../shared-utils/positionToVector3';
2
+ import { IObject3D } from '../../shared-utils/three/IObject3D';
3
+ import { LineWithDotsMesh } from './LineWithDots';
4
+ import { LineMesh, type LineMeshStyle } from './Line';
5
+ import type { PointsData } from '../utils/data';
6
+ import * as THREE from 'three';
7
+ export type PolylineStyle = LineMeshStyle;
8
+ export type PolylineData = PointsData;
9
+ export declare abstract class PolylineBaseMesh<WithDots extends boolean = true> extends IObject3D {
10
+ name: string;
11
+ get lineColor(): THREE.Color;
12
+ get lineWidth(): number;
13
+ get dashed(): boolean;
14
+ get occlusionVisibility(): boolean;
15
+ get points(): THREE.Vector3[];
16
+ lines: Array<WithDots extends true ? LineWithDotsMesh : LineMesh>;
17
+ private withDots;
18
+ private paramsStyle;
19
+ constructor(params?: Partial<PolylineStyle & PolylineData & {
20
+ withDots: WithDots extends true ? true : false;
21
+ }>);
22
+ setPoints(points: AnyPositions): void;
23
+ setStyle(style: Partial<PolylineStyle>): void;
24
+ highlight(): void;
25
+ unhighlight(): void;
26
+ }
27
+ export declare class PolylineMesh extends PolylineBaseMesh<false> {
28
+ name: string;
29
+ constructor(...params: ConstructorParameters<typeof PolylineBaseMesh>);
30
+ }
31
+ export declare class PolylineWithDotsMesh extends PolylineBaseMesh<true> {
32
+ name: string;
33
+ constructor(...params: ConstructorParameters<typeof PolylineBaseMesh>);
34
+ }
@@ -0,0 +1,105 @@
1
+ var C = Object.defineProperty, E = Object.defineProperties;
2
+ var v = Object.getOwnPropertyDescriptors;
3
+ var r = Object.getOwnPropertySymbols;
4
+ var D = Object.prototype.hasOwnProperty, M = Object.prototype.propertyIsEnumerable;
5
+ var y = (s, e, i) => e in s ? C(s, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[e] = i, a = (s, e) => {
6
+ for (var i in e || (e = {}))
7
+ D.call(e, i) && y(s, i, e[i]);
8
+ if (r)
9
+ for (var i of r(e))
10
+ M.call(e, i) && y(s, i, e[i]);
11
+ return s;
12
+ }, c = (s, e) => E(s, v(e));
13
+ var V = (s, e) => {
14
+ var i = {};
15
+ for (var t in s)
16
+ D.call(s, t) && e.indexOf(t) < 0 && (i[t] = s[t]);
17
+ if (s != null && r)
18
+ for (var t of r(s))
19
+ e.indexOf(t) < 0 && M.call(s, t) && (i[t] = s[t]);
20
+ return i;
21
+ };
22
+ var l = (s, e, i) => (y(s, typeof e != "symbol" ? e + "" : e, i), i);
23
+ import { anyPositionToVector3 as x } from "../../shared-utils/positionToVector3.js";
24
+ import { IObject3D as B } from "../../shared-utils/three/IObject3D.js";
25
+ import "hammerjs";
26
+ import * as L from "three";
27
+ import "@realsee/five";
28
+ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
29
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
30
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
31
+ import { notNil as T } from "../../shared-utils/isNil.js";
32
+ import { LineWithDotsMesh as j } from "./LineWithDots.js";
33
+ import { LineMesh as F } from "./Line.js";
34
+ class w extends B {
35
+ constructor(i) {
36
+ super();
37
+ l(this, "name", "PolylineBaseMesh");
38
+ l(this, "lines", []);
39
+ l(this, "withDots");
40
+ l(this, "paramsStyle");
41
+ const h = i, { withDots: t, points: o } = h, n = V(h, ["withDots", "points"]);
42
+ this.withDots = t != null ? t : !0, o && this.setPoints(o), n && this.setStyle(n);
43
+ }
44
+ get lineColor() {
45
+ var i, t, o;
46
+ return (o = (i = this.lines[0]) == null ? void 0 : i.color) != null ? o : (t = this.paramsStyle) != null && t.lineColor ? new L.Color(this.paramsStyle.lineColor) : void 0;
47
+ }
48
+ get lineWidth() {
49
+ var i, t, o;
50
+ return (o = (i = this.lines[0]) == null ? void 0 : i.lineWidth) != null ? o : (t = this.paramsStyle) == null ? void 0 : t.lineWidth;
51
+ }
52
+ get dashed() {
53
+ var i, t, o;
54
+ return (o = (i = this.lines[0]) == null ? void 0 : i.dashed) != null ? o : (t = this.paramsStyle) == null ? void 0 : t.dashed;
55
+ }
56
+ get occlusionVisibility() {
57
+ var i, t, o;
58
+ return (o = (i = this.lines[0]) == null ? void 0 : i.occlusionVisibility) != null ? o : (t = this.paramsStyle) == null ? void 0 : t.occlusionVisibility;
59
+ }
60
+ get points() {
61
+ var i;
62
+ return this.lines.map((t) => t.points[0]).concat((i = this.lines.at(-1)) == null ? void 0 : i.points[1]).filter(Boolean);
63
+ }
64
+ setPoints(i) {
65
+ var n, h, u, d, f, g, P, S;
66
+ const t = i.map(x), o = {
67
+ lineWidth: (h = (n = this.paramsStyle) == null ? void 0 : n.lineWidth) != null ? h : this.lineWidth,
68
+ lineColor: (d = (u = this.paramsStyle) == null ? void 0 : u.lineColor) != null ? d : this.lineColor,
69
+ dashed: (g = (f = this.paramsStyle) == null ? void 0 : f.dashed) != null ? g : this.dashed,
70
+ occlusionVisibility: (S = (P = this.paramsStyle) == null ? void 0 : P.occlusionVisibility) != null ? S : this.occlusionVisibility
71
+ };
72
+ this.lines.length && this.lines.forEach((m) => m.removeFromParent()), this.lines = t.map((m, p) => {
73
+ const W = t[p + 1];
74
+ if (p !== 0 && W === void 0)
75
+ return null;
76
+ const b = this.withDots ? new j(c(a({}, o), { pointVisibility: { startPoint: p === 0, endPoint: !0 } })) : new F(o);
77
+ return b.setPoints([m, W]), b;
78
+ }).filter(T), this.add(...this.lines);
79
+ }
80
+ setStyle(i) {
81
+ this.paramsStyle = i, this.lines.forEach((t) => t.setStyle(i));
82
+ }
83
+ highlight() {
84
+ this.lines.forEach((i) => i.highlight());
85
+ }
86
+ unhighlight() {
87
+ this.lines.forEach((i) => i.unhighlight());
88
+ }
89
+ }
90
+ class K extends w {
91
+ constructor(...i) {
92
+ super(c(a({}, i[0]), { withDots: !1 }));
93
+ l(this, "name", "PolylineMesh");
94
+ }
95
+ }
96
+ class Q extends w {
97
+ constructor(...i) {
98
+ super(c(a({}, i[0]), { withDots: !0 }));
99
+ l(this, "name", "PolylineWithDotsMesh");
100
+ }
101
+ }
102
+ export {
103
+ K as PolylineMesh,
104
+ Q as PolylineWithDotsMesh
105
+ };