@quick-threejs/reactive 0.1.43 → 0.1.45
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/dist/{FontLoader-DvGzwRip.js → FontLoader-D3WA1QGd.js} +8 -8
- package/dist/{FontLoader-Dz0z8aMc.mjs → FontLoader-ejhD_xZ1.mjs} +430 -423
- package/dist/core/app/app.controller.d.ts +1 -1
- package/dist/core/app/app.module.d.ts +7 -4
- package/dist/core/app/app.service.d.ts +1 -1
- package/dist/core/app/app.worker.d.ts +1 -2
- package/dist/core/app/camera/camera.module.d.ts +1 -1
- package/dist/core/app/camera/camera.service.d.ts +2 -2
- package/dist/core/app/debug/debug.service.d.ts +1 -1
- package/dist/core/app/loader/loader.controller.d.ts +1 -1
- package/dist/core/app/loader/loader.module.d.ts +4 -4
- package/dist/core/app/loader/loader.service.d.ts +1 -1
- package/dist/core/app/renderer/renderer.controller.d.ts +1 -1
- package/dist/core/app/renderer/renderer.module.d.ts +1 -1
- package/dist/core/app/renderer/renderer.service.d.ts +1 -1
- package/dist/core/app/sizes/sizes.controller.d.ts +1 -1
- package/dist/core/app/sizes/sizes.module.d.ts +1 -2
- package/dist/core/app/sizes/sizes.service.d.ts +1 -1
- package/dist/core/app/timer/timer.controller.d.ts +6 -3
- package/dist/core/app/timer/timer.module.d.ts +7 -4
- package/dist/core/app/timer/timer.service.d.ts +8 -3
- package/dist/core/app/world/world.module.d.ts +1 -1
- package/dist/core/register/loader/loader.controller.d.ts +2 -2
- package/dist/core/register/loader/loader.module.d.ts +3 -3
- package/dist/core/register/loader/loader.service.d.ts +1 -1
- package/dist/core/register/register.controller.d.ts +1 -1
- package/dist/core/register/register.module.d.ts +1 -1
- package/dist/main.js +4 -4
- package/dist/main.mjs +1502 -1479
- package/dist/worker.js +1 -1
- package/dist/worker.mjs +333 -275
- package/package.json +7 -7
package/dist/worker.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var Ke = Object.defineProperty;
|
|
2
2
|
var We = (t, e, i) => e in t ? Ke(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
|
|
3
3
|
var a = (t, e, i) => We(t, typeof e != "symbol" ? e + "" : e, i);
|
|
4
|
-
import {
|
|
5
|
-
import { Ray as
|
|
6
|
-
var
|
|
4
|
+
import { v as Xe, _ as ve, w as be, O as qe, x as Ne, y as He, B as Be, G as Ve, s as p, L as d, H as Ge, i as h, P as Qe, j as ce, S as N, l as S, m as q, n as x, U as Pe, D as ge, k as Je, p as ke, I as Se, J as et, E as tt, A as it, d as st, f as rt, h as we, C as ot } from "./FontLoader-ejhD_xZ1.mjs";
|
|
5
|
+
import { Ray as nt, Plane as at, MathUtils as ht, Vector3 as b, Controls as ct, MOUSE as $, TOUCH as D, Quaternion as ye, Spherical as Ce, Vector2 as v, Timer as lt, PerspectiveCamera as E, OrthographicCamera as I, Camera as j, Scene as Fe, WebGLRenderer as Oe, PCFSoftShadowMap as _t, SRGBColorSpace as pt, CineonToneMapping as dt, AxesHelper as ut, GridHelper as mt, AnimationClip as ft } from "three";
|
|
6
|
+
var vt = {
|
|
7
7
|
now: function() {
|
|
8
8
|
return performance.now();
|
|
9
9
|
},
|
|
@@ -12,8 +12,8 @@ var ft = {
|
|
|
12
12
|
schedule: function(t) {
|
|
13
13
|
var e = requestAnimationFrame, i = cancelAnimationFrame, s = B.delegate;
|
|
14
14
|
s && (e = s.requestAnimationFrame, i = s.cancelAnimationFrame);
|
|
15
|
-
var r = e(function(
|
|
16
|
-
i = void 0, t(
|
|
15
|
+
var r = e(function(o) {
|
|
16
|
+
i = void 0, t(o);
|
|
17
17
|
});
|
|
18
18
|
return new Xe(function() {
|
|
19
19
|
return i == null ? void 0 : i(r);
|
|
@@ -31,58 +31,58 @@ var ft = {
|
|
|
31
31
|
},
|
|
32
32
|
delegate: void 0
|
|
33
33
|
};
|
|
34
|
-
function
|
|
35
|
-
return t ? Ye(t) :
|
|
34
|
+
function bt(t) {
|
|
35
|
+
return t ? Ye(t) : Pt;
|
|
36
36
|
}
|
|
37
37
|
function Ye(t) {
|
|
38
38
|
return new qe(function(e) {
|
|
39
|
-
var i = t ||
|
|
40
|
-
e.closed || (r = B.requestAnimationFrame(function(
|
|
39
|
+
var i = t || vt, s = i.now(), r = 0, o = function() {
|
|
40
|
+
e.closed || (r = B.requestAnimationFrame(function(n) {
|
|
41
41
|
r = 0;
|
|
42
42
|
var c = i.now();
|
|
43
43
|
e.next({
|
|
44
|
-
timestamp: t ? c :
|
|
44
|
+
timestamp: t ? c : n,
|
|
45
45
|
elapsed: c - s
|
|
46
|
-
}),
|
|
46
|
+
}), o();
|
|
47
47
|
}));
|
|
48
48
|
};
|
|
49
|
-
return
|
|
49
|
+
return o(), function() {
|
|
50
50
|
r && B.cancelAnimationFrame(r);
|
|
51
51
|
};
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
-
var
|
|
55
|
-
function
|
|
54
|
+
var Pt = Ye();
|
|
55
|
+
function gt(t, e) {
|
|
56
56
|
return e === void 0 && (e = !1), Ne(function(i, s) {
|
|
57
57
|
var r = 0;
|
|
58
|
-
i.subscribe(He(s, function(
|
|
59
|
-
var
|
|
60
|
-
(
|
|
58
|
+
i.subscribe(He(s, function(o) {
|
|
59
|
+
var n = t(o, r++);
|
|
60
|
+
(n || e) && s.next(o), !n && s.complete();
|
|
61
61
|
}));
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function St(t, e, i) {
|
|
65
65
|
var s = Ve(t) || e || i ? { next: t, error: e, complete: i } : t;
|
|
66
|
-
return s ? Ne(function(r,
|
|
67
|
-
var
|
|
68
|
-
(
|
|
66
|
+
return s ? Ne(function(r, o) {
|
|
67
|
+
var n;
|
|
68
|
+
(n = s.subscribe) === null || n === void 0 || n.call(s);
|
|
69
69
|
var c = !0;
|
|
70
|
-
r.subscribe(He(
|
|
70
|
+
r.subscribe(He(o, function(l) {
|
|
71
71
|
var u;
|
|
72
|
-
(u = s.next) === null || u === void 0 || u.call(s, l),
|
|
72
|
+
(u = s.next) === null || u === void 0 || u.call(s, l), o.next(l);
|
|
73
73
|
}, function() {
|
|
74
74
|
var l;
|
|
75
|
-
c = !1, (l = s.complete) === null || l === void 0 || l.call(s),
|
|
75
|
+
c = !1, (l = s.complete) === null || l === void 0 || l.call(s), o.complete();
|
|
76
76
|
}, function(l) {
|
|
77
77
|
var u;
|
|
78
|
-
c = !1, (u = s.error) === null || u === void 0 || u.call(s, l),
|
|
78
|
+
c = !1, (u = s.error) === null || u === void 0 || u.call(s, l), o.error(l);
|
|
79
79
|
}, function() {
|
|
80
80
|
var l, u;
|
|
81
81
|
c && ((l = s.unsubscribe) === null || l === void 0 || l.call(s)), (u = s.finalize) === null || u === void 0 || u.call(s);
|
|
82
82
|
}));
|
|
83
83
|
}) : Be;
|
|
84
84
|
}
|
|
85
|
-
const De = { type: "change" }, le = { type: "start" }, Ue = { type: "end" },
|
|
85
|
+
const De = { type: "change" }, le = { type: "start" }, Ue = { type: "end" }, z = new nt(), Ee = new at(), wt = Math.cos(70 * ht.DEG2RAD), m = new b(), f = 2 * Math.PI, _ = {
|
|
86
86
|
NONE: -1,
|
|
87
87
|
ROTATE: 0,
|
|
88
88
|
DOLLY: 1,
|
|
@@ -97,16 +97,28 @@ class $e extends ct {
|
|
|
97
97
|
* Constructs a new controls instance.
|
|
98
98
|
*
|
|
99
99
|
* @param {Object3D} object - The object that is managed by the controls.
|
|
100
|
-
* @param {?
|
|
100
|
+
* @param {?HTMLElement} domElement - The HTML element used for event listeners.
|
|
101
101
|
*/
|
|
102
102
|
constructor(e, i = null) {
|
|
103
|
-
super(e, i), this.state = _.NONE, this.target = new b(), this.cursor = new b(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.keyRotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: $.ROTATE, MIDDLE: $.DOLLY, RIGHT: $.PAN }, this.touches = { ONE: D.ROTATE, TWO: D.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new b(), this._lastQuaternion = new
|
|
103
|
+
super(e, i), this.state = _.NONE, this.target = new b(), this.cursor = new b(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.keyRotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: $.ROTATE, MIDDLE: $.DOLLY, RIGHT: $.PAN }, this.touches = { ONE: D.ROTATE, TWO: D.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._cursorStyle = "auto", this._domElementKeyEvents = null, this._lastPosition = new b(), this._lastQuaternion = new ye(), this._lastTargetPosition = new b(), this._quat = new ye().setFromUnitVectors(e.up, new b(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new Ce(), this._sphericalDelta = new Ce(), this._scale = 1, this._panOffset = new b(), this._rotateStart = new v(), this._rotateEnd = new v(), this._rotateDelta = new v(), this._panStart = new v(), this._panEnd = new v(), this._panDelta = new v(), this._dollyStart = new v(), this._dollyEnd = new v(), this._dollyDelta = new v(), this._dollyDirection = new b(), this._mouse = new v(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = Ct.bind(this), this._onPointerDown = yt.bind(this), this._onPointerUp = Ot.bind(this), this._onContextMenu = jt.bind(this), this._onMouseWheel = $t.bind(this), this._onKeyDown = Rt.bind(this), this._onTouchStart = Tt.bind(this), this._onTouchMove = Mt.bind(this), this._onMouseDown = Dt.bind(this), this._onMouseMove = Et.bind(this), this._interceptControlDown = xt.bind(this), this._interceptControlUp = At.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Defines the visual representation of the cursor.
|
|
107
|
+
*
|
|
108
|
+
* @type {('auto'|'grab')}
|
|
109
|
+
* @default 'auto'
|
|
110
|
+
*/
|
|
111
|
+
set cursorStyle(e) {
|
|
112
|
+
this._cursorStyle = e, e === "grab" ? this.domElement.style.cursor = "grab" : this.domElement.style.cursor = "auto";
|
|
113
|
+
}
|
|
114
|
+
get cursorStyle() {
|
|
115
|
+
return this._cursorStyle;
|
|
104
116
|
}
|
|
105
117
|
connect(e) {
|
|
106
118
|
super.connect(e), this.domElement.addEventListener("pointerdown", this._onPointerDown), this.domElement.addEventListener("pointercancel", this._onPointerUp), this.domElement.addEventListener("contextmenu", this._onContextMenu), this.domElement.addEventListener("wheel", this._onMouseWheel, { passive: !1 }), this.domElement.getRootNode().addEventListener("keydown", this._interceptControlDown, { passive: !0, capture: !0 }), this.domElement.style.touchAction = "none";
|
|
107
119
|
}
|
|
108
120
|
disconnect() {
|
|
109
|
-
this.domElement.removeEventListener("pointerdown", this._onPointerDown), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.domElement.removeEventListener("pointercancel", this._onPointerUp), this.domElement.removeEventListener("wheel", this._onMouseWheel), this.domElement.removeEventListener("contextmenu", this._onContextMenu), this.stopListenToKeyEvents(), this.domElement.getRootNode().removeEventListener("keydown", this._interceptControlDown, { capture: !0 }), this.domElement.style.touchAction = "auto";
|
|
121
|
+
this.domElement.removeEventListener("pointerdown", this._onPointerDown), this.domElement.ownerDocument.removeEventListener("pointermove", this._onPointerMove), this.domElement.ownerDocument.removeEventListener("pointerup", this._onPointerUp), this.domElement.removeEventListener("pointercancel", this._onPointerUp), this.domElement.removeEventListener("wheel", this._onMouseWheel), this.domElement.removeEventListener("contextmenu", this._onContextMenu), this.stopListenToKeyEvents(), this.domElement.getRootNode().removeEventListener("keydown", this._interceptControlDown, { capture: !0 }), this.domElement.style.touchAction = "auto";
|
|
110
122
|
}
|
|
111
123
|
dispose() {
|
|
112
124
|
this.disconnect();
|
|
@@ -139,7 +151,7 @@ class $e extends ct {
|
|
|
139
151
|
* Adds key event listeners to the given DOM element.
|
|
140
152
|
* `window` is a recommended argument for using this method.
|
|
141
153
|
*
|
|
142
|
-
* @param {
|
|
154
|
+
* @param {HTMLElement} domElement - The DOM element
|
|
143
155
|
*/
|
|
144
156
|
listenToKeyEvents(e) {
|
|
145
157
|
e.addEventListener("keydown", this._onKeyDown), this._domElementKeyEvents = e;
|
|
@@ -163,40 +175,81 @@ class $e extends ct {
|
|
|
163
175
|
reset() {
|
|
164
176
|
this.target.copy(this.target0), this.object.position.copy(this.position0), this.object.zoom = this.zoom0, this.object.updateProjectionMatrix(), this.dispatchEvent(De), this.update(), this.state = _.NONE;
|
|
165
177
|
}
|
|
178
|
+
/**
|
|
179
|
+
* Programmatically pan the camera.
|
|
180
|
+
*
|
|
181
|
+
* @param {number} deltaX - The horizontal pan amount in pixels.
|
|
182
|
+
* @param {number} deltaY - The vertical pan amount in pixels.
|
|
183
|
+
*/
|
|
184
|
+
pan(e, i) {
|
|
185
|
+
this._pan(e, i), this.update();
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Programmatically dolly in (zoom in for perspective camera).
|
|
189
|
+
*
|
|
190
|
+
* @param {number} dollyScale - The dolly scale factor.
|
|
191
|
+
*/
|
|
192
|
+
dollyIn(e) {
|
|
193
|
+
this._dollyIn(e), this.update();
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Programmatically dolly out (zoom out for perspective camera).
|
|
197
|
+
*
|
|
198
|
+
* @param {number} dollyScale - The dolly scale factor.
|
|
199
|
+
*/
|
|
200
|
+
dollyOut(e) {
|
|
201
|
+
this._dollyOut(e), this.update();
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Programmatically rotate the camera left (around the vertical axis).
|
|
205
|
+
*
|
|
206
|
+
* @param {number} angle - The rotation angle in radians.
|
|
207
|
+
*/
|
|
208
|
+
rotateLeft(e) {
|
|
209
|
+
this._rotateLeft(e), this.update();
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Programmatically rotate the camera up (around the horizontal axis).
|
|
213
|
+
*
|
|
214
|
+
* @param {number} angle - The rotation angle in radians.
|
|
215
|
+
*/
|
|
216
|
+
rotateUp(e) {
|
|
217
|
+
this._rotateUp(e), this.update();
|
|
218
|
+
}
|
|
166
219
|
update(e = null) {
|
|
167
220
|
const i = this.object.position;
|
|
168
221
|
m.copy(i).sub(this.target), m.applyQuaternion(this._quat), this._spherical.setFromVector3(m), this.autoRotate && this.state === _.NONE && this._rotateLeft(this._getAutoRotationAngle(e)), this.enableDamping ? (this._spherical.theta += this._sphericalDelta.theta * this.dampingFactor, this._spherical.phi += this._sphericalDelta.phi * this.dampingFactor) : (this._spherical.theta += this._sphericalDelta.theta, this._spherical.phi += this._sphericalDelta.phi);
|
|
169
222
|
let s = this.minAzimuthAngle, r = this.maxAzimuthAngle;
|
|
170
223
|
isFinite(s) && isFinite(r) && (s < -Math.PI ? s += f : s > Math.PI && (s -= f), r < -Math.PI ? r += f : r > Math.PI && (r -= f), s <= r ? this._spherical.theta = Math.max(s, Math.min(r, this._spherical.theta)) : this._spherical.theta = this._spherical.theta > (s + r) / 2 ? Math.max(s, this._spherical.theta) : Math.min(r, this._spherical.theta)), this._spherical.phi = Math.max(this.minPolarAngle, Math.min(this.maxPolarAngle, this._spherical.phi)), this._spherical.makeSafe(), this.enableDamping === !0 ? this.target.addScaledVector(this._panOffset, this.dampingFactor) : this.target.add(this._panOffset), this.target.sub(this.cursor), this.target.clampLength(this.minTargetRadius, this.maxTargetRadius), this.target.add(this.cursor);
|
|
171
|
-
let
|
|
224
|
+
let o = !1;
|
|
172
225
|
if (this.zoomToCursor && this._performCursorZoom || this.object.isOrthographicCamera)
|
|
173
226
|
this._spherical.radius = this._clampDistance(this._spherical.radius);
|
|
174
227
|
else {
|
|
175
|
-
const
|
|
176
|
-
this._spherical.radius = this._clampDistance(this._spherical.radius * this._scale),
|
|
228
|
+
const n = this._spherical.radius;
|
|
229
|
+
this._spherical.radius = this._clampDistance(this._spherical.radius * this._scale), o = n != this._spherical.radius;
|
|
177
230
|
}
|
|
178
231
|
if (m.setFromSpherical(this._spherical), m.applyQuaternion(this._quatInverse), i.copy(this.target).add(m), this.object.lookAt(this.target), this.enableDamping === !0 ? (this._sphericalDelta.theta *= 1 - this.dampingFactor, this._sphericalDelta.phi *= 1 - this.dampingFactor, this._panOffset.multiplyScalar(1 - this.dampingFactor)) : (this._sphericalDelta.set(0, 0, 0), this._panOffset.set(0, 0, 0)), this.zoomToCursor && this._performCursorZoom) {
|
|
179
|
-
let
|
|
232
|
+
let n = null;
|
|
180
233
|
if (this.object.isPerspectiveCamera) {
|
|
181
234
|
const c = m.length();
|
|
182
|
-
|
|
183
|
-
const l = c -
|
|
184
|
-
this.object.position.addScaledVector(this._dollyDirection, l), this.object.updateMatrixWorld(),
|
|
235
|
+
n = this._clampDistance(c * this._scale);
|
|
236
|
+
const l = c - n;
|
|
237
|
+
this.object.position.addScaledVector(this._dollyDirection, l), this.object.updateMatrixWorld(), o = !!l;
|
|
185
238
|
} else if (this.object.isOrthographicCamera) {
|
|
186
239
|
const c = new b(this._mouse.x, this._mouse.y, 0);
|
|
187
240
|
c.unproject(this.object);
|
|
188
241
|
const l = this.object.zoom;
|
|
189
|
-
this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), this.object.updateProjectionMatrix(),
|
|
242
|
+
this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), this.object.updateProjectionMatrix(), o = l !== this.object.zoom;
|
|
190
243
|
const u = new b(this._mouse.x, this._mouse.y, 0);
|
|
191
|
-
u.unproject(this.object), this.object.position.sub(u).add(c), this.object.updateMatrixWorld(),
|
|
244
|
+
u.unproject(this.object), this.object.position.sub(u).add(c), this.object.updateMatrixWorld(), n = m.length();
|
|
192
245
|
} else
|
|
193
246
|
console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."), this.zoomToCursor = !1;
|
|
194
|
-
|
|
247
|
+
n !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(n).add(this.object.position) : (z.origin.copy(this.object.position), z.direction.set(0, 0, -1).transformDirection(this.object.matrix), Math.abs(this.object.up.dot(z.direction)) < wt ? this.object.lookAt(this.target) : (Ee.setFromNormalAndCoplanarPoint(this.object.up, this.target), z.intersectPlane(Ee, this.target))));
|
|
195
248
|
} else if (this.object.isOrthographicCamera) {
|
|
196
|
-
const
|
|
197
|
-
this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)),
|
|
249
|
+
const n = this.object.zoom;
|
|
250
|
+
this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), n !== this.object.zoom && (this.object.updateProjectionMatrix(), o = !0);
|
|
198
251
|
}
|
|
199
|
-
return this._scale = 1, this._performCursorZoom = !1,
|
|
252
|
+
return this._scale = 1, this._performCursorZoom = !1, o || this._lastPosition.distanceToSquared(this.object.position) > Z || 8 * (1 - this._lastQuaternion.dot(this.object.quaternion)) > Z || this._lastTargetPosition.distanceToSquared(this.target) > Z ? (this.dispatchEvent(De), this._lastPosition.copy(this.object.position), this._lastQuaternion.copy(this.object.quaternion), this._lastTargetPosition.copy(this.target), !0) : !1;
|
|
200
253
|
}
|
|
201
254
|
_getAutoRotationAngle(e) {
|
|
202
255
|
return e !== null ? f / 60 * this.autoRotateSpeed * e : f / 60 / 60 * this.autoRotateSpeed;
|
|
@@ -223,8 +276,8 @@ class $e extends ct {
|
|
|
223
276
|
if (this.object.isPerspectiveCamera) {
|
|
224
277
|
const r = this.object.position;
|
|
225
278
|
m.copy(r).sub(this.target);
|
|
226
|
-
let
|
|
227
|
-
|
|
279
|
+
let o = m.length();
|
|
280
|
+
o *= Math.tan(this.object.fov / 2 * Math.PI / 180), this._panLeft(2 * e * o / s.clientHeight, this.object.matrix), this._panUp(2 * i * o / s.clientHeight, this.object.matrix);
|
|
228
281
|
} else this.object.isOrthographicCamera ? (this._panLeft(e * (this.object.right - this.object.left) / this.object.zoom / s.clientWidth, this.object.matrix), this._panUp(i * (this.object.top - this.object.bottom) / this.object.zoom / s.clientHeight, this.object.matrix)) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."), this.enablePan = !1);
|
|
229
282
|
}
|
|
230
283
|
_dollyOut(e) {
|
|
@@ -237,8 +290,8 @@ class $e extends ct {
|
|
|
237
290
|
if (!this.zoomToCursor)
|
|
238
291
|
return;
|
|
239
292
|
this._performCursorZoom = !0;
|
|
240
|
-
const s = this.domElement.getBoundingClientRect(), r = e - s.left,
|
|
241
|
-
this._mouse.x = r /
|
|
293
|
+
const s = this.domElement.getBoundingClientRect(), r = e - s.left, o = i - s.top, n = s.width, c = s.height;
|
|
294
|
+
this._mouse.x = r / n * 2 - 1, this._mouse.y = -(o / c) * 2 + 1, this._dollyDirection.set(this._mouse.x, this._mouse.y, 1).unproject(this.object).sub(this.object.position).normalize();
|
|
242
295
|
}
|
|
243
296
|
_clampDistance(e) {
|
|
244
297
|
return Math.max(this.minDistance, Math.min(this.maxDistance, e));
|
|
@@ -304,8 +357,8 @@ class $e extends ct {
|
|
|
304
357
|
}
|
|
305
358
|
}
|
|
306
359
|
_handleTouchStartDolly(e) {
|
|
307
|
-
const i = this._getSecondPointerPosition(e), s = e.pageX - i.x, r = e.pageY - i.y,
|
|
308
|
-
this._dollyStart.set(0,
|
|
360
|
+
const i = this._getSecondPointerPosition(e), s = e.pageX - i.x, r = e.pageY - i.y, o = Math.sqrt(s * s + r * r);
|
|
361
|
+
this._dollyStart.set(0, o);
|
|
309
362
|
}
|
|
310
363
|
_handleTouchStartDollyPan(e) {
|
|
311
364
|
this.enableZoom && this._handleTouchStartDolly(e), this.enablePan && this._handleTouchStartPan(e);
|
|
@@ -317,8 +370,8 @@ class $e extends ct {
|
|
|
317
370
|
if (this._pointers.length == 1)
|
|
318
371
|
this._rotateEnd.set(e.pageX, e.pageY);
|
|
319
372
|
else {
|
|
320
|
-
const s = this._getSecondPointerPosition(e), r = 0.5 * (e.pageX + s.x),
|
|
321
|
-
this._rotateEnd.set(r,
|
|
373
|
+
const s = this._getSecondPointerPosition(e), r = 0.5 * (e.pageX + s.x), o = 0.5 * (e.pageY + s.y);
|
|
374
|
+
this._rotateEnd.set(r, o);
|
|
322
375
|
}
|
|
323
376
|
this._rotateDelta.subVectors(this._rotateEnd, this._rotateStart).multiplyScalar(this.rotateSpeed);
|
|
324
377
|
const i = this.domElement;
|
|
@@ -334,10 +387,10 @@ class $e extends ct {
|
|
|
334
387
|
this._panDelta.subVectors(this._panEnd, this._panStart).multiplyScalar(this.panSpeed), this._pan(this._panDelta.x, this._panDelta.y), this._panStart.copy(this._panEnd);
|
|
335
388
|
}
|
|
336
389
|
_handleTouchMoveDolly(e) {
|
|
337
|
-
const i = this._getSecondPointerPosition(e), s = e.pageX - i.x, r = e.pageY - i.y,
|
|
338
|
-
this._dollyEnd.set(0,
|
|
339
|
-
const
|
|
340
|
-
this._updateZoomParameters(
|
|
390
|
+
const i = this._getSecondPointerPosition(e), s = e.pageX - i.x, r = e.pageY - i.y, o = Math.sqrt(s * s + r * r);
|
|
391
|
+
this._dollyEnd.set(0, o), this._dollyDelta.set(0, Math.pow(this._dollyEnd.y / this._dollyStart.y, this.zoomSpeed)), this._dollyOut(this._dollyDelta.y), this._dollyStart.copy(this._dollyEnd);
|
|
392
|
+
const n = (e.pageX + i.x) * 0.5, c = (e.pageY + i.y) * 0.5;
|
|
393
|
+
this._updateZoomParameters(n, c);
|
|
341
394
|
}
|
|
342
395
|
_handleTouchMoveDollyPan(e) {
|
|
343
396
|
this.enableZoom && this._handleTouchMoveDolly(e), this.enablePan && this._handleTouchMovePan(e);
|
|
@@ -388,16 +441,16 @@ class $e extends ct {
|
|
|
388
441
|
return e.ctrlKey && !this._controlActive && (s.deltaY *= 10), s;
|
|
389
442
|
}
|
|
390
443
|
}
|
|
391
|
-
function
|
|
392
|
-
this.enabled !== !1 && (this._pointers.length === 0 && (this.domElement.setPointerCapture(t.pointerId), this.domElement.addEventListener("pointermove", this._onPointerMove), this.domElement.addEventListener("pointerup", this._onPointerUp)), !this._isTrackingPointer(t) && (this._addPointer(t), t.pointerType === "touch" ? this._onTouchStart(t) : this._onMouseDown(t)));
|
|
444
|
+
function yt(t) {
|
|
445
|
+
this.enabled !== !1 && (this._pointers.length === 0 && (this.domElement.setPointerCapture(t.pointerId), this.domElement.ownerDocument.addEventListener("pointermove", this._onPointerMove), this.domElement.ownerDocument.addEventListener("pointerup", this._onPointerUp)), !this._isTrackingPointer(t) && (this._addPointer(t), t.pointerType === "touch" ? this._onTouchStart(t) : this._onMouseDown(t), this._cursorStyle === "grab" && (this.domElement.style.cursor = "grabbing")));
|
|
393
446
|
}
|
|
394
|
-
function
|
|
447
|
+
function Ct(t) {
|
|
395
448
|
this.enabled !== !1 && (t.pointerType === "touch" ? this._onTouchMove(t) : this._onMouseMove(t));
|
|
396
449
|
}
|
|
397
|
-
function
|
|
450
|
+
function Ot(t) {
|
|
398
451
|
switch (this._removePointer(t), this._pointers.length) {
|
|
399
452
|
case 0:
|
|
400
|
-
this.domElement.releasePointerCapture(t.pointerId), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(Ue), this.state = _.NONE;
|
|
453
|
+
this.domElement.releasePointerCapture(t.pointerId), this.domElement.ownerDocument.removeEventListener("pointermove", this._onPointerMove), this.domElement.ownerDocument.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(Ue), this.state = _.NONE, this._cursorStyle === "grab" && (this.domElement.style.cursor = "grab");
|
|
401
454
|
break;
|
|
402
455
|
case 1:
|
|
403
456
|
const e = this._pointers[0], i = this._pointerPositions[e];
|
|
@@ -405,7 +458,7 @@ function yt(t) {
|
|
|
405
458
|
break;
|
|
406
459
|
}
|
|
407
460
|
}
|
|
408
|
-
function
|
|
461
|
+
function Dt(t) {
|
|
409
462
|
let e;
|
|
410
463
|
switch (t.button) {
|
|
411
464
|
case 0:
|
|
@@ -448,7 +501,7 @@ function Ot(t) {
|
|
|
448
501
|
}
|
|
449
502
|
this.state !== _.NONE && this.dispatchEvent(le);
|
|
450
503
|
}
|
|
451
|
-
function
|
|
504
|
+
function Et(t) {
|
|
452
505
|
switch (this.state) {
|
|
453
506
|
case _.ROTATE:
|
|
454
507
|
if (this.enableRotate === !1) return;
|
|
@@ -464,13 +517,13 @@ function Dt(t) {
|
|
|
464
517
|
break;
|
|
465
518
|
}
|
|
466
519
|
}
|
|
467
|
-
function
|
|
520
|
+
function $t(t) {
|
|
468
521
|
this.enabled === !1 || this.enableZoom === !1 || this.state !== _.NONE || (t.preventDefault(), this.dispatchEvent(le), this._handleMouseWheel(this._customWheelEvent(t)), this.dispatchEvent(Ue));
|
|
469
522
|
}
|
|
470
|
-
function
|
|
523
|
+
function Rt(t) {
|
|
471
524
|
this.enabled !== !1 && this._handleKeyDown(t);
|
|
472
525
|
}
|
|
473
|
-
function
|
|
526
|
+
function Tt(t) {
|
|
474
527
|
switch (this._trackPointer(t), this._pointers.length) {
|
|
475
528
|
case 1:
|
|
476
529
|
switch (this.touches.ONE) {
|
|
@@ -505,7 +558,7 @@ function Rt(t) {
|
|
|
505
558
|
}
|
|
506
559
|
this.state !== _.NONE && this.dispatchEvent(le);
|
|
507
560
|
}
|
|
508
|
-
function
|
|
561
|
+
function Mt(t) {
|
|
509
562
|
switch (this._trackPointer(t), this.state) {
|
|
510
563
|
case _.TOUCH_ROTATE:
|
|
511
564
|
if (this.enableRotate === !1) return;
|
|
@@ -527,19 +580,19 @@ function Tt(t) {
|
|
|
527
580
|
this.state = _.NONE;
|
|
528
581
|
}
|
|
529
582
|
}
|
|
530
|
-
function
|
|
583
|
+
function jt(t) {
|
|
531
584
|
this.enabled !== !1 && t.preventDefault();
|
|
532
585
|
}
|
|
533
|
-
function
|
|
586
|
+
function xt(t) {
|
|
534
587
|
t.key === "Control" && (this._controlActive = !0, this.domElement.getRootNode().addEventListener("keyup", this._interceptControlUp, { passive: !0, capture: !0 }));
|
|
535
588
|
}
|
|
536
|
-
function
|
|
589
|
+
function At(t) {
|
|
537
590
|
t.key === "Control" && (this._controlActive = !1, this.domElement.getRootNode().removeEventListener("keyup", this._interceptControlUp, { passive: !0, capture: !0 }));
|
|
538
591
|
}
|
|
539
|
-
var
|
|
540
|
-
for (var r = s > 1 ? void 0 : s ? zt(e, i) : e,
|
|
541
|
-
(
|
|
542
|
-
return s && r &&
|
|
592
|
+
var Lt = Object.defineProperty, zt = Object.getOwnPropertyDescriptor, It = (t, e, i, s) => {
|
|
593
|
+
for (var r = s > 1 ? void 0 : s ? zt(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
594
|
+
(n = t[o]) && (r = (s ? n(e, i, r) : n(r)) || r);
|
|
595
|
+
return s && r && Lt(e, i, r), r;
|
|
543
596
|
};
|
|
544
597
|
let A = class {
|
|
545
598
|
constructor() {
|
|
@@ -557,84 +610,89 @@ let A = class {
|
|
|
557
610
|
}, this._canvas = t;
|
|
558
611
|
}
|
|
559
612
|
};
|
|
560
|
-
A =
|
|
613
|
+
A = It([
|
|
561
614
|
p(d.ContainerScoped)
|
|
562
615
|
], A);
|
|
563
|
-
var
|
|
564
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
565
|
-
(
|
|
566
|
-
return s && r &&
|
|
567
|
-
},
|
|
616
|
+
var Nt = Object.defineProperty, Ht = Object.getOwnPropertyDescriptor, Ft = (t, e, i, s) => {
|
|
617
|
+
for (var r = s > 1 ? void 0 : s ? Ht(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
618
|
+
(n = t[o]) && (r = (s ? n(e, i, r) : n(r)) || r);
|
|
619
|
+
return s && r && Nt(e, i, r), r;
|
|
620
|
+
}, Yt = (t, e) => (i, s) => e(i, s, t);
|
|
568
621
|
let H = class extends Qe {
|
|
569
622
|
constructor(t) {
|
|
570
623
|
super(), this._service = t;
|
|
571
624
|
for (const e of ce)
|
|
572
625
|
this[`${e}$$`] = new N(), this[`${e}$`] = this[`${e}$$`].pipe(), this[e] = (i) => {
|
|
573
|
-
|
|
626
|
+
const s = {
|
|
574
627
|
...i,
|
|
575
628
|
type: i.type || e
|
|
576
|
-
}
|
|
629
|
+
};
|
|
630
|
+
this._service.proxyReceiver.handleEvent(s), this._service.proxyReceiver.ownerDocument.handleEvent(s), this[`${e}$$`].next(i);
|
|
577
631
|
};
|
|
578
632
|
}
|
|
579
633
|
};
|
|
580
|
-
H =
|
|
634
|
+
H = Ft([
|
|
581
635
|
p(d.ContainerScoped),
|
|
582
|
-
|
|
636
|
+
Yt(0, h(A))
|
|
583
637
|
], H);
|
|
584
|
-
var
|
|
585
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
586
|
-
(
|
|
587
|
-
return s && r &&
|
|
638
|
+
var Ut = Object.defineProperty, Zt = Object.getOwnPropertyDescriptor, Kt = (t, e, i, s) => {
|
|
639
|
+
for (var r = s > 1 ? void 0 : s ? Zt(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
640
|
+
(n = t[o]) && (r = (s ? n(e, i, r) : n(r)) || r);
|
|
641
|
+
return s && r && Ut(e, i, r), r;
|
|
588
642
|
};
|
|
589
643
|
let F = class {
|
|
590
644
|
constructor() {
|
|
591
|
-
a(this, "
|
|
645
|
+
a(this, "fps", 60);
|
|
646
|
+
a(this, "frame", 1e3 / this.fps);
|
|
647
|
+
a(this, "timer", new lt());
|
|
592
648
|
a(this, "initialTime", Date.now());
|
|
593
|
-
a(this, "
|
|
594
|
-
a(this, "
|
|
649
|
+
a(this, "elapsed", 0);
|
|
650
|
+
a(this, "previousDelta", 0);
|
|
651
|
+
a(this, "delta", 0);
|
|
595
652
|
a(this, "deltaRatio", 0);
|
|
596
|
-
a(this, "elapsedTime", 0);
|
|
597
653
|
a(this, "enabled", !1);
|
|
598
654
|
}
|
|
655
|
+
init(t) {
|
|
656
|
+
this.timer.connect(t);
|
|
657
|
+
}
|
|
599
658
|
step() {
|
|
600
|
-
|
|
601
|
-
this.deltaTime = t - this.currentTime, this.currentTime = t, this.elapsedTime = t - this.initialTime, this.deltaRatio = this.deltaTime / this.frame;
|
|
659
|
+
this.timer.update(), this.elapsed = this.timer.getElapsed(), this.delta = this.elapsed - this.previousDelta, this.previousDelta = this.elapsed, this.deltaRatio = this.delta / this.frame;
|
|
602
660
|
}
|
|
603
661
|
};
|
|
604
|
-
F =
|
|
662
|
+
F = Kt([
|
|
605
663
|
p(d.ContainerScoped)
|
|
606
664
|
], F);
|
|
607
|
-
var
|
|
608
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
609
|
-
(
|
|
610
|
-
return s && r &&
|
|
611
|
-
},
|
|
665
|
+
var Wt = Object.defineProperty, Xt = Object.getOwnPropertyDescriptor, qt = (t, e, i, s) => {
|
|
666
|
+
for (var r = s > 1 ? void 0 : s ? Xt(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
667
|
+
(n = t[o]) && (r = (s ? n(e, i, r) : n(r)) || r);
|
|
668
|
+
return s && r && Wt(e, i, r), r;
|
|
669
|
+
}, Bt = (t, e) => (i, s) => e(i, s, t);
|
|
612
670
|
let R = class {
|
|
613
671
|
constructor(t) {
|
|
614
672
|
a(this, "_beforeStep$$", new N());
|
|
615
673
|
a(this, "_oldElapsed", 0);
|
|
616
674
|
a(this, "beforeStep$", this._beforeStep$$.asObservable());
|
|
617
|
-
a(this, "step$",
|
|
618
|
-
|
|
675
|
+
a(this, "step$", bt().pipe(
|
|
676
|
+
St(({ elapsed: t }) => {
|
|
619
677
|
var e;
|
|
620
678
|
this._oldElapsed !== t && ((e = this._beforeStep$$) == null || e.next(Pe(this._service, [])), this._oldElapsed = t);
|
|
621
679
|
}),
|
|
622
|
-
|
|
623
|
-
|
|
680
|
+
S(() => this._service.enabled),
|
|
681
|
+
gt(() => this._service.enabled),
|
|
624
682
|
q(() => Pe(this._service, [])),
|
|
625
683
|
x()
|
|
626
684
|
));
|
|
627
685
|
this._service = t;
|
|
628
686
|
}
|
|
629
687
|
};
|
|
630
|
-
R =
|
|
688
|
+
R = qt([
|
|
631
689
|
p(d.ContainerScoped),
|
|
632
|
-
|
|
690
|
+
Bt(0, h(F))
|
|
633
691
|
], R);
|
|
634
|
-
var
|
|
635
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
636
|
-
(
|
|
637
|
-
return s && r &&
|
|
692
|
+
var Vt = Object.defineProperty, Gt = Object.getOwnPropertyDescriptor, Qt = (t, e, i, s) => {
|
|
693
|
+
for (var r = s > 1 ? void 0 : s ? Gt(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
694
|
+
(n = t[o]) && (r = (s ? n(e, i, r) : n(r)) || r);
|
|
695
|
+
return s && r && Vt(e, i, r), r;
|
|
638
696
|
}, Re = (t, e) => (i, s) => e(i, s, t);
|
|
639
697
|
let V = class {
|
|
640
698
|
constructor(t, e) {
|
|
@@ -651,7 +709,7 @@ let V = class {
|
|
|
651
709
|
return this._service.frame;
|
|
652
710
|
}
|
|
653
711
|
deltaTime(t) {
|
|
654
|
-
return typeof t == "number" && (this._service.
|
|
712
|
+
return typeof t == "number" && (this._service.delta = t), this._service.delta;
|
|
655
713
|
}
|
|
656
714
|
deltaRatio(t) {
|
|
657
715
|
return typeof t == "number" && (this._service.deltaRatio = t), this._service.deltaRatio;
|
|
@@ -669,17 +727,17 @@ let V = class {
|
|
|
669
727
|
return this._controller.step$;
|
|
670
728
|
}
|
|
671
729
|
};
|
|
672
|
-
V =
|
|
730
|
+
V = Qt([
|
|
673
731
|
p(d.ContainerScoped),
|
|
674
732
|
Re(0, h(R)),
|
|
675
733
|
Re(1, h(F))
|
|
676
734
|
], V);
|
|
677
|
-
var
|
|
678
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
679
|
-
(
|
|
680
|
-
return s && r &&
|
|
735
|
+
var Jt = Object.defineProperty, kt = Object.getOwnPropertyDescriptor, ei = (t, e, i, s) => {
|
|
736
|
+
for (var r = s > 1 ? void 0 : s ? kt(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
737
|
+
(n = t[o]) && (r = (s ? n(e, i, r) : n(r)) || r);
|
|
738
|
+
return s && r && Jt(e, i, r), r;
|
|
681
739
|
};
|
|
682
|
-
let
|
|
740
|
+
let w = class {
|
|
683
741
|
constructor() {
|
|
684
742
|
a(this, "width", 0);
|
|
685
743
|
a(this, "height", 0);
|
|
@@ -692,15 +750,15 @@ let S = class {
|
|
|
692
750
|
this.height = Number(t.height ?? this.height), this.width = Number(t.width ?? this.width), this.aspect = this.width / this.height, this.enabled = e === void 0 ? !0 : !!e;
|
|
693
751
|
}
|
|
694
752
|
};
|
|
695
|
-
|
|
753
|
+
w = ei([
|
|
696
754
|
p(d.ContainerScoped)
|
|
697
|
-
],
|
|
698
|
-
var
|
|
699
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
700
|
-
(
|
|
701
|
-
return s && r &&
|
|
702
|
-
},
|
|
703
|
-
let
|
|
755
|
+
], w);
|
|
756
|
+
var ti = Object.defineProperty, ii = Object.getOwnPropertyDescriptor, si = (t, e, i, s) => {
|
|
757
|
+
for (var r = s > 1 ? void 0 : s ? ii(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
758
|
+
(n = t[o]) && (r = (s ? n(e, i, r) : n(r)) || r);
|
|
759
|
+
return s && r && ti(e, i, r), r;
|
|
760
|
+
}, ri = (t, e) => (i, s) => e(i, s, t);
|
|
761
|
+
let y = class {
|
|
704
762
|
constructor(t) {
|
|
705
763
|
a(this, "instance");
|
|
706
764
|
a(this, "enabled", !0);
|
|
@@ -745,32 +803,32 @@ let w = class {
|
|
|
745
803
|
this.instance instanceof j && ((this.instance instanceof E || this.instance instanceof I) && this.instance.clearViewOffset(), this.instance.clear(), this.instance = void 0);
|
|
746
804
|
}
|
|
747
805
|
};
|
|
748
|
-
|
|
806
|
+
y = si([
|
|
749
807
|
p(d.ContainerScoped),
|
|
750
|
-
|
|
751
|
-
],
|
|
752
|
-
var
|
|
753
|
-
for (var r = s > 1 ? void 0 : s ? ni(e, i) : e,
|
|
754
|
-
(
|
|
755
|
-
return s && r &&
|
|
808
|
+
ri(0, h(w))
|
|
809
|
+
], y);
|
|
810
|
+
var oi = Object.defineProperty, ni = Object.getOwnPropertyDescriptor, ai = (t, e, i, s) => {
|
|
811
|
+
for (var r = s > 1 ? void 0 : s ? ni(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
812
|
+
(n = t[o]) && (r = (s ? n(e, i, r) : n(r)) || r);
|
|
813
|
+
return s && r && oi(e, i, r), r;
|
|
756
814
|
}, Te = (t, e) => (i, s) => e(i, s, t);
|
|
757
815
|
let G = class {
|
|
758
816
|
constructor(t, e) {
|
|
759
817
|
a(this, "step$");
|
|
760
818
|
this.timerController = t, this._service = e, this.step$ = this.timerController.step$.pipe(
|
|
761
|
-
|
|
819
|
+
S(() => this._service.enabled)
|
|
762
820
|
);
|
|
763
821
|
}
|
|
764
822
|
};
|
|
765
|
-
G =
|
|
823
|
+
G = ai([
|
|
766
824
|
p(d.ContainerScoped),
|
|
767
825
|
Te(0, h(R)),
|
|
768
|
-
Te(1, h(
|
|
826
|
+
Te(1, h(y))
|
|
769
827
|
], G);
|
|
770
|
-
var
|
|
771
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
772
|
-
(
|
|
773
|
-
return s && r &&
|
|
828
|
+
var hi = Object.defineProperty, ci = Object.getOwnPropertyDescriptor, li = (t, e, i, s) => {
|
|
829
|
+
for (var r = s > 1 ? void 0 : s ? ci(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
830
|
+
(n = t[o]) && (r = (s ? n(e, i, r) : n(r)) || r);
|
|
831
|
+
return s && r && hi(e, i, r), r;
|
|
774
832
|
}, K = (t, e) => (i, s) => e(i, s, t);
|
|
775
833
|
let Q = class {
|
|
776
834
|
constructor(t, e, i) {
|
|
@@ -804,16 +862,16 @@ let Q = class {
|
|
|
804
862
|
this._subscriptions.forEach((t) => t.unsubscribe()), this._service.dispose();
|
|
805
863
|
}
|
|
806
864
|
};
|
|
807
|
-
Q =
|
|
865
|
+
Q = li([
|
|
808
866
|
p(d.ContainerScoped),
|
|
809
|
-
K(0, h(
|
|
867
|
+
K(0, h(w)),
|
|
810
868
|
K(1, h(G)),
|
|
811
|
-
K(2, h(
|
|
869
|
+
K(2, h(y))
|
|
812
870
|
], Q);
|
|
813
|
-
var
|
|
814
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
815
|
-
(
|
|
816
|
-
return s && r &&
|
|
871
|
+
var _i = Object.defineProperty, pi = Object.getOwnPropertyDescriptor, di = (t, e, i, s) => {
|
|
872
|
+
for (var r = s > 1 ? void 0 : s ? pi(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
873
|
+
(n = t[o]) && (r = (s ? n(e, i, r) : n(r)) || r);
|
|
874
|
+
return s && r && _i(e, i, r), r;
|
|
817
875
|
};
|
|
818
876
|
let T = class {
|
|
819
877
|
constructor() {
|
|
@@ -821,15 +879,15 @@ let T = class {
|
|
|
821
879
|
a(this, "enabled", !0);
|
|
822
880
|
}
|
|
823
881
|
};
|
|
824
|
-
T =
|
|
882
|
+
T = di([
|
|
825
883
|
p(d.ContainerScoped)
|
|
826
884
|
], T);
|
|
827
|
-
var Ze = Object.defineProperty,
|
|
828
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
829
|
-
(
|
|
885
|
+
var Ze = Object.defineProperty, ui = Object.getOwnPropertyDescriptor, mi = (t, e, i) => e in t ? Ze(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, fi = (t, e, i, s) => {
|
|
886
|
+
for (var r = s > 1 ? void 0 : s ? ui(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
887
|
+
(n = t[o]) && (r = (s ? n(e, i, r) : n(r)) || r);
|
|
830
888
|
return s && r && Ze(e, i, r), r;
|
|
831
|
-
}, W = (t, e) => (i, s) => e(i, s, t),
|
|
832
|
-
let
|
|
889
|
+
}, W = (t, e) => (i, s) => e(i, s, t), vi = (t, e, i) => mi(t, e + "", i);
|
|
890
|
+
let C = class {
|
|
833
891
|
constructor(t, e, i) {
|
|
834
892
|
a(this, "enabled", !0);
|
|
835
893
|
a(this, "instance");
|
|
@@ -845,7 +903,7 @@ let y = class {
|
|
|
845
903
|
powerPreference: "high-performance",
|
|
846
904
|
depth: !0,
|
|
847
905
|
antialias: !0
|
|
848
|
-
}), this.instance.autoClear = !1, this.instance.setPixelRatio(
|
|
906
|
+
}), this.instance.autoClear = !1, this.instance.setPixelRatio(C.RENDERER_PIXEL_RATIO), this.instance.setClearColor(0, 0), this.instance.shadowMap.enabled = !0, this.instance.shadowMap.type = _t, this.instance.outputColorSpace = pt, this.instance.toneMapping = dt, this.instance.toneMappingExposure = 1.75;
|
|
849
907
|
}
|
|
850
908
|
setSize(t, e) {
|
|
851
909
|
var i;
|
|
@@ -863,57 +921,57 @@ let y = class {
|
|
|
863
921
|
));
|
|
864
922
|
}
|
|
865
923
|
};
|
|
866
|
-
|
|
867
|
-
|
|
924
|
+
vi(C, "RENDERER_PIXEL_RATIO", 1);
|
|
925
|
+
C = fi([
|
|
868
926
|
p(d.ContainerScoped),
|
|
869
927
|
W(0, h(T)),
|
|
870
|
-
W(1, h(
|
|
871
|
-
W(2, h(
|
|
872
|
-
],
|
|
873
|
-
var
|
|
874
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
875
|
-
(
|
|
876
|
-
return s && r &&
|
|
928
|
+
W(1, h(y)),
|
|
929
|
+
W(2, h(w))
|
|
930
|
+
], C);
|
|
931
|
+
var bi = Object.defineProperty, Pi = Object.getOwnPropertyDescriptor, gi = (t, e, i, s) => {
|
|
932
|
+
for (var r = s > 1 ? void 0 : s ? Pi(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
933
|
+
(n = t[o]) && (r = (s ? n(e, i, r) : n(r)) || r);
|
|
934
|
+
return s && r && bi(e, i, r), r;
|
|
877
935
|
}, Me = (t, e) => (i, s) => e(i, s, t);
|
|
878
936
|
let Y = class {
|
|
879
937
|
constructor(t, e) {
|
|
880
938
|
a(this, "resize$");
|
|
881
939
|
this._appController = t, this._service = e, this.resize$ = this._appController.resize$$.pipe(
|
|
882
|
-
|
|
940
|
+
S(() => this._service.enabled)
|
|
883
941
|
);
|
|
884
942
|
}
|
|
885
943
|
};
|
|
886
|
-
Y =
|
|
944
|
+
Y = gi([
|
|
887
945
|
p(d.ContainerScoped),
|
|
888
946
|
Me(0, h(H)),
|
|
889
|
-
Me(1, h(
|
|
947
|
+
Me(1, h(w))
|
|
890
948
|
], Y);
|
|
891
|
-
var
|
|
892
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
893
|
-
(
|
|
894
|
-
return s && r &&
|
|
949
|
+
var Si = Object.defineProperty, wi = Object.getOwnPropertyDescriptor, yi = (t, e, i, s) => {
|
|
950
|
+
for (var r = s > 1 ? void 0 : s ? wi(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
951
|
+
(n = t[o]) && (r = (s ? n(e, i, r) : n(r)) || r);
|
|
952
|
+
return s && r && Si(e, i, r), r;
|
|
895
953
|
}, X = (t, e) => (i, s) => e(i, s, t);
|
|
896
954
|
let J = class {
|
|
897
955
|
constructor(t, e, i) {
|
|
898
956
|
a(this, "step$");
|
|
899
957
|
a(this, "resize$");
|
|
900
958
|
this._service = t, this._timerController = e, this._sizesController = i, this.step$ = this._timerController.step$.pipe(
|
|
901
|
-
|
|
959
|
+
S(() => this._service.enabled)
|
|
902
960
|
), this.resize$ = this._sizesController.resize$.pipe(
|
|
903
|
-
|
|
961
|
+
S(() => this._service.enabled)
|
|
904
962
|
);
|
|
905
963
|
}
|
|
906
964
|
};
|
|
907
|
-
J =
|
|
965
|
+
J = yi([
|
|
908
966
|
p(d.ContainerScoped),
|
|
909
|
-
X(0, h(
|
|
967
|
+
X(0, h(C)),
|
|
910
968
|
X(1, h(R)),
|
|
911
969
|
X(2, h(Y))
|
|
912
970
|
], J);
|
|
913
|
-
var
|
|
914
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
915
|
-
(
|
|
916
|
-
return s && r &&
|
|
971
|
+
var Ci = Object.defineProperty, Oi = Object.getOwnPropertyDescriptor, Di = (t, e, i, s) => {
|
|
972
|
+
for (var r = s > 1 ? void 0 : s ? Oi(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
973
|
+
(n = t[o]) && (r = (s ? n(e, i, r) : n(r)) || r);
|
|
974
|
+
return s && r && Ci(e, i, r), r;
|
|
917
975
|
}, je = (t, e) => (i, s) => e(i, s, t);
|
|
918
976
|
let k = class {
|
|
919
977
|
constructor(t, e) {
|
|
@@ -941,15 +999,15 @@ let k = class {
|
|
|
941
999
|
(t = this._service.instance) == null || t.dispose(), this._service.instance = void 0;
|
|
942
1000
|
}
|
|
943
1001
|
};
|
|
944
|
-
k =
|
|
1002
|
+
k = Di([
|
|
945
1003
|
p(d.ContainerScoped),
|
|
946
1004
|
je(0, h(J)),
|
|
947
|
-
je(1, h(
|
|
1005
|
+
je(1, h(C))
|
|
948
1006
|
], k);
|
|
949
|
-
var
|
|
950
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
951
|
-
(
|
|
952
|
-
return s && r &&
|
|
1007
|
+
var Ei = Object.defineProperty, $i = Object.getOwnPropertyDescriptor, Ri = (t, e, i, s) => {
|
|
1008
|
+
for (var r = s > 1 ? void 0 : s ? $i(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
1009
|
+
(n = t[o]) && (r = (s ? n(e, i, r) : n(r)) || r);
|
|
1010
|
+
return s && r && Ei(e, i, r), r;
|
|
953
1011
|
}, xe = (t, e) => (i, s) => e(i, s, t);
|
|
954
1012
|
let ee = class {
|
|
955
1013
|
constructor(t, e) {
|
|
@@ -984,16 +1042,16 @@ let ee = class {
|
|
|
984
1042
|
return this._controller.resize$;
|
|
985
1043
|
}
|
|
986
1044
|
};
|
|
987
|
-
ee =
|
|
1045
|
+
ee = Ri([
|
|
988
1046
|
p(d.ContainerScoped),
|
|
989
1047
|
xe(0, h(Y)),
|
|
990
|
-
xe(1, h(
|
|
1048
|
+
xe(1, h(w))
|
|
991
1049
|
], ee);
|
|
992
|
-
var
|
|
993
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
994
|
-
(
|
|
995
|
-
return s && r &&
|
|
996
|
-
},
|
|
1050
|
+
var Ti = Object.defineProperty, Mi = Object.getOwnPropertyDescriptor, ji = (t, e, i, s) => {
|
|
1051
|
+
for (var r = s > 1 ? void 0 : s ? Mi(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
1052
|
+
(n = t[o]) && (r = (s ? n(e, i, r) : n(r)) || r);
|
|
1053
|
+
return s && r && Ti(e, i, r), r;
|
|
1054
|
+
}, xi = (t, e) => (i, s) => e(i, s, t);
|
|
997
1055
|
let te = class {
|
|
998
1056
|
constructor(t) {
|
|
999
1057
|
a(this, "_beforeRender$$", new N());
|
|
@@ -1003,14 +1061,14 @@ let te = class {
|
|
|
1003
1061
|
this._worldService = t, this._worldService.scene.onBeforeRender = () => this._beforeRender$$.next({}), this._worldService.scene.onAfterRender = () => this._afterRender$$.next({});
|
|
1004
1062
|
}
|
|
1005
1063
|
};
|
|
1006
|
-
te =
|
|
1064
|
+
te = ji([
|
|
1007
1065
|
p(d.ContainerScoped),
|
|
1008
|
-
|
|
1066
|
+
xi(0, h(T))
|
|
1009
1067
|
], te);
|
|
1010
|
-
var
|
|
1011
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
1012
|
-
(
|
|
1013
|
-
return s && r &&
|
|
1068
|
+
var Ai = Object.defineProperty, Li = Object.getOwnPropertyDescriptor, zi = (t, e, i, s) => {
|
|
1069
|
+
for (var r = s > 1 ? void 0 : s ? Li(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
1070
|
+
(n = t[o]) && (r = (s ? n(e, i, r) : n(r)) || r);
|
|
1071
|
+
return s && r && Ai(e, i, r), r;
|
|
1014
1072
|
}, Ae = (t, e) => (i, s) => e(i, s, t);
|
|
1015
1073
|
let ie = class {
|
|
1016
1074
|
constructor(t, e) {
|
|
@@ -1038,10 +1096,10 @@ ie = zi([
|
|
|
1038
1096
|
Ae(0, h(T)),
|
|
1039
1097
|
Ae(1, h(te))
|
|
1040
1098
|
], ie);
|
|
1041
|
-
var
|
|
1042
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
1043
|
-
(
|
|
1044
|
-
return s && r &&
|
|
1099
|
+
var Ii = Object.defineProperty, Ni = Object.getOwnPropertyDescriptor, Hi = (t, e, i, s) => {
|
|
1100
|
+
for (var r = s > 1 ? void 0 : s ? Ni(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
1101
|
+
(n = t[o]) && (r = (s ? n(e, i, r) : n(r)) || r);
|
|
1102
|
+
return s && r && Ii(e, i, r), r;
|
|
1045
1103
|
}, M = (t, e) => (i, s) => e(i, s, t);
|
|
1046
1104
|
let se = class {
|
|
1047
1105
|
constructor(t, e, i, s, r) {
|
|
@@ -1092,10 +1150,10 @@ let se = class {
|
|
|
1092
1150
|
), this.miniCameraControls.rotateSpeed = 0.15, this.miniCameraControls.enableDamping = !0);
|
|
1093
1151
|
}
|
|
1094
1152
|
initAxesHelper(t) {
|
|
1095
|
-
this.enabled && (this.axesHelper = new
|
|
1153
|
+
this.enabled && (this.axesHelper = new ut(t), this._worldService.scene.add(this.axesHelper));
|
|
1096
1154
|
}
|
|
1097
1155
|
initGridHelper(t) {
|
|
1098
|
-
this.gridHelper && this._worldService.scene.remove(this.gridHelper), this.enabled && (this.gridHelper = new
|
|
1156
|
+
this.gridHelper && this._worldService.scene.remove(this.gridHelper), this.enabled && (this.gridHelper = new mt(t, t), this._worldService.scene.add(this.gridHelper));
|
|
1099
1157
|
}
|
|
1100
1158
|
disposeMiniCamera() {
|
|
1101
1159
|
this.miniCamera instanceof j && (this.miniCamera.clearViewOffset(), this.miniCamera.clear(), this.miniCamera = void 0);
|
|
@@ -1109,38 +1167,38 @@ let se = class {
|
|
|
1109
1167
|
this.disposeMiniCamera(), (t = this.cameraControls) == null || t.dispose(), this.cameraControls = void 0, (e = this.miniCameraControls) == null || e.dispose(), this.miniCameraControls = void 0, this.axesHelper && this._worldService.scene.remove(this.axesHelper), (i = this.axesHelper) == null || i.dispose(), this.axesHelper = void 0, this.gridHelper && this._worldService.scene.remove(this.gridHelper), (s = this.gridHelper) == null || s.dispose(), this.gridHelper = void 0;
|
|
1110
1168
|
}
|
|
1111
1169
|
};
|
|
1112
|
-
se =
|
|
1170
|
+
se = Hi([
|
|
1113
1171
|
p(d.ContainerScoped),
|
|
1114
1172
|
M(0, h(A)),
|
|
1115
|
-
M(1, h(
|
|
1116
|
-
M(2, h(
|
|
1117
|
-
M(3, h(
|
|
1173
|
+
M(1, h(w)),
|
|
1174
|
+
M(2, h(C)),
|
|
1175
|
+
M(3, h(y)),
|
|
1118
1176
|
M(4, h(T))
|
|
1119
1177
|
], se);
|
|
1120
|
-
var
|
|
1121
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
1122
|
-
(
|
|
1123
|
-
return s && r &&
|
|
1124
|
-
},
|
|
1178
|
+
var Fi = Object.defineProperty, Yi = Object.getOwnPropertyDescriptor, Ui = (t, e, i, s) => {
|
|
1179
|
+
for (var r = s > 1 ? void 0 : s ? Yi(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
1180
|
+
(n = t[o]) && (r = (s ? n(e, i, r) : n(r)) || r);
|
|
1181
|
+
return s && r && Fi(e, i, r), r;
|
|
1182
|
+
}, Le = (t, e) => (i, s) => e(i, s, t);
|
|
1125
1183
|
let re = class {
|
|
1126
1184
|
constructor(t, e) {
|
|
1127
1185
|
a(this, "step$");
|
|
1128
1186
|
this.timerController = t, this._service = e, this.step$ = this.timerController.step$.pipe(
|
|
1129
|
-
|
|
1187
|
+
S(() => this._service.enabled)
|
|
1130
1188
|
);
|
|
1131
1189
|
}
|
|
1132
1190
|
};
|
|
1133
|
-
re =
|
|
1191
|
+
re = Ui([
|
|
1134
1192
|
p(d.ContainerScoped),
|
|
1135
|
-
|
|
1136
|
-
|
|
1193
|
+
Le(0, h(R)),
|
|
1194
|
+
Le(1, h(y))
|
|
1137
1195
|
], re);
|
|
1138
|
-
var
|
|
1139
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
1140
|
-
(
|
|
1141
|
-
return s && r &&
|
|
1142
|
-
},
|
|
1143
|
-
let
|
|
1196
|
+
var Zi = Object.defineProperty, Ki = Object.getOwnPropertyDescriptor, Wi = (t, e, i, s) => {
|
|
1197
|
+
for (var r = s > 1 ? void 0 : s ? Ki(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
1198
|
+
(n = t[o]) && (r = (s ? n(e, i, r) : n(r)) || r);
|
|
1199
|
+
return s && r && Zi(e, i, r), r;
|
|
1200
|
+
}, ze = (t, e) => (i, s) => e(i, s, t);
|
|
1201
|
+
let oe = class {
|
|
1144
1202
|
constructor(t, e) {
|
|
1145
1203
|
a(this, "_subscriptions", []);
|
|
1146
1204
|
this._service = t, this._controller = e;
|
|
@@ -1177,15 +1235,15 @@ let ne = class {
|
|
|
1177
1235
|
this._service.dispose(), this._subscriptions.forEach((t) => t.unsubscribe());
|
|
1178
1236
|
}
|
|
1179
1237
|
};
|
|
1180
|
-
|
|
1238
|
+
oe = Wi([
|
|
1181
1239
|
p(d.ContainerScoped),
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
],
|
|
1185
|
-
var
|
|
1186
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
1187
|
-
(
|
|
1188
|
-
return s && r &&
|
|
1240
|
+
ze(0, h(se)),
|
|
1241
|
+
ze(1, h(re))
|
|
1242
|
+
], oe);
|
|
1243
|
+
var Xi = Object.defineProperty, qi = Object.getOwnPropertyDescriptor, Bi = (t, e, i, s) => {
|
|
1244
|
+
for (var r = s > 1 ? void 0 : s ? qi(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
1245
|
+
(n = t[o]) && (r = (s ? n(e, i, r) : n(r)) || r);
|
|
1246
|
+
return s && r && Xi(e, i, r), r;
|
|
1189
1247
|
};
|
|
1190
1248
|
let U = class {
|
|
1191
1249
|
constructor() {
|
|
@@ -1198,40 +1256,40 @@ let U = class {
|
|
|
1198
1256
|
i && (this.loadedResources[e.name] = i, this.toLoadCount = s, this.loadedCount = r);
|
|
1199
1257
|
}
|
|
1200
1258
|
};
|
|
1201
|
-
U =
|
|
1259
|
+
U = Bi([
|
|
1202
1260
|
p(d.ResolutionScoped)
|
|
1203
1261
|
], U);
|
|
1204
|
-
var
|
|
1205
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
1206
|
-
(
|
|
1207
|
-
return s && r &&
|
|
1208
|
-
},
|
|
1209
|
-
let
|
|
1262
|
+
var Vi = Object.defineProperty, Gi = Object.getOwnPropertyDescriptor, Qi = (t, e, i, s) => {
|
|
1263
|
+
for (var r = s > 1 ? void 0 : s ? Gi(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
1264
|
+
(n = t[o]) && (r = (s ? n(e, i, r) : n(r)) || r);
|
|
1265
|
+
return s && r && Vi(e, i, r), r;
|
|
1266
|
+
}, Ji = (t, e) => (i, s) => e(i, s, t);
|
|
1267
|
+
let ne = class {
|
|
1210
1268
|
constructor(t) {
|
|
1211
1269
|
a(this, "load$", Je(self, "message").pipe(
|
|
1212
|
-
|
|
1270
|
+
S(
|
|
1213
1271
|
(t) => {
|
|
1214
1272
|
var e, i, s;
|
|
1215
1273
|
return ((e = t.data) == null ? void 0 : e.token) === ke && !!((s = (i = t.data) == null ? void 0 : i.payload) != null && s.resource);
|
|
1216
1274
|
}
|
|
1217
1275
|
),
|
|
1218
1276
|
q((t) => {
|
|
1219
|
-
var i, s, r,
|
|
1277
|
+
var i, s, r, o, n;
|
|
1220
1278
|
const { payload: e } = t.data || {};
|
|
1221
1279
|
if (((i = e == null ? void 0 : e.source) == null ? void 0 : i.type) === "gltf") {
|
|
1222
1280
|
const c = e.resource, l = (s = c.animations) == null ? void 0 : s.map(
|
|
1223
|
-
(g) =>
|
|
1281
|
+
(g) => ft.parse(g)
|
|
1224
1282
|
), u = (r = c.cameras) == null ? void 0 : r.map(
|
|
1225
|
-
(g) =>
|
|
1226
|
-
), O = (
|
|
1227
|
-
(g) =>
|
|
1228
|
-
),
|
|
1283
|
+
(g) => Se(g)
|
|
1284
|
+
), O = (o = c.scenes) == null ? void 0 : o.map(
|
|
1285
|
+
(g) => Se(g)
|
|
1286
|
+
), L = O == null ? void 0 : O[0];
|
|
1229
1287
|
return {
|
|
1230
1288
|
...e,
|
|
1231
|
-
resource: { ...c, animations: l, cameras: u, scene:
|
|
1289
|
+
resource: { ...c, animations: l, cameras: u, scene: L, scenes: O }
|
|
1232
1290
|
};
|
|
1233
1291
|
}
|
|
1234
|
-
return ((
|
|
1292
|
+
return ((n = e == null ? void 0 : e.source) == null ? void 0 : n.type) === "font" ? {
|
|
1235
1293
|
...e,
|
|
1236
1294
|
resource: new et(e.resource.data)
|
|
1237
1295
|
} : e;
|
|
@@ -1239,7 +1297,7 @@ let oe = class {
|
|
|
1239
1297
|
x()
|
|
1240
1298
|
));
|
|
1241
1299
|
a(this, "loadCompleted$", this.load$.pipe(
|
|
1242
|
-
|
|
1300
|
+
S(
|
|
1243
1301
|
(t) => !!t && t.toLoadCount === t.loadedCount
|
|
1244
1302
|
),
|
|
1245
1303
|
q(
|
|
@@ -1254,14 +1312,14 @@ let oe = class {
|
|
|
1254
1312
|
this._service = t;
|
|
1255
1313
|
}
|
|
1256
1314
|
};
|
|
1257
|
-
|
|
1315
|
+
ne = Qi([
|
|
1258
1316
|
p(d.ContainerScoped),
|
|
1259
|
-
|
|
1260
|
-
],
|
|
1261
|
-
var
|
|
1262
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
1263
|
-
(
|
|
1264
|
-
return s && r &&
|
|
1317
|
+
Ji(0, h(U))
|
|
1318
|
+
], ne);
|
|
1319
|
+
var ki = Object.defineProperty, es = Object.getOwnPropertyDescriptor, ts = (t, e, i, s) => {
|
|
1320
|
+
for (var r = s > 1 ? void 0 : s ? es(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
1321
|
+
(n = t[o]) && (r = (s ? n(e, i, r) : n(r)) || r);
|
|
1322
|
+
return s && r && ki(e, i, r), r;
|
|
1265
1323
|
}, Ie = (t, e) => (i, s) => e(i, s, t);
|
|
1266
1324
|
let ae = class {
|
|
1267
1325
|
constructor(t, e) {
|
|
@@ -1294,19 +1352,19 @@ let ae = class {
|
|
|
1294
1352
|
this._subscriptions.forEach((t) => t.unsubscribe());
|
|
1295
1353
|
}
|
|
1296
1354
|
};
|
|
1297
|
-
ae =
|
|
1355
|
+
ae = ts([
|
|
1298
1356
|
p(d.ContainerScoped),
|
|
1299
|
-
Ie(0, h(
|
|
1357
|
+
Ie(0, h(ne)),
|
|
1300
1358
|
Ie(1, h(U))
|
|
1301
1359
|
], ae);
|
|
1302
|
-
var
|
|
1303
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
1304
|
-
(
|
|
1305
|
-
return s && r &&
|
|
1360
|
+
var is = Object.defineProperty, ss = Object.getOwnPropertyDescriptor, rs = (t, e, i, s) => {
|
|
1361
|
+
for (var r = s > 1 ? void 0 : s ? ss(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
1362
|
+
(n = t[o]) && (r = (s ? n(e, i, r) : n(r)) || r);
|
|
1363
|
+
return s && r && is(e, i, r), r;
|
|
1306
1364
|
}, P = (t, e) => (i, s) => e(i, s, t);
|
|
1307
1365
|
let he = class extends it {
|
|
1308
|
-
constructor(t, e, i, s, r,
|
|
1309
|
-
super(), this._controller = t, this._service = e, this.timer = i, this.sizes = s, this.camera = r, this.world =
|
|
1366
|
+
constructor(t, e, i, s, r, o, n, c, l) {
|
|
1367
|
+
super(), this._controller = t, this._service = e, this.timer = i, this.sizes = s, this.camera = r, this.world = o, this.renderer = n, this.loader = c, this.debug = l, this._initProxyEvents();
|
|
1310
1368
|
}
|
|
1311
1369
|
_initProxyEvents() {
|
|
1312
1370
|
ce.forEach((t) => {
|
|
@@ -1347,7 +1405,7 @@ let he = class extends it {
|
|
|
1347
1405
|
this.sizes.dispose(), this.camera.dispose(), this.world.dispose(), this.renderer.dispose(), this.timer.dispose(), this.loader.dispose(), this.debug.dispose();
|
|
1348
1406
|
}
|
|
1349
1407
|
};
|
|
1350
|
-
he =
|
|
1408
|
+
he = rs([
|
|
1351
1409
|
p(d.ContainerScoped),
|
|
1352
1410
|
P(0, h(H)),
|
|
1353
1411
|
P(1, h(A)),
|
|
@@ -1357,16 +1415,16 @@ he = ss([
|
|
|
1357
1415
|
P(5, h(ie)),
|
|
1358
1416
|
P(6, h(k)),
|
|
1359
1417
|
P(7, h(ae)),
|
|
1360
|
-
P(8, h(
|
|
1418
|
+
P(8, h(oe))
|
|
1361
1419
|
], he);
|
|
1362
|
-
var
|
|
1363
|
-
const _e = /* @__PURE__ */ rt(
|
|
1420
|
+
var os = st();
|
|
1421
|
+
const _e = /* @__PURE__ */ rt(os), ns = _e.expose;
|
|
1364
1422
|
_e.registerSerializer;
|
|
1365
1423
|
_e.Transfer;
|
|
1366
|
-
const
|
|
1367
|
-
const e =
|
|
1368
|
-
var
|
|
1369
|
-
if (!((
|
|
1424
|
+
const ls = (t) => {
|
|
1425
|
+
const e = we.createChildContainer(), i = e.resolve(he), s = { container: e, module: i }, r = {}, o = (c) => {
|
|
1426
|
+
var L, g, pe, de, ue, me, fe;
|
|
1427
|
+
if (!((L = c.data) != null && L.canvas) && !((g = c.data) != null && g.mainThread) || i.getIsInitialized())
|
|
1370
1428
|
return;
|
|
1371
1429
|
const l = !!((pe = c.data) != null && pe.startTimer), u = !!((de = c.data) != null && de.withMiniCamera), O = !!((ue = c.data) != null && ue.fullScreen);
|
|
1372
1430
|
i.init({
|
|
@@ -1377,13 +1435,13 @@ const cs = (t) => {
|
|
|
1377
1435
|
startTimer: l,
|
|
1378
1436
|
withMiniCamera: u,
|
|
1379
1437
|
fullScreen: O
|
|
1380
|
-
}), (fe = t == null ? void 0 : t.onReady) == null || fe.call(t, s), self == null || self.removeEventListener("message",
|
|
1438
|
+
}), (fe = t == null ? void 0 : t.onReady) == null || fe.call(t, s), self == null || self.removeEventListener("message", o);
|
|
1381
1439
|
};
|
|
1382
|
-
e.register(
|
|
1440
|
+
e.register(ot, { useValue: e }), ce.forEach((c) => {
|
|
1383
1441
|
var l, u;
|
|
1384
1442
|
r[c] = (u = (l = i[c]) == null ? void 0 : l.bind) == null ? void 0 : u.call(l, i);
|
|
1385
|
-
}), self == null || self.addEventListener("message",
|
|
1386
|
-
const
|
|
1443
|
+
}), self == null || self.addEventListener("message", o);
|
|
1444
|
+
const n = {
|
|
1387
1445
|
...r,
|
|
1388
1446
|
getProxyReceiver: i.getProxyReceiver.bind(i),
|
|
1389
1447
|
getIsInitialized: i.getIsInitialized.bind(i),
|
|
@@ -1393,9 +1451,9 @@ const cs = (t) => {
|
|
|
1393
1451
|
getAfterRender$: i.getAfterRender$.bind(i),
|
|
1394
1452
|
dispose: i.dispose.bind(i)
|
|
1395
1453
|
};
|
|
1396
|
-
|
|
1454
|
+
we.register("MAIN_THREAD_APP", { useValue: n });
|
|
1397
1455
|
try {
|
|
1398
|
-
ns(
|
|
1456
|
+
ns(n);
|
|
1399
1457
|
} catch (c) {
|
|
1400
1458
|
console.warn("Failed to expose the app module.", c.message);
|
|
1401
1459
|
}
|
|
@@ -1403,5 +1461,5 @@ const cs = (t) => {
|
|
|
1403
1461
|
};
|
|
1404
1462
|
export {
|
|
1405
1463
|
he as AppModule,
|
|
1406
|
-
|
|
1464
|
+
ls as launchApp
|
|
1407
1465
|
};
|