@realsee/dnalogel 3.51.0 → 3.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (278) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/Object3DHelperPlugin/Controller.d.ts +9 -9
  3. package/dist/Object3DHelperPlugin/FiveControllerWrapper.d.ts +4 -2
  4. package/dist/PanoMeasurePlugin/Model/area.d.ts +1 -1
  5. package/dist/PanoMeasurePlugin/Model/polygon.d.ts +1 -1
  6. package/dist/PanoMeasurePlugin/typings/data.d.ts +1 -2
  7. package/dist/Sculpt/Editors/BoxMeshEditor.d.ts +5 -0
  8. package/dist/Sculpt/Editors/CircleMeshEditor.d.ts +5 -0
  9. package/dist/Sculpt/Editors/CylinderMeshEditor.d.ts +5 -0
  10. package/dist/Sculpt/Editors/PrismMeshEditor.d.ts +5 -0
  11. package/dist/Sculpt/Editors/RectangleMeshEditor.d.ts +5 -0
  12. package/dist/Sculpt/Meshes/Box.d.ts +6 -24
  13. package/dist/Sculpt/Meshes/Circle.d.ts +0 -4
  14. package/dist/Sculpt/Meshes/Cylinder.d.ts +0 -1
  15. package/dist/Sculpt/Meshes/Line.d.ts +9 -22
  16. package/dist/Sculpt/Meshes/Polygon.d.ts +1 -5
  17. package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
  18. package/dist/Sculpt/Meshes/Prism.d.ts +29 -10
  19. package/dist/Sculpt/Meshes/Rectangle.d.ts +1 -1
  20. package/dist/Sculpt/Objects/Base/index.d.ts +2 -1
  21. package/dist/Sculpt/Objects/Box/index.d.ts +7 -2
  22. package/dist/Sculpt/Objects/Circle/index.d.ts +3 -0
  23. package/dist/Sculpt/Objects/Cylinder/index.d.ts +3 -0
  24. package/dist/Sculpt/Objects/Line/index.d.ts +3 -0
  25. package/dist/Sculpt/Objects/Point/index.d.ts +3 -0
  26. package/dist/Sculpt/Objects/Polygon/index.d.ts +3 -0
  27. package/dist/Sculpt/Objects/Polyline/index.d.ts +3 -0
  28. package/dist/Sculpt/Objects/Prism/index.d.ts +3 -0
  29. package/dist/Sculpt/Objects/Rectangle/index.d.ts +12 -0
  30. package/dist/Sculpt/index.d.ts +11 -10
  31. package/dist/Sculpt/typings/style.d.ts +6 -0
  32. package/dist/Sculpt/utils/export.d.ts +24 -18
  33. package/dist/Sculpt/utils/sortPositionsByCameraPosition.d.ts +5 -0
  34. package/dist/Sculpt/utils/three/ColoredMesh.d.ts +4 -0
  35. package/dist/index.cjs.js +88 -3009
  36. package/dist/index.d.ts +79 -1
  37. package/dist/index.js +35153 -54255
  38. package/dist/index.umd.js +81 -3002
  39. package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -0
  40. package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +7 -3
  41. package/dist/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +0 -1
  42. package/dist/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +3 -1
  43. package/dist/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +2 -0
  44. package/dist/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -1
  45. package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  46. package/dist/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +4 -2
  47. package/dist/shared-utils/Object3DHelper/typings/index.d.ts +1 -1
  48. package/dist/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +4 -1
  49. package/dist/shared-utils/five/FiveLine.d.ts +18 -14
  50. package/dist/shared-utils/index.d.ts +0 -1
  51. package/dist/shared-utils/math/planimetry.d.ts +1 -1
  52. package/dist/shared-utils/tag.d.ts +5 -7
  53. package/dist/shared-utils/three/boundingBox.d.ts +14 -20
  54. package/dist/shared-utils/three/core/LineGeometry.d.ts +13 -0
  55. package/dist/shared-utils/three/core/PrismGeometry.d.ts +14 -0
  56. package/dist/shared-utils/three/geometryUtil.d.ts +8 -0
  57. package/dist/shared-utils/three/getNormal.d.ts +5 -2
  58. package/libs/AreaMakerPlugin/Controller.js +47 -100
  59. package/libs/AreaMakerPlugin/index.js +12 -65
  60. package/libs/AreaMakerPlugin/utils/Item.js +102 -157
  61. package/libs/CSS3DRenderPlugin/Controller.js +45 -93
  62. package/libs/CSS3DRenderPlugin/index.js +15 -63
  63. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +51 -106
  64. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +79 -131
  65. package/libs/CruisePlugin/BaseController.js +90 -143
  66. package/libs/CruisePlugin/Move.js +39 -83
  67. package/libs/CruisePlugin/Work.js +52 -96
  68. package/libs/CruisePlugin/index.js +23 -67
  69. package/libs/CurrentPanoImagePlugin/Controller.js +88 -141
  70. package/libs/CurrentPanoImagePlugin/index.js +11 -64
  71. package/libs/GuideLinePlugin/Controller.js +13 -57
  72. package/libs/GuideLinePlugin/GuideLineItem.js +20 -64
  73. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -8
  74. package/libs/GuideLinePlugin/GuideLineModeItem.js +15 -59
  75. package/libs/GuideLinePlugin/index.js +23 -67
  76. package/libs/ModelMakerPlugin/Controller.js +125 -165
  77. package/libs/ModelMakerPlugin/index.js +23 -63
  78. package/libs/ModelMakerPlugin/item/baseItem.js +2 -3
  79. package/libs/ModelMakerPlugin/item/boxItem.js +2 -3
  80. package/libs/ModelMakerPlugin/item/polygonItem.js +6 -7
  81. package/libs/ModelMakerPlugin/item/prismItem.js +2 -3
  82. package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +2 -3
  83. package/libs/ModelTVVideoPlugin/Plugin.js +49 -97
  84. package/libs/ModelTVVideoPlugin/index.js +8 -56
  85. package/libs/Object3DHelperPlugin/Controller.d.ts +9 -9
  86. package/libs/Object3DHelperPlugin/Controller.js +105 -92
  87. package/libs/Object3DHelperPlugin/FiveControllerWrapper.d.ts +4 -2
  88. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +35 -30
  89. package/libs/Object3DHelperPlugin/index.js +15 -30
  90. package/libs/PanoCompassPlugin/Controller.js +46 -93
  91. package/libs/PanoCompassPlugin/index.js +17 -64
  92. package/libs/PanoCursorRaycasterPlugin/index.js +4 -3
  93. package/libs/PanoDoorLabelPlugin/BaseController.js +27 -80
  94. package/libs/PanoDoorLabelPlugin/Controller.js +80 -133
  95. package/libs/PanoDoorLabelPlugin/index.js +11 -64
  96. package/libs/PanoMeasurePlugin/Components/Controller0.js +79 -128
  97. package/libs/PanoMeasurePlugin/Components/Controller1.js +92 -141
  98. package/libs/PanoMeasurePlugin/Controller/BaseController.js +3 -2
  99. package/libs/PanoMeasurePlugin/Controller/EditController.js +73 -122
  100. package/libs/PanoMeasurePlugin/Controller/MixedController.js +3 -2
  101. package/libs/PanoMeasurePlugin/Controller/ViewController.js +3 -2
  102. package/libs/PanoMeasurePlugin/Controller/WatchController.js +72 -121
  103. package/libs/PanoMeasurePlugin/Controller/index.js +89 -135
  104. package/libs/PanoMeasurePlugin/Model/area.d.ts +1 -1
  105. package/libs/PanoMeasurePlugin/Model/area.js +25 -74
  106. package/libs/PanoMeasurePlugin/Model/index.js +3 -2
  107. package/libs/PanoMeasurePlugin/Model/line.js +1 -0
  108. package/libs/PanoMeasurePlugin/Model/polygon.d.ts +1 -1
  109. package/libs/PanoMeasurePlugin/Model/polygon.js +7 -7
  110. package/libs/PanoMeasurePlugin/Model/polyline.js +3 -2
  111. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -56
  112. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +17 -66
  113. package/libs/PanoMeasurePlugin/index.js +18 -64
  114. package/libs/PanoMeasurePlugin/typings/data.d.ts +1 -2
  115. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +5 -59
  116. package/libs/PanoMeasurePlugin/utils/line.js +3 -2
  117. package/libs/PanoRulerProPlugin/Controller.js +34 -89
  118. package/libs/PanoRulerProPlugin/RulerItems.js +92 -147
  119. package/libs/PanoRulerProPlugin/index.js +10 -65
  120. package/libs/PanoSpatialTagPlugin/Plugin.js +130 -178
  121. package/libs/PanoSpatialTagPlugin/index.js +6 -54
  122. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +61 -116
  123. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +138 -193
  124. package/libs/PanoTagPlugin/Components/Tag/index.js +140 -194
  125. package/libs/PanoTagPlugin/Components/TagContainer.js +58 -112
  126. package/libs/PanoTagPlugin/Components/TagItem.js +137 -191
  127. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +109 -164
  128. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +22 -76
  129. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +33 -87
  130. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +39 -94
  131. package/libs/PanoTagPlugin/controller/TagRender.js +18 -62
  132. package/libs/PanoTagPlugin/controller/TagUtil.js +80 -124
  133. package/libs/PanoTagPlugin/controller/index.js +37 -81
  134. package/libs/PanoTagPlugin/index.js +28 -72
  135. package/libs/PanoTagPlugin/utils/model/mediaPlane.js +14 -14
  136. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +22 -77
  137. package/libs/PanoVideoPlugin/Controller.js +43 -96
  138. package/libs/PanoVideoPlugin/VideoMeshController.js +64 -119
  139. package/libs/PanoVideoPlugin/index.js +14 -67
  140. package/libs/PipelinePlugin/Controller.js +123 -176
  141. package/libs/PipelinePlugin/index.js +11 -64
  142. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +15 -70
  143. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -58
  144. package/libs/PipelinePlugin/utils/Objects/Pipe.js +42 -97
  145. package/libs/Sculpt/Editors/BoxMeshEditor.d.ts +5 -0
  146. package/libs/Sculpt/Editors/BoxMeshEditor.js +98 -0
  147. package/libs/Sculpt/Editors/CircleMeshEditor.d.ts +5 -0
  148. package/libs/Sculpt/Editors/CircleMeshEditor.js +9 -0
  149. package/libs/Sculpt/Editors/CylinderMeshEditor.d.ts +5 -0
  150. package/libs/Sculpt/Editors/CylinderMeshEditor.js +41 -0
  151. package/libs/Sculpt/Editors/PrismMeshEditor.d.ts +5 -0
  152. package/libs/Sculpt/Editors/PrismMeshEditor.js +43 -0
  153. package/libs/Sculpt/Editors/RectangleMeshEditor.d.ts +5 -0
  154. package/libs/Sculpt/Editors/RectangleMeshEditor.js +70 -0
  155. package/libs/Sculpt/Meshes/Box.d.ts +6 -24
  156. package/libs/Sculpt/Meshes/Box.js +22 -93
  157. package/libs/Sculpt/Meshes/Circle.d.ts +0 -4
  158. package/libs/Sculpt/Meshes/Circle.js +18 -27
  159. package/libs/Sculpt/Meshes/Cylinder.d.ts +0 -1
  160. package/libs/Sculpt/Meshes/Cylinder.js +17 -24
  161. package/libs/Sculpt/Meshes/Line.d.ts +9 -22
  162. package/libs/Sculpt/Meshes/Line.js +85 -104
  163. package/libs/Sculpt/Meshes/LineWithDots.js +10 -14
  164. package/libs/Sculpt/Meshes/Point.js +29 -34
  165. package/libs/Sculpt/Meshes/Polygon.d.ts +1 -5
  166. package/libs/Sculpt/Meshes/Polygon.js +40 -53
  167. package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
  168. package/libs/Sculpt/Meshes/Prism.d.ts +29 -10
  169. package/libs/Sculpt/Meshes/Prism.js +108 -84
  170. package/libs/Sculpt/Meshes/Rectangle.d.ts +1 -1
  171. package/libs/Sculpt/Meshes/Rectangle.js +7 -10
  172. package/libs/Sculpt/Meshes/RectangleWithEdge.js +17 -20
  173. package/libs/Sculpt/Objects/Base/index.d.ts +2 -1
  174. package/libs/Sculpt/Objects/Base/index.js +16 -17
  175. package/libs/Sculpt/Objects/Box/index.d.ts +7 -2
  176. package/libs/Sculpt/Objects/Box/index.js +72 -60
  177. package/libs/Sculpt/Objects/Circle/index.d.ts +3 -0
  178. package/libs/Sculpt/Objects/Circle/index.js +34 -30
  179. package/libs/Sculpt/Objects/Cylinder/index.d.ts +3 -0
  180. package/libs/Sculpt/Objects/Cylinder/index.js +46 -42
  181. package/libs/Sculpt/Objects/Line/Editor.js +8 -10
  182. package/libs/Sculpt/Objects/Line/index.d.ts +3 -0
  183. package/libs/Sculpt/Objects/Line/index.js +45 -41
  184. package/libs/Sculpt/Objects/Point/index.d.ts +3 -0
  185. package/libs/Sculpt/Objects/Point/index.js +33 -29
  186. package/libs/Sculpt/Objects/Polygon/index.d.ts +3 -0
  187. package/libs/Sculpt/Objects/Polygon/index.js +67 -63
  188. package/libs/Sculpt/Objects/Polyline/index.d.ts +3 -0
  189. package/libs/Sculpt/Objects/Polyline/index.js +46 -42
  190. package/libs/Sculpt/Objects/Prism/index.d.ts +3 -0
  191. package/libs/Sculpt/Objects/Prism/index.js +58 -53
  192. package/libs/Sculpt/Objects/Rectangle/index.d.ts +12 -0
  193. package/libs/Sculpt/Objects/Rectangle/index.js +142 -81
  194. package/libs/Sculpt/index.d.ts +11 -10
  195. package/libs/Sculpt/index.js +105 -107
  196. package/libs/Sculpt/typings/style.d.ts +6 -0
  197. package/libs/Sculpt/utils/export.d.ts +24 -18
  198. package/libs/Sculpt/utils/export.js +52 -19
  199. package/libs/Sculpt/utils/sortPositionsByCameraPosition.d.ts +5 -0
  200. package/libs/Sculpt/utils/sortPositionsByCameraPosition.js +9 -0
  201. package/libs/Sculpt/utils/three/ColoredMesh.d.ts +4 -0
  202. package/libs/Sculpt/utils/three/ColoredMesh.js +40 -37
  203. package/libs/base/BasePlugin.js +10 -15
  204. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +96 -147
  205. package/libs/floorplan/MapviewFloorplanPlugin/index.js +12 -63
  206. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +53 -105
  207. package/libs/floorplan/ModelFloorplanPlugin/index.js +11 -63
  208. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +65 -118
  209. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +11 -64
  210. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +54 -106
  211. package/libs/floorplan/TopviewFloorplanPlugin/index.js +11 -63
  212. package/libs/floorplan/index.js +0 -5
  213. package/libs/index.d.ts +79 -1
  214. package/libs/index.js +229 -215
  215. package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -0
  216. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +112 -122
  217. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +7 -3
  218. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +60 -39
  219. package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +47 -47
  220. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +0 -1
  221. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +28 -28
  222. package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +3 -1
  223. package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js +25 -18
  224. package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +2 -0
  225. package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +18 -14
  226. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -1
  227. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -0
  228. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  229. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +2 -1
  230. package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +4 -2
  231. package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.js +40 -28
  232. package/libs/shared-utils/Object3DHelper/typings/index.d.ts +1 -1
  233. package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +4 -1
  234. package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.js +4 -4
  235. package/libs/shared-utils/five/FiveDomEvents.js +88 -88
  236. package/libs/shared-utils/five/FiveLine.d.ts +18 -14
  237. package/libs/shared-utils/five/FiveLine.js +31 -13
  238. package/libs/shared-utils/five/index.js +2 -7
  239. package/libs/shared-utils/five/lookObject.js +27 -32
  240. package/libs/shared-utils/index.d.ts +0 -1
  241. package/libs/shared-utils/index.js +31 -33
  242. package/libs/shared-utils/logger.js +1 -1
  243. package/libs/shared-utils/math/planimetry.d.ts +1 -1
  244. package/libs/shared-utils/tag.d.ts +5 -7
  245. package/libs/shared-utils/tag.js +1 -1
  246. package/libs/shared-utils/three/boundingBox.d.ts +14 -20
  247. package/libs/shared-utils/three/core/LineGeometry.d.ts +13 -0
  248. package/libs/shared-utils/three/core/LineGeometry.js +26 -0
  249. package/libs/shared-utils/three/core/PrismGeometry.d.ts +14 -0
  250. package/libs/shared-utils/three/core/PrismGeometry.js +42 -0
  251. package/libs/shared-utils/three/earcut3D.js +5 -5
  252. package/libs/shared-utils/three/geometryUtil.d.ts +8 -0
  253. package/libs/shared-utils/three/geometryUtil.js +3 -1
  254. package/libs/shared-utils/three/getNormal.d.ts +5 -2
  255. package/libs/shared-utils/three/getNormal.js +6 -5
  256. package/libs/shared-utils/three/index.js +0 -5
  257. package/package.json +1 -1
  258. package/dist/Sculpt/Objects/Box/Editor.d.ts +0 -5
  259. package/dist/Sculpt/Objects/Circle/Editor.d.ts +0 -5
  260. package/dist/Sculpt/Objects/Cylinder/Editor.d.ts +0 -5
  261. package/dist/Sculpt/Objects/Prism/Editor.d.ts +0 -5
  262. package/dist/Sculpt/Objects/Rectangle/Editor.d.ts +0 -5
  263. package/dist/Sculpt/utils/getBetterNormal.d.ts +0 -2
  264. package/libs/Sculpt/Objects/Box/Editor.d.ts +0 -5
  265. package/libs/Sculpt/Objects/Box/Editor.js +0 -44
  266. package/libs/Sculpt/Objects/Circle/Editor.d.ts +0 -5
  267. package/libs/Sculpt/Objects/Circle/Editor.js +0 -9
  268. package/libs/Sculpt/Objects/Cylinder/Editor.d.ts +0 -5
  269. package/libs/Sculpt/Objects/Cylinder/Editor.js +0 -41
  270. package/libs/Sculpt/Objects/Prism/Editor.d.ts +0 -5
  271. package/libs/Sculpt/Objects/Prism/Editor.js +0 -44
  272. package/libs/Sculpt/Objects/Rectangle/Editor.d.ts +0 -5
  273. package/libs/Sculpt/Objects/Rectangle/Editor.js +0 -9
  274. package/libs/Sculpt/utils/getBetterNormal.d.ts +0 -2
  275. package/libs/Sculpt/utils/getBetterNormal.js +0 -8
  276. package/libs/vendor/three/build/three.module.js +0 -19336
  277. package/libs/vendor/three/examples/jsm/lines/LineGeometry.js +0 -28
  278. package/libs/vendor/three/examples/jsm/lines/LineSegmentsGeometry.js +0 -69
