@realsee/dnalogel 2.1.2-alpha.1 → 2.1.2-alpha.11

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 (780) hide show
  1. package/dist/CSS3DRenderPlugin/CSS3DRender.d.ts +167 -0
  2. package/dist/CSS3DRenderPlugin/Controller.d.ts +81 -0
  3. package/dist/CSS3DRenderPlugin/index.d.ts +5 -0
  4. package/dist/CSS3DRenderPlugin/typing.d.ts +26 -0
  5. package/dist/CSS3DRenderPlugin/utils/CSS3DObjectPlus.d.ts +34 -0
  6. package/dist/CSS3DRenderPlugin/utils/centerPoint.d.ts +2 -0
  7. package/dist/CSS3DRenderPlugin/utils/evenNumber.d.ts +3 -0
  8. package/dist/CSS3DRenderPlugin/utils/index.d.ts +4 -0
  9. package/dist/CSS3DRenderPlugin/utils/positionToVector3.d.ts +13 -0
  10. package/dist/CSS3DRenderPlugin/utils/random.d.ts +1 -0
  11. package/dist/CameraMovementPlugin/CameraMovementPlugin.d.ts +7 -0
  12. package/dist/CameraMovementPlugin/index.d.ts +5 -0
  13. package/dist/CameraMovementPlugin/typing.d.ts +68 -0
  14. package/dist/CruisePlugin/Controller.d.ts +172 -0
  15. package/dist/CruisePlugin/index.d.ts +6 -0
  16. package/dist/CruisePlugin/typing.d.ts +134 -0
  17. package/dist/CruisePlugin/utils/coordinatesAngle.d.ts +12 -0
  18. package/dist/CruisePlugin/utils/coordinatesToVector.d.ts +7 -0
  19. package/dist/CruisePlugin/utils/formatRad.d.ts +7 -0
  20. package/dist/CruisePlugin/utils/linerValue.d.ts +1 -0
  21. package/dist/CruisePlugin/utils/safeCall.d.ts +1 -0
  22. package/dist/CruisePlugin/utils/sleep.d.ts +1 -0
  23. package/dist/CruisePlugin/utils/vectorToCoordinates.d.ts +7 -0
  24. package/dist/GuideLinePlugin/Controller.d.ts +51 -0
  25. package/dist/GuideLinePlugin/index.d.ts +5 -0
  26. package/dist/GuideLinePlugin/typing.d.ts +34 -0
  27. package/dist/GuideLinePlugin/utils/getArrowMaterial.d.ts +4 -0
  28. package/dist/GuideLinePlugin/utils/getLineGeometries.d.ts +16 -0
  29. package/dist/GuideLinePlugin/utils/polyline-normals.d.ts +3 -0
  30. package/dist/ItemLabelPlugin/Plugin.d.ts +4 -0
  31. package/dist/ItemLabelPlugin/events.type.d.ts +9 -0
  32. package/dist/ItemLabelPlugin/index.d.ts +9 -0
  33. package/dist/ItemLabelPlugin/typings.d.ts +65 -0
  34. package/dist/ItemLabelPlugin/utils/getLabelTransform.d.ts +1 -0
  35. package/dist/ItemLabelPlugin/utils/getStrokeLength.d.ts +5 -0
  36. package/dist/ItemLabelPlugin/utils/isImpacted.d.ts +8 -0
  37. package/dist/ItemLabelPlugin/utils/parseData.d.ts +3 -0
  38. package/dist/ItemLabelPlugin/utils/transform2RenderData.d.ts +3 -0
  39. package/dist/ModelChassisCompassPlugin/Plugin.d.ts +19 -0
  40. package/dist/ModelChassisCompassPlugin/index.d.ts +4 -0
  41. package/dist/ModelEntryDoorGuidePlugin/Plugin.d.ts +26 -0
  42. package/dist/ModelEntryDoorGuidePlugin/index.d.ts +4 -0
  43. package/dist/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +4 -0
  44. package/dist/ModelItemLabelPlugin/events.type.d.ts +9 -0
  45. package/dist/ModelItemLabelPlugin/index.d.ts +9 -0
  46. package/dist/ModelItemLabelPlugin/typings.d.ts +56 -0
  47. package/dist/ModelItemLabelPlugin/utils/parseData.d.ts +3 -0
  48. package/dist/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +1 -0
  49. package/dist/ModelRoomLabelPlugin/Controller.d.ts +36 -0
  50. package/dist/ModelRoomLabelPlugin/index.d.ts +12 -0
  51. package/dist/ModelRoomLabelPlugin/typings.d.ts +35 -0
  52. package/dist/ModelRoomLabelPlugin/utils/parseData.d.ts +3 -0
  53. package/dist/ModelTVVideoPlugin/Plugin.d.ts +4 -0
  54. package/dist/ModelTVVideoPlugin/index.d.ts +5 -0
  55. package/dist/ModelTVVideoPlugin/typings.d.ts +25 -0
  56. package/dist/ModelTVVideoPlugin/utils/parseData.d.ts +2 -0
  57. package/dist/ModelViewPlugin/Plugin.d.ts +28 -0
  58. package/dist/ModelViewPlugin/index.d.ts +4 -0
  59. package/dist/Object3DHelperPlugin/Controller.d.ts +65 -0
  60. package/dist/Object3DHelperPlugin/FiveControllerWrapper.d.ts +19 -0
  61. package/dist/Object3DHelperPlugin/index.d.ts +6 -0
  62. package/dist/Object3DHelperPlugin/typings.d.ts +24 -0
  63. package/dist/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +1 -0
  64. package/dist/PanoCompassPlugin/Controller.d.ts +84 -0
  65. package/dist/PanoCompassPlugin/getRoomInfoInstance.d.ts +8 -0
  66. package/dist/PanoCompassPlugin/index.d.ts +7 -0
  67. package/dist/PanoCompassPlugin/typings.d.ts +57 -0
  68. package/dist/PanoCursorRaycasterPlugin/index.d.ts +48 -0
  69. package/dist/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
  70. package/dist/PanoDoorLabelPlugin/Controller.d.ts +37 -0
  71. package/dist/PanoDoorLabelPlugin/index.d.ts +7 -0
  72. package/dist/PanoDoorLabelPlugin/typings.d.ts +38 -0
  73. package/dist/PanoDoorLabelPlugin/utils.d.ts +5 -0
  74. package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +43 -0
  75. package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +48 -0
  76. package/dist/PanoMeasurePlugin/Controller/MixedController.d.ts +42 -0
  77. package/dist/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
  78. package/dist/PanoMeasurePlugin/Controller/ViewController.d.ts +16 -0
  79. package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +26 -0
  80. package/dist/PanoMeasurePlugin/Controller/index.d.ts +73 -0
  81. package/dist/PanoMeasurePlugin/Model/index.d.ts +35 -0
  82. package/dist/PanoMeasurePlugin/Model/line.d.ts +30 -0
  83. package/dist/PanoMeasurePlugin/Model/point.d.ts +16 -0
  84. package/dist/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
  85. package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +2 -0
  86. package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +2 -0
  87. package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +2 -0
  88. package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +25 -0
  89. package/dist/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
  90. package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +18 -0
  91. package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +59 -0
  92. package/dist/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +2 -0
  93. package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +15 -0
  94. package/dist/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +13 -0
  95. package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +20 -0
  96. package/dist/PanoMeasurePlugin/Modules/UIController/mobileHTML.d.ts +4 -0
  97. package/dist/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.d.ts +12 -0
  98. package/dist/PanoMeasurePlugin/Modules/UIController/style.d.ts +16 -0
  99. package/dist/PanoMeasurePlugin/Modules/rangePiece/html.d.ts +4 -0
  100. package/dist/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +44 -0
  101. package/dist/PanoMeasurePlugin/index.d.ts +10 -0
  102. package/dist/PanoMeasurePlugin/typings/data.d.ts +37 -0
  103. package/dist/PanoMeasurePlugin/typings/event.type.d.ts +37 -0
  104. package/dist/PanoMeasurePlugin/typings/index.d.ts +8 -0
  105. package/dist/PanoMeasurePlugin/utils/calculateThreeMouse.d.ts +10 -0
  106. package/dist/PanoMeasurePlugin/utils/constants.d.ts +4 -0
  107. package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +28 -0
  108. package/dist/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +2 -0
  109. package/dist/PanoMeasurePlugin/utils/findClosestPoint.d.ts +10 -0
  110. package/dist/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +4 -0
  111. package/dist/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +10 -0
  112. package/dist/PanoMeasurePlugin/utils/ironbox.d.ts +1 -0
  113. package/dist/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +2 -0
  114. package/dist/PanoMeasurePlugin/utils/line.d.ts +17 -0
  115. package/dist/PanoMeasurePlugin/utils/math.d.ts +17 -0
  116. package/dist/PanoMeasurePlugin/utils/mouseGroup.d.ts +7 -0
  117. package/dist/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
  118. package/dist/PanoRulerPlugin/Plugin.d.ts +34 -0
  119. package/dist/PanoRulerPlugin/index.d.ts +5 -0
  120. package/dist/PanoRulerPlugin/style.d.ts +2 -0
  121. package/dist/PanoRulerPlugin/typings.d.ts +21 -0
  122. package/dist/PanoRulerProPlugin/Controller.d.ts +15 -0
  123. package/dist/PanoRulerProPlugin/index.d.ts +8 -0
  124. package/dist/PanoRulerProPlugin/typings.d.ts +46 -0
  125. package/dist/PanoSpatialTagPlugin/Plugin.d.ts +35 -0
  126. package/dist/PanoSpatialTagPlugin/index.d.ts +5 -0
  127. package/dist/PanoSpatialTagPlugin/store.d.ts +1 -0
  128. package/dist/PanoSpatialTagPlugin/style.d.ts +1 -0
  129. package/dist/PanoSpatialTagPlugin/typings.d.ts +40 -0
  130. package/dist/PanoTagPlugin/Assets/Icon.d.ts +3 -0
  131. package/dist/PanoTagPlugin/controller/TagCacheController.d.ts +22 -0
  132. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +69 -0
  133. package/dist/PanoTagPlugin/controller/index.d.ts +144 -0
  134. package/dist/PanoTagPlugin/index.d.ts +8 -0
  135. package/dist/PanoTagPlugin/tag.config.d.ts +7 -0
  136. package/dist/PanoTagPlugin/typings/controller.d.ts +103 -0
  137. package/dist/PanoTagPlugin/typings/index.d.ts +2 -0
  138. package/dist/PanoTagPlugin/typings/tag.d.ts +247 -0
  139. package/dist/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +2 -0
  140. package/dist/PanoTagPlugin/utils/addDebugPoints.d.ts +3 -0
  141. package/dist/PanoTagPlugin/utils/checkRange.d.ts +4 -0
  142. package/dist/PanoTagPlugin/utils/constants.d.ts +3 -0
  143. package/dist/PanoTagPlugin/utils/debounce.d.ts +7 -0
  144. package/dist/PanoTagPlugin/utils/doUtil.d.ts +1 -0
  145. package/dist/PanoTagPlugin/utils/index.d.ts +12 -0
  146. package/dist/PanoTagPlugin/utils/noTypecheck.d.ts +1 -0
  147. package/dist/PanoTagPlugin/utils/normalPositionToPositions.d.ts +2 -0
  148. package/dist/PanoTagPlugin/utils/planeNormal.d.ts +4 -0
  149. package/dist/PanoTagPlugin/utils/resizeObserver.d.ts +4 -0
  150. package/dist/PanoTagPlugin/utils/search.d.ts +11 -0
  151. package/dist/PanoTagPlugin/utils/tagPosition.d.ts +3 -0
  152. package/dist/PanoTagPlugin/utils/throttle.d.ts +7 -0
  153. package/dist/base/BasePlugin.d.ts +106 -0
  154. package/dist/base/BasePluginWithData.d.ts +34 -0
  155. package/dist/components/PaintBrush/Controller.d.ts +43 -0
  156. package/dist/components/PaintBrush/Subscribe.d.ts +76 -0
  157. package/dist/components/PaintBrush/index.d.ts +27 -0
  158. package/dist/components/PaintBrush/style.d.ts +2 -0
  159. package/dist/components/PaintBrush/tween.d.ts +7 -0
  160. package/dist/components/PaintBrush/typings.d.ts +58 -0
  161. package/dist/components/PaintBrush/utils.d.ts +26 -0
  162. package/dist/components/index.d.ts +2 -0
  163. package/dist/env.d.ts +1 -0
  164. package/dist/floorplan/Assets/camera.d.ts +1 -0
  165. package/dist/floorplan/Assets/compass.d.ts +1 -0
  166. package/dist/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
  167. package/dist/floorplan/MapviewFloorplanPlugin/Controller.d.ts +97 -0
  168. package/dist/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
  169. package/dist/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -0
  170. package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +99 -0
  171. package/dist/floorplan/ModelFloorplanPlugin/index.d.ts +7 -0
  172. package/dist/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -0
  173. package/dist/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +36 -0
  174. package/dist/floorplan/PanoFloorplanRadarPlugin/index.d.ts +7 -0
  175. package/dist/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +52 -0
  176. package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +69 -0
  177. package/dist/floorplan/TopviewFloorplanPlugin/index.d.ts +7 -0
  178. package/dist/floorplan/TopviewFloorplanPlugin/typing.d.ts +11 -0
  179. package/dist/floorplan/constant.d.ts +5 -0
  180. package/dist/floorplan/index.d.ts +7 -0
  181. package/dist/floorplan/typings/floorplanData.d.ts +137 -0
  182. package/dist/floorplan/typings/floorplanServerData.d.ts +144 -0
  183. package/dist/floorplan/typings/index.d.ts +117 -0
  184. package/dist/floorplan/typings/utility.d.ts +2 -0
  185. package/dist/floorplan/utils/constant.d.ts +22 -0
  186. package/dist/floorplan/utils/correctFiveState.d.ts +15 -0
  187. package/dist/floorplan/utils/formatData.d.ts +5 -0
  188. package/dist/floorplan/utils/formatPosition.d.ts +36 -0
  189. package/dist/index.d.ts +23 -0
  190. package/dist/index.js +406 -16500
  191. package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +48 -0
  192. package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +91 -0
  193. package/dist/shared-utils/Object3DHelper/Constants/color.d.ts +12 -0
  194. package/dist/shared-utils/Object3DHelper/Controller/CSS3DScaleController.d.ts +6 -0
  195. package/dist/shared-utils/Object3DHelper/Controller/MoveController.d.ts +13 -0
  196. package/dist/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +37 -0
  197. package/dist/shared-utils/Object3DHelper/Controller/RotateController.d.ts +22 -0
  198. package/dist/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.d.ts +11 -0
  199. package/dist/shared-utils/Object3DHelper/Helper/HTML/tipsDom.d.ts +6 -0
  200. package/dist/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.d.ts +2 -0
  201. package/dist/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +13 -0
  202. package/dist/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.d.ts +17 -0
  203. package/dist/shared-utils/Object3DHelper/Helper/OutlineHelper.d.ts +11 -0
  204. package/dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +40 -0
  205. package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +55 -0
  206. package/dist/shared-utils/Object3DHelper/Helper/index.d.ts +5 -0
  207. package/dist/shared-utils/Object3DHelper/index.d.ts +71 -0
  208. package/dist/shared-utils/Object3DHelper/typings/Direction.d.ts +2 -0
  209. package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +45 -0
  210. package/dist/shared-utils/Object3DHelper/typings/Scissor.d.ts +17 -0
  211. package/dist/shared-utils/Object3DHelper/typings/index.d.ts +5 -0
  212. package/dist/shared-utils/Object3DHelper/utils/calculateThreeMouse.d.ts +14 -0
  213. package/dist/shared-utils/Object3DHelper/utils/direction.d.ts +14 -0
  214. package/dist/shared-utils/Object3DHelper/utils/filterNotColinearPoints.d.ts +2 -0
  215. package/dist/shared-utils/Object3DHelper/utils/getMouseRaycaster.d.ts +5 -0
  216. package/dist/shared-utils/Object3DHelper/utils/getPoint.d.ts +3 -0
  217. package/dist/shared-utils/Object3DHelper/utils/index.d.ts +8 -0
  218. package/dist/shared-utils/Object3DHelper/utils/normalPositionToPositions.d.ts +5 -0
  219. package/dist/shared-utils/Object3DHelper/utils/object3DBoundingPosition.d.ts +1 -0
  220. package/dist/shared-utils/Object3DHelper/utils/threex/domevents/index.d.ts +34 -0
  221. package/dist/shared-utils/Object3DHelper/utils/vectorIsEqual.d.ts +2 -0
  222. package/dist/shared-utils/Subscribe.d.ts +60 -0
  223. package/dist/shared-utils/animationFrame/BetterTween.d.ts +11 -0
  224. package/dist/shared-utils/animationFrame/calculateProgress.d.ts +8 -0
  225. package/dist/shared-utils/animationFrame/formatRad.d.ts +15 -0
  226. package/dist/shared-utils/animationFrame/index.d.ts +16 -0
  227. package/dist/shared-utils/animationFrame/tween.d.ts +75 -0
  228. package/dist/shared-utils/changeModelCanvasOpacity.d.ts +2 -0
  229. package/dist/shared-utils/createCanvasTextTexture.d.ts +8 -0
  230. package/dist/shared-utils/createLine/index.d.ts +3 -0
  231. package/dist/shared-utils/debounce.d.ts +6 -0
  232. package/dist/shared-utils/equal.d.ts +11 -0
  233. package/dist/shared-utils/filter.d.ts +27 -0
  234. package/dist/shared-utils/five/changeMode.d.ts +5 -0
  235. package/dist/shared-utils/getPxmm.d.ts +19 -0
  236. package/dist/shared-utils/index.d.ts +4 -0
  237. package/dist/shared-utils/isNil.d.ts +10 -0
  238. package/dist/shared-utils/isTruelyObject.d.ts +18 -0
  239. package/dist/shared-utils/math/Interval.d.ts +13 -0
  240. package/dist/shared-utils/math/Rectangle.d.ts +27 -0
  241. package/dist/shared-utils/math/index.d.ts +2 -0
  242. package/dist/shared-utils/math/planimetry.d.ts +116 -0
  243. package/dist/shared-utils/math/rad2Deg.d.ts +1 -0
  244. package/dist/shared-utils/nearlyEqual.d.ts +7 -0
  245. package/dist/shared-utils/nextFrame.d.ts +1 -0
  246. package/dist/shared-utils/noop.d.ts +5 -0
  247. package/dist/shared-utils/object3d2LocalMatrix.d.ts +12 -0
  248. package/dist/shared-utils/removeArrayItem.d.ts +7 -0
  249. package/dist/shared-utils/tap.d.ts +8 -0
  250. package/dist/shared-utils/three/Assets/index.d.ts +3 -0
  251. package/dist/shared-utils/three/FivePointSelector.d.ts +36 -0
  252. package/dist/shared-utils/three/Magnifier.d.ts +53 -0
  253. package/dist/shared-utils/three/PointDomHelper.d.ts +18 -0
  254. package/dist/shared-utils/three/PointHelper.d.ts +21 -0
  255. package/dist/shared-utils/three/getCoords.d.ts +9 -0
  256. package/dist/shared-utils/three/getIntersect.d.ts +6 -0
  257. package/dist/shared-utils/three/getRaycaster.d.ts +6 -0
  258. package/dist/shared-utils/three/index.d.ts +7 -0
  259. package/dist/shared-utils/three/loadTexture.d.ts +2 -0
  260. package/dist/shared-utils/three/transformPositionToVector3.d.ts +7 -0
  261. package/dist/shared-utils/three/transfromToMeshBasicMaterial.d.ts +2 -0
  262. package/dist/shared-utils/throttle.d.ts +7 -0
  263. package/dist/shared-utils/tinyEJSrender.d.ts +5 -0
  264. package/dist/shared-utils/to.d.ts +8 -0
  265. package/dist/shared-utils/uuid.d.ts +5 -0
  266. package/dist/typings/math.type.d.ts +44 -0
  267. package/docs/classes/CruisePluginController.html +24 -24
  268. package/docs/classes/Magnifier.html +16 -16
  269. package/docs/classes/ModelRoomLabelController.html +11 -11
  270. package/docs/classes/Object3DHelperController.html +24 -24
  271. package/docs/classes/PaintBrush.html +15 -15
  272. package/docs/classes/PanoTagPluginController.html +39 -39
  273. package/docs/classes/Util.BetterTween.html +8 -8
  274. package/docs/classes/Util.FivePointSelector.html +12 -12
  275. package/docs/classes/Util.Interval.html +12 -12
  276. package/docs/classes/Util.Magnifier.html +17 -17
  277. package/docs/classes/Util.PointDomHelper.html +11 -11
  278. package/docs/classes/Util.PointHelper.html +11 -11
  279. package/docs/classes/Util.Rectangle.html +13 -13
  280. package/docs/enums/CameraMovementEffect.html +7 -7
  281. package/docs/enums/ContentType.html +12 -12
  282. package/docs/enums/DIRECTION.html +9 -9
  283. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  284. package/docs/enums/DimensionType.html +7 -7
  285. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  286. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  287. package/docs/enums/LinkType.html +7 -7
  288. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  289. package/docs/enums/PointType.html +7 -7
  290. package/docs/enums/Rotation.html +8 -8
  291. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  292. package/docs/functions/CameraMovementPlugin.html +4 -4
  293. package/docs/functions/CruisePlugin.html +4 -4
  294. package/docs/functions/GuideLinePlugin.html +5 -5
  295. package/docs/functions/ItemLabelPlugin.html +4 -4
  296. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  297. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  298. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  299. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  300. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  301. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  302. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  303. package/docs/functions/ModelViewPlugin.html +4 -4
  304. package/docs/functions/Object3DHelperPlugin.html +4 -4
  305. package/docs/functions/PanoCompassPlugin.html +4 -4
  306. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  307. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  308. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  309. package/docs/functions/PanoMeasurePlugin.html +4 -4
  310. package/docs/functions/PanoRulerPlugin.html +4 -4
  311. package/docs/functions/PanoRulerProPlugin.html +4 -4
  312. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  313. package/docs/functions/PanoTagPlugin.html +4 -4
  314. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  315. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  316. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  317. package/docs/functions/Util.getFrameTime.html +5 -5
  318. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  319. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  320. package/docs/functions/Util.isNil.html +5 -5
  321. package/docs/functions/Util.nextFrame.html +5 -5
  322. package/docs/functions/Util.notNil.html +5 -5
  323. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  324. package/docs/functions/Util.tweenProgress.html +5 -5
  325. package/docs/functions/pluginFlag.html +5 -5
  326. package/docs/index.html +4 -4
  327. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  328. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  329. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  330. package/docs/interfaces/ContentTypeMap.html +12 -12
  331. package/docs/interfaces/FloorplanBounding.html +8 -8
  332. package/docs/interfaces/FloorplanData.html +10 -10
  333. package/docs/interfaces/FloorplanEntrance.html +11 -11
  334. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  335. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  336. package/docs/interfaces/FloorplanFloorData.html +9 -9
  337. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  338. package/docs/interfaces/FloorplanObserver.html +9 -9
  339. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  340. package/docs/interfaces/FloorplanPosition.html +7 -7
  341. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  342. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  343. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  344. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  345. package/docs/interfaces/FloorplanServerData.html +7 -7
  346. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  347. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  348. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  349. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  350. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  351. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  352. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  353. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  354. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  355. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  356. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  357. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  358. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  359. package/docs/interfaces/LineJson.html +7 -7
  360. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  361. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  362. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  363. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  364. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  365. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  366. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  367. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  368. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  369. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  370. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  371. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  372. package/docs/interfaces/ModelViewPluginExportType.html +8 -8
  373. package/docs/interfaces/Object3DHelperState.html +8 -8
  374. package/docs/interfaces/OpenParameter.html +7 -7
  375. package/docs/interfaces/PaintBrushAction.html +12 -12
  376. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  377. package/docs/interfaces/PaintBrushState.html +10 -10
  378. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  379. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  380. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  381. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  382. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  383. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  384. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  385. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  386. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  387. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  388. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  389. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  390. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  391. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  392. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  393. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  394. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  395. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  396. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  397. package/docs/interfaces/Point.html +8 -8
  398. package/docs/interfaces/PointJson.html +8 -8
  399. package/docs/interfaces/Room.html +9 -9
  400. package/docs/interfaces/RoomInfo.html +7 -7
  401. package/docs/interfaces/RoomLabel.html +14 -14
  402. package/docs/interfaces/RoomRules.html +5 -5
  403. package/docs/interfaces/Rooms.html +5 -5
  404. package/docs/interfaces/Scissor.html +9 -9
  405. package/docs/interfaces/TagConfig.html +10 -10
  406. package/docs/interfaces/Tags.html +9 -9
  407. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  408. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  409. package/docs/modules/Util.html +5 -5
  410. package/docs/modules.html +4 -4
  411. package/docs/types/ArrayPosition.html +5 -5
  412. package/docs/types/CSS3DRenderExportType.html +5 -5
  413. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  414. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  415. package/docs/types/Color.html +5 -5
  416. package/docs/types/ContentTypeConfigKey.html +5 -5
  417. package/docs/types/ContentTypeConfigKeyArray.html +5 -5
  418. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  419. package/docs/types/Create3DElementReturnType.html +5 -5
  420. package/docs/types/CruisePluginExportType.html +5 -5
  421. package/docs/types/Direction-1.html +5 -5
  422. package/docs/types/Direction4.html +5 -5
  423. package/docs/types/FloorplanRuleLabels.html +5 -5
  424. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  425. package/docs/types/GuideLinePluginExportType.html +5 -5
  426. package/docs/types/HelperEventMap.html +5 -5
  427. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  428. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  429. package/docs/types/MediaData.html +5 -5
  430. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  431. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  432. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  433. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  434. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  435. package/docs/types/MoveArgs.html +5 -5
  436. package/docs/types/MoveOpts.html +5 -5
  437. package/docs/types/Object3DHelperEventMap.html +5 -5
  438. package/docs/types/ObjectFit.html +5 -5
  439. package/docs/types/PaintBrushEventMap.html +5 -5
  440. package/docs/types/PanoCompassPluginData.html +5 -5
  441. package/docs/types/PanoCompassPluginExportType.html +5 -5
  442. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  443. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  444. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  445. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  446. package/docs/types/PanoMeasureReturnType.html +5 -5
  447. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  448. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  449. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  450. package/docs/types/PlaneTag.html +5 -5
  451. package/docs/types/PointTag.html +5 -5
  452. package/docs/types/Position.html +5 -5
  453. package/docs/types/RotateArgs.html +5 -5
  454. package/docs/types/RotateOpts.html +5 -5
  455. package/docs/types/RuleLabelsKey.html +5 -5
  456. package/docs/types/RuleLabelsValue.html +5 -5
  457. package/docs/types/Tag.html +5 -5
  458. package/docs/types/Tag2D.html +5 -5
  459. package/docs/types/Tag3D.html +5 -5
  460. package/docs/types/TagId.html +5 -5
  461. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  462. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  463. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  464. package/docs/variables/PLUGIN.html +5 -5
  465. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  466. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  467. package/docs/variables/VERSION.html +5 -5
  468. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  469. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  470. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  471. package/libs/CSS3DRenderPlugin/CSS3DRender.js +327 -1
  472. package/libs/CSS3DRenderPlugin/Controller.js +83 -1
  473. package/libs/CSS3DRenderPlugin/index.js +5 -1
  474. package/libs/CSS3DRenderPlugin/typing.js +1 -1
  475. package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +65 -1
  476. package/libs/CSS3DRenderPlugin/utils/centerPoint.js +10 -1
  477. package/libs/CSS3DRenderPlugin/utils/evenNumber.js +7 -1
  478. package/libs/CSS3DRenderPlugin/utils/index.js +1 -1
  479. package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +6 -1
  480. package/libs/CSS3DRenderPlugin/utils/random.js +1 -1
  481. package/libs/CameraMovementPlugin/CameraMovementPlugin.js +87 -1
  482. package/libs/CameraMovementPlugin/index.js +3 -1
  483. package/libs/CameraMovementPlugin/typing.js +5 -1
  484. package/libs/CruisePlugin/Controller.js +484 -1
  485. package/libs/CruisePlugin/index.js +5 -1
  486. package/libs/CruisePlugin/utils/coordinatesAngle.js +8 -1
  487. package/libs/CruisePlugin/utils/coordinatesToVector.js +12 -1
  488. package/libs/CruisePlugin/utils/formatRad.js +7 -1
  489. package/libs/CruisePlugin/utils/linerValue.js +7 -1
  490. package/libs/CruisePlugin/utils/safeCall.js +28 -1
  491. package/libs/CruisePlugin/utils/sleep.js +10 -1
  492. package/libs/CruisePlugin/utils/vectorToCoordinates.js +10 -1
  493. package/libs/GuideLinePlugin/Controller.js +143 -1
  494. package/libs/GuideLinePlugin/index.js +5 -1
  495. package/libs/GuideLinePlugin/utils/getArrowMaterial.js +13 -1
  496. package/libs/GuideLinePlugin/utils/getLineGeometries.js +64 -1
  497. package/libs/ItemLabelPlugin/ItemLabelComponent.js +273 -1
  498. package/libs/ItemLabelPlugin/ItemLabelItem.js +133 -2
  499. package/libs/ItemLabelPlugin/Plugin.js +75 -2
  500. package/libs/ItemLabelPlugin/index.js +12 -1
  501. package/libs/ItemLabelPlugin/typings.js +4 -1
  502. package/libs/ItemLabelPlugin/utils/getLabelTransform.js +4 -1
  503. package/libs/ItemLabelPlugin/utils/getStrokeLength.js +16 -1
  504. package/libs/ItemLabelPlugin/utils/isImpacted.js +10 -1
  505. package/libs/ItemLabelPlugin/utils/parseData.js +21 -1
  506. package/libs/ItemLabelPlugin/utils/transform2RenderData.js +21 -1
  507. package/libs/ModelChassisCompassPlugin/Plugin.js +70 -1
  508. package/libs/ModelChassisCompassPlugin/index.js +2 -1
  509. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +77 -1
  510. package/libs/ModelEntryDoorGuidePlugin/index.js +2 -1
  511. package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +213 -1
  512. package/libs/ModelItemLabelPlugin/ItemLabelItem.js +42 -2
  513. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +73 -2
  514. package/libs/ModelItemLabelPlugin/events.type.js +1 -1
  515. package/libs/ModelItemLabelPlugin/index.js +12 -1
  516. package/libs/ModelItemLabelPlugin/typings.js +4 -1
  517. package/libs/ModelItemLabelPlugin/utils/parseData.js +19 -1
  518. package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.js +4 -1
  519. package/libs/ModelRoomLabelPlugin/Controller.js +60 -1
  520. package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +45 -1
  521. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +163 -1
  522. package/libs/ModelRoomLabelPlugin/index.js +9 -1
  523. package/libs/ModelRoomLabelPlugin/utils/parseData.js +16 -1
  524. package/libs/ModelTVVideoPlugin/Plugin.js +163 -1
  525. package/libs/ModelTVVideoPlugin/index.js +2 -1
  526. package/libs/ModelTVVideoPlugin/typings.js +4 -1
  527. package/libs/ModelTVVideoPlugin/utils/parseData.js +20 -1
  528. package/libs/ModelViewPlugin/Plugin.js +106 -1
  529. package/libs/ModelViewPlugin/index.js +2 -1
  530. package/libs/Object3DHelperPlugin/Controller.js +145 -1
  531. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +31 -1
  532. package/libs/Object3DHelperPlugin/index.js +5 -1
  533. package/libs/PanoCompassPlugin/Assets/roomInfoIcon.js +4 -1
  534. package/libs/PanoCompassPlugin/Controller.js +224 -1
  535. package/libs/PanoCompassPlugin/getRoomInfoInstance.js +24 -1
  536. package/libs/PanoCompassPlugin/index.js +5 -1
  537. package/libs/PanoCursorRaycasterPlugin/index.js +58 -1
  538. package/libs/PanoDoorLabelPlugin/BaseController.js +59 -1
  539. package/libs/PanoDoorLabelPlugin/Controller.js +219 -1
  540. package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +65 -1
  541. package/libs/PanoDoorLabelPlugin/index.js +5 -1
  542. package/libs/PanoDoorLabelPlugin/utils.js +23 -1
  543. package/libs/PanoMeasurePlugin/Controller/BaseController.js +53 -1
  544. package/libs/PanoMeasurePlugin/Controller/EditController.js +102 -1
  545. package/libs/PanoMeasurePlugin/Controller/MixedController.js +125 -1
  546. package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +33 -1
  547. package/libs/PanoMeasurePlugin/Controller/ViewController.js +90 -1
  548. package/libs/PanoMeasurePlugin/Controller/WatchController.js +154 -1
  549. package/libs/PanoMeasurePlugin/Controller/index.js +140 -1
  550. package/libs/PanoMeasurePlugin/Model/index.js +92 -1
  551. package/libs/PanoMeasurePlugin/Model/line.js +56 -1
  552. package/libs/PanoMeasurePlugin/Model/point.js +30 -1
  553. package/libs/PanoMeasurePlugin/Model/polyline.js +47 -1
  554. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +5 -2
  555. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +4 -1
  556. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +4 -1
  557. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +67 -3
  558. package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +28 -1
  559. package/libs/PanoMeasurePlugin/Modules/GuideController.js +41 -1
  560. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +103 -1
  561. package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +12 -8
  562. package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +50 -1
  563. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +36 -1
  564. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +48 -1
  565. package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +8 -3
  566. package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +39 -1
  567. package/libs/PanoMeasurePlugin/Modules/UIController/style.js +62 -1
  568. package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +6 -2
  569. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +130 -1
  570. package/libs/PanoMeasurePlugin/index.js +10 -1
  571. package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +12 -1
  572. package/libs/PanoMeasurePlugin/utils/constants.js +36 -1
  573. package/libs/PanoMeasurePlugin/utils/distanceDom.js +62 -1
  574. package/libs/PanoMeasurePlugin/utils/findAssociatedLines.js +13 -1
  575. package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +15 -1
  576. package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +9 -1
  577. package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +8 -1
  578. package/libs/PanoMeasurePlugin/utils/ironbox.js +4 -1
  579. package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +7 -1
  580. package/libs/PanoMeasurePlugin/utils/line.js +17 -1
  581. package/libs/PanoMeasurePlugin/utils/math.js +12 -1
  582. package/libs/PanoMeasurePlugin/utils/mouseGroup.js +33 -3
  583. package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +8 -1
  584. package/libs/PanoRulerPlugin/Plugin.js +262 -2
  585. package/libs/PanoRulerPlugin/index.js +2 -1
  586. package/libs/PanoRulerPlugin/style.js +5 -2
  587. package/libs/PanoRulerProPlugin/Controller.js +93 -1
  588. package/libs/PanoRulerProPlugin/RulerItem.js +128 -1
  589. package/libs/PanoRulerProPlugin/RulerItems.js +183 -1
  590. package/libs/PanoRulerProPlugin/index.js +5 -1
  591. package/libs/PanoSpatialTagPlugin/Components/origins.js +82 -1
  592. package/libs/PanoSpatialTagPlugin/Components/tag.js +125 -1
  593. package/libs/PanoSpatialTagPlugin/Plugin.js +246 -1
  594. package/libs/PanoSpatialTagPlugin/index.js +6 -1
  595. package/libs/PanoSpatialTagPlugin/store.js +5 -1
  596. package/libs/PanoSpatialTagPlugin/style.js +11 -1
  597. package/libs/PanoSpatialTagPlugin/typings.js +1 -1
  598. package/libs/PanoTagPlugin/Assets/Icon.js +6 -1
  599. package/libs/PanoTagPlugin/Components/Common/Arrow.js +103 -1
  600. package/libs/PanoTagPlugin/Components/Common/Audio.js +166 -1
  601. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +93 -1
  602. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +90 -1
  603. package/libs/PanoTagPlugin/Components/Common/Media.js +400 -1
  604. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +139 -1
  605. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +180 -1
  606. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +52 -1
  607. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +52 -1
  608. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +169 -1
  609. package/libs/PanoTagPlugin/Components/Common/Shadow.js +124 -15
  610. package/libs/PanoTagPlugin/Components/Common/Text.js +131 -1
  611. package/libs/PanoTagPlugin/Components/Common/TextItem.js +106 -0
  612. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +140 -1
  613. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +73 -1
  614. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +214 -1
  615. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +127 -1
  616. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +259 -1
  617. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +106 -1
  618. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +134 -1
  619. package/libs/PanoTagPlugin/Components/Tag/index.js +318 -2
  620. package/libs/PanoTagPlugin/Components/TagContainer.js +200 -1
  621. package/libs/PanoTagPlugin/Components/TagWrapper.js +191 -1
  622. package/libs/PanoTagPlugin/controller/TagCacheController.js +31 -1
  623. package/libs/PanoTagPlugin/controller/TagComputer.js +264 -1
  624. package/libs/PanoTagPlugin/controller/index.js +376 -1
  625. package/libs/PanoTagPlugin/index.js +5 -1
  626. package/libs/PanoTagPlugin/tag.config.js +43 -1
  627. package/libs/PanoTagPlugin/typings/controller.js +1 -1
  628. package/libs/PanoTagPlugin/typings/index.js +1 -1
  629. package/libs/PanoTagPlugin/typings/tag.js +7 -1
  630. package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +6 -1
  631. package/libs/PanoTagPlugin/utils/addDebugPoints.js +27 -1
  632. package/libs/PanoTagPlugin/utils/checkRange.js +10 -1
  633. package/libs/PanoTagPlugin/utils/constants.js +7 -1
  634. package/libs/PanoTagPlugin/utils/debounce.js +12 -1
  635. package/libs/PanoTagPlugin/utils/doUtil.js +12 -1
  636. package/libs/PanoTagPlugin/utils/index.js +1 -1
  637. package/libs/PanoTagPlugin/utils/noTypecheck.js +4 -1
  638. package/libs/PanoTagPlugin/utils/normalPositionToPositions.js +13 -1
  639. package/libs/PanoTagPlugin/utils/planeNormal.js +11 -1
  640. package/libs/PanoTagPlugin/utils/resizeObserver.js +17 -1
  641. package/libs/PanoTagPlugin/utils/search.js +15 -1
  642. package/libs/PanoTagPlugin/utils/tagPosition.js +13 -1
  643. package/libs/PanoTagPlugin/utils/throttle.js +11 -1
  644. package/libs/base/BasePlugin.js +18 -1
  645. package/libs/base/BasePluginWithData.js +6 -1
  646. package/libs/components/PaintBrush/Controller.js +308 -1
  647. package/libs/components/PaintBrush/Subscribe.js +47 -1
  648. package/libs/components/PaintBrush/index.js +45 -1
  649. package/libs/components/PaintBrush/style.js +5 -2
  650. package/libs/components/PaintBrush/tween.js +11 -1
  651. package/libs/components/PaintBrush/typings.js +4 -1
  652. package/libs/components/PaintBrush/utils.js +45 -1
  653. package/libs/components/index.js +2 -1
  654. package/libs/floorplan/Assets/camera.js +4 -1
  655. package/libs/floorplan/Assets/compass.js +4 -1
  656. package/libs/floorplan/Assets/floorplanExtraObject.js +4 -1
  657. package/libs/floorplan/Components/BaseImage.js +103 -1
  658. package/libs/floorplan/Components/Camera.js +62 -1
  659. package/libs/floorplan/Components/Compass.js +60 -1
  660. package/libs/floorplan/Components/CurrentFloor.js +256 -1
  661. package/libs/floorplan/Components/Main.js +283 -1
  662. package/libs/floorplan/Components/Normalmage.js +37 -1
  663. package/libs/floorplan/Components/RoomHighlight/Room.js +61 -1
  664. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +122 -1
  665. package/libs/floorplan/Components/RoomLabels/RoomLabel.js +153 -1
  666. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +175 -1
  667. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +196 -1
  668. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +37 -1
  669. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +39 -1
  670. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +37 -1
  671. package/libs/floorplan/Components/RuleLabels/RuleItem.js +134 -1
  672. package/libs/floorplan/Components/RuleLabels/RuleLabels.js +139 -1
  673. package/libs/floorplan/Components/SvgImage.js +39 -2
  674. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +321 -1
  675. package/libs/floorplan/MapviewFloorplanPlugin/index.js +5 -1
  676. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +316 -1
  677. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -1
  678. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +85 -1
  679. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +133 -1
  680. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +72 -1
  681. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +192 -1
  682. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +164 -1
  683. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -1
  684. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +273 -1
  685. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -1
  686. package/libs/floorplan/constant.js +4 -1
  687. package/libs/floorplan/index.js +6 -1
  688. package/libs/floorplan/typings/floorplanData.js +1 -1
  689. package/libs/floorplan/typings/floorplanServerData.js +101 -1
  690. package/libs/floorplan/utils/constant.js +7 -1
  691. package/libs/floorplan/utils/correctFiveState.js +54 -1
  692. package/libs/floorplan/utils/formatData.js +104 -1
  693. package/libs/floorplan/utils/formatPosition.js +35 -1
  694. package/libs/index.js +346 -1
  695. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +151 -1
  696. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +51 -1
  697. package/libs/shared-utils/Object3DHelper/Constants/color.js +20 -1
  698. package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +18 -1
  699. package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +66 -1
  700. package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +109 -1
  701. package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +134 -1
  702. package/libs/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +79 -1
  703. package/libs/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +41 -1
  704. package/libs/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +13 -1
  705. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +30 -1
  706. package/libs/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +35 -1
  707. package/libs/shared-utils/Object3DHelper/Helper/OutlineHelper.js +2 -1
  708. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +137 -1
  709. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +136 -1
  710. package/libs/shared-utils/Object3DHelper/Helper/index.js +3 -1
  711. package/libs/shared-utils/Object3DHelper/index.js +169 -1
  712. package/libs/shared-utils/Object3DHelper/typings/Direction.js +1 -1
  713. package/libs/shared-utils/Object3DHelper/typings/Hooks.js +1 -1
  714. package/libs/shared-utils/Object3DHelper/typings/Scissor.js +1 -1
  715. package/libs/shared-utils/Object3DHelper/typings/index.js +1 -1
  716. package/libs/shared-utils/Object3DHelper/utils/calculateThreeMouse.js +11 -1
  717. package/libs/shared-utils/Object3DHelper/utils/direction.js +22 -1
  718. package/libs/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +1 -1
  719. package/libs/shared-utils/Object3DHelper/utils/getMouseRaycaster.js +14 -1
  720. package/libs/shared-utils/Object3DHelper/utils/getPoint.js +1 -1
  721. package/libs/shared-utils/Object3DHelper/utils/index.js +1 -1
  722. package/libs/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +1 -1
  723. package/libs/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +1 -1
  724. package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +191 -1
  725. package/libs/shared-utils/Object3DHelper/utils/vectorIsEqual.js +6 -1
  726. package/libs/shared-utils/Subscribe.js +50 -1
  727. package/libs/shared-utils/animationFrame/BetterTween.js +26 -1
  728. package/libs/shared-utils/animationFrame/calculateProgress.js +6 -1
  729. package/libs/shared-utils/animationFrame/formatRad.js +11 -1
  730. package/libs/shared-utils/animationFrame/index.js +28 -1
  731. package/libs/shared-utils/animationFrame/tween.js +28 -1
  732. package/libs/shared-utils/changeModelCanvasOpacity.js +12 -1
  733. package/libs/shared-utils/createCanvasTextTexture.js +11 -1
  734. package/libs/shared-utils/createLine/index.js +9 -1
  735. package/libs/shared-utils/debounce.js +11 -1
  736. package/libs/shared-utils/equal.js +54 -1
  737. package/libs/shared-utils/filter.js +10 -1
  738. package/libs/shared-utils/five/changeMode.js +39 -1
  739. package/libs/shared-utils/getPxmm.js +20 -1
  740. package/libs/shared-utils/index.js +35 -1
  741. package/libs/shared-utils/isNil.js +10 -1
  742. package/libs/shared-utils/isTruelyObject.js +6 -1
  743. package/libs/shared-utils/math/Interval.js +23 -1
  744. package/libs/shared-utils/math/Rectangle.js +23 -1
  745. package/libs/shared-utils/math/index.js +1 -1
  746. package/libs/shared-utils/math/planimetry.js +43 -1
  747. package/libs/shared-utils/math/rad2Deg.js +6 -1
  748. package/libs/shared-utils/nearlyEqual.js +6 -1
  749. package/libs/shared-utils/nextFrame.js +6 -1
  750. package/libs/shared-utils/noop.js +5 -1
  751. package/libs/shared-utils/object3d2LocalMatrix.js +18 -1
  752. package/libs/shared-utils/removeArrayItem.js +8 -1
  753. package/libs/shared-utils/tap.js +6 -1
  754. package/libs/shared-utils/three/Assets/index.js +4 -1
  755. package/libs/shared-utils/three/FivePointSelector.js +49 -1
  756. package/libs/shared-utils/three/Magnifier.js +104 -1
  757. package/libs/shared-utils/three/PointDomHelper.js +60 -1
  758. package/libs/shared-utils/three/PointHelper.js +60 -3
  759. package/libs/shared-utils/three/getCoords.js +13 -1
  760. package/libs/shared-utils/three/getIntersect.js +8 -1
  761. package/libs/shared-utils/three/getRaycaster.js +12 -1
  762. package/libs/shared-utils/three/index.js +6 -1
  763. package/libs/shared-utils/three/loadTexture.js +28 -1
  764. package/libs/shared-utils/three/transformPositionToVector3.js +5 -1
  765. package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +24 -1
  766. package/libs/shared-utils/throttle.js +11 -1
  767. package/libs/shared-utils/tinyEJSrender.js +138 -14
  768. package/libs/shared-utils/to.js +28 -1
  769. package/libs/shared-utils/uuid.js +9 -1
  770. package/libs/vendor/swiper/components-shared/get-changed-params.js +29 -1
  771. package/libs/vendor/swiper/components-shared/get-params.js +23 -1
  772. package/libs/vendor/swiper/components-shared/mount-swiper.js +14 -1
  773. package/libs/vendor/swiper/components-shared/params-list.js +120 -1
  774. package/libs/vendor/swiper/components-shared/update-swiper.js +36 -1
  775. package/libs/vendor/swiper/components-shared/utils.js +32 -1
  776. package/libs/vendor/swiper/svelte/swiper-slide.js +182 -1
  777. package/libs/vendor/swiper/svelte/swiper-svelte.js +3 -1
  778. package/libs/vendor/swiper/svelte/swiper.js +254 -1
  779. package/package.json +10 -180
  780. package/dist/index.cjs.js +0 -556
