@realsee/dnalogel 3.47.13 → 3.47.15
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 +8 -0
- package/dist/PanoTagPlugin/utils/requestIdleCallback.d.ts +1 -1
- package/dist/Sculpt/Meshes/Line.d.ts +1 -0
- package/dist/Sculpt/Meshes/Polygon.d.ts +2 -1
- package/dist/index.cjs.js +53 -53
- package/dist/index.js +18650 -18640
- package/dist/index.umd.js +47 -47
- package/libs/AreaMakerPlugin/Controller.js +78 -150
- package/libs/AreaMakerPlugin/index.js +3 -75
- package/libs/AreaMakerPlugin/utils/Item.js +111 -185
- package/libs/CSS3DRenderPlugin/Controller.js +29 -86
- package/libs/CSS3DRenderPlugin/index.js +12 -69
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +58 -127
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +113 -174
- package/libs/CruisePlugin/BaseController.js +50 -122
- package/libs/CruisePlugin/Move.js +21 -74
- package/libs/CruisePlugin/Work.js +46 -99
- package/libs/CruisePlugin/index.js +26 -79
- package/libs/CurrentPanoImagePlugin/Controller.js +104 -176
- package/libs/CurrentPanoImagePlugin/index.js +4 -76
- package/libs/GuideLinePlugin/Controller.js +26 -79
- package/libs/GuideLinePlugin/GuideLineItem.js +24 -77
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +2 -3
- package/libs/GuideLinePlugin/GuideLineModeItem.js +22 -75
- package/libs/GuideLinePlugin/index.js +26 -79
- package/libs/ModelMakerPlugin/Controller.js +83 -139
- package/libs/ModelMakerPlugin/index.js +16 -72
- package/libs/ModelTVVideoPlugin/Plugin.js +48 -105
- package/libs/ModelTVVideoPlugin/index.js +7 -64
- package/libs/Object3DHelperPlugin/Controller.js +32 -56
- package/libs/Object3DHelperPlugin/index.js +12 -35
- package/libs/PanoCompassPlugin/Controller.js +37 -93
- package/libs/PanoCompassPlugin/index.js +11 -67
- package/libs/PanoDoorLabelPlugin/BaseController.js +25 -97
- package/libs/PanoDoorLabelPlugin/Controller.js +115 -187
- package/libs/PanoDoorLabelPlugin/index.js +4 -76
- package/libs/PanoMeasurePlugin/Components/Controller0.js +83 -128
- package/libs/PanoMeasurePlugin/Components/Controller1.js +96 -141
- package/libs/PanoMeasurePlugin/Controller/EditController.js +66 -111
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +51 -121
- package/libs/PanoMeasurePlugin/Controller/index.js +59 -101
- package/libs/PanoMeasurePlugin/Model/area.js +21 -91
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +0 -73
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +27 -72
- package/libs/PanoMeasurePlugin/index.js +25 -67
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +17 -89
- package/libs/PanoSpatialTagPlugin/Plugin.js +106 -163
- package/libs/PanoSpatialTagPlugin/index.js +5 -62
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +67 -141
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +208 -281
- package/libs/PanoTagPlugin/Components/Tag/index.js +180 -251
- package/libs/PanoTagPlugin/Components/TagContainer.js +80 -151
- package/libs/PanoTagPlugin/Components/TagItem.js +67 -138
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +61 -132
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +28 -99
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +30 -101
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +36 -107
- package/libs/PanoTagPlugin/controller/TagRender.js +68 -121
- package/libs/PanoTagPlugin/controller/TagUtil.js +79 -132
- package/libs/PanoTagPlugin/controller/index.js +55 -108
- package/libs/PanoTagPlugin/index.js +31 -84
- package/libs/PanoTagPlugin/utils/requestIdleCallback.d.ts +1 -1
- package/libs/PanoTagPlugin/utils/requestIdleCallback.js +5 -13
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +30 -104
- package/libs/PanoVideoPlugin/Controller.js +64 -136
- package/libs/PanoVideoPlugin/VideoMeshController.js +74 -148
- package/libs/PanoVideoPlugin/index.js +8 -80
- package/libs/PipelinePlugin/Controller.js +128 -199
- package/libs/PipelinePlugin/index.js +5 -76
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +17 -91
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +14 -88
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +56 -130
- package/libs/Sculpt/Meshes/Box.js +5 -6
- package/libs/Sculpt/Meshes/Cylinder.js +2 -3
- package/libs/Sculpt/Meshes/Line.d.ts +1 -0
- package/libs/Sculpt/Meshes/Line.js +50 -41
- package/libs/Sculpt/Meshes/Point.js +9 -10
- package/libs/Sculpt/Meshes/Polygon.d.ts +2 -1
- package/libs/Sculpt/Meshes/Polygon.js +47 -37
- package/libs/Sculpt/Meshes/Polyline.js +18 -16
- package/libs/Sculpt/Meshes/Rectangle.js +3 -4
- package/libs/Sculpt/Objects/Line/Editor.js +2 -3
- package/libs/Sculpt/Objects/Rectangle/index.js +1 -1
- package/libs/Sculpt/utils/removeAllTag.js +4 -4
- package/libs/Sculpt/utils/three/ColoredMesh.js +3 -4
- package/libs/base/BasePlugin.js +3 -4
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +59 -128
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -75
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +59 -129
- package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -75
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +62 -134
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -76
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +81 -151
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -75
- package/libs/floorplan/index.js +0 -1
- package/libs/index.js +62 -62
- package/libs/shared-utils/five/index.js +2 -3
- package/libs/shared-utils/five/lookObject.js +17 -18
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/index.js +0 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import o from "./Controller.js";
|
|
2
|
-
import { CSS3DRender as
|
|
2
|
+
import { CSS3DRender as K } from "./utils/three/CSS3DRender.js";
|
|
3
3
|
import "./utils/generateBehindFiveElement.js";
|
|
4
4
|
import "three";
|
|
5
5
|
import "hammerjs";
|
|
@@ -15,84 +15,27 @@ import "../shared-utils/Subscribe.js";
|
|
|
15
15
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
16
16
|
import "../shared-utils/five/transformPosition.js";
|
|
17
17
|
import "../shared-utils/three/temp.js";
|
|
18
|
-
import "../Sculpt/utils/Modules/Global.js";
|
|
19
|
-
import "../Sculpt/utils/Modules/Cursor.js";
|
|
20
|
-
import "../Object3DHelperPlugin/Controller.js";
|
|
21
|
-
import "../base/BasePlugin.js";
|
|
22
18
|
import "../shared-utils/three/THREESphere.js";
|
|
23
19
|
import "animejs";
|
|
24
20
|
import "../shared-utils/url/absoluteUrl.js";
|
|
25
21
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
26
|
-
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
27
|
-
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
28
|
-
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
29
|
-
import "../shared-utils/three/IObject3D.js";
|
|
30
|
-
import "../shared-utils/three/boundingBox.js";
|
|
31
|
-
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
32
|
-
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
33
|
-
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
34
|
-
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
35
|
-
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
36
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
37
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
38
|
-
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
39
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
40
|
-
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
41
|
-
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
42
|
-
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
43
|
-
import "../shared-utils/threex/domevents/index.js";
|
|
44
|
-
import "../shared-utils/isNil.js";
|
|
45
|
-
import "../shared-utils/util.js";
|
|
46
|
-
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
47
|
-
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
48
|
-
import "../Sculpt/utils/three/rayOnLine.js";
|
|
49
|
-
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
50
|
-
import "../shared-utils/Object3DHelper/index.js";
|
|
51
|
-
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
52
|
-
import "../shared-utils/math/rad2Deg.js";
|
|
53
|
-
import "../shared-utils/math/deg2Rad.js";
|
|
54
|
-
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
55
|
-
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
56
|
-
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
57
|
-
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
58
|
-
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
59
|
-
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
60
22
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
61
|
-
import "../shared-utils/five/FiveDomEvents.js";
|
|
62
|
-
import "../shared-utils/three/getObjectVisible.js";
|
|
63
|
-
import "../shared-utils/five/calculateThreeMouse.js";
|
|
64
|
-
import "../shared-utils/three/THREERaycaster.js";
|
|
65
|
-
import "../shared-utils/three/PointSelector/index.js";
|
|
66
|
-
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
67
|
-
import "../shared-utils/three/Magnifier.js";
|
|
68
|
-
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
69
|
-
import "../shared-utils/three/Assets/index.js";
|
|
70
|
-
import "./utils/three/CSS3DObject.js";
|
|
71
|
-
import "./utils/even.js";
|
|
72
|
-
import "./utils/three/OpacityMesh.js";
|
|
73
|
-
import "../shared-utils/three/centerPoint.js";
|
|
74
|
-
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
75
|
-
import "../shared-utils/five/initialCSS3DRender.js";
|
|
76
23
|
import "./utils/three/CSS3DRenderer.js";
|
|
77
24
|
import "./utils/three/THREEJS_CSS3DRenderer.js";
|
|
78
25
|
import "./utils/createResizeObserver.js";
|
|
79
|
-
import "
|
|
80
|
-
import "
|
|
81
|
-
import "
|
|
82
|
-
import "../shared-utils/
|
|
83
|
-
import "../
|
|
84
|
-
import "../
|
|
85
|
-
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
86
|
-
import "./utils/three/CSS3DSprite.js";
|
|
87
|
-
import "../shared-utils/isTouchDevice.js";
|
|
88
|
-
import "../shared-utils/five/getPosition.js";
|
|
89
|
-
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
26
|
+
import "./utils/even.js";
|
|
27
|
+
import "./utils/three/CSS3DObject.js";
|
|
28
|
+
import "./utils/three/OpacityMesh.js";
|
|
29
|
+
import "../shared-utils/three/centerPoint.js";
|
|
30
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
31
|
+
import "../shared-utils/isNil.js";
|
|
90
32
|
import "./utils/three/CSS3DScene.js";
|
|
91
33
|
import "./utils/getAllCSS3DObject.js";
|
|
34
|
+
import "../shared-utils/util.js";
|
|
92
35
|
import "./utils/three/CSS3DGroup.js";
|
|
93
|
-
const
|
|
36
|
+
const H = (r) => new o(r);
|
|
94
37
|
export {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
38
|
+
K as CSS3DRender,
|
|
39
|
+
H as CSS3DRenderPlugin,
|
|
40
|
+
H as default
|
|
98
41
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var A = Object.defineProperty;
|
|
2
|
-
var D = (
|
|
3
|
-
var
|
|
2
|
+
var D = (p, h, t) => h in p ? A(p, h, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[h] = t;
|
|
3
|
+
var o = (p, h, t) => (D(p, typeof h != "symbol" ? h + "" : h, t), t);
|
|
4
4
|
import { CSS3DObject as N } from "three/examples/jsm/renderers/CSS3DRenderer";
|
|
5
|
-
import { Vector3 as
|
|
5
|
+
import { Vector3 as r } from "three";
|
|
6
6
|
import { even as E } from "../even.js";
|
|
7
7
|
import { Subscribe as Q } from "../../../shared-utils/Subscribe.js";
|
|
8
8
|
import R from "./OpacityMesh.js";
|
|
@@ -11,7 +11,6 @@ import { getObjectVisible as T } from "../../../shared-utils/three/getObjectVisi
|
|
|
11
11
|
import "hammerjs";
|
|
12
12
|
import "@realsee/five/line";
|
|
13
13
|
import "../../../shared-utils/tag.js";
|
|
14
|
-
import "../../../Sculpt/utils/Modules/Global.js";
|
|
15
14
|
import "../../../shared-utils/three/THREESphere.js";
|
|
16
15
|
import "animejs";
|
|
17
16
|
import { isNil as O } from "../../../shared-utils/isNil.js";
|
|
@@ -24,150 +23,82 @@ import "../../../shared-utils/Utils/BaseUtil.js";
|
|
|
24
23
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
25
24
|
import "../../../shared-utils/five/transformPosition.js";
|
|
26
25
|
import "../../../shared-utils/three/temp.js";
|
|
27
|
-
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
28
|
-
import "../../../Object3DHelperPlugin/Controller.js";
|
|
29
|
-
import "../../../base/BasePlugin.js";
|
|
30
|
-
import "../../../shared-utils/url/absoluteUrl.js";
|
|
31
|
-
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
32
|
-
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
33
|
-
import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
34
|
-
import "../../../shared-utils/three/IObject3D.js";
|
|
35
|
-
import "../../../shared-utils/three/boundingBox.js";
|
|
36
|
-
import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
37
|
-
import "../../../shared-utils/Object3DHelper/utils/direction.js";
|
|
38
|
-
import "../../../shared-utils/Object3DHelper/Constants/color.js";
|
|
39
|
-
import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
40
|
-
import "./CSS3DRender.js";
|
|
41
|
-
import "./CSS3DRenderer.js";
|
|
42
|
-
import "./THREEJS_CSS3DRenderer.js";
|
|
43
|
-
import "../createResizeObserver.js";
|
|
44
|
-
import "./CSS3DObject.js";
|
|
45
|
-
import "./CSS3DScene.js";
|
|
46
|
-
import "../getAllCSS3DObject.js";
|
|
47
|
-
import "../../../shared-utils/util.js";
|
|
48
|
-
import "./CSS3DGroup.js";
|
|
49
|
-
import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
50
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
51
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
52
|
-
import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
53
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
54
|
-
import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
55
|
-
import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
56
|
-
import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
57
|
-
import "../../../shared-utils/threex/domevents/index.js";
|
|
58
|
-
import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
59
|
-
import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
60
|
-
import "../../../Sculpt/utils/three/rayOnLine.js";
|
|
61
|
-
import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
62
|
-
import "../../../shared-utils/Object3DHelper/index.js";
|
|
63
|
-
import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
64
|
-
import "../../../shared-utils/math/rad2Deg.js";
|
|
65
|
-
import "../../../shared-utils/math/deg2Rad.js";
|
|
66
|
-
import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
67
|
-
import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
68
|
-
import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
69
|
-
import "../generateBehindFiveElement.js";
|
|
70
|
-
import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
71
|
-
import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
72
|
-
import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
73
|
-
import "../../../shared-utils/five/fiveModelLoad.js";
|
|
74
|
-
import "../../../shared-utils/five/FiveDomEvents.js";
|
|
75
|
-
import "../../../shared-utils/five/calculateThreeMouse.js";
|
|
76
|
-
import "../../../shared-utils/three/THREERaycaster.js";
|
|
77
|
-
import "../../../shared-utils/three/PointSelector/index.js";
|
|
78
|
-
import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
79
|
-
import "../../../shared-utils/three/Magnifier.js";
|
|
80
|
-
import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
81
|
-
import "../../../shared-utils/three/Assets/index.js";
|
|
82
|
-
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
83
|
-
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
84
|
-
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
85
|
-
import "../../../Sculpt/Meshes/Line.js";
|
|
86
|
-
import "../../../Sculpt/typings/style.js";
|
|
87
|
-
import "../../../shared-utils/five/FiveLine.js";
|
|
88
|
-
import "../../../Sculpt/utils/removeAllTag.js";
|
|
89
|
-
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
90
|
-
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
91
|
-
import "./CSS3DSprite.js";
|
|
92
|
-
import "../../../shared-utils/isTouchDevice.js";
|
|
93
|
-
import "../../../shared-utils/five/getPosition.js";
|
|
94
|
-
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
95
26
|
const $ = 1, W = `CSS3DObjectPlus@${$}`, k = 216e-5, z = 3e-3;
|
|
96
|
-
class
|
|
27
|
+
class mt extends N {
|
|
97
28
|
constructor(t) {
|
|
98
29
|
var x, b, w, g, V;
|
|
99
30
|
if (O(t.cornerPoints) && O(t.width))
|
|
100
31
|
throw new Error("cornerPoints and width cannot be both empty");
|
|
101
|
-
const
|
|
102
|
-
const
|
|
32
|
+
const e = (x = t.container) != null ? x : document.createElement("div"), s = (b = t.cornerPoints) != null ? b : (() => {
|
|
33
|
+
const i = t.width / 2;
|
|
103
34
|
return [
|
|
104
|
-
new
|
|
105
|
-
new
|
|
106
|
-
new
|
|
107
|
-
new
|
|
35
|
+
new r(-i, i, 0),
|
|
36
|
+
new r(-i, -i, 0),
|
|
37
|
+
new r(i, -i, 0),
|
|
38
|
+
new r(i, i, 0)
|
|
108
39
|
];
|
|
109
|
-
})(),
|
|
40
|
+
})(), n = (w = t.ratio) != null ? w : z, P = (g = t.dpr) != null ? g : 1, F = (V = t.pointerEvents) != null ? V : "auto", c = Math.max(k, n), m = s[0].distanceTo(s[1]), d = s[1].distanceTo(s[2]), a = E(m / n * P), l = E(d / n * P), y = L(...s);
|
|
110
41
|
let u;
|
|
111
|
-
if (
|
|
112
|
-
|
|
42
|
+
if (c === n)
|
|
43
|
+
e.style.width = `${a}px`, e.style.height = `${l}px`, u = e;
|
|
113
44
|
else {
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
const S =
|
|
117
|
-
|
|
45
|
+
const i = document.createElement("div");
|
|
46
|
+
i.style.width = `${a}px`, i.style.height = `${l}px`, i.style.pointerEvents = "none";
|
|
47
|
+
const S = n / c;
|
|
48
|
+
e.style.position = "absolute", e.style.left = "0", e.style.top = "0", e.style.width = `${S * a}px`, e.style.height = `${S * l}px`, i.appendChild(e), u = i;
|
|
118
49
|
}
|
|
119
50
|
super(u);
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
51
|
+
o(this, "version", $);
|
|
52
|
+
o(this, "isCSS3DObjectPlus", !0);
|
|
53
|
+
o(this, "isCSS3DObject", !0);
|
|
54
|
+
o(this, "name", W);
|
|
55
|
+
o(this, "container");
|
|
56
|
+
o(this, "width");
|
|
57
|
+
o(this, "height");
|
|
58
|
+
o(this, "domWidthPx");
|
|
59
|
+
o(this, "domHeightPx");
|
|
60
|
+
o(this, "cornerPoints");
|
|
61
|
+
o(this, "centerPosition");
|
|
62
|
+
o(this, "ratio");
|
|
63
|
+
o(this, "mode", "front");
|
|
64
|
+
o(this, "hooks", new Q());
|
|
65
|
+
o(this, "opacityMesh");
|
|
66
|
+
o(this, "selfVisible", !0);
|
|
67
|
+
o(this, "setVisible", (t) => {
|
|
137
68
|
this.selfVisible = t, this.visible = T(this.parent) && this.selfVisible, this.opacityMesh && (this.opacityMesh.visible = this.visible);
|
|
138
69
|
});
|
|
139
|
-
|
|
70
|
+
o(this, "updateVisible", () => {
|
|
140
71
|
this.setVisible(this.selfVisible);
|
|
141
72
|
});
|
|
142
73
|
/**
|
|
143
74
|
* @description: 生成透明Mesh
|
|
144
75
|
*/
|
|
145
|
-
|
|
146
|
-
const { domWidthPx:
|
|
147
|
-
return
|
|
76
|
+
o(this, "createOpacityMesh", (t) => {
|
|
77
|
+
const { domWidthPx: e, domHeightPx: s } = t, n = new R(e, s);
|
|
78
|
+
return n.position.copy(t.position), n.rotation.copy(t.rotation), n.scale.copy(t.scale), n;
|
|
148
79
|
});
|
|
149
|
-
if (
|
|
150
|
-
this.width =
|
|
80
|
+
if (e.style.pointerEvents = F, Object.assign(e.style, t.style), this.scale.set(c, c, c), this.cornerPoints = s, this.ratio = n, this.container = e, t.mode && (this.mode = t.mode), c === n)
|
|
81
|
+
this.width = m, this.height = d, this.domWidthPx = a, this.domHeightPx = l, this.centerPosition = y;
|
|
151
82
|
else {
|
|
152
|
-
const
|
|
153
|
-
this.width =
|
|
83
|
+
const i = n / c;
|
|
84
|
+
this.width = i * m, this.height = i * d, this.domWidthPx = i * a, this.domHeightPx = i * l, this.centerPosition = new r().subVectors(y, s[0]).multiplyScalar(i).add(s[0]);
|
|
154
85
|
}
|
|
155
|
-
|
|
156
|
-
const C = new
|
|
86
|
+
e.classList.add(`${W}__container`);
|
|
87
|
+
const C = new r().subVectors(s[1], s[0]), M = new r().subVectors(s[3], s[0]), H = new r().crossVectors(C, M).normalize();
|
|
157
88
|
this.lookAt(H);
|
|
158
|
-
const f = this.up.clone().applyQuaternion(this.quaternion), v = M.clone(), j = new
|
|
89
|
+
const f = this.up.clone().applyQuaternion(this.quaternion), v = M.clone(), j = new r().crossVectors(f, v).normalize();
|
|
159
90
|
this.rotateOnWorldAxis(j, f.angleTo(v)), this.position.copy(y), this.addEventListener("added", () => {
|
|
160
|
-
var
|
|
161
|
-
this.mode === "front" && ((
|
|
91
|
+
var i;
|
|
92
|
+
this.mode === "front" && ((i = this.opacityMesh) == null || i.removeFromParent());
|
|
162
93
|
}), this.addEventListener("removed", () => {
|
|
163
|
-
var
|
|
164
|
-
(
|
|
94
|
+
var i;
|
|
95
|
+
(i = this.opacityMesh) == null || i.removeFromParent();
|
|
165
96
|
});
|
|
166
97
|
}
|
|
167
98
|
removeFromParent() {
|
|
168
|
-
var
|
|
99
|
+
var e;
|
|
169
100
|
const t = this.parent;
|
|
170
|
-
return t !== null && t.remove(this), (
|
|
101
|
+
return t !== null && t.remove(this), (e = this.opacityMesh) == null || e.removeFromParent(), this;
|
|
171
102
|
}
|
|
172
103
|
removeOpacityMesh() {
|
|
173
104
|
var t;
|
|
@@ -186,20 +117,20 @@ class Oi extends N {
|
|
|
186
117
|
}
|
|
187
118
|
}
|
|
188
119
|
applyMatrix4(t) {
|
|
189
|
-
var
|
|
190
|
-
super.applyMatrix4(t), (
|
|
120
|
+
var e;
|
|
121
|
+
super.applyMatrix4(t), (e = this.opacityMesh) == null || e.applyMatrix4(t);
|
|
191
122
|
}
|
|
192
123
|
applyQuaternion(t) {
|
|
193
|
-
var
|
|
194
|
-
return super.applyQuaternion(t), (
|
|
124
|
+
var e;
|
|
125
|
+
return super.applyQuaternion(t), (e = this.opacityMesh) == null || e.applyQuaternion(t), this;
|
|
195
126
|
}
|
|
196
127
|
applyScaleMatrix4(t) {
|
|
197
|
-
var
|
|
198
|
-
this.scale.applyMatrix4(t), (
|
|
128
|
+
var e;
|
|
129
|
+
this.scale.applyMatrix4(t), (e = this.opacityMesh) == null || e.scale.applyMatrix4(t);
|
|
199
130
|
}
|
|
200
131
|
}
|
|
201
132
|
export {
|
|
202
|
-
|
|
133
|
+
mt as CSS3DObjectPlus,
|
|
203
134
|
z as DefaultRatio,
|
|
204
135
|
k as MinRatio
|
|
205
136
|
};
|