@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 c = Object.defineProperty;
|
|
2
2
|
var u = Object.getOwnPropertySymbols;
|
|
3
3
|
var v = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
5
|
-
for (var
|
|
6
|
-
v.call(
|
|
4
|
+
var n = (a, s, e) => s in a ? c(a, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[s] = e, f = (a, s) => {
|
|
5
|
+
for (var e in s || (s = {}))
|
|
6
|
+
v.call(s, e) && n(a, e, s[e]);
|
|
7
7
|
if (u)
|
|
8
|
-
for (var
|
|
9
|
-
S.call(
|
|
10
|
-
return
|
|
8
|
+
for (var e of u(s))
|
|
9
|
+
S.call(s, e) && n(a, e, s[e]);
|
|
10
|
+
return a;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
var d = (a, s, e) => (n(a, typeof s != "symbol" ? s + "" : s, e), e);
|
|
13
|
+
var m = (a, s, e) => new Promise((t, i) => {
|
|
14
|
+
var r = (o) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
16
|
+
l(e.next(o));
|
|
17
|
+
} catch (p) {
|
|
18
|
+
i(p);
|
|
19
19
|
}
|
|
20
|
-
}, b = (
|
|
20
|
+
}, b = (o) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
22
|
+
l(e.throw(o));
|
|
23
|
+
} catch (p) {
|
|
24
|
+
i(p);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, l = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(r, b);
|
|
27
|
+
l((e = e.apply(a, s)).next());
|
|
28
28
|
});
|
|
29
29
|
import { Controller as y } from "../base/BasePlugin.js";
|
|
30
30
|
import "../shared-utils/tag.js";
|
|
@@ -33,15 +33,10 @@ 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 "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
37
36
|
import "../shared-utils/three/core/Sphere.js";
|
|
38
37
|
import "animejs";
|
|
39
38
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
40
39
|
import { equal as L } from "../shared-utils/equal.js";
|
|
41
|
-
import "../Sculpt/Meshes/Polygon.js";
|
|
42
|
-
import "../Sculpt/utils/Modules/Global.js";
|
|
43
|
-
import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
44
|
-
import "../Sculpt/utils/three/rayOnLine.js";
|
|
45
40
|
import { objectAssignDeepExports as C } from "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
46
41
|
import "../shared-utils/Subscribe.js";
|
|
47
42
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
@@ -81,131 +76,83 @@ import "../Sculpt/utils/removeAllTag.js";
|
|
|
81
76
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
82
77
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
83
78
|
import "../shared-utils/util.js";
|
|
79
|
+
import "../shared-utils/three/core/LineGeometry.js";
|
|
84
80
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
85
81
|
import "../shared-utils/isTouchDevice.js";
|
|
86
82
|
import "../shared-utils/five/getPosition.js";
|
|
87
83
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
88
84
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
89
|
-
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
90
|
-
import "../vendor/three/build/three.module.js";
|
|
91
|
-
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
92
|
-
import "../shared-utils/three/earcut3D.js";
|
|
93
|
-
import "earcut";
|
|
94
|
-
import "../shared-utils/three/getNormal.js";
|
|
95
|
-
import "../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
96
|
-
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
97
|
-
import "../shared-utils/three/geometryUtil.js";
|
|
98
|
-
import "../Sculpt/utils/Modules/Cursor.js";
|
|
99
|
-
import "../Object3DHelperPlugin/Controller.js";
|
|
100
|
-
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
101
|
-
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
102
|
-
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
103
|
-
import "../shared-utils/three/boundingBox.js";
|
|
104
|
-
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
105
|
-
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
106
|
-
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
107
|
-
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
108
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
109
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
110
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
111
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
112
|
-
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
113
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
114
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
115
|
-
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
116
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
117
|
-
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
118
|
-
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
119
|
-
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
120
|
-
import "../shared-utils/threex/domevents/index.js";
|
|
121
|
-
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
122
|
-
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
123
|
-
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
124
|
-
import "../shared-utils/Object3DHelper/index.js";
|
|
125
|
-
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
126
|
-
import "../shared-utils/math/rad2Deg.js";
|
|
127
|
-
import "../shared-utils/math/deg2Rad.js";
|
|
128
|
-
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
129
|
-
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
130
|
-
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
131
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
132
|
-
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
133
|
-
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
134
|
-
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
135
|
-
import "../shared-utils/five/fiveModelLoad.js";
|
|
136
|
-
import "../shared-utils/five/FiveDomEvents.js";
|
|
137
|
-
import "../shared-utils/five/calculateThreeMouse.js";
|
|
138
85
|
import "../shared-utils/isTruelyObject.js";
|
|
139
|
-
const g = "CruisePlugin",
|
|
140
|
-
class
|
|
141
|
-
constructor(
|
|
142
|
-
super(
|
|
143
|
-
|
|
86
|
+
const g = "CruisePlugin", h = `${g}`, we = (a) => `${h}--${a}`;
|
|
87
|
+
class Ge extends y {
|
|
88
|
+
constructor(e, t) {
|
|
89
|
+
super(e, t);
|
|
90
|
+
d(this, "state", {
|
|
144
91
|
visible: !0,
|
|
145
92
|
enabled: !0,
|
|
146
93
|
disposed: !1,
|
|
147
94
|
playing: !1,
|
|
148
95
|
speed: 1
|
|
149
96
|
});
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
97
|
+
d(this, "data");
|
|
98
|
+
d(this, "config");
|
|
99
|
+
d(this, "pauseDataMap", /* @__PURE__ */ new Map());
|
|
100
|
+
d(this, "privateState", {
|
|
154
101
|
playing: !1,
|
|
155
102
|
broke: !1,
|
|
156
103
|
modeChanging: !1
|
|
157
104
|
});
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
console.error(`${
|
|
105
|
+
d(this, "GuideLine");
|
|
106
|
+
d(this, "disposedErrorLog", () => {
|
|
107
|
+
console.error(`${h} is disposed`);
|
|
161
108
|
});
|
|
162
|
-
|
|
163
|
-
console.warn(`${
|
|
109
|
+
d(this, "disableWarnLog", () => {
|
|
110
|
+
console.warn(`${h} is disabled`);
|
|
164
111
|
});
|
|
165
|
-
|
|
166
|
-
console.error(`${
|
|
112
|
+
d(this, "disableErrorLog", () => {
|
|
113
|
+
console.error(`${h} is disabled`);
|
|
167
114
|
});
|
|
168
|
-
this.config =
|
|
115
|
+
this.config = t, Object.assign(window, { [`__${g}_DEBUG__`]: this });
|
|
169
116
|
}
|
|
170
117
|
/**
|
|
171
118
|
* @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
|
|
172
119
|
*/
|
|
173
|
-
play(
|
|
174
|
-
this.setState({ playing: !0 },
|
|
120
|
+
play(e) {
|
|
121
|
+
this.setState({ playing: !0 }, e);
|
|
175
122
|
}
|
|
176
123
|
/**
|
|
177
124
|
* @description Pause
|
|
178
125
|
*/
|
|
179
|
-
pause(
|
|
180
|
-
this.setState({ playing: !1 },
|
|
126
|
+
pause(e) {
|
|
127
|
+
this.setState({ playing: !1 }, e);
|
|
181
128
|
}
|
|
182
129
|
/**
|
|
183
130
|
* @description Show guide line
|
|
184
131
|
*/
|
|
185
|
-
show(
|
|
186
|
-
return
|
|
187
|
-
this.setState({ visible: !0 },
|
|
132
|
+
show(e) {
|
|
133
|
+
return m(this, null, function* () {
|
|
134
|
+
this.setState({ visible: !0 }, e);
|
|
188
135
|
});
|
|
189
136
|
}
|
|
190
137
|
/**
|
|
191
138
|
* @description Hide guide line
|
|
192
139
|
*/
|
|
193
|
-
hide(
|
|
194
|
-
return
|
|
195
|
-
this.setState({ visible: !1 },
|
|
140
|
+
hide(e) {
|
|
141
|
+
return m(this, null, function* () {
|
|
142
|
+
this.setState({ visible: !1 }, e);
|
|
196
143
|
});
|
|
197
144
|
}
|
|
198
145
|
/**
|
|
199
146
|
* @description Enable
|
|
200
147
|
*/
|
|
201
|
-
enable(
|
|
202
|
-
this.setState({ enabled: !0 },
|
|
148
|
+
enable(e) {
|
|
149
|
+
this.setState({ enabled: !0 }, e);
|
|
203
150
|
}
|
|
204
151
|
/**
|
|
205
152
|
* @description Disable
|
|
206
153
|
*/
|
|
207
|
-
disable(
|
|
208
|
-
this.setState({ enabled: !1 },
|
|
154
|
+
disable(e) {
|
|
155
|
+
this.setState({ enabled: !1 }, e);
|
|
209
156
|
}
|
|
210
157
|
/**
|
|
211
158
|
* @description Dispose
|
|
@@ -216,57 +163,57 @@ class wi extends y {
|
|
|
216
163
|
/**
|
|
217
164
|
* @description Set state
|
|
218
165
|
*/
|
|
219
|
-
setState(
|
|
220
|
-
var
|
|
166
|
+
setState(e, t) {
|
|
167
|
+
var r;
|
|
221
168
|
if (this.state.disposed)
|
|
222
169
|
return this.disposedErrorLog();
|
|
223
|
-
if (!this.state.enabled &&
|
|
170
|
+
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
224
171
|
return this.disableErrorLog();
|
|
225
|
-
const
|
|
226
|
-
this.state = C({}, this.state,
|
|
172
|
+
const i = f({}, this.state);
|
|
173
|
+
this.state = C({}, this.state, e), e.disposed !== void 0 && e.disposed !== i.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== i.visible && this.handleVisible(e.visible, t == null ? void 0 : t.userAction), e.enabled !== void 0 && e.enabled !== i.enabled && this.handleEnable(e.enabled, t == null ? void 0 : t.userAction), e.playing !== void 0 && e.playing !== i.playing && this.changePlayState(e.playing, t), e.speed !== void 0 && e.speed !== i.speed && this.changeSpeed(e.speed), L(i, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: (r = t == null ? void 0 : t.userAction) != null ? r : !0 });
|
|
227
174
|
}
|
|
228
175
|
/**
|
|
229
176
|
* @description Clear pause data
|
|
230
177
|
*/
|
|
231
178
|
clearPauseData() {
|
|
232
|
-
var
|
|
233
|
-
if ((
|
|
234
|
-
return this.pauseDataMap.delete((
|
|
179
|
+
var e, t;
|
|
180
|
+
if ((e = this.data) != null && e.id)
|
|
181
|
+
return this.pauseDataMap.delete((t = this.data) == null ? void 0 : t.id);
|
|
235
182
|
}
|
|
236
|
-
changePlayState(
|
|
183
|
+
changePlayState(e, t) {
|
|
237
184
|
this.actionIfStateIsEnabled(
|
|
238
185
|
() => {
|
|
239
|
-
var
|
|
240
|
-
return this.hooks.emit("playStateChange",
|
|
186
|
+
var i;
|
|
187
|
+
return this.hooks.emit("playStateChange", e ? "playing" : "pause", { userAction: (i = t == null ? void 0 : t.userAction) != null ? i : !0 });
|
|
241
188
|
}
|
|
242
|
-
),
|
|
189
|
+
), e ? this.handlePlay(t) : this.handlePause(t), this.state.playing = e;
|
|
243
190
|
}
|
|
244
|
-
handleEnable(
|
|
245
|
-
var
|
|
246
|
-
|
|
191
|
+
handleEnable(e, t = !0) {
|
|
192
|
+
var i, r;
|
|
193
|
+
e ? ((i = this.GuideLine) == null || i.enable(), this.hooks.emit("enable", { userAction: t })) : ((r = this.GuideLine) == null || r.disable(), this.changePlayState(!1, { userAction: t }), this.hooks.emit("disable", { userAction: t })), this.state.enabled = e;
|
|
247
194
|
}
|
|
248
|
-
handleVisible(
|
|
249
|
-
var
|
|
250
|
-
|
|
195
|
+
handleVisible(e, t = !0) {
|
|
196
|
+
var i, r;
|
|
197
|
+
e ? ((i = this.GuideLine) == null || i.show(), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: t }))) : ((r = this.GuideLine) == null || r.hide(), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: t }))), this.state.visible = e;
|
|
251
198
|
}
|
|
252
199
|
/**
|
|
253
200
|
* @description: listen interupted by five gesture
|
|
254
201
|
*/
|
|
255
|
-
addInterruptListener(
|
|
256
|
-
const
|
|
257
|
-
this.privateState.modeChanging ||
|
|
258
|
-
},
|
|
259
|
-
|
|
202
|
+
addInterruptListener(e) {
|
|
203
|
+
const t = () => {
|
|
204
|
+
this.privateState.modeChanging || e();
|
|
205
|
+
}, i = (r) => {
|
|
206
|
+
r !== "mouseMove" && (e(), this.five.off("gesture", i));
|
|
260
207
|
};
|
|
261
|
-
return this.five.on("gesture",
|
|
262
|
-
this.five.off("gesture",
|
|
208
|
+
return this.five.on("gesture", i), this.five.once("wantsChangeMode", t), () => {
|
|
209
|
+
this.five.off("gesture", i), this.five.off("wantsChangeMode", t);
|
|
263
210
|
};
|
|
264
211
|
}
|
|
265
212
|
/**
|
|
266
213
|
* @description Get duration by speed
|
|
267
214
|
*/
|
|
268
|
-
getSpeededDuration(
|
|
269
|
-
return
|
|
215
|
+
getSpeededDuration(e) {
|
|
216
|
+
return e / this.state.speed;
|
|
270
217
|
}
|
|
271
218
|
/**
|
|
272
219
|
* @description Force interupt five updateCamera
|
|
@@ -275,18 +222,18 @@ class wi extends y {
|
|
|
275
222
|
this.five.updateCamera({}, 0);
|
|
276
223
|
}
|
|
277
224
|
getPauseData() {
|
|
278
|
-
var
|
|
279
|
-
if ((
|
|
225
|
+
var e;
|
|
226
|
+
if ((e = this.data) != null && e.id)
|
|
280
227
|
return this.pauseDataMap.get(this.data.id);
|
|
281
228
|
}
|
|
282
229
|
/**
|
|
283
230
|
* @description Set pause data
|
|
284
231
|
*/
|
|
285
232
|
setPauseData() {
|
|
286
|
-
var
|
|
287
|
-
const
|
|
288
|
-
if (
|
|
289
|
-
return this.pauseDataMap.set(
|
|
233
|
+
var t;
|
|
234
|
+
const e = (t = this.data) == null ? void 0 : t.id;
|
|
235
|
+
if (e)
|
|
236
|
+
return this.pauseDataMap.set(e, {
|
|
290
237
|
fiveState: this.five.getCurrentState(),
|
|
291
238
|
playedProgress: this.getProgress()
|
|
292
239
|
});
|
|
@@ -299,19 +246,19 @@ class wi extends y {
|
|
|
299
246
|
}
|
|
300
247
|
// TODO
|
|
301
248
|
handleDispose() {
|
|
302
|
-
var
|
|
303
|
-
this.setState({ playing: !1 }), this.clearPauseData(), this.clear(), (
|
|
249
|
+
var e;
|
|
250
|
+
this.setState({ playing: !1 }), this.clearPauseData(), this.clear(), (e = this.GuideLine) == null || e.dispose(), this.GuideLine = void 0;
|
|
304
251
|
}
|
|
305
252
|
/**
|
|
306
253
|
* @description Action function if plugin is enable
|
|
307
254
|
*/
|
|
308
|
-
actionIfStateIsEnabled(
|
|
255
|
+
actionIfStateIsEnabled(e, t) {
|
|
309
256
|
if (this.state.enabled)
|
|
310
|
-
return
|
|
311
|
-
|
|
257
|
+
return e();
|
|
258
|
+
t != null && t.warnLog && this.disableWarnLog();
|
|
312
259
|
}
|
|
313
260
|
}
|
|
314
261
|
export {
|
|
315
|
-
|
|
316
|
-
|
|
262
|
+
Ge as default,
|
|
263
|
+
we as pluginFlag
|
|
317
264
|
};
|
|
@@ -2,30 +2,30 @@ var T = Object.defineProperty, x = Object.defineProperties;
|
|
|
2
2
|
var D = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var k = Object.getOwnPropertySymbols;
|
|
4
4
|
var E = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var d = (
|
|
5
|
+
var d = (e, i, t) => i in e ? T(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, u = (e, i) => {
|
|
6
6
|
for (var t in i || (i = {}))
|
|
7
|
-
E.call(i, t) && d(
|
|
7
|
+
E.call(i, t) && d(e, t, i[t]);
|
|
8
8
|
if (k)
|
|
9
9
|
for (var t of k(i))
|
|
10
|
-
F.call(i, t) && d(
|
|
11
|
-
return
|
|
12
|
-
}, c = (
|
|
13
|
-
var n = (
|
|
14
|
-
var w = (
|
|
15
|
-
var
|
|
10
|
+
F.call(i, t) && d(e, t, i[t]);
|
|
11
|
+
return e;
|
|
12
|
+
}, c = (e, i) => x(e, D(i));
|
|
13
|
+
var n = (e, i, t) => (d(e, typeof i != "symbol" ? i + "" : i, t), t);
|
|
14
|
+
var w = (e, i, t) => new Promise((r, m) => {
|
|
15
|
+
var p = (o) => {
|
|
16
16
|
try {
|
|
17
17
|
a(t.next(o));
|
|
18
18
|
} catch (s) {
|
|
19
|
-
|
|
19
|
+
m(s);
|
|
20
20
|
}
|
|
21
21
|
}, h = (o) => {
|
|
22
22
|
try {
|
|
23
23
|
a(t.throw(o));
|
|
24
24
|
} catch (s) {
|
|
25
|
-
|
|
25
|
+
m(s);
|
|
26
26
|
}
|
|
27
|
-
}, a = (o) => o.done ? r(o.value) : Promise.resolve(o.value).then(
|
|
28
|
-
a((t = t.apply(
|
|
27
|
+
}, a = (o) => o.done ? r(o.value) : Promise.resolve(o.value).then(p, h);
|
|
28
|
+
a((t = t.apply(e, i)).next());
|
|
29
29
|
});
|
|
30
30
|
import z from "./BaseController.js";
|
|
31
31
|
import { objectAssignDeepExports as g } from "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
@@ -35,16 +35,11 @@ import "hammerjs";
|
|
|
35
35
|
import "../shared-utils/three/PointSelector/index.js";
|
|
36
36
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
37
37
|
import "@realsee/five/line";
|
|
38
|
-
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
39
38
|
import { anyPositionToVector3 as O } from "../shared-utils/positionToVector3.js";
|
|
40
39
|
import "../shared-utils/three/core/Sphere.js";
|
|
41
40
|
import "animejs";
|
|
42
41
|
import { uuid as A } from "../shared-utils/uuid.js";
|
|
43
42
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
44
|
-
import "../Sculpt/Meshes/Polygon.js";
|
|
45
|
-
import "../Sculpt/utils/Modules/Global.js";
|
|
46
|
-
import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
47
|
-
import "../Sculpt/utils/three/rayOnLine.js";
|
|
48
43
|
import { getFiveStateOnCurve as v } from "./utils/getFiveStateOnCurve.js";
|
|
49
44
|
import M from "../GuideLinePlugin/index.js";
|
|
50
45
|
import "../base/BasePlugin.js";
|
|
@@ -87,64 +82,17 @@ import "../Sculpt/utils/removeAllTag.js";
|
|
|
87
82
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
88
83
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
89
84
|
import "../shared-utils/util.js";
|
|
85
|
+
import "../shared-utils/three/core/LineGeometry.js";
|
|
90
86
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
91
87
|
import "../shared-utils/isTouchDevice.js";
|
|
92
88
|
import "../shared-utils/five/getPosition.js";
|
|
93
89
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
94
90
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
95
|
-
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
96
|
-
import "../vendor/three/build/three.module.js";
|
|
97
|
-
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
98
|
-
import "../shared-utils/three/earcut3D.js";
|
|
99
|
-
import "earcut";
|
|
100
|
-
import "../shared-utils/three/getNormal.js";
|
|
101
|
-
import "../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
102
|
-
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
103
|
-
import "../shared-utils/three/geometryUtil.js";
|
|
104
|
-
import "../Sculpt/utils/Modules/Cursor.js";
|
|
105
|
-
import "../Object3DHelperPlugin/Controller.js";
|
|
106
|
-
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
107
|
-
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
108
|
-
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
109
|
-
import "../shared-utils/three/boundingBox.js";
|
|
110
|
-
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
111
|
-
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
112
|
-
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
113
|
-
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
114
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
115
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
116
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
117
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
118
|
-
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
119
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
120
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
121
|
-
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
122
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
123
|
-
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
124
|
-
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
125
|
-
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
126
|
-
import "../shared-utils/threex/domevents/index.js";
|
|
127
|
-
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
128
|
-
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
129
|
-
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
130
|
-
import "../shared-utils/Object3DHelper/index.js";
|
|
131
|
-
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
132
|
-
import "../shared-utils/math/rad2Deg.js";
|
|
133
|
-
import "../shared-utils/math/deg2Rad.js";
|
|
134
|
-
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
135
|
-
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
136
|
-
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
137
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
138
|
-
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
139
|
-
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
140
|
-
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
141
|
-
import "../shared-utils/five/fiveModelLoad.js";
|
|
142
|
-
import "../shared-utils/five/FiveDomEvents.js";
|
|
143
|
-
import "../shared-utils/five/calculateThreeMouse.js";
|
|
144
91
|
import "../shared-utils/vectorToCoordinate.js";
|
|
145
92
|
import "../shared-utils/formatRad.js";
|
|
146
93
|
import "../GuideLinePlugin/Controller.js";
|
|
147
94
|
import "../base/BasePluginWithData.js";
|
|
95
|
+
import "../shared-utils/five/fiveModelLoad.js";
|
|
148
96
|
import "../GuideLinePlugin/GuideLineItem/index.js";
|
|
149
97
|
import "../GuideLinePlugin/GuideLineModeItem/index.js";
|
|
150
98
|
import "../shared-utils/log.js";
|
|
@@ -249,6 +197,7 @@ import "../shared-utils/three/loadVideoTexture.js";
|
|
|
249
197
|
import "../shared-utils/device.js";
|
|
250
198
|
import "../shared-utils/three/getPositionsByObjectFit.js";
|
|
251
199
|
import "../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
200
|
+
import "../shared-utils/three/getNormal.js";
|
|
252
201
|
import "../PanoTagPlugin/controller/Tag/BaseTag.js";
|
|
253
202
|
import "../PanoTagPlugin/utils/tag/calculateTagConfig.js";
|
|
254
203
|
import "../shared-utils/typescript/entries.js";
|
|
@@ -268,6 +217,13 @@ import "../PanoTagPlugin/utils/normalPositionToPositions.js";
|
|
|
268
217
|
import "../vendor/svelte/store/index.js";
|
|
269
218
|
import "../CSS3DRenderPlugin/index.js";
|
|
270
219
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
220
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
221
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
222
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
223
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
224
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
225
|
+
import "../shared-utils/five/FiveDomEvents.js";
|
|
226
|
+
import "../shared-utils/five/calculateThreeMouse.js";
|
|
271
227
|
import "../PanoTagPlugin/utils/DebugUtil.js";
|
|
272
228
|
import "../PanoTagPlugin/utils/addDebugPoints.js";
|
|
273
229
|
import "../PanoTagPlugin/controller/Tag/PointTag.js";
|
|
@@ -287,7 +243,7 @@ import "./utils/coordinatesToVector.js";
|
|
|
287
243
|
import "./utils/safeCall.js";
|
|
288
244
|
import "./utils/sleep.js";
|
|
289
245
|
import "../shared-utils/five/fiveLoaded.js";
|
|
290
|
-
class
|
|
246
|
+
class Bo extends z {
|
|
291
247
|
constructor(t, r) {
|
|
292
248
|
var h;
|
|
293
249
|
super(t, r);
|
|
@@ -311,25 +267,25 @@ class Am extends z {
|
|
|
311
267
|
const t = this.getPauseData();
|
|
312
268
|
let r = (o = t == null ? void 0 : t.playedProgress) != null ? o : 0;
|
|
313
269
|
(r < 0 || r >= 1) && (r = 0);
|
|
314
|
-
const
|
|
315
|
-
return 1 -
|
|
270
|
+
const m = 1 - r, p = this.getDuration(), a = (performance.now() - this.playStartedTime) / p;
|
|
271
|
+
return 1 - m + a;
|
|
316
272
|
});
|
|
317
|
-
const
|
|
273
|
+
const m = {
|
|
318
274
|
config: {
|
|
319
275
|
speedConfig: {
|
|
320
276
|
moveSpeed: 2,
|
|
321
277
|
moveSpeedUnit: "m/s"
|
|
322
278
|
}
|
|
323
279
|
}
|
|
324
|
-
},
|
|
280
|
+
}, p = {
|
|
325
281
|
allowBroke: !0
|
|
326
282
|
};
|
|
327
|
-
this.state = g({},
|
|
283
|
+
this.state = g({}, m, this.state), this.config = g({}, p, this.config), this.baseCurveOffset = g({ x: 0, y: 0, z: 0 }, { y: 2 }, (h = this.config) == null ? void 0 : h.offset);
|
|
328
284
|
}
|
|
329
285
|
load(t, r) {
|
|
330
286
|
var a, o, s, f, y, S, C, P, b;
|
|
331
287
|
this.handlePause(), this.clear(), this.data = u({ id: A() }, t);
|
|
332
|
-
const
|
|
288
|
+
const m = (() => {
|
|
333
289
|
if (this.data.path instanceof L.Curve)
|
|
334
290
|
return this.data.path.curves[0];
|
|
335
291
|
{
|
|
@@ -339,16 +295,16 @@ class Am extends z {
|
|
|
339
295
|
return new L.CatmullRomCurve3(l, void 0, "catmullrom", 0.5);
|
|
340
296
|
}
|
|
341
297
|
})();
|
|
342
|
-
if (!
|
|
298
|
+
if (!m)
|
|
343
299
|
return;
|
|
344
|
-
if (this.curve =
|
|
300
|
+
if (this.curve = m, this.curveOffset = {
|
|
345
301
|
x: this.baseCurveOffset.x + ((o = (a = this.data.offset) == null ? void 0 : a.x) != null ? o : 0),
|
|
346
302
|
y: this.baseCurveOffset.y + ((f = (s = this.data.offset) == null ? void 0 : s.y) != null ? f : 0),
|
|
347
303
|
z: this.baseCurveOffset.z + ((S = (y = this.data.offset) == null ? void 0 : y.z) != null ? S : 0)
|
|
348
304
|
}, !this.curve)
|
|
349
305
|
throw new Error("curve is not defined");
|
|
350
|
-
const
|
|
351
|
-
if (this.duration =
|
|
306
|
+
const p = this.curve.getLength(), h = this.state.config.speedConfig.moveSpeedUnit === "m/ms" ? 1 : 1e3;
|
|
307
|
+
if (this.duration = p / (this.state.config.speedConfig.moveSpeed / h), Array.isArray(this.data.path)) {
|
|
352
308
|
const l = this.data.path.map(O).map((G) => G.toArray());
|
|
353
309
|
!this.GuideLine && (((C = this.config) == null ? void 0 : C.useGuideLine) !== !1 && t.useGuildLine || (P = this.config) != null && P.useGuideLine && t.useGuildLine !== !1) && (this.GuideLine = M(this.five, this.config)), (b = this.GuideLine) == null || b.load({
|
|
354
310
|
lines: [
|
|
@@ -366,11 +322,11 @@ class Am extends z {
|
|
|
366
322
|
return new Promise((t, r) => w(this, null, function* () {
|
|
367
323
|
var o;
|
|
368
324
|
this.hooks.emit("play", { userAction: !0 });
|
|
369
|
-
const
|
|
370
|
-
let
|
|
371
|
-
(
|
|
372
|
-
const h = v(this.curve,
|
|
373
|
-
if (this.hooks.emit("progressChange",
|
|
325
|
+
const m = this.getPauseData();
|
|
326
|
+
let p = (o = m == null ? void 0 : m.playedProgress) != null ? o : 0;
|
|
327
|
+
(p < 0 || p >= 1) && (p = 0);
|
|
328
|
+
const h = v(this.curve, p, this.curveOffset);
|
|
329
|
+
if (this.hooks.emit("progressChange", p), this.five.setState(c(u({}, h), { mode: "Model" })), yield this.five.ready(), this.playStartedTime = performance.now(), this.config.allowBroke) {
|
|
374
330
|
const s = this.addInterruptListener(() => {
|
|
375
331
|
this.state.playing && (this.hooks.emit("broke"), this.handlePause(), s(), r(new Error("broke")));
|
|
376
332
|
});
|
|
@@ -395,5 +351,5 @@ class Am extends z {
|
|
|
395
351
|
}
|
|
396
352
|
}
|
|
397
353
|
export {
|
|
398
|
-
|
|
354
|
+
Bo as default
|
|
399
355
|
};
|