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

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 (620) hide show
  1. package/dist/CSS3DRenderPlugin/index..js +88 -0
  2. package/dist/CSS3DRenderPlugin/index.cjs.js +1 -0
  3. package/dist/CameraMovementPlugin/index..js +11 -0
  4. package/dist/CameraMovementPlugin/index.cjs.js +1 -0
  5. package/dist/CruisePlugin/index..js +527 -0
  6. package/dist/CruisePlugin/index.cjs.js +1 -0
  7. package/dist/GuideLinePlugin/index..js +214 -0
  8. package/dist/GuideLinePlugin/index.cjs.js +1 -0
  9. package/dist/ItemLabelPlugin/index..js +508 -0
  10. package/dist/ItemLabelPlugin/index.cjs.js +10 -0
  11. package/dist/ModelChassisCompassPlugin/index..js +9 -0
  12. package/dist/ModelChassisCompassPlugin/index.cjs.js +1 -0
  13. package/dist/ModelEntryDoorGuidePlugin/index..js +9 -0
  14. package/dist/ModelEntryDoorGuidePlugin/index.cjs.js +1 -0
  15. package/dist/ModelItemLabelPlugin/index..js +334 -0
  16. package/dist/ModelItemLabelPlugin/index.cjs.js +10 -0
  17. package/dist/ModelRoomLabelPlugin/index..js +274 -0
  18. package/dist/ModelRoomLabelPlugin/index.cjs.js +1 -0
  19. package/dist/ModelTVVideoPlugin/index..js +12 -0
  20. package/dist/ModelTVVideoPlugin/index.cjs.js +1 -0
  21. package/dist/ModelViewPlugin/index..js +8 -0
  22. package/dist/ModelViewPlugin/index.cjs.js +1 -0
  23. package/dist/Object3DHelperPlugin/index..js +1414 -0
  24. package/dist/Object3DHelperPlugin/index.cjs.js +1 -0
  25. package/dist/PanoCompassPlugin/index..js +258 -0
  26. package/dist/PanoCompassPlugin/index.cjs.js +1 -0
  27. package/dist/PanoCursorRaycasterPlugin/index..js +63 -0
  28. package/dist/PanoCursorRaycasterPlugin/index.cjs.js +1 -0
  29. package/dist/PanoDoorLabelPlugin/index..js +340 -0
  30. package/dist/PanoDoorLabelPlugin/index.cjs.js +1 -0
  31. package/dist/PanoMeasurePlugin/index..js +15 -0
  32. package/dist/PanoMeasurePlugin/index.cjs.js +1 -0
  33. package/dist/PanoRulerPlugin/index..js +9 -0
  34. package/dist/PanoRulerPlugin/index.cjs.js +1 -0
  35. package/dist/PanoRulerProPlugin/index..js +395 -0
  36. package/dist/PanoRulerProPlugin/index.cjs.js +1 -0
  37. package/dist/PanoSpatialTagPlugin/index..js +15 -0
  38. package/dist/PanoSpatialTagPlugin/index.cjs.js +1 -0
  39. package/dist/PanoTagPlugin/index..js +4522 -0
  40. package/dist/PanoTagPlugin/index.cjs.js +17 -0
  41. package/dist/chunks/cjs/BasePlugin.57e5204f.cjs.js +1 -0
  42. package/dist/chunks/cjs/BasePluginWithData.0a28882d.cjs.js +1 -0
  43. package/dist/chunks/cjs/CSS3DRender.15349564.cjs.js +1 -0
  44. package/dist/chunks/cjs/CameraMovementPlugin.2b342576.cjs.js +1 -0
  45. package/dist/chunks/cjs/Plugin.5f616fb3.cjs.js +1 -0
  46. package/dist/chunks/cjs/Plugin.609da4aa.cjs.js +94 -0
  47. package/dist/chunks/cjs/Plugin.67936d0e.cjs.js +16 -0
  48. package/dist/chunks/cjs/Plugin.8a110c53.cjs.js +1 -0
  49. package/dist/chunks/cjs/Plugin.9971108a.cjs.js +1 -0
  50. package/dist/chunks/cjs/Plugin.fd42bf8a.cjs.js +1 -0
  51. package/dist/chunks/cjs/Subscribe.5398d5c6.cjs.js +1 -0
  52. package/dist/chunks/cjs/changeModelCanvasOpacity.8d84f111.cjs.js +1 -0
  53. package/dist/chunks/cjs/correctFiveState.4c8472bd.cjs.js +1 -0
  54. package/dist/chunks/cjs/debounce.93dfb637.cjs.js +1 -0
  55. package/dist/chunks/cjs/equal.e9fcbd4e.cjs.js +1 -0
  56. package/dist/chunks/cjs/filter.cf9ebbb3.cjs.js +1 -0
  57. package/dist/chunks/cjs/formatData.81e95011.cjs.js +10 -0
  58. package/dist/chunks/cjs/index.30b7baeb.cjs.js +101 -0
  59. package/dist/chunks/cjs/index.686e84d1.cjs.js +290 -0
  60. package/dist/chunks/cjs/index.7d2010ce.cjs.js +1 -0
  61. package/dist/chunks/cjs/isNil.b3a58990.cjs.js +1 -0
  62. package/dist/chunks/cjs/planimetry.7fce816a.cjs.js +1 -0
  63. package/dist/chunks/cjs/throttle.86c209eb.cjs.js +1 -0
  64. package/dist/chunks/cjs/transfromToMeshBasicMaterial.9db6d46a.cjs.js +1 -0
  65. package/dist/chunks/cjs/uuid.29ed9c88.cjs.js +1 -0
  66. package/dist/chunks/es/BasePlugin.813e25f7.es.js +18 -0
  67. package/dist/chunks/es/BasePluginWithData.4bf4e649.es.js +6 -0
  68. package/dist/chunks/es/CSS3DRender.5652510e.es.js +393 -0
  69. package/dist/chunks/es/CameraMovementPlugin.4a7c3e46.es.js +120 -0
  70. package/dist/chunks/es/Plugin.26c2df05.es.js +106 -0
  71. package/dist/chunks/es/Plugin.435485ed.es.js +584 -0
  72. package/dist/chunks/es/Plugin.a98418f0.es.js +82 -0
  73. package/dist/chunks/es/Plugin.ae4ee6f8.es.js +82 -0
  74. package/dist/chunks/es/Plugin.dd11e0ad.es.js +180 -0
  75. package/dist/chunks/es/Plugin.f4cf895f.es.js +355 -0
  76. package/dist/chunks/es/Subscribe.c73e0f91.es.js +50 -0
  77. package/dist/chunks/es/changeModelCanvasOpacity.45ef9fd6.es.js +1551 -0
  78. package/dist/chunks/es/correctFiveState.e7feab9f.es.js +66 -0
  79. package/dist/chunks/es/debounce.ef83f417.es.js +11 -0
  80. package/dist/chunks/es/equal.7db4a6f7.es.js +56 -0
  81. package/dist/chunks/es/filter.97ec06c4.es.js +12 -0
  82. package/dist/chunks/es/formatData.a2b39ef9.es.js +483 -0
  83. package/dist/chunks/es/index.a273f06e.es.js +532 -0
  84. package/dist/chunks/es/index.b8fdb59b.es.js +50 -0
  85. package/dist/chunks/es/index.f74f4851.es.js +1787 -0
  86. package/dist/chunks/es/isNil.212842d9.es.js +10 -0
  87. package/dist/chunks/es/planimetry.b0b4a28d.es.js +43 -0
  88. package/dist/chunks/es/throttle.db66bac3.es.js +11 -0
  89. package/dist/chunks/es/transfromToMeshBasicMaterial.849ee069.es.js +24 -0
  90. package/dist/chunks/es/uuid.676cb2c8.es.js +9 -0
  91. package/dist/components/PaintBrush/index..js +6 -0
  92. package/dist/components/PaintBrush/index.cjs.js +1 -0
  93. package/dist/components/index..js +7 -0
  94. package/dist/components/index.cjs.js +1 -0
  95. package/dist/floorplan/MapviewFloorplanPlugin/index..js +324 -0
  96. package/dist/floorplan/MapviewFloorplanPlugin/index.cjs.js +1 -0
  97. package/dist/floorplan/ModelFloorplanPlugin/index..js +320 -0
  98. package/dist/floorplan/ModelFloorplanPlugin/index.cjs.js +1 -0
  99. package/dist/floorplan/PanoFloorplanRadarPlugin/index..js +613 -0
  100. package/dist/floorplan/PanoFloorplanRadarPlugin/index.cjs.js +1 -0
  101. package/dist/floorplan/TopviewFloorplanPlugin/index..js +277 -0
  102. package/dist/floorplan/TopviewFloorplanPlugin/index.cjs.js +1 -0
  103. package/dist/index..js +530 -0
  104. package/dist/index.cjs.js +3 -543
  105. package/docs/classes/CruisePluginController.html +24 -24
  106. package/docs/classes/Magnifier.html +16 -16
  107. package/docs/classes/ModelRoomLabelController.html +11 -11
  108. package/docs/classes/Object3DHelperController.html +24 -24
  109. package/docs/classes/PaintBrush.html +15 -15
  110. package/docs/classes/PanoTagPluginController.html +39 -39
  111. package/docs/classes/Util.BetterTween.html +8 -8
  112. package/docs/classes/Util.FivePointSelector.html +12 -12
  113. package/docs/classes/Util.Interval.html +12 -12
  114. package/docs/classes/Util.Magnifier.html +17 -17
  115. package/docs/classes/Util.PointDomHelper.html +11 -11
  116. package/docs/classes/Util.PointHelper.html +11 -11
  117. package/docs/classes/Util.Rectangle.html +13 -13
  118. package/docs/enums/CameraMovementEffect.html +7 -7
  119. package/docs/enums/ContentType.html +12 -12
  120. package/docs/enums/DIRECTION.html +9 -9
  121. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  122. package/docs/enums/DimensionType.html +7 -7
  123. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  124. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  125. package/docs/enums/LinkType.html +7 -7
  126. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  127. package/docs/enums/PointType.html +7 -7
  128. package/docs/enums/Rotation.html +8 -8
  129. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  130. package/docs/functions/CameraMovementPlugin.html +4 -4
  131. package/docs/functions/CruisePlugin.html +4 -4
  132. package/docs/functions/GuideLinePlugin.html +5 -5
  133. package/docs/functions/ItemLabelPlugin.html +4 -4
  134. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  135. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  136. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  137. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  138. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  139. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  140. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  141. package/docs/functions/ModelViewPlugin.html +4 -4
  142. package/docs/functions/Object3DHelperPlugin.html +4 -4
  143. package/docs/functions/PanoCompassPlugin.html +4 -4
  144. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  145. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  146. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  147. package/docs/functions/PanoMeasurePlugin.html +4 -4
  148. package/docs/functions/PanoRulerPlugin.html +4 -4
  149. package/docs/functions/PanoRulerProPlugin.html +4 -4
  150. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  151. package/docs/functions/PanoTagPlugin.html +4 -4
  152. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  153. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  154. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  155. package/docs/functions/Util.getFrameTime.html +5 -5
  156. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  157. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  158. package/docs/functions/Util.isNil.html +5 -5
  159. package/docs/functions/Util.nextFrame.html +5 -5
  160. package/docs/functions/Util.notNil.html +5 -5
  161. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  162. package/docs/functions/Util.tweenProgress.html +5 -5
  163. package/docs/functions/pluginFlag.html +5 -5
  164. package/docs/index.html +4 -4
  165. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  166. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  167. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  168. package/docs/interfaces/ContentTypeMap.html +12 -12
  169. package/docs/interfaces/FloorplanBounding.html +8 -8
  170. package/docs/interfaces/FloorplanData.html +10 -10
  171. package/docs/interfaces/FloorplanEntrance.html +11 -11
  172. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  173. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  174. package/docs/interfaces/FloorplanFloorData.html +9 -9
  175. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  176. package/docs/interfaces/FloorplanObserver.html +9 -9
  177. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  178. package/docs/interfaces/FloorplanPosition.html +7 -7
  179. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  180. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  181. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  182. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  183. package/docs/interfaces/FloorplanServerData.html +7 -7
  184. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  185. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  186. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  187. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  188. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  189. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  190. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  191. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  192. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  193. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  194. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  195. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  196. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  197. package/docs/interfaces/LineJson.html +7 -7
  198. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  199. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  200. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  201. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  202. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  203. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  204. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  205. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  206. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  207. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  208. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  209. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  210. package/docs/interfaces/ModelViewPluginExportType.html +8 -8
  211. package/docs/interfaces/Object3DHelperState.html +8 -8
  212. package/docs/interfaces/OpenParameter.html +7 -7
  213. package/docs/interfaces/PaintBrushAction.html +12 -12
  214. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  215. package/docs/interfaces/PaintBrushState.html +10 -10
  216. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  217. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  218. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  219. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  220. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  221. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  222. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  223. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  224. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  225. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  226. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  227. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  228. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  229. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  230. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  231. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  232. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  233. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  234. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  235. package/docs/interfaces/Point.html +8 -8
  236. package/docs/interfaces/PointJson.html +8 -8
  237. package/docs/interfaces/Room.html +9 -9
  238. package/docs/interfaces/RoomInfo.html +7 -7
  239. package/docs/interfaces/RoomLabel.html +14 -14
  240. package/docs/interfaces/RoomRules.html +5 -5
  241. package/docs/interfaces/Rooms.html +5 -5
  242. package/docs/interfaces/Scissor.html +9 -9
  243. package/docs/interfaces/TagConfig.html +10 -10
  244. package/docs/interfaces/Tags.html +9 -9
  245. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  246. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  247. package/docs/modules/Util.html +5 -5
  248. package/docs/modules.html +4 -4
  249. package/docs/types/ArrayPosition.html +5 -5
  250. package/docs/types/CSS3DRenderExportType.html +5 -5
  251. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  252. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  253. package/docs/types/Color.html +5 -5
  254. package/docs/types/ContentTypeConfigKey.html +5 -5
  255. package/docs/types/ContentTypeConfigKeyArray.html +5 -5
  256. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  257. package/docs/types/Create3DElementReturnType.html +5 -5
  258. package/docs/types/CruisePluginExportType.html +5 -5
  259. package/docs/types/Direction-1.html +5 -5
  260. package/docs/types/Direction4.html +5 -5
  261. package/docs/types/FloorplanRuleLabels.html +5 -5
  262. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  263. package/docs/types/GuideLinePluginExportType.html +5 -5
  264. package/docs/types/HelperEventMap.html +5 -5
  265. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  266. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  267. package/docs/types/MediaData.html +5 -5
  268. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  269. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  270. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  271. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  272. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  273. package/docs/types/MoveArgs.html +5 -5
  274. package/docs/types/MoveOpts.html +5 -5
  275. package/docs/types/Object3DHelperEventMap.html +5 -5
  276. package/docs/types/ObjectFit.html +5 -5
  277. package/docs/types/PaintBrushEventMap.html +5 -5
  278. package/docs/types/PanoCompassPluginData.html +5 -5
  279. package/docs/types/PanoCompassPluginExportType.html +5 -5
  280. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  281. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  282. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  283. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  284. package/docs/types/PanoMeasureReturnType.html +5 -5
  285. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  286. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  287. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  288. package/docs/types/PlaneTag.html +5 -5
  289. package/docs/types/PointTag.html +5 -5
  290. package/docs/types/Position.html +5 -5
  291. package/docs/types/RotateArgs.html +5 -5
  292. package/docs/types/RotateOpts.html +5 -5
  293. package/docs/types/RuleLabelsKey.html +5 -5
  294. package/docs/types/RuleLabelsValue.html +5 -5
  295. package/docs/types/Tag.html +5 -5
  296. package/docs/types/Tag2D.html +5 -5
  297. package/docs/types/Tag3D.html +5 -5
  298. package/docs/types/TagId.html +5 -5
  299. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  300. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  301. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  302. package/docs/variables/PLUGIN.html +5 -5
  303. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  304. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  305. package/docs/variables/VERSION.html +5 -5
  306. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  307. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  308. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  309. package/libs/CSS3DRenderPlugin/CSS3DRender.js +327 -1
  310. package/libs/CSS3DRenderPlugin/Controller.js +83 -1
  311. package/libs/CSS3DRenderPlugin/index.js +5 -1
  312. package/libs/CSS3DRenderPlugin/typing.js +1 -1
  313. package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +65 -1
  314. package/libs/CSS3DRenderPlugin/utils/centerPoint.js +10 -1
  315. package/libs/CSS3DRenderPlugin/utils/evenNumber.js +7 -1
  316. package/libs/CSS3DRenderPlugin/utils/index.js +1 -1
  317. package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +6 -1
  318. package/libs/CSS3DRenderPlugin/utils/random.js +1 -1
  319. package/libs/CameraMovementPlugin/CameraMovementPlugin.js +87 -1
  320. package/libs/CameraMovementPlugin/index.js +3 -1
  321. package/libs/CameraMovementPlugin/typing.js +5 -1
  322. package/libs/CruisePlugin/Controller.js +484 -1
  323. package/libs/CruisePlugin/index.js +5 -1
  324. package/libs/CruisePlugin/utils/coordinatesAngle.js +8 -1
  325. package/libs/CruisePlugin/utils/coordinatesToVector.js +12 -1
  326. package/libs/CruisePlugin/utils/formatRad.js +7 -1
  327. package/libs/CruisePlugin/utils/linerValue.js +7 -1
  328. package/libs/CruisePlugin/utils/safeCall.js +28 -1
  329. package/libs/CruisePlugin/utils/sleep.js +10 -1
  330. package/libs/CruisePlugin/utils/vectorToCoordinates.js +10 -1
  331. package/libs/GuideLinePlugin/Controller.js +143 -1
  332. package/libs/GuideLinePlugin/index.js +5 -1
  333. package/libs/GuideLinePlugin/utils/getArrowMaterial.js +13 -1
  334. package/libs/GuideLinePlugin/utils/getLineGeometries.js +64 -1
  335. package/libs/ItemLabelPlugin/ItemLabelComponent.js +273 -1
  336. package/libs/ItemLabelPlugin/ItemLabelItem.js +133 -2
  337. package/libs/ItemLabelPlugin/Plugin.js +75 -2
  338. package/libs/ItemLabelPlugin/index.js +12 -1
  339. package/libs/ItemLabelPlugin/typings.js +4 -1
  340. package/libs/ItemLabelPlugin/utils/getLabelTransform.js +4 -1
  341. package/libs/ItemLabelPlugin/utils/getStrokeLength.js +16 -1
  342. package/libs/ItemLabelPlugin/utils/isImpacted.js +10 -1
  343. package/libs/ItemLabelPlugin/utils/parseData.js +21 -1
  344. package/libs/ItemLabelPlugin/utils/transform2RenderData.js +21 -1
  345. package/libs/ModelChassisCompassPlugin/Plugin.js +70 -1
  346. package/libs/ModelChassisCompassPlugin/index.js +2 -1
  347. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +77 -1
  348. package/libs/ModelEntryDoorGuidePlugin/index.js +2 -1
  349. package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +213 -1
  350. package/libs/ModelItemLabelPlugin/ItemLabelItem.js +42 -2
  351. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +73 -2
  352. package/libs/ModelItemLabelPlugin/events.type.js +1 -1
  353. package/libs/ModelItemLabelPlugin/index.js +12 -1
  354. package/libs/ModelItemLabelPlugin/typings.js +4 -1
  355. package/libs/ModelItemLabelPlugin/utils/parseData.js +19 -1
  356. package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.js +4 -1
  357. package/libs/ModelRoomLabelPlugin/Controller.js +60 -1
  358. package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +45 -1
  359. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +163 -1
  360. package/libs/ModelRoomLabelPlugin/index.js +9 -1
  361. package/libs/ModelRoomLabelPlugin/utils/parseData.js +16 -1
  362. package/libs/ModelTVVideoPlugin/Plugin.js +163 -1
  363. package/libs/ModelTVVideoPlugin/index.js +2 -1
  364. package/libs/ModelTVVideoPlugin/typings.js +4 -1
  365. package/libs/ModelTVVideoPlugin/utils/parseData.js +20 -1
  366. package/libs/ModelViewPlugin/Plugin.js +106 -1
  367. package/libs/ModelViewPlugin/index.js +2 -1
  368. package/libs/Object3DHelperPlugin/Controller.js +145 -1
  369. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +31 -1
  370. package/libs/Object3DHelperPlugin/index.js +5 -1
  371. package/libs/PanoCompassPlugin/Assets/roomInfoIcon.js +4 -1
  372. package/libs/PanoCompassPlugin/Controller.js +224 -1
  373. package/libs/PanoCompassPlugin/getRoomInfoInstance.js +24 -1
  374. package/libs/PanoCompassPlugin/index.js +5 -1
  375. package/libs/PanoCursorRaycasterPlugin/index.js +58 -1
  376. package/libs/PanoDoorLabelPlugin/BaseController.js +59 -1
  377. package/libs/PanoDoorLabelPlugin/Controller.js +219 -1
  378. package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +65 -1
  379. package/libs/PanoDoorLabelPlugin/index.js +5 -1
  380. package/libs/PanoDoorLabelPlugin/utils.js +23 -1
  381. package/libs/PanoMeasurePlugin/Controller/BaseController.js +53 -1
  382. package/libs/PanoMeasurePlugin/Controller/EditController.js +102 -1
  383. package/libs/PanoMeasurePlugin/Controller/MixedController.js +125 -1
  384. package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +33 -1
  385. package/libs/PanoMeasurePlugin/Controller/ViewController.js +90 -1
  386. package/libs/PanoMeasurePlugin/Controller/WatchController.js +154 -1
  387. package/libs/PanoMeasurePlugin/Controller/index.js +140 -1
  388. package/libs/PanoMeasurePlugin/Model/index.js +92 -1
  389. package/libs/PanoMeasurePlugin/Model/line.js +56 -1
  390. package/libs/PanoMeasurePlugin/Model/point.js +30 -1
  391. package/libs/PanoMeasurePlugin/Model/polyline.js +47 -1
  392. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +5 -2
  393. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +4 -1
  394. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +4 -1
  395. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +67 -3
  396. package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +28 -1
  397. package/libs/PanoMeasurePlugin/Modules/GuideController.js +41 -1
  398. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +103 -1
  399. package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +12 -8
  400. package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +50 -1
  401. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +36 -1
  402. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +48 -1
  403. package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +8 -3
  404. package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +39 -1
  405. package/libs/PanoMeasurePlugin/Modules/UIController/style.js +62 -1
  406. package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +6 -2
  407. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +130 -1
  408. package/libs/PanoMeasurePlugin/index.js +10 -1
  409. package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +12 -1
  410. package/libs/PanoMeasurePlugin/utils/constants.js +36 -1
  411. package/libs/PanoMeasurePlugin/utils/distanceDom.js +62 -1
  412. package/libs/PanoMeasurePlugin/utils/findAssociatedLines.js +13 -1
  413. package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +15 -1
  414. package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +9 -1
  415. package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +8 -1
  416. package/libs/PanoMeasurePlugin/utils/ironbox.js +4 -1
  417. package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +7 -1
  418. package/libs/PanoMeasurePlugin/utils/line.js +17 -1
  419. package/libs/PanoMeasurePlugin/utils/math.js +12 -1
  420. package/libs/PanoMeasurePlugin/utils/mouseGroup.js +33 -3
  421. package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +8 -1
  422. package/libs/PanoRulerPlugin/Plugin.js +262 -2
  423. package/libs/PanoRulerPlugin/index.js +2 -1
  424. package/libs/PanoRulerPlugin/style.js +5 -2
  425. package/libs/PanoRulerProPlugin/Controller.js +93 -1
  426. package/libs/PanoRulerProPlugin/RulerItem.js +128 -1
  427. package/libs/PanoRulerProPlugin/RulerItems.js +183 -1
  428. package/libs/PanoRulerProPlugin/index.js +5 -1
  429. package/libs/PanoSpatialTagPlugin/Components/origins.js +82 -1
  430. package/libs/PanoSpatialTagPlugin/Components/tag.js +125 -1
  431. package/libs/PanoSpatialTagPlugin/Plugin.js +246 -1
  432. package/libs/PanoSpatialTagPlugin/index.js +6 -1
  433. package/libs/PanoSpatialTagPlugin/store.js +5 -1
  434. package/libs/PanoSpatialTagPlugin/style.js +11 -1
  435. package/libs/PanoSpatialTagPlugin/typings.js +1 -1
  436. package/libs/PanoTagPlugin/Assets/Icon.js +6 -1
  437. package/libs/PanoTagPlugin/Components/Common/Arrow.js +103 -1
  438. package/libs/PanoTagPlugin/Components/Common/Audio.js +166 -1
  439. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +93 -1
  440. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +90 -1
  441. package/libs/PanoTagPlugin/Components/Common/Media.js +400 -1
  442. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +139 -1
  443. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +180 -1
  444. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +52 -1
  445. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +52 -1
  446. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +169 -1
  447. package/libs/PanoTagPlugin/Components/Common/Shadow.js +124 -15
  448. package/libs/PanoTagPlugin/Components/Common/Text.js +131 -1
  449. package/libs/PanoTagPlugin/Components/Common/TextItem.js +106 -0
  450. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +140 -1
  451. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +73 -1
  452. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +214 -1
  453. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +127 -1
  454. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +259 -1
  455. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +106 -1
  456. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +134 -1
  457. package/libs/PanoTagPlugin/Components/Tag/index.js +318 -2
  458. package/libs/PanoTagPlugin/Components/TagContainer.js +200 -1
  459. package/libs/PanoTagPlugin/Components/TagWrapper.js +191 -1
  460. package/libs/PanoTagPlugin/controller/TagCacheController.js +31 -1
  461. package/libs/PanoTagPlugin/controller/TagComputer.js +264 -1
  462. package/libs/PanoTagPlugin/controller/index.js +376 -1
  463. package/libs/PanoTagPlugin/index.js +5 -1
  464. package/libs/PanoTagPlugin/tag.config.js +43 -1
  465. package/libs/PanoTagPlugin/typings/controller.js +1 -1
  466. package/libs/PanoTagPlugin/typings/index.js +1 -1
  467. package/libs/PanoTagPlugin/typings/tag.js +7 -1
  468. package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +6 -1
  469. package/libs/PanoTagPlugin/utils/addDebugPoints.js +27 -1
  470. package/libs/PanoTagPlugin/utils/checkRange.js +10 -1
  471. package/libs/PanoTagPlugin/utils/constants.js +7 -1
  472. package/libs/PanoTagPlugin/utils/debounce.js +12 -1
  473. package/libs/PanoTagPlugin/utils/doUtil.js +12 -1
  474. package/libs/PanoTagPlugin/utils/index.js +1 -1
  475. package/libs/PanoTagPlugin/utils/noTypecheck.js +4 -1
  476. package/libs/PanoTagPlugin/utils/normalPositionToPositions.js +13 -1
  477. package/libs/PanoTagPlugin/utils/planeNormal.js +11 -1
  478. package/libs/PanoTagPlugin/utils/resizeObserver.js +17 -1
  479. package/libs/PanoTagPlugin/utils/search.js +15 -1
  480. package/libs/PanoTagPlugin/utils/tagPosition.js +13 -1
  481. package/libs/PanoTagPlugin/utils/throttle.js +11 -1
  482. package/libs/base/BasePlugin.js +18 -1
  483. package/libs/base/BasePluginWithData.js +6 -1
  484. package/libs/components/PaintBrush/Controller.js +308 -1
  485. package/libs/components/PaintBrush/Subscribe.js +47 -1
  486. package/libs/components/PaintBrush/index.js +45 -1
  487. package/libs/components/PaintBrush/style.js +5 -2
  488. package/libs/components/PaintBrush/tween.js +11 -1
  489. package/libs/components/PaintBrush/typings.js +4 -1
  490. package/libs/components/PaintBrush/utils.js +45 -1
  491. package/libs/components/index.js +2 -1
  492. package/libs/floorplan/Assets/camera.js +4 -1
  493. package/libs/floorplan/Assets/compass.js +4 -1
  494. package/libs/floorplan/Assets/floorplanExtraObject.js +4 -1
  495. package/libs/floorplan/Components/BaseImage.js +103 -1
  496. package/libs/floorplan/Components/Camera.js +62 -1
  497. package/libs/floorplan/Components/Compass.js +60 -1
  498. package/libs/floorplan/Components/CurrentFloor.js +256 -1
  499. package/libs/floorplan/Components/Main.js +283 -1
  500. package/libs/floorplan/Components/Normalmage.js +37 -1
  501. package/libs/floorplan/Components/RoomHighlight/Room.js +61 -1
  502. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +122 -1
  503. package/libs/floorplan/Components/RoomLabels/RoomLabel.js +153 -1
  504. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +175 -1
  505. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +196 -1
  506. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +37 -1
  507. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +39 -1
  508. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +37 -1
  509. package/libs/floorplan/Components/RuleLabels/RuleItem.js +134 -1
  510. package/libs/floorplan/Components/RuleLabels/RuleLabels.js +139 -1
  511. package/libs/floorplan/Components/SvgImage.js +39 -2
  512. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +321 -1
  513. package/libs/floorplan/MapviewFloorplanPlugin/index.js +5 -1
  514. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +316 -1
  515. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -1
  516. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +85 -1
  517. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +133 -1
  518. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +72 -1
  519. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +192 -1
  520. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +164 -1
  521. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -1
  522. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +273 -1
  523. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -1
  524. package/libs/floorplan/constant.js +4 -1
  525. package/libs/floorplan/index.js +6 -1
  526. package/libs/floorplan/typings/floorplanData.js +1 -1
  527. package/libs/floorplan/typings/floorplanServerData.js +101 -1
  528. package/libs/floorplan/utils/constant.js +7 -1
  529. package/libs/floorplan/utils/correctFiveState.js +54 -1
  530. package/libs/floorplan/utils/formatData.js +104 -1
  531. package/libs/floorplan/utils/formatPosition.js +35 -1
  532. package/libs/index.js +346 -1
  533. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +151 -1
  534. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +51 -1
  535. package/libs/shared-utils/Object3DHelper/Constants/color.js +20 -1
  536. package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +18 -1
  537. package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +66 -1
  538. package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +109 -1
  539. package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +134 -1
  540. package/libs/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +79 -1
  541. package/libs/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +41 -1
  542. package/libs/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +13 -1
  543. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +30 -1
  544. package/libs/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +35 -1
  545. package/libs/shared-utils/Object3DHelper/Helper/OutlineHelper.js +2 -1
  546. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +137 -1
  547. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +136 -1
  548. package/libs/shared-utils/Object3DHelper/Helper/index.js +3 -1
  549. package/libs/shared-utils/Object3DHelper/index.js +169 -1
  550. package/libs/shared-utils/Object3DHelper/typings/Direction.js +1 -1
  551. package/libs/shared-utils/Object3DHelper/typings/Hooks.js +1 -1
  552. package/libs/shared-utils/Object3DHelper/typings/Scissor.js +1 -1
  553. package/libs/shared-utils/Object3DHelper/typings/index.js +1 -1
  554. package/libs/shared-utils/Object3DHelper/utils/calculateThreeMouse.js +11 -1
  555. package/libs/shared-utils/Object3DHelper/utils/direction.js +22 -1
  556. package/libs/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +1 -1
  557. package/libs/shared-utils/Object3DHelper/utils/getMouseRaycaster.js +14 -1
  558. package/libs/shared-utils/Object3DHelper/utils/getPoint.js +1 -1
  559. package/libs/shared-utils/Object3DHelper/utils/index.js +1 -1
  560. package/libs/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +1 -1
  561. package/libs/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +1 -1
  562. package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +191 -1
  563. package/libs/shared-utils/Object3DHelper/utils/vectorIsEqual.js +6 -1
  564. package/libs/shared-utils/Subscribe.js +50 -1
  565. package/libs/shared-utils/animationFrame/BetterTween.js +26 -1
  566. package/libs/shared-utils/animationFrame/calculateProgress.js +6 -1
  567. package/libs/shared-utils/animationFrame/formatRad.js +11 -1
  568. package/libs/shared-utils/animationFrame/index.js +28 -1
  569. package/libs/shared-utils/animationFrame/tween.js +28 -1
  570. package/libs/shared-utils/changeModelCanvasOpacity.js +12 -1
  571. package/libs/shared-utils/createCanvasTextTexture.js +11 -1
  572. package/libs/shared-utils/createLine/index.js +9 -1
  573. package/libs/shared-utils/debounce.js +11 -1
  574. package/libs/shared-utils/equal.js +54 -1
  575. package/libs/shared-utils/filter.js +10 -1
  576. package/libs/shared-utils/five/changeMode.js +39 -1
  577. package/libs/shared-utils/getPxmm.js +20 -1
  578. package/libs/shared-utils/index.js +35 -1
  579. package/libs/shared-utils/isNil.js +10 -1
  580. package/libs/shared-utils/isTruelyObject.js +6 -1
  581. package/libs/shared-utils/math/Interval.js +23 -1
  582. package/libs/shared-utils/math/Rectangle.js +23 -1
  583. package/libs/shared-utils/math/index.js +1 -1
  584. package/libs/shared-utils/math/planimetry.js +43 -1
  585. package/libs/shared-utils/math/rad2Deg.js +6 -1
  586. package/libs/shared-utils/nearlyEqual.js +6 -1
  587. package/libs/shared-utils/nextFrame.js +6 -1
  588. package/libs/shared-utils/noop.js +5 -1
  589. package/libs/shared-utils/object3d2LocalMatrix.js +18 -1
  590. package/libs/shared-utils/removeArrayItem.js +8 -1
  591. package/libs/shared-utils/tap.js +6 -1
  592. package/libs/shared-utils/three/Assets/index.js +4 -1
  593. package/libs/shared-utils/three/FivePointSelector.js +49 -1
  594. package/libs/shared-utils/three/Magnifier.js +104 -1
  595. package/libs/shared-utils/three/PointDomHelper.js +60 -1
  596. package/libs/shared-utils/three/PointHelper.js +60 -3
  597. package/libs/shared-utils/three/getCoords.js +13 -1
  598. package/libs/shared-utils/three/getIntersect.js +8 -1
  599. package/libs/shared-utils/three/getRaycaster.js +12 -1
  600. package/libs/shared-utils/three/index.js +6 -1
  601. package/libs/shared-utils/three/loadTexture.js +28 -1
  602. package/libs/shared-utils/three/transformPositionToVector3.js +5 -1
  603. package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +24 -1
  604. package/libs/shared-utils/throttle.js +11 -1
  605. package/libs/shared-utils/tinyEJSrender.js +138 -14
  606. package/libs/shared-utils/to.js +28 -1
  607. package/libs/shared-utils/uuid.js +9 -1
  608. package/libs/vendor/swiper/components-shared/get-changed-params.js +29 -1
  609. package/libs/vendor/swiper/components-shared/get-params.js +23 -1
  610. package/libs/vendor/swiper/components-shared/mount-swiper.js +14 -1
  611. package/libs/vendor/swiper/components-shared/params-list.js +120 -1
  612. package/libs/vendor/swiper/components-shared/update-swiper.js +36 -1
  613. package/libs/vendor/swiper/components-shared/utils.js +32 -1
  614. package/libs/vendor/swiper/svelte/swiper-slide.js +182 -1
  615. package/libs/vendor/swiper/svelte/swiper-svelte.js +3 -1
  616. package/libs/vendor/swiper/svelte/swiper.js +254 -1
  617. package/package.json +13 -181
  618. package/dist/index.es.js +0 -16650
  619. package/dist/index.js +0 -16650
  620. package/dist/index.umd.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();