@realsee/dnalogel 3.16.2 → 3.17.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 (365) hide show
  1. package/dist/Object3DHelperPlugin/FiveControllerWrapper.d.ts +1 -1
  2. package/dist/index.cjs.js +30 -30
  3. package/dist/index.js +1568 -1517
  4. package/dist/index.umd.js +26 -26
  5. package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +4 -4
  6. package/dist/shared-utils/Object3DHelper/Controller/MoveController.d.ts +8 -9
  7. package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -2
  8. package/docs/assets/search.js +1 -1
  9. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +4 -3
  10. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +4 -3
  11. package/docs/classes/CSS3DRender.html +4 -3
  12. package/docs/classes/GuideLineItem.GuideLineItem.html +4 -3
  13. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +4 -3
  14. package/docs/classes/Magnifier.html +4 -3
  15. package/docs/classes/ModelRoomLabelController.html +4 -3
  16. package/docs/classes/MoveController.html +4 -3
  17. package/docs/classes/Object3DHelperController.html +5 -4
  18. package/docs/classes/PaintBrush.html +4 -3
  19. package/docs/classes/PanoMeasurePluginLine.html +4 -3
  20. package/docs/classes/PanoMeasurePluginModel.html +4 -3
  21. package/docs/classes/PanoMeasurePluginPoint.html +4 -3
  22. package/docs/classes/PanoMeasurePluginPolyline.html +4 -3
  23. package/docs/classes/PanoTagPluginController.html +4 -3
  24. package/docs/classes/Util.BetterTween.html +4 -3
  25. package/docs/classes/Util.Interval.html +4 -3
  26. package/docs/classes/Util.LineSegments.html +4 -3
  27. package/docs/classes/Util.Magnifier.html +4 -3
  28. package/docs/classes/Util.Object3D.html +4 -3
  29. package/docs/classes/Util.PointDomHelper.html +4 -3
  30. package/docs/classes/Util.PointHelper.html +4 -3
  31. package/docs/classes/Util.PointSelectorHelper.html +4 -3
  32. package/docs/classes/Util.Rectangle.html +4 -3
  33. package/docs/classes/WalkController.html +4 -3
  34. package/docs/enums/CameraMovementEffect.html +4 -3
  35. package/docs/enums/ContentType.html +4 -3
  36. package/docs/enums/DIRECTION.html +4 -3
  37. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +4 -3
  38. package/docs/enums/DimensionType.html +4 -3
  39. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +4 -3
  40. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +4 -3
  41. package/docs/enums/PaintBrushTypeEnum.html +4 -3
  42. package/docs/enums/PointType.html +4 -3
  43. package/docs/enums/Rotation.html +4 -3
  44. package/docs/functions/AreaMakerPlugin.html +4 -3
  45. package/docs/functions/CSS3DRenderPlugin.html +4 -3
  46. package/docs/functions/CameraMovementPlugin.html +4 -3
  47. package/docs/functions/CruisePlugin.html +4 -3
  48. package/docs/functions/CurrentPanoImagePlugin.html +4 -3
  49. package/docs/functions/GuideLinePlugin.html +4 -3
  50. package/docs/functions/ItemLabelPlugin.html +4 -3
  51. package/docs/functions/MapviewFloorplanPlugin.html +4 -3
  52. package/docs/functions/ModelChassisCompassPlugin.html +4 -3
  53. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -3
  54. package/docs/functions/ModelFloorplanPlugin.html +4 -3
  55. package/docs/functions/ModelItemLabelPlugin.html +4 -3
  56. package/docs/functions/ModelRoomLabelPlugin.html +4 -3
  57. package/docs/functions/ModelTVVideoPlugin.html +4 -3
  58. package/docs/functions/ModelViewPlugin.html +4 -3
  59. package/docs/functions/MovePlugin.html +4 -3
  60. package/docs/functions/Object3DHelperPlugin.html +4 -3
  61. package/docs/functions/PanoCompassPlugin.html +4 -3
  62. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -3
  63. package/docs/functions/PanoDoorLabelPlugin.html +4 -3
  64. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -3
  65. package/docs/functions/PanoMeasurePlugin.html +4 -3
  66. package/docs/functions/PanoRulerPlugin.html +4 -3
  67. package/docs/functions/PanoRulerProPlugin.html +4 -3
  68. package/docs/functions/PanoSpatialTagPlugin.html +4 -3
  69. package/docs/functions/PanoTagPlugin.html +4 -3
  70. package/docs/functions/PanoVideoPlugin.html +4 -3
  71. package/docs/functions/PipelinePlugin.html +4 -3
  72. package/docs/functions/TopviewFloorplanPlugin.html +4 -3
  73. package/docs/functions/Util.absoluteUrl.html +4 -3
  74. package/docs/functions/Util.checkFiveModelLoaded.html +4 -3
  75. package/docs/functions/Util.equal.html +4 -3
  76. package/docs/functions/Util.getCoordsFromClient.html +4 -3
  77. package/docs/functions/Util.getCoordsFromElement.html +4 -3
  78. package/docs/functions/Util.getFrameTime.html +4 -3
  79. package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -3
  80. package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -3
  81. package/docs/functions/Util.isAbsoluteURL.html +4 -3
  82. package/docs/functions/Util.isModelLike.html +4 -3
  83. package/docs/functions/Util.isNil.html +4 -3
  84. package/docs/functions/Util.isPanoramaLike.html +4 -3
  85. package/docs/functions/Util.nextFrame.html +4 -3
  86. package/docs/functions/Util.notNil.html +4 -3
  87. package/docs/functions/Util.requestAnimationFrameInterval.html +4 -3
  88. package/docs/functions/Util.tweenProgress.html +4 -3
  89. package/docs/functions/Util.uuid.html +4 -3
  90. package/docs/functions/pluginFlag.html +4 -3
  91. package/docs/index.html +5 -4
  92. package/docs/interfaces/AddTagConfig.html +4 -3
  93. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +4 -3
  94. package/docs/interfaces/AreaMakerPluginType.Config.html +4 -3
  95. package/docs/interfaces/AreaMakerPluginType.EventMap.html +4 -3
  96. package/docs/interfaces/AreaMakerPluginType.Params.html +4 -3
  97. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +4 -3
  98. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +4 -3
  99. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +4 -3
  100. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +4 -3
  101. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +4 -3
  102. package/docs/interfaces/AreaMakerPluginType.State.html +4 -3
  103. package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -3
  104. package/docs/interfaces/CSS3DRenderPluginState.html +4 -3
  105. package/docs/interfaces/CameraMovementPluginExportType.html +4 -3
  106. package/docs/interfaces/CruisePluginTypes.Config.html +4 -3
  107. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +4 -3
  108. package/docs/interfaces/CruisePluginTypes.EventMap.html +4 -3
  109. package/docs/interfaces/CruisePluginTypes.MoveAction.html +4 -3
  110. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +4 -3
  111. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +4 -3
  112. package/docs/interfaces/CruisePluginTypes.PluginData.html +4 -3
  113. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +4 -3
  114. package/docs/interfaces/CruisePluginTypes.PluginState.html +4 -3
  115. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +4 -3
  116. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +4 -3
  117. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +4 -3
  118. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +4 -3
  119. package/docs/interfaces/CurrentPanoImagePluginType.State.html +4 -3
  120. package/docs/interfaces/EventMap.html +4 -3
  121. package/docs/interfaces/FloorplanBounding.html +4 -3
  122. package/docs/interfaces/FloorplanData.html +4 -3
  123. package/docs/interfaces/FloorplanEntrance.html +4 -3
  124. package/docs/interfaces/FloorplanExtraObject.html +4 -3
  125. package/docs/interfaces/FloorplanExtraObject3D.html +4 -3
  126. package/docs/interfaces/FloorplanFloorData.html +4 -3
  127. package/docs/interfaces/FloorplanImagePosition.html +4 -3
  128. package/docs/interfaces/FloorplanObserver.html +4 -3
  129. package/docs/interfaces/FloorplanOutlineItem.html +4 -3
  130. package/docs/interfaces/FloorplanPosition.html +4 -3
  131. package/docs/interfaces/FloorplanRoomItem.html +4 -3
  132. package/docs/interfaces/FloorplanRoomLabelItem.html +4 -3
  133. package/docs/interfaces/FloorplanServerBounding.html +4 -3
  134. package/docs/interfaces/FloorplanServerComputedData.html +4 -3
  135. package/docs/interfaces/FloorplanServerData.html +4 -3
  136. package/docs/interfaces/FloorplanServerDoorItem.html +4 -3
  137. package/docs/interfaces/FloorplanServerDoorPosition.html +4 -3
  138. package/docs/interfaces/FloorplanServerEntrance.html +4 -3
  139. package/docs/interfaces/FloorplanServerFloorData.html +4 -3
  140. package/docs/interfaces/FloorplanServerImagePosition.html +4 -3
  141. package/docs/interfaces/FloorplanServerObserver.html +4 -3
  142. package/docs/interfaces/FloorplanServerOutlineItem.html +4 -3
  143. package/docs/interfaces/FloorplanServerPosition.html +4 -3
  144. package/docs/interfaces/FloorplanServerRoomItem.html +4 -3
  145. package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -3
  146. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +4 -3
  147. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +4 -3
  148. package/docs/interfaces/GuideLinePluginType.EventMap.html +4 -3
  149. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +4 -3
  150. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +4 -3
  151. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +4 -3
  152. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +4 -3
  153. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +4 -3
  154. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +4 -3
  155. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +4 -3
  156. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +4 -3
  157. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -3
  158. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +4 -3
  159. package/docs/interfaces/GuideLinePluginType.PluginState.html +4 -3
  160. package/docs/interfaces/GuideLinePluginType.Route.html +4 -3
  161. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +4 -3
  162. package/docs/interfaces/HelperOffset.html +4 -3
  163. package/docs/interfaces/ImagePlaneGroup.html +4 -3
  164. package/docs/interfaces/ItemLabelPluginData.html +4 -3
  165. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +4 -3
  166. package/docs/interfaces/ItemLabelPluginParametersType.html +4 -3
  167. package/docs/interfaces/MinMax.html +4 -3
  168. package/docs/interfaces/ModelChassisCompassPluginData.html +4 -3
  169. package/docs/interfaces/ModelChassisCompassPluginExportType.html +4 -3
  170. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +4 -3
  171. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +4 -3
  172. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +4 -3
  173. package/docs/interfaces/ModelItemLabelPluginData.html +4 -3
  174. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +4 -3
  175. package/docs/interfaces/ModelItemLabelPluginParametersType.html +4 -3
  176. package/docs/interfaces/ModelRoomLabelPluginData.html +4 -3
  177. package/docs/interfaces/ModelTVVideoPluginData.html +4 -3
  178. package/docs/interfaces/ModelTVVideoPluginExportType.html +4 -3
  179. package/docs/interfaces/ModelTVVideoPluginParameterType.html +4 -3
  180. package/docs/interfaces/ModelViewPluginExportType.html +4 -3
  181. package/docs/interfaces/Object3DHelperState.html +8 -7
  182. package/docs/interfaces/ObjectHelperControllers.html +4 -3
  183. package/docs/interfaces/PaintBrushAction.html +4 -3
  184. package/docs/interfaces/PaintBrushConfigs.html +4 -3
  185. package/docs/interfaces/PaintBrushState.html +4 -3
  186. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +4 -3
  187. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -3
  188. package/docs/interfaces/PanoMeasureParameterType.html +4 -3
  189. package/docs/interfaces/PanoMeasurePluginLineJson.html +4 -3
  190. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +4 -3
  191. package/docs/interfaces/PanoMeasurePluginPointJson.html +4 -3
  192. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +4 -3
  193. package/docs/interfaces/PanoRulerPluginExportType.html +4 -3
  194. package/docs/interfaces/PanoRulerPluginOptions.html +4 -3
  195. package/docs/interfaces/PanoRulerPluginParameterType.html +4 -3
  196. package/docs/interfaces/PanoRulerProPluginExportType.html +4 -3
  197. package/docs/interfaces/PanoRulerProPluginOptions.html +4 -3
  198. package/docs/interfaces/PanoRulerProPluginParameterType.html +4 -3
  199. package/docs/interfaces/PanoRulerProPluginState.html +4 -3
  200. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -3
  201. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -3
  202. package/docs/interfaces/PanoSpatialTagPluginData.html +4 -3
  203. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +4 -3
  204. package/docs/interfaces/PanoSpatialTagPluginExportType.html +4 -3
  205. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +4 -3
  206. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +4 -3
  207. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +4 -3
  208. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +4 -3
  209. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +4 -3
  210. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +4 -3
  211. package/docs/interfaces/PanoVideoPluginType.PluginData.html +4 -3
  212. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +4 -3
  213. package/docs/interfaces/PanoVideoPluginType.PluginState.html +4 -3
  214. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +4 -3
  215. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +4 -3
  216. package/docs/interfaces/Point.html +4 -3
  217. package/docs/interfaces/Room.html +4 -3
  218. package/docs/interfaces/RoomInfo.html +4 -3
  219. package/docs/interfaces/RoomLabel.html +4 -3
  220. package/docs/interfaces/RoomRules.html +4 -3
  221. package/docs/interfaces/Rooms.html +4 -3
  222. package/docs/interfaces/Scissor.html +4 -3
  223. package/docs/interfaces/State.html +4 -3
  224. package/docs/interfaces/TagCacheInterface.html +4 -3
  225. package/docs/interfaces/TagConfig.html +4 -3
  226. package/docs/interfaces/TagGLTFObjectGroup.html +4 -3
  227. package/docs/interfaces/TagIconUrl.html +4 -3
  228. package/docs/interfaces/TagObjectGroup.html +4 -3
  229. package/docs/interfaces/TagStyle.html +4 -3
  230. package/docs/interfaces/Tags.html +4 -3
  231. package/docs/interfaces/TemporaryState.html +4 -3
  232. package/docs/interfaces/Util.MagnifierParameter.html +4 -3
  233. package/docs/interfaces/Util.MouseGroupParameter.html +4 -3
  234. package/docs/interfaces/Util.PointIntersection.html +4 -3
  235. package/docs/modules/AreaMakerPluginType.html +4 -3
  236. package/docs/modules/CruisePluginTypes.html +4 -3
  237. package/docs/modules/CurrentPanoImagePluginType.html +4 -3
  238. package/docs/modules/GuideLineItem.html +4 -3
  239. package/docs/modules/GuideLineModeItem.html +4 -3
  240. package/docs/modules/GuideLinePluginType.html +4 -3
  241. package/docs/modules/PanoVideoPluginType.html +4 -3
  242. package/docs/modules/Util.html +4 -3
  243. package/docs/modules.html +6 -4
  244. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +4 -3
  245. package/docs/types/AreaMakerPluginType.ItemRenderer.html +4 -3
  246. package/docs/types/AreaMakerPluginType.PluginData.html +4 -3
  247. package/docs/types/AreaMakerPluginType.ServerData.html +4 -3
  248. package/docs/types/ArrayPosition.html +4 -3
  249. package/docs/types/AudioAppearance.html +4 -3
  250. package/docs/types/AudioTagTypeConfigKey.html +4 -3
  251. package/docs/types/CSS3DRenderExportType.html +4 -3
  252. package/docs/types/CSS3DRenderPluginExportType.html +4 -3
  253. package/docs/types/CSS3DRenderPluginParameterType.html +4 -3
  254. package/docs/types/ClassFunctionParameters.html +4 -3
  255. package/docs/types/Color.html +4 -3
  256. package/docs/types/ContentTypeConfigKey.html +4 -3
  257. package/docs/types/ContentTypeConfigKeySplit.html +4 -3
  258. package/docs/types/ContentTypeMap.html +4 -3
  259. package/docs/types/Create3DDomContainerReturnType.html +4 -3
  260. package/docs/types/Create3DElementReturnType.html +4 -3
  261. package/docs/types/CruisePluginExportType.html +4 -3
  262. package/docs/types/CruisePluginTypes.CruiseData.html +4 -3
  263. package/docs/types/CruisePluginTypes.MoveEffect.html +4 -3
  264. package/docs/types/CurrentPanoImagePluginExportType.html +4 -3
  265. package/docs/types/DeprecatedMediaPlaneProperty.html +4 -3
  266. package/docs/types/DeprecatedTagProperty.html +4 -3
  267. package/docs/types/Direction-1.html +4 -3
  268. package/docs/types/Direction4.html +4 -3
  269. package/docs/types/ElementRenderer.html +4 -3
  270. package/docs/types/FloorplanRuleLabels.html +4 -3
  271. package/docs/types/FloorplanServerRuleLabels.html +4 -3
  272. package/docs/types/GuideLinePluginExportType.html +4 -3
  273. package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -3
  274. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -3
  275. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -3
  276. package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -3
  277. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -3
  278. package/docs/types/GuideLinePluginType.PathItem.html +4 -3
  279. package/docs/types/GuideLinePluginType.PluginData.html +4 -3
  280. package/docs/types/HelperEventMap.html +19 -111
  281. package/docs/types/InternalHelperEventMap.html +380 -0
  282. package/docs/types/LoadTagConfig.html +4 -3
  283. package/docs/types/MapviewFloorplanPluginParameterType.html +4 -3
  284. package/docs/types/MapviewFloorplanPluginReturnType.html +4 -3
  285. package/docs/types/MediaData.html +4 -3
  286. package/docs/types/MediaStore.html +4 -3
  287. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -3
  288. package/docs/types/ModelFloorplanPluginParameterType.html +4 -3
  289. package/docs/types/ModelFloorplanPluginReturnType.html +4 -3
  290. package/docs/types/ModelId.html +4 -3
  291. package/docs/types/ModelRoomLabelPluginParameters.html +4 -3
  292. package/docs/types/ModelRoomLabelPluginReturnType.html +4 -3
  293. package/docs/types/MoveArgs.html +4 -3
  294. package/docs/types/MoveOpts.html +4 -3
  295. package/docs/types/Object3DHelperEventMap.html +5 -4
  296. package/docs/types/ObjectFit.html +4 -3
  297. package/docs/types/PaintBrushEventMap.html +4 -3
  298. package/docs/types/PanoCompassPluginData.html +4 -3
  299. package/docs/types/PanoCompassPluginExportType.html +4 -3
  300. package/docs/types/PanoCompassPluginParameterType.html +4 -3
  301. package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -3
  302. package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -3
  303. package/docs/types/PanoIndex.html +4 -3
  304. package/docs/types/PanoMeasurePluginEvent.html +4 -3
  305. package/docs/types/PanoMeasureReturnType.html +4 -3
  306. package/docs/types/PanoSpatialTagPluginId.html +4 -3
  307. package/docs/types/PanoTagPluginExportInterface.html +4 -3
  308. package/docs/types/PanoTagPluginParamsInterface.html +4 -3
  309. package/docs/types/PanoVideoPluginParameterType.html +4 -3
  310. package/docs/types/PanoVideoPluginReturnType.html +4 -3
  311. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -3
  312. package/docs/types/PipelinePluginParameterType.html +4 -3
  313. package/docs/types/PipelinePluginReturnType.html +4 -3
  314. package/docs/types/PlaneTag.html +4 -3
  315. package/docs/types/Point2DTag.html +4 -3
  316. package/docs/types/Point3DTag.html +4 -3
  317. package/docs/types/PointTag.html +4 -3
  318. package/docs/types/PointTagInstance.html +4 -3
  319. package/docs/types/Position.html +4 -3
  320. package/docs/types/RotateArgs.html +4 -3
  321. package/docs/types/RotateOpts.html +4 -3
  322. package/docs/types/RuleLabelsKey.html +4 -3
  323. package/docs/types/RuleLabelsValue.html +4 -3
  324. package/docs/types/StickType.html +4 -3
  325. package/docs/types/Tag.html +4 -3
  326. package/docs/types/Tag2D.html +4 -3
  327. package/docs/types/Tag3D.html +4 -3
  328. package/docs/types/TagConfigByKey.html +4 -3
  329. package/docs/types/TagContentType.html +4 -3
  330. package/docs/types/TagContentTypeMapping.html +4 -3
  331. package/docs/types/TagDimensionType.html +4 -3
  332. package/docs/types/TagElement.html +4 -3
  333. package/docs/types/TagEvents.html +4 -3
  334. package/docs/types/TagGLTFObject.html +4 -3
  335. package/docs/types/TagHooks.html +4 -3
  336. package/docs/types/TagId.html +4 -3
  337. package/docs/types/TagInstance.html +4 -3
  338. package/docs/types/TagPointType.html +4 -3
  339. package/docs/types/TagRendererMap.html +4 -3
  340. package/docs/types/TopviewFloorplanPluginParameterType.html +4 -3
  341. package/docs/types/TopviewFloorplanPluginReturnType.html +4 -3
  342. package/docs/types/WorkCode.html +4 -3
  343. package/docs/variables/FLOOR_TYPE_MAP.html +4 -3
  344. package/docs/variables/PLUGIN.html +4 -3
  345. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -3
  346. package/docs/variables/ROOM_TYPE_MAP.html +4 -3
  347. package/docs/variables/defaultGlobalConfig.html +4 -3
  348. package/docs/variables/itemLabelPluginServerParams.html +4 -3
  349. package/docs/variables/modelItemLabelPluginServerParams.html +4 -3
  350. package/docs/variables/modelRoomLabelPluginServerParams.html +4 -3
  351. package/libs/Object3DHelperPlugin/Controller.js +97 -70
  352. package/libs/Object3DHelperPlugin/FiveControllerWrapper.d.ts +1 -1
  353. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +19 -9
  354. package/libs/base/BasePlugin.js +1 -1
  355. package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +4 -4
  356. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +71 -70
  357. package/libs/shared-utils/Object3DHelper/Controller/MoveController.d.ts +8 -9
  358. package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +49 -34
  359. package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +3 -3
  360. package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +3 -3
  361. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +9 -9
  362. package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js +0 -2
  363. package/libs/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -2
  364. package/libs/shared-utils/logger.js +1 -1
  365. package/package.json +1 -1
