@realsee/dnalogel 3.64.8 → 3.64.9-alpha.1

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 (443) hide show
  1. package/dist/MeasurePlugin/Controller.d.ts +1 -0
  2. package/dist/Sculpt/utils/renderDom.d.ts +1 -1
  3. package/dist/index.cjs.js +18 -18
  4. package/dist/index.js +323 -301
  5. package/dist/index.umd.js +18 -18
  6. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +2 -2
  7. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +2 -2
  8. package/docs/classes/CSS3DRender.html +2 -2
  9. package/docs/classes/GuideLineItem.GuideLineItem.html +2 -2
  10. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +2 -2
  11. package/docs/classes/ModelMakerPluginInstance.html +2 -2
  12. package/docs/classes/ModelRoomLabelController.html +2 -2
  13. package/docs/classes/MoveController.html +2 -2
  14. package/docs/classes/Object3DHelperController.html +2 -2
  15. package/docs/classes/PaintBrush.html +2 -2
  16. package/docs/classes/PanoMeasurePluginLine.html +2 -2
  17. package/docs/classes/PanoMeasurePluginModel.html +2 -2
  18. package/docs/classes/PanoMeasurePluginPoint.html +2 -2
  19. package/docs/classes/PanoMeasurePluginPolyline.html +2 -2
  20. package/docs/classes/PanoTagPluginController.html +2 -2
  21. package/docs/classes/Sculpt.html +2 -2
  22. package/docs/classes/Util.BetterTween.html +2 -2
  23. package/docs/classes/Util.FiveDomEvents.html +2 -2
  24. package/docs/classes/Util.FivePuppet.html +2 -2
  25. package/docs/classes/Util.Interval.html +2 -2
  26. package/docs/classes/Util.LightTag.html +2 -2
  27. package/docs/classes/Util.LineSegments.html +2 -2
  28. package/docs/classes/Util.Magnifier.html +2 -2
  29. package/docs/classes/Util.Object3D.html +2 -2
  30. package/docs/classes/Util.PointHelper.html +2 -2
  31. package/docs/classes/Util.PointSelector.html +2 -2
  32. package/docs/classes/Util.PointSelectorHelper.html +2 -2
  33. package/docs/classes/Util.Rectangle.html +2 -2
  34. package/docs/classes/Util.sculpt.BaseEditor.html +2 -2
  35. package/docs/classes/Util.sculpt.BoxMesh.html +2 -2
  36. package/docs/classes/Util.sculpt.BoxMeshEditor.html +2 -2
  37. package/docs/classes/Util.sculpt.CircleMesh.html +2 -2
  38. package/docs/classes/Util.sculpt.CircleMeshEditor.html +2 -2
  39. package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +2 -2
  40. package/docs/classes/Util.sculpt.CylinderMesh.html +2 -2
  41. package/docs/classes/Util.sculpt.CylinderMeshEditor.html +2 -2
  42. package/docs/classes/Util.sculpt.LineMesh.html +5 -5
  43. package/docs/classes/Util.sculpt.PointMesh.html +2 -2
  44. package/docs/classes/Util.sculpt.PolygonMesh.html +2 -2
  45. package/docs/classes/Util.sculpt.PrismMesh.html +2 -2
  46. package/docs/classes/Util.sculpt.PrismMeshEditor.html +2 -2
  47. package/docs/classes/Util.sculpt.RectangleMesh.html +2 -2
  48. package/docs/classes/Util.sculpt.RectangleMeshEditor.html +2 -2
  49. package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +2 -2
  50. package/docs/classes/WalkController.html +2 -2
  51. package/docs/enums/CameraMovementEffect.html +2 -2
  52. package/docs/enums/ContentType.html +2 -2
  53. package/docs/enums/DIRECTION.html +2 -2
  54. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
  55. package/docs/enums/DimensionType.html +2 -2
  56. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
  57. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
  58. package/docs/enums/PaintBrushTypeEnum.html +2 -2
  59. package/docs/enums/PointType.html +2 -2
  60. package/docs/enums/Rotation.html +2 -2
  61. package/docs/functions/AreaMakerPlugin.html +1 -1
  62. package/docs/functions/CSS3DRenderPlugin.html +1 -1
  63. package/docs/functions/CameraMovementPlugin.html +2 -2
  64. package/docs/functions/CruisePlugin.html +1 -1
  65. package/docs/functions/CurrentPanoImagePlugin.html +1 -1
  66. package/docs/functions/GuideLinePlugin.html +1 -1
  67. package/docs/functions/ItemLabelPlugin.html +1 -1
  68. package/docs/functions/MapviewFloorplanPlugin.html +1 -1
  69. package/docs/functions/MeasurePlugin.html +1 -1
  70. package/docs/functions/ModelChassisCompassPlugin.html +2 -2
  71. package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
  72. package/docs/functions/ModelFloorplanPlugin.html +1 -1
  73. package/docs/functions/ModelItemLabelPlugin.html +1 -1
  74. package/docs/functions/ModelMakerPlugin.html +1 -1
  75. package/docs/functions/ModelRoomLabelPlugin.html +1 -1
  76. package/docs/functions/ModelTVVideoPlugin.html +1 -1
  77. package/docs/functions/ModelViewPlugin.html +2 -2
  78. package/docs/functions/MovePlugin.html +1 -1
  79. package/docs/functions/Object3DHelperPlugin.html +1 -1
  80. package/docs/functions/PanoCompassPlugin.html +1 -1
  81. package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
  82. package/docs/functions/PanoDoorLabelPlugin.html +1 -1
  83. package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
  84. package/docs/functions/PanoMeasurePlugin.html +1 -1
  85. package/docs/functions/PanoRulerPlugin.html +2 -2
  86. package/docs/functions/PanoRulerProPlugin.html +2 -2
  87. package/docs/functions/PanoSpatialTagPlugin.html +2 -2
  88. package/docs/functions/PanoTagPlugin.html +1 -1
  89. package/docs/functions/PanoVideoPlugin.html +2 -2
  90. package/docs/functions/PipelinePlugin.html +1 -1
  91. package/docs/functions/SculptPlugin.html +2 -2
  92. package/docs/functions/TopviewFloorplanPlugin.html +1 -1
  93. package/docs/functions/Util.absoluteUrl.html +2 -2
  94. package/docs/functions/Util.awaitNextFrame.html +1 -1
  95. package/docs/functions/Util.blink.html +2 -2
  96. package/docs/functions/Util.bounding.html +1 -1
  97. package/docs/functions/Util.boundingBox.html +1 -1
  98. package/docs/functions/Util.boundingSphere.html +1 -1
  99. package/docs/functions/Util.boxVertex.html +2 -2
  100. package/docs/functions/Util.boxVertexes.html +1 -1
  101. package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
  102. package/docs/functions/Util.convexHull.html +2 -2
  103. package/docs/functions/Util.equal.html +2 -2
  104. package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
  105. package/docs/functions/Util.getCoordsFromClient.html +1 -1
  106. package/docs/functions/Util.getCoordsFromElement.html +1 -1
  107. package/docs/functions/Util.getFrameTime.html +2 -2
  108. package/docs/functions/Util.initialCSS3DRender.html +1 -1
  109. package/docs/functions/Util.inside.html +1 -1
  110. package/docs/functions/Util.isAbsoluteURL.html +1 -1
  111. package/docs/functions/Util.isModelLike.html +1 -1
  112. package/docs/functions/Util.isNil.html +2 -2
  113. package/docs/functions/Util.isPanoramaLike.html +1 -1
  114. package/docs/functions/Util.lookObject.html +2 -2
  115. package/docs/functions/Util.lookPoint.html +2 -2
  116. package/docs/functions/Util.nextFrame.html +1 -1
  117. package/docs/functions/Util.notNil.html +2 -2
  118. package/docs/functions/Util.reblink.html +2 -2
  119. package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
  120. package/docs/functions/Util.sculpt.createBox.html +1 -1
  121. package/docs/functions/Util.sculpt.createCircle.html +1 -1
  122. package/docs/functions/Util.sculpt.createCylinder.html +1 -1
  123. package/docs/functions/Util.sculpt.createLine.html +2 -2
  124. package/docs/functions/Util.sculpt.createPoint.html +1 -1
  125. package/docs/functions/Util.sculpt.createPolygon.html +1 -1
  126. package/docs/functions/Util.sculpt.createPrism.html +1 -1
  127. package/docs/functions/Util.sculpt.createRectangle.html +2 -2
  128. package/docs/functions/Util.tag.html +1 -1
  129. package/docs/functions/Util.tweenProgress.html +1 -1
  130. package/docs/functions/Util.uuid.html +2 -2
  131. package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
  132. package/docs/functions/Util.worldBounding.html +1 -1
  133. package/docs/functions/Util.worldBoundingBox.html +1 -1
  134. package/docs/functions/Util.worldBoundingSphere.html +1 -1
  135. package/docs/functions/createPolyline.html +2 -2
  136. package/docs/functions/pluginFlag.html +1 -1
  137. package/docs/hierarchy.html +1 -1
  138. package/docs/index.html +2 -2
  139. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +2 -2
  140. package/docs/interfaces/AreaMakerPluginType.Config.html +2 -2
  141. package/docs/interfaces/AreaMakerPluginType.EventMap.html +2 -2
  142. package/docs/interfaces/AreaMakerPluginType.Params.html +2 -2
  143. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +2 -2
  144. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +2 -2
  145. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +2 -2
  146. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +2 -2
  147. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
  148. package/docs/interfaces/AreaMakerPluginType.State.html +2 -2
  149. package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
  150. package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
  151. package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
  152. package/docs/interfaces/ContentTypeMapInterface.html +2 -2
  153. package/docs/interfaces/CruisePluginTypes.Config.html +2 -2
  154. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
  155. package/docs/interfaces/CruisePluginTypes.EventMap.html +2 -2
  156. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +2 -2
  157. package/docs/interfaces/CruisePluginTypes.MoveAction.html +2 -2
  158. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +2 -2
  159. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +2 -2
  160. package/docs/interfaces/CruisePluginTypes.PluginData.html +2 -2
  161. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
  162. package/docs/interfaces/CruisePluginTypes.PluginState.html +2 -2
  163. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +2 -2
  164. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +2 -2
  165. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +2 -2
  166. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
  167. package/docs/interfaces/CurrentPanoImagePluginType.State.html +2 -2
  168. package/docs/interfaces/FloorplanBounding.html +2 -2
  169. package/docs/interfaces/FloorplanData.html +2 -2
  170. package/docs/interfaces/FloorplanEntrance.html +2 -2
  171. package/docs/interfaces/FloorplanExtraObject.html +2 -2
  172. package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
  173. package/docs/interfaces/FloorplanFloorData.html +2 -2
  174. package/docs/interfaces/FloorplanImagePosition.html +2 -2
  175. package/docs/interfaces/FloorplanObserver.html +2 -2
  176. package/docs/interfaces/FloorplanOutlineItem.html +2 -2
  177. package/docs/interfaces/FloorplanPosition.html +2 -2
  178. package/docs/interfaces/FloorplanRoomItem.html +2 -2
  179. package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
  180. package/docs/interfaces/FloorplanServerBounding.html +2 -2
  181. package/docs/interfaces/FloorplanServerComputedData.html +2 -2
  182. package/docs/interfaces/FloorplanServerData.html +2 -2
  183. package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
  184. package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
  185. package/docs/interfaces/FloorplanServerEntrance.html +2 -2
  186. package/docs/interfaces/FloorplanServerFloorData.html +2 -2
  187. package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
  188. package/docs/interfaces/FloorplanServerObserver.html +2 -2
  189. package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
  190. package/docs/interfaces/FloorplanServerPosition.html +2 -2
  191. package/docs/interfaces/FloorplanServerRoomItem.html +2 -2
  192. package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
  193. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
  194. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +2 -2
  195. package/docs/interfaces/GuideLinePluginType.EventMap.html +2 -2
  196. package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +2 -2
  197. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +2 -2
  198. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
  199. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +2 -2
  200. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +2 -2
  201. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
  202. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +2 -2
  203. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
  204. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +2 -2
  205. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
  206. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
  207. package/docs/interfaces/GuideLinePluginType.PluginState.html +2 -2
  208. package/docs/interfaces/GuideLinePluginType.Route.html +2 -2
  209. package/docs/interfaces/HelperOffset.html +2 -2
  210. package/docs/interfaces/ImagePlaneGroup.html +2 -2
  211. package/docs/interfaces/ItemLabelPluginData.html +2 -2
  212. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
  213. package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
  214. package/docs/interfaces/MinMax.html +2 -2
  215. package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
  216. package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
  217. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
  218. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
  219. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
  220. package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
  221. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
  222. package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
  223. package/docs/interfaces/ModelMakerPluginType.EventMap.html +2 -2
  224. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +2 -2
  225. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +2 -2
  226. package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
  227. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +2 -2
  228. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +2 -2
  229. package/docs/interfaces/ModelMakerPluginType.State.html +2 -2
  230. package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
  231. package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
  232. package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
  233. package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
  234. package/docs/interfaces/ModelViewPluginExportType.html +2 -2
  235. package/docs/interfaces/Object3DHelperState.html +2 -2
  236. package/docs/interfaces/ObjectHelperControllers.html +2 -2
  237. package/docs/interfaces/PaintBrushAction.html +2 -2
  238. package/docs/interfaces/PaintBrushConfigs.html +2 -2
  239. package/docs/interfaces/PaintBrushState.html +2 -2
  240. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +2 -2
  241. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  242. package/docs/interfaces/PanoMeasureParameterType.html +2 -2
  243. package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
  244. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +2 -2
  245. package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
  246. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +2 -2
  247. package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
  248. package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
  249. package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
  250. package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
  251. package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
  252. package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
  253. package/docs/interfaces/PanoRulerProPluginState.html +2 -2
  254. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  255. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  256. package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
  257. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
  258. package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
  259. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
  260. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
  261. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
  262. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
  263. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +2 -2
  264. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +2 -2
  265. package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
  266. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +2 -2
  267. package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
  268. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +2 -2
  269. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +2 -2
  270. package/docs/interfaces/PluginEventMap.html +2 -2
  271. package/docs/interfaces/Point.html +2 -2
  272. package/docs/interfaces/Room.html +2 -2
  273. package/docs/interfaces/RoomInfo.html +2 -2
  274. package/docs/interfaces/RoomLabel.html +2 -2
  275. package/docs/interfaces/RoomRules.html +1 -1
  276. package/docs/interfaces/Rooms.html +1 -1
  277. package/docs/interfaces/Scissor.html +2 -2
  278. package/docs/interfaces/State.html +2 -2
  279. package/docs/interfaces/TagCacheInterface.html +2 -2
  280. package/docs/interfaces/TagConfig.html +2 -2
  281. package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
  282. package/docs/interfaces/TagIconUrl.html +2 -2
  283. package/docs/interfaces/TagObjectGroup.html +2 -2
  284. package/docs/interfaces/TagStyle.html +2 -2
  285. package/docs/interfaces/Tags.html +2 -2
  286. package/docs/interfaces/TemporaryState.html +2 -2
  287. package/docs/interfaces/Util.AnimeInstance.html +2 -2
  288. package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
  289. package/docs/interfaces/Util.EventHandlerConfig.html +2 -2
  290. package/docs/interfaces/Util.FiveDomEvent.html +2 -2
  291. package/docs/interfaces/Util.FiveDomEventMap.html +2 -2
  292. package/docs/interfaces/Util.MagnifierParameter.html +2 -2
  293. package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
  294. package/docs/interfaces/Util.PointIntersection.html +2 -2
  295. package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
  296. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +2 -2
  297. package/docs/modules/AreaMakerPluginType.html +2 -2
  298. package/docs/modules/CruisePluginTypes.html +2 -2
  299. package/docs/modules/CurrentPanoImagePluginType.html +2 -2
  300. package/docs/modules/GuideLineItem.html +2 -2
  301. package/docs/modules/GuideLineModeItem.html +2 -2
  302. package/docs/modules/GuideLinePluginType.html +2 -2
  303. package/docs/modules/ModelMakerPluginType.html +2 -2
  304. package/docs/modules/PanoVideoPluginType.html +2 -2
  305. package/docs/modules/SculptData.html +2 -2
  306. package/docs/modules/SculptType.html +2 -2
  307. package/docs/modules/Util.html +2 -2
  308. package/docs/modules/Util.sculpt.html +2 -2
  309. package/docs/modules.html +2 -2
  310. package/docs/types/AddObject3DHelperConfig.html +2 -2
  311. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
  312. package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
  313. package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
  314. package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
  315. package/docs/types/ArrayPosition.html +1 -1
  316. package/docs/types/AudioAppearance.html +1 -1
  317. package/docs/types/CSS3DRenderExportType.html +1 -1
  318. package/docs/types/CSS3DRenderPluginExportType.html +1 -1
  319. package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
  320. package/docs/types/ClassFunctionParameters.html +1 -1
  321. package/docs/types/Color.html +1 -1
  322. package/docs/types/ContentTypeConfigKey.html +1 -1
  323. package/docs/types/ContentTypeConfigKeySplit.html +1 -1
  324. package/docs/types/ContentTypeMap.html +1 -1
  325. package/docs/types/Create3DDomContainerReturnType.html +1 -1
  326. package/docs/types/Create3DElementReturnType.html +1 -1
  327. package/docs/types/CruisePluginExportType.html +1 -1
  328. package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
  329. package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
  330. package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
  331. package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
  332. package/docs/types/DeprecatedTagProperty.html +2 -2
  333. package/docs/types/Direction-1.html +1 -1
  334. package/docs/types/Direction4.html +1 -1
  335. package/docs/types/ElementRenderer.html +2 -2
  336. package/docs/types/FloorplanRuleLabels.html +2 -2
  337. package/docs/types/FloorplanServerRuleLabels.html +1 -1
  338. package/docs/types/GuideLinePluginExportType.html +1 -1
  339. package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
  340. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
  341. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
  342. package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
  343. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
  344. package/docs/types/GuideLinePluginType.PathItem.html +2 -2
  345. package/docs/types/GuideLinePluginType.PluginData.html +2 -2
  346. package/docs/types/GuideLinePluginType.RouteConfig.html +2 -2
  347. package/docs/types/HelperEventMap.html +1 -1
  348. package/docs/types/InternalHelperEventMap.html +1 -1
  349. package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
  350. package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
  351. package/docs/types/MeasurePluginConfig.html +1 -1
  352. package/docs/types/MediaData.html +2 -2
  353. package/docs/types/MediaStore.html +1 -1
  354. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
  355. package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
  356. package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
  357. package/docs/types/ModelId.html +1 -1
  358. package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
  359. package/docs/types/ModelMakerPluginType.ItemType.html +1 -1
  360. package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
  361. package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
  362. package/docs/types/MoveArgs.html +2 -2
  363. package/docs/types/MoveOpts.html +2 -2
  364. package/docs/types/Object3DHelperEventMap.html +1 -1
  365. package/docs/types/ObjectFit.html +1 -1
  366. package/docs/types/PaintBrushEventMap.html +1 -1
  367. package/docs/types/PanoCompassPluginData.html +1 -1
  368. package/docs/types/PanoCompassPluginExportType.html +1 -1
  369. package/docs/types/PanoCompassPluginParameterType.html +1 -1
  370. package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
  371. package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
  372. package/docs/types/PanoIndex.html +1 -1
  373. package/docs/types/PanoMeasurePluginEvent.html +1 -1
  374. package/docs/types/PanoMeasureReturnType.html +1 -1
  375. package/docs/types/PanoSpatialTagPluginId.html +1 -1
  376. package/docs/types/PanoTagPluginExportInterface.html +1 -1
  377. package/docs/types/PanoTagPluginParamsInterface.html +1 -1
  378. package/docs/types/PanoVideoPluginParameterType.html +1 -1
  379. package/docs/types/PanoVideoPluginReturnType.html +1 -1
  380. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
  381. package/docs/types/PipelinePluginParameterType.html +1 -1
  382. package/docs/types/PipelinePluginReturnType.html +1 -1
  383. package/docs/types/PlaneTag.html +2 -2
  384. package/docs/types/Point2DTag.html +2 -2
  385. package/docs/types/Point3DTag.html +2 -2
  386. package/docs/types/PointTagInstance.html +1 -1
  387. package/docs/types/Position.html +1 -1
  388. package/docs/types/PositionFrom.html +1 -1
  389. package/docs/types/RotateArgs.html +2 -2
  390. package/docs/types/RotateOpts.html +2 -2
  391. package/docs/types/RuleLabelsKey.html +1 -1
  392. package/docs/types/RuleLabelsValue.html +1 -1
  393. package/docs/types/ScaleCallback.html +1 -1
  394. package/docs/types/ScalePosition.html +2 -2
  395. package/docs/types/SculptData.BoxData.html +1 -1
  396. package/docs/types/SculptData.CircleData.html +1 -1
  397. package/docs/types/SculptData.CylinderData.html +1 -1
  398. package/docs/types/SculptData.PointData.html +1 -1
  399. package/docs/types/SculptData.PolygonData.html +1 -1
  400. package/docs/types/SculptData.PolylineData.html +1 -1
  401. package/docs/types/SculptData.PrismData.html +1 -1
  402. package/docs/types/SculptData.RectangleData.html +1 -1
  403. package/docs/types/SculptType.Theme.html +2 -2
  404. package/docs/types/StickType.html +1 -1
  405. package/docs/types/Tag.html +2 -2
  406. package/docs/types/Tag2D.html +2 -2
  407. package/docs/types/Tag3D.html +2 -2
  408. package/docs/types/TagClickParams.html +1 -1
  409. package/docs/types/TagConfigByKey.html +1 -1
  410. package/docs/types/TagContentType.html +1 -1
  411. package/docs/types/TagContentTypeMapping.html +1 -1
  412. package/docs/types/TagDimensionType.html +1 -1
  413. package/docs/types/TagElement.html +2 -2
  414. package/docs/types/TagEvents.html +1 -1
  415. package/docs/types/TagGLTFObject.html +1 -1
  416. package/docs/types/TagHooks.html +1 -1
  417. package/docs/types/TagId.html +1 -1
  418. package/docs/types/TagInstance.html +1 -1
  419. package/docs/types/TagPointType.html +2 -2
  420. package/docs/types/TagRendererMap.html +1 -1
  421. package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
  422. package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
  423. package/docs/types/Util.ActionIfNoIntersection.html +1 -1
  424. package/docs/types/Util.AdherePoint.html +2 -2
  425. package/docs/types/Util.PointSelectorConfig.html +1 -1
  426. package/docs/types/WorkCode.html +1 -1
  427. package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
  428. package/docs/variables/PLUGIN.html +1 -1
  429. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
  430. package/docs/variables/ROOM_TYPE_MAP.html +2 -2
  431. package/docs/variables/Util.animeMap.html +1 -1
  432. package/docs/variables/defaultGlobalConfig.html +1 -1
  433. package/docs/variables/itemLabelPluginServerParams.html +1 -1
  434. package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
  435. package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
  436. package/libs/MeasurePlugin/Controller.d.ts +1 -0
  437. package/libs/MeasurePlugin/Controller.js +122 -102
  438. package/libs/Sculpt/Meshes/Line.js +17 -15
  439. package/libs/Sculpt/utils/renderDom.d.ts +1 -1
  440. package/libs/base/BasePlugin.js +3 -3
  441. package/libs/shared-utils/logger.js +1 -1
  442. package/libs/shared-utils/tag.js +17 -17
  443. package/package.json +1 -1
