@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.
- package/CHANGELOG.md +12 -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 -1
- package/dist/Sculpt/Objects/Base/index.d.ts +2 -1
- 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 +12 -0
- package/dist/Sculpt/index.d.ts +11 -10
- 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 +35153 -54255
- 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 -1
- package/libs/Sculpt/Meshes/Rectangle.js +7 -10
- package/libs/Sculpt/Meshes/RectangleWithEdge.js +17 -20
- package/libs/Sculpt/Objects/Base/index.d.ts +2 -1
- package/libs/Sculpt/Objects/Base/index.js +16 -17
- 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 +34 -30
- package/libs/Sculpt/Objects/Cylinder/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Cylinder/index.js +46 -42
- 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 +12 -0
- package/libs/Sculpt/Objects/Rectangle/index.js +142 -81
- package/libs/Sculpt/index.d.ts +11 -10
- 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,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var I = Object.defineProperty;
|
|
2
|
+
var R = Object.getOwnPropertySymbols;
|
|
3
|
+
var W = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var g = (p, o, e) => o in p ? I(p, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[o] = e, n = (p, o) => {
|
|
5
5
|
for (var e in o || (o = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var e of
|
|
9
|
-
|
|
10
|
-
return
|
|
6
|
+
W.call(o, e) && g(p, e, o[e]);
|
|
7
|
+
if (R)
|
|
8
|
+
for (var e of R(o))
|
|
9
|
+
L.call(o, e) && g(p, e, o[e]);
|
|
10
|
+
return p;
|
|
11
11
|
};
|
|
12
|
-
var f = (
|
|
13
|
-
var
|
|
12
|
+
var f = (p, o, e) => (g(p, typeof o != "symbol" ? o + "" : o, e), e);
|
|
13
|
+
var w = (p, o, e) => new Promise((t, r) => {
|
|
14
14
|
var s = (h) => {
|
|
15
15
|
try {
|
|
16
16
|
b(e.next(h));
|
|
@@ -24,27 +24,28 @@ var g = (n, o, e) => new Promise((t, r) => {
|
|
|
24
24
|
r(l);
|
|
25
25
|
}
|
|
26
26
|
}, b = (h) => h.done ? t(h.value) : Promise.resolve(h.value).then(s, d);
|
|
27
|
-
b((e = e.apply(
|
|
27
|
+
b((e = e.apply(p, o)).next());
|
|
28
28
|
});
|
|
29
|
-
import { Controller as
|
|
29
|
+
import { Controller as _ } from "../base/BasePlugin.js";
|
|
30
30
|
import "three";
|
|
31
31
|
import "../shared-utils/three/core/Sphere.js";
|
|
32
|
-
import { MoveHelper as
|
|
33
|
-
import { RotateHelper as
|
|
34
|
-
import { CSS3DScaleHelper as
|
|
35
|
-
import { BoundingBoxHelper as
|
|
36
|
-
import { MoveController as
|
|
37
|
-
import { ControllerWrapper as
|
|
38
|
-
import { Object3DHelper as
|
|
39
|
-
import { RotateController as
|
|
40
|
-
import { CSS3DScaleController as
|
|
41
|
-
import { CSS3DRender as
|
|
42
|
-
import
|
|
43
|
-
import { BoundingBoxController as
|
|
44
|
-
import { ScaleHelper as
|
|
45
|
-
import { ScaleController as
|
|
46
|
-
import { waitFiveModelLoaded as
|
|
47
|
-
import { Subscribe as
|
|
32
|
+
import { MoveHelper as $ } from "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
33
|
+
import { RotateHelper as F } from "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
34
|
+
import { CSS3DScaleHelper as G } from "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
35
|
+
import { BoundingBoxHelper as U } from "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
36
|
+
import { MoveController as N } from "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
37
|
+
import { ControllerWrapper as C } from "./FiveControllerWrapper.js";
|
|
38
|
+
import { Object3DHelper as V } from "../shared-utils/Object3DHelper/index.js";
|
|
39
|
+
import { RotateController as q } from "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
40
|
+
import { CSS3DScaleController as z } from "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
41
|
+
import { CSS3DRender as A } from "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
42
|
+
import J from "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
43
|
+
import { BoundingBoxController as K } from "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
44
|
+
import { ScaleHelper as Q } from "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
45
|
+
import { ScaleController as T } from "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
46
|
+
import { waitFiveModelLoaded as X } from "../shared-utils/five/fiveModelLoad.js";
|
|
47
|
+
import { Subscribe as y } from "../shared-utils/Subscribe.js";
|
|
48
|
+
import { DomEvents as Y } from "../shared-utils/threex/domevents/index.js";
|
|
48
49
|
import "../shared-utils/tag.js";
|
|
49
50
|
import "../shared-utils/positionToVector3.js";
|
|
50
51
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
@@ -71,33 +72,9 @@ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
|
71
72
|
import "../shared-utils/three/centerPoint.js";
|
|
72
73
|
import "../shared-utils/three/getObjectVisible.js";
|
|
73
74
|
import "@realsee/five/line";
|
|
74
|
-
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
75
|
-
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
76
|
-
import "../vendor/three/build/three.module.js";
|
|
77
|
-
import "animejs";
|
|
78
75
|
import "../shared-utils/isNil.js";
|
|
76
|
+
import "animejs";
|
|
79
77
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
80
|
-
import "../Sculpt/Meshes/Polygon.js";
|
|
81
|
-
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
82
|
-
import "../shared-utils/three/earcut3D.js";
|
|
83
|
-
import "earcut";
|
|
84
|
-
import "../shared-utils/three/getNormal.js";
|
|
85
|
-
import "../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
86
|
-
import "../Sculpt/typings/style.js";
|
|
87
|
-
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
88
|
-
import "../shared-utils/three/IObject3D.js";
|
|
89
|
-
import "../Sculpt/utils/Modules/Global.js";
|
|
90
|
-
import "../Sculpt/utils/Modules/Cursor.js";
|
|
91
|
-
import "./Controller.js";
|
|
92
|
-
import "../shared-utils/five/FiveDomEvents.js";
|
|
93
|
-
import "../shared-utils/five/calculateThreeMouse.js";
|
|
94
|
-
import "../shared-utils/isTouchDevice.js";
|
|
95
|
-
import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
96
|
-
import "../Sculpt/utils/three/rayOnLine.js";
|
|
97
|
-
import "../shared-utils/three/geometryUtil.js";
|
|
98
|
-
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
99
|
-
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
100
|
-
import "../shared-utils/util.js";
|
|
101
78
|
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
102
79
|
import "../shared-utils/five/initialCSS3DRender.js";
|
|
103
80
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
@@ -105,9 +82,16 @@ import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
|
105
82
|
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
106
83
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
107
84
|
import "../Sculpt/Meshes/Line.js";
|
|
85
|
+
import "../Sculpt/typings/style.js";
|
|
108
86
|
import "../shared-utils/five/FiveLine.js";
|
|
87
|
+
import "../shared-utils/three/IObject3D.js";
|
|
109
88
|
import "../Sculpt/utils/removeAllTag.js";
|
|
89
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
90
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
91
|
+
import "../shared-utils/util.js";
|
|
92
|
+
import "../shared-utils/three/core/LineGeometry.js";
|
|
110
93
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
94
|
+
import "../shared-utils/isTouchDevice.js";
|
|
111
95
|
import "../shared-utils/five/getPosition.js";
|
|
112
96
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
113
97
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
@@ -119,31 +103,31 @@ import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
|
119
103
|
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
120
104
|
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
121
105
|
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
122
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
123
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
124
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
125
106
|
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
126
107
|
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
127
108
|
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
128
109
|
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
129
|
-
import "../shared-utils/threex/domevents/index.js";
|
|
130
110
|
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
131
111
|
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
112
|
+
import "../Sculpt/utils/three/rayOnLine.js";
|
|
132
113
|
import "../shared-utils/math/rad2Deg.js";
|
|
133
114
|
import "../shared-utils/math/deg2Rad.js";
|
|
134
115
|
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
135
116
|
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
|
|
117
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
118
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
119
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
120
|
+
const D = "Object3DHelperPlugin", E = D, Z = () => {
|
|
121
|
+
console.error(`${E} is disposed`);
|
|
122
|
+
}, ee = () => {
|
|
123
|
+
console.warn(`${E} is disabled`);
|
|
124
|
+
}, re = () => {
|
|
125
|
+
console.error(`${E} is disabled`);
|
|
142
126
|
};
|
|
143
|
-
class
|
|
127
|
+
class Gr extends _ {
|
|
144
128
|
constructor(e) {
|
|
145
129
|
super(e);
|
|
146
|
-
f(this, "name",
|
|
130
|
+
f(this, "name", D);
|
|
147
131
|
f(this, "state", {
|
|
148
132
|
visible: !0,
|
|
149
133
|
enabled: !0,
|
|
@@ -152,13 +136,13 @@ class et extends L {
|
|
|
152
136
|
f(this, "objectHelperMap", /* @__PURE__ */ new Map());
|
|
153
137
|
f(this, "css3DObjectParentMap", /* @__PURE__ */ new Map());
|
|
154
138
|
f(this, "css3DRender");
|
|
155
|
-
this.five = e, this.css3DRender = new
|
|
139
|
+
this.five = e, this.css3DRender = new A(this.five.scene), console.warn("Object3DHelper: 使用此插件,需要在初始化five时,设置five参数: { backgroundAlpha: 0, backgroundColor: 0x000000 }"), Object.assign(window, { [`__${D.toUpperCase()}_DEBUG__`]: this });
|
|
156
140
|
}
|
|
157
141
|
/**
|
|
158
142
|
* @description Show guide line
|
|
159
143
|
*/
|
|
160
144
|
show(e) {
|
|
161
|
-
return
|
|
145
|
+
return w(this, null, function* () {
|
|
162
146
|
this.setState({ visible: !0 }, e);
|
|
163
147
|
});
|
|
164
148
|
}
|
|
@@ -166,7 +150,7 @@ class et extends L {
|
|
|
166
150
|
* @description Hide guide line
|
|
167
151
|
*/
|
|
168
152
|
hide(e) {
|
|
169
|
-
return
|
|
153
|
+
return w(this, null, function* () {
|
|
170
154
|
this.setState({ visible: !1 }, e);
|
|
171
155
|
});
|
|
172
156
|
}
|
|
@@ -190,11 +174,11 @@ class et extends L {
|
|
|
190
174
|
}
|
|
191
175
|
setState(e, t) {
|
|
192
176
|
if (this.state.disposed)
|
|
193
|
-
return X();
|
|
194
|
-
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
195
177
|
return Z();
|
|
196
|
-
|
|
197
|
-
|
|
178
|
+
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
179
|
+
return re();
|
|
180
|
+
const r = n({}, this.state);
|
|
181
|
+
this.state = n(n({}, this.state), e), e.disposed !== void 0 && e.disposed !== r.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== r.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== r.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: r });
|
|
198
182
|
}
|
|
199
183
|
getObject3DHelper(e) {
|
|
200
184
|
return this.objectHelperMap.get(e);
|
|
@@ -216,28 +200,47 @@ class et extends L {
|
|
|
216
200
|
console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
|
|
217
201
|
return;
|
|
218
202
|
}
|
|
219
|
-
const r = new
|
|
203
|
+
const r = new V(), s = [], d = (M = this.five.getElement()) == null ? void 0 : M.parentElement, b = this.five.camera, l = n(n({}, {
|
|
220
204
|
moveHelper: !0,
|
|
221
205
|
rotateHelper: !0,
|
|
222
206
|
scaleHelper: !0,
|
|
223
207
|
boundingBoxHelper: !1,
|
|
224
208
|
positionFrom: "objectPosition"
|
|
225
|
-
}), t), { moveHelper:
|
|
209
|
+
}), t), { moveHelper: B, rotateHelper: j, scaleHelper: k, boundingBoxHelper: x } = l, u = new y(), v = new y(), H = new Y(this.five.camera, this.five.getElement()), S = (i) => {
|
|
226
210
|
if (i)
|
|
227
211
|
return typeof i == "boolean" ? i : i.enable;
|
|
228
212
|
};
|
|
229
|
-
if (
|
|
230
|
-
const i =
|
|
213
|
+
if (S(B)) {
|
|
214
|
+
const i = n(n({}, this.getConfig(l.moveHelper)), l), m = new $(e, n({}, i)), a = new C(
|
|
215
|
+
this.five,
|
|
216
|
+
H,
|
|
217
|
+
N,
|
|
218
|
+
e,
|
|
219
|
+
m,
|
|
220
|
+
i,
|
|
221
|
+
u,
|
|
222
|
+
v
|
|
223
|
+
);
|
|
231
224
|
r.addControllers({ moveController: a.helperController }), s.push(() => a.dispose());
|
|
232
225
|
}
|
|
233
|
-
if (
|
|
234
|
-
const i =
|
|
226
|
+
if (S(j)) {
|
|
227
|
+
const i = n(n({}, this.getConfig(l.rotateHelper)), l), m = new F(e, n({ container: d }, i)), a = new C(
|
|
228
|
+
this.five,
|
|
229
|
+
H,
|
|
230
|
+
q,
|
|
231
|
+
e,
|
|
232
|
+
m,
|
|
233
|
+
i,
|
|
234
|
+
u,
|
|
235
|
+
v
|
|
236
|
+
);
|
|
235
237
|
r.addControllers({ rotateController: a.helperController }), s.push(() => a.dispose());
|
|
236
238
|
}
|
|
237
|
-
if (
|
|
238
|
-
const i = new
|
|
239
|
+
if (S(x)) {
|
|
240
|
+
const i = new U(e), m = new C(
|
|
239
241
|
this.five,
|
|
240
|
-
|
|
242
|
+
H,
|
|
243
|
+
K,
|
|
241
244
|
e,
|
|
242
245
|
i,
|
|
243
246
|
void 0,
|
|
@@ -246,29 +249,39 @@ class et extends L {
|
|
|
246
249
|
);
|
|
247
250
|
r.addControllers({ boundingBoxController: m.helperController });
|
|
248
251
|
}
|
|
249
|
-
if (
|
|
252
|
+
if (S(k))
|
|
250
253
|
if (e.isCSS3DObjectPlus && d) {
|
|
251
|
-
const i = new
|
|
254
|
+
const i = new G(e, d, b, this.five.scene), m = new C(
|
|
252
255
|
this.five,
|
|
253
|
-
|
|
256
|
+
H,
|
|
257
|
+
z,
|
|
254
258
|
e,
|
|
255
259
|
i,
|
|
256
260
|
void 0,
|
|
257
261
|
u,
|
|
258
262
|
v
|
|
259
263
|
);
|
|
260
|
-
r.addControllers({ scaleController: m.helperController }), s.push(() => m.dispose()),
|
|
264
|
+
r.addControllers({ scaleController: m.helperController }), s.push(() => m.dispose()), X(this.five).then(() => {
|
|
261
265
|
var a, O;
|
|
262
266
|
if (e.isCSS3DObjectPlus) {
|
|
263
267
|
const c = e;
|
|
264
268
|
if (!c || c.mode !== "front")
|
|
265
269
|
return;
|
|
266
|
-
const
|
|
267
|
-
|
|
270
|
+
const P = (a = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? a : J(this.five);
|
|
271
|
+
P && (this.css3DObjectParentMap.set(c, c.parent), c.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(P), (O = this.css3DRender.getBehindCSS3DObjectGroup()) == null || O.add(c), this.css3DRender.render(this.five.camera));
|
|
268
272
|
}
|
|
269
273
|
});
|
|
270
274
|
} else {
|
|
271
|
-
const i =
|
|
275
|
+
const i = n(n({}, this.getConfig(l.scaleHelper)), l), m = new Q(e, i), a = new C(
|
|
276
|
+
this.five,
|
|
277
|
+
H,
|
|
278
|
+
T,
|
|
279
|
+
e,
|
|
280
|
+
m,
|
|
281
|
+
i,
|
|
282
|
+
u,
|
|
283
|
+
v
|
|
284
|
+
);
|
|
272
285
|
r.addControllers({ scaleController: a.helperController }), s.push(() => a.dispose());
|
|
273
286
|
}
|
|
274
287
|
return this.objectHelperMap.set(e, { helper: r, disposers: s }), r.controllers;
|
|
@@ -304,7 +317,7 @@ class et extends L {
|
|
|
304
317
|
actionIfStateIsEnabled(e, t) {
|
|
305
318
|
if (this.state.enabled)
|
|
306
319
|
return e();
|
|
307
|
-
t != null && t.warnLog &&
|
|
320
|
+
t != null && t.warnLog && ee();
|
|
308
321
|
}
|
|
309
322
|
getConfig(e) {
|
|
310
323
|
if (e && typeof e != "boolean" && e.enable)
|
|
@@ -312,6 +325,6 @@ class et extends L {
|
|
|
312
325
|
}
|
|
313
326
|
}
|
|
314
327
|
export {
|
|
315
|
-
|
|
316
|
-
|
|
328
|
+
Gr as Object3DHelperController,
|
|
329
|
+
E as PLUGIN
|
|
317
330
|
};
|
|
@@ -5,12 +5,14 @@ import type { Five } from '@realsee/five';
|
|
|
5
5
|
import type { BaseController } from '../shared-utils/Object3DHelper/Base/BaseController';
|
|
6
6
|
import type * as THREE from 'three';
|
|
7
7
|
import type { Subscribe } from '../shared-utils/Subscribe';
|
|
8
|
+
import type DomEvents from '../shared-utils/threex/domevents';
|
|
8
9
|
declare class ControllerWrapper<HelperControllerInterface extends new (...params: ConstructorParameters<typeof BaseController<any>>) => any> {
|
|
9
10
|
helperController?: InstanceType<HelperControllerInterface>;
|
|
10
11
|
private five;
|
|
11
|
-
|
|
12
|
+
private lastCameraState;
|
|
13
|
+
constructor(five: Five, donEvents: DomEvents, HelperController: HelperControllerInterface, object: THREE.Object3D, helperObject3D: InstanceType<HelperControllerInterface>['helperObject3D'], HelperControllerConfig?: ConstructorParameters<HelperControllerInterface>[1], hooks?: Subscribe<any>, internalHooks?: Subscribe<any>);
|
|
12
14
|
dispose(): void;
|
|
13
|
-
private
|
|
15
|
+
private onCameraUpdate;
|
|
14
16
|
private onFiveWantsTapGesture;
|
|
15
17
|
private onFiveWantsGesture;
|
|
16
18
|
private onFiveIntersectionOnModelUpdate;
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
class
|
|
1
|
+
var C = Object.defineProperty;
|
|
2
|
+
var v = (n, e, t) => e in n ? C(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var r = (n, e, t) => (v(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
class G {
|
|
5
5
|
// eslint-disable-next-line max-params
|
|
6
|
-
constructor(e, t,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
constructor(e, t, i, s, o, a, u, c) {
|
|
7
|
+
r(this, "helperController");
|
|
8
|
+
r(this, "five");
|
|
9
|
+
r(this, "lastCameraState", "");
|
|
10
|
+
r(this, "onCameraUpdate", () => {
|
|
11
|
+
var o, a;
|
|
12
|
+
if (!this.helperController)
|
|
13
|
+
return;
|
|
14
|
+
const { offset: e, fov: t, distance: i } = this.five.state, s = e.toArray().join(",") + "_" + t + "_" + i;
|
|
15
|
+
s !== this.lastCameraState && (this.lastCameraState = s, (a = (o = this.helperController).onWantsUpdateCameraDistance) == null || a.call(o));
|
|
12
16
|
});
|
|
13
|
-
|
|
17
|
+
r(this, "onFiveWantsTapGesture", (e) => {
|
|
14
18
|
if (!this.helperController)
|
|
15
19
|
return;
|
|
16
20
|
if (this.helperController.preventTapDefaultEvent)
|
|
@@ -18,42 +22,43 @@ class F {
|
|
|
18
22
|
const t = this.helperController.onWantsTapGesture(e);
|
|
19
23
|
return this.five.needsRender = !0, t;
|
|
20
24
|
});
|
|
21
|
-
|
|
25
|
+
r(this, "onFiveWantsGesture", (...e) => {
|
|
22
26
|
if (!this.helperController)
|
|
23
27
|
return;
|
|
24
28
|
const t = this.helperController.onWantsGesture(...e);
|
|
25
29
|
return this.five.needsRender = !0, t;
|
|
26
30
|
});
|
|
27
|
-
|
|
31
|
+
r(this, "onFiveIntersectionOnModelUpdate", (...e) => {
|
|
28
32
|
this.helperController && this.helperController.onIntersectionOnModelUpdate(...e);
|
|
29
33
|
});
|
|
30
|
-
const { camera:
|
|
31
|
-
if (this.five = e, !
|
|
34
|
+
const { camera: l, model: h, scene: p } = e, d = e.getElement();
|
|
35
|
+
if (this.five = e, !l || !h || !d || !p)
|
|
32
36
|
return;
|
|
33
|
-
const
|
|
37
|
+
const f = () => {
|
|
34
38
|
e.needsRender = !0;
|
|
35
39
|
};
|
|
36
|
-
this.helperController = new
|
|
40
|
+
this.helperController = new i(
|
|
37
41
|
{
|
|
38
|
-
camera:
|
|
39
|
-
model:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
camera: l,
|
|
43
|
+
model: h,
|
|
44
|
+
domEvents: t,
|
|
45
|
+
originObject3D: s,
|
|
46
|
+
helperObject3D: o,
|
|
47
|
+
container: d,
|
|
48
|
+
scene: p,
|
|
49
|
+
onRender: f,
|
|
50
|
+
sharedHooks: u,
|
|
46
51
|
sharedInternalHooks: c
|
|
47
52
|
},
|
|
48
|
-
|
|
49
|
-
), e.on("wantsTapGesture", this.onFiveWantsTapGesture), e.on("wantsGesture", this.onFiveWantsGesture), e.on("intersectionOnModelUpdate", this.onFiveIntersectionOnModelUpdate), e.on("
|
|
53
|
+
a
|
|
54
|
+
), e.on("wantsTapGesture", this.onFiveWantsTapGesture), e.on("wantsGesture", this.onFiveWantsGesture), e.on("intersectionOnModelUpdate", this.onFiveIntersectionOnModelUpdate), e.on("cameraUpdate", this.onCameraUpdate);
|
|
50
55
|
}
|
|
51
56
|
dispose() {
|
|
52
57
|
var e;
|
|
53
|
-
this.five.off("wantsTapGesture", this.onFiveWantsTapGesture), this.five.off("wantsGesture", this.onFiveWantsGesture), this.five.off("intersectionOnModelUpdate", this.onFiveIntersectionOnModelUpdate), this.five.off("
|
|
58
|
+
this.five.off("wantsTapGesture", this.onFiveWantsTapGesture), this.five.off("wantsGesture", this.onFiveWantsGesture), this.five.off("intersectionOnModelUpdate", this.onFiveIntersectionOnModelUpdate), this.five.off("cameraUpdate", this.onCameraUpdate), (e = this.helperController) == null || e.dispose();
|
|
54
59
|
}
|
|
55
60
|
}
|
|
56
61
|
export {
|
|
57
|
-
|
|
58
|
-
|
|
62
|
+
G as ControllerWrapper,
|
|
63
|
+
G as FiveControllerWrapper
|
|
59
64
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Object3DHelperController as o } from "./Controller.js";
|
|
2
|
-
import { PLUGIN as
|
|
2
|
+
import { PLUGIN as Qr } from "./Controller.js";
|
|
3
3
|
import "../base/BasePlugin.js";
|
|
4
4
|
import "../shared-utils/Subscribe.js";
|
|
5
5
|
import "../shared-utils/tag.js";
|
|
@@ -29,33 +29,10 @@ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
|
29
29
|
import "../shared-utils/three/centerPoint.js";
|
|
30
30
|
import "../shared-utils/three/getObjectVisible.js";
|
|
31
31
|
import "@realsee/five/line";
|
|
32
|
-
import "../
|
|
33
|
-
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
34
|
-
import "../vendor/three/build/three.module.js";
|
|
32
|
+
import "../shared-utils/isNil.js";
|
|
35
33
|
import "../shared-utils/three/core/Sphere.js";
|
|
36
34
|
import "animejs";
|
|
37
|
-
import "../shared-utils/isNil.js";
|
|
38
35
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
39
|
-
import "../Sculpt/Meshes/Polygon.js";
|
|
40
|
-
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
41
|
-
import "../shared-utils/three/earcut3D.js";
|
|
42
|
-
import "earcut";
|
|
43
|
-
import "../shared-utils/three/getNormal.js";
|
|
44
|
-
import "../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
45
|
-
import "../Sculpt/typings/style.js";
|
|
46
|
-
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
47
|
-
import "../shared-utils/three/IObject3D.js";
|
|
48
|
-
import "../Sculpt/utils/Modules/Global.js";
|
|
49
|
-
import "../Sculpt/utils/Modules/Cursor.js";
|
|
50
|
-
import "../shared-utils/five/FiveDomEvents.js";
|
|
51
|
-
import "../shared-utils/five/calculateThreeMouse.js";
|
|
52
|
-
import "../shared-utils/isTouchDevice.js";
|
|
53
|
-
import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
54
|
-
import "../Sculpt/utils/three/rayOnLine.js";
|
|
55
|
-
import "../shared-utils/three/geometryUtil.js";
|
|
56
|
-
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
57
|
-
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
58
|
-
import "../shared-utils/util.js";
|
|
59
36
|
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
60
37
|
import "../shared-utils/five/initialCSS3DRender.js";
|
|
61
38
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
@@ -63,9 +40,16 @@ import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
|
63
40
|
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
64
41
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
65
42
|
import "../Sculpt/Meshes/Line.js";
|
|
43
|
+
import "../Sculpt/typings/style.js";
|
|
66
44
|
import "../shared-utils/five/FiveLine.js";
|
|
45
|
+
import "../shared-utils/three/IObject3D.js";
|
|
67
46
|
import "../Sculpt/utils/removeAllTag.js";
|
|
47
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
48
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
49
|
+
import "../shared-utils/util.js";
|
|
50
|
+
import "../shared-utils/three/core/LineGeometry.js";
|
|
68
51
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
52
|
+
import "../shared-utils/isTouchDevice.js";
|
|
69
53
|
import "../shared-utils/five/getPosition.js";
|
|
70
54
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
71
55
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
@@ -90,9 +74,9 @@ import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
|
90
74
|
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
91
75
|
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
92
76
|
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
93
|
-
import "../shared-utils/threex/domevents/index.js";
|
|
94
77
|
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
95
78
|
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
79
|
+
import "../Sculpt/utils/three/rayOnLine.js";
|
|
96
80
|
import "./FiveControllerWrapper.js";
|
|
97
81
|
import "../shared-utils/Object3DHelper/index.js";
|
|
98
82
|
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
@@ -106,10 +90,11 @@ import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
|
106
90
|
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
107
91
|
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
108
92
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
109
|
-
|
|
93
|
+
import "../shared-utils/threex/domevents/index.js";
|
|
94
|
+
const Jr = (r) => new o(r);
|
|
110
95
|
export {
|
|
111
96
|
o as Object3DHelperController,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
97
|
+
Jr as Object3DHelperPlugin,
|
|
98
|
+
Qr as PLUGIN,
|
|
99
|
+
Jr as default
|
|
115
100
|
};
|