@@ -1 +1,20 @@
1
- "use strict";const a=require("three");function i(e){if(e&&e.__esModule)return e;const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const c=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const n=i(a),o={X:15618642,Y:4765519,Z:4227839};class s{static get X(){return new n.Color(o.X).convertSRGBToLinear().clone()}static get Y(){return new n.Color(o.Y).convertSRGBToLinear().clone()}static get Z(){return new n.Color(o.Z).convertSRGBToLinear().clone()}}exports.AXES_THREE_COLOR=s;
1
+ import * as e from "three";
2
+ const o = {
3
+ X: 15618642,
4
+ Y: 4765519,
5
+ Z: 4227839
6
+ };
7
+ class t {
8
+ static get X() {
9
+ return new e.Color(o.X).convertSRGBToLinear().clone();
10
+ }
11
+ static get Y() {
12
+ return new e.Color(o.Y).convertSRGBToLinear().clone();
13
+ }
14
+ static get Z() {
15
+ return new e.Color(o.Z).convertSRGBToLinear().clone();
16
+ }
17
+ }
18
+ export {
19
+ t as AXES_THREE_COLOR
20
+ };
@@ -1 +1,18 @@
1
- "use strict";const d=require("./RectangleScaleController.js");require("three");class l extends d.RectangleScaleController{constructor(...e){super(...e),this.addHTMLEventListener()}addHTMLEventListener(){this.helperObject3D.points.forEach(e=>{if(!e)return;const t=e.point,r=a=>this.dragStart(a,e),n=this.dragging.bind(this),s=this.dragEnd.bind(this);t.addEventListener("dragstart",r),t.addEventListener("drag",n),t.addEventListener("dragend",s)})}}exports.CSS3DScaleController=l;
1
+ import { RectangleScaleController as a } from "./RectangleScaleController.js";
2
+ import "three";
3
+ class c extends a {
4
+ constructor(...t) {
5
+ super(...t), this.addHTMLEventListener();
6
+ }
7
+ addHTMLEventListener() {
8
+ this.helperObject3D.points.forEach((t) => {
9
+ if (!t)
10
+ return;
11
+ const e = t.point, r = (s) => this.dragStart(s, t), n = this.dragging.bind(this), d = this.dragEnd.bind(this);
12
+ e.addEventListener("dragstart", r), e.addEventListener("drag", n), e.addEventListener("dragend", d);
13
+ });
14
+ }
15
+ }
16
+ export {
17
+ c as CSS3DScaleController
18
+ };
@@ -1 +1,66 @@
1
- "use strict";var p=Object.defineProperty;var f=(r,n,t)=>n in r?p(r,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[n]=t;var u=(r,n,t)=>(f(r,typeof n!="symbol"?n+"":n,t),t);const b=require("../Base/BaseController.js"),j=require("three"),m=require("../utils/getMouseRaycaster.js");function D(r){if(r&&r.__esModule)return r;const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const e=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(n,t,e.get?e:{enumerable:!0,get:()=>r[t]})}}return n.default=r,Object.freeze(n)}const c=D(j);class O extends b.BaseController{constructor(...t){super(...t);u(this,"startInfo");const e=this.helperObject3D;this.hoverListener([e.xArrow,e.yArrow,e.zArrow]);const o=this.dragStart.bind(this),s=this.dragging.bind(this),a=this.dragEnd.bind(this);this.domEvents.addEventListener(this.helperObject3D,"mousedown",o),document.addEventListener("mousemove",s),document.addEventListener("mouseup",a)}dragStart(t){if(this.isDragging)return;const e=t==null?void 0:t.intersect;if(!e)return this.dragEnd();const o=(e==null?void 0:e.object).direction;if(!o)return this.dragEnd();const s=new c.Vector3(1,0,0).applyQuaternion(this.helperObject3D.quaternion),a=new c.Vector3(0,1,0).applyQuaternion(this.helperObject3D.quaternion),l=new c.Vector3(0,0,1).applyQuaternion(this.helperObject3D.quaternion),d=(()=>{switch(o){case"x":return s;case"y":return a;case"z":return l}})(),g=(()=>{switch(o){case"x":case"y":return l;case"z":return s}})(),i=e.point.clone(),h=new c.Plane;h.setFromNormalAndCoplanarPoint(g,i),this.startInfo={startVectorProject:i.clone().projectOnVector(d),directionVector:d,plane:h},this.helperObject3D.showDraggingHelper([o]),this.hooks.emit("moveStart"),this.isDragging=!0,console.log("%c MoveController dragStart","color: #e5af2e")}dragging(t){if(!this.isDragging||!this.startInfo)return;const e=m.getMouseRaycaster(this.camera,t,this.container);return e?(console.log("%c RotateController dragging","color: #49de1b"),this.move(e),!1):this.dragEnd()}move(t){if(!this.startInfo)return this.dragEnd();const{plane:e,directionVector:o,startVectorProject:s}=this.startInfo,a=this.originObject3D,l=t.ray.intersectPlane(e,new c.Vector3);if(!l)return;const d=l.clone().projectOnVector(o),g=d.clone().sub(s),i=new c.Matrix4;i.setPosition(g),a.applyMatrix4(i),this.helperObject3D.applyMatrix4(i),s.copy(d),this.hooks.emit("positionUpdate",{matrix4:i})}dragEnd(){!this.isDragging||(console.log("%c MoveController dragEnd","color: #e94e4e"),this.startInfo=void 0,this.isDragging=!1,this.helperObject3D.show(),this.hooks.emit("moveEnd"))}}exports.MoveController=O;
1
+ var p = Object.defineProperty;
2
+ var f = (s, r, t) => r in s ? p(s, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[r] = t;
3
+ var u = (s, r, t) => (f(s, typeof r != "symbol" ? r + "" : r, t), t);
4
+ import { BaseController as m } from "../Base/BaseController.js";
5
+ import * as c from "three";
6
+ import { getMouseRaycaster as b } from "../utils/getMouseRaycaster.js";
7
+ class v extends m {
8
+ constructor(...t) {
9
+ super(...t);
10
+ u(this, "startInfo");
11
+ const e = this.helperObject3D;
12
+ this.hoverListener([e.xArrow, e.yArrow, e.zArrow]);
13
+ const o = this.dragStart.bind(this), n = this.dragging.bind(this), a = this.dragEnd.bind(this);
14
+ this.domEvents.addEventListener(this.helperObject3D, "mousedown", o), document.addEventListener("mousemove", n), document.addEventListener("mouseup", a);
15
+ }
16
+ dragStart(t) {
17
+ if (this.isDragging)
18
+ return;
19
+ const e = t == null ? void 0 : t.intersect;
20
+ if (!e)
21
+ return this.dragEnd();
22
+ const o = (e == null ? void 0 : e.object).direction;
23
+ if (!o)
24
+ return this.dragEnd();
25
+ const n = new c.Vector3(1, 0, 0).applyQuaternion(this.helperObject3D.quaternion), a = new c.Vector3(0, 1, 0).applyQuaternion(this.helperObject3D.quaternion), h = new c.Vector3(0, 0, 1).applyQuaternion(this.helperObject3D.quaternion), d = (() => {
26
+ switch (o) {
27
+ case "x":
28
+ return n;
29
+ case "y":
30
+ return a;
31
+ case "z":
32
+ return h;
33
+ }
34
+ })(), g = (() => {
35
+ switch (o) {
36
+ case "x":
37
+ case "y":
38
+ return h;
39
+ case "z":
40
+ return n;
41
+ }
42
+ })(), i = e.point.clone(), l = new c.Plane();
43
+ l.setFromNormalAndCoplanarPoint(g, i), this.startInfo = { startVectorProject: i.clone().projectOnVector(d), directionVector: d, plane: l }, this.helperObject3D.showDraggingHelper([o]), this.hooks.emit("moveStart"), this.isDragging = !0, console.log("%c MoveController dragStart", "color: #e5af2e");
44
+ }
45
+ dragging(t) {
46
+ if (!this.isDragging || !this.startInfo)
47
+ return;
48
+ const e = b(this.camera, t, this.container);
49
+ return e ? (console.log("%c RotateController dragging", "color: #49de1b"), this.move(e), !1) : this.dragEnd();
50
+ }
51
+ move(t) {
52
+ if (!this.startInfo)
53
+ return this.dragEnd();
54
+ const { plane: e, directionVector: o, startVectorProject: n } = this.startInfo, a = this.originObject3D, h = t.ray.intersectPlane(e, new c.Vector3());
55
+ if (!h)
56
+ return;
57
+ const d = h.clone().projectOnVector(o), g = d.clone().sub(n), i = new c.Matrix4();
58
+ i.setPosition(g), a.applyMatrix4(i), this.helperObject3D.applyMatrix4(i), n.copy(d), this.hooks.emit("positionUpdate", { matrix4: i });
59
+ }
60
+ dragEnd() {
61
+ !this.isDragging || (console.log("%c MoveController dragEnd", "color: #e94e4e"), this.startInfo = void 0, this.isDragging = !1, this.helperObject3D.show(), this.hooks.emit("moveEnd"));
62
+ }
63
+ }
64
+ export {
65
+ v as MoveController
66
+ };
@@ -1 +1,109 @@
1
- "use strict";var T=Object.defineProperty;var F=(r,c,e)=>c in r?T(r,c,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[c]=e;var x=(r,c,e)=>(F(r,typeof c!="symbol"?c+"":c,e),e);const W=require("../Base/BaseController.js"),n=require("three"),X=require("../utils/getMouseRaycaster.js"),Y=require("../utils/vectorIsEqual.js");function A(r){if(r&&r.__esModule)return r;const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const t=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(c,e,t.get?t:{enumerable:!0,get:()=>r[e]})}}return c.default=r,Object.freeze(c)}const O=A(n);class G extends W.BaseController{constructor(...e){super(...e);x(this,"startInfo")}enable(){this.helperObject3D.enable(),super.enable()}disable(){this.helperObject3D.disable(),super.disable()}show(){this.helperObject3D.show(),super.show()}hide(){this.helperObject3D.hide(),super.hide()}getDragPlane(){const e=new O.Plane,t=this.helperObject3D.cornerPositions;if(t.length!==0)return t.length<3?e.setFromNormalAndCoplanarPoint(this.originObject3D.getWorldDirection(new n.Vector3),t[0]):e.setFromCoplanarPoints(t[0],t[1],t[2]),e}dragStart(e,t){var g,o;(o=(g=this.helperObject3D).updatePoints)==null||o.call(g);const f=this.getDragPlane();if(!f)return this.dragEnd();this.startInfo={startPoint:{position:t.position.clone(),direction:t.direction},plane:f},this.hooks.emit("scaleStart"),this.render(),this.isDragging=!0,console.log("%c RectangleScaleController dragStart","color: #e5af2e")}dragging(e){if(!this.isDragging)return;const t=X.getMouseRaycaster(this.camera,e,this.container);if(!t)return this.dragEnd();this.scale(t),console.log("%c RectangleScaleController dragging","color: #49de1b")}scale(e){var S,E;if(!this.startInfo)return;const t=this.originObject3D,{startPoint:f,plane:g}=this.startInfo,o=this.helperObject3D.cornerPositions;if(o.length<4)return this.dragEnd();const d=e.ray.intersectPlane(g,new n.Vector3);if(!d||Y.vectorIsEqual(d,this.camera.position))return;const b=new n.Vector3().addVectors(o[0],o[2]).divideScalar(2),{position:R,direction:N}=f,I=new n.Vector3().subVectors(o[1],o[0]),D=new n.Vector3().subVectors(o[3],o[0]),y=i=>{const a=new n.Vector3(0,0,0);if(!this.startInfo)return a;const s=(i==="ew"?I:D).clone(),l=R.clone().projectOnVector(s),u=d.clone().projectOnVector(s),M=b.clone().projectOnVector(s);if(u.equals(l))return a;if(i==="ns"&&typeof this.startInfo.dragPointInCenterBottom!="boolean"){const h=new n.Vector3().subVectors(u,M),w=h.x<0&&s.x>=0,P=h.y<0&&s.y>=0,V=h.z<0&&s.z>=0;this.startInfo.dragPointInCenterBottom=w||P||V}if(i==="ew"&&typeof this.startInfo.dragPointInCenterLeft!="boolean"){const h=new n.Vector3().subVectors(u,M),w=h.x<0&&s.x>=0,P=h.y<0&&s.y>=0,V=h.z<0&&s.z>=0;this.startInfo.dragPointInCenterLeft=w||P||V}const _=new n.Vector3().subVectors(u,l),v=_.length();return v>.3?(console.warn("offset.length() > 0.3, skipped",v),a):_},k=y("ew"),q=y("ns"),m=()=>{const i=k;this.helperObject3D.cornerPositions.forEach((a,s)=>{var l;(l=this.startInfo)!=null&&l.dragPointInCenterLeft?(s===0||s===3)&&a.add(i):(s===1||s===2)&&a.add(i)})},C=()=>{const i=q;this.helperObject3D.cornerPositions.forEach((a,s)=>{var l;(l=this.startInfo)!=null&&l.dragPointInCenterBottom?(s===0||s===1)&&a.add(i):(s===2||s===3)&&a.add(i)})};switch(N){case"ew":m();break;case"ns":C();break;case"nesw":case"nwse":m(),C()}const B=new n.Vector3().subVectors(o[1],o[0]).length()/I.length(),z=new n.Vector3().subVectors(o[3],o[0]).length()/D.length(),H=new n.Vector3(B,z,1),j=new O.Matrix4().scale(H);t.isCSS3DObjectPlus?t.applyScaleMatrix4(j):t.scale.applyMatrix4(j),f.position.copy(d);const U=new n.Vector3().addVectors(o[0],o[2]).divideScalar(2),L=new n.Vector3().subVectors(U,b),p=new O.Matrix4().setPosition(L);t.applyMatrix4(p),(S=this.helperObject3D.css3DInstance)==null||S.css3DObject.applyMatrix4(p),(E=this.helperObject3D.plane)==null||E.applyMatrix4(p),this.hooks.emit("scaleUpdate",{matrix4:j,helperOrigin:b}),this.hooks.emit("positionUpdate",{matrix4:p}),this.render()}dragEnd(){!this.isDragging||(this.startInfo=void 0,this.isDragging=!1,this.hooks.emit("scaleEnd"),this.render(),console.log("%c RectangleScaleController dragEnd","color: #e94e4e"))}}exports.RectangleScaleController=G;
1
+ var X = Object.defineProperty;
2
+ var Y = (h, a, s) => a in h ? X(h, a, { enumerable: !0, configurable: !0, writable: !0, value: s }) : h[a] = s;
3
+ var N = (h, a, s) => (Y(h, typeof a != "symbol" ? a + "" : a, s), s);
4
+ import { BaseController as A } from "../Base/BaseController.js";
5
+ import * as D from "three";
6
+ import { Vector3 as n } from "three";
7
+ import { getMouseRaycaster as H } from "../utils/getMouseRaycaster.js";
8
+ import { vectorIsEqual as T } from "../utils/vectorIsEqual.js";
9
+ class _ extends A {
10
+ constructor(...s) {
11
+ super(...s);
12
+ N(this, "startInfo");
13
+ }
14
+ enable() {
15
+ this.helperObject3D.enable(), super.enable();
16
+ }
17
+ disable() {
18
+ this.helperObject3D.disable(), super.disable();
19
+ }
20
+ show() {
21
+ this.helperObject3D.show(), super.show();
22
+ }
23
+ hide() {
24
+ this.helperObject3D.hide(), super.hide();
25
+ }
26
+ getDragPlane() {
27
+ const s = new D.Plane(), e = this.helperObject3D.cornerPositions;
28
+ if (e.length !== 0)
29
+ return e.length < 3 ? s.setFromNormalAndCoplanarPoint(this.originObject3D.getWorldDirection(new n()), e[0]) : s.setFromCoplanarPoints(e[0], e[1], e[2]), s;
30
+ }
31
+ dragStart(s, e) {
32
+ var g, o;
33
+ (o = (g = this.helperObject3D).updatePoints) == null || o.call(g);
34
+ const f = this.getDragPlane();
35
+ if (!f)
36
+ return this.dragEnd();
37
+ this.startInfo = { startPoint: { position: e.position.clone(), direction: e.direction }, plane: f }, this.hooks.emit("scaleStart"), this.render(), this.isDragging = !0, console.log("%c RectangleScaleController dragStart", "color: #e5af2e");
38
+ }
39
+ dragging(s) {
40
+ if (!this.isDragging)
41
+ return;
42
+ const e = H(this.camera, s, this.container);
43
+ if (!e)
44
+ return this.dragEnd();
45
+ this.scale(e), console.log("%c RectangleScaleController dragging", "color: #49de1b");
46
+ }
47
+ scale(s) {
48
+ var S, x;
49
+ if (!this.startInfo)
50
+ return;
51
+ const e = this.originObject3D, { startPoint: f, plane: g } = this.startInfo, o = this.helperObject3D.cornerPositions;
52
+ if (o.length < 4)
53
+ return this.dragEnd();
54
+ const p = s.ray.intersectPlane(g, new n());
55
+ if (!p || T(p, this.camera.position))
56
+ return;
57
+ const u = new n().addVectors(o[0], o[2]).divideScalar(2), { position: k, direction: z } = f, j = new n().subVectors(o[1], o[0]), O = new n().subVectors(o[3], o[0]), V = (r) => {
58
+ const i = new n(0, 0, 0);
59
+ if (!this.startInfo)
60
+ return i;
61
+ const t = (r === "ew" ? j : O).clone(), c = k.clone().projectOnVector(t), b = p.clone().projectOnVector(t), E = u.clone().projectOnVector(t);
62
+ if (b.equals(c))
63
+ return i;
64
+ if (r === "ns" && typeof this.startInfo.dragPointInCenterBottom != "boolean") {
65
+ const l = new n().subVectors(b, E), P = l.x < 0 && t.x >= 0, I = l.y < 0 && t.y >= 0, m = l.z < 0 && t.z >= 0;
66
+ this.startInfo.dragPointInCenterBottom = P || I || m;
67
+ }
68
+ if (r === "ew" && typeof this.startInfo.dragPointInCenterLeft != "boolean") {
69
+ const l = new n().subVectors(b, E), P = l.x < 0 && t.x >= 0, I = l.y < 0 && t.y >= 0, m = l.z < 0 && t.z >= 0;
70
+ this.startInfo.dragPointInCenterLeft = P || I || m;
71
+ }
72
+ const v = new n().subVectors(b, c), M = v.length();
73
+ return M > 0.3 ? (console.warn("offset.length() > 0.3, skipped", M), i) : v;
74
+ }, R = V("ew"), B = V("ns"), y = () => {
75
+ const r = R;
76
+ this.helperObject3D.cornerPositions.forEach((i, t) => {
77
+ var c;
78
+ (c = this.startInfo) != null && c.dragPointInCenterLeft ? (t === 0 || t === 3) && i.add(r) : (t === 1 || t === 2) && i.add(r);
79
+ });
80
+ }, C = () => {
81
+ const r = B;
82
+ this.helperObject3D.cornerPositions.forEach((i, t) => {
83
+ var c;
84
+ (c = this.startInfo) != null && c.dragPointInCenterBottom ? (t === 0 || t === 1) && i.add(r) : (t === 2 || t === 3) && i.add(r);
85
+ });
86
+ };
87
+ switch (z) {
88
+ case "ew":
89
+ y();
90
+ break;
91
+ case "ns":
92
+ C();
93
+ break;
94
+ case "nesw":
95
+ case "nwse":
96
+ y(), C();
97
+ }
98
+ const L = new n().subVectors(o[1], o[0]).length() / j.length(), q = new n().subVectors(o[3], o[0]).length() / O.length(), F = new n(L, q, 1), w = new D.Matrix4().scale(F);
99
+ e.isCSS3DObjectPlus ? e.applyScaleMatrix4(w) : e.scale.applyMatrix4(w), f.position.copy(p);
100
+ const U = new n().addVectors(o[0], o[2]).divideScalar(2), W = new n().subVectors(U, u), d = new D.Matrix4().setPosition(W);
101
+ e.applyMatrix4(d), (S = this.helperObject3D.css3DInstance) == null || S.css3DObject.applyMatrix4(d), (x = this.helperObject3D.plane) == null || x.applyMatrix4(d), this.hooks.emit("scaleUpdate", { matrix4: w, helperOrigin: u }), this.hooks.emit("positionUpdate", { matrix4: d }), this.render();
102
+ }
103
+ dragEnd() {
104
+ !this.isDragging || (this.startInfo = void 0, this.isDragging = !1, this.hooks.emit("scaleEnd"), this.render(), console.log("%c RectangleScaleController dragEnd", "color: #e94e4e"));
105
+ }
106
+ }
107
+ export {
108
+ _ as RectangleScaleController
109
+ };
@@ -1 +1,134 @@
1
- "use strict";var H=Object.defineProperty;var T=(r,a,e)=>a in r?H(r,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[a]=e;var j=(r,a,e)=>(T(r,typeof a!="symbol"?a+"":a,e),e);const R=require("../Base/BaseController.js"),A=require("three"),E=require("../utils/getMouseRaycaster.js");function C(r){if(r&&r.__esModule)return r;const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const t=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(a,e,t.get?t:{enumerable:!0,get:()=>r[e]})}}return a.default=r,Object.freeze(a)}const s=C(A);class w extends R.BaseController{constructor(...e){super(...e);j(this,"startInfo");j(this,"lastRotation");j(this,"rotations",[]);j(this,"helperObject3DQuaternion",this.originObject3D.quaternion.clone());const t=this.helperObject3D;this.hoverListener([t.xyCircle,t.xzCircle,t.yzCircle]);const n=this.dragStart.bind(this),o=this.dragging.bind(this),i=this.dragEnd.bind(this);this.domEvents.addEventListener(this.helperObject3D,"mousedown",n),document.addEventListener("mousemove",o),document.addEventListener("mouseup",i)}initialHelperQuaternion(){this.helperObject3D.updateAngleHelperQuaternion(),this.helperObject3D.applyHelperQuaternion(this.originObject3D.quaternion)}dragStart(e){if(this.isDragging)return;const t=e==null?void 0:e.intersect;if(!t)return this.dragEnd();const n=(t==null?void 0:t.object).direction;if(!n)return this.dragEnd();this.helperObject3D.updateAngleHelperQuaternion();const o=t.point,i=this.originObject3D.position.clone(),c=this.getAngleHelper(n);this.setTipsAngle(0);const g=o.clone();g.y+=.2,this.setTipsPosition(g);const p=new s.Vector3(1,0,0).applyQuaternion(this.helperObject3DQuaternion),y=new s.Vector3(0,1,0).applyQuaternion(this.helperObject3DQuaternion),D=new s.Vector3(0,0,1).applyQuaternion(this.helperObject3DQuaternion),l=(()=>{switch(n){case"x":return p;case"y":return y;case"z":return D}})(),f=new s.Plane().setFromNormalAndCoplanarPoint(l,o),u=new s.Vector3;f.projectPoint(o.clone(),u);const h=u.clone().sub(i),O=h.clone(),d=h.angleTo(c.baseAxes);this.setAngleHelperStart(n,d),this.setAngleHelperLength(n,0),this.rotations.push({vector:h.clone(),direction:!0}),this.startInfo={direction:n,startVector:h,staticStartVector:O,plane:f,angleHelper:c},this.helperObject3D.showDraggingHelper([n]),this.hooks.emit("rotateStart"),this.isDragging=!0,console.log(`%c RotateController dragStart ${n}`,"color: #e5af2e")}dragging(e){var n;if(!this.isDragging)return;const t=E.getMouseRaycaster(this.camera,e,this.container);return t?(console.log(`%c RotateController dragging ${(n=this.startInfo)==null?void 0:n.direction}`,"color: #49de1b"),this.rotate(t),!1):this.dragEnd()}rotate(e){if(!this.startInfo)return this.dragEnd();const{startVector:t,plane:n,angleHelper:o,staticStartVector:i,direction:c}=this.startInfo,g=this.originObject3D,p=e.ray.intersectPlane(n,new s.Vector3);if(!p)return;const y=g.position.clone(),D=new s.Vector3;n.projectPoint(p.clone(),D);const l=D.clone().sub(y);if(t.angleTo(l)===0||(this.lastRotation===void 0&&(this.lastRotation={angle:0}),this.rotations.length===0))return;const f=(()=>{if(this.rotations.length===1)return l.angleTo(o.baseAxes)>i.angleTo(o.baseAxes);{const h=this.rotations[this.rotations.length-1],O=this.rotations[this.rotations.length-2],d=l.angleTo(O.vector),b=l.angleTo(h.vector),m=h.vector.angleTo(O.vector);if(m===0||b===0||d===0)return;if(d>b&&d>m)return h.direction;if(d<m&&b<m||d<b&&b>m)return!h.direction}})();if(f===void 0)return console.warn("rotationDirection is undefined");this.rotations.push({vector:l,direction:f}),this.rotations=this.rotations.slice(-2),this.lastRotation.angle=this.lastRotation.angle+l.angleTo(t)*(f?1:-1),this.setAngleHelperLength(c,this.lastRotation.angle),this.setTipsAngle(this.lastRotation.angle/Math.PI*180);const u=new s.Quaternion().setFromUnitVectors(t.clone().normalize(),l.clone().normalize());g.applyQuaternion(u),this.helperObject3D.applyHelperQuaternion(u),this.helperObject3DQuaternion.premultiply(u),this.hooks.emit("rotateUpdate",{quaternion:u,origin:y}),this.startInfo.startVector=l}dragEnd(){!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"))}getAngleHelper(e){switch(e){case"x":return this.helperObject3D.xAngleHelper;case"y":return this.helperObject3D.yAngleHelper;case"z":return this.helperObject3D.zAngleHelper}}setAngleHelperStart(e,t){const n=this.getAngleHelper(e);if(n instanceof s.Mesh&&n.geometry instanceof s.CircleGeometry){const{radius:o,segments:i,thetaLength:c}=n.geometry.parameters;n.geometry=new s.CircleGeometry(o,i,t,c)}else console.warn("only support THREE.CircleGeometry")}setAngleHelperLength(e,t){const o=t>=0?Math.max(t,.001):Math.min(t,-.001),i=this.getAngleHelper(e);if(i instanceof s.Mesh&&i.geometry instanceof s.CircleGeometry){const{radius:c,thetaStart:g}=i.geometry.parameters,p=Math.ceil(Math.abs(o)*(40/(2*Math.PI)));i.geometry=new s.CircleGeometry(c,p,g,o)}else console.warn("only support THREE.CircleGeometry")}setTipsAngle(e){var n;const t=(n=this.helperObject3D.angleTips)==null?void 0:n.element;!t||(t.innerText=`${e.toFixed(0)}\xB0`)}setTipsPosition(e){const t=this.helperObject3D.angleTips;if(!t)return;const n=e.project(this.camera),{x:o,y:i,z:c}=n;if(c>1)return;const g=(o+1)/2*100+"%",p=(-i+1)/2*100+"%";t.setLeftTop(g,p)}}exports.RotateController=w;
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";
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());
14
+ const t = this.helperObject3D;
15
+ 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
+ }
19
+ initialHelperQuaternion() {
20
+ this.helperObject3D.updateAngleHelperQuaternion(), this.helperObject3D.applyHelperQuaternion(this.originObject3D.quaternion);
21
+ }
22
+ dragStart(n) {
23
+ if (this.isDragging)
24
+ return;
25
+ const t = n == null ? void 0 : n.intersect;
26
+ if (!t)
27
+ return this.dragEnd();
28
+ const e = (t == null ? void 0 : t.object).direction;
29
+ if (!e)
30
+ return this.dragEnd();
31
+ this.helperObject3D.updateAngleHelperQuaternion();
32
+ const r = t.point, o = this.originObject3D.position.clone(), s = this.getAngleHelper(e);
33
+ 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 = (() => {
37
+ switch (e) {
38
+ case "x":
39
+ return g;
40
+ case "y":
41
+ return j;
42
+ case "z":
43
+ return D;
44
+ }
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");
49
+ }
50
+ dragging(n) {
51
+ var e;
52
+ if (!this.isDragging)
53
+ return;
54
+ const t = E(this.camera, n, this.container);
55
+ return t ? (console.log(`%c RotateController dragging ${(e = this.startInfo) == null ? void 0 : e.direction}`, "color: #49de1b"), this.rotate(t), !1) : this.dragEnd();
56
+ }
57
+ rotate(n) {
58
+ if (!this.startInfo)
59
+ 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)
62
+ 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))
67
+ return;
68
+ const m = (() => {
69
+ if (this.rotations.length === 1)
70
+ return a.angleTo(r.baseAxes) > o.angleTo(r.baseAxes);
71
+ {
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)
74
+ 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;
79
+ }
80
+ })();
81
+ if (m === void 0)
82
+ 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;
86
+ }
87
+ dragEnd() {
88
+ !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
+ }
90
+ getAngleHelper(n) {
91
+ switch (n) {
92
+ case "x":
93
+ return this.helperObject3D.xAngleHelper;
94
+ case "y":
95
+ return this.helperObject3D.yAngleHelper;
96
+ case "z":
97
+ return this.helperObject3D.zAngleHelper;
98
+ }
99
+ }
100
+ setAngleHelperStart(n, t) {
101
+ const e = this.getAngleHelper(n);
102
+ 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);
105
+ } else
106
+ console.warn("only support THREE.CircleGeometry");
107
+ }
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);
113
+ } else
114
+ console.warn("only support THREE.CircleGeometry");
115
+ }
116
+ setTipsAngle(n) {
117
+ var e;
118
+ const t = (e = this.helperObject3D.angleTips) == null ? void 0 : e.element;
119
+ !t || (t.innerText = `${n.toFixed(0)}\xB0`);
120
+ }
121
+ setTipsPosition(n) {
122
+ const t = this.helperObject3D.angleTips;
123
+ if (!t)
124
+ return;
125
+ const e = n.project(this.camera), { x: r, y: o, z: s } = e;
126
+ if (s > 1)
127
+ return;
128
+ const l = (r + 1) / 2 * 100 + "%", g = (-o + 1) / 2 * 100 + "%";
129
+ t.setLeftTop(l, g);
130
+ }
131
+ }
132
+ export {
133
+ C as RotateController
134
+ };
@@ -1 +1,79 @@
1
- "use strict";var f=Object.defineProperty;var g=Object.getOwnPropertySymbols;var q=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var m=(t,e,r)=>e in t?f(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,b=(t,e)=>{for(var r in e||(e={}))q.call(e,r)&&m(t,r,e[r]);if(g)for(var r of g(e))x.call(e,r)&&m(t,r,e[r]);return t};const s=require("./utils/createElement.js");function E(){const t=s.createElement({width:"100%",height:"100%",left:"0",top:"0",position:"absolute",pointerEvents:"none"}),e=s.createElement({boxSizing:"border-box",width:"100%",height:"100%",left:"0",top:"0",position:"relative",display:"flex",alignItems:"center",justifyContent:"center"}),r=s.createElement({boxSizing:"border-box",width:"100%",height:"100%",left:"0",top:"0",position:"absolute",border:"1px solid rgba(255,255,255,0.4)"});t.appendChild(e),e.appendChild(r);const n="-4px",i={direction:"nesw",element:o({cursor:"nesw-resize",left:n,bottom:n})},a={direction:"ns",element:o({cursor:"ns-resize",bottom:n})},c={direction:"nwse",element:o({cursor:"nwse-resize",right:n,bottom:n})},l={direction:"ew",element:o({cursor:"ew-resize",right:n})},p={direction:"nesw",element:o({cursor:"nesw-resize",right:n,top:n})},u={direction:"ns",element:o({cursor:"ns-resize",top:n})},d={direction:"nwse",element:o({cursor:"nwse-resize",left:n,top:n})},h={direction:"ew",element:o({cursor:"ew-resize",left:n})};return new Array(a,l,u,h,i,c,p,d).forEach(w=>e.appendChild(w.element)),{container:t,squares:[i,a,c,l,p,u,d,h]}}function o(t){const e=s.createElement(b({background:"#FFFFFF",width:"9px",height:"9px",position:"absolute",pointerEvents:"none"},t)),r=s.createElement({width:"15px",height:"15px",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",pointerEvents:"none"}),n=s.createElement({width:"15px",height:"15px",cursor:t==null?void 0:t.cursor,pointerEvents:"auto",background:"transparent"});return n.draggable=!0,r.appendChild(n),e.appendChild(r),e}exports.rectangleScaleDom=E;
1
+ var f = Object.defineProperty;
2
+ var g = Object.getOwnPropertySymbols;
3
+ var q = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
4
+ var w = (t, e, r) => e in t ? f(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, b = (t, e) => {
5
+ for (var r in e || (e = {}))
6
+ q.call(e, r) && w(t, r, e[r]);
7
+ if (g)
8
+ for (var r of g(e))
9
+ x.call(e, r) && w(t, r, e[r]);
10
+ return t;
11
+ };
12
+ import { createElement as s } from "./utils/createElement.js";
13
+ function F() {
14
+ const t = s({
15
+ width: "100%",
16
+ height: "100%",
17
+ left: "0",
18
+ top: "0",
19
+ position: "absolute",
20
+ pointerEvents: "none"
21
+ }), e = s({
22
+ boxSizing: "border-box",
23
+ width: "100%",
24
+ height: "100%",
25
+ left: "0",
26
+ top: "0",
27
+ position: "relative",
28
+ display: "flex",
29
+ alignItems: "center",
30
+ justifyContent: "center"
31
+ }), r = s({
32
+ boxSizing: "border-box",
33
+ width: "100%",
34
+ height: "100%",
35
+ left: "0",
36
+ top: "0",
37
+ position: "absolute",
38
+ border: "1px solid rgba(255,255,255,0.4)"
39
+ });
40
+ t.appendChild(e), e.appendChild(r);
41
+ const n = "-4px", i = { direction: "nesw", element: o({ cursor: "nesw-resize", left: n, bottom: n }) }, a = { direction: "ns", element: o({ cursor: "ns-resize", bottom: n }) }, c = { direction: "nwse", element: o({ cursor: "nwse-resize", right: n, bottom: n }) }, p = { direction: "ew", element: o({ cursor: "ew-resize", right: n }) }, u = { direction: "nesw", element: o({ cursor: "nesw-resize", right: n, top: n }) }, d = { direction: "ns", element: o({ cursor: "ns-resize", top: n }) }, l = { direction: "nwse", element: o({ cursor: "nwse-resize", left: n, top: n }) }, h = { direction: "ew", element: o({ cursor: "ew-resize", left: n }) };
42
+ return new Array(a, p, d, h, i, c, u, l).forEach((m) => e.appendChild(m.element)), { container: t, squares: [
43
+ i,
44
+ a,
45
+ c,
46
+ p,
47
+ u,
48
+ d,
49
+ l,
50
+ h
51
+ ] };
52
+ }
53
+ function o(t) {
54
+ const e = s(b({
55
+ background: "#FFFFFF",
56
+ width: "9px",
57
+ height: "9px",
58
+ position: "absolute",
59
+ pointerEvents: "none"
60
+ }, t)), r = s({
61
+ width: "15px",
62
+ height: "15px",
63
+ position: "absolute",
64
+ left: "50%",
65
+ top: "50%",
66
+ transform: "translate(-50%, -50%)",
67
+ pointerEvents: "none"
68
+ }), n = s({
69
+ width: "15px",
70
+ height: "15px",
71
+ cursor: t == null ? void 0 : t.cursor,
72
+ pointerEvents: "auto",
73
+ background: "transparent"
74
+ });
75
+ return n.draggable = !0, r.appendChild(n), e.appendChild(r), e;
76
+ }
77
+ export {
78
+ F as rectangleScaleDom
79
+ };
@@ -1 +1,41 @@
1
- "use strict";var r=Object.defineProperty;var l=Object.getOwnPropertySymbols;var d=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;var o=(s,e,t)=>e in s?r(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,n=(s,e)=>{for(var t in e||(e={}))d.call(e,t)&&o(s,t,e[t]);if(l)for(var t of l(e))c.call(e,t)&&o(s,t,e[t]);return s};const a=require("./utils/createElement.js");function f(s){const e=a.createElement(n({position:"absolute",display:"block",borderRadius:"4px",paddingTop:"1px",paddingBottom:"1px",paddingLeft:"4px",paddingRight:"4px",pointerEvents:"none",userSelect:"none",zIndex:"9999",backgroundColor:"rgba(0,0,0,0.7)",fontSize:"12px",color:"#fff",letterSpacing:"0",lineHeight:"18px"},s)),t=()=>{e.style.display!=="block"&&(!e.style.top||!e.style.left||(e.style.display="block"))};return{element:e,show:t,hide:()=>{e.style.display="none",e.style.top="",e.style.left=""},setLeftTop:(i,p)=>{e.style.left=i,e.style.top=p,t()}}}exports.tipsDom=f;
1
+ var r = Object.defineProperty;
2
+ var n = Object.getOwnPropertySymbols;
3
+ var d = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
4
+ var l = (o, e, t) => e in o ? r(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, p = (o, e) => {
5
+ for (var t in e || (e = {}))
6
+ d.call(e, t) && l(o, t, e[t]);
7
+ if (n)
8
+ for (var t of n(e))
9
+ f.call(e, t) && l(o, t, e[t]);
10
+ return o;
11
+ };
12
+ import { createElement as a } from "./utils/createElement.js";
13
+ function x(o) {
14
+ const e = a(p({
15
+ position: "absolute",
16
+ display: "block",
17
+ borderRadius: "4px",
18
+ paddingTop: "1px",
19
+ paddingBottom: "1px",
20
+ paddingLeft: "4px",
21
+ paddingRight: "4px",
22
+ pointerEvents: "none",
23
+ userSelect: "none",
24
+ zIndex: "9999",
25
+ backgroundColor: "rgba(0,0,0,0.7)",
26
+ fontSize: "12px",
27
+ color: "#fff",
28
+ letterSpacing: "0",
29
+ lineHeight: "18px"
30
+ }, o)), t = () => {
31
+ e.style.display !== "block" && (!e.style.top || !e.style.left || (e.style.display = "block"));
32
+ };
33
+ return { element: e, show: t, hide: () => {
34
+ e.style.display = "none", e.style.top = "", e.style.left = "";
35
+ }, setLeftTop: (s, i) => {
36
+ e.style.left = s, e.style.top = i, t();
37
+ } };
38
+ }
39
+ export {
40
+ x as tipsDom
41
+ };
@@ -1 +1,13 @@
1
- "use strict";function c(r,n){return e(document.createElement(n!=null?n:"div"),r)}function e(r,n){if(!n)return r;for(const t in n)t&&n[t]&&(r.style[t]=n[t]);return r}exports.createElement=c;
1
+ function o(r, n) {
2
+ return i(document.createElement(n != null ? n : "div"), r);
3
+ }
4
+ function i(r, n) {
5
+ if (!n)
6
+ return r;
7
+ for (const c in n)
8
+ c && n[c] && (r.style[c] = n[c]);
9
+ return r;
10
+ }
11
+ export {
12
+ o as createElement
13
+ };
@@ -1 +1,30 @@
1
- "use strict";var l=Object.defineProperty;var w=(s,e,r)=>e in s?l(s,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[e]=r;var o=(s,e,r)=>(w(s,typeof e!="symbol"?e+"":e,r),r);const h=require("../Base/BaseHelper.js"),i=require("./Objects/ArrowGroup.js"),t=require("../Constants/color.js");require("three");require("three/examples/jsm/renderers/CSS3DRenderer");require("./OutlineHelper.js");class A extends h.MoveHelperAbstract{constructor(r){super(r);o(this,"xArrow",new i.ArrowGroup({direction:"x",color:t.AXES_THREE_COLOR.X}));o(this,"yArrow",new i.ArrowGroup({direction:"y",color:t.AXES_THREE_COLOR.Y}));o(this,"zArrow",new i.ArrowGroup({direction:"z",color:t.AXES_THREE_COLOR.Z}));this.add(this.xArrow),this.add(this.yArrow),this.add(this.zArrow)}show(){super.show(),this.xArrow.visible=!0,this.yArrow.visible=!0,this.zArrow.visible=!0}showDraggingHelper(r){this.xArrow.visible=r.includes("x"),this.yArrow.visible=r.includes("y"),this.zArrow.visible=r.includes("z")}dispose(){this.remove(this.xArrow,this.yArrow,this.zArrow)}}exports.MoveHelper=A;
1
+ var w = Object.defineProperty;
2
+ var h = (i, o, r) => o in i ? w(i, o, { enumerable: !0, configurable: !0, writable: !0, value: r }) : i[o] = r;
3
+ var s = (i, o, r) => (h(i, typeof o != "symbol" ? o + "" : o, r), r);
4
+ import { MoveHelperAbstract as A } from "../Base/BaseHelper.js";
5
+ import { ArrowGroup as e } from "./Objects/ArrowGroup.js";
6
+ import { AXES_THREE_COLOR as t } from "../Constants/color.js";
7
+ import "three";
8
+ import "three/examples/jsm/renderers/CSS3DRenderer";
9
+ import "./OutlineHelper.js";
10
+ class v extends A {
11
+ constructor(r) {
12
+ super(r);
13
+ s(this, "xArrow", new e({ direction: "x", color: t.X }));
14
+ s(this, "yArrow", new e({ direction: "y", color: t.Y }));
15
+ s(this, "zArrow", new e({ direction: "z", color: t.Z }));
16
+ this.add(this.xArrow), this.add(this.yArrow), this.add(this.zArrow);
17
+ }
18
+ show() {
19
+ super.show(), this.xArrow.visible = !0, this.yArrow.visible = !0, this.zArrow.visible = !0;
20
+ }
21
+ showDraggingHelper(r) {
22
+ this.xArrow.visible = r.includes("x"), this.yArrow.visible = r.includes("y"), this.zArrow.visible = r.includes("z");
23
+ }
24
+ dispose() {
25
+ this.remove(this.xArrow, this.yArrow, this.zArrow);
26
+ }
27
+ }
28
+ export {
29
+ v as MoveHelper
30
+ };
@@ -1 +1,35 @@
1
- "use strict";var m=Object.defineProperty;var y=(t,r,e)=>r in t?m(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e;var i=(t,r,e)=>(y(t,typeof r!="symbol"?r+"":r,e),e);const f=require("three"),s=require("../../utils/direction.js");function g(t){if(t&&t.__esModule)return t;const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const o=g(f);class M extends s.DirectionGroup{constructor(e){var d;super(e.direction);i(this,"line");i(this,"arrow");i(this,"lineHeight",.4);i(this,"arrowHeight",.1);this.name="ArrowGroup";const n=new o.Color((d=e.color)!=null?d:16214315),c=new o.MeshBasicMaterial({color:n,depthTest:!1,opacity:1,transparent:!0,side:o.DoubleSide}),u=new o.ConeGeometry(.04,.1,32),a=new s.DirectionMesh(u,c.clone(),e.direction);a.name=`arrow-${e.direction}`,this.arrow=a;const l=.004,w=new o.CylinderGeometry(l,l,.4,32),h=new s.DirectionMesh(w,c.clone(),e.direction);h.name=`line-${e.direction}`,this.line=h,this.formatArrow(),this.formatLine(),this.add(this.arrow,this.line)}formatArrow(){this.arrow.geometry.translate(0,this.lineHeight+this.arrowHeight/2,0),this.direction==="x"?(this.arrow.geometry.rotateX(Math.PI/2),this.arrow.geometry.rotateY(Math.PI/2)):this.direction==="z"&&this.arrow.geometry.rotateX(Math.PI/2)}formatLine(){this.line.geometry.translate(0,this.lineHeight/2,0),this.direction==="x"?(this.line.geometry.rotateX(Math.PI/2),this.line.geometry.rotateY(Math.PI/2)):this.direction==="z"&&this.line.geometry.rotateX(Math.PI/2)}}exports.ArrowGroup=M;
1
+ var y = Object.defineProperty;
2
+ var g = (r, t, e) => t in r ? y(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
+ var i = (r, t, e) => (g(r, typeof t != "symbol" ? t + "" : t, e), e);
4
+ import * as o from "three";
5
+ import { DirectionGroup as f, DirectionMesh as l } from "../../utils/direction.js";
6
+ class G extends f {
7
+ constructor(e) {
8
+ var c;
9
+ super(e.direction);
10
+ i(this, "line");
11
+ i(this, "arrow");
12
+ i(this, "lineHeight", 0.4);
13
+ i(this, "arrowHeight", 0.1);
14
+ this.name = "ArrowGroup";
15
+ const w = new o.Color((c = e.color) != null ? c : 16214315), n = new o.MeshBasicMaterial({
16
+ color: w,
17
+ depthTest: !1,
18
+ opacity: 1,
19
+ transparent: !0,
20
+ side: o.DoubleSide
21
+ }), d = new o.ConeGeometry(0.04, 0.1, 32), s = new l(d, n.clone(), e.direction);
22
+ s.name = `arrow-${e.direction}`, this.arrow = s;
23
+ const a = 4e-3, m = new o.CylinderGeometry(a, a, 0.4, 32), h = new l(m, n.clone(), e.direction);
24
+ h.name = `line-${e.direction}`, this.line = h, this.formatArrow(), this.formatLine(), this.add(this.arrow, this.line);
25
+ }
26
+ formatArrow() {
27
+ this.arrow.geometry.translate(0, this.lineHeight + this.arrowHeight / 2, 0), this.direction === "x" ? (this.arrow.geometry.rotateX(Math.PI / 2), this.arrow.geometry.rotateY(Math.PI / 2)) : this.direction === "z" && this.arrow.geometry.rotateX(Math.PI / 2);
28
+ }
29
+ formatLine() {
30
+ this.line.geometry.translate(0, this.lineHeight / 2, 0), this.direction === "x" ? (this.line.geometry.rotateX(Math.PI / 2), this.line.geometry.rotateY(Math.PI / 2)) : this.direction === "z" && this.line.geometry.rotateX(Math.PI / 2);
31
+ }
32
+ }
33
+ export {
34
+ G as ArrowGroup
35
+ };
@@ -1 +1,2 @@
1
- "use strict";const c=require("three");function o(e){if(e&&e.__esModule)return e;const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const u=o(c);new u.Vector3;
1
+ import * as o from "three";
2
+ new o.Vector3();