@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,42 +1,54 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import * as
|
|
5
|
-
import { ScaleHelperAbstract as
|
|
6
|
-
import { calculateScaleByCamera as
|
|
7
|
-
class
|
|
8
|
-
constructor(
|
|
9
|
-
super(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
var p = Object.defineProperty;
|
|
2
|
+
var h = (i, t, e) => t in i ? p(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
|
+
var c = (i, t, e) => (h(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
+
import * as n from "three";
|
|
5
|
+
import { ScaleHelperAbstract as d } from "../Base/BaseHelper.js";
|
|
6
|
+
import { calculateScaleByCamera as u } from "../utils/calculateScaleByCamera.js";
|
|
7
|
+
class S extends d {
|
|
8
|
+
constructor(e, s) {
|
|
9
|
+
super(e, s);
|
|
10
|
+
c(this, "name", "ScaleHelper");
|
|
11
|
+
c(this, "scaleMeshes", []);
|
|
12
|
+
c(this, "positions", []);
|
|
13
|
+
s && (this.positions = s.positions);
|
|
13
14
|
}
|
|
14
|
-
|
|
15
|
-
this.
|
|
16
|
-
const e = typeof this.positions == "function" ? this.positions() : this.positions;
|
|
17
|
-
e && (this.scaleMeshes = e.map((n) => {
|
|
18
|
-
const a = m();
|
|
19
|
-
return a.position.copy(n.handlePosition), a.scalePosition = n, a;
|
|
20
|
-
}), this.add(...this.scaleMeshes));
|
|
15
|
+
initQuaternion() {
|
|
16
|
+
this.quaternion.copy(this.originObject3D.quaternion);
|
|
21
17
|
}
|
|
22
|
-
|
|
23
|
-
this.
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
initialPosition(e) {
|
|
19
|
+
this.position.copy(this.originObject3D.position);
|
|
20
|
+
const s = typeof this.positions == "function" ? this.positions() : this.positions;
|
|
21
|
+
s && (this.scaleMeshes = s.map((a, r) => {
|
|
22
|
+
var l;
|
|
23
|
+
const o = (l = this.scaleMeshes[r]) != null ? l : m();
|
|
24
|
+
return o.position.copy(a.handlePosition), o.scalePosition = a, this.addIfNotExists(o), o;
|
|
25
|
+
}));
|
|
26
|
+
}
|
|
27
|
+
setScaleByCamera(e) {
|
|
28
|
+
this.scaleMeshes.forEach((s) => {
|
|
29
|
+
s.scale.setScalar(
|
|
30
|
+
u(e, s.scalePosition.handlePosition.clone().applyMatrix4(this.matrixWorld))
|
|
26
31
|
);
|
|
27
32
|
});
|
|
28
33
|
}
|
|
29
34
|
}
|
|
30
35
|
function m() {
|
|
31
|
-
const
|
|
36
|
+
const i = new n.Group();
|
|
37
|
+
i.name = "ScaleHelperCube";
|
|
38
|
+
const t = 0.05, e = new n.BoxGeometry(t, t, t), s = new n.MeshBasicMaterial({
|
|
39
|
+
color: 16776960,
|
|
40
|
+
transparent: !0,
|
|
41
|
+
side: n.DoubleSide
|
|
42
|
+
}), a = new n.MeshBasicMaterial({
|
|
32
43
|
color: 16776960,
|
|
44
|
+
opacity: 0.4,
|
|
33
45
|
depthTest: !1,
|
|
34
46
|
depthWrite: !1,
|
|
35
47
|
transparent: !0,
|
|
36
|
-
side:
|
|
37
|
-
}),
|
|
38
|
-
return
|
|
48
|
+
side: n.DoubleSide
|
|
49
|
+
}), r = new n.Mesh(e, s), o = new n.Mesh(e, a);
|
|
50
|
+
return r.name = "ScaleHelperCube-front", o.name = "ScaleHelperCube-behind", r.renderOrder = 11, o.renderOrder = 10, i.add(r, o), i;
|
|
39
51
|
}
|
|
40
52
|
export {
|
|
41
|
-
|
|
53
|
+
S as ScaleHelper
|
|
42
54
|
};
|
|
@@ -27,9 +27,9 @@ export interface ObjectHelperControllers {
|
|
|
27
27
|
boundingBoxController?: BoundingBoxController;
|
|
28
28
|
}
|
|
29
29
|
export type ScaleCallback = (params: {
|
|
30
|
-
ratio: number;
|
|
31
30
|
intersectPoint: THREE.Vector3;
|
|
32
31
|
scalePosition: ScalePosition;
|
|
32
|
+
offset: THREE.Vector3;
|
|
33
33
|
}) => any;
|
|
34
34
|
export type ScalePosition = {
|
|
35
35
|
id?: string;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import type * as THREE from 'three';
|
|
2
|
-
export default function calculateScaleByCamera(camera:
|
|
2
|
+
export default function calculateScaleByCamera(camera: any, position: THREE.Vector3, limit?: {
|
|
3
|
+
min?: number;
|
|
4
|
+
max?: number;
|
|
5
|
+
}): number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
function
|
|
2
|
-
const
|
|
3
|
-
return
|
|
1
|
+
function S(e, o, a) {
|
|
2
|
+
const t = e.position.distanceTo(o), r = e.fov, b = e.distance || 3, D = t / 3, f = r / 90, u = b / 3, s = D * f * u, c = (a == null ? void 0 : a.min) || 0.6, n = a == null ? void 0 : a.max;
|
|
3
|
+
return c && s < c ? c : n && s > n ? n : s;
|
|
4
4
|
}
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
S as calculateScaleByCamera
|
|
7
7
|
};
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var M = (
|
|
1
|
+
var H = Object.defineProperty;
|
|
2
|
+
var L = Object.getOwnPropertySymbols;
|
|
3
|
+
var x = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var M = (l, e, t) => e in l ? H(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t, w = (l, e) => {
|
|
5
5
|
for (var t in e || (e = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
9
|
-
|
|
10
|
-
return
|
|
6
|
+
x.call(e, t) && M(l, t, e[t]);
|
|
7
|
+
if (L)
|
|
8
|
+
for (var t of L(e))
|
|
9
|
+
S.call(e, t) && M(l, t, e[t]);
|
|
10
|
+
return l;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
import { getObjectVisible as
|
|
14
|
-
import { calculateThreeMouse as
|
|
12
|
+
var o = (l, e, t) => (M(l, typeof e != "symbol" ? e + "" : e, t), t);
|
|
13
|
+
import { getObjectVisible as I } from "../three/getObjectVisible.js";
|
|
14
|
+
import { calculateThreeMouse as $ } from "./calculateThreeMouse.js";
|
|
15
15
|
import { getFiveModel as W } from "./getFiveModel.js";
|
|
16
|
-
import { THREERaycaster as
|
|
17
|
-
|
|
18
|
-
class G {
|
|
16
|
+
import { THREERaycaster as D } from "../three/core/Raycaster.js";
|
|
17
|
+
class N {
|
|
19
18
|
// 事件由five触发时,用来补充 originEvent 属性
|
|
20
19
|
constructor(e, t) {
|
|
21
|
-
|
|
20
|
+
o(this, "five");
|
|
22
21
|
/**
|
|
23
22
|
* @description: 拖动中
|
|
24
23
|
*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
o(this, "dragging", !1);
|
|
25
|
+
o(this, "boundObject", {});
|
|
26
|
+
o(this, "config");
|
|
27
|
+
o(this, "lastMouseDownEvent");
|
|
29
28
|
// 事件由five触发时,用来补充 originEvent 属性
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
o(this, "lastTouchEvent");
|
|
30
|
+
o(this, "handleWantsGesture", (e, t) => {
|
|
31
|
+
var s;
|
|
32
32
|
if (t.length !== 1)
|
|
33
33
|
return;
|
|
34
34
|
const n = t[0];
|
|
35
35
|
if (n.raycaster) {
|
|
36
|
-
const i = new
|
|
36
|
+
const i = new D();
|
|
37
37
|
i.ray = n.raycaster.ray, i.near = n.raycaster.near, i.far = n.raycaster.far, i.camera = n.raycaster.camera, i.layers = n.raycaster.layers, i.params = n.raycaster.params, n.raycaster = i;
|
|
38
38
|
}
|
|
39
39
|
if (n) {
|
|
40
40
|
if (e === "mouseMove" && this.onDomEvent("hover", n), e === "tap") {
|
|
41
41
|
let i;
|
|
42
|
-
|
|
43
|
-
const
|
|
44
|
-
if (
|
|
42
|
+
i || (i = (s = this.lastMouseDownEvent) != null ? s : this.lastTouchEvent), i || (i = new MouseEvent("click", { clientX: n.x, clientY: n.y }));
|
|
43
|
+
const d = this.onDomEvent("click", n, i), c = this.onDomEvent("wantDblclick", n, i, this.boundObject.dblclick);
|
|
44
|
+
if (d === !1 || c === !1)
|
|
45
45
|
return !1;
|
|
46
46
|
}
|
|
47
47
|
if (this.dragging)
|
|
48
48
|
return !1;
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
|
-
|
|
52
|
-
const
|
|
53
|
-
this.onDomEvent(e,
|
|
51
|
+
o(this, "handleDomEvent", (e, t, n) => {
|
|
52
|
+
const s = { x: t.clientX, y: t.clientY };
|
|
53
|
+
this.onDomEvent(e, s, t, n);
|
|
54
54
|
});
|
|
55
|
-
|
|
55
|
+
o(this, "handleMouseEvent", (e) => {
|
|
56
56
|
this.handleDomEvent(e.type, e);
|
|
57
57
|
});
|
|
58
|
-
|
|
58
|
+
o(this, "handleMousedown", (e) => {
|
|
59
59
|
this.lastMouseDownEvent = e, this.handleDomEvent("mousedown", e), this.handleDomEvent("dragstart", e, this.haveDragEventObject);
|
|
60
60
|
});
|
|
61
|
-
|
|
61
|
+
o(this, "handleTouchStart", (e) => {
|
|
62
62
|
this.lastTouchEvent = e;
|
|
63
63
|
});
|
|
64
|
-
|
|
64
|
+
o(this, "handleMouseup", (e) => {
|
|
65
65
|
var t;
|
|
66
66
|
this.dragging = !1, (t = this.haveDragEventObject) == null || t.forEach((n) => {
|
|
67
67
|
n._dragging && (n._dragging = !1, this.notify({
|
|
@@ -72,7 +72,7 @@ class G {
|
|
|
72
72
|
}));
|
|
73
73
|
}), this.handleDomEvent("mouseup", e);
|
|
74
74
|
});
|
|
75
|
-
|
|
75
|
+
o(this, "handleMousemove", (e) => {
|
|
76
76
|
var t;
|
|
77
77
|
this.dragging && ((t = this.boundObject.drag) == null || t.forEach((n) => {
|
|
78
78
|
n._dragging && this.notify({
|
|
@@ -84,86 +84,86 @@ class G {
|
|
|
84
84
|
}));
|
|
85
85
|
});
|
|
86
86
|
// eslint-disable-next-line complexity
|
|
87
|
-
|
|
88
|
-
var m, g, p,
|
|
89
|
-
if (!t || !
|
|
87
|
+
o(this, "onDomEvent", (e, t, n, s = this.boundObject[e]) => {
|
|
88
|
+
var m, g, p, a, y;
|
|
89
|
+
if (!t || !s || (s == null ? void 0 : s.length) === 0)
|
|
90
90
|
return;
|
|
91
|
-
const
|
|
92
|
-
((m = this.config) == null ? void 0 : m.fiveModels) !== null && ((g = this.config) != null && g.fiveModels ?
|
|
93
|
-
const d =
|
|
94
|
-
|
|
95
|
-
const
|
|
91
|
+
const i = [];
|
|
92
|
+
((m = this.config) == null ? void 0 : m.fiveModels) !== null && ((g = this.config) != null && g.fiveModels ? i.push(...this.config.fiveModels) : i.push(this.model));
|
|
93
|
+
const d = i.filter((v) => v.loaded), c = (p = t.raycaster) != null ? p : this.getRaycaster(t);
|
|
94
|
+
c.params.Points.threshold = 0.02;
|
|
95
|
+
const r = c.intersectObjects(s, !0), h = [];
|
|
96
96
|
d.forEach((v) => {
|
|
97
|
-
const _ = v.intersectRaycaster(
|
|
97
|
+
const _ = v.intersectRaycaster(c);
|
|
98
98
|
h.push(..._);
|
|
99
99
|
});
|
|
100
100
|
const f = 0.01;
|
|
101
|
-
if (h.length > 0 &&
|
|
101
|
+
if (h.length > 0 && r.length > 0 && h[0].distance + f < r[0].distance)
|
|
102
102
|
return;
|
|
103
|
-
const
|
|
103
|
+
const u = (a = r == null ? void 0 : r[0]) == null ? void 0 : a.object;
|
|
104
104
|
if (e === "wantDblclick")
|
|
105
105
|
return !1;
|
|
106
|
-
if ((!
|
|
106
|
+
if ((!u || !this.objectIsBound(u)) && e === "hover")
|
|
107
107
|
for (const v of (y = this.boundObject.hover) != null ? y : [])
|
|
108
108
|
v._hovered && this.notify({ eventName: "unHover", object: v });
|
|
109
|
-
if (
|
|
109
|
+
if (u && u && this.notify({ eventName: e, object: u, originEvent: n, raycaster: c, intersects: r }))
|
|
110
110
|
return !1;
|
|
111
111
|
});
|
|
112
|
-
|
|
112
|
+
o(this, "objectIsBound", (e) => {
|
|
113
113
|
let t = e._domEvent, n = e.parent;
|
|
114
114
|
for (; typeof t == "undefined" && n; )
|
|
115
115
|
t = n._domEvent, n = n.parent;
|
|
116
116
|
return !!t;
|
|
117
117
|
});
|
|
118
|
-
|
|
118
|
+
o(this, "notify", (e) => {
|
|
119
119
|
var m, g, p;
|
|
120
|
-
const { eventName: t, object: n, originEvent:
|
|
121
|
-
let
|
|
120
|
+
const { eventName: t, object: n, originEvent: s, raycaster: i, intersects: d } = e;
|
|
121
|
+
let c = !1, r = [];
|
|
122
122
|
const h = [];
|
|
123
123
|
let f = n;
|
|
124
124
|
for (h.push(f); f.parent; )
|
|
125
125
|
f = f.parent, h.push(f);
|
|
126
|
-
const
|
|
127
|
-
if (!((m = this.config) != null && m.noEmitWhenNotInScene &&
|
|
128
|
-
for (const
|
|
129
|
-
if (
|
|
126
|
+
const u = h.at(-1);
|
|
127
|
+
if (!((m = this.config) != null && m.noEmitWhenNotInScene && u.type !== "Scene")) {
|
|
128
|
+
for (const a of h) {
|
|
129
|
+
if (c)
|
|
130
130
|
break;
|
|
131
|
-
|
|
132
|
-
const y =
|
|
131
|
+
a.draggable && (t === "dragstart" && (a._dragging = !0, this.dragging = !0), t === "dragend" && (a._dragging = !1, this.dragging = !1));
|
|
132
|
+
const y = a._domEvent;
|
|
133
133
|
if (!y)
|
|
134
134
|
continue;
|
|
135
135
|
const v = y[`${t}Handler`];
|
|
136
136
|
if (v)
|
|
137
137
|
for (const [_, E] of v) {
|
|
138
|
-
if (E != null && E.noEmitWhenNotInScene &&
|
|
138
|
+
if (E != null && E.noEmitWhenNotInScene && u.type !== "Scene" || ((g = this.config) != null && g.noEmitWhenHide || E != null && E.noEmitWhenHide) && !I(a))
|
|
139
139
|
continue;
|
|
140
140
|
if (t === "hover") {
|
|
141
|
-
if (
|
|
141
|
+
if (a._hovered)
|
|
142
142
|
continue;
|
|
143
|
-
|
|
143
|
+
a._hovered = !0;
|
|
144
144
|
for (const b of (p = this.boundObject.hover) != null ? p : [])
|
|
145
|
-
b !==
|
|
145
|
+
b !== a && b._hovered && this.notify({ eventName: "unHover", object: b });
|
|
146
146
|
}
|
|
147
147
|
if (t === "unHover") {
|
|
148
|
-
if (!
|
|
148
|
+
if (!a._hovered)
|
|
149
149
|
continue;
|
|
150
|
-
|
|
150
|
+
a._hovered = !1;
|
|
151
151
|
}
|
|
152
152
|
const O = _({
|
|
153
153
|
type: t,
|
|
154
|
-
target:
|
|
155
|
-
origDomEvent:
|
|
156
|
-
raycaster:
|
|
154
|
+
target: a,
|
|
155
|
+
origDomEvent: s,
|
|
156
|
+
raycaster: i,
|
|
157
157
|
intersects: d,
|
|
158
158
|
stopPropagation: () => {
|
|
159
|
-
|
|
159
|
+
c = !0;
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
|
-
|
|
162
|
+
r.push(O != null ? O : !0);
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
if (t === "click" || t === "wantDblclick")
|
|
166
|
-
return
|
|
166
|
+
return r.some((a) => a === !0);
|
|
167
167
|
}
|
|
168
168
|
});
|
|
169
169
|
this.five = e, this.config = t, e.on("wantsGesture", this.handleWantsGesture), document.addEventListener("mousedown", this.handleMousedown), document.addEventListener("touchstart", this.handleTouchStart), document.addEventListener("dblclick", this.handleMouseEvent), document.addEventListener("mouseup", this.handleMouseup), document.addEventListener("mousemove", this.handleMousemove);
|
|
@@ -179,10 +179,10 @@ class G {
|
|
|
179
179
|
* @note: 注意:目前需要触发物体的 added 事件和 removed 事件才会生效
|
|
180
180
|
* @todo: added 和 removed 还是不太智能
|
|
181
181
|
*/
|
|
182
|
-
addAutoBindEventListener(e, t, n,
|
|
183
|
-
const
|
|
184
|
-
return e.addEventListener("added",
|
|
185
|
-
e.removeEventListener("added",
|
|
182
|
+
addAutoBindEventListener(e, t, n, s) {
|
|
183
|
+
const i = () => this.addEventListener(e, t, n, s), d = () => this.removeEventListener(e, t, n, s);
|
|
184
|
+
return e.addEventListener("added", i), e.addEventListener("removed", d), e.addEventListener("dispose", d), () => {
|
|
185
|
+
e.removeEventListener("added", i), e.removeEventListener("removed", d), e.removeEventListener("dispose", d);
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
188
|
/**
|
|
@@ -192,25 +192,25 @@ class G {
|
|
|
192
192
|
* @param params.callback: 返回 false 可以不阻止 five 的 tap 事件; default: true
|
|
193
193
|
* @return {void}
|
|
194
194
|
*/
|
|
195
|
-
addEventListener(e, t, n,
|
|
196
|
-
e._domEvent || (e._domEvent = {}), e._domEvent[`${t}Handler`] || (e._domEvent[`${t}Handler`] = []), this.boundObject[t] || (this.boundObject[t] = []), this.boundObject[t].includes(e) || this.boundObject[t].push(e), e._domEvent[`${t}Handler`].push([n,
|
|
195
|
+
addEventListener(e, t, n, s) {
|
|
196
|
+
e._domEvent || (e._domEvent = {}), e._domEvent[`${t}Handler`] || (e._domEvent[`${t}Handler`] = []), this.boundObject[t] || (this.boundObject[t] = []), this.boundObject[t].includes(e) || this.boundObject[t].push(e), e._domEvent[`${t}Handler`].push([n, w({ noEmitWhenHide: !1, noEmitWhenNotInScene: !1 }, s)]);
|
|
197
197
|
}
|
|
198
|
-
removeEventListener(e, t, n, ...
|
|
199
|
-
var d,
|
|
200
|
-
if (!e._domEvent || (t === void 0 && (Object.keys(this.boundObject).forEach((
|
|
201
|
-
var f,
|
|
202
|
-
const h = (f = this.boundObject[
|
|
203
|
-
h !== -1 && ((
|
|
198
|
+
removeEventListener(e, t, n, ...s) {
|
|
199
|
+
var d, c;
|
|
200
|
+
if (!e._domEvent || (t === void 0 && (Object.keys(this.boundObject).forEach((r) => {
|
|
201
|
+
var f, u;
|
|
202
|
+
const h = (f = this.boundObject[r]) == null ? void 0 : f.findIndex((m) => m === e);
|
|
203
|
+
h !== -1 && ((u = this.boundObject[r]) == null || u.splice(h, 1));
|
|
204
204
|
}), e._domEvent = {}), !e._domEvent[`${t}Handler`]))
|
|
205
205
|
return;
|
|
206
206
|
if (n === void 0) {
|
|
207
207
|
delete e._domEvent[`${t}Handler`];
|
|
208
208
|
return;
|
|
209
209
|
}
|
|
210
|
-
const
|
|
211
|
-
if (
|
|
212
|
-
const
|
|
213
|
-
|
|
210
|
+
const i = e._domEvent[`${t}Handler`].findIndex((r) => r[0] === n);
|
|
211
|
+
if (i !== -1 && (e._domEvent[`${t}Handler`].splice(i, 1), e._domEvent[`${t}Handler`].length === 0 && delete e._domEvent[`${t}Handler`], e._domEvent && Object.keys(e._domEvent).length === 0 && delete e._domEvent, !e._domEvent)) {
|
|
212
|
+
const r = (d = this.boundObject[t]) == null ? void 0 : d.findIndex((h) => h === e);
|
|
213
|
+
r !== -1 && ((c = this.boundObject[t]) == null || c.splice(r, 1));
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
clear() {
|
|
@@ -229,10 +229,10 @@ class G {
|
|
|
229
229
|
const t = this.five.getElement();
|
|
230
230
|
if (!t)
|
|
231
231
|
return;
|
|
232
|
-
const n =
|
|
233
|
-
return
|
|
232
|
+
const n = $(e, t), s = new D();
|
|
233
|
+
return s.setFromCamera(n, this.five.camera), s;
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
export {
|
|
237
|
-
|
|
237
|
+
N as FiveDomEvents
|
|
238
238
|
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LineMaterial as Five_LineMaterial, THREE_Line2 as Five_THREE_Line2, Line as Five_Line } from '@realsee/five/line';
|
|
2
|
+
import * as THREE from 'three';
|
|
3
|
+
import type { Merge } from 'type-fest';
|
|
4
|
+
import type { LineGeometry } from '../three/core/LineGeometry';
|
|
5
|
+
export type Color = THREE.Color | string | number;
|
|
2
6
|
export declare class FiveLine extends Five_Line {
|
|
3
7
|
constructor(...args: ConstructorParameters<typeof Five_Line>);
|
|
4
8
|
toJSON(): {
|
|
@@ -7,27 +11,27 @@ export declare class FiveLine extends Five_Line {
|
|
|
7
11
|
};
|
|
8
12
|
}
|
|
9
13
|
export declare class THREE_Line2 extends Five_THREE_Line2 {
|
|
10
|
-
|
|
14
|
+
material: LineMaterial;
|
|
15
|
+
constructor(geometry: LineGeometry, material: LineMaterial);
|
|
11
16
|
toJSON(): {
|
|
12
17
|
type: string;
|
|
13
18
|
geometryAttributes: {
|
|
14
|
-
[name: string]:
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
export declare class LineGeometry extends Five_LineGeometry {
|
|
19
|
-
constructor(...args: ConstructorParameters<typeof Five_LineGeometry>);
|
|
20
|
-
toJSON(): {
|
|
21
|
-
type: string;
|
|
22
|
-
attributes: {
|
|
23
|
-
[name: string]: import("three").BufferAttribute | import("three").InterleavedBufferAttribute;
|
|
19
|
+
[name: string]: THREE.BufferAttribute | THREE.InterleavedBufferAttribute;
|
|
24
20
|
};
|
|
25
21
|
};
|
|
26
22
|
}
|
|
27
23
|
export declare class LineMaterial extends Five_LineMaterial {
|
|
28
|
-
|
|
24
|
+
get three_color(): Color;
|
|
25
|
+
set three_color(value: Color);
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated Use `setDashed` to set
|
|
28
|
+
*/
|
|
29
|
+
dashed: boolean;
|
|
30
|
+
private _three_color;
|
|
31
|
+
constructor(params?: Merge<ConstructorParameters<typeof Five_LineMaterial>[0], THREE.MeshBasicMaterialParameters>);
|
|
32
|
+
setDashed(dashed: boolean): void;
|
|
29
33
|
toJSON(): {
|
|
30
34
|
type: string;
|
|
31
|
-
color: number |
|
|
35
|
+
color: number | THREE.Vector3;
|
|
32
36
|
};
|
|
33
37
|
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
var h = Object.defineProperty;
|
|
2
|
+
var c = (i, t, e) => t in i ? h(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
|
+
var n = (i, t, e) => (c(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
+
import { Line as l, THREE_Line2 as d, LineMaterial as _ } from "@realsee/five/line";
|
|
5
|
+
import { notNil as u } from "../isNil.js";
|
|
6
|
+
class f extends l {
|
|
7
|
+
constructor(...t) {
|
|
8
|
+
super(...t);
|
|
5
9
|
}
|
|
6
10
|
toJSON() {
|
|
7
11
|
return {
|
|
@@ -10,9 +14,9 @@ class o extends r {
|
|
|
10
14
|
};
|
|
11
15
|
}
|
|
12
16
|
}
|
|
13
|
-
class
|
|
14
|
-
constructor(
|
|
15
|
-
super(
|
|
17
|
+
class H extends d {
|
|
18
|
+
constructor(t, e) {
|
|
19
|
+
super(t, e);
|
|
16
20
|
}
|
|
17
21
|
toJSON() {
|
|
18
22
|
return {
|
|
@@ -21,9 +25,23 @@ class a extends i {
|
|
|
21
25
|
};
|
|
22
26
|
}
|
|
23
27
|
}
|
|
24
|
-
class
|
|
25
|
-
constructor(
|
|
26
|
-
|
|
28
|
+
class N extends _ {
|
|
29
|
+
constructor(e) {
|
|
30
|
+
var r, s;
|
|
31
|
+
super(e);
|
|
32
|
+
n(this, "_three_color");
|
|
33
|
+
u(e == null ? void 0 : e.color) && (this.three_color = (r = e == null ? void 0 : e.color) != null ? r : 16777215), Object.keys(e).forEach((o) => {
|
|
34
|
+
["color", "dashed", "dashScale", "dashSize", "gapSize", "resolution"].includes(o) || o in this && (this[o] = e[o]);
|
|
35
|
+
}), this.setDashed((s = e == null ? void 0 : e.dashed) != null ? s : !1);
|
|
36
|
+
}
|
|
37
|
+
get three_color() {
|
|
38
|
+
return this._three_color;
|
|
39
|
+
}
|
|
40
|
+
set three_color(e) {
|
|
41
|
+
this._three_color = e, this.color = e;
|
|
42
|
+
}
|
|
43
|
+
setDashed(e) {
|
|
44
|
+
this.dashed = e, e ? this.defines.USE_DASH = "" : delete this.defines.USE_DASH, this.needsUpdate = !0;
|
|
27
45
|
}
|
|
28
46
|
toJSON() {
|
|
29
47
|
return {
|
|
@@ -33,7 +51,7 @@ class c extends s {
|
|
|
33
51
|
}
|
|
34
52
|
}
|
|
35
53
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
54
|
+
f as FiveLine,
|
|
55
|
+
N as LineMaterial,
|
|
56
|
+
H as THREE_Line2
|
|
39
57
|
};
|
|
@@ -4,17 +4,12 @@ import "../three/PointSelector/index.js";
|
|
|
4
4
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
5
5
|
import "../tag.js";
|
|
6
6
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
7
|
-
import "../../Sculpt/Meshes/Polygon.js";
|
|
8
|
-
import "../../Sculpt/utils/Modules/Global.js";
|
|
9
7
|
import "@realsee/five/line";
|
|
10
|
-
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
11
|
-
import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
12
|
-
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
13
8
|
import "../three/core/Sphere.js";
|
|
14
9
|
import "animejs";
|
|
15
|
-
function
|
|
10
|
+
function u(e) {
|
|
16
11
|
return e.model ? e.work ? e.model.loaded ? e.model.name !== e.work.model.file ? { result: !1, msg: "five.model.name 与 five.work.model.file 不一致" } : { result: !0, msg: "" } : { result: !1, msg: "five.model 未加载完成" } : { result: !1, msg: "five 数据未加载" } : { result: !1, msg: "five.model 不存在" };
|
|
17
12
|
}
|
|
18
13
|
export {
|
|
19
|
-
|
|
14
|
+
u as checkFiveModelLoaded
|
|
20
15
|
};
|