@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,36 +2,36 @@ var $ = Object.defineProperty, _ = Object.defineProperties;
|
|
|
2
2
|
var k = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var R = Object.getOwnPropertySymbols;
|
|
4
4
|
var P = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var C = (
|
|
5
|
+
var C = (o, e, t) => e in o ? $(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, g = (o, e) => {
|
|
6
6
|
for (var t in e || (e = {}))
|
|
7
|
-
P.call(e, t) && C(
|
|
7
|
+
P.call(e, t) && C(o, t, e[t]);
|
|
8
8
|
if (R)
|
|
9
9
|
for (var t of R(e))
|
|
10
|
-
L.call(e, t) && C(
|
|
11
|
-
return
|
|
12
|
-
}, v = (
|
|
13
|
-
var n = (
|
|
14
|
-
var
|
|
15
|
-
var d = (
|
|
10
|
+
L.call(e, t) && C(o, t, e[t]);
|
|
11
|
+
return o;
|
|
12
|
+
}, v = (o, e) => _(o, k(e));
|
|
13
|
+
var n = (o, e, t) => (C(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
|
+
var l = (o, e, t) => new Promise((r, s) => {
|
|
15
|
+
var d = (c) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
|
|
17
|
+
f(t.next(c));
|
|
18
|
+
} catch (S) {
|
|
19
|
+
s(S);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, u = (c) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
24
|
-
} catch (
|
|
25
|
-
|
|
23
|
+
f(t.throw(c));
|
|
24
|
+
} catch (S) {
|
|
25
|
+
s(S);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, f = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(d, u);
|
|
28
|
+
f((t = t.apply(o, e)).next());
|
|
29
29
|
});
|
|
30
30
|
import { anyPositionToVector3 as q } from "../../../shared-utils/positionToVector3.js";
|
|
31
31
|
import B from "./CSS3DRenderer.js";
|
|
32
32
|
import { Subscribe as A } from "../../../shared-utils/Subscribe.js";
|
|
33
33
|
import { CSS3DObjectPlus as W } from "./CSS3DObject.js";
|
|
34
|
-
import { MinRatio as
|
|
34
|
+
import { MinRatio as tt } from "./CSS3DObject.js";
|
|
35
35
|
import { CSS3DFrontScene as H, CSS3DBehindScene as T } from "./CSS3DScene.js";
|
|
36
36
|
import { CSS3DFrontGroup as U, CSS3DBehindGroup as z } from "./CSS3DGroup.js";
|
|
37
37
|
import { CSS3DObject as j } from "three/examples/jsm/renderers/CSS3DRenderer";
|
|
@@ -67,76 +67,24 @@ import "../../../Sculpt/Meshes/Line.js";
|
|
|
67
67
|
import "../../../Sculpt/typings/style.js";
|
|
68
68
|
import "../../../shared-utils/five/FiveLine.js";
|
|
69
69
|
import "@realsee/five/line";
|
|
70
|
-
import "../../../
|
|
71
|
-
import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
72
|
-
import "../../../vendor/three/build/three.module.js";
|
|
70
|
+
import "../../../shared-utils/isNil.js";
|
|
73
71
|
import "../../../shared-utils/three/IObject3D.js";
|
|
74
72
|
import "../../../Sculpt/utils/removeAllTag.js";
|
|
75
73
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
76
74
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
77
75
|
import "../../../shared-utils/util.js";
|
|
76
|
+
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
78
77
|
import "../../../shared-utils/three/core/Sphere.js";
|
|
79
78
|
import "animejs";
|
|
80
|
-
import "../../../shared-utils/isNil.js";
|
|
81
79
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
82
|
-
import "../../../Sculpt/Meshes/Polygon.js";
|
|
83
|
-
import "../../../shared-utils/three/generatePolygonGeometry.js";
|
|
84
|
-
import "../../../shared-utils/three/earcut3D.js";
|
|
85
|
-
import "earcut";
|
|
86
|
-
import "../../../shared-utils/three/getNormal.js";
|
|
87
|
-
import "../../../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
88
|
-
import "../../../Sculpt/utils/three/ColoredMesh.js";
|
|
89
|
-
import "../../../Sculpt/utils/Modules/Global.js";
|
|
90
|
-
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
91
|
-
import "../../../Object3DHelperPlugin/Controller.js";
|
|
92
|
-
import "../../../base/BasePlugin.js";
|
|
93
|
-
import "../../../shared-utils/url/absoluteUrl.js";
|
|
94
|
-
import "../../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
95
|
-
import "../../../Sculpt/utils/three/rayOnLine.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 "./CSS3DRender.js";
|
|
105
|
-
import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
106
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
107
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
108
|
-
import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
109
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
110
|
-
import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
111
|
-
import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
112
|
-
import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
113
|
-
import "../../../shared-utils/threex/domevents/index.js";
|
|
114
|
-
import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
115
|
-
import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
116
|
-
import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
117
|
-
import "../../../shared-utils/Object3DHelper/index.js";
|
|
118
|
-
import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
119
|
-
import "../../../shared-utils/math/rad2Deg.js";
|
|
120
|
-
import "../../../shared-utils/math/deg2Rad.js";
|
|
121
|
-
import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
122
|
-
import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
123
|
-
import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
124
|
-
import "../generateBehindFiveElement.js";
|
|
125
|
-
import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
126
|
-
import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
127
|
-
import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
128
|
-
import "../../../shared-utils/five/fiveModelLoad.js";
|
|
129
|
-
import "../../../shared-utils/five/FiveDomEvents.js";
|
|
130
|
-
import "../../../shared-utils/five/calculateThreeMouse.js";
|
|
131
|
-
import "../../../shared-utils/isTouchDevice.js";
|
|
132
|
-
import "../../../shared-utils/three/geometryUtil.js";
|
|
133
80
|
import "./CSS3DSprite.js";
|
|
81
|
+
import "../../../shared-utils/isTouchDevice.js";
|
|
134
82
|
import "../../../shared-utils/five/getPosition.js";
|
|
135
83
|
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
136
84
|
import "../../../shared-utils/three/PointSelector/utils/contents.js";
|
|
137
85
|
import "../getAllCSS3DObject.js";
|
|
138
|
-
const J = 3, G = "CSS3DRenderer",
|
|
139
|
-
console.error(`${
|
|
86
|
+
const J = 3, G = "CSS3DRenderer", m = `${G}@${J}`, p = () => {
|
|
87
|
+
console.error(`${m} is disposed`);
|
|
140
88
|
}, i = {
|
|
141
89
|
css3DObjects: [],
|
|
142
90
|
frontModeStore: {
|
|
@@ -146,14 +94,14 @@ const J = 3, G = "CSS3DRenderer", l = `${G}@${J}`, a = () => {
|
|
|
146
94
|
css3DRenderer: new B()
|
|
147
95
|
}
|
|
148
96
|
};
|
|
149
|
-
function w(
|
|
150
|
-
return i.css3DObjects.find((e) => e.id ===
|
|
97
|
+
function w(o) {
|
|
98
|
+
return i.css3DObjects.find((e) => e.id === o);
|
|
151
99
|
}
|
|
152
|
-
function K(
|
|
153
|
-
i.frontModeStore.css3DRenderer.setWrapper(
|
|
100
|
+
function K(o) {
|
|
101
|
+
i.frontModeStore.css3DRenderer.setWrapper(o);
|
|
154
102
|
}
|
|
155
|
-
function Q(
|
|
156
|
-
i.behindModeStore.css3DRenderer.setWrapper(
|
|
103
|
+
function Q(o) {
|
|
104
|
+
i.behindModeStore.css3DRenderer.setWrapper(o);
|
|
157
105
|
}
|
|
158
106
|
class y {
|
|
159
107
|
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
|
|
@@ -204,9 +152,9 @@ class y {
|
|
|
204
152
|
*/
|
|
205
153
|
n(this, "create3DElement", (e, t, r) => {
|
|
206
154
|
if (this.state.disposed)
|
|
207
|
-
return
|
|
208
|
-
const
|
|
209
|
-
const
|
|
155
|
+
return p();
|
|
156
|
+
const s = (() => {
|
|
157
|
+
const h = {
|
|
210
158
|
ratio: 216e-5,
|
|
211
159
|
devicePixelRatio: 1,
|
|
212
160
|
mode: "front",
|
|
@@ -215,27 +163,27 @@ class y {
|
|
|
215
163
|
pointerEvents: "none",
|
|
216
164
|
wrapperStyle: {}
|
|
217
165
|
};
|
|
218
|
-
return Object.assign(
|
|
166
|
+
return Object.assign(h, r);
|
|
219
167
|
})(), d = t.map(q);
|
|
220
168
|
if ((d == null ? void 0 : d.length) < 4)
|
|
221
|
-
return console.error(`${
|
|
222
|
-
const { ratio:
|
|
169
|
+
return console.error(`${m}: requires 4 point but params may have fewer`);
|
|
170
|
+
const { ratio: u, devicePixelRatio: f, mode: c, autoRender: S, container: O, pointerEvents: F, wrapperStyle: I } = s;
|
|
223
171
|
let b = !1;
|
|
224
|
-
const
|
|
225
|
-
i.css3DObjects.push(
|
|
172
|
+
const a = this.createObject(d, { ratio: u, dpr: f, container: O, mode: c, pointerEvents: F, wrapperStyle: I });
|
|
173
|
+
i.css3DObjects.push(a), s.scene && this.setScene(s.scene);
|
|
226
174
|
const N = () => {
|
|
227
175
|
if (b)
|
|
228
176
|
return;
|
|
229
|
-
const
|
|
230
|
-
|
|
177
|
+
const h = a.mode === "front" ? this.getFrontCSS3DObjectGroup() : this.getBehindCSS3DObjectGroup();
|
|
178
|
+
h && h.add(a);
|
|
231
179
|
}, E = () => {
|
|
232
180
|
b || (N(), this.render(e), this.hooks.emit("render"));
|
|
233
|
-
}, D = (
|
|
234
|
-
return
|
|
235
|
-
id:
|
|
181
|
+
}, D = (h) => this.setVisibleById(a.id, h), M = (h) => this.setEnabledById(a.id, h), x = () => (b = !0, a.removeFromParent(), !0), V = c === "front" ? i.frontModeStore.css3DRenderer : i.behindModeStore.css3DRenderer;
|
|
182
|
+
return S && E(), {
|
|
183
|
+
id: a.uuid,
|
|
236
184
|
container: O,
|
|
237
|
-
css3DObject:
|
|
238
|
-
render:
|
|
185
|
+
css3DObject: a,
|
|
186
|
+
render: S ? void 0 : E,
|
|
239
187
|
show: () => D(!0),
|
|
240
188
|
hide: () => D(!1),
|
|
241
189
|
setVisible: D,
|
|
@@ -243,7 +191,7 @@ class y {
|
|
|
243
191
|
disable: () => M(!1),
|
|
244
192
|
setEnabled: M,
|
|
245
193
|
dispose: x,
|
|
246
|
-
appendToElement: (
|
|
194
|
+
appendToElement: (h) => V.setWrapper(h)
|
|
247
195
|
};
|
|
248
196
|
});
|
|
249
197
|
n(this, "setVisibleById", (e, t) => {
|
|
@@ -254,8 +202,8 @@ class y {
|
|
|
254
202
|
const r = w(e);
|
|
255
203
|
if (!r)
|
|
256
204
|
return;
|
|
257
|
-
const
|
|
258
|
-
|
|
205
|
+
const s = r.mode === "front" ? this.getFrontCSS3DObjectGroup({ addGroupIfNotExists: !1 }) : this.getBehindCSS3DObjectGroup({ addGroupIfNotExists: !1 });
|
|
206
|
+
s && (t ? s.add(r) : s.remove(r));
|
|
259
207
|
});
|
|
260
208
|
n(this, "createObject", (e, t) => {
|
|
261
209
|
const r = new W(v(g({ cornerPoints: e }, t), { style: t.wrapperStyle }));
|
|
@@ -286,7 +234,7 @@ class y {
|
|
|
286
234
|
}
|
|
287
235
|
setState(e, t = { userAction: !0 }) {
|
|
288
236
|
if (this.state.disposed)
|
|
289
|
-
return
|
|
237
|
+
return p();
|
|
290
238
|
const r = g({}, this.state);
|
|
291
239
|
this.state = Object.assign(this.state, e), r.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), r.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), r.disposed !== this.state.disposed && this.handleDispose(), this.hooks.emit("stateChange", { state: this.state, prevState: r, userAction: t.userAction });
|
|
292
240
|
}
|
|
@@ -294,27 +242,27 @@ class y {
|
|
|
294
242
|
this.setState({ disposed: !0 }), this.hooks.emit("dispose");
|
|
295
243
|
}
|
|
296
244
|
show() {
|
|
297
|
-
return
|
|
245
|
+
return l(this, arguments, function* ({ userAction: e } = { userAction: !0 }) {
|
|
298
246
|
if (this.state.disposed)
|
|
299
|
-
return
|
|
247
|
+
return p();
|
|
300
248
|
this.setState({ visible: !0 }, { userAction: e }), this.hooks.emit("show", { userAction: e });
|
|
301
249
|
});
|
|
302
250
|
}
|
|
303
251
|
hide() {
|
|
304
|
-
return
|
|
252
|
+
return l(this, arguments, function* ({ userAction: e } = { userAction: !0 }) {
|
|
305
253
|
if (this.state.disposed)
|
|
306
|
-
return
|
|
254
|
+
return p();
|
|
307
255
|
this.setState({ visible: !1 }, { userAction: e }), this.hooks.emit("hide", { userAction: e });
|
|
308
256
|
});
|
|
309
257
|
}
|
|
310
258
|
enable({ userAction: e } = { userAction: !0 }) {
|
|
311
259
|
if (this.state.disposed)
|
|
312
|
-
return
|
|
260
|
+
return p();
|
|
313
261
|
this.setState({ enabled: !0 }, { userAction: e }), this.hooks.emit("enable", { userAction: e });
|
|
314
262
|
}
|
|
315
263
|
disable({ userAction: e } = { userAction: !0 }) {
|
|
316
264
|
if (this.state.disposed)
|
|
317
|
-
return
|
|
265
|
+
return p();
|
|
318
266
|
this.setState({ enabled: !1 }, { userAction: e }), this.hooks.emit("disable", { userAction: e });
|
|
319
267
|
}
|
|
320
268
|
getFrontCSS3DScene({ createSceneIfNotExists: e = !1 } = {}) {
|
|
@@ -323,24 +271,24 @@ class y {
|
|
|
323
271
|
if (t)
|
|
324
272
|
return t;
|
|
325
273
|
if (e) {
|
|
326
|
-
const
|
|
327
|
-
i.frontModeStore.css3DScene =
|
|
274
|
+
const s = new H();
|
|
275
|
+
i.frontModeStore.css3DScene = s;
|
|
328
276
|
}
|
|
329
277
|
return i.frontModeStore.css3DScene;
|
|
330
278
|
}
|
|
331
279
|
getBehindCSS3DScene({ createSceneIfNotExists: e = !1 } = {}) {
|
|
332
|
-
var r,
|
|
280
|
+
var r, s;
|
|
333
281
|
const t = (r = i.behindModeStore) == null ? void 0 : r.css3DScene;
|
|
334
282
|
if (t)
|
|
335
283
|
return t;
|
|
336
284
|
if (e) {
|
|
337
|
-
const d = (
|
|
285
|
+
const d = (s = i.behindModeStore.scene) != null ? s : this.scene;
|
|
338
286
|
if (!d) {
|
|
339
|
-
console.error(`${
|
|
287
|
+
console.error(`${m}: scene is required when mode is behind`);
|
|
340
288
|
return;
|
|
341
289
|
}
|
|
342
|
-
const
|
|
343
|
-
i.behindModeStore.css3DScene =
|
|
290
|
+
const u = new T(d);
|
|
291
|
+
i.behindModeStore.css3DScene = u, i.behindModeStore.scene = d;
|
|
344
292
|
}
|
|
345
293
|
return i.behindModeStore.css3DScene;
|
|
346
294
|
}
|
|
@@ -352,34 +300,34 @@ class y {
|
|
|
352
300
|
var r;
|
|
353
301
|
const t = this.getBehindCSS3DScene({ createSceneIfNotExists: e });
|
|
354
302
|
if (e && t && this.scene) {
|
|
355
|
-
const
|
|
356
|
-
this.store.behindModeGroup =
|
|
303
|
+
const s = (r = this.store.behindModeGroup) != null ? r : new z(this.scene);
|
|
304
|
+
this.store.behindModeGroup = s, t.getObjectById(s.id) || t.add(s);
|
|
357
305
|
}
|
|
358
306
|
return this.store.behindModeGroup;
|
|
359
307
|
}
|
|
360
308
|
render(e) {
|
|
361
309
|
var t, r;
|
|
362
310
|
if (this.getFrontCSS3DObjectGroup({ addGroupIfNotExists: !1 }).CSS3DObjectLength > 0) {
|
|
363
|
-
const
|
|
364
|
-
if (!
|
|
365
|
-
return console.error(`${
|
|
366
|
-
i.frontModeStore.css3DRenderer.renderEveryFrame(
|
|
311
|
+
const s = this.getFrontCSS3DScene({ createSceneIfNotExists: !0 });
|
|
312
|
+
if (!s)
|
|
313
|
+
return console.error(`${m}: css3DScene is required when mode is front`);
|
|
314
|
+
i.frontModeStore.css3DRenderer.renderEveryFrame(s, e);
|
|
367
315
|
}
|
|
368
316
|
if (((r = (t = this.getBehindCSS3DObjectGroup({ addGroupIfNotExists: !1 })) == null ? void 0 : t.CSS3DObjectLength) != null ? r : 0) > 0) {
|
|
369
|
-
const
|
|
370
|
-
if (!
|
|
371
|
-
return console.error(`${
|
|
372
|
-
i.behindModeStore.css3DRenderer.renderEveryFrame(
|
|
317
|
+
const s = this.getBehindCSS3DScene({ createSceneIfNotExists: !0 });
|
|
318
|
+
if (!s)
|
|
319
|
+
return console.error(`${m}: css3DScene is required when mode is behind`);
|
|
320
|
+
i.behindModeStore.css3DRenderer.renderEveryFrame(s, e);
|
|
373
321
|
}
|
|
374
322
|
}
|
|
375
323
|
handleShow() {
|
|
376
|
-
return
|
|
324
|
+
return l(this, null, function* () {
|
|
377
325
|
var e;
|
|
378
326
|
this.store.frontModeGroup.setVisible(!0), (e = this.store.behindModeGroup) == null || e.setVisible(!0);
|
|
379
327
|
});
|
|
380
328
|
}
|
|
381
329
|
handleHide() {
|
|
382
|
-
return
|
|
330
|
+
return l(this, null, function* () {
|
|
383
331
|
var e;
|
|
384
332
|
this.store.frontModeGroup.setVisible(!1), (e = this.store.behindModeGroup) == null || e.setVisible(!1);
|
|
385
333
|
});
|
|
@@ -390,10 +338,10 @@ class y {
|
|
|
390
338
|
}
|
|
391
339
|
handleDisable() {
|
|
392
340
|
var e, t, r;
|
|
393
|
-
this.store.frontModeGroup.children.forEach((
|
|
394
|
-
|
|
395
|
-
}), (e = this.store.behindModeGroup) == null || e.children.forEach((
|
|
396
|
-
|
|
341
|
+
this.store.frontModeGroup.children.forEach((s) => {
|
|
342
|
+
s instanceof j && s.element instanceof Element && s.element.parentNode !== null && s.element.remove();
|
|
343
|
+
}), (e = this.store.behindModeGroup) == null || e.children.forEach((s) => {
|
|
344
|
+
s instanceof j && s.element instanceof Element && s.element.parentNode !== null && s.element.remove();
|
|
397
345
|
}), (t = this.getFrontCSS3DScene()) == null || t.remove(this.store.frontModeGroup), this.store.behindModeGroup && ((r = this.getBehindCSS3DScene()) == null || r.remove(this.store.behindModeGroup));
|
|
398
346
|
}
|
|
399
347
|
handleDispose() {
|
|
@@ -403,7 +351,7 @@ class y {
|
|
|
403
351
|
n(y, "setFrontModeContainer", K), n(y, "setBehindModeContainer", Q);
|
|
404
352
|
export {
|
|
405
353
|
y as CSS3DRender,
|
|
406
|
-
|
|
407
|
-
|
|
354
|
+
tt as MinRatio,
|
|
355
|
+
m as PLUGIN,
|
|
408
356
|
i as globalStore
|
|
409
357
|
};
|