@realsee/dnalogel 2.6.6 → 2.6.7-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (369) hide show
  1. package/dist/CSS3DRenderPlugin/Controller.d.ts +1 -1
  2. package/dist/Object3DHelperPlugin/Controller.d.ts +25 -10
  3. package/dist/Object3DHelperPlugin/FiveControllerWrapper.d.ts +6 -8
  4. package/dist/Object3DHelperPlugin/typings.d.ts +14 -0
  5. package/dist/PanoTagPlugin/controller/TagCacheController.d.ts +1 -0
  6. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +22 -6
  7. package/dist/PanoTagPlugin/controller/index.d.ts +32 -6
  8. package/dist/PanoTagPlugin/typings/controller.d.ts +17 -2
  9. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +5 -2
  10. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +19 -3
  11. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +1 -1
  12. package/dist/PanoTagPlugin/utils/tag/index.d.ts +2 -0
  13. package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +2 -1
  14. package/dist/PanoTagPlugin/utils/tagPosition.d.ts +3 -1
  15. package/dist/index.cjs.js +43 -43
  16. package/dist/index.js +5075 -4664
  17. package/dist/index.umd.js +32 -32
  18. package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +41 -15
  19. package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +27 -20
  20. package/dist/shared-utils/Object3DHelper/Controller/BoundingBoxController.d.ts +7 -0
  21. package/dist/shared-utils/Object3DHelper/Controller/CSS3DScaleController.d.ts +1 -0
  22. package/dist/shared-utils/Object3DHelper/Controller/MoveController.d.ts +24 -0
  23. package/dist/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +6 -1
  24. package/dist/shared-utils/Object3DHelper/Controller/RotateController.d.ts +14 -0
  25. package/dist/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +12 -0
  26. package/dist/shared-utils/Object3DHelper/Helper/{OutlineHelper.d.ts → BoundingBoxHelper.d.ts} +3 -2
  27. package/{libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts → dist/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts} +3 -8
  28. package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +14 -11
  29. package/dist/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +5 -0
  30. package/dist/shared-utils/Object3DHelper/Helper/index.d.ts +2 -2
  31. package/dist/shared-utils/Object3DHelper/index.d.ts +4 -27
  32. package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +22 -12
  33. package/dist/shared-utils/Object3DHelper/typings/index.d.ts +22 -0
  34. package/dist/shared-utils/Object3DHelper/utils/boundingBox.d.ts +2 -0
  35. package/dist/shared-utils/three/GLTFLoader.d.ts +2 -0
  36. package/docs/assets/search.js +1 -1
  37. package/docs/classes/CSS3DRender.html +31 -31
  38. package/docs/classes/CruisePluginController.html +24 -24
  39. package/docs/classes/Magnifier.html +20 -20
  40. package/docs/classes/ModelRoomLabelController.html +11 -11
  41. package/docs/classes/Object3DHelperController.html +40 -33
  42. package/docs/classes/PaintBrush.html +15 -15
  43. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  44. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  45. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  46. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  47. package/docs/classes/PanoTagPluginController.html +205 -77
  48. package/docs/classes/Util.BetterTween.html +8 -8
  49. package/docs/classes/Util.FivePointSelector.html +12 -12
  50. package/docs/classes/Util.Interval.html +12 -12
  51. package/docs/classes/Util.Magnifier.html +17 -17
  52. package/docs/classes/Util.PointDomHelper.html +11 -11
  53. package/docs/classes/Util.PointHelper.html +11 -11
  54. package/docs/classes/Util.Rectangle.html +13 -13
  55. package/docs/enums/CameraMovementEffect.html +7 -7
  56. package/docs/enums/ContentType.html +34 -16
  57. package/docs/enums/DIRECTION.html +9 -9
  58. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  59. package/docs/enums/DimensionType.html +7 -7
  60. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  61. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  62. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  63. package/docs/enums/PointType.html +7 -7
  64. package/docs/enums/Rotation.html +8 -8
  65. package/docs/functions/CSS3DRenderPlugin.html +10 -5
  66. package/docs/functions/CameraMovementPlugin.html +10 -5
  67. package/docs/functions/CruisePlugin.html +10 -5
  68. package/docs/functions/GuideLinePlugin.html +10 -5
  69. package/docs/functions/ItemLabelPlugin.html +10 -5
  70. package/docs/functions/MapviewFloorplanPlugin.html +10 -5
  71. package/docs/functions/ModelChassisCompassPlugin.html +10 -5
  72. package/docs/functions/ModelEntryDoorGuidePlugin.html +10 -5
  73. package/docs/functions/ModelFloorplanPlugin.html +10 -5
  74. package/docs/functions/ModelItemLabelPlugin.html +10 -5
  75. package/docs/functions/ModelRoomLabelPlugin.html +10 -5
  76. package/docs/functions/ModelTVVideoPlugin.html +10 -5
  77. package/docs/functions/ModelViewPlugin.html +10 -5
  78. package/docs/functions/Object3DHelperPlugin.html +10 -5
  79. package/docs/functions/PanoCompassPlugin.html +10 -5
  80. package/docs/functions/PanoCursorRaycasterPlugin.html +10 -5
  81. package/docs/functions/PanoDoorLabelPlugin.html +10 -5
  82. package/docs/functions/PanoFloorplanRadarPlugin.html +10 -5
  83. package/docs/functions/PanoMeasurePlugin.html +10 -5
  84. package/docs/functions/PanoRulerPlugin.html +10 -5
  85. package/docs/functions/PanoRulerProPlugin.html +10 -5
  86. package/docs/functions/PanoSpatialTagPlugin.html +10 -5
  87. package/docs/functions/PanoTagPlugin.html +15 -10
  88. package/docs/functions/TopviewFloorplanPlugin.html +10 -5
  89. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  90. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  91. package/docs/functions/Util.getFrameTime.html +5 -5
  92. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  93. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  94. package/docs/functions/Util.isNil.html +5 -5
  95. package/docs/functions/Util.nextFrame.html +5 -5
  96. package/docs/functions/Util.notNil.html +5 -5
  97. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  98. package/docs/functions/Util.tweenProgress.html +5 -5
  99. package/docs/functions/pluginFlag.html +10 -5
  100. package/docs/index.html +9 -4
  101. package/docs/interfaces/AddTagConfig.html +6 -6
  102. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  103. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  104. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  105. package/docs/interfaces/EventMap.html +19 -19
  106. package/docs/interfaces/FloorplanBounding.html +8 -8
  107. package/docs/interfaces/FloorplanData.html +10 -10
  108. package/docs/interfaces/FloorplanEntrance.html +11 -11
  109. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  110. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  111. package/docs/interfaces/FloorplanFloorData.html +9 -9
  112. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  113. package/docs/interfaces/FloorplanObserver.html +9 -9
  114. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  115. package/docs/interfaces/FloorplanPosition.html +7 -7
  116. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  117. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  118. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  119. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  120. package/docs/interfaces/FloorplanServerData.html +7 -7
  121. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  122. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  123. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  124. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  125. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  126. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  127. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  128. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  129. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  130. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  131. package/docs/interfaces/HelperOffset.html +78 -0
  132. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  133. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  134. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  135. package/docs/interfaces/MinMax.html +7 -7
  136. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  137. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  138. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  139. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  140. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  141. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  142. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  143. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  144. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  145. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  146. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  147. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  148. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  149. package/docs/interfaces/Object3DHelperState.html +8 -8
  150. package/docs/interfaces/ObjectHelperControllers.html +85 -0
  151. package/docs/interfaces/PaintBrushAction.html +12 -12
  152. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  153. package/docs/interfaces/PaintBrushState.html +10 -10
  154. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  155. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +10 -5
  156. package/docs/interfaces/PanoMeasureParameterType.html +12 -12
  157. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  158. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  159. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  160. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  161. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  162. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  163. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  164. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  165. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  166. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  167. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  168. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +10 -5
  169. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +10 -5
  170. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  171. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  172. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  173. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  174. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  175. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  176. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  177. package/docs/interfaces/Point.html +8 -8
  178. package/docs/interfaces/Room.html +9 -9
  179. package/docs/interfaces/RoomInfo.html +7 -7
  180. package/docs/interfaces/RoomLabel.html +14 -14
  181. package/docs/interfaces/RoomRules.html +10 -5
  182. package/docs/interfaces/Rooms.html +10 -5
  183. package/docs/interfaces/Scissor.html +9 -9
  184. package/docs/interfaces/State.html +8 -8
  185. package/docs/interfaces/TagCache.html +25 -16
  186. package/docs/interfaces/TagConfig.html +10 -10
  187. package/docs/interfaces/TagIconUrl.html +9 -9
  188. package/docs/interfaces/Tags.html +11 -11
  189. package/docs/interfaces/TemporaryState.html +6 -6
  190. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  191. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  192. package/docs/modules/Util.html +5 -5
  193. package/docs/modules.html +14 -4
  194. package/docs/types/ArrayPosition.html +10 -5
  195. package/docs/types/AudioAppearance.html +10 -5
  196. package/docs/types/AudioTagTypeConfigKey.html +10 -5
  197. package/docs/types/CSS3DRenderExportType.html +10 -5
  198. package/docs/types/CSS3DRenderPluginExportType.html +10 -5
  199. package/docs/types/CSS3DRenderPluginParameterType.html +10 -5
  200. package/docs/types/ClassFunctionParameters.html +268 -0
  201. package/docs/types/Color.html +10 -5
  202. package/docs/types/ContentTypeConfigKey.html +10 -5
  203. package/docs/types/ContentTypeConfigKeySplit.html +10 -5
  204. package/docs/types/ContentTypeMap.html +10 -5
  205. package/docs/types/Create3DDomContainerReturnType.html +10 -5
  206. package/docs/types/Create3DElementReturnType.html +10 -5
  207. package/docs/types/CruisePluginExportType.html +10 -5
  208. package/docs/types/Direction-1.html +10 -5
  209. package/docs/types/Direction4.html +10 -5
  210. package/docs/types/FloorplanRuleLabels.html +10 -5
  211. package/docs/types/FloorplanServerRuleLabels.html +10 -5
  212. package/docs/types/GuideLinePluginExportType.html +10 -5
  213. package/docs/types/HelperEventMap.html +174 -21
  214. package/docs/types/LoadTagConfig.html +10 -5
  215. package/docs/types/MapviewFloorplanPluginParameterType.html +10 -5
  216. package/docs/types/MapviewFloorplanPluginReturnType.html +10 -5
  217. package/docs/types/MediaData.html +10 -5
  218. package/docs/types/MediaStore.html +10 -5
  219. package/docs/types/ModelElement.html +266 -0
  220. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +10 -5
  221. package/docs/types/ModelFloorplanPluginParameterType.html +10 -5
  222. package/docs/types/ModelFloorplanPluginReturnType.html +10 -5
  223. package/docs/types/ModelRoomLabelPluginParameters.html +10 -5
  224. package/docs/types/ModelRoomLabelPluginReturnType.html +10 -5
  225. package/docs/types/MoveArgs.html +10 -5
  226. package/docs/types/MoveOpts.html +10 -5
  227. package/docs/types/Object3DHelperEventMap.html +10 -5
  228. package/docs/types/ObjectFit.html +10 -5
  229. package/docs/types/PaintBrushEventMap.html +10 -5
  230. package/docs/types/PanoCompassPluginData.html +10 -5
  231. package/docs/types/PanoCompassPluginExportType.html +10 -5
  232. package/docs/types/PanoCompassPluginParameterType.html +10 -5
  233. package/docs/types/PanoFloorplanRadarPluginParameterType.html +10 -5
  234. package/docs/types/PanoFloorplanRadarPluginReturnType.html +10 -5
  235. package/docs/types/PanoIndex.html +10 -5
  236. package/docs/types/PanoMeasurePluginEvent.html +10 -5
  237. package/docs/types/PanoMeasureReturnType.html +10 -5
  238. package/docs/types/PanoSpatialTagPluginId.html +10 -5
  239. package/docs/types/PanoTagPluginExportInterface.html +10 -5
  240. package/docs/types/PanoTagPluginParamsInterface.html +10 -5
  241. package/docs/types/PlaneTag.html +10 -5
  242. package/docs/types/PlaneTagElement.html +10 -5
  243. package/docs/types/Point2DElement.html +10 -5
  244. package/docs/types/Point2DTag.html +10 -5
  245. package/docs/types/Point3DElement.html +10 -5
  246. package/docs/types/Point3DTag.html +10 -5
  247. package/docs/types/PointTag.html +10 -5
  248. package/docs/types/PointTagElement.html +10 -5
  249. package/docs/types/Position.html +10 -5
  250. package/docs/types/RotateArgs.html +10 -5
  251. package/docs/types/RotateOpts.html +10 -5
  252. package/docs/types/RuleLabelsKey.html +10 -5
  253. package/docs/types/RuleLabelsValue.html +10 -5
  254. package/docs/types/StickType.html +11 -6
  255. package/docs/types/Tag.html +11 -6
  256. package/docs/types/Tag2D.html +10 -5
  257. package/docs/types/Tag3D.html +10 -5
  258. package/docs/types/TagContentType.html +11 -6
  259. package/docs/types/TagDimensionType.html +10 -5
  260. package/docs/types/TagElement.html +11 -6
  261. package/docs/types/TagEvents.html +10 -5
  262. package/docs/types/TagGLTFObject.html +261 -0
  263. package/docs/types/TagHooks.html +10 -5
  264. package/docs/types/TagIconSize.html +10 -5
  265. package/docs/types/TagId.html +10 -5
  266. package/docs/types/TagPointType.html +10 -5
  267. package/docs/types/TopviewFloorplanPluginParameterType.html +10 -5
  268. package/docs/types/TopviewFloorplanPluginReturnType.html +10 -5
  269. package/docs/types/WorkCode.html +10 -5
  270. package/docs/variables/FLOOR_TYPE_MAP.html +10 -5
  271. package/docs/variables/PLUGIN.html +10 -5
  272. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +10 -5
  273. package/docs/variables/ROOM_TYPE_MAP.html +10 -5
  274. package/docs/variables/VERSION.html +10 -5
  275. package/docs/variables/itemLabelPluginServerParams.html +10 -5
  276. package/docs/variables/modelItemLabelPluginServerParams.html +10 -5
  277. package/docs/variables/modelRoomLabelPluginServerParams.html +10 -5
  278. package/libs/CSS3DRenderPlugin/CSS3DRender.js +43 -43
  279. package/libs/CSS3DRenderPlugin/Controller.d.ts +1 -1
  280. package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +15 -14
  281. package/libs/Object3DHelperPlugin/Controller.d.ts +25 -10
  282. package/libs/Object3DHelperPlugin/Controller.js +117 -97
  283. package/libs/Object3DHelperPlugin/FiveControllerWrapper.d.ts +6 -8
  284. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +29 -22
  285. package/libs/Object3DHelperPlugin/index.js +16 -11
  286. package/libs/Object3DHelperPlugin/typings.d.ts +14 -0
  287. package/libs/PanoTagPlugin/Components/Common/Media.js +3 -2
  288. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +3 -2
  289. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +3 -2
  290. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +3 -2
  291. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +3 -2
  292. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +12 -11
  293. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +33 -33
  294. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +3 -2
  295. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +12 -11
  296. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +26 -25
  297. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +29 -28
  298. package/libs/PanoTagPlugin/Components/Tag/index.js +126 -119
  299. package/libs/PanoTagPlugin/Components/TagContainer.js +4 -2
  300. package/libs/PanoTagPlugin/Components/TagItem.js +4 -2
  301. package/libs/PanoTagPlugin/controller/TagCacheController.d.ts +1 -0
  302. package/libs/PanoTagPlugin/controller/TagCacheController.js +14 -12
  303. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +22 -6
  304. package/libs/PanoTagPlugin/controller/TagComputer.js +242 -176
  305. package/libs/PanoTagPlugin/controller/index.d.ts +32 -6
  306. package/libs/PanoTagPlugin/controller/index.js +176 -91
  307. package/libs/PanoTagPlugin/index.js +15 -12
  308. package/libs/PanoTagPlugin/tag.config.js +9 -0
  309. package/libs/PanoTagPlugin/typings/controller.d.ts +17 -2
  310. package/libs/PanoTagPlugin/typings/controller.js +1 -1
  311. package/libs/PanoTagPlugin/typings/index.js +6 -5
  312. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +5 -2
  313. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +19 -3
  314. package/libs/PanoTagPlugin/typings/tag/TagData.js +1 -1
  315. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +1 -1
  316. package/libs/PanoTagPlugin/utils/addDebugPoints.js +5 -4
  317. package/libs/PanoTagPlugin/utils/color.js +5 -5
  318. package/libs/PanoTagPlugin/utils/index.js +37 -34
  319. package/libs/PanoTagPlugin/utils/planeNormal.js +3 -2
  320. package/libs/PanoTagPlugin/utils/tag/index.d.ts +2 -0
  321. package/libs/PanoTagPlugin/utils/tag/index.js +11 -0
  322. package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +2 -1
  323. package/libs/PanoTagPlugin/utils/tag/tagCheck.js +6 -2
  324. package/libs/PanoTagPlugin/utils/tagPosition.d.ts +3 -1
  325. package/libs/PanoTagPlugin/utils/tagPosition.js +20 -8
  326. package/libs/index.js +111 -104
  327. package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +41 -15
  328. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +112 -90
  329. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +27 -20
  330. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +55 -22
  331. package/libs/shared-utils/Object3DHelper/Controller/BoundingBoxController.d.ts +7 -0
  332. package/libs/shared-utils/Object3DHelper/Controller/BoundingBoxController.js +14 -0
  333. package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.d.ts +1 -0
  334. package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +14 -10
  335. package/libs/shared-utils/Object3DHelper/Controller/MoveController.d.ts +24 -0
  336. package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +80 -37
  337. package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +6 -1
  338. package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +44 -41
  339. package/libs/shared-utils/Object3DHelper/Controller/RotateController.d.ts +14 -0
  340. package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +95 -67
  341. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +12 -0
  342. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +21 -0
  343. package/libs/shared-utils/Object3DHelper/Helper/{OutlineHelper.d.ts → BoundingBoxHelper.d.ts} +3 -2
  344. package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js +87 -0
  345. package/{dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts → libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts} +3 -8
  346. package/libs/shared-utils/Object3DHelper/Helper/{RectangleScaleHelper.js → CSS3DScaleHelper.js} +5 -7
  347. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +7 -9
  348. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +14 -11
  349. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +72 -66
  350. package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +5 -0
  351. package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.js +9 -0
  352. package/libs/shared-utils/Object3DHelper/Helper/index.d.ts +2 -2
  353. package/libs/shared-utils/Object3DHelper/Helper/index.js +0 -2
  354. package/libs/shared-utils/Object3DHelper/index.d.ts +4 -27
  355. package/libs/shared-utils/Object3DHelper/index.js +48 -96
  356. package/libs/shared-utils/Object3DHelper/typings/Hooks.d.ts +22 -12
  357. package/libs/shared-utils/Object3DHelper/typings/index.d.ts +22 -0
  358. package/libs/shared-utils/Object3DHelper/typings/index.js +2 -1
  359. package/libs/shared-utils/Object3DHelper/utils/boundingBox.d.ts +2 -0
  360. package/libs/shared-utils/Object3DHelper/utils/boundingBox.js +24 -0
  361. package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +2 -2
  362. package/libs/shared-utils/three/GLTFLoader.d.ts +2 -0
  363. package/libs/shared-utils/three/GLTFLoader.js +16 -0
  364. package/libs/typings/math.type.js +1 -0
  365. package/package.json +4 -4
  366. package/dist/shared-utils/Object3DHelper/utils/getPoint.d.ts +0 -3
  367. package/libs/shared-utils/Object3DHelper/Helper/OutlineHelper.js +0 -2
  368. package/libs/shared-utils/Object3DHelper/utils/getPoint.d.ts +0 -3
  369. package/libs/shared-utils/Object3DHelper/utils/getPoint.js +0 -1
