@realsee/dnalogel 3.44.5 → 3.46.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 +6 -0
- package/dist/Sculpt/Meshes/Area.d.ts +1 -1
- package/dist/Sculpt/Meshes/Box.d.ts +1 -1
- package/dist/Sculpt/Meshes/Circle.d.ts +1 -1
- package/dist/Sculpt/Meshes/CircleWithEdge.d.ts +1 -1
- package/dist/Sculpt/Meshes/Line.d.ts +8 -2
- package/dist/Sculpt/Meshes/LineWithDots.d.ts +1 -1
- package/dist/Sculpt/Meshes/Point.d.ts +1 -1
- package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
- package/dist/Sculpt/Meshes/Prism.d.ts +1 -1
- package/dist/Sculpt/Meshes/RectangleWithEdge.d.ts +3 -4
- package/dist/Sculpt/Objects/Line/Editor.d.ts +22 -0
- package/dist/Sculpt/Objects/Line/index.d.ts +33 -0
- package/dist/Sculpt/Objects/Point/index.d.ts +1 -1
- package/dist/Sculpt/Objects/Polygon/Editor.d.ts +2 -2
- package/dist/Sculpt/Objects/Polygon/index.d.ts +3 -2
- package/dist/Sculpt/Objects/Polyline/Editor.d.ts +3 -17
- package/dist/Sculpt/Objects/Polyline/index.d.ts +7 -6
- package/dist/Sculpt/index.d.ts +5 -0
- package/dist/Sculpt/typings/index.d.ts +11 -6
- package/dist/Sculpt/{utils/color.d.ts → typings/style.d.ts} +7 -0
- package/dist/Sculpt/typings/utils.type.d.ts +2 -0
- package/dist/Sculpt/utils/three/ColoredMesh.d.ts +1 -1
- package/dist/Sculpt/utils/three/rayOnLine.d.ts +3 -5
- package/dist/index.cjs.js +56 -56
- package/dist/index.js +29820 -29686
- package/dist/index.umd.js +49 -49
- package/dist/shared-utils/Utils/WorkUtil.d.ts +6 -6
- package/dist/shared-utils/tag.d.ts +6 -3
- package/libs/AreaMakerPlugin/Controller.js +150 -78
- package/libs/AreaMakerPlugin/index.js +76 -4
- package/libs/AreaMakerPlugin/utils/Item.js +190 -111
- package/libs/CSS3DRenderPlugin/Controller.js +89 -29
- package/libs/CSS3DRenderPlugin/index.js +75 -15
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +132 -58
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +181 -116
- package/libs/CruisePlugin/BaseController.js +121 -49
- package/libs/CruisePlugin/Move.js +73 -21
- package/libs/CruisePlugin/Work.js +98 -46
- package/libs/CruisePlugin/index.js +79 -27
- package/libs/CurrentPanoImagePlugin/Controller.js +176 -104
- package/libs/CurrentPanoImagePlugin/index.js +76 -4
- package/libs/GuideLinePlugin/Controller.js +82 -30
- package/libs/GuideLinePlugin/GuideLineItem.js +82 -30
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +81 -29
- package/libs/GuideLinePlugin/index.js +79 -27
- package/libs/ModelMakerPlugin/Controller.js +140 -83
- package/libs/ModelMakerPlugin/index.js +75 -18
- package/libs/ModelTVVideoPlugin/Plugin.js +117 -57
- package/libs/ModelTVVideoPlugin/index.js +68 -8
- package/libs/Object3DHelperPlugin/Controller.js +54 -31
- package/libs/Object3DHelperPlugin/index.js +35 -13
- package/libs/PanoCompassPlugin/Controller.js +97 -42
- package/libs/PanoCompassPlugin/index.js +71 -16
- package/libs/PanoDoorLabelPlugin/BaseController.js +98 -26
- package/libs/PanoDoorLabelPlugin/Controller.js +187 -115
- package/libs/PanoDoorLabelPlugin/index.js +76 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +141 -89
- package/libs/PanoMeasurePlugin/Components/Controller1.js +179 -127
- package/libs/PanoMeasurePlugin/Controller/EditController.js +125 -73
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +167 -92
- package/libs/PanoMeasurePlugin/Controller/index.js +110 -65
- package/libs/PanoMeasurePlugin/Model/area.js +114 -38
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +78 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +98 -46
- package/libs/PanoMeasurePlugin/index.js +77 -32
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +98 -20
- package/libs/PanoSpatialTagPlugin/Plugin.js +210 -150
- package/libs/PanoSpatialTagPlugin/index.js +66 -6
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +133 -53
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +295 -216
- package/libs/PanoTagPlugin/Components/Tag/index.js +257 -187
- package/libs/PanoTagPlugin/Components/TagContainer.js +157 -87
- package/libs/PanoTagPlugin/Components/TagItem.js +144 -74
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +73 -3
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +109 -39
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +105 -35
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +113 -43
- package/libs/PanoTagPlugin/controller/TagRender.js +132 -80
- package/libs/PanoTagPlugin/controller/TagUtil.js +136 -84
- package/libs/PanoTagPlugin/controller/index.js +113 -61
- package/libs/PanoTagPlugin/index.js +89 -37
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +121 -41
- package/libs/PanoVideoPlugin/Controller.js +137 -65
- package/libs/PanoVideoPlugin/VideoMeshController.js +149 -69
- package/libs/PanoVideoPlugin/index.js +82 -10
- package/libs/PipelinePlugin/Controller.js +199 -128
- package/libs/PipelinePlugin/index.js +76 -5
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +102 -22
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +95 -15
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +136 -56
- package/libs/Sculpt/Meshes/Area.d.ts +1 -1
- package/libs/Sculpt/Meshes/Box.d.ts +1 -1
- package/libs/Sculpt/Meshes/Box.js +16 -15
- package/libs/Sculpt/Meshes/Circle.d.ts +1 -1
- package/libs/Sculpt/Meshes/Circle.js +1 -1
- package/libs/Sculpt/Meshes/CircleWithEdge.d.ts +1 -1
- package/libs/Sculpt/Meshes/Cylinder.js +8 -7
- package/libs/Sculpt/Meshes/Line.d.ts +8 -2
- package/libs/Sculpt/Meshes/Line.js +93 -65
- package/libs/Sculpt/Meshes/LineWithDots.d.ts +1 -1
- package/libs/Sculpt/Meshes/LineWithDots.js +26 -26
- package/libs/Sculpt/Meshes/Point.d.ts +1 -1
- package/libs/Sculpt/Meshes/Point.js +7 -6
- package/libs/Sculpt/Meshes/Polygon.js +1 -1
- package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
- package/libs/Sculpt/Meshes/Polyline.js +5 -4
- package/libs/Sculpt/Meshes/Prism.d.ts +1 -1
- package/libs/Sculpt/Meshes/Rectangle.js +3 -2
- package/libs/Sculpt/Meshes/RectangleWithEdge.d.ts +3 -4
- package/libs/Sculpt/Objects/Box/index.js +41 -43
- package/libs/Sculpt/Objects/Cylinder/index.js +35 -37
- package/libs/Sculpt/Objects/Line/Editor.d.ts +22 -0
- package/libs/Sculpt/Objects/Line/Editor.js +62 -0
- package/libs/Sculpt/Objects/Line/index.d.ts +33 -0
- package/libs/Sculpt/Objects/Line/index.js +107 -0
- package/libs/Sculpt/Objects/Point/index.d.ts +1 -1
- package/libs/Sculpt/Objects/Polygon/Editor.d.ts +2 -2
- package/libs/Sculpt/Objects/Polygon/Editor.js +5 -5
- package/libs/Sculpt/Objects/Polygon/index.d.ts +3 -2
- package/libs/Sculpt/Objects/Polygon/index.js +80 -80
- package/libs/Sculpt/Objects/Polyline/Editor.d.ts +3 -17
- package/libs/Sculpt/Objects/Polyline/Editor.js +10 -48
- package/libs/Sculpt/Objects/Polyline/index.d.ts +7 -6
- package/libs/Sculpt/Objects/Polyline/index.js +63 -58
- package/libs/Sculpt/Objects/Prism/index.js +56 -58
- package/libs/Sculpt/index.d.ts +5 -0
- package/libs/Sculpt/index.js +58 -48
- package/libs/Sculpt/typings/index.d.ts +11 -6
- package/libs/Sculpt/{utils/color.d.ts → typings/style.d.ts} +7 -0
- package/libs/Sculpt/typings/utils.type.d.ts +2 -0
- package/libs/Sculpt/utils/three/ColoredMesh.d.ts +1 -1
- package/libs/Sculpt/utils/three/ColoredMesh.js +15 -14
- package/libs/Sculpt/utils/three/rayOnLine.d.ts +3 -5
- package/libs/Sculpt/utils/three/rayOnLine.js +15 -14
- package/libs/base/BasePlugin.js +14 -13
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +131 -61
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +75 -6
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +129 -59
- package/libs/floorplan/ModelFloorplanPlugin/index.js +75 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +158 -86
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +76 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +151 -81
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +75 -5
- package/libs/floorplan/index.js +1 -0
- package/libs/index.js +194 -192
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +1 -1
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +23 -23
- package/libs/shared-utils/Utils/WorkUtil.d.ts +6 -6
- package/libs/shared-utils/Utils/WorkUtil.js +8 -7
- package/libs/shared-utils/five/index.js +3 -2
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +6 -3
- package/libs/shared-utils/tag.js +38 -24
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +15 -15
- package/libs/shared-utils/three/index.js +1 -0
- package/package.json +1 -1
- package/dist/Sculpt/typings/SimplifyDeep.d.ts +0 -3
- package/libs/Sculpt/typings/SimplifyDeep.d.ts +0 -3
- /package/libs/Sculpt/{utils/color.js → typings/style.js} +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
var f = Object.defineProperty;
|
|
2
|
-
var b = (
|
|
3
|
-
var l = (
|
|
4
|
-
var d = (
|
|
5
|
-
var
|
|
2
|
+
var b = (e, m, i) => m in e ? f(e, m, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[m] = i;
|
|
3
|
+
var l = (e, m, i) => (b(e, typeof m != "symbol" ? m + "" : m, i), i);
|
|
4
|
+
var d = (e, m, i) => new Promise((p, o) => {
|
|
5
|
+
var s = (t) => {
|
|
6
6
|
try {
|
|
7
|
-
|
|
7
|
+
r(i.next(t));
|
|
8
8
|
} catch (n) {
|
|
9
|
-
|
|
9
|
+
o(n);
|
|
10
10
|
}
|
|
11
|
-
},
|
|
11
|
+
}, a = (t) => {
|
|
12
12
|
try {
|
|
13
|
-
|
|
13
|
+
r(i.throw(t));
|
|
14
14
|
} catch (n) {
|
|
15
|
-
|
|
15
|
+
o(n);
|
|
16
16
|
}
|
|
17
|
-
},
|
|
18
|
-
|
|
17
|
+
}, r = (t) => t.done ? p(t.value) : Promise.resolve(t.value).then(s, a);
|
|
18
|
+
r((i = i.apply(e, m)).next());
|
|
19
19
|
});
|
|
20
20
|
import { arrayPositionToVector3 as h } from "../../../shared-utils/positionToVector3.js";
|
|
21
21
|
import { loadGLTF as j } from "../../../shared-utils/three/GLTFLoader.js";
|
|
@@ -46,21 +46,91 @@ import "../../../shared-utils/five/mode.js";
|
|
|
46
46
|
import "hammerjs";
|
|
47
47
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
48
48
|
import "@realsee/five/line";
|
|
49
|
+
import "../../../Sculpt/utils/Modules/Global.js";
|
|
50
|
+
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
51
|
+
import "../../../Object3DHelperPlugin/Controller.js";
|
|
52
|
+
import "../../../base/BasePlugin.js";
|
|
49
53
|
import "../../../shared-utils/three/THREESphere.js";
|
|
50
54
|
import "animejs";
|
|
55
|
+
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
56
|
+
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
57
|
+
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
58
|
+
import "../../../shared-utils/five/transformPosition.js";
|
|
59
|
+
import "../../../shared-utils/five/getFiveModel.js";
|
|
60
|
+
import "../../../shared-utils/url/absoluteUrl.js";
|
|
51
61
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
62
|
+
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
63
|
+
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
64
|
+
import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
65
|
+
import "../../../shared-utils/three/IObject3D.js";
|
|
66
|
+
import "../../../shared-utils/three/boundingBox.js";
|
|
67
|
+
import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
68
|
+
import "../../../shared-utils/Object3DHelper/utils/direction.js";
|
|
69
|
+
import "../../../shared-utils/Object3DHelper/Constants/color.js";
|
|
70
|
+
import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
71
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
72
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
73
|
+
import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
74
|
+
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
75
|
+
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
76
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
77
|
+
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
78
|
+
import "../../../shared-utils/three/getObjectVisible.js";
|
|
79
|
+
import "../../../shared-utils/isNil.js";
|
|
80
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
81
|
+
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
82
|
+
import "../../../shared-utils/util.js";
|
|
83
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
84
|
+
import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
85
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
86
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
87
|
+
import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
88
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
89
|
+
import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
90
|
+
import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
91
|
+
import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
92
|
+
import "../../../shared-utils/threex/domevents/index.js";
|
|
93
|
+
import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
94
|
+
import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
95
|
+
import "../../../Sculpt/utils/three/rayOnLine.js";
|
|
96
|
+
import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
97
|
+
import "../../../shared-utils/Object3DHelper/index.js";
|
|
98
|
+
import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
99
|
+
import "../../../shared-utils/math/rad2Deg.js";
|
|
100
|
+
import "../../../shared-utils/math/deg2Rad.js";
|
|
101
|
+
import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
102
|
+
import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
103
|
+
import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
104
|
+
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
105
|
+
import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
106
|
+
import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
107
|
+
import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
108
|
+
import "../../../shared-utils/five/fiveModelLoad.js";
|
|
109
|
+
import "../../../shared-utils/five/FiveDomEvents.js";
|
|
110
|
+
import "../../../shared-utils/five/calculateThreeMouse.js";
|
|
111
|
+
import "../../../shared-utils/three/THREERaycaster.js";
|
|
112
|
+
import "../../../shared-utils/three/PointSelector/index.js";
|
|
113
|
+
import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
114
|
+
import "../../../shared-utils/three/Magnifier.js";
|
|
115
|
+
import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
116
|
+
import "../../../shared-utils/three/Assets/index.js";
|
|
117
|
+
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
118
|
+
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
119
|
+
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
120
|
+
import "../../../Sculpt/Meshes/Line.js";
|
|
121
|
+
import "../../../Sculpt/typings/style.js";
|
|
122
|
+
import "../../../shared-utils/five/FiveLine.js";
|
|
123
|
+
import "../../../shared-utils/tag.js";
|
|
124
|
+
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
125
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
126
|
+
import "../../../shared-utils/isTouchDevice.js";
|
|
127
|
+
import "../../../shared-utils/five/getPosition.js";
|
|
128
|
+
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
52
129
|
import "../../utils/tag/format.js";
|
|
53
130
|
import "../../../shared-utils/three/blink.js";
|
|
54
|
-
import "../../../shared-utils/util.js";
|
|
55
131
|
import "../../../shared-utils/vectorToCoordinate.js";
|
|
56
132
|
import "../../../shared-utils/formatRad.js";
|
|
57
|
-
import "../../../shared-utils/five/transformPosition.js";
|
|
58
|
-
import "../../../shared-utils/isNil.js";
|
|
59
133
|
import "../../../shared-utils/five/lookPoint.js";
|
|
60
|
-
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
61
|
-
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
62
|
-
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
63
|
-
import "../../../shared-utils/five/getFiveModel.js";
|
|
64
134
|
import "../../../shared-utils/uuid.js";
|
|
65
135
|
import "../../utils/tagPosition.js";
|
|
66
136
|
import "../../utils/checkRange.js";
|
|
@@ -69,58 +139,58 @@ import "../../../shared-utils/five/getFloorIndex.js";
|
|
|
69
139
|
import "../../../shared-utils/safeObj.js";
|
|
70
140
|
import "../../utils/Cache.js";
|
|
71
141
|
import "../../../CruisePlugin/utils/sleep.js";
|
|
72
|
-
class
|
|
73
|
-
constructor(i,
|
|
74
|
-
super(i,
|
|
142
|
+
class Fi extends D {
|
|
143
|
+
constructor(i, p) {
|
|
144
|
+
super(i, p);
|
|
75
145
|
l(this, "loading", !1);
|
|
76
146
|
/** 加载外部模型 */
|
|
77
147
|
l(this, "loadModel", () => d(this, null, function* () {
|
|
78
|
-
var
|
|
148
|
+
var a;
|
|
79
149
|
const i = this.data.modelUrl;
|
|
80
150
|
if (!i)
|
|
81
151
|
return;
|
|
82
152
|
this.loading = !0;
|
|
83
|
-
const
|
|
153
|
+
const p = j(i).then((r) => d(this, null, function* () {
|
|
84
154
|
var c;
|
|
85
|
-
const t = Object.assign(
|
|
155
|
+
const t = Object.assign(r.scene, {
|
|
86
156
|
customID: this.id,
|
|
87
157
|
isTagModel: !0,
|
|
88
158
|
removeEventListener: this.getConfig().clickable === !1 ? () => {
|
|
89
|
-
} : this.addObjectClickHandler(this,
|
|
159
|
+
} : this.addObjectClickHandler(this, r.scene, (g) => {
|
|
90
160
|
this.plugin.hooks.emit("click", { target: "TagModel", tag: this, event: g });
|
|
91
161
|
})
|
|
92
162
|
});
|
|
93
163
|
return t.visible = this.currentVisible, new u.Matrix4().fromArray(this.matrix).decompose(t.position, t.quaternion, t.scale), t.updateWorldMatrix(!0, !0), t.visible = yield this.getVisible(), (c = this.getConfig().modelConfig) != null && c.autoLookAtEnabled && t.lookAt(this.five.camera.position.clone().setY(t.position.y)), t;
|
|
94
164
|
}));
|
|
95
|
-
this.model = { promise:
|
|
96
|
-
const
|
|
97
|
-
if (this.loading = !1, ((
|
|
165
|
+
this.model = { promise: p };
|
|
166
|
+
const o = yield p;
|
|
167
|
+
if (this.loading = !1, ((a = this.model) == null ? void 0 : a.promise) !== p || !this.plugin.tags.includes(this))
|
|
98
168
|
return;
|
|
99
|
-
this.model.object =
|
|
100
|
-
const
|
|
101
|
-
if (
|
|
169
|
+
this.model.object = o;
|
|
170
|
+
const s = this.plugin.gltfObjectGroup.children.find((r) => r.customID === this.id);
|
|
171
|
+
if (s && (this.plugin.gltfObjectGroup.remove(s), s.removeEventListener()), this.plugin.updateRender3DDomTag(), T(this)) {
|
|
102
172
|
if (this.computeRenderType() === "Mesh" && !this.mediaPlane) {
|
|
103
|
-
const
|
|
173
|
+
const r = this.data.mediaPosition.map(h);
|
|
104
174
|
this.mediaPlane = new M(this.data.mediaData[0].url, this.data.mediaPosition.map(h), {
|
|
105
175
|
objectFit: this.data.objectFit
|
|
106
176
|
});
|
|
107
|
-
const t = new u.Vector3().addVectors(
|
|
108
|
-
this.mediaPlane.position.copy(t),
|
|
177
|
+
const t = new u.Vector3().addVectors(r[0], r[2]).divideScalar(2);
|
|
178
|
+
this.mediaPlane.position.copy(t), o.add(this.mediaPlane);
|
|
109
179
|
}
|
|
110
|
-
this.computeRenderType() !== "Mesh" && (
|
|
180
|
+
this.computeRenderType() !== "Mesh" && (o.updateTagCss3DObjectMatrix = () => this.plugin.updateTagCss3DObjectMatrix(this, o), o.updateTagCss3DObjectMatrix());
|
|
111
181
|
}
|
|
112
|
-
return this.plugin.gltfObjectGroup.add(
|
|
182
|
+
return this.plugin.gltfObjectGroup.add(o), o;
|
|
113
183
|
}));
|
|
114
184
|
this.state.unfolded = !0;
|
|
115
185
|
}
|
|
116
186
|
applyVisible() {
|
|
117
|
-
var i,
|
|
118
|
-
(i = this.model) != null && i.object && (this.model.object.visible = this.currentVisible), (
|
|
187
|
+
var i, p, o;
|
|
188
|
+
(i = this.model) != null && i.object && (this.model.object.visible = this.currentVisible), (p = this.tag3DContentSvelte) == null || p.svelteApp.$set({ tag: this, state: this.plugin.state }), (o = this.tag3DContentSvelte) == null || o.css3DInstance.setVisible(this.currentVisible);
|
|
119
189
|
}
|
|
120
190
|
computeNormal() {
|
|
121
191
|
return v(this.data.mediaPosition);
|
|
122
192
|
}
|
|
123
193
|
}
|
|
124
194
|
export {
|
|
125
|
-
|
|
195
|
+
Fi as ModelTag
|
|
126
196
|
};
|
|
@@ -24,21 +24,91 @@ import "../../../shared-utils/five/mode.js";
|
|
|
24
24
|
import "hammerjs";
|
|
25
25
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
26
26
|
import "@realsee/five/line";
|
|
27
|
+
import "../../../Sculpt/utils/Modules/Global.js";
|
|
28
|
+
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
29
|
+
import "../../../Object3DHelperPlugin/Controller.js";
|
|
30
|
+
import "../../../base/BasePlugin.js";
|
|
27
31
|
import "../../../shared-utils/three/THREESphere.js";
|
|
28
32
|
import "animejs";
|
|
33
|
+
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
34
|
+
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
35
|
+
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
36
|
+
import "../../../shared-utils/five/transformPosition.js";
|
|
37
|
+
import "../../../shared-utils/five/getFiveModel.js";
|
|
38
|
+
import "../../../shared-utils/url/absoluteUrl.js";
|
|
29
39
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
40
|
+
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
41
|
+
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
42
|
+
import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
43
|
+
import "../../../shared-utils/three/IObject3D.js";
|
|
44
|
+
import "../../../shared-utils/three/boundingBox.js";
|
|
45
|
+
import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
46
|
+
import "../../../shared-utils/Object3DHelper/utils/direction.js";
|
|
47
|
+
import "../../../shared-utils/Object3DHelper/Constants/color.js";
|
|
48
|
+
import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
49
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
50
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
51
|
+
import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
52
|
+
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
53
|
+
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
54
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
55
|
+
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
56
|
+
import "../../../shared-utils/three/getObjectVisible.js";
|
|
57
|
+
import "../../../shared-utils/isNil.js";
|
|
58
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
59
|
+
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
60
|
+
import "../../../shared-utils/util.js";
|
|
61
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
62
|
+
import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
63
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
64
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
65
|
+
import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
66
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
67
|
+
import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
68
|
+
import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
69
|
+
import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
70
|
+
import "../../../shared-utils/threex/domevents/index.js";
|
|
71
|
+
import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
72
|
+
import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
73
|
+
import "../../../Sculpt/utils/three/rayOnLine.js";
|
|
74
|
+
import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
75
|
+
import "../../../shared-utils/Object3DHelper/index.js";
|
|
76
|
+
import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
77
|
+
import "../../../shared-utils/math/rad2Deg.js";
|
|
78
|
+
import "../../../shared-utils/math/deg2Rad.js";
|
|
79
|
+
import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
80
|
+
import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
81
|
+
import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
82
|
+
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
83
|
+
import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
84
|
+
import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
85
|
+
import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
86
|
+
import "../../../shared-utils/five/fiveModelLoad.js";
|
|
87
|
+
import "../../../shared-utils/five/FiveDomEvents.js";
|
|
88
|
+
import "../../../shared-utils/five/calculateThreeMouse.js";
|
|
89
|
+
import "../../../shared-utils/three/THREERaycaster.js";
|
|
90
|
+
import "../../../shared-utils/three/PointSelector/index.js";
|
|
91
|
+
import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
92
|
+
import "../../../shared-utils/three/Magnifier.js";
|
|
93
|
+
import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
94
|
+
import "../../../shared-utils/three/Assets/index.js";
|
|
95
|
+
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
96
|
+
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
97
|
+
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
98
|
+
import "../../../Sculpt/Meshes/Line.js";
|
|
99
|
+
import "../../../Sculpt/typings/style.js";
|
|
100
|
+
import "../../../shared-utils/five/FiveLine.js";
|
|
101
|
+
import "../../../shared-utils/tag.js";
|
|
102
|
+
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
103
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
104
|
+
import "../../../shared-utils/isTouchDevice.js";
|
|
105
|
+
import "../../../shared-utils/five/getPosition.js";
|
|
106
|
+
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
30
107
|
import "../../utils/tag/format.js";
|
|
31
108
|
import "../../../shared-utils/three/blink.js";
|
|
32
|
-
import "../../../shared-utils/util.js";
|
|
33
109
|
import "../../../shared-utils/vectorToCoordinate.js";
|
|
34
110
|
import "../../../shared-utils/formatRad.js";
|
|
35
|
-
import "../../../shared-utils/five/transformPosition.js";
|
|
36
|
-
import "../../../shared-utils/isNil.js";
|
|
37
111
|
import "../../../shared-utils/five/lookPoint.js";
|
|
38
|
-
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
39
|
-
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
40
|
-
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
41
|
-
import "../../../shared-utils/five/getFiveModel.js";
|
|
42
112
|
import "../../../shared-utils/uuid.js";
|
|
43
113
|
import "../../utils/tagPosition.js";
|
|
44
114
|
import "../../utils/tag/tagCheck.js";
|
|
@@ -49,54 +119,54 @@ import "../../../shared-utils/safeObj.js";
|
|
|
49
119
|
import "../../utils/Cache.js";
|
|
50
120
|
import "../../../CruisePlugin/utils/sleep.js";
|
|
51
121
|
const P = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map();
|
|
52
|
-
class
|
|
53
|
-
constructor(
|
|
54
|
-
super(
|
|
122
|
+
class ji extends f {
|
|
123
|
+
constructor(i, t) {
|
|
124
|
+
super(i, t), this.state.unfolded = !0;
|
|
55
125
|
}
|
|
56
126
|
applyVisible() {
|
|
57
|
-
var
|
|
58
|
-
this.computeRenderType() === "Mesh" ? ((r = (
|
|
127
|
+
var t, r, o, p, m, e;
|
|
128
|
+
this.computeRenderType() === "Mesh" ? ((r = (t = this.data.mediaData) == null ? void 0 : t[0]) == null ? void 0 : r.type) === "Video" ? this.renderVideoPlane() : ((p = (o = this.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : p.type) === "Image" && this.renderImagePlane() : ((m = this.tag3DContentSvelte) == null || m.svelteApp.$set({ tag: this, state: this.plugin.state }), (e = this.tag3DContentSvelte) == null || e.css3DInstance.setVisible(this.currentVisible));
|
|
59
129
|
}
|
|
60
130
|
renderVideoPlane() {
|
|
61
|
-
var
|
|
62
|
-
const
|
|
63
|
-
if (!
|
|
131
|
+
var e;
|
|
132
|
+
const i = this.data.mediaData[0];
|
|
133
|
+
if (!i)
|
|
64
134
|
return;
|
|
65
|
-
const { url:
|
|
66
|
-
if (!
|
|
135
|
+
const { url: t } = i;
|
|
136
|
+
if (!t)
|
|
67
137
|
return;
|
|
68
|
-
const r = this.currentVisible,
|
|
69
|
-
if ((
|
|
70
|
-
const
|
|
71
|
-
videoCoverSrc:
|
|
138
|
+
const r = this.currentVisible, o = (() => !!(this.mediaPlane && !r))(), p = (() => !!(!this.mediaPlane && r))(), m = (() => !!(this.mediaPlane && this.mediaPlane.src !== t))();
|
|
139
|
+
if ((o || m) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), p || m) {
|
|
140
|
+
const s = this.position.map(d), a = new u(t, s, {
|
|
141
|
+
videoCoverSrc: i.videoCoverUrl,
|
|
72
142
|
playButton: this.data.playIcon,
|
|
73
|
-
paused: !((
|
|
143
|
+
paused: !((e = this.data.autoplayConfig) != null && e.autoplayVideo),
|
|
74
144
|
objectFit: this.data.objectFit,
|
|
75
145
|
videoTextureMap: P,
|
|
76
146
|
ImageTextureMap: v,
|
|
77
147
|
domEvents: this.plugin.domEvents
|
|
78
148
|
});
|
|
79
|
-
|
|
80
|
-
|
|
149
|
+
a.onVideoReady = (n) => {
|
|
150
|
+
n.addEventListener("play", () => this.plugin.mediaStore.set({ currentMediaElement: a.videoInstance }));
|
|
81
151
|
};
|
|
82
|
-
const l = (
|
|
83
|
-
|
|
152
|
+
const l = (n) => (this.five.on("renderFrame", n), () => this.five.off("renderFrame", n));
|
|
153
|
+
a.initialRenderHooks(l), this.mediaPlane = a, this.plugin.imagePlaneGroup.add(this.mediaPlane);
|
|
84
154
|
}
|
|
85
155
|
this.five.needsRender = !0;
|
|
86
156
|
}
|
|
87
157
|
renderImagePlane() {
|
|
88
|
-
const
|
|
89
|
-
if (!
|
|
158
|
+
const i = this.data.mediaData[0];
|
|
159
|
+
if (!i)
|
|
90
160
|
return;
|
|
91
|
-
const { url:
|
|
92
|
-
if (!
|
|
161
|
+
const { url: t } = i;
|
|
162
|
+
if (!t)
|
|
93
163
|
return;
|
|
94
|
-
const r = this.position.map(d),
|
|
95
|
-
(
|
|
164
|
+
const r = this.position.map(d), o = this.currentVisible, p = (() => !!(this.mediaPlane && !o))(), m = (() => !!(!this.mediaPlane && o))(), e = (() => !!(this.mediaPlane && this.mediaPlane.src !== t))();
|
|
165
|
+
(p || e) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), (m || e) && (this.mediaPlane = new c(t, r, { objectFit: this.data.objectFit }), this.getConfig().clickable !== !1 && this.plugin.domEvents.addAutoBindEventListener(
|
|
96
166
|
this.mediaPlane,
|
|
97
167
|
"click",
|
|
98
|
-
(
|
|
99
|
-
this.plugin.hooks.emit("click", { tag: this, target: "TagContent", event:
|
|
168
|
+
(s) => {
|
|
169
|
+
this.plugin.hooks.emit("click", { tag: this, target: "TagContent", event: s.origDomEvent });
|
|
100
170
|
},
|
|
101
171
|
{ noEmitWhenHide: !0 }
|
|
102
172
|
), this.plugin.imagePlaneGroup.add(this.mediaPlane)), this.five.needsRender = !0;
|
|
@@ -106,5 +176,5 @@ class fe extends f {
|
|
|
106
176
|
}
|
|
107
177
|
}
|
|
108
178
|
export {
|
|
109
|
-
|
|
179
|
+
ji as PlaneTag
|
|
110
180
|
};
|