@realsee/dnalogel 2.6.4 → 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 (372) 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 +5078 -4667
  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 +16 -15
  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/MediaItem.js +1 -1
  289. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +3 -2
  290. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +3 -2
  291. package/libs/PanoTagPlugin/Components/Common/Text/MText.js +68 -68
  292. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +3 -2
  293. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +3 -2
  294. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +12 -11
  295. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +33 -33
  296. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +3 -2
  297. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +46 -46
  298. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +12 -11
  299. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +26 -25
  300. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +29 -28
  301. package/libs/PanoTagPlugin/Components/Tag/index.js +126 -119
  302. package/libs/PanoTagPlugin/Components/TagContainer.js +4 -2
  303. package/libs/PanoTagPlugin/Components/TagItem.js +67 -65
  304. package/libs/PanoTagPlugin/controller/TagCacheController.d.ts +1 -0
  305. package/libs/PanoTagPlugin/controller/TagCacheController.js +14 -12
  306. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +22 -6
  307. package/libs/PanoTagPlugin/controller/TagComputer.js +242 -176
  308. package/libs/PanoTagPlugin/controller/index.d.ts +32 -6
  309. package/libs/PanoTagPlugin/controller/index.js +176 -91
  310. package/libs/PanoTagPlugin/index.js +15 -12
  311. package/libs/PanoTagPlugin/tag.config.js +9 -0
  312. package/libs/PanoTagPlugin/typings/controller.d.ts +17 -2
  313. package/libs/PanoTagPlugin/typings/controller.js +1 -1
  314. package/libs/PanoTagPlugin/typings/index.js +6 -5
  315. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +5 -2
  316. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +19 -3
  317. package/libs/PanoTagPlugin/typings/tag/TagData.js +1 -1
  318. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +1 -1
  319. package/libs/PanoTagPlugin/utils/addDebugPoints.js +5 -4
  320. package/libs/PanoTagPlugin/utils/color.js +5 -5
  321. package/libs/PanoTagPlugin/utils/index.js +37 -34
  322. package/libs/PanoTagPlugin/utils/planeNormal.js +3 -2
  323. package/libs/PanoTagPlugin/utils/tag/index.d.ts +2 -0
  324. package/libs/PanoTagPlugin/utils/tag/index.js +11 -0
  325. package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +2 -1
  326. package/libs/PanoTagPlugin/utils/tag/tagCheck.js +6 -2
  327. package/libs/PanoTagPlugin/utils/tagPosition.d.ts +3 -1
  328. package/libs/PanoTagPlugin/utils/tagPosition.js +20 -8
  329. package/libs/index.js +111 -104
  330. package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +41 -15
  331. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +112 -90
  332. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +27 -20
  333. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +55 -22
  334. package/libs/shared-utils/Object3DHelper/Controller/BoundingBoxController.d.ts +7 -0
  335. package/libs/shared-utils/Object3DHelper/Controller/BoundingBoxController.js +14 -0
  336. package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.d.ts +1 -0
  337. package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +14 -10
  338. package/libs/shared-utils/Object3DHelper/Controller/MoveController.d.ts +24 -0
  339. package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +80 -37
  340. package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +6 -1
  341. package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +44 -41
  342. package/libs/shared-utils/Object3DHelper/Controller/RotateController.d.ts +14 -0
  343. package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +95 -67
  344. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +12 -0
  345. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +21 -0
  346. package/libs/shared-utils/Object3DHelper/Helper/{OutlineHelper.d.ts → BoundingBoxHelper.d.ts} +3 -2
  347. package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js +87 -0
  348. package/{dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts → libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts} +3 -8
  349. package/libs/shared-utils/Object3DHelper/Helper/{RectangleScaleHelper.js → CSS3DScaleHelper.js} +5 -7
  350. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +7 -9
  351. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +14 -11
  352. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +72 -66
  353. package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +5 -0
  354. package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.js +9 -0
  355. package/libs/shared-utils/Object3DHelper/Helper/index.d.ts +2 -2
  356. package/libs/shared-utils/Object3DHelper/Helper/index.js +0 -2
  357. package/libs/shared-utils/Object3DHelper/index.d.ts +4 -27
  358. package/libs/shared-utils/Object3DHelper/index.js +48 -96
  359. package/libs/shared-utils/Object3DHelper/typings/Hooks.d.ts +22 -12
  360. package/libs/shared-utils/Object3DHelper/typings/index.d.ts +22 -0
  361. package/libs/shared-utils/Object3DHelper/typings/index.js +2 -1
  362. package/libs/shared-utils/Object3DHelper/utils/boundingBox.d.ts +2 -0
  363. package/libs/shared-utils/Object3DHelper/utils/boundingBox.js +24 -0
  364. package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +2 -2
  365. package/libs/shared-utils/three/GLTFLoader.d.ts +2 -0
  366. package/libs/shared-utils/three/GLTFLoader.js +16 -0
  367. package/libs/typings/math.type.js +1 -0
  368. package/package.json +4 -4
  369. package/dist/shared-utils/Object3DHelper/utils/getPoint.d.ts +0 -3
  370. package/libs/shared-utils/Object3DHelper/Helper/OutlineHelper.js +0 -2
  371. package/libs/shared-utils/Object3DHelper/utils/getPoint.d.ts +0 -3
  372. package/libs/shared-utils/Object3DHelper/utils/getPoint.js +0 -1
