@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
|
@@ -2,30 +2,30 @@ var g = Object.defineProperty, w = Object.defineProperties;
|
|
|
2
2
|
var v = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var f = Object.getOwnPropertySymbols;
|
|
4
4
|
var A = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
6
|
-
for (var t in
|
|
7
|
-
A.call(
|
|
5
|
+
var m = (s, e, t) => e in s ? g(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, n = (s, e) => {
|
|
6
|
+
for (var t in e || (e = {}))
|
|
7
|
+
A.call(e, t) && m(s, t, e[t]);
|
|
8
8
|
if (f)
|
|
9
|
-
for (var t of f(
|
|
10
|
-
S.call(
|
|
11
|
-
return
|
|
12
|
-
}, u = (
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
9
|
+
for (var t of f(e))
|
|
10
|
+
S.call(e, t) && m(s, t, e[t]);
|
|
11
|
+
return s;
|
|
12
|
+
}, u = (s, e) => w(s, v(e));
|
|
13
|
+
var o = (s, e, t) => (m(s, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
|
+
var c = (s, e, t) => new Promise((i, r) => {
|
|
15
|
+
var a = (h) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
|
|
17
|
+
d(t.next(h));
|
|
18
|
+
} catch (l) {
|
|
19
|
+
r(l);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, p = (h) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
24
|
-
} catch (
|
|
25
|
-
|
|
23
|
+
d(t.throw(h));
|
|
24
|
+
} catch (l) {
|
|
25
|
+
r(l);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, d = (h) => h.done ? i(h.value) : Promise.resolve(h.value).then(a, p);
|
|
28
|
+
d((t = t.apply(s, e)).next());
|
|
29
29
|
});
|
|
30
30
|
import _ from "./Components/Main.js";
|
|
31
31
|
import { equal as y } from "../../shared-utils/equal.js";
|
|
@@ -74,135 +74,82 @@ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
|
74
74
|
import "../../shared-utils/three/centerPoint.js";
|
|
75
75
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
76
76
|
import "@realsee/five/line";
|
|
77
|
-
import "../../
|
|
78
|
-
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
79
|
-
import "../../vendor/three/build/three.module.js";
|
|
77
|
+
import "../../shared-utils/isNil.js";
|
|
80
78
|
import "../../shared-utils/three/core/Sphere.js";
|
|
81
79
|
import "animejs";
|
|
82
|
-
import "../../shared-utils/isNil.js";
|
|
83
80
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
84
|
-
import "../../
|
|
85
|
-
import "../../shared-utils/
|
|
86
|
-
import "../../shared-utils/three/earcut3D.js";
|
|
87
|
-
import "earcut";
|
|
88
|
-
import "../../shared-utils/three/getNormal.js";
|
|
89
|
-
import "../../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
90
|
-
import "../../Sculpt/typings/style.js";
|
|
91
|
-
import "../../Sculpt/utils/three/ColoredMesh.js";
|
|
92
|
-
import "../../shared-utils/three/IObject3D.js";
|
|
93
|
-
import "../../Sculpt/utils/Modules/Global.js";
|
|
94
|
-
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
95
|
-
import "../../Object3DHelperPlugin/Controller.js";
|
|
96
|
-
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
97
|
-
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
98
|
-
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
99
|
-
import "../../shared-utils/three/boundingBox.js";
|
|
100
|
-
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
101
|
-
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
102
|
-
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
103
|
-
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
104
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
81
|
+
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
82
|
+
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
105
83
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
106
84
|
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
107
85
|
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
108
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
109
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
110
|
-
import "../../shared-utils/util.js";
|
|
111
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
112
|
-
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
113
|
-
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
114
86
|
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
115
87
|
import "../../Sculpt/Meshes/Line.js";
|
|
88
|
+
import "../../Sculpt/typings/style.js";
|
|
116
89
|
import "../../shared-utils/five/FiveLine.js";
|
|
90
|
+
import "../../shared-utils/three/IObject3D.js";
|
|
117
91
|
import "../../Sculpt/utils/removeAllTag.js";
|
|
118
92
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
119
93
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
120
|
-
import "../../
|
|
121
|
-
import "../../
|
|
94
|
+
import "../../shared-utils/util.js";
|
|
95
|
+
import "../../shared-utils/three/core/LineGeometry.js";
|
|
122
96
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
123
|
-
import "../../shared-utils/url/absoluteUrl.js";
|
|
124
|
-
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
125
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
126
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
127
|
-
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
128
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
129
|
-
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
130
|
-
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
131
|
-
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
132
|
-
import "../../shared-utils/threex/domevents/index.js";
|
|
133
|
-
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
134
|
-
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
135
|
-
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
136
|
-
import "../../shared-utils/Object3DHelper/index.js";
|
|
137
|
-
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
138
|
-
import "../../shared-utils/math/rad2Deg.js";
|
|
139
|
-
import "../../shared-utils/math/deg2Rad.js";
|
|
140
|
-
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
141
|
-
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
142
|
-
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
143
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
144
|
-
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
145
|
-
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
146
|
-
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
147
|
-
import "../../shared-utils/five/fiveModelLoad.js";
|
|
148
|
-
import "../../shared-utils/five/FiveDomEvents.js";
|
|
149
|
-
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
150
97
|
import "../../shared-utils/isTouchDevice.js";
|
|
151
|
-
import "../../shared-utils/three/geometryUtil.js";
|
|
152
98
|
import "../../shared-utils/five/getPosition.js";
|
|
153
99
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
154
100
|
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
101
|
+
import "../../shared-utils/url/absoluteUrl.js";
|
|
155
102
|
import "../Assets/floorplanExtraObject.js";
|
|
156
|
-
class
|
|
103
|
+
class Ht extends O {
|
|
157
104
|
constructor(t, i) {
|
|
158
105
|
super(t);
|
|
159
106
|
// =============== public properties =================
|
|
160
|
-
|
|
161
|
-
|
|
107
|
+
o(this, "name", "panoFloorplanRadarPlugin");
|
|
108
|
+
o(this, "state");
|
|
162
109
|
// =============== protected properties =================
|
|
163
|
-
|
|
110
|
+
o(this, "data");
|
|
164
111
|
// =============== private properties =================
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
112
|
+
o(this, "app");
|
|
113
|
+
o(this, "wrapperSelector", "");
|
|
114
|
+
o(this, "wrapper", null);
|
|
115
|
+
o(this, "disposed", !1);
|
|
116
|
+
o(this, "extraObjects", []);
|
|
117
|
+
o(this, "highlightData", {});
|
|
118
|
+
o(this, "dispose", () => {
|
|
172
119
|
var t;
|
|
173
120
|
this.disposed = !0, (t = this.app) == null || t.$destroy(), this.wrapper = null, this.wrapperSelector = "", this.hooks.emit("dispose");
|
|
174
121
|
});
|
|
175
|
-
|
|
122
|
+
o(this, "highlight", (t) => {
|
|
176
123
|
this.state.config.highlightEnable && (this.highlightData = t, this.render());
|
|
177
124
|
});
|
|
178
|
-
|
|
125
|
+
o(this, "unhighlight", () => {
|
|
179
126
|
this.highlightData = {}, this.render();
|
|
180
127
|
});
|
|
181
|
-
|
|
182
|
-
var
|
|
128
|
+
o(this, "_disable", (t) => {
|
|
129
|
+
var r;
|
|
183
130
|
const { userAction: i } = t;
|
|
184
|
-
(
|
|
131
|
+
(r = this.app) == null || r.$destroy(), this.app = void 0, this.hooks.emit("disable", { userAction: i });
|
|
185
132
|
});
|
|
186
133
|
this.five = t;
|
|
187
|
-
const
|
|
134
|
+
const r = {
|
|
188
135
|
hoverEnable: !0,
|
|
189
136
|
highlightEnable: !0,
|
|
190
137
|
cameraImageUrl: D,
|
|
191
138
|
missingFloorImageUrl: this.staticPrefix + "/release/web/saas/missing-floor.d687a5ed.png"
|
|
192
|
-
},
|
|
193
|
-
this.state = { enabled: !0, visible: !0, config:
|
|
139
|
+
}, a = n(n({}, r), i == null ? void 0 : i.configs);
|
|
140
|
+
this.state = { enabled: !0, visible: !0, config: a }, i != null && i.wrapper && console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法"), typeof (i == null ? void 0 : i.wrapper) == "string" ? this.wrapperSelector = i.wrapper : (i == null ? void 0 : i.wrapper) instanceof Element && (this.wrapper = i.wrapper), t.once("dispose", this.dispose);
|
|
194
141
|
}
|
|
195
|
-
load(t, i,
|
|
196
|
-
return
|
|
197
|
-
function
|
|
198
|
-
return Object.prototype.hasOwnProperty.apply(
|
|
142
|
+
load(t, i, r = !0) {
|
|
143
|
+
return c(this, null, function* () {
|
|
144
|
+
function a(l) {
|
|
145
|
+
return Object.prototype.hasOwnProperty.apply(l, ["version"]);
|
|
199
146
|
}
|
|
200
|
-
const
|
|
201
|
-
this.data = yield b(
|
|
147
|
+
const p = JSON.parse(JSON.stringify(t)), d = a(p) ? p.data : p, h = this.data;
|
|
148
|
+
this.data = yield b(d), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, h), i && this.updateState(i, r), this.render();
|
|
202
149
|
});
|
|
203
150
|
}
|
|
204
151
|
show() {
|
|
205
|
-
return
|
|
152
|
+
return c(this, arguments, function* (t = {}) {
|
|
206
153
|
if (this.state.visible)
|
|
207
154
|
return;
|
|
208
155
|
const i = t.userAction !== void 0 ? t.userAction : !0;
|
|
@@ -210,7 +157,7 @@ class Bi extends O {
|
|
|
210
157
|
});
|
|
211
158
|
}
|
|
212
159
|
hide() {
|
|
213
|
-
return
|
|
160
|
+
return c(this, arguments, function* (t = {}) {
|
|
214
161
|
if (!this.state.visible)
|
|
215
162
|
return;
|
|
216
163
|
const i = t.userAction !== void 0 ? t.userAction : !0;
|
|
@@ -231,14 +178,14 @@ class Bi extends O {
|
|
|
231
178
|
}
|
|
232
179
|
/** 更改插件 State */
|
|
233
180
|
setState(t, i = {}) {
|
|
234
|
-
const
|
|
235
|
-
if (this.updateState(t,
|
|
236
|
-
const
|
|
237
|
-
t.enabled ? this._enable(
|
|
181
|
+
const r = this.state, a = i.userAction !== void 0 ? i.userAction : !0;
|
|
182
|
+
if (this.updateState(t, a), t.enabled !== void 0 && r.enabled !== t.enabled) {
|
|
183
|
+
const p = { userAction: a };
|
|
184
|
+
t.enabled ? this._enable(p) : this._disable(p);
|
|
238
185
|
}
|
|
239
|
-
if (t.visible !== void 0 &&
|
|
240
|
-
const
|
|
241
|
-
t.visible ? this._show(
|
|
186
|
+
if (t.visible !== void 0 && r.visible !== t.visible) {
|
|
187
|
+
const p = { userAction: a };
|
|
188
|
+
t.visible ? this._show(p) : this._hide(p);
|
|
242
189
|
}
|
|
243
190
|
}
|
|
244
191
|
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
@@ -252,7 +199,7 @@ class Bi extends O {
|
|
|
252
199
|
this.data && (this.extraObjects = x(t, this.five, this.data), this.render());
|
|
253
200
|
}
|
|
254
201
|
formatData(t) {
|
|
255
|
-
return
|
|
202
|
+
return c(this, null, function* () {
|
|
256
203
|
return yield b(t.data);
|
|
257
204
|
});
|
|
258
205
|
}
|
|
@@ -273,8 +220,8 @@ class Bi extends O {
|
|
|
273
220
|
this.hooks.emit("hide", { userAction: i }), this.render();
|
|
274
221
|
}
|
|
275
222
|
updateState(t, i) {
|
|
276
|
-
const
|
|
277
|
-
this.state = u(n(n({}, this.state), t), { config:
|
|
223
|
+
const r = this.state, a = t.config ? n(n({}, r.config), t.config) : r.config;
|
|
224
|
+
this.state = u(n(n({}, this.state), t), { config: a }), !y(this.state, r, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: r, userAction: i });
|
|
278
225
|
}
|
|
279
226
|
render() {
|
|
280
227
|
if (this.disposed || !this.state.enabled)
|
|
@@ -296,5 +243,5 @@ class Bi extends O {
|
|
|
296
243
|
}
|
|
297
244
|
}
|
|
298
245
|
export {
|
|
299
|
-
|
|
246
|
+
Ht as Controller
|
|
300
247
|
};
|
|
@@ -45,88 +45,35 @@ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
|
45
45
|
import "../../shared-utils/three/centerPoint.js";
|
|
46
46
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
47
47
|
import "@realsee/five/line";
|
|
48
|
-
import "../../
|
|
49
|
-
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
50
|
-
import "../../vendor/three/build/three.module.js";
|
|
48
|
+
import "../../shared-utils/isNil.js";
|
|
51
49
|
import "../../shared-utils/three/core/Sphere.js";
|
|
52
50
|
import "animejs";
|
|
53
|
-
import "../../shared-utils/isNil.js";
|
|
54
51
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
55
|
-
import "../../
|
|
56
|
-
import "../../shared-utils/
|
|
57
|
-
import "../../shared-utils/three/earcut3D.js";
|
|
58
|
-
import "earcut";
|
|
59
|
-
import "../../shared-utils/three/getNormal.js";
|
|
60
|
-
import "../../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
61
|
-
import "../../Sculpt/typings/style.js";
|
|
62
|
-
import "../../Sculpt/utils/three/ColoredMesh.js";
|
|
63
|
-
import "../../shared-utils/three/IObject3D.js";
|
|
64
|
-
import "../../Sculpt/utils/Modules/Global.js";
|
|
65
|
-
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
66
|
-
import "../../Object3DHelperPlugin/Controller.js";
|
|
67
|
-
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
68
|
-
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
69
|
-
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
70
|
-
import "../../shared-utils/three/boundingBox.js";
|
|
71
|
-
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
72
|
-
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
73
|
-
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
74
|
-
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
75
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
52
|
+
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
53
|
+
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
76
54
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
77
55
|
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
78
56
|
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
79
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
80
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
81
|
-
import "../../shared-utils/util.js";
|
|
82
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
83
|
-
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
84
|
-
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
85
57
|
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
86
58
|
import "../../Sculpt/Meshes/Line.js";
|
|
59
|
+
import "../../Sculpt/typings/style.js";
|
|
87
60
|
import "../../shared-utils/five/FiveLine.js";
|
|
61
|
+
import "../../shared-utils/three/IObject3D.js";
|
|
88
62
|
import "../../Sculpt/utils/removeAllTag.js";
|
|
89
63
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
90
64
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
91
|
-
import "../../
|
|
92
|
-
import "../../
|
|
65
|
+
import "../../shared-utils/util.js";
|
|
66
|
+
import "../../shared-utils/three/core/LineGeometry.js";
|
|
93
67
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
94
|
-
import "../../shared-utils/url/absoluteUrl.js";
|
|
95
|
-
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
96
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
97
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
98
|
-
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
99
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
100
|
-
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
101
|
-
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
102
|
-
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
103
|
-
import "../../shared-utils/threex/domevents/index.js";
|
|
104
|
-
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
105
|
-
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
106
|
-
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
107
|
-
import "../../shared-utils/Object3DHelper/index.js";
|
|
108
|
-
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
109
|
-
import "../../shared-utils/math/rad2Deg.js";
|
|
110
|
-
import "../../shared-utils/math/deg2Rad.js";
|
|
111
|
-
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
112
|
-
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
113
|
-
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
114
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
115
|
-
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
116
|
-
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
117
|
-
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
118
|
-
import "../../shared-utils/five/fiveModelLoad.js";
|
|
119
|
-
import "../../shared-utils/five/FiveDomEvents.js";
|
|
120
|
-
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
121
68
|
import "../../shared-utils/isTouchDevice.js";
|
|
122
|
-
import "../../shared-utils/three/geometryUtil.js";
|
|
123
69
|
import "../../shared-utils/five/getPosition.js";
|
|
124
70
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
125
71
|
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
72
|
+
import "../../shared-utils/url/absoluteUrl.js";
|
|
126
73
|
import "../utils/formatData.js";
|
|
127
74
|
import "../Assets/floorplanExtraObject.js";
|
|
128
|
-
const
|
|
75
|
+
const jo = (o, r) => new t(o, r);
|
|
129
76
|
export {
|
|
130
|
-
|
|
131
|
-
|
|
77
|
+
jo as PanoFloorplanRadarPlugin,
|
|
78
|
+
jo as default
|
|
132
79
|
};
|