@@ -1,39 +1,40 @@
1
- var f = Object.defineProperty;
2
- var j = (b, e, t) => e in b ? f(b, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : b[e] = t;
3
- var s = (b, e, t) => (j(b, typeof e != "symbol" ? e + "" : e, t), t);
4
- import * as p from "three";
5
- import { Subscribe as u } from "../../Subscribe.js";
1
+ var j = Object.defineProperty;
2
+ var u = (p, e, t) => e in p ? j(p, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[e] = t;
3
+ var n = (p, e, t) => (u(p, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import * as h from "three";
5
+ import { Subscribe as f } from "../../Subscribe.js";
6
6
  import { DomEvents as y } from "../../threex/domevents/index.js";
7
7
  import { notNil as m } from "../../isNil.js";
8
8
  import { boundingBox as g } from "../utils/boundingBox.js";
9
9
  class k {
10
10
  constructor(e, t) {
11
- s(this, "originObject3D");
12
- s(this, "hooks");
13
- s(this, "preventTapDefaultEvent", !1);
14
- s(this, "disposers", []);
15
- s(this, "helperObject3D");
16
- s(this, "camera");
17
- s(this, "model");
18
- s(this, "scene");
19
- s(this, "container");
20
- s(this, "domEvents");
21
- s(this, "isDragging", !1);
22
- s(this, "enabled", !1);
23
- s(this, "name", "BaseController");
24
- s(this, "boundingBox");
25
- s(this, "offset");
26
- s(this, "onRender");
27
- s(this, "onWantsTapGesture", (e) => {
11
+ n(this, "originObject3D");
12
+ n(this, "hooks");
13
+ n(this, "preventTapDefaultEvent", !1);
14
+ n(this, "internalHooks");
15
+ n(this, "disposers", []);
16
+ n(this, "helperObject3D");
17
+ n(this, "camera");
18
+ n(this, "model");
19
+ n(this, "scene");
20
+ n(this, "container");
21
+ n(this, "domEvents");
22
+ n(this, "isDragging", !1);
23
+ n(this, "enabled", !1);
24
+ n(this, "name", "BaseController");
25
+ n(this, "boundingBox");
26
+ n(this, "offset");
27
+ n(this, "onRender");
28
+ n(this, "onWantsTapGesture", (e) => {
28
29
  if (this.getIntersectObject(e))
29
30
  return !1;
30
31
  });
31
- var a, d;
32
- this.hooks = (a = e.sharedHooks) != null ? a : new u(), this.camera = e.camera, this.model = e.model, this.originObject3D = e.originObject3D, this.helperObject3D = e.helperObject3D, this.container = e.container, this.scene = e.scene, this.domEvents = new y(e.camera, e.container), this.onRender = (d = e.onRender) != null ? d : () => {
32
+ var l, O, d;
33
+ this.hooks = (l = e.sharedHooks) != null ? l : new f(), this.internalHooks = (O = e.sharedInternalHooks) != null ? O : new f(), this.camera = e.camera, this.model = e.model, this.originObject3D = e.originObject3D, this.helperObject3D = e.helperObject3D, this.container = e.container, this.scene = e.scene, this.domEvents = new y(e.camera, e.container), this.onRender = (d = e.onRender) != null ? d : () => {
33
34
  }, this.offset = t == null ? void 0 : t.offset, this.initialHelperPosition(), this.initialHelperQuaternion(), this.enable();
34
- const h = (...c) => this.onSetOriginObjectScale(...c), n = (...c) => this.onSetOriginObjectRotate(...c), r = (...c) => this.onSetOriginObjectPosition(...c), i = (...c) => this.onApplyOriginObjectScale(...c), l = (...c) => this.onApplyOriginObjectRotate(...c), O = (...c) => this.onApplyOriginObjectPosition(...c);
35
- this.hooks.on("setObjectScale", h), this.hooks.on("setObjectRotate", n), this.hooks.on("setObjectPosition", r), this.hooks.on("applyObjectPosition", O), this.hooks.on("applyObjectRotate", l), this.hooks.on("applyObjectScale", i), this.disposers.push(() => {
36
- this.hooks.off("setObjectScale", h), this.hooks.off("setObjectRotate", n), this.hooks.off("setObjectPosition", r), this.hooks.off("applyObjectPosition", O), this.hooks.off("applyObjectRotate", l), this.hooks.off("applyObjectScale", i);
35
+ const c = (...i) => this.onSetOriginObjectScale(...i), s = (...i) => this.onSetOriginObjectRotate(...i), r = (...i) => this.onSetOriginObjectPosition(...i), o = (...i) => this.onApplyOriginObjectScale(...i), a = (...i) => this.onApplyOriginObjectRotate(...i), b = (...i) => this.onApplyOriginObjectPosition(...i);
36
+ this.internalHooks.on("setObjectScale", c), this.internalHooks.on("setObjectRotate", s), this.internalHooks.on("setObjectPosition", r), this.internalHooks.on("applyObjectPosition", b), this.internalHooks.on("applyObjectRotate", a), this.internalHooks.on("applyObjectScale", o), this.disposers.push(() => {
37
+ this.internalHooks.off("setObjectScale", c), this.internalHooks.off("setObjectRotate", s), this.internalHooks.off("setObjectPosition", r), this.internalHooks.off("applyObjectPosition", b), this.internalHooks.off("applyObjectRotate", a), this.internalHooks.off("applyObjectScale", o);
37
38
  });
38
39
  }
39
40
  initialHelperPosition() {
@@ -81,7 +82,7 @@ class k {
81
82
  applyHelperScaleMatrix4(e, t) {
82
83
  this.helperObject3D.applyHelperScaleMatrix4(e, t);
83
84
  }
84
- onWantsGesture(e, t, h) {
85
+ onWantsGesture(e, t, c) {
85
86
  if (this.isDragging)
86
87
  return !1;
87
88
  }
@@ -124,77 +125,77 @@ class k {
124
125
  }
125
126
  updateOffsetByScale(e) {
126
127
  if (this.boundingBox && this.offset) {
127
- const t = this.originObject3D.position, h = new p.Vector3().subVectors(this.boundingBox.max, t).multiply(e).add(t), n = new p.Vector3().subVectors(this.boundingBox.min, t).multiply(e).add(t), r = this.calculateOffset(this.offset, { min: n, max: h });
128
+ const t = this.originObject3D.position, c = new h.Vector3().subVectors(this.boundingBox.max, t).multiply(e).add(t), s = new h.Vector3().subVectors(this.boundingBox.min, t).multiply(e).add(t), r = this.calculateOffset(this.offset, { min: s, max: c });
128
129
  this.helperObject3D.position.copy(r), this.helperObject3D.initialPosition();
129
130
  }
130
131
  }
131
- hoverListener(e, t = 16777215, h = 1) {
132
- const n = (Array.isArray(e) ? e : [e]).filter(m), r = [];
133
- for (const i of n)
134
- if (i instanceof p.Mesh || i instanceof p.Group) {
135
- const l = i instanceof p.Group ? i.children.filter((o) => o instanceof p.Mesh) : [i];
136
- l.forEach((o) => {
137
- o.__originalColor__ = o.material.color.clone(), o.__originalOpacity__ = o.material.opacity;
132
+ hoverListener(e, t = 16777215, c = 1) {
133
+ const s = (Array.isArray(e) ? e : [e]).filter(m), r = [];
134
+ for (const o of s)
135
+ if (o instanceof h.Mesh || o instanceof h.Group) {
136
+ const a = o instanceof h.Group ? o.children.filter((i) => i instanceof h.Mesh) : [o];
137
+ a.forEach((i) => {
138
+ i.__originalColor__ = i.material.color.clone(), i.__originalOpacity__ = i.material.opacity;
138
139
  });
139
- const O = () => {
140
- l.forEach((o) => {
141
- o.material.color.set(t), o.material.opacity = h;
140
+ const b = () => {
141
+ a.forEach((i) => {
142
+ i.material.color.set(t), i.material.opacity = c;
142
143
  }), this.render();
143
- }, a = () => {
144
- l.forEach((o) => {
145
- o.material.color.copy(o.__originalColor__), o.material.opacity = o.__originalOpacity__;
144
+ }, l = () => {
145
+ a.forEach((i) => {
146
+ i.material.color.copy(i.__originalColor__), i.material.opacity = i.__originalOpacity__;
146
147
  }), this.render();
148
+ }, O = () => {
149
+ this.isDragging || b();
147
150
  }, d = () => {
148
- this.isDragging || O();
149
- }, c = () => {
150
- this.isDragging || a();
151
+ this.isDragging || l();
151
152
  };
152
- for (const o of l)
153
- this.domEvents.addEventListener(o, "mouseover", d), this.domEvents.addEventListener(o, "mouseout", c), this.hooks.on("moveStart", O), this.hooks.on("moveEnd", a), this.hooks.on("rotateEnd", a), r.push(() => {
154
- this.domEvents.removeEventListener(o, "mouseover", d), this.domEvents.removeEventListener(o, "mouseout", c), this.hooks.off("moveStart", O), this.hooks.off("moveEnd", a), this.hooks.off("rotateEnd", a);
153
+ for (const i of a)
154
+ this.domEvents.addEventListener(i, "mouseover", O), this.domEvents.addEventListener(i, "mouseout", d), this.hooks.on("moveStart", b), this.hooks.on("moveEnd", l), this.hooks.on("rotateEnd", l), r.push(() => {
155
+ this.domEvents.removeEventListener(i, "mouseover", O), this.domEvents.removeEventListener(i, "mouseout", d), this.hooks.off("moveStart", b), this.hooks.off("moveEnd", l), this.hooks.off("rotateEnd", l);
155
156
  });
156
157
  }
157
- return () => r.forEach((i) => i == null ? void 0 : i());
158
+ return () => r.forEach((o) => o == null ? void 0 : o());
158
159
  }
159
160
  getIntersectObject(e) {
160
- const t = this.camera.position, h = this.helperObject3D;
161
- if (!h)
161
+ const t = this.camera.position, c = this.helperObject3D;
162
+ if (!c)
162
163
  return;
163
- const n = this.helperObject3D.raycasterIntersectObject(e)[0];
164
- if (!n)
164
+ const s = this.helperObject3D.raycasterIntersectObject(e)[0];
165
+ if (!s)
165
166
  return;
166
- const r = n;
167
- if (r.object = h, this.model.intersectRaycaster) {
168
- const i = this.model.intersectRaycaster(e)[0];
169
- if (i && i.point.distanceTo(t) < r.point.distanceTo(t))
167
+ const r = s;
168
+ if (r.object = c, this.model.intersectRaycaster) {
169
+ const o = this.model.intersectRaycaster(e)[0];
170
+ if (o && o.point.distanceTo(t) < r.point.distanceTo(t))
170
171
  return;
171
172
  }
172
173
  return r.object;
173
174
  }
174
175
  calculateOffset(e, t) {
175
- const h = this.originObject3D, n = new p.Vector3(0, 0, 0);
176
+ const c = this.originObject3D, s = new h.Vector3(0, 0, 0);
176
177
  if (!e)
177
- return n;
178
- const r = () => t || (this.boundingBox ? this.boundingBox : (this.boundingBox = g(h), this.boundingBox));
178
+ return s;
179
+ const r = () => t || (this.boundingBox ? this.boundingBox : (this.boundingBox = g(c), this.boundingBox));
179
180
  if (typeof e.x == "number")
180
- n.setX(e.x);
181
+ s.setX(e.x);
181
182
  else if (typeof e.x == "object") {
182
- const i = r();
183
- n.setX((i.max.x - i.min.x) * e.x.percents);
183
+ const o = r();
184
+ s.setX((o.max.x - o.min.x) * e.x.percents);
184
185
  }
185
186
  if (typeof e.y == "number")
186
- n.setY(e.y);
187
+ s.setY(e.y);
187
188
  else if (typeof e.y == "object") {
188
- const i = r();
189
- n.setY((i.max.y - i.min.y) * e.y.percents);
189
+ const o = r();
190
+ s.setY((o.max.y - o.min.y) * e.y.percents);
190
191
  }
191
192
  if (typeof e.z == "number")
192
- n.setZ(e.z);
193
+ s.setZ(e.z);
193
194
  else if (typeof e.z == "object") {
194
- const i = r();
195
- n.setZ((i.max.z - i.min.z) * e.z.percents);
195
+ const o = r();
196
+ s.setZ((o.max.z - o.min.z) * e.z.percents);
196
197
  }
197
- return n;
198
+ return s;
198
199
  }
199
200
  }
200
201
  export {
@@ -5,26 +5,25 @@ export declare class MoveController<T extends MoveHelperAbstract = MoveHelperAbs
5
5
  get moveByMouseEnable(): boolean;
6
6
  protected name: string;
7
7
  private startInfo?;
8
- private _moveByMouseEnable;
8
+ private _moveByMouse;
9
9
  private mouseInfo?;
10
10
  private mousedownEventListenerDisposer;
11
11
  constructor(...params: ConstructorParameters<typeof BaseController<T>>);
12
12
  dispose(): void;
13
13
  /**
14
14
  * @description: 跟随鼠标移动
15
+ * @param {boolean} params.useFaceNormal 是否使用面的法线,默认为false
16
+ * @param {boolean} params.useFaceNormal.enable 是否使用面的法线,默认为true
17
+ * @param {Vector3} params.useFaceNormal.alignmentVector 期望对齐的方向,默认为Y轴对齐Face的法向向量,即 `{ x: 0, y: 1, z: 0 }`
15
18
  */
16
- moveByMouse(): void;
19
+ moveByMouse(params?: {
20
+ useFaceNormal: InstanceType<typeof MoveController>['_moveByMouse']['useFaceNormal'];
21
+ }): void;
17
22
  /**
18
23
  * @description: 禁用跟随鼠标移动
19
24
  */
20
25
  disableMoveByMouse(): void;
21
- onIntersectionOnModelUpdate(intersection: {
22
- point: THREE.Vector3;
23
- }): void;
24
- protected onApplyOriginObjectScale(params: {
25
- matrix: THREE.Matrix4;
26
- origin?: THREE.Vector3;
27
- }): void;
26
+ onIntersectionOnModelUpdate(intersection: THREE.Intersection): void;
28
27
  private handleMouseDown;
29
28
  private handleMouseUp;
30
29
  /**
@@ -1,26 +1,28 @@
1
- var p = Object.defineProperty;
2
- var v = (c, i, e) => i in c ? p(c, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[i] = e;
3
- var u = (c, i, e) => (v(c, typeof i != "symbol" ? i + "" : i, e), e);
1
+ var v = Object.defineProperty;
2
+ var p = (m, h, e) => h in m ? v(m, h, { enumerable: !0, configurable: !0, writable: !0, value: e }) : m[h] = e;
3
+ var d = (m, h, e) => (p(m, typeof h != "symbol" ? h + "" : h, e), e);
4
4
  import { BaseController as f } from "../Base/BaseController.js";
5
- import * as m from "three";
5
+ import * as u from "three";
6
6
  import { getMouseRaycaster as g } from "../utils/getMouseRaycaster.js";
7
7
  class w extends f {
8
8
  constructor(...e) {
9
9
  super(...e);
10
- u(this, "name", "MoveController");
11
- u(this, "startInfo");
12
- u(this, "_moveByMouseEnable", !1);
13
- u(this, "mouseInfo");
14
- u(this, "mousedownEventListenerDisposer");
10
+ d(this, "name", "MoveController");
11
+ d(this, "startInfo");
12
+ d(this, "_moveByMouse", {
13
+ enabled: !1
14
+ });
15
+ d(this, "mouseInfo");
16
+ d(this, "mousedownEventListenerDisposer");
15
17
  const t = this.helperObject3D;
16
18
  this.hoverListener([t.xArrow, t.yArrow, t.zArrow]);
17
- const o = this.dragStart.bind(this), r = this.dragging.bind(this), a = this.dragEnd.bind(this), s = this.show.bind(this), n = this.hide.bind(this);
18
- this.domEvents.addEventListener(this.helperObject3D, "mousedown", o), document.addEventListener("mousemove", r), document.addEventListener("mouseup", a), this.hooks.on("rotateStart", n), this.hooks.on("rotateEnd", s), this.hooks.on("moveByMouseEnable", n), this.hooks.on("moveByMouseDisable", s), this.disposers.push(() => {
19
- this.domEvents.removeEventListener(this.helperObject3D, "mousedown", o), document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", a), this.hooks.off("rotateStart", n), this.hooks.off("rotateEnd", s), this.hooks.off("moveByMouseEnable", n), this.hooks.off("moveByMouseDisable", s);
19
+ const o = this.dragStart.bind(this), a = this.dragging.bind(this), r = this.dragEnd.bind(this), s = this.show.bind(this), n = this.hide.bind(this);
20
+ this.domEvents.addEventListener(this.helperObject3D, "mousedown", o), document.addEventListener("mousemove", a), document.addEventListener("mouseup", r), this.hooks.on("rotateStart", n), this.hooks.on("rotateEnd", s), this.hooks.on("moveByMouseEnable", n), this.hooks.on("moveByMouseDisable", s), this.disposers.push(() => {
21
+ this.domEvents.removeEventListener(this.helperObject3D, "mousedown", o), document.removeEventListener("mousemove", a), document.removeEventListener("mouseup", r), this.hooks.off("rotateStart", n), this.hooks.off("rotateEnd", s), this.hooks.off("moveByMouseEnable", n), this.hooks.off("moveByMouseDisable", s);
20
22
  }), this.moveByMouseEnable && this.moveByMouse();
21
23
  }
22
24
  get moveByMouseEnable() {
23
- return this._moveByMouseEnable;
25
+ return this._moveByMouse.enabled;
24
26
  }
25
27
  dispose() {
26
28
  var e;
@@ -28,14 +30,17 @@ class w extends f {
28
30
  }
29
31
  /**
30
32
  * @description: 跟随鼠标移动
33
+ * @param {boolean} params.useFaceNormal 是否使用面的法线,默认为false
34
+ * @param {boolean} params.useFaceNormal.enable 是否使用面的法线,默认为true
35
+ * @param {Vector3} params.useFaceNormal.alignmentVector 期望对齐的方向,默认为Y轴对齐Face的法向向量,即 `{ x: 0, y: 1, z: 0 }`
31
36
  */
32
- moveByMouse() {
33
- this._moveByMouseEnable = !0, this.preventTapDefaultEvent = !0;
34
- const e = this.handleMouseDown.bind(this), t = this.handleMouseUp.bind(this);
37
+ moveByMouse(e) {
38
+ this._moveByMouse = { enabled: !0, useFaceNormal: e == null ? void 0 : e.useFaceNormal }, this.preventTapDefaultEvent = !0;
39
+ const t = this.handleMouseDown.bind(this), o = this.handleMouseUp.bind(this);
35
40
  this.hooks.emit("moveByMouseEnable"), setTimeout(() => {
36
- this.container.addEventListener("mousedown", e), this.container.addEventListener("mouseup", t);
41
+ this.container.addEventListener("mousedown", t), this.container.addEventListener("mouseup", o);
37
42
  }), this.mousedownEventListenerDisposer = () => {
38
- this.container.removeEventListener("mousedown", e), this.container.removeEventListener("mouseup", t);
43
+ this.container.removeEventListener("mousedown", t), this.container.removeEventListener("mouseup", o);
39
44
  };
40
45
  }
41
46
  /**
@@ -43,12 +48,22 @@ class w extends f {
43
48
  */
44
49
  disableMoveByMouse() {
45
50
  var e;
46
- this._moveByMouseEnable = !1, this.preventTapDefaultEvent = !1, this.hooks.emit("moveByMouseDisable"), (e = this.mousedownEventListenerDisposer) == null || e.call(this);
51
+ this._moveByMouse = { enabled: !1 }, this.preventTapDefaultEvent = !1, this.hooks.emit("moveByMouseDisable"), (e = this.mousedownEventListenerDisposer) == null || e.call(this);
47
52
  }
48
53
  onIntersectionOnModelUpdate(e) {
49
- !this.moveByMouseEnable || this.hooks.emit("wantToMove", e.point) || (this.originObject3D.position.copy(e.point), this.hooks.emit("setObjectPosition", e.point), this.hooks.emit("move", e.point));
50
- }
51
- onApplyOriginObjectScale(e) {
54
+ var r, s, n, l;
55
+ if (!this.moveByMouseEnable)
56
+ return;
57
+ const { point: t, face: o } = e;
58
+ if (!this.hooks.emit("wantToMove", t)) {
59
+ if (this.originObject3D.position.copy(t), (this._moveByMouse.useFaceNormal === !0 || typeof this._moveByMouse.useFaceNormal == "object" && this._moveByMouse.useFaceNormal.enable !== !1) && o != null && o.normal) {
60
+ let i = { x: 0, y: 1, z: 0 };
61
+ typeof this._moveByMouse.useFaceNormal == "object" && (i = (r = this._moveByMouse.useFaceNormal.alignmentVector) != null ? r : i);
62
+ const c = new u.Vector3((s = i.x) != null ? s : 0, (n = i.y) != null ? n : 0, (l = i.z) != null ? l : 0);
63
+ this.originObject3D.quaternion.setFromUnitVectors(c, o.normal), this.internalHooks.emit("setObjectRotate", this.originObject3D.quaternion.clone());
64
+ }
65
+ this.internalHooks.emit("setObjectPosition", t), this.hooks.emit("move", t);
66
+ }
52
67
  }
53
68
  handleMouseDown(e) {
54
69
  const { x: t, y: o } = e;
@@ -64,7 +79,7 @@ class w extends f {
64
79
  * @description: 拖动开始,找出拖的Direction
65
80
  */
66
81
  dragStart(e) {
67
- if (this._moveByMouseEnable || this.isDragging)
82
+ if (this.moveByMouseEnable || this.isDragging)
68
83
  return;
69
84
  const t = e == null ? void 0 : e.intersect;
70
85
  if (!t)
@@ -72,12 +87,12 @@ class w extends f {
72
87
  const o = (t == null ? void 0 : t.object).direction;
73
88
  if (!o)
74
89
  return this.dragEnd();
75
- const r = new m.Vector3(1, 0, 0).applyQuaternion(this.helperObject3D.quaternion), a = new m.Vector3(0, 1, 0).applyQuaternion(this.helperObject3D.quaternion), s = new m.Vector3(0, 0, 1).applyQuaternion(this.helperObject3D.quaternion), n = (() => {
90
+ const a = new u.Vector3(1, 0, 0).applyQuaternion(this.helperObject3D.quaternion), r = new u.Vector3(0, 1, 0).applyQuaternion(this.helperObject3D.quaternion), s = new u.Vector3(0, 0, 1).applyQuaternion(this.helperObject3D.quaternion), n = (() => {
76
91
  switch (o) {
77
92
  case "x":
78
- return r;
79
- case "y":
80
93
  return a;
94
+ case "y":
95
+ return r;
81
96
  case "z":
82
97
  return s;
83
98
  }
@@ -87,10 +102,10 @@ class w extends f {
87
102
  case "y":
88
103
  return s;
89
104
  case "z":
90
- return r;
105
+ return a;
91
106
  }
92
- })(), h = t.point.clone(), d = new m.Plane();
93
- d.setFromNormalAndCoplanarPoint(l, h), this.startInfo = { startVectorProject: h.clone().projectOnVector(n), directionVector: n, plane: d }, this.helperObject3D.showDraggingHelper([o]), this.hooks.emit("moveStart"), this.isDragging = !0;
107
+ })(), i = t.point.clone(), c = new u.Plane();
108
+ c.setFromNormalAndCoplanarPoint(l, i), this.startInfo = { startVectorProject: i.clone().projectOnVector(n), directionVector: n, plane: c }, this.helperObject3D.showDraggingHelper([o]), this.hooks.emit("moveStart"), this.isDragging = !0;
94
109
  }
95
110
  dragging(e) {
96
111
  if (!this.isDragging || !this.startInfo)
@@ -101,13 +116,13 @@ class w extends f {
101
116
  move(e) {
102
117
  if (!this.startInfo)
103
118
  return this.dragEnd();
104
- const { plane: t, directionVector: o, startVectorProject: r } = this.startInfo, a = this.originObject3D, s = e.ray.intersectPlane(t, new m.Vector3());
119
+ const { plane: t, directionVector: o, startVectorProject: a } = this.startInfo, r = this.originObject3D, s = e.ray.intersectPlane(t, new u.Vector3());
105
120
  if (!s)
106
121
  return;
107
- const n = s.clone().projectOnVector(o), l = n.clone().sub(r), h = new m.Matrix4();
108
- h.setPosition(l);
109
- const d = a.position.clone().applyMatrix4(h);
110
- this.hooks.emit("wantToMove", d) || (a.applyMatrix4(h), r.copy(n), this.hooks.emit("applyObjectPosition", { matrix: h }), this.hooks.emit("move", d));
122
+ const n = s.clone().projectOnVector(o), l = n.clone().sub(a), i = new u.Matrix4();
123
+ i.setPosition(l);
124
+ const c = r.position.clone().applyMatrix4(i);
125
+ this.hooks.emit("wantToMove", c) || (r.applyMatrix4(i), a.copy(n), this.internalHooks.emit("applyObjectPosition", { matrix: i }), this.hooks.emit("move", c));
111
126
  }
112
127
  dragEnd() {
113
128
  this.isDragging && (this.startInfo = void 0, this.isDragging = !1, this.helperObject3D.show(), this.hooks.emit("moveEnd"));
@@ -102,10 +102,10 @@ class _ extends Y {
102
102
  case "nwse":
103
103
  x(), S();
104
104
  }
105
- const L = new o().subVectors(n[1], n[0]).length() / D.length(), R = new o().subVectors(n[3], n[0]).length() / y.length(), q = new o(L, R, 1), u = new m.Matrix4().scale(q);
105
+ const H = new o().subVectors(n[1], n[0]).length() / D.length(), L = new o().subVectors(n[3], n[0]).length() / y.length(), R = new o(H, L, 1), u = new m.Matrix4().scale(R);
106
106
  s.isCSS3DObjectPlus ? s.applyScaleMatrix4(u) : s.scale.applyMatrix4(u), f.position.copy(g);
107
- const F = new o().addVectors(n[0], n[2]).divideScalar(2), H = new o().subVectors(F, I), d = new m.Matrix4().setPosition(H);
108
- s.applyMatrix4(d), (C = this.helperObject3D.css3DInstance) == null || C.css3DObject.applyMatrix4(d), (E = this.helperObject3D.plane) == null || E.applyMatrix4(d), this.hooks.emit("applyObjectScale", { matrix: u }), this.hooks.emit("applyObjectPosition", { matrix: d }), this.render();
107
+ const q = new o().addVectors(n[0], n[2]).divideScalar(2), F = new o().subVectors(q, I), d = new m.Matrix4().setPosition(F);
108
+ s.applyMatrix4(d), (C = this.helperObject3D.css3DInstance) == null || C.css3DObject.applyMatrix4(d), (E = this.helperObject3D.plane) == null || E.applyMatrix4(d), this.internalHooks.emit("applyObjectScale", { matrix: u }), this.internalHooks.emit("applyObjectPosition", { matrix: d }), this.render();
109
109
  }
110
110
  dragEnd() {
111
111
  this.isDragging && (this.startInfo = void 0, this.isDragging = !1, this.hooks.emit("scaleEnd"), this.render());
@@ -32,7 +32,7 @@ class P extends v {
32
32
  if (this.hooks.emit("wantToRotate", r))
33
33
  return;
34
34
  const { originObject3D: c, rotateCenter: l } = this;
35
- w(c, r, l), this.hooks.emit("setObjectRotate", r, l), this.hooks.emit("rotate", r), this.render();
35
+ w(c, r, l), this.internalHooks.emit("setObjectRotate", r, l), this.hooks.emit("rotate", r), this.render();
36
36
  }
37
37
  dispose() {
38
38
  this.removeListener(), super.dispose();
@@ -97,10 +97,10 @@ class P extends v {
97
97
  const j = new s.Vector3().subVectors(a.position, l).applyQuaternion(m).add(l);
98
98
  a.position.copy(j);
99
99
  }
100
- a.applyQuaternion(m), this.hooks.emit("applyObjectRotate", { quaternion: m, origin: l }), this.hooks.emit("rotate", a.quaternion), this.startInfo.startVector = u;
100
+ a.applyQuaternion(m), this.internalHooks.emit("applyObjectRotate", { quaternion: m, origin: l }), this.hooks.emit("rotate", a.quaternion), this.startInfo.startVector = u;
101
101
  }
102
102
  dragEnd() {
103
- this.isDragging && (this.hooks.emit("setObjectRotate", this.originObject3D.quaternion, this.rotateCenter), this.startInfo = void 0, this.isDragging = !1, this.helperObject3D.show(), this.hooks.emit("rotateEnd"));
103
+ this.isDragging && (this.internalHooks.emit("setObjectRotate", this.originObject3D.quaternion, this.rotateCenter), this.startInfo = void 0, this.isDragging = !1, this.helperObject3D.show(), this.hooks.emit("rotateEnd"));
104
104
  }
105
105
  getAngleHelper(n) {
106
106
  var e, t, i;
@@ -1,19 +1,19 @@
1
- var h = Object.defineProperty;
2
- var f = (o, t, e) => t in o ? h(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
3
- var a = (o, t, e) => (f(o, typeof t != "symbol" ? t + "" : t, e), e);
1
+ var f = Object.defineProperty;
2
+ var h = (o, t, e) => t in o ? f(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
3
+ var m = (o, t, e) => (h(o, typeof t != "symbol" ? t + "" : t, e), e);
4
4
  import { BaseController as p } from "../Base/BaseController.js";
5
5
  import * as y from "three";
6
6
  class u extends p {
7
7
  constructor(...e) {
8
8
  super(...e);
9
- a(this, "name", "ScaleController");
9
+ m(this, "name", "ScaleController");
10
10
  }
11
11
  setScale(e) {
12
- var i, l, m;
13
- let c = 1, n = 1, s = 1;
14
- typeof e == "number" ? (c = e, n = e, s = e) : typeof e == "object" && (c = (i = e.x) != null ? i : 1, n = (l = e.y) != null ? l : 1, s = (m = e.z) != null ? m : 1);
15
- const r = new y.Vector3(c, n, s);
16
- this.hooks.emit("wantToScale", r) || (this.originObject3D.scale.copy(r), this.hooks.emit("setObjectScale", r), this.hooks.emit("scale", r), this.render());
12
+ var s, l, a;
13
+ let n = 1, c = 1, i = 1;
14
+ typeof e == "number" ? (n = e, c = e, i = e) : typeof e == "object" && (n = (s = e.x) != null ? s : 1, c = (l = e.y) != null ? l : 1, i = (a = e.z) != null ? a : 1);
15
+ const r = new y.Vector3(n, c, i);
16
+ this.hooks.emit("wantToScale", r) || (this.originObject3D.scale.copy(r), this.internalHooks.emit("setObjectScale", r), this.hooks.emit("scale", r), this.render());
17
17
  }
18
18
  }
19
19
  export {
@@ -33,8 +33,6 @@ class A extends b {
33
33
  color: 64767,
34
34
  linewidth: 1,
35
35
  opacity: 1,
36
- depthTest: !1,
37
- transparent: !0,
38
36
  toneMapped: !1
39
37
  }), a = new s.LineSegments(t, i);
40
38
  return a.matrixAutoUpdate = !1, a;
@@ -12,6 +12,10 @@ export type HelperEventMap = {
12
12
  moveEnd: () => void;
13
13
  rotateEnd: () => void;
14
14
  scaleEnd: () => void;
15
+ moveByMouseEnable: () => void;
16
+ moveByMouseDisable: () => void;
17
+ };
18
+ export type InternalHelperEventMap = {
15
19
  setObjectPosition: (position: THREE.Vector3) => void;
16
20
  setObjectRotate: (quaternion: THREE.Quaternion, origin?: THREE.Vector3) => void;
17
21
  setObjectScale: (scale: THREE.Vector3) => void;
@@ -26,8 +30,6 @@ export type HelperEventMap = {
26
30
  matrix: THREE.Matrix4;
27
31
  origin?: THREE.Vector3;
28
32
  }) => void;
29
- moveByMouseEnable: () => void;
30
- moveByMouseDisable: () => void;
31
33
  };
32
34
  export interface Object3DHelperState {
33
35
  enabled: boolean;
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.16.2",
3
+ "%c %c@realsee/dnalogel %cv3.17.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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.16.2",
3
+ "version": "3.17.1",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",