@realsee/dnalogel 3.45.0 → 3.46.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 +3 -0
- package/dist/Sculpt/Meshes/Line.d.ts +6 -1
- package/dist/index.cjs.js +53 -53
- package/dist/index.js +29609 -29576
- package/dist/index.umd.js +49 -49
- package/dist/shared-utils/tag.d.ts +6 -3
- package/libs/AreaMakerPlugin/Controller.js +150 -78
- package/libs/AreaMakerPlugin/index.js +76 -4
- package/libs/AreaMakerPlugin/utils/Item.js +190 -111
- package/libs/CSS3DRenderPlugin/Controller.js +89 -29
- package/libs/CSS3DRenderPlugin/index.js +75 -15
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +132 -58
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +181 -116
- package/libs/CruisePlugin/BaseController.js +121 -49
- package/libs/CruisePlugin/Move.js +73 -21
- package/libs/CruisePlugin/Work.js +98 -46
- package/libs/CruisePlugin/index.js +79 -27
- package/libs/CurrentPanoImagePlugin/Controller.js +176 -104
- package/libs/CurrentPanoImagePlugin/index.js +76 -4
- package/libs/GuideLinePlugin/Controller.js +82 -30
- package/libs/GuideLinePlugin/GuideLineItem.js +82 -30
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +81 -29
- package/libs/GuideLinePlugin/index.js +79 -27
- package/libs/ModelMakerPlugin/Controller.js +139 -82
- package/libs/ModelMakerPlugin/index.js +75 -18
- package/libs/ModelTVVideoPlugin/Plugin.js +117 -57
- package/libs/ModelTVVideoPlugin/index.js +68 -8
- package/libs/Object3DHelperPlugin/Controller.js +54 -31
- package/libs/Object3DHelperPlugin/index.js +35 -13
- package/libs/PanoCompassPlugin/Controller.js +97 -42
- package/libs/PanoCompassPlugin/index.js +71 -16
- package/libs/PanoDoorLabelPlugin/BaseController.js +98 -26
- package/libs/PanoDoorLabelPlugin/Controller.js +187 -115
- package/libs/PanoDoorLabelPlugin/index.js +76 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +140 -88
- package/libs/PanoMeasurePlugin/Components/Controller1.js +178 -126
- package/libs/PanoMeasurePlugin/Controller/EditController.js +124 -72
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +167 -92
- package/libs/PanoMeasurePlugin/Controller/index.js +109 -64
- package/libs/PanoMeasurePlugin/Model/area.js +114 -38
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +78 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +97 -45
- package/libs/PanoMeasurePlugin/index.js +76 -31
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +98 -20
- package/libs/PanoSpatialTagPlugin/Plugin.js +210 -150
- package/libs/PanoSpatialTagPlugin/index.js +66 -6
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +133 -53
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +295 -216
- package/libs/PanoTagPlugin/Components/Tag/index.js +257 -187
- package/libs/PanoTagPlugin/Components/TagContainer.js +157 -87
- package/libs/PanoTagPlugin/Components/TagItem.js +144 -74
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +73 -3
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +109 -39
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +105 -35
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +113 -43
- package/libs/PanoTagPlugin/controller/TagRender.js +132 -80
- package/libs/PanoTagPlugin/controller/TagUtil.js +136 -84
- package/libs/PanoTagPlugin/controller/index.js +113 -61
- package/libs/PanoTagPlugin/index.js +89 -37
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +121 -41
- package/libs/PanoVideoPlugin/Controller.js +137 -65
- package/libs/PanoVideoPlugin/VideoMeshController.js +149 -69
- package/libs/PanoVideoPlugin/index.js +82 -10
- package/libs/PipelinePlugin/Controller.js +199 -128
- package/libs/PipelinePlugin/index.js +76 -5
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +102 -22
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +95 -15
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +136 -56
- package/libs/Sculpt/Meshes/Box.js +6 -5
- package/libs/Sculpt/Meshes/Cylinder.js +7 -6
- package/libs/Sculpt/Meshes/Line.d.ts +6 -1
- package/libs/Sculpt/Meshes/Line.js +76 -56
- package/libs/Sculpt/Meshes/Point.js +6 -5
- package/libs/Sculpt/Meshes/Polyline.js +5 -4
- package/libs/Sculpt/Meshes/Rectangle.js +3 -2
- package/libs/Sculpt/Objects/Line/Editor.js +11 -10
- package/libs/Sculpt/utils/three/ColoredMesh.js +14 -13
- package/libs/base/BasePlugin.js +14 -13
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +128 -59
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +75 -6
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +129 -59
- package/libs/floorplan/ModelFloorplanPlugin/index.js +75 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +158 -86
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +76 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +151 -81
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +75 -5
- package/libs/floorplan/index.js +1 -0
- package/libs/index.js +67 -67
- package/libs/shared-utils/five/index.js +3 -2
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +6 -3
- package/libs/shared-utils/tag.js +38 -24
- package/libs/shared-utils/three/index.js +1 -0
- package/package.json +1 -1
|
@@ -7,20 +7,19 @@ import "../shared-utils/Subscribe.js";
|
|
|
7
7
|
import "hammerjs";
|
|
8
8
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
9
9
|
import "@realsee/five/line";
|
|
10
|
+
import "../Sculpt/utils/Modules/Global.js";
|
|
11
|
+
import "../Sculpt/utils/Modules/Cursor.js";
|
|
12
|
+
import "../Object3DHelperPlugin/Controller.js";
|
|
10
13
|
import "../shared-utils/three/THREESphere.js";
|
|
11
|
-
import "
|
|
12
|
-
import "../shared-utils/
|
|
13
|
-
import "../shared-utils/
|
|
14
|
-
import "../shared-utils/
|
|
15
|
-
import "../shared-utils/
|
|
16
|
-
import "../shared-utils/
|
|
17
|
-
import "../shared-utils/
|
|
18
|
-
import "../
|
|
19
|
-
import "
|
|
20
|
-
import "./Assets/roomInfoIcon.js";
|
|
21
|
-
import "../shared-utils/three/loadTexture.js";
|
|
22
|
-
import "../CSS3DRenderPlugin/index.js";
|
|
23
|
-
import "../CSS3DRenderPlugin/Controller.js";
|
|
14
|
+
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
15
|
+
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
16
|
+
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
17
|
+
import "../shared-utils/three/IObject3D.js";
|
|
18
|
+
import "../shared-utils/three/boundingBox.js";
|
|
19
|
+
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
20
|
+
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
21
|
+
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
22
|
+
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
24
23
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
25
24
|
import "../shared-utils/positionToVector3.js";
|
|
26
25
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
@@ -31,17 +30,73 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
|
31
30
|
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
32
31
|
import "../shared-utils/three/centerPoint.js";
|
|
33
32
|
import "../shared-utils/three/getObjectVisible.js";
|
|
33
|
+
import "animejs";
|
|
34
34
|
import "../shared-utils/isNil.js";
|
|
35
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
36
|
+
import "../shared-utils/Utils/FiveUtil.js";
|
|
37
|
+
import "../shared-utils/Utils/BaseUtil.js";
|
|
38
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
39
|
+
import "../shared-utils/five/transformPosition.js";
|
|
40
|
+
import "../shared-utils/five/getFiveModel.js";
|
|
41
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
35
42
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
36
43
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
37
44
|
import "../shared-utils/util.js";
|
|
38
45
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
46
|
+
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
47
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
48
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
49
|
+
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
50
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
51
|
+
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
52
|
+
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
53
|
+
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
54
|
+
import "../shared-utils/threex/domevents/index.js";
|
|
55
|
+
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
56
|
+
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
57
|
+
import "../Sculpt/utils/three/rayOnLine.js";
|
|
58
|
+
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
59
|
+
import "../shared-utils/Object3DHelper/index.js";
|
|
60
|
+
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
61
|
+
import "../shared-utils/math/rad2Deg.js";
|
|
62
|
+
import "../shared-utils/math/deg2Rad.js";
|
|
63
|
+
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
64
|
+
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
65
|
+
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
39
66
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
67
|
+
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
68
|
+
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
69
|
+
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
40
70
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
71
|
+
import "../shared-utils/five/FiveDomEvents.js";
|
|
72
|
+
import "../shared-utils/five/calculateThreeMouse.js";
|
|
73
|
+
import "../shared-utils/three/THREERaycaster.js";
|
|
74
|
+
import "../shared-utils/three/PointSelector/index.js";
|
|
75
|
+
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
76
|
+
import "../shared-utils/three/Magnifier.js";
|
|
77
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
78
|
+
import "../shared-utils/three/Assets/index.js";
|
|
79
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
80
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
81
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
82
|
+
import "../Sculpt/Meshes/Line.js";
|
|
83
|
+
import "../Sculpt/typings/style.js";
|
|
84
|
+
import "../shared-utils/five/FiveLine.js";
|
|
85
|
+
import "../shared-utils/tag.js";
|
|
86
|
+
import "../shared-utils/five/vector3ToScreen.js";
|
|
87
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
88
|
+
import "../shared-utils/isTouchDevice.js";
|
|
89
|
+
import "../shared-utils/five/getPosition.js";
|
|
90
|
+
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
91
|
+
import "./getRoomInfoInstance.js";
|
|
92
|
+
import "./Assets/roomInfoIcon.js";
|
|
93
|
+
import "../shared-utils/three/loadTexture.js";
|
|
94
|
+
import "../CSS3DRenderPlugin/index.js";
|
|
95
|
+
import "../CSS3DRenderPlugin/Controller.js";
|
|
41
96
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
42
97
|
import "../shared-utils/animationFrame/index.js";
|
|
43
|
-
const
|
|
98
|
+
const Vo = (o, r) => new t(o, r);
|
|
44
99
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
100
|
+
Vo as PanoCompassPlugin,
|
|
101
|
+
Vo as default
|
|
47
102
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var h = Object.defineProperty, l = Object.defineProperties;
|
|
2
|
+
var d = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var a = Object.getOwnPropertySymbols;
|
|
4
4
|
var u = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
6
|
-
for (var t in
|
|
7
|
-
u.call(
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
b.call(
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
5
|
+
var m = (r, i, t) => i in r ? h(r, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[i] = t, o = (r, i) => {
|
|
6
|
+
for (var t in i || (i = {}))
|
|
7
|
+
u.call(i, t) && m(r, t, i[t]);
|
|
8
|
+
if (a)
|
|
9
|
+
for (var t of a(i))
|
|
10
|
+
b.call(i, t) && m(r, t, i[t]);
|
|
11
|
+
return r;
|
|
12
|
+
}, e = (r, i) => l(r, d(i));
|
|
13
|
+
var p = (r, i, t) => (m(r, typeof i != "symbol" ? i + "" : i, t), t);
|
|
14
14
|
import { Five as v } from "@realsee/five";
|
|
15
15
|
import { Controller as c } from "../base/BasePlugin.js";
|
|
16
16
|
import "../shared-utils/Subscribe.js";
|
|
@@ -18,21 +18,93 @@ import "three";
|
|
|
18
18
|
import "hammerjs";
|
|
19
19
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
20
20
|
import "@realsee/five/line";
|
|
21
|
+
import "../Sculpt/utils/Modules/Global.js";
|
|
22
|
+
import "../Sculpt/utils/Modules/Cursor.js";
|
|
23
|
+
import "../Object3DHelperPlugin/Controller.js";
|
|
21
24
|
import "../shared-utils/three/THREESphere.js";
|
|
25
|
+
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
26
|
+
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
27
|
+
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
28
|
+
import "../shared-utils/three/IObject3D.js";
|
|
29
|
+
import "../shared-utils/three/boundingBox.js";
|
|
30
|
+
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
31
|
+
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
32
|
+
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
33
|
+
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
34
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
35
|
+
import "../shared-utils/positionToVector3.js";
|
|
36
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
37
|
+
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
38
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
39
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
40
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
41
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
42
|
+
import "../shared-utils/three/centerPoint.js";
|
|
43
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
22
44
|
import "animejs";
|
|
45
|
+
import "../shared-utils/isNil.js";
|
|
46
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
23
47
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
24
48
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
25
49
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
26
50
|
import "../shared-utils/five/transformPosition.js";
|
|
27
51
|
import "../shared-utils/five/getFiveModel.js";
|
|
28
52
|
import "../shared-utils/url/absoluteUrl.js";
|
|
29
|
-
import "../
|
|
30
|
-
|
|
53
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
54
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
55
|
+
import "../shared-utils/util.js";
|
|
56
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
57
|
+
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
58
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
59
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
60
|
+
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
61
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
62
|
+
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
63
|
+
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
64
|
+
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
65
|
+
import "../shared-utils/threex/domevents/index.js";
|
|
66
|
+
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
67
|
+
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
68
|
+
import "../Sculpt/utils/three/rayOnLine.js";
|
|
69
|
+
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
70
|
+
import "../shared-utils/Object3DHelper/index.js";
|
|
71
|
+
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
72
|
+
import "../shared-utils/math/rad2Deg.js";
|
|
73
|
+
import "../shared-utils/math/deg2Rad.js";
|
|
74
|
+
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
75
|
+
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
76
|
+
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
77
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
78
|
+
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
79
|
+
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
80
|
+
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
81
|
+
import "../shared-utils/five/fiveModelLoad.js";
|
|
82
|
+
import "../shared-utils/five/FiveDomEvents.js";
|
|
83
|
+
import "../shared-utils/five/calculateThreeMouse.js";
|
|
84
|
+
import "../shared-utils/three/THREERaycaster.js";
|
|
85
|
+
import "../shared-utils/three/PointSelector/index.js";
|
|
86
|
+
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
87
|
+
import "../shared-utils/three/Magnifier.js";
|
|
88
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
89
|
+
import "../shared-utils/three/Assets/index.js";
|
|
90
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
91
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
92
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
93
|
+
import "../Sculpt/Meshes/Line.js";
|
|
94
|
+
import "../Sculpt/typings/style.js";
|
|
95
|
+
import "../shared-utils/five/FiveLine.js";
|
|
96
|
+
import "../shared-utils/tag.js";
|
|
97
|
+
import "../shared-utils/five/vector3ToScreen.js";
|
|
98
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
99
|
+
import "../shared-utils/isTouchDevice.js";
|
|
100
|
+
import "../shared-utils/five/getPosition.js";
|
|
101
|
+
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
102
|
+
class Zt extends c {
|
|
31
103
|
constructor(t) {
|
|
32
104
|
super(t);
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
105
|
+
p(this, "state");
|
|
106
|
+
p(this, "container");
|
|
107
|
+
p(this, "enabled");
|
|
36
108
|
this.five = t, this.five.once("dispose", this.dispose), this.enabled = !0, this.state = this.initState();
|
|
37
109
|
}
|
|
38
110
|
/**
|
|
@@ -40,14 +112,14 @@ class z extends c {
|
|
|
40
112
|
* @param options
|
|
41
113
|
*/
|
|
42
114
|
enable(t) {
|
|
43
|
-
this.enabled = !0, this.updateState(
|
|
115
|
+
this.enabled = !0, this.updateState(e(o({}, t), { userAction: !0 }));
|
|
44
116
|
}
|
|
45
117
|
/**
|
|
46
118
|
* 禁用组件
|
|
47
119
|
* @param options
|
|
48
120
|
*/
|
|
49
121
|
disable(t) {
|
|
50
|
-
this.enabled = !1, this.updateState(
|
|
122
|
+
this.enabled = !1, this.updateState(e(o({}, t), { userAction: !0 }));
|
|
51
123
|
}
|
|
52
124
|
/**
|
|
53
125
|
* 显示 UI
|
|
@@ -56,7 +128,7 @@ class z extends c {
|
|
|
56
128
|
*/
|
|
57
129
|
show(t) {
|
|
58
130
|
if (this.state.enabled)
|
|
59
|
-
return this.setState(
|
|
131
|
+
return this.setState(e(o({}, this.state), { visible: !0 }), t), Promise.resolve();
|
|
60
132
|
}
|
|
61
133
|
/**
|
|
62
134
|
* 隐藏 UI
|
|
@@ -65,7 +137,7 @@ class z extends c {
|
|
|
65
137
|
*/
|
|
66
138
|
hide(t) {
|
|
67
139
|
if (this.state.enabled)
|
|
68
|
-
return this.setState(
|
|
140
|
+
return this.setState(e(o({}, this.state), { visible: !1 }), t), Promise.resolve();
|
|
69
141
|
}
|
|
70
142
|
/**
|
|
71
143
|
* 销毁对象
|
|
@@ -79,11 +151,11 @@ class z extends c {
|
|
|
79
151
|
* @param options @BaseOptions 可选配置
|
|
80
152
|
* @returns
|
|
81
153
|
*/
|
|
82
|
-
setState(t,
|
|
154
|
+
setState(t, s) {
|
|
83
155
|
if (!this.enabled)
|
|
84
156
|
return;
|
|
85
|
-
const
|
|
86
|
-
this.state =
|
|
157
|
+
const n = o({}, this.state);
|
|
158
|
+
this.state = o(o(o({}, this.state), t), s), this.stateChangedCallback(n, s);
|
|
87
159
|
}
|
|
88
160
|
get visible() {
|
|
89
161
|
return this.five.state.mode === v.Mode.Panorama;
|
|
@@ -92,9 +164,9 @@ class z extends c {
|
|
|
92
164
|
this.enabled && (this.container = t, this.render());
|
|
93
165
|
}
|
|
94
166
|
updateState(t) {
|
|
95
|
-
this.setState(
|
|
167
|
+
this.setState(e(o({}, this.state), { enabled: this.enabled, visible: this.visible }), t);
|
|
96
168
|
}
|
|
97
169
|
}
|
|
98
170
|
export {
|
|
99
|
-
|
|
171
|
+
Zt as BasePanoPluginController
|
|
100
172
|
};
|