@@ -1,35 +1,37 @@
1
- var H = Object.defineProperty;
2
- var x = (n, s, e) => s in n ? H(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e;
3
- var t = (n, s, e) => (x(n, typeof s != "symbol" ? s + "" : s, e), e);
1
+ var R = Object.defineProperty;
2
+ var C = (n, l, i) => l in n ? R(n, l, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[l] = i;
3
+ var t = (n, l, i) => (C(n, typeof l != "symbol" ? l + "" : l, i), i);
4
4
  import * as r from "three";
5
- import { RotateHelperAbstract as A } from "../Base/BaseHelper.js";
6
- import { AXES_THREE_COLOR as o } from "../Constants/color.js";
7
- import { tipsDom as u } from "./HTML/tipsDom.js";
8
- class f extends A {
9
- constructor(e, i) {
10
- var l;
11
- super(e);
12
- t(this, "yzCircle", new h({ direction: "x", color: o.X }));
13
- t(this, "xzCircle", new h({ direction: "y", color: o.Y }));
14
- t(this, "xyCircle", new h({ direction: "z", color: o.Z }));
15
- t(this, "xRingHelper", new c({ direction: "x" }));
16
- t(this, "yRingHelper", new c({ direction: "y" }));
17
- t(this, "zRingHelper", new c({ direction: "z" }));
18
- t(this, "xAngleHelper", new a({ direction: "x", color: o.X }));
19
- t(this, "yAngleHelper", new a({ direction: "y", color: o.Y }));
20
- t(this, "zAngleHelper", new a({ direction: "z", color: o.Z }));
5
+ import { RotateHelperAbstract as m } from "../Base/BaseHelper.js";
6
+ import { AXES_THREE_COLOR as y } from "../Constants/color.js";
7
+ import { tipsDom as w } from "./HTML/tipsDom.js";
8
+ class P extends m {
9
+ constructor(i, e) {
10
+ var s;
11
+ super(i);
12
+ t(this, "yzCircle");
13
+ t(this, "xzCircle");
14
+ t(this, "xyCircle");
15
+ t(this, "xRingHelper");
16
+ t(this, "yRingHelper");
17
+ t(this, "zRingHelper");
18
+ t(this, "xAngleHelper");
19
+ t(this, "yAngleHelper");
20
+ t(this, "zAngleHelper");
21
21
  t(this, "angleTips");
22
22
  t(this, "container");
23
- i && (this.container = i == null ? void 0 : i.container, this.angleTips = u({ display: "none" }), (l = this.container) == null || l.appendChild(this.angleTips.element)), this.show();
23
+ (e == null ? void 0 : e.yzCircleEnable) !== !1 && (this.yzCircle = new d({ direction: "x", color: y.X }), this.xRingHelper = new H({ direction: "x" }), this.xAngleHelper = new g({ direction: "x", color: y.X })), (e == null ? void 0 : e.xzCircleEnable) !== !1 && (this.xzCircle = new d({ direction: "y", color: y.Y }), this.yRingHelper = new H({ direction: "y" }), this.yAngleHelper = new g({ direction: "y", color: y.Y })), (e == null ? void 0 : e.xyCircleEnable) !== !1 && (this.xyCircle = new d({ direction: "z", color: y.Z }), this.zRingHelper = new H({ direction: "z" }), this.zAngleHelper = new g({ direction: "z", color: y.Z })), e != null && e.container && (this.container = e == null ? void 0 : e.container, this.angleTips = w({ display: "none" }), (s = this.container) == null || s.appendChild(this.angleTips.element)), this.show();
24
24
  }
25
25
  updateAngleHelperQuaternion() {
26
- this.xAngleHelper.quaternion.copy(this.yzCircle.quaternion), this.yAngleHelper.quaternion.copy(this.xzCircle.quaternion), this.zAngleHelper.quaternion.copy(this.xyCircle.quaternion), this.xRingHelper.quaternion.copy(this.yzCircle.quaternion), this.yRingHelper.quaternion.copy(this.xzCircle.quaternion), this.zRingHelper.quaternion.copy(this.xyCircle.quaternion);
26
+ var i, e, s, c, h, o, p, a, x, A, u, z;
27
+ (e = this.xAngleHelper) == null || e.quaternion.copy((i = this.yzCircle) == null ? void 0 : i.quaternion), (c = this.yAngleHelper) == null || c.quaternion.copy((s = this.xzCircle) == null ? void 0 : s.quaternion), (o = this.zAngleHelper) == null || o.quaternion.copy((h = this.xyCircle) == null ? void 0 : h.quaternion), (a = this.xRingHelper) == null || a.quaternion.copy((p = this.yzCircle) == null ? void 0 : p.quaternion), (A = this.yRingHelper) == null || A.quaternion.copy((x = this.xzCircle) == null ? void 0 : x.quaternion), (z = this.zRingHelper) == null || z.quaternion.copy((u = this.xyCircle) == null ? void 0 : u.quaternion);
27
28
  }
28
- applyHelperQuaternion(e, i) {
29
- this.yzCircle.applyQuaternion(e), this.xzCircle.applyQuaternion(e), this.xyCircle.applyQuaternion(e), this.xAngleHelper.baseAxes.applyQuaternion(e), this.yAngleHelper.baseAxes.applyQuaternion(e), this.zAngleHelper.baseAxes.applyQuaternion(e);
29
+ applyHelperQuaternion(i, e) {
30
+ var s, c, h, o, p, a;
31
+ (s = this.yzCircle) == null || s.applyQuaternion(i), (c = this.xzCircle) == null || c.applyQuaternion(i), (h = this.xyCircle) == null || h.applyQuaternion(i), (o = this.xAngleHelper) == null || o.baseAxes.applyQuaternion(i), (p = this.yAngleHelper) == null || p.baseAxes.applyQuaternion(i), (a = this.zAngleHelper) == null || a.baseAxes.applyQuaternion(i);
30
32
  }
31
33
  hide() {
32
- this.remove(
34
+ console.log("hide"), this.remove(
33
35
  this.yzCircle,
34
36
  this.xzCircle,
35
37
  this.xyCircle,
@@ -42,75 +44,79 @@ class f extends A {
42
44
  );
43
45
  }
44
46
  show() {
45
- var e;
46
- this.add(this.xyCircle, this.xzCircle, this.yzCircle), this.remove(this.xRingHelper, this.yRingHelper, this.zRingHelper, this.xAngleHelper, this.yAngleHelper, this.zAngleHelper), (e = this.angleTips) == null || e.hide();
47
- }
48
- showDraggingHelper(e) {
49
47
  var i;
50
- this.hide(), this.add(...this.filterRingHelper(e)), this.add(...this.filterAngleHelper(e)), (i = this.angleTips) == null || i.show();
48
+ console.log("show"), this.add(...[this.xyCircle, this.xzCircle, this.yzCircle].filter(Boolean)), this.remove(
49
+ ...[this.xRingHelper, this.yRingHelper, this.zRingHelper, this.xAngleHelper, this.yAngleHelper, this.zAngleHelper].filter(Boolean)
50
+ ), (i = this.angleTips) == null || i.hide();
51
+ }
52
+ showDraggingHelper(i) {
53
+ var e;
54
+ this.hide(), this.add(...this.filterRingHelper(i)), this.add(...this.filterAngleHelper(i)), (e = this.angleTips) == null || e.show();
51
55
  }
52
56
  dispose() {
53
- var e, i;
57
+ var i, e;
54
58
  this.remove(
55
- this.yzCircle,
56
- this.xzCircle,
57
- this.xyCircle,
58
- this.xRingHelper,
59
- this.yRingHelper,
60
- this.zRingHelper,
61
- this.xAngleHelper,
62
- this.yAngleHelper,
63
- this.zAngleHelper
64
- ), (e = this.angleTips) != null && e.element && ((i = this.container) == null || i.removeChild(this.angleTips.element));
59
+ ...[
60
+ this.yzCircle,
61
+ this.xzCircle,
62
+ this.xyCircle,
63
+ this.xRingHelper,
64
+ this.yRingHelper,
65
+ this.zRingHelper,
66
+ this.xAngleHelper,
67
+ this.yAngleHelper,
68
+ this.zAngleHelper
69
+ ].filter(Boolean)
70
+ ), (e = (i = this.angleTips) == null ? void 0 : i.element) == null || e.remove();
65
71
  }
66
- filterRingHelper(e) {
67
- return [this.xRingHelper, this.yRingHelper, this.zRingHelper].filter((i) => e.includes(i.direction));
72
+ filterRingHelper(i) {
73
+ return [this.xRingHelper, this.yRingHelper, this.zRingHelper].filter((e) => i.includes(e == null ? void 0 : e.direction)).filter(Boolean);
68
74
  }
69
- filterAngleHelper(e) {
70
- return [this.xAngleHelper, this.yAngleHelper, this.zAngleHelper].filter((i) => e.includes(i.direction));
75
+ filterAngleHelper(i) {
76
+ return [this.xAngleHelper, this.yAngleHelper, this.zAngleHelper].filter((e) => i.includes(e == null ? void 0 : e.direction)).filter(Boolean);
71
77
  }
72
78
  }
73
- class h extends r.Mesh {
74
- constructor(e) {
75
- var i;
79
+ class d extends r.Mesh {
80
+ constructor(i) {
81
+ var e;
76
82
  super();
77
83
  t(this, "direction");
78
84
  t(this, "gapAngle", 0.02);
79
85
  t(this, "geometry", new r.RingGeometry(0.25, 0.3, 20, 8, this.gapAngle, Math.PI / 2 - this.gapAngle * 2));
80
86
  this.material = new r.MeshBasicMaterial({
81
87
  opacity: 0.6,
82
- color: (i = e.color) != null ? i : 16777215,
88
+ color: (e = i.color) != null ? e : 16777215,
83
89
  transparent: !0,
84
90
  side: r.DoubleSide,
85
91
  depthTest: !1
86
- }), this.direction = e.direction, this.geometry.name = `RotateHelperCircleGeometry-${this.direction}`, this.direction === "y" ? this.rotateX(Math.PI / 2) : this.direction === "x" && this.rotateY(-Math.PI / 2);
92
+ }), this.direction = i.direction, this.geometry.name = `RotateHelperCircleGeometry-${this.direction}`, this.direction === "y" ? this.rotateX(Math.PI / 2) : this.direction === "x" && this.rotateY(-Math.PI / 2);
87
93
  }
88
94
  }
89
- class c extends r.Group {
90
- constructor(e) {
95
+ class H extends r.Group {
96
+ constructor(i) {
91
97
  super();
92
98
  t(this, "direction");
93
- this.direction = e.direction;
94
- const i = 0.015, l = new Array(8).fill(null).map((z, p) => {
95
- const d = new r.RingGeometry(0.25, 0.3, 20, 8, Math.PI / 4 * p + i, Math.PI / 4 - i * 2), y = new r.MeshBasicMaterial({
99
+ this.direction = i.direction;
100
+ const e = 0.015, s = new Array(8).fill(null).map((c, h) => {
101
+ const o = new r.RingGeometry(0.25, 0.3, 20, 8, Math.PI / 4 * h + e, Math.PI / 4 - e * 2), p = new r.MeshBasicMaterial({
96
102
  opacity: 1,
97
103
  color: 16777215,
98
104
  depthTest: !1,
99
105
  transparent: !0,
100
106
  side: r.DoubleSide
101
- }), g = new r.Mesh(d, y);
102
- return g.name = `AxesDashedRing-${this.direction}-${p}`, g;
107
+ }), a = new r.Mesh(o, p);
108
+ return a.name = `AxesDashedRing-${this.direction}-${h}`, a;
103
109
  });
104
- this.add(...l), this.direction === "y" ? this.rotateX(Math.PI / 2) : this.direction === "x" && this.rotateY(-Math.PI / 2);
110
+ this.add(...s), this.direction === "y" ? this.rotateX(Math.PI / 2) : this.direction === "x" && this.rotateY(-Math.PI / 2);
105
111
  }
106
112
  }
107
- class a extends r.Mesh {
108
- constructor(e) {
109
- var l;
113
+ class g extends r.Mesh {
114
+ constructor(i) {
115
+ var s;
110
116
  super();
111
117
  t(this, "direction");
112
118
  t(this, "baseAxes");
113
- switch (e.direction) {
119
+ switch (i.direction) {
114
120
  case "x":
115
121
  this.baseAxes = new r.Vector3(0, 0, 1);
116
122
  break;
@@ -121,16 +127,16 @@ class a extends r.Mesh {
121
127
  this.baseAxes = new r.Vector3(1, 0, 0);
122
128
  break;
123
129
  }
124
- const i = 0.3 + 5e-4;
125
- this.geometry = new r.CircleGeometry(i, 48, 0, 1e-4), this.material = new r.MeshBasicMaterial({
130
+ const e = 0.3 + 5e-4;
131
+ this.geometry = new r.CircleGeometry(e, 48, 0, 1e-4), this.material = new r.MeshBasicMaterial({
126
132
  opacity: 0.4,
127
- color: (l = e.color) != null ? l : 16777215,
133
+ color: (s = i.color) != null ? s : 16777215,
128
134
  depthTest: !1,
129
135
  transparent: !0,
130
136
  side: r.DoubleSide
131
- }), this.direction = e.direction, this.direction === "y" ? this.rotateX(Math.PI / 2) : this.direction === "x" && this.rotateY(-Math.PI / 2);
137
+ }), this.direction = i.direction, this.direction === "y" ? this.rotateX(Math.PI / 2) : this.direction === "x" && this.rotateY(-Math.PI / 2);
132
138
  }
133
139
  }
134
140
  export {
135
- f as RotateHelper
141
+ P as RotateHelper
136
142
  };
@@ -0,0 +1,5 @@
1
+ import type * as THREE from 'three';
2
+ import { ScaleHelperAbstract } from '../Base/BaseHelper';
3
+ export declare class ScaleHelper<T extends THREE.Object3D = THREE.Object3D> extends ScaleHelperAbstract<T> {
4
+ constructor(originObject3D: T);
5
+ }
@@ -0,0 +1,9 @@
1
+ import { ScaleHelperAbstract as r } from "../Base/BaseHelper.js";
2
+ class s extends r {
3
+ constructor(e) {
4
+ super(e);
5
+ }
6
+ }
7
+ export {
8
+ s as ScaleHelper
9
+ };
@@ -1,5 +1,5 @@
1
1
  export * from '../Base/BaseHelper';
2
2
  export * from './MoveHelper';
3
3
  export * from './RotateHelper';
4
- export * from './RectangleScaleHelper';
5
- export * from './OutlineHelper';
4
+ export * from './CSS3DScaleHelper';
5
+ export * from './BoundingBoxHelper';
@@ -1,4 +1,2 @@
1
1
  import "three";
2
2
  import "../../../CSS3DRenderPlugin/CSS3DRender.js";
3
- import "three/examples/jsm/renderers/CSS3DRenderer";
4
- import "./OutlineHelper.js";
@@ -1,24 +1,12 @@
1
- import type { OutlineHelper } from './Helper';
2
1
  import type { Object3DHelperEventMap, Object3DHelperState } from './typings';
3
- import type { MoveController } from './Controller/MoveController';
4
- import type { RotateController } from './Controller/RotateController';
5
- import type { BaseController } from './Base/BaseController';
2
+ import type { ObjectHelperControllers } from './typings';
6
3
  import { Subscribe } from '../Subscribe';
7
- interface Controllers {
8
- moveController?: MoveController;
9
- rotateController?: RotateController;
10
- scaleController?: BaseController;
11
- }
12
- interface Helpers {
13
- outlineHelper?: OutlineHelper;
14
- }
15
4
  export declare class Object3DHelper {
16
- controllers: Controllers;
5
+ controllers: ObjectHelperControllers;
17
6
  state: Object3DHelperState;
18
7
  hooks: Subscribe<Object3DHelperEventMap>;
19
- private helpers;
20
8
  private eventListener;
21
- constructor(controllers?: Controllers, helpers?: Helpers);
9
+ constructor(controllers?: ObjectHelperControllers);
22
10
  /**
23
11
  * @description Show guide line
24
12
  */
@@ -50,22 +38,11 @@ export declare class Object3DHelper {
50
38
  setState(state: Partial<Object3DHelperState>, options?: {
51
39
  userAction?: boolean;
52
40
  } & Record<string, any>): void;
53
- addControllers(controllers: Controllers): void;
54
- addHelpers(helpers: Partial<{
55
- [K in keyof Helpers]: Helpers[K];
56
- }>): void;
41
+ addControllers(controllers: ObjectHelperControllers): void;
57
42
  getCurrentState(): Object3DHelperState;
58
- private addEventListener;
59
- private handleEnd;
60
- private handleStart;
61
- private setOtherHelpersVisible;
62
- private handlePositionUpdate;
63
- private handleScaleUpdate;
64
- private handleRotateUpdate;
65
43
  private handleEnable;
66
44
  private handleVisible;
67
45
  private everyControllerDo;
68
46
  private handleDispose;
69
47
  private actionIfStateIsEnabled;
70
48
  }
71
- export {};
@@ -1,77 +1,58 @@
1
- var u = Object.defineProperty;
2
- var v = Object.getOwnPropertySymbols;
3
- var S = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable;
4
- var c = (n, e, s) => e in n ? u(n, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[e] = s, p = (n, e) => {
1
+ var p = Object.defineProperty;
2
+ var f = Object.getOwnPropertySymbols;
3
+ var S = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
4
+ var d = (i, e, s) => e in i ? p(i, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : i[e] = s, a = (i, e) => {
5
5
  for (var s in e || (e = {}))
6
- S.call(e, s) && c(n, s, e[s]);
7
- if (v)
8
- for (var s of v(e))
9
- k.call(e, s) && c(n, s, e[s]);
10
- return n;
6
+ S.call(e, s) && d(i, s, e[s]);
7
+ if (f)
8
+ for (var s of f(e))
9
+ E.call(e, s) && d(i, s, e[s]);
10
+ return i;
11
11
  };
12
- var d = (n, e, s) => (c(n, typeof e != "symbol" ? e + "" : e, s), s);
13
- var f = (n, e, s) => new Promise((t, o) => {
14
- var i = (r) => {
12
+ var r = (i, e, s) => (d(i, typeof e != "symbol" ? e + "" : e, s), s);
13
+ var b = (i, e, s) => new Promise((t, l) => {
14
+ var v = (o) => {
15
15
  try {
16
- h(s.next(r));
17
- } catch (a) {
18
- o(a);
16
+ h(s.next(o));
17
+ } catch (n) {
18
+ l(n);
19
19
  }
20
- }, l = (r) => {
20
+ }, u = (o) => {
21
21
  try {
22
- h(s.throw(r));
23
- } catch (a) {
24
- o(a);
22
+ h(s.throw(o));
23
+ } catch (n) {
24
+ l(n);
25
25
  }
26
- }, h = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(i, l);
27
- h((s = s.apply(n, e)).next());
26
+ }, h = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(v, u);
27
+ h((s = s.apply(i, e)).next());
28
28
  });
29
29
  import { Subscribe as C } from "../Subscribe.js";
30
- const E = "v1.0.1", y = "Object3DHelper", b = `${y}@${E}`, m = () => {
31
- console.error(`${b} is disposed`);
32
- }, H = () => {
33
- console.warn(`${b} is disabled`);
34
- }, O = () => {
35
- console.error(`${b} is disabled`);
30
+ const D = "v1.0.1", k = "Object3DHelper", c = `${k}@${D}`, y = () => {
31
+ console.error(`${c} is disposed`);
32
+ }, I = () => {
33
+ console.warn(`${c} is disabled`);
34
+ }, m = () => {
35
+ console.error(`${c} is disabled`);
36
36
  };
37
- class x {
38
- constructor(e, s) {
39
- d(this, "controllers", {});
40
- d(this, "state", {
37
+ class L {
38
+ constructor(e) {
39
+ r(this, "controllers", {});
40
+ r(this, "state", {
41
41
  visible: !0,
42
42
  enabled: !0,
43
43
  disposed: !1
44
44
  });
45
- d(this, "hooks", new C());
46
- d(this, "helpers");
47
- d(this, "eventListener", {});
48
- d(this, "handlePositionUpdate", (e, ...s) => {
49
- var i, l, h, r;
50
- const [t] = s, o = t == null ? void 0 : t.matrix4;
51
- o && (e !== this.controllers.moveController && ((i = this.controllers.moveController) == null || i.applyHelperMatrix4(o)), e !== this.controllers.rotateController && ((l = this.controllers.rotateController) == null || l.applyHelperMatrix4(o)), e !== this.controllers.scaleController && ((h = this.controllers.scaleController) == null || h.applyHelperMatrix4(o)), (r = this.helpers.outlineHelper) == null || r.applyMatrix4(o));
52
- });
53
- d(this, "handleScaleUpdate", (e, ...s) => {
54
- var i, l;
55
- const [t] = s, o = t == null ? void 0 : t.matrix4;
56
- o && ((i = this.controllers.scaleController) == null || i.applyHelperScaleMatrix4(o, t), (l = this.helpers.outlineHelper) == null || l.scale.applyMatrix4(o));
57
- });
58
- d(this, "handleRotateUpdate", (e, ...s) => {
59
- var o, i, l, h;
60
- const [t] = s;
61
- if (t) {
62
- const { quaternion: r, origin: a } = t;
63
- r && (e !== this.controllers.moveController && ((o = this.controllers.moveController) == null || o.applyHelperQuaternion(r, a)), e !== this.controllers.rotateController && ((i = this.controllers.rotateController) == null || i.applyHelperQuaternion(r, a)), e !== this.controllers.scaleController && ((l = this.controllers.scaleController) == null || l.applyHelperQuaternion(r, a)), (h = this.helpers.outlineHelper) == null || h.applyQuaternion(r));
64
- }
65
- });
66
- e && this.addControllers(e), this.helpers = s != null ? s : {}, this.setState(this.state);
45
+ r(this, "hooks", new C());
46
+ r(this, "eventListener", {});
47
+ e && this.addControllers(e), this.setState(this.state);
67
48
  }
68
49
  show(e) {
69
- return f(this, null, function* () {
50
+ return b(this, null, function* () {
70
51
  this.setState({ visible: !0 }, e);
71
52
  });
72
53
  }
73
54
  hide(e) {
74
- return f(this, null, function* () {
55
+ return b(this, null, function* () {
75
56
  this.setState({ visible: !1 }, e);
76
57
  });
77
58
  }
@@ -86,59 +67,30 @@ class x {
86
67
  }
87
68
  setState(e, s) {
88
69
  if (this.state.disposed)
89
- return m();
70
+ return y();
90
71
  if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
91
- return O();
92
- const t = p({}, this.state);
93
- this.state = p(p({}, this.state), e), e.disposed !== void 0 && e.disposed !== t.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && this.handleVisible(e.visible), e.enabled !== void 0 && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: t });
72
+ return m();
73
+ const t = a({}, this.state);
74
+ this.state = a(a({}, this.state), e), e.disposed !== void 0 && e.disposed !== t.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && this.handleVisible(e.visible), e.enabled !== void 0 && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: t });
94
75
  }
95
76
  addControllers(e) {
96
- this.controllers = p(p({}, this.controllers), e), this.addEventListener(), this.setState(this.state);
97
- }
98
- addHelpers(e) {
99
- this.helpers = p(p({}, this.helpers), e);
77
+ this.controllers = a(a({}, this.controllers), e), this.setState(this.state);
100
78
  }
101
79
  getCurrentState() {
102
80
  return this.state;
103
81
  }
104
- addEventListener() {
105
- for (const e in this.controllers) {
106
- if (!e)
107
- continue;
108
- const s = e;
109
- this.eventListener[s] || (this.eventListener[s] = (() => {
110
- const t = this.controllers[s];
111
- if (!t)
112
- return;
113
- const o = () => this.handleStart(t), i = () => this.handleEnd(t), l = (...a) => this.handlePositionUpdate(t, ...a), h = (...a) => this.handleRotateUpdate(t, ...a), r = (...a) => this.handleScaleUpdate(t, ...a);
114
- return t.hooks.on("moveStart", o), t.hooks.on("rotateStart", o), t.hooks.on("scaleStart", o), t.hooks.on("positionUpdate", l), t.hooks.on("rotateUpdate", h), t.hooks.on("scaleUpdate", r), t.hooks.on("moveEnd", i), t.hooks.on("rotateEnd", i), t.hooks.on("scaleEnd", i), () => {
115
- t.hooks.off("moveStart", o), t.hooks.off("rotateStart", o), t.hooks.off("scaleStart", o), t.hooks.off("positionUpdate", l), t.hooks.off("rotateUpdate", h), t.hooks.off("scaleUpdate", r), t.hooks.off("moveEnd", i), t.hooks.off("rotateEnd", i), t.hooks.off("scaleEnd", i);
116
- };
117
- })());
118
- }
119
- }
120
- handleEnd(e) {
121
- e && this.setOtherHelpersVisible(!0, e);
122
- }
123
- handleStart(e) {
124
- e && this.setOtherHelpersVisible(!1, e);
125
- }
126
- setOtherHelpersVisible(e, s) {
127
- var t, o, i, l;
128
- e ? ((i = this.controllers.moveController) == null || i.helperObject3D.show(), (l = this.controllers.rotateController) == null || l.helperObject3D.show()) : (s !== this.controllers.moveController && ((t = this.controllers.moveController) == null || t.helperObject3D.hide()), s !== this.controllers.rotateController && ((o = this.controllers.rotateController) == null || o.helperObject3D.hide()));
129
- }
130
82
  handleEnable(e, s = !0) {
131
83
  e ? (this.everyControllerDo((t) => {
132
84
  t.enable();
133
85
  }), this.hooks.emit("enable", { userAction: s })) : (this.everyControllerDo((t) => {
134
- t.disable(), t.restoreOpacity();
86
+ t.disable();
135
87
  }), this.hooks.emit("disable", { userAction: s })), this.state.enabled = e;
136
88
  }
137
89
  handleVisible(e, s = !0) {
138
90
  e ? (this.everyControllerDo((t) => {
139
91
  t.show();
140
92
  }), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: s }))) : (this.everyControllerDo((t) => {
141
- t.hide(), t.restoreOpacity();
93
+ t.hide();
142
94
  }), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: s }))), this.state.visible = e;
143
95
  }
144
96
  everyControllerDo(e) {
@@ -149,21 +101,21 @@ class x {
149
101
  handleDispose() {
150
102
  var e, s;
151
103
  Object.values(this.controllers).forEach((t) => {
152
- t == null || t.dispose(), t == null || t.restoreOpacity();
104
+ t == null || t.dispose();
153
105
  });
154
106
  for (const t in this.controllers) {
155
107
  if (!t)
156
108
  continue;
157
- const o = t;
158
- (s = (e = this.eventListener)[o]) == null || s.call(e);
109
+ const l = t;
110
+ (s = (e = this.eventListener)[l]) == null || s.call(e);
159
111
  }
160
112
  }
161
113
  actionIfStateIsEnabled(e, s) {
162
114
  if (this.state.enabled)
163
115
  return e();
164
- s != null && s.warnLog && H();
116
+ s != null && s.warnLog && I();
165
117
  }
166
118
  }
167
119
  export {
168
- x as Object3DHelper
120
+ L as Object3DHelper
169
121
  };
@@ -1,23 +1,33 @@
1
1
  import type * as THREE from 'three';
2
2
  export declare type HelperEventMap = {
3
+ wantToMove: (position: THREE.Vector3) => void;
4
+ wantToRotate: (quaternion: THREE.Quaternion) => void;
5
+ wantToScale: (scale: THREE.Vector3) => void;
6
+ move: (position: THREE.Vector3) => void;
7
+ rotate: (quaternion: THREE.Quaternion) => void;
8
+ scale: (scale: THREE.Vector3) => void;
3
9
  moveStart: () => void;
4
10
  rotateStart: () => void;
5
11
  scaleStart: () => void;
6
- positionUpdate: (position: {
7
- matrix4?: THREE.Matrix4;
8
- } | undefined) => void;
9
- rotateUpdate: (rotate: {
10
- quaternion?: THREE.Quaternion;
11
- origin: THREE.Vector3;
12
- } | undefined) => void;
13
- scaleUpdate: (scale: {
14
- matrix4?: THREE.Matrix4;
15
- origin?: THREE.Vector3;
16
- helperOrigin: THREE.Vector3;
17
- } | undefined) => void;
18
12
  moveEnd: () => void;
19
13
  rotateEnd: () => void;
20
14
  scaleEnd: () => void;
15
+ setObjectPosition: (position: THREE.Vector3) => void;
16
+ setObjectRotate: (quaternion: THREE.Quaternion, origin: THREE.Vector3) => void;
17
+ setObjectScale: (scale: THREE.Vector3) => void;
18
+ applyObjectPosition: (position: {
19
+ matrix4: THREE.Matrix4;
20
+ }) => void;
21
+ applyObjectRotate: (rotate: {
22
+ quaternion: THREE.Quaternion;
23
+ origin: THREE.Vector3;
24
+ }) => void;
25
+ applyObjectScale: (scale: {
26
+ matrix4: THREE.Matrix4;
27
+ origin?: THREE.Vector3;
28
+ }) => void;
29
+ moveByMouseEnable: () => void;
30
+ moveByMouseDisable: () => void;
21
31
  };
22
32
  export interface Object3DHelperState {
23
33
  enabled: boolean;
@@ -1,5 +1,27 @@
1
1
  import type * as THREE from 'three';
2
+ import type { MoveController } from '../Controller/MoveController';
3
+ import type { RotateController } from '../Controller/RotateController';
4
+ import type { BoundingBoxController } from '../Controller/BoundingBoxController';
5
+ import { ScaleController } from '../Controller/ScaleController';
2
6
  export * from './Scissor';
3
7
  export * from './Direction';
4
8
  export * from './Hooks';
9
+ export interface HelperOffset {
10
+ x: number | {
11
+ percents: number;
12
+ };
13
+ y: number | {
14
+ percents: number;
15
+ };
16
+ z: number | {
17
+ percents: number;
18
+ };
19
+ }
5
20
  export declare type Color = THREE.Color | string | number;
21
+ export declare type ClassFunctionParameters<C extends new (...params: any[]) => any, F extends keyof InstanceType<C>> = Parameters<InstanceType<C>[F]>;
22
+ export interface ObjectHelperControllers {
23
+ moveController?: MoveController;
24
+ rotateController?: RotateController;
25
+ scaleController?: ScaleController;
26
+ boundingBoxController?: BoundingBoxController;
27
+ }
@@ -1 +1,2 @@
1
-
1
+ import "three";
2
+ import "../utils/threex/domevents/index.js";
@@ -0,0 +1,2 @@
1
+ import * as THREE from 'three';
2
+ export default function boundingBox(object3D: THREE.Object3D): THREE.Box3 | undefined;
@@ -0,0 +1,24 @@
1
+ import * as p from "three";
2
+ function l(e) {
3
+ const o = new p.Box3(), a = new p.Vector3();
4
+ if (e.updateMatrixWorld(!1), e.traverse((r) => {
5
+ var s;
6
+ if (r.name === "shadow")
7
+ return;
8
+ const t = r.geometry;
9
+ if (t !== void 0)
10
+ if ((s = t == null ? void 0 : t.attributes) != null && s.position) {
11
+ const n = t.attributes.position;
12
+ for (let i = 0, f = n.count; i < f; i++)
13
+ a.fromBufferAttribute(n, i).applyMatrix4(r.matrixWorld), o.expandByPoint(a);
14
+ } else
15
+ t.vertices.forEach((n) => {
16
+ const i = n.clone().applyMatrix4(r.matrixWorld);
17
+ o.expandByPoint(i);
18
+ });
19
+ }), !o.isEmpty())
20
+ return o.translate(e.position.clone().negate()), o;
21
+ }
22
+ export {
23
+ l as boundingBox
24
+ };
@@ -90,7 +90,7 @@ n.prototype.unbind = function(t, e, o, i) {
90
90
  }
91
91
  }
92
92
  var h = this._boundObjs[e].indexOf(t);
93
- console.assert(h !== -1), this._boundObjs[e].splice(h, 1);
93
+ this._boundObjs[e].splice(h, 1);
94
94
  };
95
95
  n.prototype.removeEventListener = n.prototype.unbind;
96
96
  n.prototype._bound = function(t, e) {
@@ -126,7 +126,7 @@ n.prototype._onEvent = function(t, e, o, i) {
126
126
  };
127
127
  n.prototype._notify = function(t, e, o, i) {
128
128
  var s = this._objectCtxGet(e), r = s ? s[t + "Handlers"] : null;
129
- if (console.assert(arguments.length === 4), !s || !r || r.length === 0) {
129
+ if (!s || !r || r.length === 0) {
130
130
  e.parent && this._notify(t, e.parent, o, i);
131
131
  return;
132
132
  }
@@ -0,0 +1,2 @@
1
+ import { GLTF } from '@realsee/five/gltf-loader';
2
+ export default function loadGLTF(url: string): Promise<GLTF>;
@@ -0,0 +1,16 @@
1
+ import { GLTFLoader as i } from "@realsee/five/gltf-loader";
2
+ const a = new i();
3
+ function f(n) {
4
+ return new Promise((r, e) => {
5
+ function t(o) {
6
+ r(o);
7
+ }
8
+ function d(o) {
9
+ e(o);
10
+ }
11
+ a.load(n, t, void 0, d);
12
+ });
13
+ }
14
+ export {
15
+ f as loadGLTF
16
+ };
@@ -0,0 +1 @@
1
+