@realsee/dnalogel 3.50.16 → 3.50.18-alpha.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/README.md +116 -0
- package/dist/ModelMakerPlugin/Controller.d.ts +2 -0
- package/dist/Sculpt/utils/export.d.ts +18 -0
- package/dist/index.cjs.js +207 -207
- package/dist/index.js +34867 -34776
- package/dist/index.umd.js +211 -211
- package/dist/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
- package/dist/shared-utils/index.d.ts +1 -0
- package/dist/shared-utils/tag.d.ts +41 -2
- package/dist/shared-utils/three/temp.d.ts +2 -2
- package/libs/AreaMakerPlugin/Controller.js +100 -46
- package/libs/AreaMakerPlugin/index.js +64 -10
- package/libs/AreaMakerPlugin/utils/Item.js +156 -100
- package/libs/CSS3DRenderPlugin/Controller.js +93 -44
- package/libs/CSS3DRenderPlugin/index.js +62 -13
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +105 -49
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +130 -77
- package/libs/CruisePlugin/BaseController.js +143 -89
- package/libs/CruisePlugin/Move.js +83 -39
- package/libs/CruisePlugin/Work.js +95 -51
- package/libs/CruisePlugin/index.js +66 -22
- package/libs/CurrentPanoImagePlugin/Controller.js +139 -85
- package/libs/CurrentPanoImagePlugin/index.js +63 -9
- package/libs/GuideLinePlugin/Controller.js +57 -13
- package/libs/GuideLinePlugin/GuideLineItem.js +63 -19
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +6 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +58 -14
- package/libs/GuideLinePlugin/index.js +66 -22
- package/libs/ModelMakerPlugin/Controller.d.ts +2 -0
- package/libs/ModelMakerPlugin/Controller.js +190 -129
- package/libs/ModelMakerPlugin/index.js +63 -21
- package/libs/ModelMakerPlugin/item/baseItem.js +4 -2
- package/libs/ModelMakerPlugin/item/boxItem.js +5 -3
- package/libs/ModelMakerPlugin/item/polygonItem.js +9 -7
- package/libs/ModelMakerPlugin/item/prismItem.js +5 -3
- package/libs/ModelTVVideoPlugin/Plugin.js +96 -47
- package/libs/ModelTVVideoPlugin/index.js +55 -6
- package/libs/Object3DHelperPlugin/Controller.js +42 -25
- package/libs/Object3DHelperPlugin/index.js +28 -12
- package/libs/PanoCompassPlugin/Controller.js +92 -44
- package/libs/PanoCompassPlugin/index.js +63 -15
- package/libs/PanoDoorLabelPlugin/BaseController.js +79 -25
- package/libs/PanoDoorLabelPlugin/Controller.js +132 -78
- package/libs/PanoDoorLabelPlugin/index.js +63 -9
- package/libs/PanoMeasurePlugin/Components/Controller0.js +126 -77
- package/libs/PanoMeasurePlugin/Components/Controller1.js +139 -90
- package/libs/PanoMeasurePlugin/Controller/EditController.js +120 -71
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +120 -70
- package/libs/PanoMeasurePlugin/Controller/index.js +132 -86
- package/libs/PanoMeasurePlugin/Model/area.js +72 -22
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +56 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +64 -15
- package/libs/PanoMeasurePlugin/index.js +62 -16
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +57 -2
- package/libs/PanoRulerProPlugin/Controller.js +88 -33
- package/libs/PanoRulerProPlugin/RulerItems.js +146 -91
- package/libs/PanoRulerProPlugin/index.js +64 -9
- package/libs/PanoSpatialTagPlugin/Plugin.js +177 -128
- package/libs/PanoSpatialTagPlugin/index.js +53 -4
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +116 -60
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +192 -136
- package/libs/PanoTagPlugin/Components/Tag/index.js +194 -139
- package/libs/PanoTagPlugin/Components/TagContainer.js +112 -57
- package/libs/PanoTagPlugin/Components/TagItem.js +204 -149
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +157 -101
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +75 -20
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +86 -31
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +93 -37
- package/libs/PanoTagPlugin/controller/TagRender.js +62 -18
- package/libs/PanoTagPlugin/controller/TagUtil.js +123 -79
- package/libs/PanoTagPlugin/controller/index.js +110 -72
- package/libs/PanoTagPlugin/index.js +72 -28
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +77 -21
- package/libs/PanoVideoPlugin/Controller.js +95 -41
- package/libs/PanoVideoPlugin/VideoMeshController.js +119 -63
- package/libs/PanoVideoPlugin/index.js +66 -12
- package/libs/PipelinePlugin/Controller.js +173 -119
- package/libs/PipelinePlugin/index.js +63 -9
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +70 -14
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +58 -2
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +98 -42
- package/libs/Sculpt/Meshes/Box.js +3 -2
- package/libs/Sculpt/Meshes/Cylinder.js +10 -6
- package/libs/Sculpt/Meshes/Line.js +43 -38
- package/libs/Sculpt/Meshes/LineWithDots.js +14 -10
- package/libs/Sculpt/Meshes/Point.js +24 -20
- package/libs/Sculpt/Meshes/Polygon.js +5 -2
- package/libs/Sculpt/Meshes/Prism.js +19 -16
- package/libs/Sculpt/Objects/Line/Editor.js +6 -5
- package/libs/Sculpt/index.js +15 -14
- package/libs/Sculpt/utils/export.d.ts +18 -0
- package/libs/Sculpt/utils/export.js +21 -0
- package/libs/Sculpt/utils/three/ColoredMesh.js +26 -22
- package/libs/base/BasePlugin.js +14 -10
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +146 -94
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +62 -10
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +109 -56
- package/libs/floorplan/ModelFloorplanPlugin/index.js +62 -9
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +116 -63
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +62 -9
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +105 -52
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +62 -9
- package/libs/floorplan/index.js +4 -0
- package/libs/index.js +208 -206
- package/libs/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
- package/libs/shared-utils/five/fiveEveryReadyListener.js +15 -0
- package/libs/shared-utils/five/index.js +6 -2
- package/libs/shared-utils/five/lookObject.js +31 -27
- package/libs/shared-utils/index.d.ts +1 -0
- package/libs/shared-utils/index.js +19 -17
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +41 -2
- package/libs/shared-utils/tag.js +139 -86
- package/libs/shared-utils/three/index.js +4 -0
- package/libs/shared-utils/three/temp.d.ts +2 -2
- package/libs/shared-utils/three/temp.js +4 -4
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Object3DHelperController as o } from "./Controller.js";
|
|
2
|
-
import { PLUGIN as
|
|
2
|
+
import { PLUGIN as mo } from "./Controller.js";
|
|
3
3
|
import "../base/BasePlugin.js";
|
|
4
4
|
import "../shared-utils/Subscribe.js";
|
|
5
5
|
import "../shared-utils/tag.js";
|
|
@@ -12,7 +12,10 @@ import "../shared-utils/Utils/BaseUtil.js";
|
|
|
12
12
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
13
13
|
import "../shared-utils/five/transformPosition.js";
|
|
14
14
|
import "../shared-utils/three/temp.js";
|
|
15
|
+
import "../shared-utils/three/core/Raycaster.js";
|
|
15
16
|
import "../shared-utils/dom/resizeObserver.js";
|
|
17
|
+
import "../shared-utils/five/fiveEveryReadyListener.js";
|
|
18
|
+
import "../shared-utils/throttle.js";
|
|
16
19
|
import "hammerjs";
|
|
17
20
|
import "../shared-utils/three/PointSelector/index.js";
|
|
18
21
|
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
@@ -33,6 +36,26 @@ import "../shared-utils/three/core/Sphere.js";
|
|
|
33
36
|
import "animejs";
|
|
34
37
|
import "../shared-utils/isNil.js";
|
|
35
38
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
39
|
+
import "../Sculpt/Meshes/Polygon.js";
|
|
40
|
+
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
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 "../shared-utils/five/FiveDomEvents.js";
|
|
51
|
+
import "../shared-utils/five/calculateThreeMouse.js";
|
|
52
|
+
import "../shared-utils/isTouchDevice.js";
|
|
53
|
+
import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
54
|
+
import "../Sculpt/utils/three/rayOnLine.js";
|
|
55
|
+
import "../shared-utils/three/geometryUtil.js";
|
|
56
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
57
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
58
|
+
import "../shared-utils/util.js";
|
|
36
59
|
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
37
60
|
import "../shared-utils/five/initialCSS3DRender.js";
|
|
38
61
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
@@ -40,15 +63,9 @@ import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
|
40
63
|
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
41
64
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
42
65
|
import "../Sculpt/Meshes/Line.js";
|
|
43
|
-
import "../Sculpt/typings/style.js";
|
|
44
66
|
import "../shared-utils/five/FiveLine.js";
|
|
45
|
-
import "../shared-utils/three/IObject3D.js";
|
|
46
67
|
import "../Sculpt/utils/removeAllTag.js";
|
|
47
|
-
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
48
|
-
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
49
|
-
import "../shared-utils/util.js";
|
|
50
68
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
51
|
-
import "../shared-utils/isTouchDevice.js";
|
|
52
69
|
import "../shared-utils/five/getPosition.js";
|
|
53
70
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
54
71
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
@@ -76,7 +93,6 @@ import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
|
76
93
|
import "../shared-utils/threex/domevents/index.js";
|
|
77
94
|
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
78
95
|
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
79
|
-
import "../Sculpt/utils/three/rayOnLine.js";
|
|
80
96
|
import "./FiveControllerWrapper.js";
|
|
81
97
|
import "../shared-utils/Object3DHelper/index.js";
|
|
82
98
|
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
@@ -90,10 +106,10 @@ import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
|
90
106
|
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
91
107
|
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
92
108
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
93
|
-
const
|
|
109
|
+
const oo = (r) => new o(r);
|
|
94
110
|
export {
|
|
95
111
|
o as Object3DHelperController,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
112
|
+
oo as Object3DHelperPlugin,
|
|
113
|
+
mo as PLUGIN,
|
|
114
|
+
oo as default
|
|
99
115
|
};
|
|
@@ -11,19 +11,19 @@ var u = (h, n, e) => n in h ? P(h, n, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
};
|
|
12
12
|
var r = (h, n, e) => (u(h, typeof n != "symbol" ? n + "" : n, e), e);
|
|
13
13
|
var d = (h, n, e) => new Promise((t, o) => {
|
|
14
|
-
var
|
|
14
|
+
var i = (p) => {
|
|
15
15
|
try {
|
|
16
16
|
m(e.next(p));
|
|
17
17
|
} catch (c) {
|
|
18
18
|
o(c);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, s = (p) => {
|
|
21
21
|
try {
|
|
22
22
|
m(e.throw(p));
|
|
23
23
|
} catch (c) {
|
|
24
24
|
o(c);
|
|
25
25
|
}
|
|
26
|
-
}, m = (p) => p.done ? t(p.value) : Promise.resolve(p.value).then(
|
|
26
|
+
}, m = (p) => p.done ? t(p.value) : Promise.resolve(p.value).then(i, s);
|
|
27
27
|
m((e = e.apply(h, n)).next());
|
|
28
28
|
});
|
|
29
29
|
import * as a from "three";
|
|
@@ -44,7 +44,10 @@ import "../shared-utils/Utils/BaseUtil.js";
|
|
|
44
44
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
45
45
|
import "../shared-utils/five/transformPosition.js";
|
|
46
46
|
import "../shared-utils/three/temp.js";
|
|
47
|
+
import "../shared-utils/three/core/Raycaster.js";
|
|
47
48
|
import "../shared-utils/dom/resizeObserver.js";
|
|
49
|
+
import "../shared-utils/five/fiveEveryReadyListener.js";
|
|
50
|
+
import "../shared-utils/throttle.js";
|
|
48
51
|
import "hammerjs";
|
|
49
52
|
import "../shared-utils/three/PointSelector/index.js";
|
|
50
53
|
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
@@ -65,37 +68,82 @@ import "../shared-utils/three/core/Sphere.js";
|
|
|
65
68
|
import "animejs";
|
|
66
69
|
import "../shared-utils/isNil.js";
|
|
67
70
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
68
|
-
import "../
|
|
69
|
-
import "../shared-utils/
|
|
71
|
+
import "../Sculpt/Meshes/Polygon.js";
|
|
72
|
+
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
73
|
+
import "../shared-utils/three/earcut3D.js";
|
|
74
|
+
import "earcut";
|
|
75
|
+
import "../shared-utils/three/getNormal.js";
|
|
76
|
+
import "../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
77
|
+
import "../Sculpt/typings/style.js";
|
|
78
|
+
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
79
|
+
import "../shared-utils/three/IObject3D.js";
|
|
80
|
+
import "../Sculpt/utils/Modules/Global.js";
|
|
81
|
+
import "../Sculpt/utils/Modules/Cursor.js";
|
|
82
|
+
import "../Object3DHelperPlugin/Controller.js";
|
|
83
|
+
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
84
|
+
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
85
|
+
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
86
|
+
import "../shared-utils/three/boundingBox.js";
|
|
87
|
+
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
88
|
+
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
89
|
+
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
90
|
+
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
91
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
70
92
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
71
93
|
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
72
94
|
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
95
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
96
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
97
|
+
import "../shared-utils/util.js";
|
|
98
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
99
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
100
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
73
101
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
74
102
|
import "../Sculpt/Meshes/Line.js";
|
|
75
|
-
import "../Sculpt/typings/style.js";
|
|
76
103
|
import "../shared-utils/five/FiveLine.js";
|
|
77
|
-
import "../shared-utils/three/IObject3D.js";
|
|
78
104
|
import "../Sculpt/utils/removeAllTag.js";
|
|
79
105
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
80
106
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
81
|
-
import "../
|
|
107
|
+
import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
108
|
+
import "../Sculpt/utils/three/rayOnLine.js";
|
|
82
109
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
110
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
111
|
+
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
112
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
113
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
114
|
+
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
115
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
116
|
+
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
117
|
+
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
118
|
+
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
119
|
+
import "../shared-utils/threex/domevents/index.js";
|
|
120
|
+
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
121
|
+
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
122
|
+
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
123
|
+
import "../shared-utils/Object3DHelper/index.js";
|
|
124
|
+
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
125
|
+
import "../shared-utils/math/rad2Deg.js";
|
|
126
|
+
import "../shared-utils/math/deg2Rad.js";
|
|
127
|
+
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
128
|
+
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
129
|
+
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
130
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
131
|
+
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
132
|
+
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
133
|
+
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
134
|
+
import "../shared-utils/five/fiveModelLoad.js";
|
|
135
|
+
import "../shared-utils/five/FiveDomEvents.js";
|
|
136
|
+
import "../shared-utils/five/calculateThreeMouse.js";
|
|
83
137
|
import "../shared-utils/isTouchDevice.js";
|
|
138
|
+
import "../shared-utils/three/geometryUtil.js";
|
|
84
139
|
import "../shared-utils/five/getPosition.js";
|
|
85
140
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
86
141
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
87
|
-
import "../shared-utils/url/absoluteUrl.js";
|
|
88
142
|
import "./Assets/roomInfoIcon.js";
|
|
89
143
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
90
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
91
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
92
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
93
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
94
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
95
|
-
import "../shared-utils/five/fiveModelLoad.js";
|
|
96
144
|
import "../shared-utils/animationFrame/index.js";
|
|
97
145
|
const g = { userAction: !0 };
|
|
98
|
-
class
|
|
146
|
+
class kt extends A {
|
|
99
147
|
constructor(e, t) {
|
|
100
148
|
super(e, t);
|
|
101
149
|
/**
|
|
@@ -126,8 +174,8 @@ class Je extends A {
|
|
|
126
174
|
* @todo 销毁贴图时,最好还是直接销毁贴图吧,this.compassMesh?.material.map 这种都是很深层的引用了。THREE 的建议我看也是自己去管理和销毁公共贴图。
|
|
127
175
|
*/
|
|
128
176
|
r(this, "dispose", () => {
|
|
129
|
-
var e, t, o,
|
|
130
|
-
this.five.scene.remove(this.group), this.group.remove(...this.group.children), (t = (e = this.compassMesh) == null ? void 0 : e.material.map) == null || t.dispose(), (
|
|
177
|
+
var e, t, o, i;
|
|
178
|
+
this.five.scene.remove(this.group), this.group.remove(...this.group.children), (t = (e = this.compassMesh) == null ? void 0 : e.material.map) == null || t.dispose(), (i = (o = this.entryDoorMesh) == null ? void 0 : o.material.map) == null || i.dispose(), this.five.off("dispose", this.dispose), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("panoWillArrive", this.onFivePanoWillArrive), this.five.off("cameraDirectionUpdate", this.onFiveCameraDirectionUpdate);
|
|
131
179
|
});
|
|
132
180
|
/**
|
|
133
181
|
* 添加事件监听
|
|
@@ -172,12 +220,12 @@ class Je extends A {
|
|
|
172
220
|
this.entryDoorMesh && (this.group.remove(this.entryDoorMesh), (e = this.entryDoorMesh.material.map) == null || e.dispose(), this.entryDoorMesh = null), this.roomInfoInstance && (this.roomInfoInstance.dispose(), this.roomInfoInstance = null), this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.dispose(), this.roomInfoWrapperInstance = null);
|
|
173
221
|
});
|
|
174
222
|
r(this, "onFivePanoWillArrive", (e) => {
|
|
175
|
-
var t, o,
|
|
176
|
-
e !== this.five.panoIndex && ((t = this.compassMeshTween) == null || t.dispose(), (o = this.compassMesh) == null || o.material.setValues({ opacity: 0 }), (
|
|
223
|
+
var t, o, i, s;
|
|
224
|
+
e !== this.five.panoIndex && ((t = this.compassMeshTween) == null || t.dispose(), (o = this.compassMesh) == null || o.material.setValues({ opacity: 0 }), (i = this.logoMeshTween) == null || i.dispose(), (s = this.logoMesh) == null || s.material.setValues({ opacity: 0 }));
|
|
177
225
|
});
|
|
178
226
|
r(this, "onFivePanoArrived", (e) => {
|
|
179
|
-
var o,
|
|
180
|
-
const t = (
|
|
227
|
+
var o, i, s, m, p, c, y, I;
|
|
228
|
+
const t = (s = (i = (o = this.five.work) == null ? void 0 : o.observers) == null ? void 0 : i[e]) == null ? void 0 : s.standingPosition;
|
|
181
229
|
if (this.compassMesh && t && (this.compassMesh.position.copy(t.clone().setY(t.y + 0.01)), this.compassMesh.material.opacity === 0 && ((m = this.compassMeshTween) == null || m.dispose(), this.compassMeshTween = D(1e3).onUpdate(({ progress: v }) => {
|
|
182
230
|
var l;
|
|
183
231
|
(l = this.compassMesh) == null || l.material.setValues({ opacity: v }), this.five.needsRender = !0;
|
|
@@ -195,16 +243,16 @@ class Je extends A {
|
|
|
195
243
|
this.roomInfoInstance && this.roomInfoWrapperInstance && t && (this.roomInfoWrapperInstance.css3DObject.position.copy(t.clone().setY(t.y + 0.01)), this.roomInfoInstance.setRoom(this.data.room_observers[e].room)), this.five.needsRender = !0;
|
|
196
244
|
});
|
|
197
245
|
r(this, "onFiveCameraDirectionUpdate", ({ longitude: e, latitude: t }) => {
|
|
198
|
-
var o,
|
|
199
|
-
this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.css3DObject.rotation.z = e, t > 0.66 && this.five.getCurrentState().mode === "Panorama" ? (o = this.roomInfoInstance) == null || o.show() : (
|
|
246
|
+
var o, i;
|
|
247
|
+
this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.css3DObject.rotation.z = e, t > 0.66 && this.five.getCurrentState().mode === "Panorama" ? (o = this.roomInfoInstance) == null || o.show() : (i = this.roomInfoInstance) == null || i.hide());
|
|
200
248
|
});
|
|
201
249
|
// eslint-disable-next-line max-params
|
|
202
|
-
r(this, "onFiveModeChange", (e, t, o,
|
|
250
|
+
r(this, "onFiveModeChange", (e, t, o, i, s) => {
|
|
203
251
|
e !== t && this.setState(
|
|
204
252
|
{
|
|
205
253
|
visible: e === _.Mode.Panorama
|
|
206
254
|
},
|
|
207
|
-
{ userAction:
|
|
255
|
+
{ userAction: s }
|
|
208
256
|
);
|
|
209
257
|
});
|
|
210
258
|
this.five.scene.add(this.group), this.five.once("dispose", this.dispose), this.setState({
|
|
@@ -268,11 +316,11 @@ class Je extends A {
|
|
|
268
316
|
), Promise.resolve();
|
|
269
317
|
}
|
|
270
318
|
setState(e, t = { userAction: !0 }) {
|
|
271
|
-
var
|
|
319
|
+
var i, s;
|
|
272
320
|
const o = JSON.parse(JSON.stringify(this.state));
|
|
273
321
|
this.state = {
|
|
274
|
-
visible: (
|
|
275
|
-
enabled: (
|
|
322
|
+
visible: (i = e.visible) != null ? i : o.visible,
|
|
323
|
+
enabled: (s = e.enabled) != null ? s : o.enabled,
|
|
276
324
|
config: f(f({}, o.config), e.config || {})
|
|
277
325
|
}, this.hooks.emit("stateChange", {
|
|
278
326
|
state: this.state,
|
|
@@ -282,8 +330,8 @@ class Je extends A {
|
|
|
282
330
|
}
|
|
283
331
|
load(e, t, o = !0) {
|
|
284
332
|
return d(this, null, function* () {
|
|
285
|
-
const
|
|
286
|
-
JSON.stringify(this.data) !== JSON.stringify(
|
|
333
|
+
const i = yield this.formatData(e);
|
|
334
|
+
JSON.stringify(this.data) !== JSON.stringify(i) && (this.hooks.emit("dataChange", i, this.data), this.data = f({}, i), this.init(), t && this.setState(t, { userAction: o }), this.hooks.emit("dataLoaded", this.data));
|
|
287
335
|
});
|
|
288
336
|
}
|
|
289
337
|
formatData(e) {
|
|
@@ -295,22 +343,22 @@ class Je extends A {
|
|
|
295
343
|
*/
|
|
296
344
|
init() {
|
|
297
345
|
return d(this, null, function* () {
|
|
298
|
-
var o,
|
|
299
|
-
const e = (
|
|
346
|
+
var o, i, s, m;
|
|
347
|
+
const e = (i = (o = this.data) == null ? void 0 : o.north_rad) != null ? i : null;
|
|
300
348
|
this._clearCompassIfNeed(), e !== null && (this.compassMesh = yield this.loadCompassMesh(), this.compassMesh && (this.compassMesh.rotateX(-Math.PI / 2), this.compassMesh.rotateZ(e - Math.PI / 2), this.group.add(this.compassMesh))), this._clearLogoIfNeed(), this.logoMesh = yield this.loadLogoMesh(), this.logoMesh && (this.logoMesh.rotateX(-Math.PI / 2), this.group.add(this.logoMesh));
|
|
301
|
-
const t = (m = (
|
|
349
|
+
const t = (m = (s = this.data) == null ? void 0 : s.entrance) != null ? m : null;
|
|
302
350
|
this._clearEntryDoorIfNeed(), t !== null && (this.entryDoorMesh = yield this.loadEntryDoorMesh(), this.roomInfoWrapperInstance = this.loadRoomInfo(), this.roomInfoInstance = U(), this.entryDoorMesh.rotateX(-Math.PI / 2), this.roomInfoWrapperInstance && this.roomInfoInstance.appendTo(this.roomInfoWrapperInstance.container), this.group.add(this.entryDoorMesh)), this.onFivePanoArrived(this.five.panoIndex || 0), this.five.needsRender = !0;
|
|
303
351
|
});
|
|
304
352
|
}
|
|
305
353
|
loadCompassMesh() {
|
|
306
354
|
return d(this, null, function* () {
|
|
307
|
-
const e = this.state.config.compassImageUrl, t = yield M(e), o = new a.CircleGeometry(0.7, 32),
|
|
355
|
+
const e = this.state.config.compassImageUrl, t = yield M(e), o = new a.CircleGeometry(0.7, 32), i = new a.MeshBasicMaterial({
|
|
308
356
|
map: t,
|
|
309
357
|
transparent: !0,
|
|
310
358
|
opacity: 0,
|
|
311
359
|
depthTest: !1
|
|
312
|
-
}),
|
|
313
|
-
return
|
|
360
|
+
}), s = new a.Mesh(o, i);
|
|
361
|
+
return s.name = "pano-compass-mesh", s;
|
|
314
362
|
});
|
|
315
363
|
}
|
|
316
364
|
loadLogoMesh() {
|
|
@@ -319,24 +367,24 @@ class Je extends A {
|
|
|
319
367
|
return;
|
|
320
368
|
const e = this.state.config.logoURL, t = yield M(e);
|
|
321
369
|
t.minFilter = a.NearestFilter, t.magFilter = a.NearestFilter;
|
|
322
|
-
const o = new a.PlaneBufferGeometry(0.4, 0.4),
|
|
370
|
+
const o = new a.PlaneBufferGeometry(0.4, 0.4), i = new a.MeshBasicMaterial({
|
|
323
371
|
map: t,
|
|
324
372
|
opacity: 0,
|
|
325
373
|
transparent: !0,
|
|
326
374
|
depthTest: !1
|
|
327
|
-
}),
|
|
328
|
-
return
|
|
375
|
+
}), s = new a.Mesh(o, i);
|
|
376
|
+
return s.name = "pano-compass-logo-mesh", s;
|
|
329
377
|
});
|
|
330
378
|
}
|
|
331
379
|
loadEntryDoorMesh() {
|
|
332
380
|
return d(this, null, function* () {
|
|
333
|
-
const e = this.state.config.entryDoorImageUrl, t = yield M(e), o = new a.PlaneGeometry(0.2, 0.16),
|
|
381
|
+
const e = this.state.config.entryDoorImageUrl, t = yield M(e), o = new a.PlaneGeometry(0.2, 0.16), i = new a.MeshBasicMaterial({
|
|
334
382
|
map: t,
|
|
335
383
|
transparent: !0,
|
|
336
384
|
opacity: 0.8,
|
|
337
385
|
depthTest: !1
|
|
338
|
-
}),
|
|
339
|
-
return
|
|
386
|
+
}), s = new a.Mesh(o, i);
|
|
387
|
+
return s.name = "pano-compass-entry-door", s;
|
|
340
388
|
});
|
|
341
389
|
}
|
|
342
390
|
loadRoomInfo() {
|
|
@@ -350,5 +398,5 @@ class Je extends A {
|
|
|
350
398
|
}
|
|
351
399
|
}
|
|
352
400
|
export {
|
|
353
|
-
|
|
401
|
+
kt as PanoCompassController
|
|
354
402
|
};
|
|
@@ -13,7 +13,10 @@ import "../shared-utils/Utils/BaseUtil.js";
|
|
|
13
13
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
14
14
|
import "../shared-utils/five/transformPosition.js";
|
|
15
15
|
import "../shared-utils/three/temp.js";
|
|
16
|
+
import "../shared-utils/three/core/Raycaster.js";
|
|
16
17
|
import "../shared-utils/dom/resizeObserver.js";
|
|
18
|
+
import "../shared-utils/five/fiveEveryReadyListener.js";
|
|
19
|
+
import "../shared-utils/throttle.js";
|
|
17
20
|
import "hammerjs";
|
|
18
21
|
import "../shared-utils/three/PointSelector/index.js";
|
|
19
22
|
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
@@ -34,41 +37,86 @@ import "../shared-utils/three/core/Sphere.js";
|
|
|
34
37
|
import "animejs";
|
|
35
38
|
import "../shared-utils/isNil.js";
|
|
36
39
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
37
|
-
import "../
|
|
38
|
-
import "../shared-utils/
|
|
40
|
+
import "../Sculpt/Meshes/Polygon.js";
|
|
41
|
+
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
42
|
+
import "../shared-utils/three/earcut3D.js";
|
|
43
|
+
import "earcut";
|
|
44
|
+
import "../shared-utils/three/getNormal.js";
|
|
45
|
+
import "../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
46
|
+
import "../Sculpt/typings/style.js";
|
|
47
|
+
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
48
|
+
import "../shared-utils/three/IObject3D.js";
|
|
49
|
+
import "../Sculpt/utils/Modules/Global.js";
|
|
50
|
+
import "../Sculpt/utils/Modules/Cursor.js";
|
|
51
|
+
import "../Object3DHelperPlugin/Controller.js";
|
|
52
|
+
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
53
|
+
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
54
|
+
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
55
|
+
import "../shared-utils/three/boundingBox.js";
|
|
56
|
+
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
57
|
+
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
58
|
+
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
59
|
+
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
60
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
39
61
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
40
62
|
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
41
63
|
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
64
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
65
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
66
|
+
import "../shared-utils/util.js";
|
|
67
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
68
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
69
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
42
70
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
43
71
|
import "../Sculpt/Meshes/Line.js";
|
|
44
|
-
import "../Sculpt/typings/style.js";
|
|
45
72
|
import "../shared-utils/five/FiveLine.js";
|
|
46
|
-
import "../shared-utils/three/IObject3D.js";
|
|
47
73
|
import "../Sculpt/utils/removeAllTag.js";
|
|
48
74
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
49
75
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
50
|
-
import "../
|
|
76
|
+
import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
77
|
+
import "../Sculpt/utils/three/rayOnLine.js";
|
|
51
78
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
79
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
80
|
+
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
81
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
82
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
83
|
+
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
84
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
85
|
+
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
86
|
+
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
87
|
+
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
88
|
+
import "../shared-utils/threex/domevents/index.js";
|
|
89
|
+
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
90
|
+
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
91
|
+
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
92
|
+
import "../shared-utils/Object3DHelper/index.js";
|
|
93
|
+
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
94
|
+
import "../shared-utils/math/rad2Deg.js";
|
|
95
|
+
import "../shared-utils/math/deg2Rad.js";
|
|
96
|
+
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
97
|
+
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
98
|
+
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
99
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
100
|
+
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
101
|
+
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
102
|
+
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
103
|
+
import "../shared-utils/five/fiveModelLoad.js";
|
|
104
|
+
import "../shared-utils/five/FiveDomEvents.js";
|
|
105
|
+
import "../shared-utils/five/calculateThreeMouse.js";
|
|
52
106
|
import "../shared-utils/isTouchDevice.js";
|
|
107
|
+
import "../shared-utils/three/geometryUtil.js";
|
|
53
108
|
import "../shared-utils/five/getPosition.js";
|
|
54
109
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
55
110
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
56
|
-
import "../shared-utils/url/absoluteUrl.js";
|
|
57
111
|
import "./getRoomInfoInstance.js";
|
|
58
112
|
import "./Assets/roomInfoIcon.js";
|
|
59
113
|
import "../shared-utils/three/loadTexture.js";
|
|
60
114
|
import "../CSS3DRenderPlugin/index.js";
|
|
61
115
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
62
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
63
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
64
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
65
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
66
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
67
|
-
import "../shared-utils/five/fiveModelLoad.js";
|
|
68
116
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
69
117
|
import "../shared-utils/animationFrame/index.js";
|
|
70
|
-
const
|
|
118
|
+
const fr = (o, r) => new t(o, r);
|
|
71
119
|
export {
|
|
72
|
-
|
|
73
|
-
|
|
120
|
+
fr as PanoCompassPlugin,
|
|
121
|
+
fr as default
|
|
74
122
|
};
|