@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,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var s = (o, t, e) => (
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var h = (o, t, e) => t in o ? c(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
|
|
3
|
+
var s = (o, t, e) => (h(o, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
4
|
import * as r from "three";
|
|
5
|
-
import { IObject3D as
|
|
5
|
+
import { IObject3D as l } from "../../shared-utils/three/IObject3D.js";
|
|
6
6
|
import { generatePolygonGeometry as p } from "../../shared-utils/three/generatePolygonGeometry.js";
|
|
7
7
|
import "../../shared-utils/three/earcut3D.js";
|
|
8
8
|
import "earcut";
|
|
9
9
|
import "../../shared-utils/three/getNormal.js";
|
|
10
10
|
import "../utils/isIntersecting.js";
|
|
11
11
|
const d = new r.BufferGeometry();
|
|
12
|
-
class k extends
|
|
12
|
+
class k extends l {
|
|
13
13
|
constructor(e) {
|
|
14
14
|
super();
|
|
15
15
|
s(this, "isPolygonMesh", !0);
|
|
@@ -42,6 +42,6 @@ class k extends h {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
k as PolygonMesh,
|
|
46
|
+
d as blankGeometry
|
|
47
47
|
};
|
|
@@ -8,13 +8,14 @@ import { Subscribe as P } from "@realsee/five";
|
|
|
8
8
|
import "../utils/line.js";
|
|
9
9
|
import "../../shared-utils/five/FiveLine.js";
|
|
10
10
|
import "@realsee/five/line";
|
|
11
|
+
import "../../shared-utils/isNil.js";
|
|
11
12
|
import "../utils/constants.js";
|
|
12
13
|
import "three";
|
|
13
14
|
import "../utils/dom/distanceItem.js";
|
|
14
15
|
import "../utils/dom/base.js";
|
|
15
16
|
import "../utils/isNDCPointInScreen.js";
|
|
16
17
|
import "../../shared-utils/three/centerPoint.js";
|
|
17
|
-
class
|
|
18
|
+
class B {
|
|
18
19
|
constructor(i) {
|
|
19
20
|
t(this, "id", v());
|
|
20
21
|
t(this, "lines", []);
|
|
@@ -127,5 +128,5 @@ class R {
|
|
|
127
128
|
}
|
|
128
129
|
}
|
|
129
130
|
export {
|
|
130
|
-
|
|
131
|
+
B as Polyline
|
|
131
132
|
};
|
|
@@ -4,14 +4,9 @@ import { Magnifier as t } from "../../shared-utils/three/Magnifier.js";
|
|
|
4
4
|
import "../../shared-utils/three/PointSelector/index.js";
|
|
5
5
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
6
6
|
import "@realsee/five/line";
|
|
7
|
-
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
8
7
|
import "../../shared-utils/three/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";
|
|
15
10
|
import "../../shared-utils/positionToVector3.js";
|
|
16
11
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
17
12
|
import "../../shared-utils/five/getFiveModel.js";
|
|
@@ -49,62 +44,12 @@ import "../../Sculpt/utils/removeAllTag.js";
|
|
|
49
44
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
50
45
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
51
46
|
import "../../shared-utils/util.js";
|
|
47
|
+
import "../../shared-utils/three/core/LineGeometry.js";
|
|
52
48
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
53
49
|
import "../../shared-utils/isTouchDevice.js";
|
|
54
50
|
import "../../shared-utils/five/getPosition.js";
|
|
55
51
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
56
52
|
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
57
|
-
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
58
|
-
import "../../vendor/three/build/three.module.js";
|
|
59
|
-
import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
60
|
-
import "../../shared-utils/three/earcut3D.js";
|
|
61
|
-
import "earcut";
|
|
62
|
-
import "../../shared-utils/three/getNormal.js";
|
|
63
|
-
import "../utils/isIntersecting.js";
|
|
64
|
-
import "../../Sculpt/utils/three/ColoredMesh.js";
|
|
65
|
-
import "../../shared-utils/three/geometryUtil.js";
|
|
66
|
-
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
67
|
-
import "../../Object3DHelperPlugin/Controller.js";
|
|
68
|
-
import "../../base/BasePlugin.js";
|
|
69
|
-
import "../../shared-utils/url/absoluteUrl.js";
|
|
70
|
-
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
71
|
-
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
72
|
-
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
73
|
-
import "../../shared-utils/three/boundingBox.js";
|
|
74
|
-
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
75
|
-
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
76
|
-
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
77
|
-
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
78
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
79
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
80
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
81
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
82
|
-
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
83
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
84
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
85
|
-
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
86
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
87
|
-
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
88
|
-
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
89
|
-
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
90
|
-
import "../../shared-utils/threex/domevents/index.js";
|
|
91
|
-
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
92
|
-
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
93
|
-
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
94
|
-
import "../../shared-utils/Object3DHelper/index.js";
|
|
95
|
-
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
96
|
-
import "../../shared-utils/math/rad2Deg.js";
|
|
97
|
-
import "../../shared-utils/math/deg2Rad.js";
|
|
98
|
-
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
99
|
-
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
100
|
-
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
101
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
102
|
-
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
103
|
-
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
104
|
-
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
105
|
-
import "../../shared-utils/five/fiveModelLoad.js";
|
|
106
|
-
import "../../shared-utils/five/FiveDomEvents.js";
|
|
107
|
-
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
108
53
|
export {
|
|
109
54
|
t as default
|
|
110
55
|
};
|
|
@@ -18,6 +18,7 @@ import "../../../shared-utils/uuid.js";
|
|
|
18
18
|
import "../../utils/line.js";
|
|
19
19
|
import "../../../shared-utils/five/FiveLine.js";
|
|
20
20
|
import "@realsee/five/line";
|
|
21
|
+
import "../../../shared-utils/isNil.js";
|
|
21
22
|
import "../../utils/constants.js";
|
|
22
23
|
import "three";
|
|
23
24
|
import "@realsee/five";
|
|
@@ -64,73 +65,23 @@ import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
|
64
65
|
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
65
66
|
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
66
67
|
import "../../../shared-utils/three/getObjectVisible.js";
|
|
67
|
-
import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
68
|
-
import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
69
|
-
import "../../../vendor/three/build/three.module.js";
|
|
70
68
|
import "../../../shared-utils/three/core/Sphere.js";
|
|
71
69
|
import "animejs";
|
|
72
|
-
import "../../../shared-utils/isNil.js";
|
|
73
70
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
74
|
-
import "../../../
|
|
75
|
-
import "../../../
|
|
76
|
-
import "../../../Sculpt/utils/three/ColoredMesh.js";
|
|
77
|
-
import "../../../Sculpt/utils/Modules/Global.js";
|
|
78
|
-
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
79
|
-
import "../../../Object3DHelperPlugin/Controller.js";
|
|
80
|
-
import "../../../base/BasePlugin.js";
|
|
81
|
-
import "../../../shared-utils/url/absoluteUrl.js";
|
|
82
|
-
import "../../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
83
|
-
import "../../../Sculpt/utils/three/rayOnLine.js";
|
|
84
|
-
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
85
|
-
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
86
|
-
import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
87
|
-
import "../../../shared-utils/three/boundingBox.js";
|
|
88
|
-
import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
89
|
-
import "../../../shared-utils/Object3DHelper/utils/direction.js";
|
|
90
|
-
import "../../../shared-utils/Object3DHelper/Constants/color.js";
|
|
91
|
-
import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
92
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
71
|
+
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
72
|
+
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
93
73
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
94
74
|
import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
95
75
|
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
96
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
97
|
-
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
98
|
-
import "../../../shared-utils/util.js";
|
|
99
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
100
|
-
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
101
|
-
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
102
76
|
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
103
77
|
import "../../../Sculpt/Meshes/Line.js";
|
|
78
|
+
import "../../../Sculpt/typings/style.js";
|
|
104
79
|
import "../../../Sculpt/utils/removeAllTag.js";
|
|
105
80
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
106
81
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
82
|
+
import "../../../shared-utils/util.js";
|
|
83
|
+
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
107
84
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
108
|
-
import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
109
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
110
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
111
|
-
import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
112
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
113
|
-
import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
114
|
-
import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
115
|
-
import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
116
|
-
import "../../../shared-utils/threex/domevents/index.js";
|
|
117
|
-
import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
118
|
-
import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
119
|
-
import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
120
|
-
import "../../../shared-utils/Object3DHelper/index.js";
|
|
121
|
-
import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
122
|
-
import "../../../shared-utils/math/rad2Deg.js";
|
|
123
|
-
import "../../../shared-utils/math/deg2Rad.js";
|
|
124
|
-
import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
125
|
-
import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
126
|
-
import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
127
|
-
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
128
|
-
import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
129
|
-
import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
130
|
-
import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
131
|
-
import "../../../shared-utils/five/fiveModelLoad.js";
|
|
132
|
-
import "../../../shared-utils/five/FiveDomEvents.js";
|
|
133
|
-
import "../../../shared-utils/five/calculateThreeMouse.js";
|
|
134
85
|
import "../../../shared-utils/isTouchDevice.js";
|
|
135
86
|
import "../../../shared-utils/five/getPosition.js";
|
|
136
87
|
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
@@ -145,7 +96,7 @@ import "../../Components/Common/Switcher1.js";
|
|
|
145
96
|
import "../../Components/Common/CircleButton.js";
|
|
146
97
|
import "../../../vendor/svelte/transition/index.js";
|
|
147
98
|
import "../../../vendor/svelte/easing/index.js";
|
|
148
|
-
class
|
|
99
|
+
class yo {
|
|
149
100
|
constructor(o, t) {
|
|
150
101
|
i(this, "revoke");
|
|
151
102
|
i(this, "container");
|
|
@@ -162,18 +113,18 @@ class ci {
|
|
|
162
113
|
this.mode === "pc" && (Object.assign(t.style, E), Object.assign(o == null ? void 0 : o.style, x));
|
|
163
114
|
const r = () => {
|
|
164
115
|
t.style.opacity = "1";
|
|
165
|
-
},
|
|
116
|
+
}, s = () => {
|
|
166
117
|
t.style.opacity = "0.85";
|
|
167
|
-
},
|
|
118
|
+
}, n = () => {
|
|
168
119
|
this.measureController.disable();
|
|
169
120
|
};
|
|
170
|
-
return t.addEventListener("click",
|
|
171
|
-
t.removeEventListener("click",
|
|
121
|
+
return t.addEventListener("click", n), t.addEventListener("mouseenter", r), t.addEventListener("mouseleave", s), () => {
|
|
122
|
+
t.removeEventListener("click", n), t.removeEventListener("mouseenter", r), t.removeEventListener("mouseleave", s);
|
|
172
123
|
};
|
|
173
124
|
});
|
|
174
|
-
var
|
|
175
|
-
this._params = t, this.measureController = o, this.mode = (
|
|
176
|
-
const r = (
|
|
125
|
+
var s, n;
|
|
126
|
+
this._params = t, this.measureController = o, this.mode = (s = t.mode) != null ? s : "pc", this.container = document.createElement("div"), this.container.innerHTML = this.mode === "mobile" ? u : d, this.container.classList.add("fpm__ui-controller", this.mode), this.container.style.background = "rgba(0, 0, 0, 0.15)";
|
|
127
|
+
const r = (n = t.useNewUI) != null ? n : !1;
|
|
177
128
|
if (r && (t.pointSelectorMode === "cursor" ? this.svelteDom = new _({
|
|
178
129
|
target: t.container,
|
|
179
130
|
props: { measureController: this.measureController, i18n: t.i18n, showExit: t.showExit }
|
|
@@ -182,8 +133,8 @@ class ci {
|
|
|
182
133
|
props: { measureController: this.measureController, i18n: t.i18n, showExit: t.showExit }
|
|
183
134
|
}))), !r) {
|
|
184
135
|
t.container.appendChild(this.container);
|
|
185
|
-
const l = this.container.querySelectorAll(".fpm__text"),
|
|
186
|
-
Object.assign(
|
|
136
|
+
const l = this.container.querySelectorAll(".fpm__text"), m = this.container.querySelector(".fpm_ui-bg"), p = this.container.querySelector(".fpm_operating-space");
|
|
137
|
+
Object.assign(m == null ? void 0 : m.style, y), Object.assign(p == null ? void 0 : p.style, f), Object.assign(this.container.style, v), l.forEach((c) => Object.assign(c.style, C));
|
|
187
138
|
}
|
|
188
139
|
}
|
|
189
140
|
dispose() {
|
|
@@ -199,5 +150,5 @@ class ci {
|
|
|
199
150
|
}
|
|
200
151
|
}
|
|
201
152
|
export {
|
|
202
|
-
|
|
153
|
+
yo as UIController
|
|
203
154
|
};
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
import t from "./Controller/index.js";
|
|
2
2
|
import "../shared-utils/tag.js";
|
|
3
3
|
import "three";
|
|
4
|
-
import { Magnifier as
|
|
4
|
+
import { Magnifier as fr } from "../shared-utils/three/Magnifier.js";
|
|
5
5
|
import "../shared-utils/three/PointSelector/index.js";
|
|
6
6
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
7
7
|
import "@realsee/five/line";
|
|
8
|
-
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
9
8
|
import "../shared-utils/three/core/Sphere.js";
|
|
10
9
|
import "animejs";
|
|
11
10
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
12
|
-
import "
|
|
13
|
-
import "
|
|
14
|
-
import "
|
|
15
|
-
import "
|
|
16
|
-
import { Model as nt } from "./Model/index.js";
|
|
17
|
-
import { default as ut } from "./Model/point.js";
|
|
18
|
-
import { default as Pt } from "./Model/line.js";
|
|
19
|
-
import { Polyline as ft } from "./Model/polyline.js";
|
|
11
|
+
import { Model as gr } from "./Model/index.js";
|
|
12
|
+
import { default as dr } from "./Model/point.js";
|
|
13
|
+
import { default as yr } from "./Model/line.js";
|
|
14
|
+
import { Polyline as Cr } from "./Model/polyline.js";
|
|
20
15
|
import "./Controller/EditController.js";
|
|
21
16
|
import "../shared-utils/throttle.js";
|
|
22
17
|
import "./Controller/BaseController.js";
|
|
@@ -24,6 +19,7 @@ import "./utils/ironbox.js";
|
|
|
24
19
|
import "../shared-utils/uuid.js";
|
|
25
20
|
import "./utils/line.js";
|
|
26
21
|
import "../shared-utils/five/FiveLine.js";
|
|
22
|
+
import "../shared-utils/isNil.js";
|
|
27
23
|
import "./utils/constants.js";
|
|
28
24
|
import "@realsee/five";
|
|
29
25
|
import "./utils/dom/distanceItem.js";
|
|
@@ -41,7 +37,6 @@ import "./utils/isIntersecting.js";
|
|
|
41
37
|
import "./utils/dom/areaDom.js";
|
|
42
38
|
import "../shared-utils/three/geometryUtil.js";
|
|
43
39
|
import "hammerjs";
|
|
44
|
-
import "../shared-utils/isNil.js";
|
|
45
40
|
import "../shared-utils/positionToVector3.js";
|
|
46
41
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
47
42
|
import "../shared-utils/five/getFiveModel.js";
|
|
@@ -73,56 +68,12 @@ import "../Sculpt/utils/removeAllTag.js";
|
|
|
73
68
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
74
69
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
75
70
|
import "../shared-utils/util.js";
|
|
71
|
+
import "../shared-utils/three/core/LineGeometry.js";
|
|
76
72
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
77
73
|
import "../shared-utils/isTouchDevice.js";
|
|
78
74
|
import "../shared-utils/five/getPosition.js";
|
|
79
75
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
80
76
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
81
|
-
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
82
|
-
import "../vendor/three/build/three.module.js";
|
|
83
|
-
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
84
|
-
import "../Sculpt/utils/Modules/Cursor.js";
|
|
85
|
-
import "../Object3DHelperPlugin/Controller.js";
|
|
86
|
-
import "../base/BasePlugin.js";
|
|
87
|
-
import "../shared-utils/url/absoluteUrl.js";
|
|
88
|
-
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
89
|
-
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
90
|
-
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
91
|
-
import "../shared-utils/three/boundingBox.js";
|
|
92
|
-
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
93
|
-
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
94
|
-
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
95
|
-
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
96
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
97
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
98
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
99
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
100
|
-
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
101
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
102
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
103
|
-
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
104
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
105
|
-
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
106
|
-
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
107
|
-
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
108
|
-
import "../shared-utils/threex/domevents/index.js";
|
|
109
|
-
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
110
|
-
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
111
|
-
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
112
|
-
import "../shared-utils/Object3DHelper/index.js";
|
|
113
|
-
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
114
|
-
import "../shared-utils/math/rad2Deg.js";
|
|
115
|
-
import "../shared-utils/math/deg2Rad.js";
|
|
116
|
-
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
117
|
-
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
118
|
-
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
119
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
120
|
-
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
121
|
-
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
122
|
-
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
123
|
-
import "../shared-utils/five/fiveModelLoad.js";
|
|
124
|
-
import "../shared-utils/five/FiveDomEvents.js";
|
|
125
|
-
import "../shared-utils/five/calculateThreeMouse.js";
|
|
126
77
|
import "./Modules/DeleteDom/index.js";
|
|
127
78
|
import "./Modules/DeleteDom/_Assets/delete.svg.js";
|
|
128
79
|
import "./Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
@@ -138,6 +89,7 @@ import "./Modules/rangePiece/index.js";
|
|
|
138
89
|
import "../shared-utils/animationFrame/index.js";
|
|
139
90
|
import "../shared-utils/noop.js";
|
|
140
91
|
import "./utils/mouseGroup.js";
|
|
92
|
+
import "../shared-utils/five/calculateThreeMouse.js";
|
|
141
93
|
import "../shared-utils/filter.js";
|
|
142
94
|
import "../shared-utils/tap.js";
|
|
143
95
|
import "./Modules/UIController/index.js";
|
|
@@ -162,15 +114,17 @@ import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
|
162
114
|
import "./Components/Tip.js";
|
|
163
115
|
import "./Controller/ShortcutKeyController.js";
|
|
164
116
|
import "../shared-utils/safeObj.js";
|
|
165
|
-
|
|
117
|
+
import "../base/BasePlugin.js";
|
|
118
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
119
|
+
const lr = function(o, r) {
|
|
166
120
|
return new t(o, r);
|
|
167
121
|
};
|
|
168
122
|
export {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
123
|
+
fr as Magnifier,
|
|
124
|
+
lr as PanoMeasurePlugin,
|
|
125
|
+
yr as PanoMeasurePluginLine,
|
|
126
|
+
gr as PanoMeasurePluginModel,
|
|
127
|
+
dr as PanoMeasurePluginPoint,
|
|
128
|
+
Cr as PanoMeasurePluginPolyline,
|
|
129
|
+
lr as default
|
|
176
130
|
};
|
|
@@ -42,8 +42,7 @@ export interface EditParameter {
|
|
|
42
42
|
*/
|
|
43
43
|
allowMeasureType?: Array<MeasureType>;
|
|
44
44
|
/**
|
|
45
|
-
* @description: 选点的两种模式, 'fixed' 为固定选点为屏幕中心点,拖动five画布来选点,'
|
|
46
|
-
* @default: 'fixed'
|
|
45
|
+
* @description: 选点的两种模式, 'fixed' 为固定选点为屏幕中心点,拖动five画布来选点,'cursor' 为跟随鼠标移动
|
|
47
46
|
*/
|
|
48
47
|
pointSelectorMode?: PointSelectorMode;
|
|
49
48
|
autoEndConfig?: autoEndConfig;
|
|
@@ -19,15 +19,10 @@ import "hammerjs";
|
|
|
19
19
|
import "../../../shared-utils/three/PointSelector/index.js";
|
|
20
20
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
21
21
|
import "@realsee/five/line";
|
|
22
|
-
import "../../../
|
|
22
|
+
import { isNil as P } from "../../../shared-utils/isNil.js";
|
|
23
23
|
import "../../../shared-utils/three/core/Sphere.js";
|
|
24
24
|
import "animejs";
|
|
25
|
-
import { isNil as P } from "../../../shared-utils/isNil.js";
|
|
26
25
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
27
|
-
import "../../../Sculpt/Meshes/Polygon.js";
|
|
28
|
-
import "../../../Sculpt/utils/Modules/Global.js";
|
|
29
|
-
import "../../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
30
|
-
import "../../../Sculpt/utils/three/rayOnLine.js";
|
|
31
26
|
import "../isNDCPointInScreen.js";
|
|
32
27
|
import "../../../shared-utils/three/centerPoint.js";
|
|
33
28
|
import "../../../shared-utils/positionToVector3.js";
|
|
@@ -65,62 +60,13 @@ import "../../../Sculpt/utils/removeAllTag.js";
|
|
|
65
60
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
66
61
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
67
62
|
import "../../../shared-utils/util.js";
|
|
63
|
+
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
68
64
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
69
65
|
import "../../../shared-utils/isTouchDevice.js";
|
|
70
66
|
import "../../../shared-utils/five/getPosition.js";
|
|
71
67
|
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
72
68
|
import "../../../shared-utils/three/PointSelector/utils/contents.js";
|
|
73
|
-
|
|
74
|
-
import "../../../vendor/three/build/three.module.js";
|
|
75
|
-
import "../../../shared-utils/three/generatePolygonGeometry.js";
|
|
76
|
-
import "../../../shared-utils/three/earcut3D.js";
|
|
77
|
-
import "earcut";
|
|
78
|
-
import "../../../shared-utils/three/getNormal.js";
|
|
79
|
-
import "../isIntersecting.js";
|
|
80
|
-
import "../../../Sculpt/utils/three/ColoredMesh.js";
|
|
81
|
-
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
82
|
-
import "../../../Object3DHelperPlugin/Controller.js";
|
|
83
|
-
import "../../../base/BasePlugin.js";
|
|
84
|
-
import "../../../shared-utils/url/absoluteUrl.js";
|
|
85
|
-
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
86
|
-
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
87
|
-
import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
88
|
-
import "../../../shared-utils/three/boundingBox.js";
|
|
89
|
-
import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
90
|
-
import "../../../shared-utils/Object3DHelper/utils/direction.js";
|
|
91
|
-
import "../../../shared-utils/Object3DHelper/Constants/color.js";
|
|
92
|
-
import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
93
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
94
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
95
|
-
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
96
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
97
|
-
import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
98
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
99
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
100
|
-
import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
101
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
102
|
-
import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
103
|
-
import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
104
|
-
import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
105
|
-
import "../../../shared-utils/threex/domevents/index.js";
|
|
106
|
-
import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
107
|
-
import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
108
|
-
import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
109
|
-
import "../../../shared-utils/Object3DHelper/index.js";
|
|
110
|
-
import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
111
|
-
import "../../../shared-utils/math/rad2Deg.js";
|
|
112
|
-
import "../../../shared-utils/math/deg2Rad.js";
|
|
113
|
-
import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
114
|
-
import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
115
|
-
import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
116
|
-
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
117
|
-
import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
118
|
-
import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
119
|
-
import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
120
|
-
import "../../../shared-utils/five/fiveModelLoad.js";
|
|
121
|
-
import "../../../shared-utils/five/FiveDomEvents.js";
|
|
122
|
-
import "../../../shared-utils/five/calculateThreeMouse.js";
|
|
123
|
-
class go extends y {
|
|
69
|
+
class bt extends y {
|
|
124
70
|
constructor(t) {
|
|
125
71
|
t.containerStyle = s(n({}, t.containerStyle), {
|
|
126
72
|
zIndex: "1"
|
|
@@ -143,7 +89,7 @@ class go extends y {
|
|
|
143
89
|
return;
|
|
144
90
|
}
|
|
145
91
|
const { area: a, center: x } = m;
|
|
146
|
-
this.ndcPosition = x, this.updateDomPosition(t), (d = (c = this.area.model) == null ? void 0 : c.config) != null && d.getAreaText ? this.contentDom.innerText = this.area.model.config.getAreaText(a) : this.updateAreaText(a, { fix: 2 });
|
|
92
|
+
this.ndcPosition = x.clone(), this.updateDomPosition(t), (d = (c = this.area.model) == null ? void 0 : c.config) != null && d.getAreaText ? this.contentDom.innerText = this.area.model.config.getAreaText(a) : this.updateAreaText(a, { fix: 2 });
|
|
147
93
|
}
|
|
148
94
|
updateAreaText(t, r) {
|
|
149
95
|
const { unit: p = "m²", fix: m } = r != null ? r : {};
|
|
@@ -151,5 +97,5 @@ class go extends y {
|
|
|
151
97
|
}
|
|
152
98
|
}
|
|
153
99
|
export {
|
|
154
|
-
|
|
100
|
+
bt as AreaItem
|
|
155
101
|
};
|
|
@@ -2,6 +2,7 @@ import { FiveLine as u } from "../../shared-utils/five/FiveLine.js";
|
|
|
2
2
|
import { lightLineOpts as C, normalLineOpts as R } from "./constants.js";
|
|
3
3
|
import { Color as T } from "three";
|
|
4
4
|
import "@realsee/five/line";
|
|
5
|
+
import "../../shared-utils/isNil.js";
|
|
5
6
|
function v(i, t, e) {
|
|
6
7
|
var d, c, m, f, h;
|
|
7
8
|
const a = (d = e == null ? void 0 : e.lineWidth) != null ? d : 2, o = (c = e == null ? void 0 : e.lineColor) != null ? c : new T(16777215), r = (m = e == null ? void 0 : e.pointSize) != null ? m : 5, L = (f = e == null ? void 0 : e.lineRenderOrder) != null ? f : 10, O = (h = e == null ? void 0 : e.lineRenderOrder) != null ? h : 20, n = new u(i, t);
|
|
@@ -9,11 +10,11 @@ function v(i, t, e) {
|
|
|
9
10
|
const l = n.points.material;
|
|
10
11
|
return l.depthTest = !1, l.size = r, e != null && e.pointColor && l.color.set(e.pointColor).convertSRGBToLinear(), e != null && e.pointTexture && (l.map = e.pointTexture), n;
|
|
11
12
|
}
|
|
12
|
-
function
|
|
13
|
+
function g(i, t) {
|
|
13
14
|
const [e, a] = i.points, o = t === "light" ? C : R, r = v(e.position, a.position, o);
|
|
14
15
|
return r.name = "normalLine_" + i.id, r;
|
|
15
16
|
}
|
|
16
17
|
export {
|
|
17
18
|
v as createLine,
|
|
18
|
-
|
|
19
|
+
g as createLineMesh
|
|
19
20
|
};
|