@@ -1,94 +1,122 @@
1
- var T = Object.defineProperty;
2
- var A = (d, h, n) => h in d ? T(d, h, { enumerable: !0, configurable: !0, writable: !0, value: n }) : d[h] = n;
3
- var y = (d, h, n) => (A(d, typeof h != "symbol" ? h + "" : h, n), n);
4
- import { BaseController as O } from "../Base/BaseController.js";
1
+ var O = Object.defineProperty;
2
+ var T = (f, p, o) => p in f ? O(f, p, { enumerable: !0, configurable: !0, writable: !0, value: o }) : f[p] = o;
3
+ var m = (f, p, o) => (T(f, typeof p != "symbol" ? p + "" : p, o), o);
4
+ import { BaseController as R } from "../Base/BaseController.js";
5
5
  import * as i from "three";
6
- import { getMouseRaycaster as E } from "../utils/getMouseRaycaster.js";
7
- class C extends O {
8
- constructor(...n) {
9
- super(...n);
10
- y(this, "startInfo");
11
- y(this, "lastRotation");
12
- y(this, "rotations", []);
13
- y(this, "helperObject3DQuaternion", this.originObject3D.quaternion.clone());
6
+ import { getMouseRaycaster as A } from "../utils/getMouseRaycaster.js";
7
+ class Q extends R {
8
+ constructor(...o) {
9
+ super(...o);
10
+ m(this, "name", "RotateController");
11
+ m(this, "startInfo");
12
+ m(this, "lastRotation");
13
+ m(this, "rotations", []);
14
+ m(this, "helperObject3DQuaternion", this.originObject3D.quaternion.clone());
15
+ m(this, "removeListener");
14
16
  const t = this.helperObject3D;
15
17
  this.hoverListener([t.xyCircle, t.xzCircle, t.yzCircle]);
16
- const e = this.dragStart.bind(this), r = this.dragging.bind(this), o = this.dragEnd.bind(this);
17
- this.domEvents.addEventListener(this.helperObject3D, "mousedown", e), document.addEventListener("mousemove", r), document.addEventListener("mouseup", o);
18
+ const e = this.dragStart.bind(this), r = this.dragging.bind(this), s = this.dragEnd.bind(this), n = this.show.bind(this), c = this.hide.bind(this);
19
+ this.domEvents.addEventListener(this.helperObject3D, "mousedown", e), document.addEventListener("mousemove", r), document.addEventListener("mouseup", s), this.hooks.on("moveStart", c), this.hooks.on("moveEnd", n), this.hooks.on("moveByMouseEnable", c), this.hooks.on("moveByMouseDisable", n), this.removeListener = () => {
20
+ this.domEvents.removeEventListener(this.helperObject3D, "mousedown", e), document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", s), this.hooks.off("moveStart", c), this.hooks.off("moveEnd", n), this.hooks.off("moveByMouseEnable", c), this.hooks.off("moveByMouseDisable", n);
21
+ };
22
+ }
23
+ get rotateCenter() {
24
+ return this.helperObject3D.position.clone();
18
25
  }
19
26
  initialHelperQuaternion() {
20
27
  this.helperObject3D.updateAngleHelperQuaternion(), this.helperObject3D.applyHelperQuaternion(this.originObject3D.quaternion);
21
28
  }
22
- dragStart(n) {
29
+ setRotateAngle(o) {
30
+ const { x: t = 0, y: e = 0, z: r = 0 } = o, s = new i.Euler(Math.PI * t / 180, Math.PI * e / 180, Math.PI * r / 180), n = new i.Quaternion().setFromEuler(s);
31
+ if (this.hooks.emit("wantToRotate", n))
32
+ return;
33
+ const { originObject3D: a, rotateCenter: g } = this;
34
+ if (g) {
35
+ const l = new i.Vector3().subVectors(a.position, g).applyQuaternion(n).add(g);
36
+ a.position.copy(l);
37
+ }
38
+ a.quaternion.copy(n), this.helperObject3DQuaternion.copy(n), this.hooks.emit("setObjectRotate", n, g), this.hooks.emit("rotate", n), this.render();
39
+ }
40
+ dispose() {
41
+ this.removeListener(), super.dispose();
42
+ }
43
+ onApplyOriginObjectScale(o) {
44
+ }
45
+ dragStart(o) {
23
46
  if (this.isDragging)
24
47
  return;
25
- const t = n == null ? void 0 : n.intersect;
48
+ const t = o == null ? void 0 : o.intersect;
26
49
  if (!t)
27
50
  return this.dragEnd();
28
51
  const e = (t == null ? void 0 : t.object).direction;
29
52
  if (!e)
30
53
  return this.dragEnd();
31
54
  this.helperObject3D.updateAngleHelperQuaternion();
32
- const r = t.point, o = this.originObject3D.position.clone(), s = this.getAngleHelper(e);
55
+ const r = t.point, s = this.getAngleHelper(e);
33
56
  this.setTipsAngle(0);
34
- const l = r.clone();
35
- l.y += 0.2, this.setTipsPosition(l);
36
- const g = new i.Vector3(1, 0, 0).applyQuaternion(this.helperObject3DQuaternion), j = new i.Vector3(0, 1, 0).applyQuaternion(this.helperObject3DQuaternion), D = new i.Vector3(0, 0, 1).applyQuaternion(this.helperObject3DQuaternion), a = (() => {
57
+ const n = r.clone();
58
+ n.y += 0.2, this.setTipsPosition(n);
59
+ const c = new i.Vector3(1, 0, 0).applyQuaternion(this.helperObject3DQuaternion), a = new i.Vector3(0, 1, 0).applyQuaternion(this.helperObject3DQuaternion), g = new i.Vector3(0, 0, 1).applyQuaternion(this.helperObject3DQuaternion), l = (() => {
37
60
  switch (e) {
38
61
  case "x":
39
- return g;
62
+ return c;
40
63
  case "y":
41
- return j;
64
+ return a;
42
65
  case "z":
43
- return D;
66
+ return g;
44
67
  }
45
- })(), m = new i.Plane().setFromNormalAndCoplanarPoint(a, r), p = new i.Vector3();
46
- m.projectPoint(r.clone(), p);
47
- const c = p.clone().sub(o), H = c.clone(), u = c.angleTo(s.baseAxes);
48
- this.setAngleHelperStart(e, u), this.setAngleHelperLength(e, 0), this.rotations.push({ vector: c.clone(), direction: !0 }), this.startInfo = { direction: e, startVector: c, staticStartVector: H, plane: m, angleHelper: s }, this.helperObject3D.showDraggingHelper([e]), this.hooks.emit("rotateStart"), this.isDragging = !0, console.log(`%c RotateController dragStart ${e}`, "color: #e5af2e");
68
+ })(), b = new i.Plane().setFromNormalAndCoplanarPoint(l, r), u = new i.Vector3();
69
+ b.projectPoint(r.clone(), u);
70
+ const h = u.clone().sub(this.rotateCenter), D = h.clone(), E = h.angleTo(s.baseAxes);
71
+ this.setAngleHelperStart(e, E), this.setAngleHelperLength(e, 0), this.rotations.push({ vector: h.clone(), direction: !0 }), this.startInfo = { direction: e, startVector: h, staticStartVector: D, plane: b, angleHelper: s }, this.helperObject3D.showDraggingHelper([e]), this.hooks.emit("rotateStart"), this.isDragging = !0, console.log(`%c RotateController dragStart ${e}`, "color: #e5af2e");
49
72
  }
50
- dragging(n) {
73
+ dragging(o) {
51
74
  var e;
52
75
  if (!this.isDragging)
53
76
  return;
54
- const t = E(this.camera, n, this.container);
77
+ const t = A(this.camera, o, this.container);
55
78
  return t ? (console.log(`%c RotateController dragging ${(e = this.startInfo) == null ? void 0 : e.direction}`, "color: #49de1b"), this.rotate(t), !1) : this.dragEnd();
56
79
  }
57
- rotate(n) {
80
+ rotate(o) {
58
81
  if (!this.startInfo)
59
82
  return this.dragEnd();
60
- const { startVector: t, plane: e, angleHelper: r, staticStartVector: o, direction: s } = this.startInfo, l = this.originObject3D, g = n.ray.intersectPlane(e, new i.Vector3());
61
- if (!g)
83
+ const { startVector: t, plane: e, angleHelper: r, staticStartVector: s, direction: n } = this.startInfo, c = o.ray.intersectPlane(e, new i.Vector3());
84
+ if (!c)
62
85
  return;
63
- const j = l.position.clone(), D = new i.Vector3();
64
- e.projectPoint(g.clone(), D);
65
- const a = D.clone().sub(j);
66
- if (t.angleTo(a) === 0 || (this.lastRotation === void 0 && (this.lastRotation = { angle: 0 }), this.rotations.length === 0))
86
+ const a = this.rotateCenter, g = new i.Vector3();
87
+ e.projectPoint(c.clone(), g);
88
+ const l = g.clone().sub(a);
89
+ if (t.angleTo(l) === 0 || (this.lastRotation === void 0 && (this.lastRotation = { angle: 0 }), this.rotations.length === 0))
67
90
  return;
68
- const m = (() => {
91
+ const b = (() => {
69
92
  if (this.rotations.length === 1)
70
- return a.angleTo(r.baseAxes) > o.angleTo(r.baseAxes);
93
+ return l.angleTo(r.baseAxes) > s.angleTo(r.baseAxes);
71
94
  {
72
- const c = this.rotations[this.rotations.length - 1], H = this.rotations[this.rotations.length - 2], u = a.angleTo(H.vector), f = a.angleTo(c.vector), b = c.vector.angleTo(H.vector);
73
- if (b === 0 || f === 0 || u === 0)
95
+ const d = this.rotations[this.rotations.length - 1], w = this.rotations[this.rotations.length - 2], y = l.angleTo(w.vector), v = l.angleTo(d.vector), j = d.vector.angleTo(w.vector);
96
+ if (j === 0 || v === 0 || y === 0)
74
97
  return;
75
- if (u > f && u > b)
76
- return c.direction;
77
- if (u < b && f < b || u < f && f > b)
78
- return !c.direction;
98
+ if (y > v && y > j)
99
+ return d.direction;
100
+ if (y < j && v < j || y < v && v > j)
101
+ return !d.direction;
79
102
  }
80
103
  })();
81
- if (m === void 0)
104
+ if (b === void 0)
82
105
  return console.warn("rotationDirection is undefined");
83
- this.rotations.push({ vector: a, direction: m }), this.rotations = this.rotations.slice(-2), this.lastRotation.angle = this.lastRotation.angle + a.angleTo(t) * (m ? 1 : -1), this.setAngleHelperLength(s, this.lastRotation.angle), this.setTipsAngle(this.lastRotation.angle / Math.PI * 180);
84
- const p = new i.Quaternion().setFromUnitVectors(t.clone().normalize(), a.clone().normalize());
85
- l.applyQuaternion(p), this.helperObject3D.applyHelperQuaternion(p), this.helperObject3DQuaternion.premultiply(p), this.hooks.emit("rotateUpdate", { quaternion: p, origin: j }), this.startInfo.startVector = a;
106
+ const u = new i.Quaternion().setFromUnitVectors(t.clone().normalize(), l.clone().normalize()), { originObject3D: h } = this, D = h.quaternion.clone().premultiply(u);
107
+ if (!this.hooks.emit("wantToRotate", D)) {
108
+ if (this.rotations.push({ vector: l, direction: b }), this.rotations = this.rotations.slice(-2), this.lastRotation.angle = this.lastRotation.angle + l.angleTo(t) * (b ? 1 : -1), this.setAngleHelperLength(n, this.lastRotation.angle), this.setTipsAngle(this.lastRotation.angle / Math.PI * 180), a) {
109
+ const d = new i.Vector3().subVectors(h.position, a).applyQuaternion(u).add(a);
110
+ h.position.copy(d);
111
+ }
112
+ h.applyQuaternion(u), this.helperObject3DQuaternion.premultiply(u), this.hooks.emit("applyObjectRotate", { quaternion: u, origin: a }), this.hooks.emit("rotate", h.quaternion), this.startInfo.startVector = l;
113
+ }
86
114
  }
87
115
  dragEnd() {
88
116
  !this.isDragging || (console.log("%c RotateController dragEnd", "color: #e94e4e"), this.startInfo = void 0, this.isDragging = !1, this.lastRotation = void 0, this.rotations = [], this.helperObject3D.show(), this.hooks.emit("rotateEnd"));
89
117
  }
90
- getAngleHelper(n) {
91
- switch (n) {
118
+ getAngleHelper(o) {
119
+ switch (o) {
92
120
  case "x":
93
121
  return this.helperObject3D.xAngleHelper;
94
122
  case "y":
@@ -97,38 +125,38 @@ class C extends O {
97
125
  return this.helperObject3D.zAngleHelper;
98
126
  }
99
127
  }
100
- setAngleHelperStart(n, t) {
101
- const e = this.getAngleHelper(n);
128
+ setAngleHelperStart(o, t) {
129
+ const e = this.getAngleHelper(o);
102
130
  if (e instanceof i.Mesh && e.geometry instanceof i.CircleGeometry) {
103
- const { radius: r, segments: o, thetaLength: s } = e.geometry.parameters;
104
- e.geometry = new i.CircleGeometry(r, o, t, s);
131
+ const { radius: r, segments: s, thetaLength: n } = e.geometry.parameters;
132
+ e.geometry = new i.CircleGeometry(r, s, t, n);
105
133
  } else
106
134
  console.warn("only support THREE.CircleGeometry");
107
135
  }
108
- setAngleHelperLength(n, t) {
109
- const r = t >= 0 ? Math.max(t, 1e-3) : Math.min(t, -1e-3), o = this.getAngleHelper(n);
110
- if (o instanceof i.Mesh && o.geometry instanceof i.CircleGeometry) {
111
- const { radius: s, thetaStart: l } = o.geometry.parameters, g = Math.ceil(Math.abs(r) * (40 / (2 * Math.PI)));
112
- o.geometry = new i.CircleGeometry(s, g, l, r);
136
+ setAngleHelperLength(o, t) {
137
+ const r = t >= 0 ? Math.max(t, 1e-3) : Math.min(t, -1e-3), s = this.getAngleHelper(o);
138
+ if (s instanceof i.Mesh && s.geometry instanceof i.CircleGeometry) {
139
+ const { radius: n, thetaStart: c } = s.geometry.parameters, a = Math.ceil(Math.abs(r) * (40 / (2 * Math.PI)));
140
+ s.geometry = new i.CircleGeometry(n, a, c, r);
113
141
  } else
114
142
  console.warn("only support THREE.CircleGeometry");
115
143
  }
116
- setTipsAngle(n) {
144
+ setTipsAngle(o) {
117
145
  var e;
118
146
  const t = (e = this.helperObject3D.angleTips) == null ? void 0 : e.element;
119
- !t || (t.innerText = `${n.toFixed(0)}\xB0`);
147
+ !t || (t.innerText = `${o.toFixed(0)}\xB0`);
120
148
  }
121
- setTipsPosition(n) {
149
+ setTipsPosition(o) {
122
150
  const t = this.helperObject3D.angleTips;
123
151
  if (!t)
124
152
  return;
125
- const e = n.project(this.camera), { x: r, y: o, z: s } = e;
126
- if (s > 1)
153
+ const e = o.project(this.camera), { x: r, y: s, z: n } = e;
154
+ if (n > 1)
127
155
  return;
128
- const l = (r + 1) / 2 * 100 + "%", g = (-o + 1) / 2 * 100 + "%";
129
- t.setLeftTop(l, g);
156
+ const c = (r + 1) / 2 * 100 + "%", a = (-s + 1) / 2 * 100 + "%";
157
+ t.setLeftTop(c, a);
130
158
  }
131
159
  }
132
160
  export {
133
- C as RotateController
161
+ Q as RotateController
134
162
  };
@@ -0,0 +1,12 @@
1
+ import { BaseController } from '../Base/BaseController';
2
+ import type { ScaleHelperAbstract } from '../Helper';
3
+ import * as THREE from 'three';
4
+ export declare class ScaleController<OriginObject3D extends THREE.Object3D = THREE.Object3D> extends BaseController<ScaleHelperAbstract<OriginObject3D>> {
5
+ protected name: string;
6
+ constructor(...params: ConstructorParameters<typeof BaseController<ScaleHelperAbstract<OriginObject3D>>>);
7
+ setScale(scale: number | {
8
+ x?: number;
9
+ y?: number;
10
+ z?: number;
11
+ }): void;
12
+ }
@@ -0,0 +1,21 @@
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);
4
+ import { BaseController as p } from "../Base/BaseController.js";
5
+ import * as y from "three";
6
+ class u extends p {
7
+ constructor(...e) {
8
+ super(...e);
9
+ a(this, "name", "ScaleController");
10
+ }
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());
17
+ }
18
+ }
19
+ export {
20
+ u as ScaleController
21
+ };
@@ -1,10 +1,11 @@
1
1
  import * as THREE from 'three';
2
- export declare class OutlineHelper extends THREE.Group {
2
+ import { BoundingBoxHelperAbstract } from '../Base/BaseHelper';
3
+ export declare class BoundingBoxHelper<T extends THREE.Object3D = THREE.Object3D> extends BoundingBoxHelperAbstract<T> {
3
4
  box: THREE.Mesh<THREE.BufferGeometry, THREE.MeshBasicMaterial>;
4
5
  outline: THREE.LineSegments<THREE.BufferGeometry, THREE.LineBasicMaterial>;
5
6
  private originObject;
6
7
  private positionAttribute;
7
- constructor(obj: THREE.Object3D);
8
+ constructor(originObject: T);
8
9
  private update;
9
10
  private createOutline;
10
11
  private createBox;
@@ -0,0 +1,87 @@
1
+ var a = Object.defineProperty;
2
+ var p = (n, s, i) => s in n ? a(n, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[s] = i;
3
+ var r = (n, s, i) => (p(n, typeof s != "symbol" ? s + "" : s, i), i);
4
+ import * as o from "three";
5
+ import { BoundingBoxHelperAbstract as b } from "../Base/BaseHelper.js";
6
+ import { boundingBox as c } from "../utils/boundingBox.js";
7
+ class A extends b {
8
+ constructor(i) {
9
+ super(i);
10
+ r(this, "box");
11
+ r(this, "outline");
12
+ r(this, "originObject");
13
+ r(this, "positionAttribute");
14
+ this.originObject = i, this.positionAttribute = new o.BufferAttribute(new Float32Array(8 * 3), 3), this.box = this.createBox(), this.outline = this.createOutline(), this.add(this.box, this.outline), this.update();
15
+ }
16
+ update() {
17
+ const i = c(this.originObject);
18
+ if (!i)
19
+ return;
20
+ const { min: t, max: e } = i;
21
+ this.positionAttribute.setXYZ(0, e.x, e.y, e.z), this.positionAttribute.setXYZ(1, t.x, e.y, e.z), this.positionAttribute.setXYZ(2, t.x, t.y, e.z), this.positionAttribute.setXYZ(3, e.x, t.y, e.z), this.positionAttribute.setXYZ(4, e.x, e.y, t.z), this.positionAttribute.setXYZ(5, t.x, e.y, t.z), this.positionAttribute.setXYZ(6, t.x, t.y, t.z), this.positionAttribute.setXYZ(7, e.x, t.y, t.z), this.positionAttribute.needsUpdate = !0;
22
+ }
23
+ createOutline() {
24
+ const i = new Uint16Array([0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7]), t = new o.BufferGeometry();
25
+ t.setIndex(new o.BufferAttribute(i, 1)), t.setAttribute("position", this.positionAttribute);
26
+ const e = new o.LineBasicMaterial({
27
+ color: 64767,
28
+ linewidth: 1,
29
+ opacity: 1,
30
+ depthTest: !1,
31
+ transparent: !0,
32
+ toneMapped: !1
33
+ }), u = new o.LineSegments(t, e);
34
+ return u.matrixAutoUpdate = !1, u;
35
+ }
36
+ createBox() {
37
+ const i = new Uint16Array([
38
+ 0,
39
+ 1,
40
+ 2,
41
+ 0,
42
+ 2,
43
+ 3,
44
+ 0,
45
+ 3,
46
+ 7,
47
+ 0,
48
+ 7,
49
+ 4,
50
+ 0,
51
+ 4,
52
+ 5,
53
+ 0,
54
+ 5,
55
+ 1,
56
+ 6,
57
+ 1,
58
+ 5,
59
+ 6,
60
+ 2,
61
+ 1,
62
+ 6,
63
+ 5,
64
+ 4,
65
+ 6,
66
+ 4,
67
+ 7,
68
+ 6,
69
+ 3,
70
+ 2,
71
+ 6,
72
+ 7,
73
+ 3
74
+ ]), t = new o.BufferGeometry();
75
+ t.setIndex(new o.BufferAttribute(i, 1)), t.setAttribute("position", this.positionAttribute);
76
+ const e = new o.MeshBasicMaterial({
77
+ color: 64767,
78
+ opacity: 0.1,
79
+ depthTest: !1,
80
+ transparent: !0
81
+ });
82
+ return new o.Mesh(t, e);
83
+ }
84
+ }
85
+ export {
86
+ A as BoundingBoxHelper
87
+ };
@@ -2,11 +2,9 @@ import * as THREE from 'three';
2
2
  import { RectangleScaleHelperAbstract } from '.';
3
3
  import type { Create3DElementReturnType } from '../../../CSS3DRenderPlugin';
4
4
  import type { Vector3 } from 'three';
5
- import { CSS3DObject } from 'three/examples/jsm/renderers/CSS3DRenderer';
6
5
  import type { CSS3DObjectPlus } from '../../../CSS3DRenderPlugin/utils/three/CSS3DObject';
7
6
  declare type NonVoid<T> = T extends void ? never : T;
8
- declare type OriginObjectType = CSS3DObject | THREE.Object3D;
9
- export declare class RectangleScaleHelper<T extends OriginObjectType = OriginObjectType> extends RectangleScaleHelperAbstract<T, HTMLElement> {
7
+ export declare class CSS3DScaleHelper<T extends CSS3DObjectPlus = CSS3DObjectPlus> extends RectangleScaleHelperAbstract<T, HTMLElement> {
10
8
  points: RectangleScaleHelperAbstract<THREE.Object3D, HTMLElement>['points'];
11
9
  cornerPositions: Vector3[];
12
10
  css3DInstance?: NonVoid<Create3DElementReturnType>;
@@ -22,12 +20,9 @@ export declare class RectangleScaleHelper<T extends OriginObjectType = OriginObj
22
20
  updateQuaternion(): void;
23
21
  applyMatrix4(matrix: THREE.Matrix4): void;
24
22
  showDraggingHelper(): void;
25
- applyHelperScaleMatrix4(matrix: THREE.Matrix4, params?: {
26
- origin?: Vector3;
27
- helperOrigin?: Vector3;
28
- }): void;
23
+ applyHelperScaleMatrix4(matrix: THREE.Matrix4, origin?: Vector3): void;
29
24
  updatePoints(): void;
30
- applyHelperQuaternion(quaternion: THREE.Quaternion, origin: THREE.Vector3): void;
25
+ applyHelperQuaternion(quaternion: THREE.Quaternion, origin: Vector3): void;
31
26
  enable(): void;
32
27
  disable(): void;
33
28
  show(): void;
@@ -1,20 +1,18 @@
1
1
  var d = Object.defineProperty;
2
2
  var u = (c, n, e) => n in c ? d(c, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[n] = e;
3
3
  var i = (c, n, e) => (u(c, typeof n != "symbol" ? n + "" : n, e), e);
4
- import { CSS3DRender as b } from "../../../CSS3DRenderPlugin/CSS3DRender.js";
4
+ import { CSS3DRender as D } from "../../../CSS3DRenderPlugin/CSS3DRender.js";
5
5
  import * as p from "three";
6
- import { RectangleScaleHelperAbstract as D } from "../Base/BaseHelper.js";
7
- import "three/examples/jsm/renderers/CSS3DRenderer";
6
+ import { RectangleScaleHelperAbstract as b } from "../Base/BaseHelper.js";
8
7
  import { rectangleScaleDom as f } from "./HTML/rectangleScaleDom.js";
9
- import "./OutlineHelper.js";
10
- class g extends D {
8
+ class O extends b {
11
9
  constructor(e, t, s, o) {
12
10
  super(e);
13
11
  i(this, "points", []);
14
12
  i(this, "cornerPositions", []);
15
13
  i(this, "css3DInstance");
16
14
  i(this, "plane");
17
- i(this, "css3DRenderer", new b());
15
+ i(this, "css3DRenderer", new D());
18
16
  i(this, "camera");
19
17
  i(this, "scene");
20
18
  i(this, "container");
@@ -123,5 +121,5 @@ class g extends D {
123
121
  }
124
122
  }
125
123
  export {
126
- g as RectangleScaleHelper
124
+ O as CSS3DScaleHelper
127
125
  };
@@ -2,18 +2,16 @@ var w = Object.defineProperty;
2
2
  var h = (i, o, r) => o in i ? w(i, o, { enumerable: !0, configurable: !0, writable: !0, value: r }) : i[o] = r;
3
3
  var s = (i, o, r) => (h(i, typeof o != "symbol" ? o + "" : o, r), r);
4
4
  import { MoveHelperAbstract as A } from "../Base/BaseHelper.js";
5
- import { ArrowGroup as t } from "./Objects/ArrowGroup.js";
6
- import { AXES_THREE_COLOR as e } from "../Constants/color.js";
5
+ import { ArrowGroup as e } from "./Objects/ArrowGroup.js";
6
+ import { AXES_THREE_COLOR as t } from "../Constants/color.js";
7
7
  import "three";
8
8
  import "../../../CSS3DRenderPlugin/CSS3DRender.js";
9
- import "three/examples/jsm/renderers/CSS3DRenderer";
10
- import "./OutlineHelper.js";
11
- class x extends A {
9
+ class m extends A {
12
10
  constructor(r) {
13
11
  super(r);
14
- s(this, "xArrow", new t({ direction: "x", color: e.X }));
15
- s(this, "yArrow", new t({ direction: "y", color: e.Y }));
16
- s(this, "zArrow", new t({ direction: "z", color: e.Z }));
12
+ s(this, "xArrow", new e({ direction: "x", color: t.X }));
13
+ s(this, "yArrow", new e({ direction: "y", color: t.Y }));
14
+ s(this, "zArrow", new e({ direction: "z", color: t.Z }));
17
15
  this.add(this.xArrow), this.add(this.yArrow), this.add(this.zArrow);
18
16
  }
19
17
  show() {
@@ -27,5 +25,5 @@ class x extends A {
27
25
  }
28
26
  }
29
27
  export {
30
- x as MoveHelper
28
+ m as MoveHelper
31
29
  };
@@ -4,19 +4,22 @@ import { RotateHelperAbstract } from '../Base/BaseHelper';
4
4
  import type { Color, Direction } from '../typings';
5
5
  import { tipsDom } from './HTML/tipsDom';
6
6
  export declare class RotateHelper extends RotateHelperAbstract {
7
- yzCircle: Circle;
8
- xzCircle: Circle;
9
- xyCircle: Circle;
10
- xRingHelper: AxesDashedRing;
11
- yRingHelper: AxesDashedRing;
12
- zRingHelper: AxesDashedRing;
13
- xAngleHelper: Sector;
14
- yAngleHelper: Sector;
15
- zAngleHelper: Sector;
7
+ yzCircle?: Circle;
8
+ xzCircle?: Circle;
9
+ xyCircle?: Circle;
10
+ xRingHelper?: AxesDashedRing;
11
+ yRingHelper?: AxesDashedRing;
12
+ zRingHelper?: AxesDashedRing;
13
+ xAngleHelper?: Sector;
14
+ yAngleHelper?: Sector;
15
+ zAngleHelper?: Sector;
16
16
  angleTips?: ReturnType<typeof tipsDom>;
17
17
  private container?;
18
- constructor(originObject3D: Object3D, angleTipsParams?: {
19
- container: HTMLElement;
18
+ constructor(originObject3D: Object3D, config?: {
19
+ container?: HTMLElement;
20
+ yzCircleEnable?: boolean;
21
+ xzCircleEnable?: boolean;
22
+ xyCircleEnable?: boolean;
20
23
  });
21
24
  updateAngleHelperQuaternion(): void;
22
25
  applyHelperQuaternion(quaternion: THREE.Quaternion, origin?: THREE.Vector3): void;