@@ -9,23 +9,23 @@ var V = (o, e, t) => e in o ? B(o, e, { enumerable: !0, configurable: !0, writab
9
9
  H.call(e, t) && V(o, t, e[t]);
10
10
  return o;
11
11
  };
12
- var g = (o, e, t) => new Promise((n, l) => {
13
- var u = (r) => {
12
+ var g = (o, e, t) => new Promise((r, m) => {
13
+ var u = (a) => {
14
14
  try {
15
- m(t.next(r));
16
- } catch (p) {
17
- l(p);
15
+ l(t.next(a));
16
+ } catch (d) {
17
+ m(d);
18
18
  }
19
- }, s = (r) => {
19
+ }, s = (a) => {
20
20
  try {
21
- m(t.throw(r));
22
- } catch (p) {
23
- l(p);
21
+ l(t.throw(a));
22
+ } catch (d) {
23
+ m(d);
24
24
  }
25
- }, m = (r) => r.done ? n(r.value) : Promise.resolve(r.value).then(u, s);
26
- m((t = t.apply(o, e)).next());
25
+ }, l = (a) => a.done ? r(a.value) : Promise.resolve(a.value).then(u, s);
26
+ l((t = t.apply(o, e)).next());
27
27
  });
28
- import * as a from "three";
28
+ import * as n from "three";
29
29
  import "hammerjs";
30
30
  import "../three/PointSelector/index.js";
31
31
  import "three/examples/jsm/renderers/CSS3DRenderer";
@@ -34,39 +34,34 @@ import { vectorToCoordinates as N } from "../vectorToCoordinate.js";
34
34
  import { FiveUtil as O } from "../Utils/FiveUtil.js";
35
35
  import { notNil as Y } from "../isNil.js";
36
36
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
37
- import "../../Sculpt/Meshes/Polygon.js";
38
- import "../../Sculpt/utils/Modules/Global.js";
39
37
  import "@realsee/five/line";
40
- import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
41
- import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
42
- import "../../Sculpt/utils/three/rayOnLine.js";
43
38
  import { worldBoundingSphere as j } from "../three/boundingBox.js";
44
39
  import "animejs";
45
- function nt(o, e, t) {
40
+ function ot(o, e, t) {
46
41
  return g(this, null, function* () {
47
42
  var P, x, z;
48
43
  if (!e)
49
44
  return;
50
- const n = j(e);
51
- if (!n)
45
+ const r = j(e);
46
+ if (!r)
52
47
  return;
53
- const l = new O(o), u = (P = t == null ? void 0 : t.scale) != null ? P : 1.4, s = n.center, m = o.camera.position.clone().sub(s).setY(0).normalize(), r = o.state.mode === "Mapview" ? o.state.fov : 60, C = Math.max(1.5, n.radius * u), k = C * (1 / Math.tan(a.MathUtils.degToRad(r / 2)));
54
- let d = 0;
48
+ const m = new O(o), u = (P = t == null ? void 0 : t.scale) != null ? P : 1.4, s = r.center, l = o.camera.position.clone().sub(s).setY(0).normalize(), a = o.state.mode === "Mapview" ? o.state.fov : 60, C = Math.max(1.5, r.radius * u), k = C * (1 / Math.tan(n.MathUtils.degToRad(a / 2)));
49
+ let p = 0;
55
50
  const w = [], M = (c) => {
56
- const i = a.MathUtils.degToRad(c);
57
- return m.clone().applyAxisAngle(new a.Vector3(0, 1, 0), i).clone().multiplyScalar(k).add(new a.Vector3(0, C, 0)).add(s);
51
+ const i = n.MathUtils.degToRad(c);
52
+ return l.clone().applyAxisAngle(new n.Vector3(0, 1, 0), i).clone().multiplyScalar(k).add(new n.Vector3(0, C, 0)).add(s);
58
53
  };
59
- for (; d !== 360; ) {
54
+ for (; p !== 360; ) {
60
55
  let c = 0;
61
- const i = M(d), f = (y) => {
62
- const I = y.distanceTo(i), _ = new a.Raycaster(y, i.clone().sub(y).normalize()), h = l.model.intersectRaycaster(_, void 0, !0)[0], S = h == null ? void 0 : h.distance;
56
+ const i = M(p), f = (y) => {
57
+ const I = y.distanceTo(i), _ = new n.Raycaster(y, i.clone().sub(y).normalize()), h = m.model.intersectRaycaster(_, void 0, !0)[0], S = h == null ? void 0 : h.distance;
63
58
  Y(S) ? S > I && (c += 1) : c += 1;
64
- }, A = n.clampPoint(i, new a.Vector3());
59
+ }, A = r.clampPoint(i, new n.Vector3());
65
60
  f(A);
66
- const E = new a.Vector3(s.x, i.y, s.z);
67
- if (f(E), w[c] = d, c === 2)
61
+ const E = new n.Vector3(s.x, i.y, s.z);
62
+ if (f(E), w[c] = p, c === 2)
68
63
  break;
69
- d += 30;
64
+ p += 30;
70
65
  }
71
66
  const R = M((z = (x = w[2]) != null ? x : w[1]) != null ? z : 0), v = R.distanceTo(s), b = N(s.clone().sub(R).normalize());
72
67
  if (o.state.mode === "Mapview")
@@ -85,5 +80,5 @@ function nt(o, e, t) {
85
80
  });
86
81
  }
87
82
  export {
88
- nt as lookObject
83
+ ot as lookObject
89
84
  };
@@ -7,4 +7,3 @@ export * from './uuid';
7
7
  export * from './url/absoluteUrl';
8
8
  export * from './animationFrame';
9
9
  export * from './equal';
10
- export * from '../Sculpt/utils/export';
@@ -4,8 +4,8 @@ import { convexHull as t } from "./math/convexHull.js";
4
4
  import { inside as o } from "./math/inside.js";
5
5
  import { LightTag as i, tag as m } from "./tag.js";
6
6
  import { checkFiveModelLoaded as n } from "./five/index.js";
7
- import { Magnifier as p } from "./three/Magnifier.js";
8
- import { getCoordsFromClient as l, getCoordsFromElement as f } from "./three/getCoords.js";
7
+ import { Magnifier as l } from "./three/Magnifier.js";
8
+ import { getCoordsFromClient as p, getCoordsFromElement as f } from "./three/getCoords.js";
9
9
  import { PointSelector as a } from "./three/PointSelector/index.js";
10
10
  import { PointHelper as d } from "./three/PointSelector/utils/PointHelper.js";
11
11
  import { PointSelectorHelper as g } from "./three/PointSelector/utils/PointSelectorHelper.js";
@@ -13,34 +13,33 @@ import { Object3D as s } from "./three/core/Object3D.js";
13
13
  import { LineSegments as u } from "./three/core/LineSegments.js";
14
14
  import { bounding as b, boundingBox as c, boundingSphere as x, boxVertex as v, boxVertexes as F, worldBounding as L, worldBoundingBox as P, worldBoundingSphere as k } from "./three/boundingBox.js";
15
15
  import { animeMap as w, blink as M, reblink as S } from "./three/blink.js";
16
- import { isNil as B, notNil as h } from "./isNil.js";
17
- import { uuid as j } from "./uuid.js";
18
- import { absoluteUrl as I, isAbsoluteURL as O } from "./url/absoluteUrl.js";
19
- import { awaitNextFrame as T, getFrameTime as _, nextFrame as y, requestAnimationFrameInterval as C } from "./animationFrame/index.js";
16
+ import { isNil as B, notNil as _ } from "./isNil.js";
17
+ import { uuid as h } from "./uuid.js";
18
+ import { absoluteUrl as j, isAbsoluteURL as I } from "./url/absoluteUrl.js";
19
+ import { awaitNextFrame as O, getFrameTime as T, nextFrame as y, requestAnimationFrameInterval as C } from "./animationFrame/index.js";
20
20
  import { equal as H } from "./equal.js";
21
- import { sculpt as N } from "../Sculpt/utils/export.js";
22
- import { isModelLike as q, isPanoramaLike as A } from "./five/mode.js";
23
- import { lookObject as D } from "./five/lookObject.js";
24
- import { lookPoint as E } from "./five/lookPoint.js";
25
- import { fiveModelIsLoaded as R, waitFiveModelLoaded as U } from "./five/fiveModelLoad.js";
26
- import { FiveDomEvents as V } from "./five/FiveDomEvents.js";
27
- import { BetterTween as z, tweenProgress as G } from "./animationFrame/BetterTween.js";
28
- const Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21
+ import { isModelLike as N, isPanoramaLike as U } from "./five/mode.js";
22
+ import { lookObject as q } from "./five/lookObject.js";
23
+ import { lookPoint as A } from "./five/lookPoint.js";
24
+ import { fiveModelIsLoaded as D, waitFiveModelLoaded as E } from "./five/fiveModelLoad.js";
25
+ import { FiveDomEvents as R } from "./five/FiveDomEvents.js";
26
+ import { BetterTween as V, tweenProgress as z } from "./animationFrame/BetterTween.js";
27
+ const vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
29
28
  __proto__: null,
30
- BetterTween: z,
31
- FiveDomEvents: V,
29
+ BetterTween: V,
30
+ FiveDomEvents: R,
32
31
  Interval: r,
33
32
  LightTag: i,
34
33
  LineSegments: u,
35
- Magnifier: p,
34
+ Magnifier: l,
36
35
  Object3D: s,
37
36
  PointHelper: d,
38
37
  PointSelector: a,
39
38
  PointSelectorHelper: g,
40
39
  Rectangle: e,
41
- absoluteUrl: I,
40
+ absoluteUrl: j,
42
41
  animeMap: w,
43
- awaitNextFrame: T,
42
+ awaitNextFrame: O,
44
43
  blink: M,
45
44
  bounding: b,
46
45
  boundingBox: c,
@@ -50,31 +49,30 @@ const Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
50
49
  checkFiveModelLoaded: n,
51
50
  convexHull: t,
52
51
  equal: H,
53
- fiveModelIsLoaded: R,
54
- getCoordsFromClient: l,
52
+ fiveModelIsLoaded: D,
53
+ getCoordsFromClient: p,
55
54
  getCoordsFromElement: f,
56
- getFrameTime: _,
55
+ getFrameTime: T,
57
56
  inside: o,
58
- isAbsoluteURL: O,
59
- isModelLike: q,
57
+ isAbsoluteURL: I,
58
+ isModelLike: N,
60
59
  isNil: B,
61
- isPanoramaLike: A,
62
- lookObject: D,
63
- lookPoint: E,
60
+ isPanoramaLike: U,
61
+ lookObject: q,
62
+ lookPoint: A,
64
63
  nextFrame: y,
65
- notNil: h,
64
+ notNil: _,
66
65
  pointInPolygon: o,
67
66
  reblink: S,
68
67
  requestAnimationFrameInterval: C,
69
- sculpt: N,
70
68
  tag: m,
71
- tweenProgress: G,
72
- uuid: j,
73
- waitFiveModelLoaded: U,
69
+ tweenProgress: z,
70
+ uuid: h,
71
+ waitFiveModelLoaded: E,
74
72
  worldBounding: L,
75
73
  worldBoundingBox: P,
76
74
  worldBoundingSphere: k
77
75
  }, Symbol.toStringTag, { value: "Module" }));
78
76
  export {
79
- Lo as index
77
+ vo as _Util
80
78
  };
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.51.0",
3
+ "%c %c@realsee/dnalogel %cv3.52.0",
4
4
  [
5
5
  "background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
6
6
  "background-repeat: no-repeat",
@@ -111,6 +111,6 @@ export declare function getCenterPointOfPoints(points: Point[]): {
111
111
  x: number;
112
112
  y: number;
113
113
  };
114
- export declare function isIntersect(linePoints1: Point[], linePoints2: Point[]): 1 | 0;
114
+ export declare function isIntersect(linePoints1: Point[], linePoints2: Point[]): 0 | 1;
115
115
  export declare function getAreaSize(points: Point[]): number;
116
116
  export declare function getAreaSizeWithoutLine(points: Point[]): number;
@@ -1,11 +1,6 @@
1
1
  import type { Five } from '@realsee/five';
2
2
  import { type AnyPosition } from './positionToVector3';
3
3
  import * as THREE from 'three';
4
- interface LightTagConfig {
5
- wrapper?: HTMLElement;
6
- positionsForRotate?: AnyPosition[];
7
- namespace?: string;
8
- }
9
4
  export declare class LightTag {
10
5
  /**
11
6
  * @description 单个标签 dom
@@ -55,7 +50,11 @@ export declare class LightTag {
55
50
  private config;
56
51
  private fiveUtil;
57
52
  private disposers;
58
- constructor(five: Five, position?: AnyPosition, config?: LightTagConfig);
53
+ constructor(five: Five, position?: AnyPosition, config?: {
54
+ wrapper?: HTMLElement;
55
+ positionsForRotate?: AnyPosition[];
56
+ namespace?: string;
57
+ });
59
58
  /**
60
59
  * @description 显示标签
61
60
  */
@@ -93,4 +92,3 @@ export declare class LightTag {
93
92
  private addResizeListener;
94
93
  }
95
94
  export declare function tag(...params: ConstructorParameters<typeof LightTag>): LightTag;
96
- export {};
@@ -73,7 +73,7 @@ class w {
73
73
  this.visible && (this.updateIntersectCheckVisible(), this.needsRender = !0);
74
74
  });
75
75
  i(this, "applyVisible", () => {
76
- console.log(this.visibles), this.visibles.every((t) => t !== !1) ? (this.container.style.opacity = "1", this.container.style.pointerEvents = "auto") : (this.container.style.opacity = "0", this.container.style.pointerEvents = "none");
76
+ this.visibles.every((t) => t !== !1) ? (this.container.style.opacity = "1", this.container.style.pointerEvents = "auto") : (this.container.style.opacity = "0", this.container.style.pointerEvents = "none");
77
77
  });
78
78
  i(this, "updateIntersectCheckVisible", () => {
79
79
  var n, r;
@@ -1,27 +1,21 @@
1
1
  import * as THREE from 'three';
2
+ import type { Vector3Position } from '../../typings/math.type';
2
3
  export declare function boxVertexes(box: {
3
- max: {
4
- x: number;
5
- y: number;
6
- z: number;
7
- };
8
- min: {
9
- x: number;
10
- y: number;
11
- z: number;
12
- };
4
+ max: Vector3Position;
5
+ min: Vector3Position;
13
6
  }): THREE.Vector3[];
7
+ /**
8
+ * @description
9
+ * ```markdown
10
+ 5____4
11
+ 1/___0/|
12
+ | 6__|_7
13
+ 2/___3/
14
+ * ```
15
+ */
14
16
  export declare function boxVertex(box: {
15
- max: {
16
- x: number;
17
- y: number;
18
- z: number;
19
- };
20
- min: {
21
- x: number;
22
- y: number;
23
- z: number;
24
- };
17
+ max: Vector3Position;
18
+ min: Vector3Position;
25
19
  }, index: number): THREE.Vector3;
26
20
  export declare function boundingBox(object3D: THREE.Object3D): THREE.Box3;
27
21
  export declare function boundingSphere(object3D: THREE.Object3D): THREE.Sphere;
@@ -0,0 +1,13 @@
1
+ import type { WireframeGeometry } from 'three';
2
+ import { LineGeometry as Five_LineGeometry } from '@realsee/five/line';
3
+ import * as THREE from 'three';
4
+ export declare class LineGeometry extends Five_LineGeometry {
5
+ constructor(...args: ConstructorParameters<typeof Five_LineGeometry>);
6
+ fromEdgesGeometry(geometry: WireframeGeometry): this;
7
+ toJSON(): {
8
+ type: string;
9
+ attributes: {
10
+ [name: string]: THREE.BufferAttribute | THREE.InterleavedBufferAttribute;
11
+ };
12
+ };
13
+ }
@@ -0,0 +1,26 @@
1
+ import { LineGeometry as i } from "@realsee/five/line";
2
+ import * as t from "three";
3
+ class a extends i {
4
+ constructor(...e) {
5
+ super(...e), this.setAttribute("instanceStart", new t.BufferAttribute(new Float32Array(), 3)), this.setAttribute("instanceEnd", new t.BufferAttribute(new Float32Array(), 3));
6
+ }
7
+ fromEdgesGeometry(e) {
8
+ if (e.attributes.position.array.length < 6)
9
+ return this.setAttribute("position", new t.BufferAttribute(new Float32Array(), 3)), this.setAttribute("instanceStart", new t.BufferAttribute(new Float32Array(), 3)), this.setAttribute("instanceEnd", new t.BufferAttribute(new Float32Array(), 3)), this;
10
+ if (e instanceof t.EdgesGeometry) {
11
+ const r = new t.InstancedInterleavedBuffer(e.attributes.position.array, 6, 1);
12
+ this.setPositions(e.attributes.position.array), this.setAttribute("instanceStart", new t.InterleavedBufferAttribute(r, 3, 0)), this.setAttribute("instanceEnd", new t.InterleavedBufferAttribute(r, 3, 3));
13
+ } else
14
+ super.fromEdgesGeometry(e);
15
+ return this;
16
+ }
17
+ toJSON() {
18
+ return {
19
+ type: "FiveLineGeometry",
20
+ attributes: this.attributes
21
+ };
22
+ }
23
+ }
24
+ export {
25
+ a as LineGeometry
26
+ };
@@ -0,0 +1,14 @@
1
+ import * as THREE from 'three';
2
+ export declare class PrismGeometry extends THREE.BufferGeometry {
3
+ bottomPositions: number[][];
4
+ topPosition: number[];
5
+ /**
6
+ * @description 设置底面和顶面的位置
7
+ * @param params.bottomPositions 底面多边形的有序顶点,顺时针或逆时针均可
8
+ * @param params.topPosition 底面多边形的第一个点对应的顶面的顶点
9
+ */
10
+ setPosition(params: {
11
+ bottomPositions?: number[][];
12
+ topPosition?: number[];
13
+ }): void;
14
+ }
@@ -0,0 +1,42 @@
1
+ var a = Object.defineProperty;
2
+ var b = (l, s, e) => s in l ? a(l, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[s] = e;
3
+ var p = (l, s, e) => (b(l, typeof s != "symbol" ? s + "" : s, e), e);
4
+ import * as u from "three";
5
+ class x extends u.BufferGeometry {
6
+ constructor() {
7
+ super(...arguments);
8
+ p(this, "bottomPositions", []);
9
+ p(this, "topPosition", []);
10
+ }
11
+ /**
12
+ * @description 设置底面和顶面的位置
13
+ * @param params.bottomPositions 底面多边形的有序顶点,顺时针或逆时针均可
14
+ * @param params.topPosition 底面多边形的第一个点对应的顶面的顶点
15
+ */
16
+ setPosition(e) {
17
+ var g, m;
18
+ const i = (g = e.bottomPositions) != null ? g : this.bottomPositions, r = (m = e.topPosition) != null ? m : this.topPosition;
19
+ if (this.bottomPositions = i, this.topPosition = r, !i || i.length < 3) {
20
+ console.error("PrismGeometry: Invalid parameters", i, r, e), this.bottomPositions = [], this.setAttribute("position", new u.BufferAttribute(new Float32Array([]), 3));
21
+ return;
22
+ }
23
+ const n = [], t = [];
24
+ t.push(...i), t[0][0] === t.at(-1)[0] && t[0][1] === t.at(-1)[1] && t[0][2] === t.at(-1)[2] && (t.length -= 1);
25
+ for (let h = 0; h < t.length - 2; h++)
26
+ n.push(0, h + 1, h + 2);
27
+ if (r && r.length === 3) {
28
+ const h = [r[0] - i[0][0], r[1] - i[0][1], r[2] - i[0][2]], f = t.map((o) => [o[0] + h[0], o[1] + h[1], o[2] + h[2]]);
29
+ t.push(...f);
30
+ const P = n.map((o) => o + t.length / 2);
31
+ n.push(...P);
32
+ for (let o = 0; o < t.length / 2 - 1; o++)
33
+ n.push(o, o + 1, o + t.length / 2), n.push(o + 1, o + t.length / 2 + 1, o + t.length / 2);
34
+ n.push(0, t.length / 2, t.length / 2 - 1), n.push(t.length / 2, t.length - 1, t.length / 2 - 1);
35
+ }
36
+ const c = t.flat();
37
+ this.setAttribute("position", new u.Float32BufferAttribute(c, 3)), this.setIndex(n), this.computeBoundingSphere();
38
+ }
39
+ }
40
+ export {
41
+ x as PrismGeometry
42
+ };
@@ -1,12 +1,12 @@
1
1
  import c from "earcut";
2
- import { getNormal as l } from "./getNormal.js";
2
+ import { getNormal as i } from "./getNormal.js";
3
3
  import * as r from "three";
4
- function s(t) {
5
- if (t.length < 3)
4
+ function f(o) {
5
+ if (o.length < 3)
6
6
  return [];
7
- const e = l([t[0].clone(), t[1].clone(), t[2].clone()]), n = new r.Quaternion().setFromUnitVectors(new r.Vector3(0, 1, 0), e), a = t.map((o) => o.clone().applyQuaternion(n)).flatMap((o) => [o.x, o.z]);
7
+ const n = i(o), e = new r.Quaternion().setFromUnitVectors(new r.Vector3(0, 1, 0), n), a = o.map((t) => t.clone().applyQuaternion(e)).flatMap((t) => [t.x, t.z]);
8
8
  return c(a);
9
9
  }
10
10
  export {
11
- s as earcut3D
11
+ f as earcut3D
12
12
  };
@@ -5,3 +5,11 @@ export declare function getGeometryInfo(geometry: THREE.BufferGeometry): {
5
5
  center: Vector3;
6
6
  area: number;
7
7
  } | undefined;
8
+ /**
9
+ * @description: 计算三角形的面积
10
+ */
11
+ export declare function triangleArea(p1: Vector3, p2: Vector3, p3: Vector3): number;
12
+ /**
13
+ * @description: 计算三角形的质心
14
+ */
15
+ export declare function triangleCenter(p1: Vector3, p2: Vector3, p3: Vector3, area?: number): Vector3;
@@ -33,5 +33,7 @@ function A(n) {
33
33
  return r;
34
34
  }
35
35
  export {
36
- b as getGeometryInfo
36
+ b as getGeometryInfo,
37
+ u as triangleArea,
38
+ d as triangleCenter
37
39
  };
@@ -1,2 +1,5 @@
1
- import type { Vector3 } from 'three';
2
- export default function getNormal(points: Vector3[], length?: number): Vector3;
1
+ import { Vector3 } from 'three';
2
+ /**
3
+ * @description 右手定则求法向量
4
+ */
5
+ export default function getNormal(points: Vector3[]): Vector3;
@@ -1,11 +1,12 @@
1
- function u(n, o) {
2
- if (n.length < 3) {
1
+ import { Vector3 as e } from "three";
2
+ function l(r) {
3
+ if (r.length < 3) {
3
4
  console.error("points.length < 3");
4
5
  return;
5
6
  }
6
- const [r, t, c] = n, l = r.clone().sub(t), s = r.clone().sub(c), e = l.cross(s).normalize();
7
- return typeof o == "number" ? e.multiplyScalar(o) : e;
7
+ const [n, o, t] = r;
8
+ return new e().subVectors(t, o).cross(new e().subVectors(n, o)).normalize();
8
9
  }
9
10
  export {
10
- u as getNormal
11
+ l as getNormal
11
12
  };
@@ -4,11 +4,6 @@ import "./PointSelector/index.js";
4
4
  import "three/examples/jsm/renderers/CSS3DRenderer";
5
5
  import "../tag.js";
6
6
  import "@realsee/five/line";
7
- import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
8
7
  import "./core/Sphere.js";
9
8
  import "animejs";
10
9
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
11
- import "../../Sculpt/Meshes/Polygon.js";
12
- import "../../Sculpt/utils/Modules/Global.js";
13
- import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
14
- import "../../Sculpt/utils/three/rayOnLine.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.51.0",
3
+ "version": "3.52.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",
@@ -1,5 +0,0 @@
1
- import type { Box } from '.';
2
- import { BaseEditorWithObjectHelper } from '../Base/Editor';
3
- export declare class BoxEditor extends BaseEditorWithObjectHelper<Box> {
4
- constructor(originObject: Box);
5
- }
@@ -1,5 +0,0 @@
1
- import { BaseEditorWithObjectHelper } from '../Base/Editor';
2
- import type { Circle } from '.';
3
- export declare class CircleEditor extends BaseEditorWithObjectHelper<Circle> {
4
- constructor(originObject: Circle);
5
- }
@@ -1,5 +0,0 @@
1
- import { BaseEditorWithObjectHelper } from '../Base/Editor';
2
- import type { Cylinder } from '.';
3
- export declare class CylinderEditor extends BaseEditorWithObjectHelper<Cylinder> {
4
- constructor(originObject: Cylinder);
5
- }
@@ -1,5 +0,0 @@
1
- import { BaseEditorWithObjectHelper } from '../Base/Editor';
2
- import type { Prism } from '.';
3
- export declare class PrismEditor extends BaseEditorWithObjectHelper<Prism> {
4
- constructor(originObject: Prism);
5
- }
@@ -1,5 +0,0 @@
1
- import { BaseEditorWithObjectHelper } from '../Base/Editor';
2
- import type { Rectangle } from '.';
3
- export declare class RectangleEditor extends BaseEditorWithObjectHelper<Rectangle> {
4
- constructor(originObject: Rectangle);
5
- }
@@ -1,2 +0,0 @@
1
- import * as THREE from 'three';
2
- export default function getBetterNormal(points: THREE.Vector3[], closestPoint: THREE.Vector3): THREE.Vector3;
@@ -1,5 +0,0 @@
1
- import type { Box } from '.';
2
- import { BaseEditorWithObjectHelper } from '../Base/Editor';
3
- export declare class BoxEditor extends BaseEditorWithObjectHelper<Box> {
4
- constructor(originObject: Box);
5
- }
@@ -1,44 +0,0 @@
1
- import { BaseEditorWithObjectHelper as a } from "../Base/Editor.js";
2
- import * as c from "three";
3
- class m extends a {
4
- constructor(e) {
5
- super(e, () => {
6
- const i = () => {
7
- var s, t;
8
- const o = (s = e.boxMesh.topPlane) == null ? void 0 : s.center, n = (t = e.boxMesh.bottomPlane) == null ? void 0 : t.center, r = new c.Vector3().lerpVectors(o, n, 0.5);
9
- return { topCenter: o, bottomCenter: n, boxCenter: r };
10
- };
11
- return {
12
- positionFrom: "boundingBox",
13
- yAxis: e.boxMesh.bottomPlane.up,
14
- scaleHelper: {
15
- enable: !0,
16
- positions: () => {
17
- const o = i();
18
- return [
19
- {
20
- id: "top",
21
- handlePosition: o.topCenter,
22
- basePosition: o.bottomCenter
23
- },
24
- {
25
- id: "bottom",
26
- handlePosition: o.bottomCenter,
27
- basePosition: o.topCenter
28
- }
29
- ];
30
- },
31
- scaleCallback: (o) => {
32
- const { intersectPoint: n, scalePosition: r } = o, { id: s } = r, { boxMesh: t } = e;
33
- s === "top" ? t.setTopHeightPoint(n) : s === "bottom" && t.setPoints({
34
- points: t.topPlane.points.map((p) => p.clone().add(n.clone().sub(r.basePosition)))
35
- });
36
- }
37
- }
38
- };
39
- });
40
- }
41
- }
42
- export {
43
- m as BoxEditor
44
- };
@@ -1,5 +0,0 @@
1
- import { BaseEditorWithObjectHelper } from '../Base/Editor';
2
- import type { Circle } from '.';
3
- export declare class CircleEditor extends BaseEditorWithObjectHelper<Circle> {
4
- constructor(originObject: Circle);
5
- }
@@ -1,9 +0,0 @@
1
- import { BaseEditorWithObjectHelper as e } from "../Base/Editor.js";
2
- class o extends e {
3
- constructor(r) {
4
- super(r, () => ({ yAxis: r.circleMesh.normal }));
5
- }
6
- }
7
- export {
8
- o as CircleEditor
9
- };
@@ -1,5 +0,0 @@
1
- import { BaseEditorWithObjectHelper } from '../Base/Editor';
2
- import type { Cylinder } from '.';
3
- export declare class CylinderEditor extends BaseEditorWithObjectHelper<Cylinder> {
4
- constructor(originObject: Cylinder);
5
- }