@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
|
@@ -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 s = (p) => {
|
|
15
15
|
try {
|
|
16
16
|
m(e.next(p));
|
|
17
17
|
} catch (c) {
|
|
18
18
|
o(c);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, i = (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(s, i);
|
|
27
27
|
m((e = e.apply(h, n)).next());
|
|
28
28
|
});
|
|
29
29
|
import * as a from "three";
|
|
@@ -61,89 +61,42 @@ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
|
61
61
|
import "../shared-utils/three/centerPoint.js";
|
|
62
62
|
import "../shared-utils/three/getObjectVisible.js";
|
|
63
63
|
import "@realsee/five/line";
|
|
64
|
-
import "../
|
|
65
|
-
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
66
|
-
import "../vendor/three/build/three.module.js";
|
|
64
|
+
import "../shared-utils/isNil.js";
|
|
67
65
|
import "../shared-utils/three/core/Sphere.js";
|
|
68
66
|
import "animejs";
|
|
69
|
-
import "../shared-utils/isNil.js";
|
|
70
67
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
71
|
-
import "../
|
|
72
|
-
import "../shared-utils/
|
|
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";
|
|
68
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
69
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
92
70
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
93
71
|
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
94
72
|
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";
|
|
101
73
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
102
74
|
import "../Sculpt/Meshes/Line.js";
|
|
75
|
+
import "../Sculpt/typings/style.js";
|
|
103
76
|
import "../shared-utils/five/FiveLine.js";
|
|
77
|
+
import "../shared-utils/three/IObject3D.js";
|
|
104
78
|
import "../Sculpt/utils/removeAllTag.js";
|
|
105
79
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
106
80
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
107
|
-
import "../
|
|
108
|
-
import "../
|
|
81
|
+
import "../shared-utils/util.js";
|
|
82
|
+
import "../shared-utils/three/core/LineGeometry.js";
|
|
109
83
|
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";
|
|
137
84
|
import "../shared-utils/isTouchDevice.js";
|
|
138
|
-
import "../shared-utils/three/geometryUtil.js";
|
|
139
85
|
import "../shared-utils/five/getPosition.js";
|
|
140
86
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
141
87
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
88
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
142
89
|
import "./Assets/roomInfoIcon.js";
|
|
143
90
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
91
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
92
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
93
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
94
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
95
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
96
|
+
import "../shared-utils/five/fiveModelLoad.js";
|
|
144
97
|
import "../shared-utils/animationFrame/index.js";
|
|
145
98
|
const g = { userAction: !0 };
|
|
146
|
-
class
|
|
99
|
+
class Xe extends A {
|
|
147
100
|
constructor(e, t) {
|
|
148
101
|
super(e, t);
|
|
149
102
|
/**
|
|
@@ -174,8 +127,8 @@ class kt extends A {
|
|
|
174
127
|
* @todo 销毁贴图时,最好还是直接销毁贴图吧,this.compassMesh?.material.map 这种都是很深层的引用了。THREE 的建议我看也是自己去管理和销毁公共贴图。
|
|
175
128
|
*/
|
|
176
129
|
r(this, "dispose", () => {
|
|
177
|
-
var e, t, o,
|
|
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(), (
|
|
130
|
+
var e, t, o, s;
|
|
131
|
+
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(), (s = (o = this.entryDoorMesh) == null ? void 0 : o.material.map) == null || s.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);
|
|
179
132
|
});
|
|
180
133
|
/**
|
|
181
134
|
* 添加事件监听
|
|
@@ -220,12 +173,12 @@ class kt extends A {
|
|
|
220
173
|
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);
|
|
221
174
|
});
|
|
222
175
|
r(this, "onFivePanoWillArrive", (e) => {
|
|
223
|
-
var t, o,
|
|
224
|
-
e !== this.five.panoIndex && ((t = this.compassMeshTween) == null || t.dispose(), (o = this.compassMesh) == null || o.material.setValues({ opacity: 0 }), (
|
|
176
|
+
var t, o, s, i;
|
|
177
|
+
e !== this.five.panoIndex && ((t = this.compassMeshTween) == null || t.dispose(), (o = this.compassMesh) == null || o.material.setValues({ opacity: 0 }), (s = this.logoMeshTween) == null || s.dispose(), (i = this.logoMesh) == null || i.material.setValues({ opacity: 0 }));
|
|
225
178
|
});
|
|
226
179
|
r(this, "onFivePanoArrived", (e) => {
|
|
227
|
-
var o,
|
|
228
|
-
const t = (
|
|
180
|
+
var o, s, i, m, p, c, y, I;
|
|
181
|
+
const t = (i = (s = (o = this.five.work) == null ? void 0 : o.observers) == null ? void 0 : s[e]) == null ? void 0 : i.standingPosition;
|
|
229
182
|
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 }) => {
|
|
230
183
|
var l;
|
|
231
184
|
(l = this.compassMesh) == null || l.material.setValues({ opacity: v }), this.five.needsRender = !0;
|
|
@@ -243,16 +196,16 @@ class kt extends A {
|
|
|
243
196
|
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;
|
|
244
197
|
});
|
|
245
198
|
r(this, "onFiveCameraDirectionUpdate", ({ longitude: e, latitude: t }) => {
|
|
246
|
-
var o,
|
|
247
|
-
this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.css3DObject.rotation.z = e, t > 0.66 && this.five.getCurrentState().mode === "Panorama" ? (o = this.roomInfoInstance) == null || o.show() : (
|
|
199
|
+
var o, s;
|
|
200
|
+
this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.css3DObject.rotation.z = e, t > 0.66 && this.five.getCurrentState().mode === "Panorama" ? (o = this.roomInfoInstance) == null || o.show() : (s = this.roomInfoInstance) == null || s.hide());
|
|
248
201
|
});
|
|
249
202
|
// eslint-disable-next-line max-params
|
|
250
|
-
r(this, "onFiveModeChange", (e, t, o,
|
|
203
|
+
r(this, "onFiveModeChange", (e, t, o, s, i) => {
|
|
251
204
|
e !== t && this.setState(
|
|
252
205
|
{
|
|
253
206
|
visible: e === _.Mode.Panorama
|
|
254
207
|
},
|
|
255
|
-
{ userAction:
|
|
208
|
+
{ userAction: i }
|
|
256
209
|
);
|
|
257
210
|
});
|
|
258
211
|
this.five.scene.add(this.group), this.five.once("dispose", this.dispose), this.setState({
|
|
@@ -316,11 +269,11 @@ class kt extends A {
|
|
|
316
269
|
), Promise.resolve();
|
|
317
270
|
}
|
|
318
271
|
setState(e, t = { userAction: !0 }) {
|
|
319
|
-
var
|
|
272
|
+
var s, i;
|
|
320
273
|
const o = JSON.parse(JSON.stringify(this.state));
|
|
321
274
|
this.state = {
|
|
322
|
-
visible: (
|
|
323
|
-
enabled: (
|
|
275
|
+
visible: (s = e.visible) != null ? s : o.visible,
|
|
276
|
+
enabled: (i = e.enabled) != null ? i : o.enabled,
|
|
324
277
|
config: f(f({}, o.config), e.config || {})
|
|
325
278
|
}, this.hooks.emit("stateChange", {
|
|
326
279
|
state: this.state,
|
|
@@ -330,8 +283,8 @@ class kt extends A {
|
|
|
330
283
|
}
|
|
331
284
|
load(e, t, o = !0) {
|
|
332
285
|
return d(this, null, function* () {
|
|
333
|
-
const
|
|
334
|
-
JSON.stringify(this.data) !== JSON.stringify(
|
|
286
|
+
const s = yield this.formatData(e);
|
|
287
|
+
JSON.stringify(this.data) !== JSON.stringify(s) && (this.hooks.emit("dataChange", s, this.data), this.data = f({}, s), this.init(), t && this.setState(t, { userAction: o }), this.hooks.emit("dataLoaded", this.data));
|
|
335
288
|
});
|
|
336
289
|
}
|
|
337
290
|
formatData(e) {
|
|
@@ -343,22 +296,22 @@ class kt extends A {
|
|
|
343
296
|
*/
|
|
344
297
|
init() {
|
|
345
298
|
return d(this, null, function* () {
|
|
346
|
-
var o,
|
|
347
|
-
const e = (
|
|
299
|
+
var o, s, i, m;
|
|
300
|
+
const e = (s = (o = this.data) == null ? void 0 : o.north_rad) != null ? s : null;
|
|
348
301
|
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));
|
|
349
|
-
const t = (m = (
|
|
302
|
+
const t = (m = (i = this.data) == null ? void 0 : i.entrance) != null ? m : null;
|
|
350
303
|
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;
|
|
351
304
|
});
|
|
352
305
|
}
|
|
353
306
|
loadCompassMesh() {
|
|
354
307
|
return d(this, null, function* () {
|
|
355
|
-
const e = this.state.config.compassImageUrl, t = yield M(e), o = new a.CircleGeometry(0.7, 32),
|
|
308
|
+
const e = this.state.config.compassImageUrl, t = yield M(e), o = new a.CircleGeometry(0.7, 32), s = new a.MeshBasicMaterial({
|
|
356
309
|
map: t,
|
|
357
310
|
transparent: !0,
|
|
358
311
|
opacity: 0,
|
|
359
312
|
depthTest: !1
|
|
360
|
-
}),
|
|
361
|
-
return
|
|
313
|
+
}), i = new a.Mesh(o, s);
|
|
314
|
+
return i.name = "pano-compass-mesh", i;
|
|
362
315
|
});
|
|
363
316
|
}
|
|
364
317
|
loadLogoMesh() {
|
|
@@ -367,24 +320,24 @@ class kt extends A {
|
|
|
367
320
|
return;
|
|
368
321
|
const e = this.state.config.logoURL, t = yield M(e);
|
|
369
322
|
t.minFilter = a.NearestFilter, t.magFilter = a.NearestFilter;
|
|
370
|
-
const o = new a.PlaneBufferGeometry(0.4, 0.4),
|
|
323
|
+
const o = new a.PlaneBufferGeometry(0.4, 0.4), s = new a.MeshBasicMaterial({
|
|
371
324
|
map: t,
|
|
372
325
|
opacity: 0,
|
|
373
326
|
transparent: !0,
|
|
374
327
|
depthTest: !1
|
|
375
|
-
}),
|
|
376
|
-
return
|
|
328
|
+
}), i = new a.Mesh(o, s);
|
|
329
|
+
return i.name = "pano-compass-logo-mesh", i;
|
|
377
330
|
});
|
|
378
331
|
}
|
|
379
332
|
loadEntryDoorMesh() {
|
|
380
333
|
return d(this, null, function* () {
|
|
381
|
-
const e = this.state.config.entryDoorImageUrl, t = yield M(e), o = new a.PlaneGeometry(0.2, 0.16),
|
|
334
|
+
const e = this.state.config.entryDoorImageUrl, t = yield M(e), o = new a.PlaneGeometry(0.2, 0.16), s = new a.MeshBasicMaterial({
|
|
382
335
|
map: t,
|
|
383
336
|
transparent: !0,
|
|
384
337
|
opacity: 0.8,
|
|
385
338
|
depthTest: !1
|
|
386
|
-
}),
|
|
387
|
-
return
|
|
339
|
+
}), i = new a.Mesh(o, s);
|
|
340
|
+
return i.name = "pano-compass-entry-door", i;
|
|
388
341
|
});
|
|
389
342
|
}
|
|
390
343
|
loadRoomInfo() {
|
|
@@ -398,5 +351,5 @@ class kt extends A {
|
|
|
398
351
|
}
|
|
399
352
|
}
|
|
400
353
|
export {
|
|
401
|
-
|
|
354
|
+
Xe as PanoCompassController
|
|
402
355
|
};
|
|
@@ -30,93 +30,46 @@ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
|
30
30
|
import "../shared-utils/three/centerPoint.js";
|
|
31
31
|
import "../shared-utils/three/getObjectVisible.js";
|
|
32
32
|
import "@realsee/five/line";
|
|
33
|
-
import "../
|
|
34
|
-
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
35
|
-
import "../vendor/three/build/three.module.js";
|
|
33
|
+
import "../shared-utils/isNil.js";
|
|
36
34
|
import "../shared-utils/three/core/Sphere.js";
|
|
37
35
|
import "animejs";
|
|
38
|
-
import "../shared-utils/isNil.js";
|
|
39
36
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
40
|
-
import "../
|
|
41
|
-
import "../shared-utils/
|
|
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";
|
|
37
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
38
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
61
39
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
62
40
|
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
63
41
|
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";
|
|
70
42
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
71
43
|
import "../Sculpt/Meshes/Line.js";
|
|
44
|
+
import "../Sculpt/typings/style.js";
|
|
72
45
|
import "../shared-utils/five/FiveLine.js";
|
|
46
|
+
import "../shared-utils/three/IObject3D.js";
|
|
73
47
|
import "../Sculpt/utils/removeAllTag.js";
|
|
74
48
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
75
49
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
76
|
-
import "../
|
|
77
|
-
import "../
|
|
50
|
+
import "../shared-utils/util.js";
|
|
51
|
+
import "../shared-utils/three/core/LineGeometry.js";
|
|
78
52
|
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";
|
|
106
53
|
import "../shared-utils/isTouchDevice.js";
|
|
107
|
-
import "../shared-utils/three/geometryUtil.js";
|
|
108
54
|
import "../shared-utils/five/getPosition.js";
|
|
109
55
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
110
56
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
57
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
111
58
|
import "./getRoomInfoInstance.js";
|
|
112
59
|
import "./Assets/roomInfoIcon.js";
|
|
113
60
|
import "../shared-utils/three/loadTexture.js";
|
|
114
61
|
import "../CSS3DRenderPlugin/index.js";
|
|
115
62
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
63
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
64
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
65
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
66
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
67
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
68
|
+
import "../shared-utils/five/fiveModelLoad.js";
|
|
116
69
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
117
70
|
import "../shared-utils/animationFrame/index.js";
|
|
118
|
-
const
|
|
71
|
+
const bo = (o, r) => new t(o, r);
|
|
119
72
|
export {
|
|
120
|
-
|
|
121
|
-
|
|
73
|
+
bo as PanoCompassPlugin,
|
|
74
|
+
bo as default
|
|
122
75
|
};
|
|
@@ -2,7 +2,8 @@ import { Group as g, Vector3 as r, Raycaster as C } from "three";
|
|
|
2
2
|
import { createLine as u } from "../shared-utils/createLine/index.js";
|
|
3
3
|
import "../shared-utils/five/FiveLine.js";
|
|
4
4
|
import "@realsee/five/line";
|
|
5
|
-
|
|
5
|
+
import "../shared-utils/isNil.js";
|
|
6
|
+
const V = (e) => {
|
|
6
7
|
const a = {
|
|
7
8
|
intersection: null,
|
|
8
9
|
disposers: []
|
|
@@ -56,6 +57,6 @@ const U = (e) => {
|
|
|
56
57
|
return { intersection: z, pointAxesHelper: P, movePointTowardsCamera: x, destroy: w, dispose: H, canSeePoint: h };
|
|
57
58
|
};
|
|
58
59
|
export {
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
V as PanoCursorRaycasterPlugin,
|
|
61
|
+
V as default
|
|
61
62
|
};
|
|
@@ -2,15 +2,15 @@ var h = Object.defineProperty, l = Object.defineProperties;
|
|
|
2
2
|
var d = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var a = Object.getOwnPropertySymbols;
|
|
4
4
|
var u = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var p = (e, i, t) => i in e ? h(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, r = (e, i) => {
|
|
6
6
|
for (var t in i || (i = {}))
|
|
7
|
-
u.call(i, t) && e
|
|
7
|
+
u.call(i, t) && p(e, t, i[t]);
|
|
8
8
|
if (a)
|
|
9
9
|
for (var t of a(i))
|
|
10
|
-
b.call(i, t) && e
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
10
|
+
b.call(i, t) && p(e, t, i[t]);
|
|
11
|
+
return e;
|
|
12
|
+
}, o = (e, i) => l(e, d(i));
|
|
13
|
+
var s = (e, i, t) => (p(e, 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";
|
|
@@ -41,90 +41,37 @@ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
|
41
41
|
import "../shared-utils/three/centerPoint.js";
|
|
42
42
|
import "../shared-utils/three/getObjectVisible.js";
|
|
43
43
|
import "@realsee/five/line";
|
|
44
|
-
import "../
|
|
45
|
-
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
46
|
-
import "../vendor/three/build/three.module.js";
|
|
44
|
+
import "../shared-utils/isNil.js";
|
|
47
45
|
import "../shared-utils/three/core/Sphere.js";
|
|
48
46
|
import "animejs";
|
|
49
|
-
import "../shared-utils/isNil.js";
|
|
50
47
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
51
|
-
import "../
|
|
52
|
-
import "../shared-utils/
|
|
53
|
-
import "../shared-utils/three/earcut3D.js";
|
|
54
|
-
import "earcut";
|
|
55
|
-
import "../shared-utils/three/getNormal.js";
|
|
56
|
-
import "../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
57
|
-
import "../Sculpt/typings/style.js";
|
|
58
|
-
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
59
|
-
import "../shared-utils/three/IObject3D.js";
|
|
60
|
-
import "../Sculpt/utils/Modules/Global.js";
|
|
61
|
-
import "../Sculpt/utils/Modules/Cursor.js";
|
|
62
|
-
import "../Object3DHelperPlugin/Controller.js";
|
|
63
|
-
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
64
|
-
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
65
|
-
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
66
|
-
import "../shared-utils/three/boundingBox.js";
|
|
67
|
-
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
68
|
-
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
69
|
-
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
70
|
-
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
71
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
48
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
49
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
72
50
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
73
51
|
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
74
52
|
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
75
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
76
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
77
|
-
import "../shared-utils/util.js";
|
|
78
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
79
|
-
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
80
|
-
import "../shared-utils/five/initialCSS3DRender.js";
|
|
81
53
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
82
54
|
import "../Sculpt/Meshes/Line.js";
|
|
55
|
+
import "../Sculpt/typings/style.js";
|
|
83
56
|
import "../shared-utils/five/FiveLine.js";
|
|
57
|
+
import "../shared-utils/three/IObject3D.js";
|
|
84
58
|
import "../Sculpt/utils/removeAllTag.js";
|
|
85
59
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
86
60
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
87
|
-
import "../
|
|
88
|
-
import "../
|
|
61
|
+
import "../shared-utils/util.js";
|
|
62
|
+
import "../shared-utils/three/core/LineGeometry.js";
|
|
89
63
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
90
|
-
import "../shared-utils/url/absoluteUrl.js";
|
|
91
|
-
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
92
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
93
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
94
|
-
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
95
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
96
|
-
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
97
|
-
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
98
|
-
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
99
|
-
import "../shared-utils/threex/domevents/index.js";
|
|
100
|
-
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
101
|
-
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
102
|
-
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
103
|
-
import "../shared-utils/Object3DHelper/index.js";
|
|
104
|
-
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
105
|
-
import "../shared-utils/math/rad2Deg.js";
|
|
106
|
-
import "../shared-utils/math/deg2Rad.js";
|
|
107
|
-
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
108
|
-
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
109
|
-
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
110
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
111
|
-
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
112
|
-
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
113
|
-
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
114
|
-
import "../shared-utils/five/fiveModelLoad.js";
|
|
115
|
-
import "../shared-utils/five/FiveDomEvents.js";
|
|
116
|
-
import "../shared-utils/five/calculateThreeMouse.js";
|
|
117
64
|
import "../shared-utils/isTouchDevice.js";
|
|
118
|
-
import "../shared-utils/three/geometryUtil.js";
|
|
119
65
|
import "../shared-utils/five/getPosition.js";
|
|
120
66
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
121
67
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
122
|
-
|
|
68
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
69
|
+
class Ct extends c {
|
|
123
70
|
constructor(t) {
|
|
124
71
|
super(t);
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
72
|
+
s(this, "state");
|
|
73
|
+
s(this, "container");
|
|
74
|
+
s(this, "enabled");
|
|
128
75
|
this.five = t, this.five.once("dispose", this.dispose), this.enabled = !0, this.state = this.initState();
|
|
129
76
|
}
|
|
130
77
|
/**
|
|
@@ -132,14 +79,14 @@ class Si extends c {
|
|
|
132
79
|
* @param options
|
|
133
80
|
*/
|
|
134
81
|
enable(t) {
|
|
135
|
-
this.enabled = !0, this.updateState(
|
|
82
|
+
this.enabled = !0, this.updateState(o(r({}, t), { userAction: !0 }));
|
|
136
83
|
}
|
|
137
84
|
/**
|
|
138
85
|
* 禁用组件
|
|
139
86
|
* @param options
|
|
140
87
|
*/
|
|
141
88
|
disable(t) {
|
|
142
|
-
this.enabled = !1, this.updateState(
|
|
89
|
+
this.enabled = !1, this.updateState(o(r({}, t), { userAction: !0 }));
|
|
143
90
|
}
|
|
144
91
|
/**
|
|
145
92
|
* 显示 UI
|
|
@@ -148,7 +95,7 @@ class Si extends c {
|
|
|
148
95
|
*/
|
|
149
96
|
show(t) {
|
|
150
97
|
if (this.state.enabled)
|
|
151
|
-
return this.setState(
|
|
98
|
+
return this.setState(o(r({}, this.state), { visible: !0 }), t), Promise.resolve();
|
|
152
99
|
}
|
|
153
100
|
/**
|
|
154
101
|
* 隐藏 UI
|
|
@@ -157,7 +104,7 @@ class Si extends c {
|
|
|
157
104
|
*/
|
|
158
105
|
hide(t) {
|
|
159
106
|
if (this.state.enabled)
|
|
160
|
-
return this.setState(
|
|
107
|
+
return this.setState(o(r({}, this.state), { visible: !1 }), t), Promise.resolve();
|
|
161
108
|
}
|
|
162
109
|
/**
|
|
163
110
|
* 销毁对象
|
|
@@ -171,11 +118,11 @@ class Si extends c {
|
|
|
171
118
|
* @param options @BaseOptions 可选配置
|
|
172
119
|
* @returns
|
|
173
120
|
*/
|
|
174
|
-
setState(t,
|
|
121
|
+
setState(t, m) {
|
|
175
122
|
if (!this.enabled)
|
|
176
123
|
return;
|
|
177
|
-
const n =
|
|
178
|
-
this.state =
|
|
124
|
+
const n = r({}, this.state);
|
|
125
|
+
this.state = r(r(r({}, this.state), t), m), this.stateChangedCallback(n, m);
|
|
179
126
|
}
|
|
180
127
|
get visible() {
|
|
181
128
|
return this.five.state.mode === v.Mode.Panorama;
|
|
@@ -184,9 +131,9 @@ class Si extends c {
|
|
|
184
131
|
this.enabled && (this.container = t, this.render());
|
|
185
132
|
}
|
|
186
133
|
updateState(t) {
|
|
187
|
-
this.setState(
|
|
134
|
+
this.setState(o(r({}, this.state), { enabled: this.enabled, visible: this.visible }), t);
|
|
188
135
|
}
|
|
189
136
|
}
|
|
190
137
|
export {
|
|
191
|
-
|
|
138
|
+
Ct as BasePanoPluginController
|
|
192
139
|
};
|