@realsee/dnalogel 3.51.0 → 3.52.1
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.
- package/CHANGELOG.md +15 -0
- package/dist/Object3DHelperPlugin/Controller.d.ts +9 -9
- package/dist/Object3DHelperPlugin/FiveControllerWrapper.d.ts +4 -2
- package/dist/PanoMeasurePlugin/Model/area.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Model/polygon.d.ts +1 -1
- package/dist/PanoMeasurePlugin/typings/data.d.ts +1 -2
- package/dist/Sculpt/Editors/BoxMeshEditor.d.ts +5 -0
- package/dist/Sculpt/Editors/CircleMeshEditor.d.ts +5 -0
- package/dist/Sculpt/Editors/CylinderMeshEditor.d.ts +5 -0
- package/dist/Sculpt/Editors/PrismMeshEditor.d.ts +5 -0
- package/dist/Sculpt/Editors/RectangleMeshEditor.d.ts +5 -0
- package/dist/Sculpt/Meshes/Box.d.ts +6 -24
- package/dist/Sculpt/Meshes/Circle.d.ts +0 -4
- package/dist/Sculpt/Meshes/Cylinder.d.ts +0 -1
- package/dist/Sculpt/Meshes/Line.d.ts +9 -22
- package/dist/Sculpt/Meshes/Polygon.d.ts +1 -5
- package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
- package/dist/Sculpt/Meshes/Prism.d.ts +29 -10
- package/dist/Sculpt/Meshes/Rectangle.d.ts +1 -5
- package/dist/Sculpt/Objects/Base/index.d.ts +3 -3
- package/dist/Sculpt/Objects/Box/index.d.ts +7 -2
- package/dist/Sculpt/Objects/Circle/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Cylinder/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Line/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Point/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Polygon/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Polyline/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Prism/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Rectangle/index.d.ts +13 -2
- package/dist/Sculpt/index.d.ts +10 -19
- package/dist/Sculpt/typings/style.d.ts +6 -0
- package/dist/Sculpt/utils/export.d.ts +24 -18
- package/dist/Sculpt/utils/sortPositionsByCameraPosition.d.ts +5 -0
- package/dist/Sculpt/utils/three/ColoredMesh.d.ts +4 -0
- package/dist/index.cjs.js +88 -3009
- package/dist/index.d.ts +79 -1
- package/dist/index.js +35141 -54254
- package/dist/index.umd.js +81 -3002
- package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -0
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +7 -3
- package/dist/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +0 -1
- package/dist/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +3 -1
- package/dist/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +2 -0
- package/dist/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -1
- package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
- package/dist/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +4 -2
- package/dist/shared-utils/Object3DHelper/typings/index.d.ts +1 -1
- package/dist/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +4 -1
- package/dist/shared-utils/five/FiveLine.d.ts +18 -14
- package/dist/shared-utils/index.d.ts +0 -1
- package/dist/shared-utils/math/planimetry.d.ts +1 -1
- package/dist/shared-utils/tag.d.ts +5 -7
- package/dist/shared-utils/three/boundingBox.d.ts +14 -20
- package/dist/shared-utils/three/core/LineGeometry.d.ts +13 -0
- package/dist/shared-utils/three/core/PrismGeometry.d.ts +14 -0
- package/dist/shared-utils/three/geometryUtil.d.ts +8 -0
- package/dist/shared-utils/three/getNormal.d.ts +5 -2
- package/libs/AreaMakerPlugin/Controller.js +47 -100
- package/libs/AreaMakerPlugin/index.js +12 -65
- package/libs/AreaMakerPlugin/utils/Item.js +102 -157
- package/libs/CSS3DRenderPlugin/Controller.js +45 -93
- package/libs/CSS3DRenderPlugin/index.js +15 -63
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +51 -106
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +79 -131
- package/libs/CruisePlugin/BaseController.js +90 -143
- package/libs/CruisePlugin/Move.js +39 -83
- package/libs/CruisePlugin/Work.js +52 -96
- package/libs/CruisePlugin/index.js +23 -67
- package/libs/CurrentPanoImagePlugin/Controller.js +88 -141
- package/libs/CurrentPanoImagePlugin/index.js +11 -64
- package/libs/GuideLinePlugin/Controller.js +13 -57
- package/libs/GuideLinePlugin/GuideLineItem.js +20 -64
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -8
- package/libs/GuideLinePlugin/GuideLineModeItem.js +15 -59
- package/libs/GuideLinePlugin/index.js +23 -67
- package/libs/ModelMakerPlugin/Controller.js +125 -165
- package/libs/ModelMakerPlugin/index.js +23 -63
- package/libs/ModelMakerPlugin/item/baseItem.js +2 -3
- package/libs/ModelMakerPlugin/item/boxItem.js +2 -3
- package/libs/ModelMakerPlugin/item/polygonItem.js +6 -7
- package/libs/ModelMakerPlugin/item/prismItem.js +2 -3
- package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +2 -3
- package/libs/ModelTVVideoPlugin/Plugin.js +49 -97
- package/libs/ModelTVVideoPlugin/index.js +8 -56
- package/libs/Object3DHelperPlugin/Controller.d.ts +9 -9
- package/libs/Object3DHelperPlugin/Controller.js +105 -92
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.d.ts +4 -2
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +35 -30
- package/libs/Object3DHelperPlugin/index.js +15 -30
- package/libs/PanoCompassPlugin/Controller.js +46 -93
- package/libs/PanoCompassPlugin/index.js +17 -64
- package/libs/PanoCursorRaycasterPlugin/index.js +4 -3
- package/libs/PanoDoorLabelPlugin/BaseController.js +27 -80
- package/libs/PanoDoorLabelPlugin/Controller.js +80 -133
- package/libs/PanoDoorLabelPlugin/index.js +11 -64
- package/libs/PanoMeasurePlugin/Components/Controller0.js +79 -128
- package/libs/PanoMeasurePlugin/Components/Controller1.js +92 -141
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +73 -122
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +72 -121
- package/libs/PanoMeasurePlugin/Controller/index.js +89 -135
- package/libs/PanoMeasurePlugin/Model/area.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Model/area.js +25 -74
- package/libs/PanoMeasurePlugin/Model/index.js +3 -2
- package/libs/PanoMeasurePlugin/Model/line.js +1 -0
- package/libs/PanoMeasurePlugin/Model/polygon.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Model/polygon.js +7 -7
- package/libs/PanoMeasurePlugin/Model/polyline.js +3 -2
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -56
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +17 -66
- package/libs/PanoMeasurePlugin/index.js +18 -64
- package/libs/PanoMeasurePlugin/typings/data.d.ts +1 -2
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +5 -59
- package/libs/PanoMeasurePlugin/utils/line.js +3 -2
- package/libs/PanoRulerProPlugin/Controller.js +34 -89
- package/libs/PanoRulerProPlugin/RulerItems.js +92 -147
- package/libs/PanoRulerProPlugin/index.js +10 -65
- package/libs/PanoSpatialTagPlugin/Plugin.js +130 -178
- package/libs/PanoSpatialTagPlugin/index.js +6 -54
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +61 -116
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +138 -193
- package/libs/PanoTagPlugin/Components/Tag/index.js +140 -194
- package/libs/PanoTagPlugin/Components/TagContainer.js +58 -112
- package/libs/PanoTagPlugin/Components/TagItem.js +137 -191
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +109 -164
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +22 -76
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +33 -87
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +39 -94
- package/libs/PanoTagPlugin/controller/TagRender.js +18 -62
- package/libs/PanoTagPlugin/controller/TagUtil.js +80 -124
- package/libs/PanoTagPlugin/controller/index.js +37 -81
- package/libs/PanoTagPlugin/index.js +28 -72
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +14 -14
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +22 -77
- package/libs/PanoVideoPlugin/Controller.js +43 -96
- package/libs/PanoVideoPlugin/VideoMeshController.js +64 -119
- package/libs/PanoVideoPlugin/index.js +14 -67
- package/libs/PipelinePlugin/Controller.js +123 -176
- package/libs/PipelinePlugin/index.js +11 -64
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +15 -70
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -58
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +42 -97
- package/libs/Sculpt/Editors/BoxMeshEditor.d.ts +5 -0
- package/libs/Sculpt/Editors/BoxMeshEditor.js +98 -0
- package/libs/Sculpt/Editors/CircleMeshEditor.d.ts +5 -0
- package/libs/Sculpt/Editors/CircleMeshEditor.js +9 -0
- package/libs/Sculpt/Editors/CylinderMeshEditor.d.ts +5 -0
- package/libs/Sculpt/Editors/CylinderMeshEditor.js +41 -0
- package/libs/Sculpt/Editors/PrismMeshEditor.d.ts +5 -0
- package/libs/Sculpt/Editors/PrismMeshEditor.js +43 -0
- package/libs/Sculpt/Editors/RectangleMeshEditor.d.ts +5 -0
- package/libs/Sculpt/Editors/RectangleMeshEditor.js +70 -0
- package/libs/Sculpt/Meshes/Box.d.ts +6 -24
- package/libs/Sculpt/Meshes/Box.js +22 -93
- package/libs/Sculpt/Meshes/Circle.d.ts +0 -4
- package/libs/Sculpt/Meshes/Circle.js +18 -27
- package/libs/Sculpt/Meshes/Cylinder.d.ts +0 -1
- package/libs/Sculpt/Meshes/Cylinder.js +17 -24
- package/libs/Sculpt/Meshes/Line.d.ts +9 -22
- package/libs/Sculpt/Meshes/Line.js +85 -104
- package/libs/Sculpt/Meshes/LineWithDots.js +10 -14
- package/libs/Sculpt/Meshes/Point.js +29 -34
- package/libs/Sculpt/Meshes/Polygon.d.ts +1 -5
- package/libs/Sculpt/Meshes/Polygon.js +40 -53
- package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
- package/libs/Sculpt/Meshes/Prism.d.ts +29 -10
- package/libs/Sculpt/Meshes/Prism.js +108 -84
- package/libs/Sculpt/Meshes/Rectangle.d.ts +1 -5
- package/libs/Sculpt/Meshes/Rectangle.js +12 -22
- package/libs/Sculpt/Meshes/RectangleWithEdge.js +17 -20
- package/libs/Sculpt/Objects/Base/index.d.ts +3 -3
- package/libs/Sculpt/Objects/Base/index.js +20 -25
- package/libs/Sculpt/Objects/Box/index.d.ts +7 -2
- package/libs/Sculpt/Objects/Box/index.js +72 -60
- package/libs/Sculpt/Objects/Circle/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Circle/index.js +41 -37
- package/libs/Sculpt/Objects/Cylinder/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Cylinder/index.js +66 -62
- package/libs/Sculpt/Objects/Line/Editor.js +8 -10
- package/libs/Sculpt/Objects/Line/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Line/index.js +45 -41
- package/libs/Sculpt/Objects/Point/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Point/index.js +33 -29
- package/libs/Sculpt/Objects/Polygon/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Polygon/index.js +67 -63
- package/libs/Sculpt/Objects/Polyline/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Polyline/index.js +46 -42
- package/libs/Sculpt/Objects/Prism/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Prism/index.js +58 -53
- package/libs/Sculpt/Objects/Rectangle/index.d.ts +13 -2
- package/libs/Sculpt/Objects/Rectangle/index.js +143 -81
- package/libs/Sculpt/index.d.ts +10 -19
- package/libs/Sculpt/index.js +105 -107
- package/libs/Sculpt/typings/style.d.ts +6 -0
- package/libs/Sculpt/utils/export.d.ts +24 -18
- package/libs/Sculpt/utils/export.js +52 -19
- package/libs/Sculpt/utils/sortPositionsByCameraPosition.d.ts +5 -0
- package/libs/Sculpt/utils/sortPositionsByCameraPosition.js +9 -0
- package/libs/Sculpt/utils/three/ColoredMesh.d.ts +4 -0
- package/libs/Sculpt/utils/three/ColoredMesh.js +40 -37
- package/libs/base/BasePlugin.js +10 -15
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +96 -147
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +12 -63
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +53 -105
- package/libs/floorplan/ModelFloorplanPlugin/index.js +11 -63
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +65 -118
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +11 -64
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +54 -106
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +11 -63
- package/libs/floorplan/index.js +0 -5
- package/libs/index.d.ts +79 -1
- package/libs/index.js +229 -215
- package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -0
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +112 -122
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +7 -3
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +60 -39
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +47 -47
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +0 -1
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +28 -28
- package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +3 -1
- package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js +25 -18
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +2 -0
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +18 -14
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -1
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -0
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +2 -1
- package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +4 -2
- package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.js +40 -28
- package/libs/shared-utils/Object3DHelper/typings/index.d.ts +1 -1
- package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +4 -1
- package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.js +4 -4
- package/libs/shared-utils/five/FiveDomEvents.js +88 -88
- package/libs/shared-utils/five/FiveLine.d.ts +18 -14
- package/libs/shared-utils/five/FiveLine.js +31 -13
- package/libs/shared-utils/five/index.js +2 -7
- package/libs/shared-utils/five/lookObject.js +27 -32
- package/libs/shared-utils/index.d.ts +0 -1
- package/libs/shared-utils/index.js +31 -33
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/math/planimetry.d.ts +1 -1
- package/libs/shared-utils/tag.d.ts +5 -7
- package/libs/shared-utils/tag.js +1 -1
- package/libs/shared-utils/three/boundingBox.d.ts +14 -20
- package/libs/shared-utils/three/core/LineGeometry.d.ts +13 -0
- package/libs/shared-utils/three/core/LineGeometry.js +26 -0
- package/libs/shared-utils/three/core/PrismGeometry.d.ts +14 -0
- package/libs/shared-utils/three/core/PrismGeometry.js +42 -0
- package/libs/shared-utils/three/earcut3D.js +5 -5
- package/libs/shared-utils/three/geometryUtil.d.ts +8 -0
- package/libs/shared-utils/three/geometryUtil.js +3 -1
- package/libs/shared-utils/three/getNormal.d.ts +5 -2
- package/libs/shared-utils/three/getNormal.js +6 -5
- package/libs/shared-utils/three/index.js +0 -5
- package/package.json +1 -1
- package/dist/Sculpt/Objects/Box/Editor.d.ts +0 -5
- package/dist/Sculpt/Objects/Circle/Editor.d.ts +0 -5
- package/dist/Sculpt/Objects/Cylinder/Editor.d.ts +0 -5
- package/dist/Sculpt/Objects/Prism/Editor.d.ts +0 -5
- package/dist/Sculpt/Objects/Rectangle/Editor.d.ts +0 -5
- package/dist/Sculpt/utils/getBetterNormal.d.ts +0 -2
- package/libs/Sculpt/Objects/Box/Editor.d.ts +0 -5
- package/libs/Sculpt/Objects/Box/Editor.js +0 -44
- package/libs/Sculpt/Objects/Circle/Editor.d.ts +0 -5
- package/libs/Sculpt/Objects/Circle/Editor.js +0 -9
- package/libs/Sculpt/Objects/Cylinder/Editor.d.ts +0 -5
- package/libs/Sculpt/Objects/Cylinder/Editor.js +0 -41
- package/libs/Sculpt/Objects/Prism/Editor.d.ts +0 -5
- package/libs/Sculpt/Objects/Prism/Editor.js +0 -44
- package/libs/Sculpt/Objects/Rectangle/Editor.d.ts +0 -5
- package/libs/Sculpt/Objects/Rectangle/Editor.js +0 -9
- package/libs/Sculpt/utils/getBetterNormal.d.ts +0 -2
- package/libs/Sculpt/utils/getBetterNormal.js +0 -8
- package/libs/vendor/three/build/three.module.js +0 -19336
- package/libs/vendor/three/examples/jsm/lines/LineGeometry.js +0 -28
- package/libs/vendor/three/examples/jsm/lines/LineSegmentsGeometry.js +0 -69
|
@@ -1,62 +1,51 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import * as
|
|
5
|
-
import { Subscribe as
|
|
6
|
-
import { DomEvents as m } from "../../threex/domevents/index.js";
|
|
1
|
+
var g = Object.defineProperty;
|
|
2
|
+
var m = (h, t, e) => t in h ? g(h, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[t] = e;
|
|
3
|
+
var o = (h, t, e) => (m(h, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
+
import * as b from "three";
|
|
5
|
+
import { Subscribe as u } from "../../Subscribe.js";
|
|
7
6
|
import { notNil as y } from "../../isNil.js";
|
|
8
|
-
import { boundingBox as
|
|
9
|
-
import { toArray as
|
|
10
|
-
class
|
|
11
|
-
constructor(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
if (this.getIntersectObject(
|
|
7
|
+
import { boundingBox as H } from "../../three/boundingBox.js";
|
|
8
|
+
import { toArray as D } from "../../util.js";
|
|
9
|
+
class _ {
|
|
10
|
+
constructor(t, e) {
|
|
11
|
+
o(this, "originObject3D");
|
|
12
|
+
o(this, "hooks");
|
|
13
|
+
o(this, "preventTapDefaultEvent", !1);
|
|
14
|
+
o(this, "internalHooks");
|
|
15
|
+
o(this, "disposers", []);
|
|
16
|
+
o(this, "helperObject3D");
|
|
17
|
+
o(this, "camera");
|
|
18
|
+
o(this, "model");
|
|
19
|
+
o(this, "scene");
|
|
20
|
+
o(this, "container");
|
|
21
|
+
o(this, "domEvents");
|
|
22
|
+
o(this, "isDragging", !1);
|
|
23
|
+
o(this, "enabled", !1);
|
|
24
|
+
o(this, "name", "BaseController");
|
|
25
|
+
o(this, "boundingBox");
|
|
26
|
+
o(this, "config");
|
|
27
|
+
o(this, "onRender");
|
|
28
|
+
o(this, "onWantsTapGesture", (t) => {
|
|
29
|
+
if (this.getIntersectObject(t))
|
|
31
30
|
return !1;
|
|
32
31
|
});
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
const e = this.camera;
|
|
36
|
-
this.helperObject3D.setScaleByCamera(e);
|
|
37
|
-
}
|
|
32
|
+
o(this, "onWantsUpdateCameraDistance", () => {
|
|
33
|
+
this.helperObject3D.setScaleByCamera(this.camera);
|
|
38
34
|
});
|
|
39
|
-
|
|
40
|
-
var d, O,
|
|
41
|
-
this.hooks = (d =
|
|
42
|
-
}, this.config =
|
|
43
|
-
const
|
|
44
|
-
this.internalHooks.on("
|
|
45
|
-
this.internalHooks.off("setObjectPosition", this.onWantsUpdateCameraDistance), this.internalHooks.off("initialHelperPosition",
|
|
35
|
+
o(this, "getBox", () => this.boundingBox ? this.boundingBox : (this.boundingBox = H(this.originObject3D), this.boundingBox));
|
|
36
|
+
var d, O, i;
|
|
37
|
+
this.hooks = (d = t.sharedHooks) != null ? d : new u(), this.internalHooks = (O = t.sharedInternalHooks) != null ? O : new u(), this.camera = t.camera, this.model = t.model, this.originObject3D = t.originObject3D, this.helperObject3D = t.helperObject3D, this.container = t.container, this.scene = t.scene, this.domEvents = t.domEvents, this.onRender = (i = t.onRender) != null ? i : () => {
|
|
38
|
+
}, this.config = e != null ? e : {}, this.initialHelperPosition(), this.initialHelperQuaternion(), this.onWantsUpdateCameraDistance(), this.enable();
|
|
39
|
+
const s = this.onSetOriginObjectScale.bind(this), a = this.onSetOriginObjectRotate.bind(this), n = this.onSetOriginObjectPosition.bind(this), r = this.onApplyOriginObjectScale.bind(this), l = this.onApplyOriginObjectRotate.bind(this), p = this.onApplyOriginObjectPosition.bind(this), c = this.initialHelperPosition.bind(this);
|
|
40
|
+
this.internalHooks.on("initialHelperPosition", c), this.internalHooks.on("setObjectScale", s), this.internalHooks.on("setObjectRotate", a), this.internalHooks.on("setObjectPosition", n), this.internalHooks.on("applyObjectPosition", p), this.internalHooks.on("applyObjectRotate", l), this.internalHooks.on("applyObjectScale", r), this.hooks.on("moveEnd", this.onWantsUpdateCameraDistance), this.internalHooks.on("setObjectPosition", this.onWantsUpdateCameraDistance), this.internalHooks.on("initialHelperPosition", this.onWantsUpdateCameraDistance), this.disposers.push(() => {
|
|
41
|
+
this.internalHooks.off("setObjectPosition", this.onWantsUpdateCameraDistance), this.internalHooks.off("initialHelperPosition", c), this.internalHooks.off("initialHelperPosition", this.onWantsUpdateCameraDistance), this.internalHooks.off("setObjectScale", s), this.internalHooks.off("setObjectRotate", a), this.internalHooks.off("setObjectPosition", n), this.internalHooks.off("applyObjectPosition", p), this.internalHooks.off("applyObjectRotate", l), this.internalHooks.off("applyObjectScale", r);
|
|
46
42
|
});
|
|
47
43
|
}
|
|
48
44
|
initialHelperPosition() {
|
|
49
45
|
this.helperObject3D.initialPosition(this.calculateOffset(this.config.offset));
|
|
50
46
|
}
|
|
51
47
|
initialHelperQuaternion() {
|
|
52
|
-
|
|
53
|
-
this.helperObject3D.initQuaternion();
|
|
54
|
-
const e = (h = this.config.xAxis) != null ? h : new c.Vector3(1, 0, 0), t = (p = this.config.yAxis) != null ? p : new c.Vector3(0, 1, 0), o = (l = this.config.zAxis) != null ? l : new c.Vector3(0, 0, 1), a = new c.Quaternion();
|
|
55
|
-
a.setFromUnitVectors(new c.Vector3(1, 0, 0), e.normalize());
|
|
56
|
-
const i = new c.Quaternion();
|
|
57
|
-
i.setFromUnitVectors(new c.Vector3(0, 1, 0), t.normalize());
|
|
58
|
-
const r = new c.Quaternion();
|
|
59
|
-
r.setFromUnitVectors(new c.Vector3(0, 0, 1), o.normalize()), this.helperObject3D.quaternion.premultiply(a), this.helperObject3D.quaternion.premultiply(i), this.helperObject3D.quaternion.premultiply(r);
|
|
48
|
+
this.helperObject3D.initQuaternion(this.config);
|
|
60
49
|
}
|
|
61
50
|
enable() {
|
|
62
51
|
this.enabled || (this.enabled = !0, this.scene.add(this.helperObject3D), this.helperObject3D.enable(), this.render());
|
|
@@ -71,148 +60,149 @@ class E {
|
|
|
71
60
|
this.helperObject3D.hide(), this.render();
|
|
72
61
|
}
|
|
73
62
|
dispose() {
|
|
74
|
-
var
|
|
75
|
-
(
|
|
63
|
+
var t;
|
|
64
|
+
(t = this.disposers) == null || t.forEach((e) => e == null ? void 0 : e()), this.helperObject3D.dispose(), this.render();
|
|
76
65
|
}
|
|
77
66
|
/**
|
|
78
67
|
* @description: applyHelperMatrix4
|
|
79
68
|
* @param {THREE.Matrix4} matrix position 偏移量
|
|
80
69
|
*/
|
|
81
|
-
applyHelperMatrix4(
|
|
82
|
-
this.helperObject3D.applyMatrix4(
|
|
70
|
+
applyHelperMatrix4(t) {
|
|
71
|
+
this.helperObject3D.applyMatrix4(t);
|
|
83
72
|
}
|
|
84
73
|
/**
|
|
85
74
|
* @description: applyHelperQuaternion
|
|
86
75
|
* @param {THREE.Quaternion} quaternion 旋转四元数
|
|
87
76
|
* @param {THREE.Vector3} origin 旋转中心
|
|
88
77
|
*/
|
|
89
|
-
applyHelperQuaternion(
|
|
90
|
-
this.helperObject3D.applyHelperQuaternion(
|
|
78
|
+
applyHelperQuaternion(t, e) {
|
|
79
|
+
this.helperObject3D.applyHelperQuaternion(t, e);
|
|
91
80
|
}
|
|
92
81
|
/**
|
|
93
82
|
* @description: applyHelperScaleMatrix4
|
|
94
83
|
* @param {THREE.Matrix4} matrix 缩放矩阵
|
|
95
84
|
* @param {THREE.Vector3} origin 缩放中心
|
|
96
85
|
*/
|
|
97
|
-
applyHelperScaleMatrix4(
|
|
98
|
-
this.helperObject3D.applyHelperScaleMatrix4(
|
|
86
|
+
applyHelperScaleMatrix4(t, e) {
|
|
87
|
+
this.helperObject3D.applyHelperScaleMatrix4(t, e);
|
|
99
88
|
}
|
|
100
|
-
onWantsGesture(
|
|
89
|
+
onWantsGesture(t, e, s) {
|
|
101
90
|
if (this.isDragging)
|
|
102
91
|
return !1;
|
|
103
92
|
}
|
|
104
|
-
onIntersectionOnModelUpdate(
|
|
93
|
+
onIntersectionOnModelUpdate(t) {
|
|
105
94
|
}
|
|
106
95
|
/**
|
|
107
96
|
* @description: onApplyOriginObjectScale
|
|
108
97
|
* @param {THREE.Matrix4} params.matrix 缩放矩阵
|
|
109
98
|
* @param {THREE.Vector3} params.origin 缩放中心
|
|
110
99
|
*/
|
|
111
|
-
onApplyOriginObjectScale(
|
|
112
|
-
this.applyHelperScaleMatrix4(
|
|
100
|
+
onApplyOriginObjectScale(t) {
|
|
101
|
+
this.applyHelperScaleMatrix4(t.matrix, t.origin);
|
|
113
102
|
}
|
|
114
103
|
/**
|
|
115
104
|
* @description: onApplyOriginObjectRotate
|
|
116
105
|
* @param {THREE.Quaternion} params.quaternion 旋转四元数
|
|
117
106
|
* @param {THREE.Vector3} params.origin 旋转中心
|
|
118
107
|
*/
|
|
119
|
-
onApplyOriginObjectRotate(
|
|
120
|
-
this.applyHelperQuaternion(
|
|
108
|
+
onApplyOriginObjectRotate(t) {
|
|
109
|
+
this.applyHelperQuaternion(t.quaternion, t.origin);
|
|
121
110
|
}
|
|
122
111
|
/**
|
|
123
112
|
* @description: onApplyOriginObjectPosition
|
|
124
113
|
* @param {THREE.Matrix4} params.matrix position 偏移量
|
|
125
114
|
*/
|
|
126
|
-
onApplyOriginObjectPosition(
|
|
127
|
-
this.applyHelperMatrix4(
|
|
115
|
+
onApplyOriginObjectPosition(t) {
|
|
116
|
+
this.applyHelperMatrix4(t.matrix);
|
|
128
117
|
}
|
|
129
|
-
onSetOriginObjectScale(
|
|
130
|
-
this.helperObject3D.scale.copy(
|
|
118
|
+
onSetOriginObjectScale(t) {
|
|
119
|
+
this.helperObject3D.scale.copy(t), this.updateOffsetByScale(t);
|
|
131
120
|
}
|
|
132
|
-
onSetOriginObjectRotate(
|
|
133
|
-
this.helperObject3D.setHelperQuaternion(
|
|
121
|
+
onSetOriginObjectRotate(t, e) {
|
|
122
|
+
this.helperObject3D.setHelperQuaternion(t, e);
|
|
134
123
|
}
|
|
135
|
-
onSetOriginObjectPosition(
|
|
136
|
-
this.helperObject3D.position.copy(
|
|
124
|
+
onSetOriginObjectPosition(t) {
|
|
125
|
+
this.helperObject3D.position.copy(t.clone().add(this.calculateOffset(this.config.offset)));
|
|
137
126
|
}
|
|
138
127
|
render() {
|
|
139
128
|
this.onRender();
|
|
140
129
|
}
|
|
141
|
-
updateOffsetByScale(
|
|
130
|
+
updateOffsetByScale(t) {
|
|
142
131
|
if (this.boundingBox && this.config.offset) {
|
|
143
|
-
const
|
|
144
|
-
this.helperObject3D.initialPosition(
|
|
132
|
+
const e = this.originObject3D.position, s = new b.Vector3().subVectors(this.boundingBox.max, e).multiply(t).add(e), a = new b.Vector3().subVectors(this.boundingBox.min, e).multiply(t).add(e), n = this.calculateOffset(this.config.offset, { min: a, max: s });
|
|
133
|
+
this.helperObject3D.initialPosition(n);
|
|
145
134
|
}
|
|
146
135
|
}
|
|
147
|
-
hoverListener(
|
|
148
|
-
const a =
|
|
136
|
+
hoverListener(t, e = 16777215, s = 1) {
|
|
137
|
+
const a = D(t).filter(y), n = [];
|
|
149
138
|
for (const r of a)
|
|
150
|
-
if (r.material || r instanceof
|
|
151
|
-
const
|
|
152
|
-
|
|
153
|
-
|
|
139
|
+
if (r.material || r instanceof b.Group) {
|
|
140
|
+
const l = r instanceof b.Group ? r.children.filter((i) => i instanceof b.Mesh) : [r];
|
|
141
|
+
l.forEach((i) => {
|
|
142
|
+
var f, j;
|
|
143
|
+
i.__originalColor__ = (f = i.__originalColor__) != null ? f : i.material.color.clone(), i.__originalOpacity__ = (j = i.__originalOpacity__) != null ? j : i.material.opacity;
|
|
154
144
|
});
|
|
155
145
|
const p = () => {
|
|
156
|
-
|
|
157
|
-
|
|
146
|
+
l.forEach((i) => {
|
|
147
|
+
i.material.color.set(e), i.material.opacity = s;
|
|
158
148
|
}), this.render();
|
|
159
|
-
},
|
|
160
|
-
|
|
161
|
-
|
|
149
|
+
}, c = () => {
|
|
150
|
+
l.forEach((i) => {
|
|
151
|
+
i.material.color.copy(i.__originalColor__), i.material.opacity = i.__originalOpacity__;
|
|
162
152
|
}), this.render();
|
|
163
153
|
}, d = () => {
|
|
164
154
|
this.isDragging || p();
|
|
165
155
|
}, O = () => {
|
|
166
|
-
this.isDragging ||
|
|
156
|
+
this.isDragging || c();
|
|
167
157
|
};
|
|
168
|
-
for (const
|
|
169
|
-
this.domEvents.addEventListener(
|
|
170
|
-
this.domEvents.removeEventListener(
|
|
158
|
+
for (const i of l)
|
|
159
|
+
this.domEvents.addEventListener(i, "mouseover", d), this.domEvents.addEventListener(i, "mouseout", O), this.hooks.on("moveStart", p), this.hooks.on("moveEnd", c), this.hooks.on("rotateEnd", c), this.hooks.on("scaleEnd", c), n.push(() => {
|
|
160
|
+
this.domEvents.removeEventListener(i, "mouseover", d), this.domEvents.removeEventListener(i, "mouseout", O), this.hooks.off("moveStart", p), this.hooks.off("moveEnd", c), this.hooks.off("rotateEnd", c), this.hooks.off("scaleEnd", c);
|
|
171
161
|
});
|
|
172
162
|
}
|
|
173
|
-
return () =>
|
|
163
|
+
return () => n.forEach((r) => r == null ? void 0 : r());
|
|
174
164
|
}
|
|
175
|
-
getIntersectObject(
|
|
176
|
-
const
|
|
177
|
-
if (!
|
|
165
|
+
getIntersectObject(t) {
|
|
166
|
+
const e = this.camera.position, s = this.helperObject3D;
|
|
167
|
+
if (!s)
|
|
178
168
|
return;
|
|
179
|
-
const a = this.helperObject3D.raycasterIntersectObject(
|
|
169
|
+
const a = this.helperObject3D.raycasterIntersectObject(t)[0];
|
|
180
170
|
if (!a)
|
|
181
171
|
return;
|
|
182
|
-
const
|
|
183
|
-
if (
|
|
184
|
-
const r = this.model.intersectRaycaster(
|
|
185
|
-
if (r && r.point.distanceTo(
|
|
172
|
+
const n = a;
|
|
173
|
+
if (n.object = s, this.model.intersectRaycaster) {
|
|
174
|
+
const r = this.model.intersectRaycaster(t)[0];
|
|
175
|
+
if (r && r.point.distanceTo(e) < n.point.distanceTo(e))
|
|
186
176
|
return;
|
|
187
177
|
}
|
|
188
|
-
return
|
|
189
|
-
}
|
|
190
|
-
calculateOffset(
|
|
191
|
-
const
|
|
192
|
-
if (!
|
|
193
|
-
return
|
|
194
|
-
const a = () =>
|
|
195
|
-
if (typeof
|
|
196
|
-
|
|
197
|
-
else if (typeof
|
|
198
|
-
const
|
|
199
|
-
|
|
178
|
+
return n.object;
|
|
179
|
+
}
|
|
180
|
+
calculateOffset(t, e) {
|
|
181
|
+
const s = new b.Vector3(0, 0, 0);
|
|
182
|
+
if (!t)
|
|
183
|
+
return s;
|
|
184
|
+
const a = () => e || this.getBox();
|
|
185
|
+
if (typeof t.x == "number")
|
|
186
|
+
s.setX(t.x);
|
|
187
|
+
else if (typeof t.x == "object") {
|
|
188
|
+
const n = a();
|
|
189
|
+
s.setX((n.max.x - n.min.x) * t.x.percents);
|
|
200
190
|
}
|
|
201
|
-
if (typeof
|
|
202
|
-
|
|
203
|
-
else if (typeof
|
|
204
|
-
const
|
|
205
|
-
|
|
191
|
+
if (typeof t.y == "number")
|
|
192
|
+
s.setY(t.y);
|
|
193
|
+
else if (typeof t.y == "object") {
|
|
194
|
+
const n = a();
|
|
195
|
+
s.setY((n.max.y - n.min.y) * t.y.percents);
|
|
206
196
|
}
|
|
207
|
-
if (typeof
|
|
208
|
-
|
|
209
|
-
else if (typeof
|
|
210
|
-
const
|
|
211
|
-
|
|
197
|
+
if (typeof t.z == "number")
|
|
198
|
+
s.setZ(t.z);
|
|
199
|
+
else if (typeof t.z == "object") {
|
|
200
|
+
const n = a();
|
|
201
|
+
s.setZ((n.max.z - n.min.z) * t.z.percents);
|
|
212
202
|
}
|
|
213
|
-
return
|
|
203
|
+
return s;
|
|
214
204
|
}
|
|
215
205
|
}
|
|
216
206
|
export {
|
|
217
|
-
|
|
207
|
+
_ as BaseController
|
|
218
208
|
};
|
|
@@ -27,8 +27,12 @@ export declare abstract class BaseHelper<OriginObject3D extends Object3D = Objec
|
|
|
27
27
|
hide(): void;
|
|
28
28
|
raycasterIntersectObject(raycaster: THREE.Raycaster, intersection?: THREE.Intersection[]): THREE.Intersection[];
|
|
29
29
|
initialPosition(offset?: THREE.Vector3): void;
|
|
30
|
-
setScaleByCamera(camera: THREE.PerspectiveCamera): void;
|
|
31
|
-
initQuaternion(
|
|
30
|
+
setScaleByCamera(camera: THREE.PerspectiveCamera | THREE.OrthographicCamera): void;
|
|
31
|
+
initQuaternion(config?: {
|
|
32
|
+
xAxis?: Vector3;
|
|
33
|
+
yAxis?: Vector3;
|
|
34
|
+
zAxis?: Vector3;
|
|
35
|
+
}): void;
|
|
32
36
|
applyHelperScaleMatrix4(matrix: THREE.Matrix4, origin?: Vector3): void;
|
|
33
37
|
setHelperQuaternion(quaternion: THREE.Quaternion, origin?: Vector3): void;
|
|
34
38
|
applyHelperQuaternion(quaternion: THREE.Quaternion, origin?: Vector3): void;
|
|
@@ -70,7 +74,7 @@ export declare abstract class RotateHelperAbstract<OriginObject3D extends Object
|
|
|
70
74
|
abstract showDraggingHelper(directions: Direction[]): void;
|
|
71
75
|
}
|
|
72
76
|
export declare abstract class ScaleHelperAbstract<OriginObject3D extends Object3D = Object3D> extends BaseHelper<OriginObject3D> {
|
|
73
|
-
abstract scaleMeshes: Array<
|
|
77
|
+
abstract scaleMeshes: Array<Object3D & {
|
|
74
78
|
scalePosition: ScalePosition;
|
|
75
79
|
}>;
|
|
76
80
|
}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import * as
|
|
5
|
-
import { Vector3 as
|
|
6
|
-
import { setObjectQuaternion as
|
|
7
|
-
import { IObject3D as
|
|
8
|
-
import { boundingBox as
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
var b = Object.defineProperty;
|
|
2
|
+
var y = (n, p, t) => p in n ? b(n, p, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[p] = t;
|
|
3
|
+
var u = (n, p, t) => (y(n, typeof p != "symbol" ? p + "" : p, t), t);
|
|
4
|
+
import * as o from "three";
|
|
5
|
+
import { Vector3 as m } from "three";
|
|
6
|
+
import { setObjectQuaternion as x } from "../utils/setObjectQuaternion.js";
|
|
7
|
+
import { IObject3D as w } from "../../three/IObject3D.js";
|
|
8
|
+
import { boundingBox as F, boundingSphere as Q } from "../../three/boundingBox.js";
|
|
9
|
+
import { notNil as j } from "../../isNil.js";
|
|
10
|
+
class h extends w {
|
|
11
|
+
constructor(t, e) {
|
|
12
|
+
var r, l;
|
|
12
13
|
super();
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
this.originObject3D = t, this.onRender = (
|
|
17
|
-
}, this.positionFrom = (
|
|
14
|
+
u(this, "originObject3D");
|
|
15
|
+
u(this, "onRender");
|
|
16
|
+
u(this, "positionFrom");
|
|
17
|
+
this.originObject3D = t, this.onRender = (r = e == null ? void 0 : e.onRender) != null ? r : () => {
|
|
18
|
+
}, this.positionFrom = (l = e == null ? void 0 : e.positionFrom) != null ? l : "objectPosition";
|
|
18
19
|
}
|
|
19
20
|
get helperObject() {
|
|
20
21
|
return this;
|
|
@@ -34,28 +35,48 @@ class r extends b {
|
|
|
34
35
|
hide() {
|
|
35
36
|
this.visible = !1, this.render();
|
|
36
37
|
}
|
|
37
|
-
raycasterIntersectObject(t,
|
|
38
|
-
return t.intersectObject(this, !0,
|
|
38
|
+
raycasterIntersectObject(t, e = []) {
|
|
39
|
+
return t.intersectObject(this, !0, e);
|
|
39
40
|
}
|
|
40
41
|
initialPosition(t) {
|
|
41
|
-
var
|
|
42
|
-
this.positionFrom === "objectPosition" ? this.position.copy(this.originObject3D.position) : this.positionFrom === "boundingBox" ? this.position.copy((
|
|
42
|
+
var e, r;
|
|
43
|
+
this.positionFrom === "objectPosition" ? this.position.copy(this.originObject3D.position) : this.positionFrom === "boundingBox" ? this.position.copy((e = F(this.originObject3D)) == null ? void 0 : e.getCenter(new o.Vector3()).applyMatrix4(this.originObject3D.matrixWorld)) : this.positionFrom === "boundingSphere" ? this.position.copy((r = Q(this.originObject3D)) == null ? void 0 : r.center.clone().applyMatrix4(this.originObject3D.matrixWorld)) : this.positionFrom instanceof m ? this.position.copy(this.positionFrom) : this.positionFrom instanceof Function && this.position.copy(this.positionFrom(this.originObject3D)), t && this.position.add(t);
|
|
43
44
|
}
|
|
44
45
|
setScaleByCamera(t) {
|
|
45
46
|
}
|
|
46
|
-
initQuaternion() {
|
|
47
|
-
this.quaternion.copy(this.originObject3D.quaternion)
|
|
47
|
+
initQuaternion(t) {
|
|
48
|
+
if (this.quaternion.copy(this.originObject3D.quaternion), t && (t.xAxis || t.yAxis || t.zAxis)) {
|
|
49
|
+
const { xAxis: e, yAxis: r, zAxis: l } = t;
|
|
50
|
+
let s = e == null ? void 0 : e.clone(), i = r == null ? void 0 : r.clone(), a = l == null ? void 0 : l.clone();
|
|
51
|
+
if (s && !i && !i) {
|
|
52
|
+
const c = new o.Quaternion().setFromUnitVectors(new o.Vector3(1, 0, 0), s.normalize());
|
|
53
|
+
this.applyQuaternion(c);
|
|
54
|
+
}
|
|
55
|
+
if (i && !s && !a) {
|
|
56
|
+
const c = new o.Quaternion().setFromUnitVectors(new o.Vector3(0, 1, 0), i.normalize());
|
|
57
|
+
this.applyQuaternion(c);
|
|
58
|
+
}
|
|
59
|
+
if (a && !s && !i) {
|
|
60
|
+
const c = new o.Quaternion().setFromUnitVectors(new o.Vector3(0, 0, 1), a.normalize());
|
|
61
|
+
this.applyQuaternion(c);
|
|
62
|
+
}
|
|
63
|
+
if ([s, i, a].filter(j).length >= 2) {
|
|
64
|
+
s || (s = new o.Vector3().crossVectors(i, a).normalize()), i || (i = new o.Vector3().crossVectors(s, a).normalize()), a || (a = new o.Vector3().crossVectors(s, i).normalize()), s.applyQuaternion(this.quaternion), i.applyQuaternion(this.quaternion), a.applyQuaternion(this.quaternion);
|
|
65
|
+
const c = new o.Matrix4().makeBasis(s, i, a), d = new o.Quaternion().setFromRotationMatrix(c);
|
|
66
|
+
this.quaternion.copy(d);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
48
69
|
}
|
|
49
|
-
applyHelperScaleMatrix4(t,
|
|
70
|
+
applyHelperScaleMatrix4(t, e) {
|
|
50
71
|
this.scale.applyMatrix4(t);
|
|
51
72
|
}
|
|
52
|
-
setHelperQuaternion(t,
|
|
53
|
-
|
|
73
|
+
setHelperQuaternion(t, e) {
|
|
74
|
+
this.initQuaternion(), x(this, this.quaternion.clone().premultiply(t), e);
|
|
54
75
|
}
|
|
55
|
-
applyHelperQuaternion(t,
|
|
56
|
-
if (
|
|
57
|
-
const
|
|
58
|
-
this.position.copy(
|
|
76
|
+
applyHelperQuaternion(t, e) {
|
|
77
|
+
if (e) {
|
|
78
|
+
const r = new m().subVectors(this.position, e).applyQuaternion(t).add(e);
|
|
79
|
+
this.position.copy(r);
|
|
59
80
|
}
|
|
60
81
|
this.applyQuaternion(t);
|
|
61
82
|
}
|
|
@@ -63,20 +84,20 @@ class r extends b {
|
|
|
63
84
|
this.removeFromParent();
|
|
64
85
|
}
|
|
65
86
|
}
|
|
66
|
-
class
|
|
87
|
+
class M extends h {
|
|
67
88
|
}
|
|
68
|
-
class
|
|
89
|
+
class R extends h {
|
|
69
90
|
}
|
|
70
|
-
class
|
|
91
|
+
class B extends h {
|
|
71
92
|
}
|
|
72
|
-
class
|
|
93
|
+
class v extends h {
|
|
73
94
|
}
|
|
74
|
-
class
|
|
95
|
+
class z extends h {
|
|
75
96
|
}
|
|
76
97
|
export {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
98
|
+
R as BoundingBoxHelperAbstract,
|
|
99
|
+
M as MoveHelperAbstract,
|
|
100
|
+
z as RectangleScaleHelperAbstract,
|
|
101
|
+
B as RotateHelperAbstract,
|
|
102
|
+
v as ScaleHelperAbstract
|
|
82
103
|
};
|