@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,30 +1,30 @@
|
|
|
1
1
|
var j = Object.defineProperty;
|
|
2
2
|
var v = Object.getOwnPropertySymbols;
|
|
3
3
|
var P = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var A = (
|
|
5
|
-
for (var
|
|
6
|
-
P.call(
|
|
4
|
+
var A = (c, o, e) => o in c ? j(c, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[o] = e, u = (c, o) => {
|
|
5
|
+
for (var e in o || (o = {}))
|
|
6
|
+
P.call(o, e) && A(c, e, o[e]);
|
|
7
7
|
if (v)
|
|
8
|
-
for (var
|
|
9
|
-
_.call(
|
|
10
|
-
return
|
|
8
|
+
for (var e of v(o))
|
|
9
|
+
_.call(o, e) && A(c, e, o[e]);
|
|
10
|
+
return c;
|
|
11
11
|
};
|
|
12
|
-
var d = (
|
|
13
|
-
var
|
|
14
|
-
var s = (
|
|
12
|
+
var d = (c, o, e) => (A(c, typeof o != "symbol" ? o + "" : o, e), e);
|
|
13
|
+
var m = (c, o, e) => new Promise((t, i) => {
|
|
14
|
+
var s = (a) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
i(
|
|
16
|
+
n(e.next(a));
|
|
17
|
+
} catch (p) {
|
|
18
|
+
i(p);
|
|
19
19
|
}
|
|
20
|
-
}, r = (
|
|
20
|
+
}, r = (a) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
i(
|
|
22
|
+
n(e.throw(a));
|
|
23
|
+
} catch (p) {
|
|
24
|
+
i(p);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, n = (a) => a.done ? t(a.value) : Promise.resolve(a.value).then(s, r);
|
|
27
|
+
n((e = e.apply(c, o)).next());
|
|
28
28
|
});
|
|
29
29
|
import * as F from "three";
|
|
30
30
|
import { Controller as S } from "../base/BasePluginWithData.js";
|
|
@@ -33,16 +33,11 @@ import "hammerjs";
|
|
|
33
33
|
import "../shared-utils/three/PointSelector/index.js";
|
|
34
34
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
35
35
|
import "@realsee/five/line";
|
|
36
|
-
import "../
|
|
36
|
+
import { notNil as T } from "../shared-utils/isNil.js";
|
|
37
37
|
import "../shared-utils/three/core/Sphere.js";
|
|
38
38
|
import "animejs";
|
|
39
|
-
import { notNil as T } from "../shared-utils/isNil.js";
|
|
40
39
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
41
40
|
import { equal as O } from "../shared-utils/equal.js";
|
|
42
|
-
import "../Sculpt/Meshes/Polygon.js";
|
|
43
|
-
import "../Sculpt/utils/Modules/Global.js";
|
|
44
|
-
import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
45
|
-
import "../Sculpt/utils/three/rayOnLine.js";
|
|
46
41
|
import { loadTexture as x } from "../shared-utils/three/loadTexture.js";
|
|
47
42
|
import { format as y, getPipesFromLibrary as C } from "./utils/formatData.js";
|
|
48
43
|
import { ObjectFlowPipe as D } from "./utils/Objects/FlowPipe.js";
|
|
@@ -84,60 +79,12 @@ import "../Sculpt/utils/removeAllTag.js";
|
|
|
84
79
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
85
80
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
86
81
|
import "../shared-utils/util.js";
|
|
82
|
+
import "../shared-utils/three/core/LineGeometry.js";
|
|
87
83
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
88
84
|
import "../shared-utils/isTouchDevice.js";
|
|
89
85
|
import "../shared-utils/five/getPosition.js";
|
|
90
86
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
91
87
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
92
|
-
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
93
|
-
import "../vendor/three/build/three.module.js";
|
|
94
|
-
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
95
|
-
import "../shared-utils/three/earcut3D.js";
|
|
96
|
-
import "earcut";
|
|
97
|
-
import "../shared-utils/three/getNormal.js";
|
|
98
|
-
import "../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
99
|
-
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
100
|
-
import "../shared-utils/three/geometryUtil.js";
|
|
101
|
-
import "../Sculpt/utils/Modules/Cursor.js";
|
|
102
|
-
import "../Object3DHelperPlugin/Controller.js";
|
|
103
|
-
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
104
|
-
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
105
|
-
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
106
|
-
import "../shared-utils/three/boundingBox.js";
|
|
107
|
-
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
108
|
-
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
109
|
-
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
110
|
-
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
111
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
112
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
113
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
114
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
115
|
-
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
116
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
117
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
118
|
-
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
119
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
120
|
-
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
121
|
-
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
122
|
-
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
123
|
-
import "../shared-utils/threex/domevents/index.js";
|
|
124
|
-
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
125
|
-
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
126
|
-
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
127
|
-
import "../shared-utils/Object3DHelper/index.js";
|
|
128
|
-
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
129
|
-
import "../shared-utils/math/rad2Deg.js";
|
|
130
|
-
import "../shared-utils/math/deg2Rad.js";
|
|
131
|
-
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
132
|
-
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
133
|
-
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
134
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
135
|
-
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
136
|
-
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
137
|
-
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
138
|
-
import "../shared-utils/five/fiveModelLoad.js";
|
|
139
|
-
import "../shared-utils/five/FiveDomEvents.js";
|
|
140
|
-
import "../shared-utils/five/calculateThreeMouse.js";
|
|
141
88
|
import "../shared-utils/isTruelyObject.js";
|
|
142
89
|
import "../shared-utils/animationFrame/index.js";
|
|
143
90
|
import "./utils/Objects/Pipe.js";
|
|
@@ -146,9 +93,9 @@ import "../shared-utils/three/Extras/Curves/BezierCurve3.js";
|
|
|
146
93
|
import "../shared-utils/three/Extras/Core/Interpolations.js";
|
|
147
94
|
import "../shared-utils/three/Extras/Core/Interpolations2.js";
|
|
148
95
|
const g = { flowSpeed: 0.6, rotateSpeed: 0 };
|
|
149
|
-
class
|
|
150
|
-
constructor(
|
|
151
|
-
super(
|
|
96
|
+
class Be extends S {
|
|
97
|
+
constructor(e) {
|
|
98
|
+
super(e);
|
|
152
99
|
// ==================== public properties ====================
|
|
153
100
|
d(this, "data");
|
|
154
101
|
/** 插件状态
|
|
@@ -169,19 +116,19 @@ class ze extends S {
|
|
|
169
116
|
d(this, "texturePromiseCache", /* @__PURE__ */ new Map());
|
|
170
117
|
/** 销毁插件,移除所有副作用,销毁后将不响应任何 API */
|
|
171
118
|
d(this, "dispose", () => {
|
|
172
|
-
this.disable(), this.five.scene.remove(this.group), this.texturePromiseCache.forEach((
|
|
119
|
+
this.disable(), this.five.scene.remove(this.group), this.texturePromiseCache.forEach((e) => e.then((t) => t.dispose())), this.texturePromiseCache.clear();
|
|
173
120
|
});
|
|
174
|
-
d(this, "onWantsFiveTapGesture", (...
|
|
175
|
-
const [
|
|
121
|
+
d(this, "onWantsFiveTapGesture", (...e) => {
|
|
122
|
+
const [t] = e, i = t.intersectObjects(this.pipeObjects, !1);
|
|
176
123
|
if (i.length === 0 || !this.data)
|
|
177
124
|
return;
|
|
178
|
-
const
|
|
179
|
-
if (!(!
|
|
125
|
+
const n = i[0].object.customID, a = this.data.pipes.find(({ id: h }) => h === n), p = this.data.pipelines.find((h) => a && h.pipes.includes(a));
|
|
126
|
+
if (!(!a || !p))
|
|
180
127
|
return this.hooks.emit("tap", {
|
|
181
128
|
intersectObjects: i,
|
|
182
|
-
pipe:
|
|
183
|
-
pipeline:
|
|
184
|
-
wantsFiveTapGestureParams:
|
|
129
|
+
pipe: a,
|
|
130
|
+
pipeline: p,
|
|
131
|
+
wantsFiveTapGestureParams: e
|
|
185
132
|
}), !1;
|
|
186
133
|
});
|
|
187
134
|
this.state = {
|
|
@@ -190,7 +137,7 @@ class ze extends S {
|
|
|
190
137
|
enabled: !0,
|
|
191
138
|
isFlowing: !1,
|
|
192
139
|
speed: g
|
|
193
|
-
}, this.five =
|
|
140
|
+
}, this.five = e, this.group = new F.Group(), this.group.name = "water-pipe-group", this.five.scene.add(this.group), this.five.once("dispose", this.dispose), this.five.on("wantsTapGesture", this.onWantsFiveTapGesture);
|
|
194
141
|
}
|
|
195
142
|
/** 加载管道数据,重复调用会使用新数据覆盖旧数据
|
|
196
143
|
* @param `data` `<Plugin.ServerData>` Open API 接口返回的数据。
|
|
@@ -202,20 +149,20 @@ class ze extends S {
|
|
|
202
149
|
* 函数返回的 string 就是当前 water 对应的贴图地址。
|
|
203
150
|
*/
|
|
204
151
|
// eslint-disable-next-line max-params
|
|
205
|
-
load(
|
|
206
|
-
return
|
|
152
|
+
load(e, t, i, s) {
|
|
153
|
+
return m(this, null, function* () {
|
|
207
154
|
const r = this.data;
|
|
208
|
-
this.data = yield this.formatData(
|
|
209
|
-
this.data.pipes.filter((
|
|
210
|
-
const l = yield this.loadPipeTexture(
|
|
155
|
+
this.data = yield this.formatData(e, s), this.removeAllPipes(), this.hooks.emit("dataChange", this.data, r), this.pipeObjects = yield Promise.all(
|
|
156
|
+
this.data.pipes.filter((n) => !!(n != null && n.texture)).map((b) => m(this, [b], function* ({ id: n, texture: a, path: p, radius: h }) {
|
|
157
|
+
const l = yield this.loadPipeTexture(a), f = { id: n, path: p, textureURL: a, texture: l, geometryConfig: { radius: h } };
|
|
211
158
|
return new D(f);
|
|
212
159
|
}))
|
|
213
|
-
), this.data.pipelines.forEach((
|
|
214
|
-
|
|
215
|
-
const
|
|
216
|
-
return
|
|
160
|
+
), this.data.pipelines.forEach((n) => {
|
|
161
|
+
n.pipes.reduce((a, p) => {
|
|
162
|
+
const h = this.findPipeObjectWithID(p.id);
|
|
163
|
+
return h == null || h.setInitialDisplacement(a), a + ((h == null ? void 0 : h.pathLength) || 0);
|
|
217
164
|
}, 0);
|
|
218
|
-
}), this.hooks.emit("dataLoaded", this.data), this.state.visible === !1 && this.pipeObjects.forEach((
|
|
165
|
+
}), this.hooks.emit("dataLoaded", this.data), this.state.visible === !1 && this.pipeObjects.forEach((n) => n.setOpacity(0)), this.state.enabled && (this.group.add(...this.pipeObjects), this.five.needsRender = !0), t && this.setState(t, { userAction: i });
|
|
219
166
|
});
|
|
220
167
|
}
|
|
221
168
|
/** 更改插件 State
|
|
@@ -223,18 +170,18 @@ class ze extends S {
|
|
|
223
170
|
* @param `options` `<Option> | <undefined>`
|
|
224
171
|
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
225
172
|
*/
|
|
226
|
-
setState(
|
|
173
|
+
setState(e, t = {}) {
|
|
227
174
|
const i = this.state;
|
|
228
|
-
if (O(
|
|
175
|
+
if (O(e, i, { deep: !0 }))
|
|
229
176
|
return;
|
|
230
|
-
const s =
|
|
231
|
-
if (this.updateState(
|
|
177
|
+
const s = t.userAction !== void 0 ? t.userAction : !0;
|
|
178
|
+
if (this.updateState(e, s), e.enabled !== void 0 && i.enabled !== e.enabled && (e.enabled ? this._enable({ userAction: s }) : this._disable({ userAction: s })), e.visible !== void 0 && i.visible !== e.visible) {
|
|
232
179
|
const r = { userAction: s, anime: { duration: 500 } };
|
|
233
|
-
|
|
180
|
+
e.visible ? this._show(r) : this._hide(r);
|
|
234
181
|
}
|
|
235
|
-
if (
|
|
182
|
+
if (e.isFlowing !== void 0 && i.isFlowing !== e.isFlowing && (e.isFlowing ? this._flow() : this._stopFlow()), e.speed !== void 0 && !O(i.speed, this.state.speed, { deep: !0 }) && this._setSpeed(e.speed), e.target !== void 0 && !O(i.target, this.state.target, { deep: !0 })) {
|
|
236
183
|
const r = {
|
|
237
|
-
target:
|
|
184
|
+
target: e.target,
|
|
238
185
|
showAnime: { duration: 500 },
|
|
239
186
|
hideAnime: { duration: 500 }
|
|
240
187
|
};
|
|
@@ -245,23 +192,23 @@ class ze extends S {
|
|
|
245
192
|
* @param `options` `<Option> | <undefined>`
|
|
246
193
|
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
247
194
|
*/
|
|
248
|
-
enable(
|
|
195
|
+
enable(e = {}) {
|
|
249
196
|
var i;
|
|
250
197
|
if (this.state.enabled)
|
|
251
198
|
return;
|
|
252
|
-
const
|
|
253
|
-
this.updateState({ enabled: !0 },
|
|
199
|
+
const t = (i = e.userAction) != null ? i : !0;
|
|
200
|
+
this.updateState({ enabled: !0 }, t), this._enable({ userAction: t });
|
|
254
201
|
}
|
|
255
202
|
/** 禁用插件
|
|
256
203
|
* @param `options` `<Option> | <undefined>`
|
|
257
204
|
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
258
205
|
*/
|
|
259
|
-
disable(
|
|
206
|
+
disable(e = {}) {
|
|
260
207
|
var i;
|
|
261
208
|
if (this.state.enabled === !1)
|
|
262
209
|
return;
|
|
263
|
-
const
|
|
264
|
-
this.updateState({ enabled: !1, isFlowing: !1 },
|
|
210
|
+
const t = (i = e.userAction) != null ? i : !0;
|
|
211
|
+
this.updateState({ enabled: !1, isFlowing: !1 }, t), this._disable({ userAction: t });
|
|
265
212
|
}
|
|
266
213
|
/** 展示管道模型,注意如果通过 `switchPipelines` 更改过 `visibleIDs`,则只会展示这一部分模型。
|
|
267
214
|
* @param `options` `<Partial<ShowHideOptions>> | <undefined>`
|
|
@@ -270,14 +217,14 @@ class ze extends S {
|
|
|
270
217
|
* @param `options.anime.duration` `<number> | <undefined>` 动画时间,默认是 500ms。
|
|
271
218
|
*/
|
|
272
219
|
show() {
|
|
273
|
-
return
|
|
220
|
+
return m(this, arguments, function* (e = {}) {
|
|
274
221
|
if (this.state.visible)
|
|
275
222
|
return;
|
|
276
|
-
const
|
|
223
|
+
const t = u({
|
|
277
224
|
userAction: !0,
|
|
278
225
|
anime: { duration: 500 }
|
|
279
|
-
},
|
|
280
|
-
this.updateState({ visible: !0 },
|
|
226
|
+
}, e);
|
|
227
|
+
this.updateState({ visible: !0 }, t.userAction), yield this._show(t);
|
|
281
228
|
});
|
|
282
229
|
}
|
|
283
230
|
/** 插件内容整体隐藏
|
|
@@ -287,14 +234,14 @@ class ze extends S {
|
|
|
287
234
|
* @param `options.anime.duration` `<number> | <undefined>` 动画时间,默认是 500ms。
|
|
288
235
|
*/
|
|
289
236
|
hide() {
|
|
290
|
-
return
|
|
237
|
+
return m(this, arguments, function* (e = {}) {
|
|
291
238
|
if (this.state.visible === !1)
|
|
292
239
|
return;
|
|
293
|
-
const
|
|
240
|
+
const t = u({
|
|
294
241
|
userAction: !0,
|
|
295
242
|
anime: { duration: 500 }
|
|
296
|
-
},
|
|
297
|
-
this.updateState({ visible: !1 },
|
|
243
|
+
}, e);
|
|
244
|
+
this.updateState({ visible: !1 }, t.userAction), yield this._hide(t);
|
|
298
245
|
});
|
|
299
246
|
}
|
|
300
247
|
/** 切换管路
|
|
@@ -307,124 +254,124 @@ class ze extends S {
|
|
|
307
254
|
* @param `options.anime` `<AnimeOptions> | <undefined>` 兜底的动画配置。
|
|
308
255
|
* @param `options.userAction` `<boolean> | <undefined>` 是否是否是用户操作。
|
|
309
256
|
* */
|
|
310
|
-
switchPipelines(
|
|
311
|
-
return
|
|
312
|
-
var
|
|
257
|
+
switchPipelines(e) {
|
|
258
|
+
return m(this, null, function* () {
|
|
259
|
+
var p, h, b, l, f, w;
|
|
313
260
|
if (!this.data)
|
|
314
261
|
return;
|
|
315
|
-
const
|
|
316
|
-
this.updateState({ target:
|
|
317
|
-
const s = { duration: 500 }, r = (l = (b =
|
|
318
|
-
target:
|
|
319
|
-
showAnime:
|
|
262
|
+
const t = (p = e == null ? void 0 : e.target) != null ? p : null, i = (h = e == null ? void 0 : e.userAction) != null ? h : !0;
|
|
263
|
+
this.updateState({ target: t }, i);
|
|
264
|
+
const s = { duration: 500 }, r = (l = (b = e == null ? void 0 : e.hideAnime) != null ? b : e == null ? void 0 : e.anime) != null ? l : s, n = (w = (f = e == null ? void 0 : e.showAnime) != null ? f : e == null ? void 0 : e.anime) != null ? w : s, a = {
|
|
265
|
+
target: t,
|
|
266
|
+
showAnime: n,
|
|
320
267
|
hideAnime: r
|
|
321
268
|
};
|
|
322
|
-
this._switchPipelines(
|
|
269
|
+
this._switchPipelines(a);
|
|
323
270
|
});
|
|
324
271
|
}
|
|
325
272
|
/** 开始流动 */
|
|
326
|
-
flow(
|
|
273
|
+
flow(e = {}) {
|
|
327
274
|
var i;
|
|
328
275
|
if (this.state.isFlowing)
|
|
329
276
|
return;
|
|
330
|
-
const
|
|
331
|
-
this.updateState({ isFlowing: !0 },
|
|
277
|
+
const t = (i = e.userAction) != null ? i : !0;
|
|
278
|
+
this.updateState({ isFlowing: !0 }, t), this._flow();
|
|
332
279
|
}
|
|
333
280
|
/** 停止流动 */
|
|
334
|
-
stopFlow(
|
|
281
|
+
stopFlow(e = {}) {
|
|
335
282
|
var i;
|
|
336
283
|
if (this.state.isFlowing === !1)
|
|
337
284
|
return;
|
|
338
|
-
const
|
|
339
|
-
this.updateState({ isFlowing: !1 },
|
|
285
|
+
const t = (i = e.userAction) != null ? i : !0;
|
|
286
|
+
this.updateState({ isFlowing: !1 }, t), this._stopFlow();
|
|
340
287
|
}
|
|
341
288
|
/** 更改水管流速
|
|
342
289
|
* @param `options` `<SetSpeedOptions> | <undefined>`
|
|
343
290
|
* @param `options.speed` `<Speed> | <undefined>` 参考 `state.speed` 的描述。
|
|
344
291
|
* @param `options.userAction` `<boolean> | <undefined>` 是否是否是用户操作。
|
|
345
292
|
*/
|
|
346
|
-
setSpeed(
|
|
293
|
+
setSpeed(e) {
|
|
347
294
|
var s, r;
|
|
348
|
-
const
|
|
349
|
-
this.updateState({ speed:
|
|
295
|
+
const t = (s = e == null ? void 0 : e.speed) != null ? s : g, i = (r = e.userAction) != null ? r : !0;
|
|
296
|
+
this.updateState({ speed: t }, i), this._setSpeed(t);
|
|
350
297
|
}
|
|
351
|
-
formatData(
|
|
352
|
-
return
|
|
353
|
-
return y(
|
|
298
|
+
formatData(e, t) {
|
|
299
|
+
return m(this, null, function* () {
|
|
300
|
+
return y(e, t);
|
|
354
301
|
});
|
|
355
302
|
}
|
|
356
|
-
_enable(
|
|
357
|
-
this.hooks.emit("enable", { userAction:
|
|
303
|
+
_enable(e) {
|
|
304
|
+
this.hooks.emit("enable", { userAction: e.userAction }), this.five.scene.add(this.group), this.five.needsRender = !0, this.five.on("wantsTapGesture", this.onWantsFiveTapGesture);
|
|
358
305
|
}
|
|
359
|
-
_disable(
|
|
360
|
-
this.hooks.emit("disable", { userAction:
|
|
306
|
+
_disable(e) {
|
|
307
|
+
this.hooks.emit("disable", { userAction: e.userAction }), this.disposeAnime(), this.five.scene.remove(this.group), this.five.needsRender = !0, this.five.off("wantsTapGesture", this.onWantsFiveTapGesture);
|
|
361
308
|
}
|
|
362
|
-
_show(
|
|
363
|
-
return
|
|
309
|
+
_show(e) {
|
|
310
|
+
return m(this, null, function* () {
|
|
364
311
|
var s;
|
|
365
|
-
this.hooks.emit("show", { userAction:
|
|
366
|
-
const
|
|
367
|
-
yield Promise.all(i.map((r) => r == null ? void 0 : r.show(
|
|
312
|
+
this.hooks.emit("show", { userAction: e.userAction });
|
|
313
|
+
const t = (s = e == null ? void 0 : e.anime) != null ? s : { duration: 500 }, i = this.findPipeObjectWithTarget(this.state.target);
|
|
314
|
+
yield Promise.all(i.map((r) => r == null ? void 0 : r.show(t))), this.five.needsRender = !0;
|
|
368
315
|
});
|
|
369
316
|
}
|
|
370
|
-
_hide(
|
|
371
|
-
return
|
|
317
|
+
_hide(e) {
|
|
318
|
+
return m(this, null, function* () {
|
|
372
319
|
var i;
|
|
373
|
-
this.hooks.emit("hide", { userAction:
|
|
374
|
-
const
|
|
375
|
-
yield Promise.all(this.pipeObjects.map((s) => s.hide(
|
|
320
|
+
this.hooks.emit("hide", { userAction: e.userAction });
|
|
321
|
+
const t = (i = e == null ? void 0 : e.anime) != null ? i : { duration: 500 };
|
|
322
|
+
yield Promise.all(this.pipeObjects.map((s) => s.hide(t))), this.five.needsRender = !0;
|
|
376
323
|
});
|
|
377
324
|
}
|
|
378
|
-
_switchPipelines(
|
|
379
|
-
return
|
|
325
|
+
_switchPipelines(e) {
|
|
326
|
+
return m(this, null, function* () {
|
|
380
327
|
if (!this.data)
|
|
381
328
|
return;
|
|
382
|
-
const
|
|
329
|
+
const t = this.findPipeObjectWithTarget(e.target), i = e.hideAnime;
|
|
383
330
|
yield Promise.all(this.pipeObjects.map((r) => r.hide(i)));
|
|
384
|
-
const s =
|
|
385
|
-
yield Promise.all(
|
|
331
|
+
const s = e.showAnime;
|
|
332
|
+
yield Promise.all(t.map((r) => r.show(s)));
|
|
386
333
|
});
|
|
387
334
|
}
|
|
388
335
|
_flow() {
|
|
389
|
-
this.pipeObjects.forEach((
|
|
336
|
+
this.pipeObjects.forEach((e) => e.flow());
|
|
390
337
|
}
|
|
391
338
|
_stopFlow() {
|
|
392
|
-
this.pipeObjects.forEach((
|
|
339
|
+
this.pipeObjects.forEach((e) => e.stopFlow());
|
|
393
340
|
}
|
|
394
|
-
_setSpeed(
|
|
395
|
-
this.pipeObjects.forEach((
|
|
341
|
+
_setSpeed(e) {
|
|
342
|
+
this.pipeObjects.forEach((t) => t.setSpeed(e));
|
|
396
343
|
}
|
|
397
|
-
updateState(
|
|
344
|
+
updateState(e, t) {
|
|
398
345
|
const i = this.state;
|
|
399
|
-
this.state = u(u({}, this.state),
|
|
346
|
+
this.state = u(u({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: t });
|
|
400
347
|
}
|
|
401
348
|
/** 加载管道贴图,如果再加载中,复用之前的加载 Promise */
|
|
402
|
-
loadPipeTexture(
|
|
403
|
-
return
|
|
404
|
-
const
|
|
405
|
-
if (
|
|
406
|
-
return
|
|
407
|
-
const i = x(
|
|
408
|
-
return this.texturePromiseCache.set(
|
|
349
|
+
loadPipeTexture(e) {
|
|
350
|
+
return m(this, null, function* () {
|
|
351
|
+
const t = this.texturePromiseCache.get(e);
|
|
352
|
+
if (t)
|
|
353
|
+
return t;
|
|
354
|
+
const i = x(e);
|
|
355
|
+
return this.texturePromiseCache.set(e, i), i;
|
|
409
356
|
});
|
|
410
357
|
}
|
|
411
358
|
/** 销毁所有动画 */
|
|
412
359
|
disposeAnime() {
|
|
413
|
-
this.pipeObjects.forEach((
|
|
360
|
+
this.pipeObjects.forEach((e) => e.disposeAnime()), this.five.needsRender = !0;
|
|
414
361
|
}
|
|
415
362
|
/** 移除所有管道模型 */
|
|
416
363
|
removeAllPipes() {
|
|
417
|
-
this.disposeAnime(), this.group.remove(...this.pipeObjects), this.pipeObjects.forEach((
|
|
364
|
+
this.disposeAnime(), this.group.remove(...this.pipeObjects), this.pipeObjects.forEach((e) => e.dispose()), this.pipeObjects = [], this.five.needsRender = !0;
|
|
418
365
|
}
|
|
419
366
|
/** 根据 ID 查找管道模型 */
|
|
420
|
-
findPipeObjectWithID(
|
|
421
|
-
return this.pipeObjects.find(({ customID:
|
|
367
|
+
findPipeObjectWithID(e) {
|
|
368
|
+
return this.pipeObjects.find(({ customID: t }) => t === e);
|
|
422
369
|
}
|
|
423
370
|
/** 根据 target 查找管道模型 */
|
|
424
|
-
findPipeObjectWithTarget(
|
|
425
|
-
return
|
|
371
|
+
findPipeObjectWithTarget(e) {
|
|
372
|
+
return e ? C({ data: this.data, target: e }).map(({ id: i }) => this.findPipeObjectWithID(i)).filter(T) : this.pipeObjects;
|
|
426
373
|
}
|
|
427
374
|
}
|
|
428
375
|
export {
|
|
429
|
-
|
|
376
|
+
Be as Controller
|
|
430
377
|
};
|
|
@@ -29,84 +29,31 @@ 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 "../
|
|
40
|
-
import "../shared-utils/
|
|
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 "../Object3DHelperPlugin/Controller.js";
|
|
51
|
-
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
52
|
-
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
53
|
-
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
54
|
-
import "../shared-utils/three/boundingBox.js";
|
|
55
|
-
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
56
|
-
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
57
|
-
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
58
|
-
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
59
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
36
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
37
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
60
38
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
61
39
|
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
62
40
|
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
63
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
64
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
65
|
-
import "../shared-utils/util.js";
|
|
66
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
67
|
-
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
68
|
-
import "../shared-utils/five/initialCSS3DRender.js";
|
|
69
41
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
70
42
|
import "../Sculpt/Meshes/Line.js";
|
|
43
|
+
import "../Sculpt/typings/style.js";
|
|
71
44
|
import "../shared-utils/five/FiveLine.js";
|
|
45
|
+
import "../shared-utils/three/IObject3D.js";
|
|
72
46
|
import "../Sculpt/utils/removeAllTag.js";
|
|
73
47
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
74
48
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
75
|
-
import "../
|
|
76
|
-
import "../
|
|
49
|
+
import "../shared-utils/util.js";
|
|
50
|
+
import "../shared-utils/three/core/LineGeometry.js";
|
|
77
51
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
78
|
-
import "../shared-utils/url/absoluteUrl.js";
|
|
79
|
-
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
80
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
81
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
82
|
-
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
83
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
84
|
-
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
85
|
-
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
86
|
-
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
87
|
-
import "../shared-utils/threex/domevents/index.js";
|
|
88
|
-
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
89
|
-
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
90
|
-
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
91
|
-
import "../shared-utils/Object3DHelper/index.js";
|
|
92
|
-
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
93
|
-
import "../shared-utils/math/rad2Deg.js";
|
|
94
|
-
import "../shared-utils/math/deg2Rad.js";
|
|
95
|
-
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
96
|
-
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
97
|
-
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
98
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
99
|
-
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
100
|
-
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
101
|
-
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
102
|
-
import "../shared-utils/five/fiveModelLoad.js";
|
|
103
|
-
import "../shared-utils/five/FiveDomEvents.js";
|
|
104
|
-
import "../shared-utils/five/calculateThreeMouse.js";
|
|
105
52
|
import "../shared-utils/isTouchDevice.js";
|
|
106
|
-
import "../shared-utils/three/geometryUtil.js";
|
|
107
53
|
import "../shared-utils/five/getPosition.js";
|
|
108
54
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
109
55
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
56
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
110
57
|
import "../shared-utils/equal.js";
|
|
111
58
|
import "../shared-utils/isTruelyObject.js";
|
|
112
59
|
import "../shared-utils/three/loadTexture.js";
|
|
@@ -118,8 +65,8 @@ import "../shared-utils/animationFrame/BetterTween.js";
|
|
|
118
65
|
import "../shared-utils/three/Extras/Curves/BezierCurve3.js";
|
|
119
66
|
import "../shared-utils/three/Extras/Core/Interpolations.js";
|
|
120
67
|
import "../shared-utils/three/Extras/Core/Interpolations2.js";
|
|
121
|
-
const
|
|
68
|
+
const dr = (r) => new o(r);
|
|
122
69
|
export {
|
|
123
|
-
|
|
124
|
-
|
|
70
|
+
dr as PipelinePlugin,
|
|
71
|
+
dr as default
|
|
125
72
|
};
|