@@ -1,38 +1,39 @@
1
- var w = Object.defineProperty, _ = Object.defineProperties;
1
+ var D = Object.defineProperty, _ = Object.defineProperties;
2
2
  var L = Object.getOwnPropertyDescriptors;
3
- var b = Object.getOwnPropertySymbols;
3
+ var w = Object.getOwnPropertySymbols;
4
4
  var k = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
5
- var g = (a, s, e) => s in a ? w(a, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[s] = e, f = (a, s) => {
5
+ var E = (c, s, e) => s in c ? D(c, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[s] = e, y = (c, s) => {
6
6
  for (var e in s || (s = {}))
7
- k.call(s, e) && g(a, e, s[e]);
8
- if (b)
9
- for (var e of b(s))
10
- F.call(s, e) && g(a, e, s[e]);
11
- return a;
12
- }, v = (a, s) => _(a, L(s));
13
- var o = (a, s, e) => (g(a, typeof s != "symbol" ? s + "" : s, e), e);
14
- import * as h from "three";
7
+ k.call(s, e) && E(c, e, s[e]);
8
+ if (w)
9
+ for (var e of w(s))
10
+ F.call(s, e) && E(c, e, s[e]);
11
+ return c;
12
+ }, P = (c, s) => _(c, L(s));
13
+ var i = (c, s, e) => (E(c, typeof s != "symbol" ? s + "" : s, e), e);
14
+ import * as a from "three";
15
15
  import "../shared-utils/tag.js";
16
16
  import "../vendor/hammerjs/hammer.js";
17
17
  import { Subscribe as H } from "../shared-utils/Subscribe.js";
18
18
  import { PointSelector as C } from "../shared-utils/three/PointSelector/index.js";
19
19
  import "../shared-utils/three/CSS3DRenderer/index.js";
20
20
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
21
- import { IObject3D as U } from "../shared-utils/three/IObject3D.js";
21
+ import { IObject3D as I } from "../shared-utils/three/IObject3D.js";
22
22
  import "@realsee/five/line";
23
23
  import "../shared-utils/three/core/Five_LineMaterial2.js";
24
24
  import "../shared-utils/three/core/Sphere.js";
25
25
  import "../vendor/animejs/lib/anime.es.js";
26
- import { FiveDomEvents as I } from "../shared-utils/five/FiveDomEvents.js";
26
+ import { FiveDomEvents as x } from "../shared-utils/five/FiveDomEvents.js";
27
27
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
28
28
  import "../shared-utils/five/FivePuppet.js";
29
- import { MeasureMesh as V } from "./utils/MeasureMesh.js";
30
- import { PointMesh as x } from "../Sculpt/Meshes/Point.js";
31
- import { LineWithDotsMesh as M } from "../Sculpt/Meshes/LineWithDots.js";
32
- import { hotkeys as p } from "../vendor/hotkeys-js/dist/hotkeys.esm.js";
33
- import { PolygonMesh as z } from "../Sculpt/Meshes/Polygon.js";
34
- import { validatePolygon as A } from "./utils/validatePolygon.js";
35
- import { Cursor as N } from "../Sculpt/utils/Modules/Cursor.js";
29
+ import { MeasureMesh as U } from "./utils/MeasureMesh.js";
30
+ import { PointMesh as T } from "../Sculpt/Meshes/Point.js";
31
+ import { LineWithDotsMesh as b } from "../Sculpt/Meshes/LineWithDots.js";
32
+ import { hotkeys as d } from "../vendor/hotkeys-js/dist/hotkeys.esm.js";
33
+ import { PolygonMesh as V } from "../Sculpt/Meshes/Polygon.js";
34
+ import { validatePolygon as z } from "./utils/validatePolygon.js";
35
+ import { Cursor as A } from "../Sculpt/utils/Modules/Cursor.js";
36
+ import { THREERaycaster as R } from "../shared-utils/three/core/Raycaster.js";
36
37
  import "../shared-utils/positionToVector3.js";
37
38
  import "../shared-utils/five/vector3ToScreen.js";
38
39
  import "../shared-utils/five/getFiveModel.js";
@@ -41,7 +42,6 @@ import "../shared-utils/Utils/BaseUtil.js";
41
42
  import "../shared-utils/Utils/WorkUtil.js";
42
43
  import "../shared-utils/five/transformPosition.js";
43
44
  import "../shared-utils/three/temp.js";
44
- import "../shared-utils/three/core/Raycaster.js";
45
45
  import "../shared-utils/dom/resizeObserver.js";
46
46
  import "../shared-utils/five/fiveEveryReadyListener.js";
47
47
  import "../shared-utils/throttle.js";
@@ -88,23 +88,23 @@ import "../PanoMeasurePlugin/utils/isIntersecting.js";
88
88
  import "../Sculpt/utils/three/ColoredMesh.js";
89
89
  import "../shared-utils/three/geometryUtil.js";
90
90
  import "../shared-utils/three/vectorIsEqual.js";
91
- class ht extends H {
91
+ class ct extends H {
92
92
  constructor(e, t) {
93
93
  super();
94
- o(this, "name", "MeasurePlugin");
95
- o(this, "currentMeasureMesh");
96
- o(this, "five");
97
- o(this, "group");
98
- o(this, "_pointSelector");
99
- o(this, "_fiveDomEvents");
100
- o(this, "_cursor");
101
- o(this, "_config");
102
- o(this, "lineStyle", {
94
+ i(this, "name", "MeasurePlugin");
95
+ i(this, "currentMeasureMesh");
96
+ i(this, "five");
97
+ i(this, "group");
98
+ i(this, "_pointSelector");
99
+ i(this, "_fiveDomEvents");
100
+ i(this, "_cursor");
101
+ i(this, "_config");
102
+ i(this, "lineStyle", {
103
103
  lengthEnable: !0,
104
104
  occlusionVisibility: !0,
105
105
  lengthUnit: "m"
106
106
  });
107
- o(this, "polygonStyle", {
107
+ i(this, "polygonStyle", {
108
108
  lengthEnable: !0,
109
109
  occlusionVisibility: !0,
110
110
  opacity: 0.2,
@@ -113,148 +113,168 @@ class ht extends H {
113
113
  /**
114
114
  * @description 开始测量
115
115
  */
116
- o(this, "measure", () => {
117
- this.listener.addMeasureListener(), this.listener.removeClickListener(), this.group.children.forEach((r) => r.unselect()), this.cursor.removeDeleteButton();
118
- const e = new V({
116
+ i(this, "measure", () => {
117
+ this.listener.addMeasureListener(), this.listener.removeClickListener(), this.group.children.forEach((n) => n.unselect()), this.cursor.removeDeleteButton();
118
+ const e = new U({
119
119
  lineStyle: this.lineStyle,
120
120
  polygonStyle: this.polygonStyle
121
121
  });
122
122
  this.currentMeasureMesh = e, this.pointSelector.actionIfNoIntersection = "disable", this.updateSelectAdsorbedHelper();
123
- const t = new x(), i = new M(v(f({}, this.lineStyle), { dashed: !0 })), n = new z(this.polygonStyle), c = new M(v(f({}, this.lineStyle), { lineOpacity: 0.5, dashed: !0 })), u = new M(v(f({}, this.lineStyle), { lineOpacity: 0.5, dashed: !0 })), d = () => {
124
- t.removeFromParent(), i.removeFromParent(), n.removeFromParent(), c.removeFromParent(), u.removeFromParent();
123
+ const t = new T(), r = new b(P(y({}, this.lineStyle), { dashed: !0 })), o = new V(this.polygonStyle), h = new b(P(y({}, this.lineStyle), { lineOpacity: 0.5, dashed: !0 })), p = new b(P(y({}, this.lineStyle), { lineOpacity: 0.5, dashed: !0 })), m = () => {
124
+ t.removeFromParent(), r.removeFromParent(), o.removeFromParent(), h.removeFromParent(), p.removeFromParent();
125
125
  };
126
126
  this.group.add(e);
127
- const S = (r) => {
128
- if (!r) {
129
- d();
127
+ const v = (n) => {
128
+ if (!n) {
129
+ m();
130
130
  return;
131
131
  }
132
- if (e.points.length === 0 && (this.pointSelector.actionIfNoIntersection = "disable", this.group.addIfNotExists(t), t.position.copy(r.point)), e.points.length >= 1)
133
- if (this.pointSelector.actionIfNoIntersection = "virtualPoint", t.removeFromParent(), this.group.addIfNotExists(i), i.setPoints([e.points.at(-1), r.point]), r.isAdsorbed)
134
- c.removeFromParent(), u.removeFromParent();
132
+ if (e.points.length === 0 && (this.pointSelector.actionIfNoIntersection = "disable", this.group.addIfNotExists(t), t.position.copy(n.point)), e.points.length >= 1)
133
+ if (this.pointSelector.actionIfNoIntersection = "virtualPoint", t.removeFromParent(), this.group.addIfNotExists(r), r.setPoints([e.points.at(-1), n.point]), n.isAdsorbed)
134
+ h.removeFromParent(), p.removeFromParent();
135
135
  else {
136
136
  const l = e.points.at(-1);
137
- if (Math.abs(r.point.y - l.y) > 0.2) {
138
- const m = new h.Vector3(r.point.x, l.y, r.point.z);
139
- c.setPoints([l, m]), u.setPoints([m, r.point]);
137
+ if (Math.abs(n.point.y - l.y) > 0.2) {
138
+ const u = new a.Vector3(n.point.x, l.y, n.point.z);
139
+ h.setPoints([l, u]), p.setPoints([u, n.point]);
140
140
  } else {
141
- let m = new h.Vector3();
142
- Math.abs(r.point.x - l.x) < Math.abs(r.point.z - l.z) ? m = new h.Vector3(r.point.x, l.y, l.z) : m = new h.Vector3(l.x, l.y, r.point.z), c.setPoints([l, m]), u.setPoints([m, r.point]);
141
+ let u = new a.Vector3();
142
+ Math.abs(n.point.x - l.x) < Math.abs(n.point.z - l.z) ? u = new a.Vector3(n.point.x, l.y, l.z) : u = new a.Vector3(l.x, l.y, n.point.z), h.setPoints([l, u]), p.setPoints([u, n.point]);
143
143
  }
144
- this.group.addIfNotExists(c, u);
144
+ this.group.addIfNotExists(h, p);
145
145
  }
146
146
  if (e.points.length >= 2) {
147
- const l = [...e.points, r.point];
148
- A(l) ? (n.setPoints(l), this.group.addIfNotExists(n)) : n.removeFromParent();
147
+ const l = [...e.points, n.point];
148
+ z(l) ? (o.setPoints(l), this.group.addIfNotExists(o)) : o.removeFromParent();
149
149
  }
150
- }, y = (r) => {
151
- r && (d(), e.setPoints([...e.points, r.point]), this.updateSelectAdsorbedHelper(), e.isPolygon && this.pointSelector.disable());
152
- }, P = () => {
153
- var r, l;
154
- e == null || e.setPoints(e.points.slice(0, -1)), d(), (l = (r = this.pointSelector.pointSelectorHelper) == null ? void 0 : r.magnifier) == null || l.render(), this.updateSelectAdsorbedHelper(), this.five.needsRender = !0;
155
- }, E = () => {
156
- this.pointSelector.off("intersectionUpdate", S), this.pointSelector.off("select", y), this.pointSelector.off("disable", E), this.off("undo", P), d(), e.points.length < 2 && e.removeFromParent(), this.currentMeasureMesh = null, this.listener.addClickListener(), this.listener.removeMeasureListener(), this.emit("measureEnd");
150
+ }, f = (n) => {
151
+ n && (m(), e.setPoints([...e.points, n.point]), this.updateSelectAdsorbedHelper(), e.isPolygon && this.pointSelector.disable());
152
+ }, M = () => {
153
+ var n, l;
154
+ e == null || e.setPoints(e.points.slice(0, -1)), m(), (l = (n = this.pointSelector.pointSelectorHelper) == null ? void 0 : n.magnifier) == null || l.render(), this.updateSelectAdsorbedHelper(), this.five.needsRender = !0;
155
+ }, g = () => {
156
+ this.pointSelector.off("intersectionUpdate", v), this.pointSelector.off("select", f), this.pointSelector.off("disable", g), this.off("undo", M), m(), e.points.length < 2 && e.removeFromParent(), e.__five_pano_index = this.five.panoIndex, this.currentMeasureMesh = null, this.listener.addClickListener(), this.listener.removeMeasureListener(), this.emit("measureEnd");
157
157
  };
158
- this.on("undo", P), this.pointSelector.on("intersectionUpdate", S), this.pointSelector.on("select", y), this.pointSelector.on("disable", E), this.pointSelector.enable();
158
+ this.on("undo", M), this.pointSelector.on("intersectionUpdate", v), this.pointSelector.on("select", f), this.pointSelector.on("disable", g), this.pointSelector.enable();
159
159
  });
160
160
  /**
161
161
  * @description 结束测量
162
162
  */
163
- o(this, "endMeasure", () => {
163
+ i(this, "endMeasure", () => {
164
164
  this.pointSelector.disable();
165
165
  });
166
166
  /**
167
167
  * @description 取消本次测量
168
168
  */
169
- o(this, "cancel", () => {
169
+ i(this, "cancel", () => {
170
170
  var e;
171
171
  (e = this.currentMeasureMesh) == null || e.removeFromParent(), this.pointSelector.disable();
172
172
  });
173
173
  /**
174
174
  * @description 撤销上一步
175
175
  */
176
- o(this, "undo", () => {
176
+ i(this, "undo", () => {
177
177
  this.emit("undo");
178
178
  });
179
179
  /**
180
180
  * @description 清空正在测量的内容
181
181
  */
182
- o(this, "clearCurrentMeasure", () => {
182
+ i(this, "clearCurrentMeasure", () => {
183
183
  var e;
184
184
  (e = this.currentMeasureMesh) == null || e.removeFromParent(), this.currentMeasureMesh = null, this.pointSelector.disable();
185
185
  });
186
186
  /**
187
187
  * @description 清空所有测量内容
188
188
  */
189
- o(this, "clear", () => {
189
+ i(this, "clear", () => {
190
190
  this.currentMeasureMesh = null, this.pointSelector.disable(), this.group.removeChildren(), this.cursor.removeDeleteButton();
191
191
  });
192
- o(this, "dispose", () => {
192
+ i(this, "dispose", () => {
193
193
  this.listener.removeMeasureListener(), this.listener.removeClickListener(), this.pointSelector.disable(), this.clear();
194
194
  });
195
195
  // eslint-disable-next-line @typescript-eslint/member-ordering
196
- o(this, "listener", {
196
+ i(this, "listener", {
197
197
  // 点击事件
198
198
  addClickListener: () => {
199
199
  this.group.children.forEach((e) => {
200
200
  var t;
201
- (t = e.line.doms) == null || t.forEach((i) => {
202
- i.container.onclick = (n) => this.onClick({ origDomEvent: n, target: e }), i.container.onmouseenter = () => this.onHover({ target: e }), i.container.onmouseleave = () => this.onUnHover({ target: e });
203
- }), e.polygon.areaDom && (e.polygon.areaDom.container.onclick = (i) => this.onClick({ origDomEvent: i, target: e }), e.polygon.areaDom.container.onmouseenter = () => this.onHover({ target: e }), e.polygon.areaDom.container.onmouseleave = () => this.onUnHover({ target: e })), this.fiveDomEvents.addEventListener(e, "click", this.onClick), this.fiveDomEvents.addEventListener(e, "hover", this.onHover), this.fiveDomEvents.addEventListener(e, "unHover", this.onUnHover), p("delete, backspace", this.deleteSelectedMesh);
201
+ (t = e.line.doms) == null || t.forEach((r) => {
202
+ r.container.onclick = (o) => this.onClick({ origDomEvent: o, target: e }), r.container.onmouseenter = () => this.onHover({ target: e }), r.container.onmouseleave = () => this.onUnHover({ target: e });
203
+ }), e.polygon.areaDom && (e.polygon.areaDom.container.onclick = (r) => this.onClick({ origDomEvent: r, target: e }), e.polygon.areaDom.container.onmouseenter = () => this.onHover({ target: e }), e.polygon.areaDom.container.onmouseleave = () => this.onUnHover({ target: e })), this.fiveDomEvents.addEventListener(e, "click", this.onClick), this.fiveDomEvents.addEventListener(e, "hover", this.onHover), this.fiveDomEvents.addEventListener(e, "unHover", this.onUnHover), this.five.on("panoArrived", this.onMoveToPano), d("delete, backspace", this.deleteSelectedMesh);
204
204
  });
205
205
  },
206
206
  removeClickListener: () => {
207
207
  this.group.children.forEach((e) => {
208
- var t, i;
209
- (t = e.line.doms) == null || t.forEach((n) => {
210
- n != null && n.container && (n.container.onclick = null, n.container.onmouseenter = null, n.container.onmouseleave = null);
211
- }), (i = e.polygon.areaDom) != null && i.container && (e.polygon.areaDom.container.onclick = null, e.polygon.areaDom.container.onmouseenter = null, e.polygon.areaDom.container.onmouseleave = null);
212
- }), this.fiveDomEvents.clear(), p.unbind("delete, backspace");
208
+ var t, r;
209
+ (t = e.line.doms) == null || t.forEach((o) => {
210
+ o != null && o.container && (o.container.onclick = null, o.container.onmouseenter = null, o.container.onmouseleave = null);
211
+ }), (r = e.polygon.areaDom) != null && r.container && (e.polygon.areaDom.container.onclick = null, e.polygon.areaDom.container.onmouseenter = null, e.polygon.areaDom.container.onmouseleave = null);
212
+ }), this.fiveDomEvents.clear(), this.five.off("panoArrived", this.onMoveToPano), d.unbind("delete, backspace");
213
213
  },
214
214
  // 绘制快捷键
215
215
  addMeasureListener: () => {
216
- p("ctrl+z, command+z", this.undo), p("esc", this.cancel), p("enter", this.endMeasure), this.five.on("mode.change", this.endMeasure), this.five.on("model.changeShownFloor", this.endMeasure);
216
+ d("ctrl+z, command+z", this.undo), d("esc", this.cancel), d("enter", this.endMeasure), this.five.on("mode.change", this.endMeasure), this.five.on("model.changeShownFloor", this.endMeasure);
217
217
  },
218
218
  removeMeasureListener: () => {
219
- p.unbind("ctrl+z, command+z"), p.unbind("esc"), p.unbind("enter"), this.five.off("mode.change", this.endMeasure), this.five.off("model.changeShownFloor", this.endMeasure);
219
+ d.unbind("ctrl+z, command+z"), d.unbind("esc"), d.unbind("enter"), this.five.off("mode.change", this.endMeasure), this.five.off("model.changeShownFloor", this.endMeasure);
220
220
  }
221
221
  });
222
- o(this, "onClick", ({ origDomEvent: e, target: t }) => {
223
- const i = t;
224
- if (!i)
222
+ i(this, "onMoveToPano", (e) => {
223
+ const t = this.group.children.filter((o) => o !== this.currentMeasureMesh), r = new R();
224
+ t.forEach((o) => {
225
+ var p;
226
+ if (o.unselect(), o.__five_pano_index === e) {
227
+ o.visible = !0;
228
+ return;
229
+ }
230
+ ((p = o.line.points) == null ? void 0 : p.some((m) => {
231
+ var S, u;
232
+ const v = m.clone().sub(this.five.camera.position).normalize();
233
+ r.set(this.five.camera.position, v);
234
+ const f = (u = (S = this.five.model.intersectRaycaster(r, void 0, !0)) == null ? void 0 : S[0]) == null ? void 0 : u.point;
235
+ if (!f)
236
+ return !0;
237
+ const M = 0.01, g = m.distanceTo(this.five.camera.position);
238
+ return f.distanceTo(this.five.camera.position) + M > g;
239
+ })) ? o.visible = !0 : o.visible = !1, this.five.needsRender = !0;
240
+ });
241
+ });
242
+ i(this, "onClick", ({ origDomEvent: e, target: t }) => {
243
+ const r = t;
244
+ if (!r)
225
245
  return;
226
- let n, c;
227
- if (e instanceof TouchEvent ? (n = e.touches[0].clientX, c = e.touches[0].clientY) : e instanceof MouseEvent && (n = e.clientX, c = e.clientY), n === void 0 || c === void 0)
246
+ let o, h;
247
+ if (e instanceof TouchEvent ? (o = e.touches[0].clientX, h = e.touches[0].clientY) : e instanceof MouseEvent && (o = e.clientX, h = e.clientY), o === void 0 || h === void 0)
228
248
  return;
229
- this.group.children.forEach((d) => d.unselect()), i.select();
230
- const u = () => {
231
- i.removeFromParent(), this.cursor.removeDeleteButton(), this.five.needsRender = !0, p.unbind("delete, backspace");
249
+ this.group.children.forEach((m) => m.unselect()), r.select();
250
+ const p = () => {
251
+ r.removeFromParent(), this.cursor.removeDeleteButton(), this.five.needsRender = !0, d.unbind("delete, backspace");
232
252
  };
233
253
  this.cursor.showDeleteButton({
234
- clientX: n,
235
- clientY: c,
254
+ clientX: o,
255
+ clientY: h,
236
256
  container: this.five.getElement().parentElement,
237
- onClick: u
257
+ onClick: p
238
258
  }), this.five.once("cameraUpdate", () => {
239
- i.unselect(), this.cursor.removeDeleteButton();
259
+ r.unselect(), this.cursor.removeDeleteButton();
240
260
  });
241
261
  });
242
- o(this, "onHover", ({ target: e }) => {
262
+ i(this, "onHover", ({ target: e }) => {
243
263
  if (this.currentMeasureMesh)
244
264
  return;
245
265
  const t = e;
246
266
  t && t.hover();
247
267
  });
248
- o(this, "onUnHover", ({ target: e }) => {
268
+ i(this, "onUnHover", ({ target: e }) => {
249
269
  if (this.currentMeasureMesh)
250
270
  return;
251
271
  const t = e;
252
272
  t && t.unhover();
253
273
  });
254
- o(this, "deleteSelectedMesh", () => {
274
+ i(this, "deleteSelectedMesh", () => {
255
275
  this.group.children.filter((t) => t.selected).forEach((t) => t.removeFromParent()), this.five.needsRender = !0;
256
276
  });
257
- o(this, "updateSelectAdsorbedHelper", () => {
277
+ i(this, "updateSelectAdsorbedHelper", () => {
258
278
  if (!this.currentMeasureMesh || this.currentMeasureMesh.points.length === 0) {
259
279
  this.pointSelector.setAdherePoints(null), this.pointSelector.adhereLine = [], this.pointSelector.adherePlane = [];
260
280
  return;
@@ -263,13 +283,13 @@ class ht extends H {
263
283
  this.pointSelector.setAdherePoints([this.currentMeasureMesh.points[0]]);
264
284
  const e = this.currentMeasureMesh.points.at(-1);
265
285
  this.pointSelector.adhereLine = [
266
- new h.Line3(new h.Vector3(1, 0, 0).add(e), new h.Vector3(-1, 0, 0).add(e)),
267
- new h.Line3(new h.Vector3(0, 1, 0).add(e), new h.Vector3(0, -1, 0).add(e)),
268
- new h.Line3(new h.Vector3(0, 0, 1).add(e), new h.Vector3(0, 0, -1).add(e))
286
+ new a.Line3(new a.Vector3(1, 0, 0).add(e), new a.Vector3(-1, 0, 0).add(e)),
287
+ new a.Line3(new a.Vector3(0, 1, 0).add(e), new a.Vector3(0, -1, 0).add(e)),
288
+ new a.Line3(new a.Vector3(0, 0, 1).add(e), new a.Vector3(0, 0, -1).add(e))
269
289
  ], this.pointSelector.adherePlane = [];
270
290
  }
271
291
  if (this.currentMeasureMesh.points.length >= 3) {
272
- const e = new h.Plane().setFromCoplanarPoints(
292
+ const e = new a.Plane().setFromCoplanarPoints(
273
293
  this.currentMeasureMesh.points[0],
274
294
  this.currentMeasureMesh.points[1],
275
295
  this.currentMeasureMesh.points[2]
@@ -278,25 +298,25 @@ class ht extends H {
278
298
  } else
279
299
  this.pointSelector.adherePlane = [];
280
300
  });
281
- this.five = e, this.config = t != null ? t : { unit: "ft" }, this.group = new U(), this.group.name = "MeasureGroup", this.five.scene.add(this.group);
301
+ this.five = e, this.config = t != null ? t : { unit: "m" }, this.group = new I(), this.group.name = "MeasureGroup", this.five.scene.add(this.group);
282
302
  }
283
303
  get pointSelector() {
284
304
  return this._pointSelector ? this._pointSelector : (this._pointSelector = new C(this.five, { mode: "cursor", helper: { pointHelper: "highlight" } }), this._pointSelector);
285
305
  }
286
306
  get fiveDomEvents() {
287
- return this._fiveDomEvents ? this._fiveDomEvents : (this._fiveDomEvents = new I(this.five, { fiveModels: null }), this._fiveDomEvents);
307
+ return this._fiveDomEvents ? this._fiveDomEvents : (this._fiveDomEvents = new x(this.five, { fiveModels: null }), this._fiveDomEvents);
288
308
  }
289
309
  get cursor() {
290
- return this._cursor ? this._cursor : (this._cursor = new N(), this._cursor);
310
+ return this._cursor ? this._cursor : (this._cursor = new A(), this._cursor);
291
311
  }
292
312
  get config() {
293
313
  return this._config;
294
314
  }
295
315
  set config(e) {
296
- var t, i;
297
- this._config = e, this.lineStyle.lengthUnit = e.unit, this.polygonStyle.lengthUnit = e.unit, (i = (t = this.group) == null ? void 0 : t.children) == null || i.forEach((n) => n.changeConfig({ lineStyle: this.lineStyle, polygonStyle: this.polygonStyle }));
316
+ var t, r;
317
+ this._config = e, this.lineStyle.lengthUnit = e.unit, this.polygonStyle.lengthUnit = e.unit, (r = (t = this.group) == null ? void 0 : t.children) == null || r.forEach((o) => o.changeConfig({ lineStyle: this.lineStyle, polygonStyle: this.polygonStyle }));
298
318
  }
299
319
  }
300
320
  export {
301
- ht as MeasureController
321
+ ct as MeasureController
302
322
  };
@@ -31,12 +31,12 @@ import { transformUnit as A } from "../utils/unit.js";
31
31
  import { RenderDom as u } from "../utils/renderDom.js";
32
32
  import "../../shared-utils/three/core/Sphere.js";
33
33
  import "../../vendor/animejs/lib/anime.es.js";
34
- import { notNil as d } from "../../shared-utils/isNil.js";
34
+ import { notNil as c } from "../../shared-utils/isNil.js";
35
35
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
36
36
  import "../../shared-utils/five/FivePuppet.js";
37
37
  class ae extends B {
38
38
  constructor(e) {
39
- var h, m, c, a;
39
+ var h, m, d, a;
40
40
  super();
41
41
  o(this, "name", "LineMesh");
42
42
  o(this, "type", "Line2");
@@ -67,8 +67,10 @@ class ae extends B {
67
67
  const s = {
68
68
  color: new y.Color((h = e == null ? void 0 : e.lineColor) != null ? h : I),
69
69
  linewidth: (m = e == null ? void 0 : e.lineWidth) != null ? m : C,
70
- dashScale: 40,
71
- opacity: (c = e == null ? void 0 : e.lineOpacity) != null ? c : 1,
70
+ dashScale: 1,
71
+ dashSize: 0.02,
72
+ gapSize: 0.02,
73
+ opacity: (d = e == null ? void 0 : e.lineOpacity) != null ? d : 1,
72
74
  depthWrite: !1,
73
75
  transparent: !0
74
76
  }, i = new P(S(f({}, s), { dashed: !1, depthTest: !0 })), t = new j(S(f({}, s), { dashed: !0, depthTest: !1 }));
@@ -137,7 +139,7 @@ class ae extends B {
137
139
  setPoints(e) {
138
140
  if (this.points.length === 0 && e.length === 0)
139
141
  return;
140
- const s = e.map(R).filter(d);
142
+ const s = e.map(R).filter(c);
141
143
  if (this.points = s, s.length < 2) {
142
144
  const t = new H();
143
145
  this.line1.geometry = t, this.line2.geometry = t, this.updateDomItems();
@@ -158,13 +160,13 @@ class ae extends B {
158
160
  (t.x !== e || t.y !== s) && (t.set(e, s), this.needsRender = !0);
159
161
  }
160
162
  setStyle(e) {
161
- var t, h, m, c;
162
- if (this.paramsStyle = f(f({}, this.paramsStyle), e), d(e.lineColor)) {
163
+ var t, h, m, d;
164
+ if (this.paramsStyle = f(f({}, this.paramsStyle), e), c(e.lineColor)) {
163
165
  const a = new y.Color(e.lineColor);
164
166
  this.line1.material.three_color = a, this.line2.material.three_color = a;
165
167
  }
166
- d(e.lineWidth) && (this.line1.material.linewidth = e.lineWidth, this.line2.material.linewidth = e.lineWidth), d(e.dashed) && (this.line1.material.dashed = e.dashed), d(e.lineOpacity) && (this.line1.material.opacity = e.lineOpacity, this.line2.material.opacity = e.lineOpacity), this.updateDomItems();
167
- const s = (h = (t = e.occlusionVisibility) != null ? t : this.paramsStyle.occlusionVisibility) != null ? h : !0, i = (c = (m = e.occlusionMode) != null ? m : this.paramsStyle.occlusionMode) != null ? c : "translucence";
168
+ c(e.lineWidth) && (this.line1.material.linewidth = e.lineWidth, this.line2.material.linewidth = e.lineWidth), c(e.dashed) && (this.line1.material.dashed = e.dashed), c(e.lineOpacity) && (this.line1.material.opacity = e.lineOpacity, this.line2.material.opacity = e.lineOpacity), this.updateDomItems();
169
+ const s = (h = (t = e.occlusionVisibility) != null ? t : this.paramsStyle.occlusionVisibility) != null ? h : !0, i = (d = (m = e.occlusionMode) != null ? m : this.paramsStyle.occlusionMode) != null ? d : "translucence";
168
170
  s ? this.dashed ? (this.remove(this.line2), this.line1.material.dashed = !0, this.line1.material.depthTest = !1) : i === "depthTest" ? (this.remove(this.line2), this.line1.material.dashed = !1, this.line1.material.depthTest = !1) : i === "translucence" && (this.line1.material.depthTest = !0, this.line2.material.depthTest = !1, this.line1.material.dashed = !0, this.line2.material.dashed = !0, this.addIfNotExists(this.line2)) : (this.remove(this.line2), this.line1.material.depthTest = !0, this.line1.material.dashed = this.paramsStyle.dashed), this.doms.forEach((a) => a.intersectCheck = !s), this.needsRender = !0;
169
171
  }
170
172
  highlight(e) {
@@ -180,7 +182,7 @@ class ae extends B {
180
182
  this.needsRender = !0;
181
183
  }
182
184
  unhighlight() {
183
- this.highlighted && (this.highlighted = !1, d(this.opacityBeforeHighlight) && (this.line1.material.opacity = this.opacityBeforeHighlight, this.line2.material.opacity = this.line1.material.opacity, this.opacityBeforeHighlight = void 0), d(this.colorBeforeHighlight) && (this.line1.material.three_color = this.colorBeforeHighlight, this.line2.material.three_color = this.colorBeforeHighlight, this.colorBeforeHighlight = void 0), this.needsRender = !0);
185
+ this.highlighted && (this.highlighted = !1, c(this.opacityBeforeHighlight) && (this.line1.material.opacity = this.opacityBeforeHighlight, this.line2.material.opacity = this.line1.material.opacity, this.opacityBeforeHighlight = void 0), c(this.colorBeforeHighlight) && (this.line1.material.three_color = this.colorBeforeHighlight, this.line2.material.three_color = this.colorBeforeHighlight, this.colorBeforeHighlight = void 0), this.needsRender = !0);
184
186
  }
185
187
  updateDomItems() {
186
188
  const e = () => {
@@ -193,7 +195,7 @@ class ae extends B {
193
195
  const s = this.points.map((i, t) => {
194
196
  if (t !== 0)
195
197
  return [this.points[t - 1], i];
196
- }).filter(d).map((i) => L(this, i));
198
+ }).filter(c).map((i) => L(this, i));
197
199
  s.forEach(([i, t], h) => {
198
200
  var a;
199
201
  const m = x(i, t);
@@ -202,17 +204,17 @@ class ae extends B {
202
204
  const n = new W(this.five), g = (_ = this.paramsStyle.occlusionVisibility) != null ? _ : !0;
203
205
  return n.intersectCheck = !g, n.simulate3D = !0, n;
204
206
  })(), this.doms[h].setPosition(m, [i, t]);
205
- const c = (n) => {
207
+ const d = (n) => {
206
208
  var g;
207
209
  this.doms[h].__text !== n && (this.doms[h].__text = n, n instanceof HTMLElement ? (this.doms[h].container.innerHTML = "", this.doms[h].container.appendChild(n)) : n ? this.doms[h].container.innerHTML = V(n, {
208
- style: `color: #${d((g = this.style) == null ? void 0 : g.lineColor) ? new y.Color(this.style.lineColor).getHexString() : "ffffff"}`
210
+ style: `color: #${c((g = this.style) == null ? void 0 : g.lineColor) ? new y.Color(this.style.lineColor).getHexString() : "ffffff"}`
209
211
  }) : this.doms[h].container.innerHTML = "");
210
212
  };
211
213
  if (this.paramsStyle.tip)
212
- c(this.paramsStyle.tip);
214
+ d(this.paramsStyle.tip);
213
215
  else {
214
216
  const n = A(i.distanceTo(t), this.paramsStyle.lengthUnit);
215
- c(n || null);
217
+ d(n || null);
216
218
  }
217
219
  }), this.doms.length > s.length && (this.doms.slice(s.length).forEach((i) => i.destroy()), this.doms.length = s.length);
218
220
  }
@@ -1,4 +1,4 @@
1
- import * as THREE from 'three';
1
+ import type * as THREE from 'three';
2
2
  export type RenderDomObjectType = THREE.Object3D & {
3
3
  _onAdded: () => void;
4
4
  _onRemoved: () => void;
@@ -13,7 +13,7 @@ import "../shared-utils/three/core/Five_LineMaterial2.js";
13
13
  import "../shared-utils/three/core/Sphere.js";
14
14
  import "../vendor/animejs/lib/anime.es.js";
15
15
  import { FiveUtil as m } from "../shared-utils/Utils/FiveUtil.js";
16
- import { absoluteUrl as p } from "../shared-utils/url/absoluteUrl.js";
16
+ import { absoluteUrl as a } from "../shared-utils/url/absoluteUrl.js";
17
17
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
18
18
  import "../shared-utils/five/FivePuppet.js";
19
19
  let E = class {
@@ -21,7 +21,7 @@ let E = class {
21
21
  /**
22
22
  * @realsee/dnalogel 版本号
23
23
  */
24
- i(this, "VERSION", "3.64.8");
24
+ i(this, "VERSION", "3.64.9-alpha.1");
25
25
  i(this, "NAME");
26
26
  i(this, "five");
27
27
  i(this, "workUtil");
@@ -52,7 +52,7 @@ let E = class {
52
52
  * @description: 获取静态资源的url
53
53
  */
54
54
  absoluteUrl(t) {
55
- return p(this.staticPrefix, t);
55
+ return a(this.staticPrefix, t);
56
56
  }
57
57
  onWorkCodeChange() {
58
58
  }
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.64.8",
3
+ "%c %c@realsee/dnalogel %cv3.64.9-alpha.1",
4
4
  [
5
5
  "background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
6
6
  "background-repeat: no-repeat",
@@ -5,16 +5,16 @@ var u = (p, e, t) => new Promise((o, n) => {
5
5
  var a = (i) => {
6
6
  try {
7
7
  s(t.next(i));
8
- } catch (l) {
9
- n(l);
8
+ } catch (h) {
9
+ n(h);
10
10
  }
11
- }, h = (i) => {
11
+ }, l = (i) => {
12
12
  try {
13
13
  s(t.throw(i));
14
- } catch (l) {
15
- n(l);
14
+ } catch (h) {
15
+ n(h);
16
16
  }
17
- }, s = (i) => i.done ? o(i.value) : Promise.resolve(i.value).then(a, h);
17
+ }, s = (i) => i.done ? o(i.value) : Promise.resolve(i.value).then(a, l);
18
18
  s((t = t.apply(p, e)).next());
19
19
  });
20
20
  import { anyPositionToVector3 as f } from "./positionToVector3.js";
@@ -110,7 +110,7 @@ class M {
110
110
  this.visibles[3] === !0 || this.visibles.every((t) => t !== !1) ? (this.container.style.opacity = "1", this.container.style.pointerEvents = "auto") : (this.container.style.opacity = "0", this.container.style.pointerEvents = "none");
111
111
  });
112
112
  r(this, "updateIntersectCheckVisible", () => {
113
- var i, l;
113
+ var i, h;
114
114
  if (!this.position)
115
115
  return;
116
116
  if (!this.intersectCheck) {
@@ -121,11 +121,11 @@ class M {
121
121
  this.fiveUtil.workUtil.fromType === "poincare" && (t = 0.05);
122
122
  const o = this.transformedPosition.clone().sub(this.five.camera.position).normalize();
123
123
  v.set(this.five.camera.position, o);
124
- const n = (i = U(this.five).intersectRaycaster(v)) != null ? i : [], a = (l = v.intersectObjects(this.extraObjectsForIntersectCheck, !0)) != null ? l : [], s = [...n, ...a].sort((c, d) => c.distance - d.distance)[0];
124
+ const n = (i = U(this.five).intersectRaycaster(v)) != null ? i : [], a = (h = v.intersectObjects(this.extraObjectsForIntersectCheck, !0)) != null ? h : [], s = [...n, ...a].sort((c, d) => c.distance - d.distance)[0];
125
125
  s ? e = (s == null ? void 0 : s.distance) + t > this.transformedPosition.distanceTo(this.five.camera.position) : e = !0, this.visibles[1] = e;
126
126
  });
127
- var n, a, h;
128
- this.five = e, this.fiveUtil = (n = e.__fiveUtil__) != null ? n : e.__fiveUtil__ = new w(e), this.originPosition = t ? f(t).clone() : void 0, this.transformedPosition = (a = this.originPosition) == null ? void 0 : a.clone(), this.positionsForRotate = (h = o == null ? void 0 : o.positionsForRotate) == null ? void 0 : h.map((s) => f(s).clone()), this.config = o != null ? o : {}, this.container = (() => {
127
+ var n, a, l;
128
+ this.five = e, this.fiveUtil = (n = e.__fiveUtil__) != null ? n : e.__fiveUtil__ = new w(e), this.originPosition = t ? f(t).clone() : void 0, this.transformedPosition = (a = this.originPosition) == null ? void 0 : a.clone(), this.positionsForRotate = (l = o == null ? void 0 : o.positionsForRotate) == null ? void 0 : l.map((s) => f(s).clone()), this.config = o != null ? o : {}, this.container = (() => {
129
129
  const s = document.createElement("div");
130
130
  return s.classList.add("light-tag"), s.style.width = "0", s.style.height = "0", s.style.position = "absolute", s.style.transition = "opacity 0.2s linear", s;
131
131
  })(), this.addResizeListener(), this.show(), this.enable(), setTimeout(() => {
@@ -155,14 +155,14 @@ class M {
155
155
  */
156
156
  enable() {
157
157
  return u(this, null, function* () {
158
- var o, n, a, h;
158
+ var o, n, a, l;
159
159
  if (this.enabled || (this.enabled = !0, yield F(this.five), !this.enabled))
160
160
  return;
161
161
  if (this.wrapper = (n = this.config.wrapper) != null ? n : (o = this.five.getElement()) == null ? void 0 : o.parentElement, !this.wrapper) {
162
162
  console.error("lighttag: wrapper is required");
163
163
  return;
164
164
  }
165
- const e = `light-tag-wrapper-${(h = (a = this.config) == null ? void 0 : a.namespace) != null ? h : "default"}`;
165
+ const e = `light-tag-wrapper-${(l = (a = this.config) == null ? void 0 : a.namespace) != null ? l : "default"}`;
166
166
  if (!this.tagWrapper) {
167
167
  let s = Array.from(this.wrapper.children).find((i) => i.id === e);
168
168
  if (!s) {
@@ -222,15 +222,15 @@ class M {
222
222
  const o = (() => {
223
223
  if (!this.simulate3D)
224
224
  return 1;
225
- const h = 2 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI), s = this.transformedPosition.distanceTo(this.five.camera.position);
226
- return Math.max(Math.min(1 - h * s / 40, 1), 0.5);
225
+ const s = 3 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI), i = this.transformedPosition.distanceTo(this.five.camera.position);
226
+ return Math.max(Math.min(1 - s * i / 40, 1), 0.5);
227
227
  })(), n = (() => {
228
228
  if (this.positionsForRotate === void 0 || this.positionsForRotate.length !== 2)
229
229
  return 0;
230
- const [h, s] = this.positionsForRotate, i = m(this.five.camera, h, e), l = m(this.five.camera, s, e);
231
- if (!i || !l)
230
+ const [l, s] = this.positionsForRotate, i = m(this.five.camera, l, e), h = m(this.five.camera, s, e);
231
+ if (!i || !h)
232
232
  return 0;
233
- const c = i.leftPx > l.leftPx ? l : i, d = i.leftPx > l.leftPx ? i : l, y = d.leftPx - c.leftPx, b = d.topPx - c.topPx;
233
+ const c = i.leftPx > h.leftPx ? h : i, d = i.leftPx > h.leftPx ? i : h, y = d.leftPx - c.leftPx, b = d.topPx - c.topPx;
234
234
  return Math.atan2(b, y) * (180 / Math.PI);
235
235
  })();
236
236
  this.container.style.left = t.leftPx + "px", this.container.style.top = t.topPx + "px", this.container.style.transformOrigin = "center", this.container.style.transform = `scale(${o})`, n && (this.container.style.transform += ` rotate(${n}deg)`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.64.8",
3
+ "version": "3.64.9-alpha.1",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",