gl-draw 0.15.32 → 0.15.33
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/index.js +3 -3
- package/dist/index.module.js +249 -244
- package/package.json +1 -1
package/dist/index.module.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var St = Object.defineProperty, At = Object.defineProperties;
|
|
2
|
+
var Mt = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Me = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var Dt = Object.prototype.hasOwnProperty, Rt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var De = (h, e, t) => e in h ? St(h, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[e] = t, U = (h, e) => {
|
|
6
6
|
for (var t in e || (e = {}))
|
|
7
|
-
|
|
7
|
+
Dt.call(e, t) && De(h, t, e[t]);
|
|
8
8
|
if (Me)
|
|
9
9
|
for (var t of Me(e))
|
|
10
|
-
Rt.call(e, t) &&
|
|
10
|
+
Rt.call(e, t) && De(h, t, e[t]);
|
|
11
11
|
return h;
|
|
12
|
-
}, te = (h, e) =>
|
|
12
|
+
}, te = (h, e) => At(h, Mt(e));
|
|
13
13
|
var se = (h, e, t) => new Promise((s, i) => {
|
|
14
14
|
var r = (a) => {
|
|
15
15
|
try {
|
|
@@ -27,14 +27,14 @@ var se = (h, e, t) => new Promise((s, i) => {
|
|
|
27
27
|
n((t = t.apply(h, e)).next());
|
|
28
28
|
});
|
|
29
29
|
import * as Ce from "@tweenjs/tween.js";
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import { Vector3 as I, PerspectiveCamera as
|
|
33
|
-
import { M as
|
|
30
|
+
import Ut from "deepmerge";
|
|
31
|
+
import zt from "stats-gl";
|
|
32
|
+
import { Vector3 as I, PerspectiveCamera as kt, Matrix4 as W, ShaderMaterial as Ft, UniformsUtils as Nt, RawShaderMaterial as Ht, MeshBasicMaterial as It, PointsMaterial as at, SpriteMaterial as lt, Color as jt, Layers as Bt, Vector2 as B, WebGLRenderTarget as Vt, HalfFloatType as Yt, MathUtils as Zt, Vector4 as Wt, Quaternion as ht, Spherical as Kt, Box3 as ct, Sphere as $t, Raycaster as dt, AxesHelper as Re, CameraHelper as Gt, PointLightHelper as Xt, DirectionalLightHelper as qt, SpotLightHelper as Qt, HemisphereLightHelper as Jt, Box3Helper as Ue, Scene as mt, Group as ze, Camera as es, Loader as pt, FileLoader as Se, Texture as fe, VideoTexture as ts, LoadingManager as ss, DataTexture as is, WebGLRenderer as rs, REVISION as os, Object3D as ns } from "three";
|
|
33
|
+
import { M as ut, B as Oe, a as as, R as Pe, I as he } from "./WebGPULineSegments2.module.js";
|
|
34
34
|
import { EffectComposer as ke } from "three/examples/jsm/postprocessing/EffectComposer";
|
|
35
|
-
import { RenderPass as
|
|
36
|
-
import { SSAOPass as
|
|
37
|
-
import { UnrealBloomPass as
|
|
35
|
+
import { RenderPass as ls } from "three/examples/jsm/postprocessing/RenderPass";
|
|
36
|
+
import { SSAOPass as hs } from "three/examples/jsm/postprocessing/SSAOPass";
|
|
37
|
+
import { UnrealBloomPass as cs } from "three/examples/jsm/postprocessing/UnrealBloomPass";
|
|
38
38
|
import "three/examples/jsm/lines/LineMaterial";
|
|
39
39
|
import "three/examples/jsm/lines/LineSegmentsGeometry";
|
|
40
40
|
import "three/examples/jsm/renderers/CSS2DRenderer";
|
|
@@ -45,18 +45,18 @@ import "three/examples/jsm/utils/BufferGeometryUtils";
|
|
|
45
45
|
import "three-bvh-csg";
|
|
46
46
|
import "three/examples/jsm/lights/RectAreaLightUniformsLib";
|
|
47
47
|
import "three/examples/jsm/lines/LineSegments2";
|
|
48
|
-
import { ShaderPass as
|
|
48
|
+
import { ShaderPass as ds } from "three/examples/jsm/postprocessing/ShaderPass";
|
|
49
|
+
import { OutputPass as ms } from "three/examples/jsm/postprocessing/OutputPass";
|
|
49
50
|
import { FullScreenQuad as Fe } from "three/examples/jsm/postprocessing/Pass";
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import { EXRLoader as fs } from "three/examples/jsm/loaders/EXRLoader";
|
|
51
|
+
import { RectAreaLightHelper as ps } from "three/examples/jsm/helpers/RectAreaLightHelper";
|
|
52
|
+
import { ViewHelper as us } from "three/examples/jsm/helpers/ViewHelper";
|
|
53
|
+
import { generateUUID as Ne, makePromiseCreator as fs } from "esus-lite";
|
|
54
|
+
import { DRACOLoader as _s } from "three/examples/jsm/loaders/DRACOLoader";
|
|
55
|
+
import { EXRLoader as gs } from "three/examples/jsm/loaders/EXRLoader";
|
|
56
56
|
import { GLTFLoader as He } from "three/examples/jsm/loaders/GLTFLoader";
|
|
57
|
-
import { LottieLoader as
|
|
58
|
-
import { a as
|
|
59
|
-
import { TransformControls as
|
|
57
|
+
import { LottieLoader as ys } from "three/examples/jsm/loaders/LottieLoader";
|
|
58
|
+
import { a as vs, C as Cs, i as Os } from "./isPlainObject.module.js";
|
|
59
|
+
import { TransformControls as Es } from "three/examples/jsm/controls/TransformControls";
|
|
60
60
|
const M = {
|
|
61
61
|
LEFT: 1,
|
|
62
62
|
RIGHT: 2,
|
|
@@ -94,14 +94,14 @@ function Y(h) {
|
|
|
94
94
|
function j(h) {
|
|
95
95
|
return h.isOrthographicCamera;
|
|
96
96
|
}
|
|
97
|
-
const $ = Math.PI * 2, Ie = Math.PI / 2,
|
|
97
|
+
const $ = Math.PI * 2, Ie = Math.PI / 2, ft = 1e-5, ie = Math.PI / 180;
|
|
98
98
|
function k(h, e, t) {
|
|
99
99
|
return Math.max(e, Math.min(t, h));
|
|
100
100
|
}
|
|
101
|
-
function A(h, e =
|
|
101
|
+
function A(h, e = ft) {
|
|
102
102
|
return Math.abs(h) < e;
|
|
103
103
|
}
|
|
104
|
-
function P(h, e, t =
|
|
104
|
+
function P(h, e, t = ft) {
|
|
105
105
|
return A(h - e, t);
|
|
106
106
|
}
|
|
107
107
|
function je(h, e) {
|
|
@@ -134,10 +134,10 @@ function Be(h, e, t, s, i = 1 / 0, r, o) {
|
|
|
134
134
|
p = p / ve * O, u = u / ve * O, g = g / ve * O;
|
|
135
135
|
}
|
|
136
136
|
f = h.x - p, m = h.y - u, v = h.z - g;
|
|
137
|
-
const E = (t.x + n * p) * r, x = (t.y + n * u) * r,
|
|
138
|
-
t.x = (t.x - n * E) * c, t.y = (t.y - n * x) * c, t.z = (t.z - n *
|
|
139
|
-
const V = y - h.x, le = l - h.y,
|
|
140
|
-
return V *
|
|
137
|
+
const E = (t.x + n * p) * r, x = (t.y + n * u) * r, D = (t.z + n * g) * r;
|
|
138
|
+
t.x = (t.x - n * E) * c, t.y = (t.y - n * x) * c, t.z = (t.z - n * D) * c, o.x = f + (p + E) * c, o.y = m + (u + x) * c, o.z = v + (g + D) * c;
|
|
139
|
+
const V = y - h.x, le = l - h.y, wt = _ - h.z, xt = o.x - y, Lt = o.y - l, Pt = o.z - _;
|
|
140
|
+
return V * xt + le * Lt + wt * Pt > 0 && (o.x = y, o.y = l, o.z = _, t.x = (o.x - y) / r, t.y = (o.y - l) / r, t.z = (o.z - _) / r), o;
|
|
141
141
|
}
|
|
142
142
|
function Ee(h, e) {
|
|
143
143
|
e.set(0, 0), h.forEach((t) => {
|
|
@@ -147,7 +147,7 @@ function Ee(h, e) {
|
|
|
147
147
|
function Te(h, e) {
|
|
148
148
|
return j(h) ? (console.warn(`${e} is not supported in OrthographicCamera`), !0) : !1;
|
|
149
149
|
}
|
|
150
|
-
class
|
|
150
|
+
class Ts {
|
|
151
151
|
constructor() {
|
|
152
152
|
this._listeners = {};
|
|
153
153
|
}
|
|
@@ -211,11 +211,11 @@ class Os {
|
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
const de = 1 / 8,
|
|
215
|
-
let T, Ve, me, be,
|
|
216
|
-
class J extends
|
|
214
|
+
const de = 1 / 8, bs = /Mac/.test(navigator.platform);
|
|
215
|
+
let T, Ve, me, be, R, w, L, G, ne, F, N, Z, Ye, Ze, z, ae, X, We, we, Ke, xe, Le, pe;
|
|
216
|
+
class J extends Ts {
|
|
217
217
|
static install(e) {
|
|
218
|
-
T = e.THREE, Ve = Object.freeze(new T.Vector3(0, 0, 0)), me = Object.freeze(new T.Vector3(0, 1, 0)), be = Object.freeze(new T.Vector3(0, 0, 1)),
|
|
218
|
+
T = e.THREE, Ve = Object.freeze(new T.Vector3(0, 0, 0)), me = Object.freeze(new T.Vector3(0, 1, 0)), be = Object.freeze(new T.Vector3(0, 0, 1)), R = new T.Vector2(), w = new T.Vector3(), L = new T.Vector3(), G = new T.Vector3(), ne = new T.Vector3(), F = new T.Vector3(), N = new T.Vector3(), Z = new T.Vector3(), Ye = new T.Vector3(), Ze = new T.Vector3(), z = new T.Spherical(), ae = new T.Spherical(), X = new T.Box3(), We = new T.Box3(), we = new T.Sphere(), Ke = new T.Quaternion(), xe = new T.Quaternion(), Le = new T.Matrix4(), pe = new T.Raycaster();
|
|
219
219
|
}
|
|
220
220
|
/**
|
|
221
221
|
* list all ACTIONs
|
|
@@ -246,7 +246,7 @@ class J extends Os {
|
|
|
246
246
|
}, this._enabled = !0, this._state = d.NONE, this._viewport = null, this._changedDolly = 0, this._changedZoom = 0, this._hasRested = !0, this._boundaryEnclosesCamera = !1, this._needsUpdate = !0, this._updatedLastTime = !1, this._elementRect = new DOMRect(), this._isDragging = !1, this._dragNeedsUpdate = !0, this._activePointers = [], this._lockedPointer = null, this._interactiveArea = new DOMRect(0, 0, 1, 1), this._isUserControllingRotate = !1, this._isUserControllingDolly = !1, this._isUserControllingTruck = !1, this._isUserControllingOffset = !1, this._isUserControllingZoom = !1, this._lastDollyDirection = K.NONE, this._thetaVelocity = { value: 0 }, this._phiVelocity = { value: 0 }, this._radiusVelocity = { value: 0 }, this._targetVelocity = new T.Vector3(), this._focalOffsetVelocity = new T.Vector3(), this._zoomVelocity = { value: 0 }, this._truckInternal = (l, _, O, C) => {
|
|
247
247
|
let b, E;
|
|
248
248
|
if (Y(this._camera)) {
|
|
249
|
-
const x = w.copy(this._camera.position).sub(this._target),
|
|
249
|
+
const x = w.copy(this._camera.position).sub(this._target), D = this._camera.getEffectiveFOV() * ie, V = x.length() * Math.tan(D * 0.5);
|
|
250
250
|
b = this.truckSpeed * l * V / this._elementRect.height, E = this.truckSpeed * _ * V / this._elementRect.height;
|
|
251
251
|
} else if (j(this._camera)) {
|
|
252
252
|
const x = this._camera;
|
|
@@ -272,8 +272,8 @@ class J extends Os {
|
|
|
272
272
|
E,
|
|
273
273
|
this.minDistance,
|
|
274
274
|
this.maxDistance
|
|
275
|
-
),
|
|
276
|
-
this.infinityDolly && this.dollyToCursor ? this._dollyToNoClamp(E, !0) : this.infinityDolly && !this.dollyToCursor ? (this.dollyInFixed(
|
|
275
|
+
), D = x - E;
|
|
276
|
+
this.infinityDolly && this.dollyToCursor ? this._dollyToNoClamp(E, !0) : this.infinityDolly && !this.dollyToCursor ? (this.dollyInFixed(D, !0), this._dollyToNoClamp(x, !0)) : this._dollyToNoClamp(x, !0), this.dollyToCursor && (this._changedDolly += (this.infinityDolly ? E : x) - b, this._dollyControlCoord.set(_, O)), this._lastDollyDirection = Math.sign(-l);
|
|
277
277
|
}, this._zoomInternal = (l, _, O) => {
|
|
278
278
|
const C = Math.pow(0.95, l * this.dollySpeed), b = this._zoom, E = this._zoom * C;
|
|
279
279
|
this.zoomTo(E, !0), this.dollyToCursor && (this._changedZoom += E - b, this._dollyControlCoord.set(_, O));
|
|
@@ -383,15 +383,15 @@ class J extends Os {
|
|
|
383
383
|
const f = (l) => {
|
|
384
384
|
if (!this._domElement || !this._enabled || this.mouseButtons.wheel === d.NONE) return;
|
|
385
385
|
if (this._interactiveArea.left !== 0 || this._interactiveArea.top !== 0 || this._interactiveArea.width !== 1 || this._interactiveArea.height !== 1) {
|
|
386
|
-
const E = this._domElement.getBoundingClientRect(), x = (l.clientX - E.left) / (E.right - E.left),
|
|
387
|
-
if (x < this._interactiveArea.left || x > this._interactiveArea.right ||
|
|
386
|
+
const E = this._domElement.getBoundingClientRect(), x = (l.clientX - E.left) / (E.right - E.left), D = (l.clientY - E.top) / (E.bottom - E.top);
|
|
387
|
+
if (x < this._interactiveArea.left || x > this._interactiveArea.right || D < this._interactiveArea.top || D > this._interactiveArea.bottom)
|
|
388
388
|
return;
|
|
389
389
|
}
|
|
390
390
|
if (l.preventDefault(), this.dollyToCursor || this.mouseButtons.wheel === d.ROTATE || this.mouseButtons.wheel === d.TRUCK) {
|
|
391
391
|
const E = performance.now();
|
|
392
392
|
c - E < 1e3 && this._getClientRect(this._elementRect), c = E;
|
|
393
393
|
}
|
|
394
|
-
const _ =
|
|
394
|
+
const _ = bs ? -1 : -3, O = l.deltaMode === 1 || l.ctrlKey ? l.deltaY / _ : l.deltaY / (_ * 10), C = this.dollyToCursor ? (l.clientX - this._elementRect.x) / this._elementRect.width * 2 - 1 : 0, b = this.dollyToCursor ? (l.clientY - this._elementRect.y) / this._elementRect.height * -2 + 1 : 0;
|
|
395
395
|
switch (this.mouseButtons.wheel) {
|
|
396
396
|
case d.ROTATE: {
|
|
397
397
|
this._rotateInternal(l.deltaX, l.deltaY), this._isUserControllingRotate = !0;
|
|
@@ -437,8 +437,8 @@ class J extends Os {
|
|
|
437
437
|
}
|
|
438
438
|
}, v = (l) => {
|
|
439
439
|
if (!this._enabled) return;
|
|
440
|
-
if (Ee(this._activePointers,
|
|
441
|
-
const O =
|
|
440
|
+
if (Ee(this._activePointers, R), this._getClientRect(this._elementRect), s.copy(R), i.copy(R), this._activePointers.length >= 2) {
|
|
441
|
+
const O = R.x - this._activePointers[1].clientX, C = R.y - this._activePointers[1].clientY, b = Math.sqrt(O * O + C * C);
|
|
442
442
|
r.set(0, b);
|
|
443
443
|
const E = (this._activePointers[0].clientX + this._activePointers[1].clientX) * 0.5, x = (this._activePointers[0].clientY + this._activePointers[1].clientY) * 0.5;
|
|
444
444
|
i.set(E, x);
|
|
@@ -462,9 +462,9 @@ class J extends Os {
|
|
|
462
462
|
((this._state & d.ROTATE) === d.ROTATE || (this._state & d.TOUCH_ROTATE) === d.TOUCH_ROTATE || (this._state & d.TOUCH_DOLLY_ROTATE) === d.TOUCH_DOLLY_ROTATE || (this._state & d.TOUCH_ZOOM_ROTATE) === d.TOUCH_ZOOM_ROTATE) && (this._sphericalEnd.theta = this._spherical.theta, this._sphericalEnd.phi = this._spherical.phi, this._thetaVelocity.value = 0, this._phiVelocity.value = 0), ((this._state & d.TRUCK) === d.TRUCK || (this._state & d.SCREEN_PAN) === d.SCREEN_PAN || (this._state & d.TOUCH_TRUCK) === d.TOUCH_TRUCK || (this._state & d.TOUCH_SCREEN_PAN) === d.TOUCH_SCREEN_PAN || (this._state & d.TOUCH_DOLLY_TRUCK) === d.TOUCH_DOLLY_TRUCK || (this._state & d.TOUCH_DOLLY_SCREEN_PAN) === d.TOUCH_DOLLY_SCREEN_PAN || (this._state & d.TOUCH_ZOOM_TRUCK) === d.TOUCH_ZOOM_TRUCK || (this._state & d.TOUCH_ZOOM_SCREEN_PAN) === d.TOUCH_DOLLY_SCREEN_PAN) && (this._targetEnd.copy(this._target), this._targetVelocity.set(0, 0, 0)), ((this._state & d.DOLLY) === d.DOLLY || (this._state & d.TOUCH_DOLLY) === d.TOUCH_DOLLY || (this._state & d.TOUCH_DOLLY_TRUCK) === d.TOUCH_DOLLY_TRUCK || (this._state & d.TOUCH_DOLLY_SCREEN_PAN) === d.TOUCH_DOLLY_SCREEN_PAN || (this._state & d.TOUCH_DOLLY_OFFSET) === d.TOUCH_DOLLY_OFFSET || (this._state & d.TOUCH_DOLLY_ROTATE) === d.TOUCH_DOLLY_ROTATE) && (this._sphericalEnd.radius = this._spherical.radius, this._radiusVelocity.value = 0), ((this._state & d.ZOOM) === d.ZOOM || (this._state & d.TOUCH_ZOOM) === d.TOUCH_ZOOM || (this._state & d.TOUCH_ZOOM_TRUCK) === d.TOUCH_ZOOM_TRUCK || (this._state & d.TOUCH_ZOOM_SCREEN_PAN) === d.TOUCH_ZOOM_SCREEN_PAN || (this._state & d.TOUCH_ZOOM_OFFSET) === d.TOUCH_ZOOM_OFFSET || (this._state & d.TOUCH_ZOOM_ROTATE) === d.TOUCH_ZOOM_ROTATE) && (this._zoomEnd = this._zoom, this._zoomVelocity.value = 0), ((this._state & d.OFFSET) === d.OFFSET || (this._state & d.TOUCH_OFFSET) === d.TOUCH_OFFSET || (this._state & d.TOUCH_DOLLY_OFFSET) === d.TOUCH_DOLLY_OFFSET || (this._state & d.TOUCH_ZOOM_OFFSET) === d.TOUCH_ZOOM_OFFSET) && (this._focalOffsetEnd.copy(this._focalOffset), this._focalOffsetVelocity.set(0, 0, 0)), this.dispatchEvent({ type: "controlstart" });
|
|
463
463
|
}, p = () => {
|
|
464
464
|
if (!this._enabled || !this._dragNeedsUpdate) return;
|
|
465
|
-
this._dragNeedsUpdate = !1, Ee(this._activePointers,
|
|
466
|
-
const _ = this._domElement && this._domElement.ownerDocument.pointerLockElement === this._domElement ? this._lockedPointer || this._activePointers[0] : null, O = _ ? -_.deltaX : i.x -
|
|
467
|
-
if (i.copy(
|
|
465
|
+
this._dragNeedsUpdate = !1, Ee(this._activePointers, R);
|
|
466
|
+
const _ = this._domElement && this._domElement.ownerDocument.pointerLockElement === this._domElement ? this._lockedPointer || this._activePointers[0] : null, O = _ ? -_.deltaX : i.x - R.x, C = _ ? -_.deltaY : i.y - R.y;
|
|
467
|
+
if (i.copy(R), ((this._state & d.ROTATE) === d.ROTATE || (this._state & d.TOUCH_ROTATE) === d.TOUCH_ROTATE || (this._state & d.TOUCH_DOLLY_ROTATE) === d.TOUCH_DOLLY_ROTATE || (this._state & d.TOUCH_ZOOM_ROTATE) === d.TOUCH_ZOOM_ROTATE) && (this._rotateInternal(O, C), this._isUserControllingRotate = !0), (this._state & d.DOLLY) === d.DOLLY || (this._state & d.ZOOM) === d.ZOOM) {
|
|
468
468
|
const b = this.dollyToCursor ? (s.x - this._elementRect.x) / this._elementRect.width * 2 - 1 : 0, E = this.dollyToCursor ? (s.y - this._elementRect.y) / this._elementRect.height * -2 + 1 : 0, x = this.dollyDragInverted ? -1 : 1;
|
|
469
469
|
(this._state & d.DOLLY) === d.DOLLY ? (this._dollyInternal(
|
|
470
470
|
x * C * de,
|
|
@@ -477,14 +477,14 @@ class J extends Os {
|
|
|
477
477
|
), this._isUserControllingZoom = !0);
|
|
478
478
|
}
|
|
479
479
|
if ((this._state & d.TOUCH_DOLLY) === d.TOUCH_DOLLY || (this._state & d.TOUCH_ZOOM) === d.TOUCH_ZOOM || (this._state & d.TOUCH_DOLLY_TRUCK) === d.TOUCH_DOLLY_TRUCK || (this._state & d.TOUCH_ZOOM_TRUCK) === d.TOUCH_ZOOM_TRUCK || (this._state & d.TOUCH_DOLLY_SCREEN_PAN) === d.TOUCH_DOLLY_SCREEN_PAN || (this._state & d.TOUCH_ZOOM_SCREEN_PAN) === d.TOUCH_ZOOM_SCREEN_PAN || (this._state & d.TOUCH_DOLLY_OFFSET) === d.TOUCH_DOLLY_OFFSET || (this._state & d.TOUCH_ZOOM_OFFSET) === d.TOUCH_ZOOM_OFFSET || (this._state & d.TOUCH_DOLLY_ROTATE) === d.TOUCH_DOLLY_ROTATE || (this._state & d.TOUCH_ZOOM_ROTATE) === d.TOUCH_ZOOM_ROTATE) {
|
|
480
|
-
const b =
|
|
480
|
+
const b = R.x - this._activePointers[1].clientX, E = R.y - this._activePointers[1].clientY, x = Math.sqrt(b * b + E * E), D = r.y - x;
|
|
481
481
|
r.set(0, x);
|
|
482
482
|
const V = this.dollyToCursor ? (i.x - this._elementRect.x) / this._elementRect.width * 2 - 1 : 0, le = this.dollyToCursor ? (i.y - this._elementRect.y) / this._elementRect.height * -2 + 1 : 0;
|
|
483
|
-
(this._state & d.TOUCH_DOLLY) === d.TOUCH_DOLLY || (this._state & d.TOUCH_DOLLY_ROTATE) === d.TOUCH_DOLLY_ROTATE || (this._state & d.TOUCH_DOLLY_TRUCK) === d.TOUCH_DOLLY_TRUCK || (this._state & d.TOUCH_DOLLY_SCREEN_PAN) === d.TOUCH_DOLLY_SCREEN_PAN || (this._state & d.TOUCH_DOLLY_OFFSET) === d.TOUCH_DOLLY_OFFSET ? (this._dollyInternal(
|
|
483
|
+
(this._state & d.TOUCH_DOLLY) === d.TOUCH_DOLLY || (this._state & d.TOUCH_DOLLY_ROTATE) === d.TOUCH_DOLLY_ROTATE || (this._state & d.TOUCH_DOLLY_TRUCK) === d.TOUCH_DOLLY_TRUCK || (this._state & d.TOUCH_DOLLY_SCREEN_PAN) === d.TOUCH_DOLLY_SCREEN_PAN || (this._state & d.TOUCH_DOLLY_OFFSET) === d.TOUCH_DOLLY_OFFSET ? (this._dollyInternal(D * de, V, le), this._isUserControllingDolly = !0) : (this._zoomInternal(D * de, V, le), this._isUserControllingZoom = !0);
|
|
484
484
|
}
|
|
485
485
|
((this._state & d.TRUCK) === d.TRUCK || (this._state & d.TOUCH_TRUCK) === d.TOUCH_TRUCK || (this._state & d.TOUCH_DOLLY_TRUCK) === d.TOUCH_DOLLY_TRUCK || (this._state & d.TOUCH_ZOOM_TRUCK) === d.TOUCH_ZOOM_TRUCK) && (this._truckInternal(O, C, !1, !1), this._isUserControllingTruck = !0), ((this._state & d.SCREEN_PAN) === d.SCREEN_PAN || (this._state & d.TOUCH_SCREEN_PAN) === d.TOUCH_SCREEN_PAN || (this._state & d.TOUCH_DOLLY_SCREEN_PAN) === d.TOUCH_DOLLY_SCREEN_PAN || (this._state & d.TOUCH_ZOOM_SCREEN_PAN) === d.TOUCH_ZOOM_SCREEN_PAN) && (this._truckInternal(O, C, !1, !0), this._isUserControllingTruck = !0), ((this._state & d.OFFSET) === d.OFFSET || (this._state & d.TOUCH_OFFSET) === d.TOUCH_OFFSET || (this._state & d.TOUCH_DOLLY_OFFSET) === d.TOUCH_DOLLY_OFFSET || (this._state & d.TOUCH_ZOOM_OFFSET) === d.TOUCH_ZOOM_OFFSET) && (this._truckInternal(O, C, !0, !1), this._isUserControllingOffset = !0), this.dispatchEvent({ type: "control" });
|
|
486
486
|
}, u = () => {
|
|
487
|
-
Ee(this._activePointers,
|
|
487
|
+
Ee(this._activePointers, R), i.copy(R), this._dragNeedsUpdate = !1, (this._activePointers.length === 0 || this._activePointers.length === 1 && this._activePointers[0] === this._lockedPointer) && (this._isDragging = !1), this._activePointers.length === 0 && this._domElement && (this._domElement.ownerDocument.removeEventListener(
|
|
488
488
|
"pointermove",
|
|
489
489
|
n,
|
|
490
490
|
{ passive: !1 }
|
|
@@ -1465,8 +1465,8 @@ class J extends Os {
|
|
|
1465
1465
|
), C = w.copy(this._targetEnd).lerp(O, _), b = this._lastDollyDirection === K.IN && this._spherical.radius <= this.minDistance, E = this._lastDollyDirection === K.OUT && this.maxDistance <= this._spherical.radius;
|
|
1466
1466
|
if (this.infinityDolly && (b || E)) {
|
|
1467
1467
|
this._sphericalEnd.radius -= m, this._spherical.radius -= m;
|
|
1468
|
-
const
|
|
1469
|
-
C.add(
|
|
1468
|
+
const D = L.copy(p).multiplyScalar(-m);
|
|
1469
|
+
C.add(D);
|
|
1470
1470
|
}
|
|
1471
1471
|
this._boundary.clampPoint(C, C);
|
|
1472
1472
|
const x = L.subVectors(C, this._targetEnd);
|
|
@@ -1715,17 +1715,17 @@ Q && typeof Q.ownKeys == "function" ? ue = Q.ownKeys : Object.getOwnPropertySymb
|
|
|
1715
1715
|
} : ue = function(e) {
|
|
1716
1716
|
return Object.getOwnPropertyNames(e);
|
|
1717
1717
|
};
|
|
1718
|
-
function
|
|
1718
|
+
function ws(h) {
|
|
1719
1719
|
console && console.warn && console.warn(h);
|
|
1720
1720
|
}
|
|
1721
|
-
var
|
|
1721
|
+
var _t = Number.isNaN || function(e) {
|
|
1722
1722
|
return e !== e;
|
|
1723
1723
|
};
|
|
1724
1724
|
function S() {
|
|
1725
1725
|
S.init.call(this);
|
|
1726
1726
|
}
|
|
1727
1727
|
Ae.exports = S;
|
|
1728
|
-
Ae.exports.once =
|
|
1728
|
+
Ae.exports.once = Ss;
|
|
1729
1729
|
S.EventEmitter = S;
|
|
1730
1730
|
S.prototype._events = void 0;
|
|
1731
1731
|
S.prototype._eventsCount = 0;
|
|
@@ -1741,7 +1741,7 @@ Object.defineProperty(S, "defaultMaxListeners", {
|
|
|
1741
1741
|
return Ge;
|
|
1742
1742
|
},
|
|
1743
1743
|
set: function(h) {
|
|
1744
|
-
if (typeof h != "number" || h < 0 ||
|
|
1744
|
+
if (typeof h != "number" || h < 0 || _t(h))
|
|
1745
1745
|
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + h + ".");
|
|
1746
1746
|
Ge = h;
|
|
1747
1747
|
}
|
|
@@ -1750,15 +1750,15 @@ S.init = function() {
|
|
|
1750
1750
|
(this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
|
1751
1751
|
};
|
|
1752
1752
|
S.prototype.setMaxListeners = function(e) {
|
|
1753
|
-
if (typeof e != "number" || e < 0 ||
|
|
1753
|
+
if (typeof e != "number" || e < 0 || _t(e))
|
|
1754
1754
|
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + ".");
|
|
1755
1755
|
return this._maxListeners = e, this;
|
|
1756
1756
|
};
|
|
1757
|
-
function
|
|
1757
|
+
function gt(h) {
|
|
1758
1758
|
return h._maxListeners === void 0 ? S.defaultMaxListeners : h._maxListeners;
|
|
1759
1759
|
}
|
|
1760
1760
|
S.prototype.getMaxListeners = function() {
|
|
1761
|
-
return
|
|
1761
|
+
return gt(this);
|
|
1762
1762
|
};
|
|
1763
1763
|
S.prototype.emit = function(e) {
|
|
1764
1764
|
for (var t = [], s = 1; s < arguments.length; s++) t.push(arguments[s]);
|
|
@@ -1780,11 +1780,11 @@ S.prototype.emit = function(e) {
|
|
|
1780
1780
|
if (typeof a == "function")
|
|
1781
1781
|
$e(a, this, t);
|
|
1782
1782
|
else
|
|
1783
|
-
for (var c = a.length, f =
|
|
1783
|
+
for (var c = a.length, f = Et(a, c), s = 0; s < c; ++s)
|
|
1784
1784
|
$e(f[s], this, t);
|
|
1785
1785
|
return !0;
|
|
1786
1786
|
};
|
|
1787
|
-
function
|
|
1787
|
+
function yt(h, e, t, s) {
|
|
1788
1788
|
var i, r, o;
|
|
1789
1789
|
if (ge(t), r = h._events, r === void 0 ? (r = h._events = /* @__PURE__ */ Object.create(null), h._eventsCount = 0) : (r.newListener !== void 0 && (h.emit(
|
|
1790
1790
|
"newListener",
|
|
@@ -1792,33 +1792,33 @@ function gt(h, e, t, s) {
|
|
|
1792
1792
|
t.listener ? t.listener : t
|
|
1793
1793
|
), r = h._events), o = r[e]), o === void 0)
|
|
1794
1794
|
o = r[e] = t, ++h._eventsCount;
|
|
1795
|
-
else if (typeof o == "function" ? o = r[e] = s ? [t, o] : [o, t] : s ? o.unshift(t) : o.push(t), i =
|
|
1795
|
+
else if (typeof o == "function" ? o = r[e] = s ? [t, o] : [o, t] : s ? o.unshift(t) : o.push(t), i = gt(h), i > 0 && o.length > i && !o.warned) {
|
|
1796
1796
|
o.warned = !0;
|
|
1797
1797
|
var n = new Error("Possible EventEmitter memory leak detected. " + o.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
1798
|
-
n.name = "MaxListenersExceededWarning", n.emitter = h, n.type = e, n.count = o.length,
|
|
1798
|
+
n.name = "MaxListenersExceededWarning", n.emitter = h, n.type = e, n.count = o.length, ws(n);
|
|
1799
1799
|
}
|
|
1800
1800
|
return h;
|
|
1801
1801
|
}
|
|
1802
1802
|
S.prototype.addListener = function(e, t) {
|
|
1803
|
-
return
|
|
1803
|
+
return yt(this, e, t, !1);
|
|
1804
1804
|
};
|
|
1805
1805
|
S.prototype.on = S.prototype.addListener;
|
|
1806
1806
|
S.prototype.prependListener = function(e, t) {
|
|
1807
|
-
return
|
|
1807
|
+
return yt(this, e, t, !0);
|
|
1808
1808
|
};
|
|
1809
|
-
function
|
|
1809
|
+
function xs() {
|
|
1810
1810
|
if (!this.fired)
|
|
1811
1811
|
return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
1812
1812
|
}
|
|
1813
|
-
function
|
|
1814
|
-
var s = { fired: !1, wrapFn: void 0, target: h, type: e, listener: t }, i =
|
|
1813
|
+
function vt(h, e, t) {
|
|
1814
|
+
var s = { fired: !1, wrapFn: void 0, target: h, type: e, listener: t }, i = xs.bind(s);
|
|
1815
1815
|
return i.listener = t, s.wrapFn = i, i;
|
|
1816
1816
|
}
|
|
1817
1817
|
S.prototype.once = function(e, t) {
|
|
1818
|
-
return ge(t), this.on(e,
|
|
1818
|
+
return ge(t), this.on(e, vt(this, e, t)), this;
|
|
1819
1819
|
};
|
|
1820
1820
|
S.prototype.prependOnceListener = function(e, t) {
|
|
1821
|
-
return ge(t), this.prependListener(e,
|
|
1821
|
+
return ge(t), this.prependListener(e, vt(this, e, t)), this;
|
|
1822
1822
|
};
|
|
1823
1823
|
S.prototype.removeListener = function(e, t) {
|
|
1824
1824
|
var s, i, r, o, n;
|
|
@@ -1836,7 +1836,7 @@ S.prototype.removeListener = function(e, t) {
|
|
|
1836
1836
|
}
|
|
1837
1837
|
if (r < 0)
|
|
1838
1838
|
return this;
|
|
1839
|
-
r === 0 ? s.shift() :
|
|
1839
|
+
r === 0 ? s.shift() : Ls(s, r), s.length === 1 && (i[e] = s[0]), i.removeListener !== void 0 && this.emit("removeListener", e, n || t);
|
|
1840
1840
|
}
|
|
1841
1841
|
return this;
|
|
1842
1842
|
};
|
|
@@ -1860,24 +1860,24 @@ S.prototype.removeAllListeners = function(e) {
|
|
|
1860
1860
|
this.removeListener(e, t[i]);
|
|
1861
1861
|
return this;
|
|
1862
1862
|
};
|
|
1863
|
-
function
|
|
1863
|
+
function Ct(h, e, t) {
|
|
1864
1864
|
var s = h._events;
|
|
1865
1865
|
if (s === void 0)
|
|
1866
1866
|
return [];
|
|
1867
1867
|
var i = s[e];
|
|
1868
|
-
return i === void 0 ? [] : typeof i == "function" ? t ? [i.listener || i] : [i] : t ?
|
|
1868
|
+
return i === void 0 ? [] : typeof i == "function" ? t ? [i.listener || i] : [i] : t ? Ps(i) : Et(i, i.length);
|
|
1869
1869
|
}
|
|
1870
1870
|
S.prototype.listeners = function(e) {
|
|
1871
|
-
return
|
|
1871
|
+
return Ct(this, e, !0);
|
|
1872
1872
|
};
|
|
1873
1873
|
S.prototype.rawListeners = function(e) {
|
|
1874
|
-
return
|
|
1874
|
+
return Ct(this, e, !1);
|
|
1875
1875
|
};
|
|
1876
1876
|
S.listenerCount = function(h, e) {
|
|
1877
|
-
return typeof h.listenerCount == "function" ? h.listenerCount(e) :
|
|
1877
|
+
return typeof h.listenerCount == "function" ? h.listenerCount(e) : Ot.call(h, e);
|
|
1878
1878
|
};
|
|
1879
|
-
S.prototype.listenerCount =
|
|
1880
|
-
function
|
|
1879
|
+
S.prototype.listenerCount = Ot;
|
|
1880
|
+
function Ot(h) {
|
|
1881
1881
|
var e = this._events;
|
|
1882
1882
|
if (e !== void 0) {
|
|
1883
1883
|
var t = e[h];
|
|
@@ -1891,22 +1891,22 @@ function Ct(h) {
|
|
|
1891
1891
|
S.prototype.eventNames = function() {
|
|
1892
1892
|
return this._eventsCount > 0 ? ue(this._events) : [];
|
|
1893
1893
|
};
|
|
1894
|
-
function
|
|
1894
|
+
function Et(h, e) {
|
|
1895
1895
|
for (var t = new Array(e), s = 0; s < e; ++s)
|
|
1896
1896
|
t[s] = h[s];
|
|
1897
1897
|
return t;
|
|
1898
1898
|
}
|
|
1899
|
-
function
|
|
1899
|
+
function Ls(h, e) {
|
|
1900
1900
|
for (; e + 1 < h.length; e++)
|
|
1901
1901
|
h[e] = h[e + 1];
|
|
1902
1902
|
h.pop();
|
|
1903
1903
|
}
|
|
1904
|
-
function
|
|
1904
|
+
function Ps(h) {
|
|
1905
1905
|
for (var e = new Array(h.length), t = 0; t < e.length; ++t)
|
|
1906
1906
|
e[t] = h[t].listener || h[t];
|
|
1907
1907
|
return e;
|
|
1908
1908
|
}
|
|
1909
|
-
function
|
|
1909
|
+
function Ss(h, e) {
|
|
1910
1910
|
return new Promise(function(t, s) {
|
|
1911
1911
|
function i(o) {
|
|
1912
1912
|
h.removeListener(e, r), s(o);
|
|
@@ -1914,13 +1914,13 @@ function Ls(h, e) {
|
|
|
1914
1914
|
function r() {
|
|
1915
1915
|
typeof h.removeListener == "function" && h.removeListener("error", i), t([].slice.call(arguments));
|
|
1916
1916
|
}
|
|
1917
|
-
|
|
1917
|
+
Tt(h, e, r, { once: !0 }), e !== "error" && As(h, i, { once: !0 });
|
|
1918
1918
|
});
|
|
1919
1919
|
}
|
|
1920
|
-
function
|
|
1921
|
-
typeof h.on == "function" &&
|
|
1920
|
+
function As(h, e, t) {
|
|
1921
|
+
typeof h.on == "function" && Tt(h, "error", e, t);
|
|
1922
1922
|
}
|
|
1923
|
-
function
|
|
1923
|
+
function Tt(h, e, t, s) {
|
|
1924
1924
|
if (typeof h.on == "function")
|
|
1925
1925
|
s.once ? h.once(e, t) : h.on(e, t);
|
|
1926
1926
|
else if (typeof h.addEventListener == "function")
|
|
@@ -1931,7 +1931,7 @@ function Et(h, e, t, s) {
|
|
|
1931
1931
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof h);
|
|
1932
1932
|
}
|
|
1933
1933
|
var ye = Ae.exports;
|
|
1934
|
-
let
|
|
1934
|
+
let Ms = class {
|
|
1935
1935
|
constructor() {
|
|
1936
1936
|
this.mask = 1;
|
|
1937
1937
|
}
|
|
@@ -1962,7 +1962,7 @@ class ee {
|
|
|
1962
1962
|
this.event = new ye.EventEmitter(), this.controllerMap = /* @__PURE__ */ new Map(), this.activeIndex = -1, this.activeControllerSet = /* @__PURE__ */ new Set();
|
|
1963
1963
|
}
|
|
1964
1964
|
addController(e, t) {
|
|
1965
|
-
const s = new
|
|
1965
|
+
const s = new Ms();
|
|
1966
1966
|
return s.disableAll(), t !== void 0 && s.set(t), this.controllerMap.set(e, s), t === this.activeIndex && this.activeControllerSet.add(e), e;
|
|
1967
1967
|
}
|
|
1968
1968
|
removePage(e, t) {
|
|
@@ -1991,21 +1991,21 @@ class ee {
|
|
|
1991
1991
|
}), this.removePage(0), this.controllerMap.clear(), this.event.removeAllListeners(), this.activeControllerSet.clear();
|
|
1992
1992
|
}
|
|
1993
1993
|
}
|
|
1994
|
-
const
|
|
1994
|
+
const bt = {
|
|
1995
1995
|
fov: 45,
|
|
1996
1996
|
near: 1,
|
|
1997
1997
|
far: 1e3,
|
|
1998
1998
|
up: new I(0, 1, 0)
|
|
1999
1999
|
};
|
|
2000
|
-
class
|
|
2000
|
+
class Ds extends ee {
|
|
2001
2001
|
constructor(e) {
|
|
2002
2002
|
super(), this.width = 0, this.height = 0, this.width = e.width, this.height = e.height;
|
|
2003
2003
|
}
|
|
2004
2004
|
get camera() {
|
|
2005
2005
|
return this.controller;
|
|
2006
2006
|
}
|
|
2007
|
-
addPerspectiveCamera(e =
|
|
2008
|
-
const { fov: s, far: i, near: r, up: o, aspect: n } = e, a = n != null ? n : this.width / this.height, c = new
|
|
2007
|
+
addPerspectiveCamera(e = bt, t) {
|
|
2008
|
+
const { fov: s, far: i, near: r, up: o, aspect: n } = e, a = n != null ? n : this.width / this.height, c = new kt(s, a, r, i);
|
|
2009
2009
|
return c.up = o, this.addController(c, t);
|
|
2010
2010
|
}
|
|
2011
2011
|
setPageActive(e) {
|
|
@@ -2077,9 +2077,9 @@ class As extends ee {
|
|
|
2077
2077
|
}
|
|
2078
2078
|
}
|
|
2079
2079
|
}
|
|
2080
|
-
const
|
|
2081
|
-
const e = new
|
|
2082
|
-
new
|
|
2080
|
+
const Rs = (h) => {
|
|
2081
|
+
const e = new ds(
|
|
2082
|
+
new Ft({
|
|
2083
2083
|
uniforms: {
|
|
2084
2084
|
baseTexture: { value: null },
|
|
2085
2085
|
bloomTexture: { value: h.renderTarget2.texture },
|
|
@@ -2113,7 +2113,7 @@ const Ms = (h) => {
|
|
|
2113
2113
|
"baseTexture"
|
|
2114
2114
|
);
|
|
2115
2115
|
return e.needsSwap = !0, e;
|
|
2116
|
-
},
|
|
2116
|
+
}, Us = {
|
|
2117
2117
|
name: "OutputShader",
|
|
2118
2118
|
uniforms: {
|
|
2119
2119
|
tDiffuse: { value: null },
|
|
@@ -2207,11 +2207,11 @@ const Ms = (h) => {
|
|
|
2207
2207
|
}`
|
|
2208
2208
|
)
|
|
2209
2209
|
};
|
|
2210
|
-
class
|
|
2210
|
+
class zs extends ms {
|
|
2211
2211
|
constructor() {
|
|
2212
2212
|
super();
|
|
2213
|
-
const e =
|
|
2214
|
-
this.uniforms =
|
|
2213
|
+
const e = Us;
|
|
2214
|
+
this.uniforms = Nt.clone(e.uniforms), this.material = new Ht({
|
|
2215
2215
|
name: e.name,
|
|
2216
2216
|
uniforms: this.uniforms,
|
|
2217
2217
|
vertexShader: e.vertexShader,
|
|
@@ -2219,38 +2219,38 @@ class Ds extends cs {
|
|
|
2219
2219
|
}), this.fsQuad ? this.fsQuad = new Fe(this.material) : this._fsQuad && (this._fsQuad = new Fe(this.material));
|
|
2220
2220
|
}
|
|
2221
2221
|
}
|
|
2222
|
-
const
|
|
2222
|
+
const ks = new It({ color: "black" }), Fs = new at({
|
|
2223
2223
|
color: "black",
|
|
2224
2224
|
sizeAttenuation: !1
|
|
2225
|
-
}),
|
|
2225
|
+
}), Ns = new at({
|
|
2226
2226
|
color: "black",
|
|
2227
2227
|
sizeAttenuation: !0
|
|
2228
|
-
}),
|
|
2228
|
+
}), Hs = new lt({
|
|
2229
2229
|
color: "black",
|
|
2230
2230
|
sizeAttenuation: !0
|
|
2231
|
-
}),
|
|
2231
|
+
}), Is = new lt({
|
|
2232
2232
|
color: "black",
|
|
2233
2233
|
sizeAttenuation: !1
|
|
2234
|
-
}),
|
|
2234
|
+
}), js = new ut({
|
|
2235
2235
|
color: "black",
|
|
2236
2236
|
sizeAttenuation: !1,
|
|
2237
2237
|
lineWidth: 0
|
|
2238
|
-
}),
|
|
2238
|
+
}), Xe = new jt(0), Bs = {
|
|
2239
2239
|
kernelRadius: 8,
|
|
2240
2240
|
minDistance: 5e-3,
|
|
2241
2241
|
maxDistance: 0.1
|
|
2242
|
-
},
|
|
2242
|
+
}, Vs = {
|
|
2243
2243
|
threshold: 0,
|
|
2244
2244
|
strength: 0.4,
|
|
2245
2245
|
radius: 0.1,
|
|
2246
2246
|
bloomAlphaType: 0
|
|
2247
|
-
},
|
|
2247
|
+
}, Ys = {
|
|
2248
2248
|
multisampling: 4,
|
|
2249
2249
|
premultiplieAlpha: !1
|
|
2250
2250
|
};
|
|
2251
|
-
class
|
|
2251
|
+
class Zs {
|
|
2252
2252
|
constructor(e) {
|
|
2253
|
-
this.bloomComposerActive = !1, this.active = !0, this.bloomSelection = /* @__PURE__ */ new Set(), this.bloomLayer = new
|
|
2253
|
+
this.bloomComposerActive = !1, this.active = !0, this.bloomSelection = /* @__PURE__ */ new Set(), this.bloomLayer = new Bt(), this.bloomMaterials = {}, this.bloomVisible = {}, this.bloomComposerRenderIng = !1, this.pipViewportState = null, this.options = e;
|
|
2254
2254
|
const {
|
|
2255
2255
|
rendererController: t,
|
|
2256
2256
|
sceneController: s,
|
|
@@ -2258,16 +2258,16 @@ class Vs {
|
|
|
2258
2258
|
composerParams: r
|
|
2259
2259
|
} = e, { renderer: o } = t;
|
|
2260
2260
|
this.renderer = o;
|
|
2261
|
-
const { multisampling: n } = r, { maxSamples: a } = o.capabilities, c = o.getDrawingBufferSize(new B()), f = new
|
|
2261
|
+
const { multisampling: n } = r, { maxSamples: a } = o.capabilities, c = o.getDrawingBufferSize(new B()), f = new Vt(
|
|
2262
2262
|
c.width,
|
|
2263
2263
|
c.height,
|
|
2264
2264
|
{
|
|
2265
2265
|
samples: Math.min(n, a),
|
|
2266
|
-
type:
|
|
2266
|
+
type: Yt
|
|
2267
2267
|
}
|
|
2268
2268
|
), m = new ke(o, f), v = this.getSize();
|
|
2269
2269
|
m.setSize(v.width, v.height);
|
|
2270
|
-
const p = new
|
|
2270
|
+
const p = new ls(
|
|
2271
2271
|
s.scene,
|
|
2272
2272
|
i.camera
|
|
2273
2273
|
);
|
|
@@ -2284,18 +2284,18 @@ class Vs {
|
|
|
2284
2284
|
this.renderPass.scene = e, this.ssaoPass && (this.ssaoPass.scene = e), this.scene = e;
|
|
2285
2285
|
}
|
|
2286
2286
|
addOutputPass() {
|
|
2287
|
-
const { premultiplieAlpha: e } = this.options.composerParams, t = new
|
|
2287
|
+
const { premultiplieAlpha: e } = this.options.composerParams, t = new zs();
|
|
2288
2288
|
this.outputPass = t, this.setPremultiplieAlpha(e), this.finalComposer.addPass(t);
|
|
2289
2289
|
}
|
|
2290
2290
|
setPremultiplieAlpha(e) {
|
|
2291
2291
|
this.outputPass && (this.outputPass.uniforms.premultiplieAlpha.value = e ? 1 : 0);
|
|
2292
2292
|
}
|
|
2293
2293
|
addSSAOPass(e) {
|
|
2294
|
-
const { scene: t, camera: s, renderer: i } = this, r = i.getSize(new B()), o = r.width, n = r.height, a = new
|
|
2294
|
+
const { scene: t, camera: s, renderer: i } = this, r = i.getSize(new B()), o = r.width, n = r.height, a = new hs(t, s, o, n);
|
|
2295
2295
|
a.kernelRadius = e.kernelRadius, a.minDistance = e.minDistance, a.maxDistance = e.maxDistance, this.ssaoPass = a, this.finalComposer.addPass(a);
|
|
2296
2296
|
}
|
|
2297
2297
|
addBloomPass(e) {
|
|
2298
|
-
const { renderer: t } = this, { threshold: s, strength: i, radius: r, bloomAlphaType: o } = e, n = new
|
|
2298
|
+
const { renderer: t } = this, { threshold: s, strength: i, radius: r, bloomAlphaType: o } = e, n = new cs(
|
|
2299
2299
|
new B(window.innerWidth, window.innerHeight),
|
|
2300
2300
|
i,
|
|
2301
2301
|
r,
|
|
@@ -2304,7 +2304,7 @@ class Vs {
|
|
|
2304
2304
|
this.bloomPass = n;
|
|
2305
2305
|
const a = new ke(t);
|
|
2306
2306
|
a.renderToScreen = !1, a.addPass(this.renderPass), a.addPass(n), this.bloomComposer = a;
|
|
2307
|
-
const c =
|
|
2307
|
+
const c = Rs(a);
|
|
2308
2308
|
c.uniforms.bloomAlphaType.value = o, this.bloomComposer = a, this.finalComposer.addPass(c), this.mixPass = c, this.bloomLayer.set(Oe);
|
|
2309
2309
|
}
|
|
2310
2310
|
setBloomSelection(e, t) {
|
|
@@ -2333,31 +2333,36 @@ class Vs {
|
|
|
2333
2333
|
}
|
|
2334
2334
|
darkenNonBloomed() {
|
|
2335
2335
|
const e = [], t = [];
|
|
2336
|
-
this.scene.children.forEach((
|
|
2337
|
-
|
|
2338
|
-
}), t.forEach((
|
|
2339
|
-
|
|
2340
|
-
var
|
|
2341
|
-
const
|
|
2342
|
-
if ((
|
|
2343
|
-
e.push(
|
|
2344
|
-
else if (
|
|
2345
|
-
if (
|
|
2346
|
-
e.push(
|
|
2336
|
+
this.scene.children.forEach((i) => {
|
|
2337
|
+
i.isTransformControls || i.isTransformControlsRoot || i.type === "RectAreaLightHelper" ? e.push(i) : t.push(i);
|
|
2338
|
+
}), t.forEach((i) => {
|
|
2339
|
+
i.traverse((r) => {
|
|
2340
|
+
var c;
|
|
2341
|
+
const o = r, n = r, a = r;
|
|
2342
|
+
if ((c = o.material) != null && c.isShadowMaterial)
|
|
2343
|
+
e.push(o);
|
|
2344
|
+
else if (o.material && this.bloomLayer.test(o.layers) === !1) {
|
|
2345
|
+
if (o.material.transparent === !0 && (o.material.opacity !== 1 || o.material.alphaMap)) {
|
|
2346
|
+
e.push(o);
|
|
2347
2347
|
return;
|
|
2348
2348
|
}
|
|
2349
|
-
this.bloomMaterials[
|
|
2349
|
+
this.bloomMaterials[o.uuid] = o.material, n.isSprite ? n.material.sizeAttenuation ? n.material = Hs : n.material = Is : o.material instanceof ut ? o.material = js : a.isPoints ? a.material.sizeAttenuation ? a.material = Ns : a.material = Fs : o.material = ks;
|
|
2350
2350
|
}
|
|
2351
2351
|
});
|
|
2352
|
-
}), e.forEach((
|
|
2353
|
-
this.bloomVisible[
|
|
2352
|
+
}), e.forEach((i) => {
|
|
2353
|
+
this.bloomVisible[i.uuid] = i.visible, i.visible = !1;
|
|
2354
2354
|
});
|
|
2355
|
+
const s = this.scene.background;
|
|
2356
|
+
s != null && s.isTexture && (this.scene.userData._backgroundOriginal = s, this.scene.background = Xe);
|
|
2355
2357
|
}
|
|
2356
2358
|
restoreNonBloomed() {
|
|
2357
|
-
this.scene.traverse((e) => {
|
|
2359
|
+
if (this.scene.traverse((e) => {
|
|
2358
2360
|
const t = e;
|
|
2359
2361
|
this.bloomMaterials[t.uuid] ? (t.material = this.bloomMaterials[t.uuid], delete this.bloomMaterials[t.uuid]) : this.bloomVisible[t.uuid] !== void 0 && (t.visible = this.bloomVisible[t.uuid], delete this.bloomVisible[t.uuid]);
|
|
2360
|
-
})
|
|
2362
|
+
}), this.scene.background === Xe) {
|
|
2363
|
+
const e = this.scene.userData._backgroundOriginal;
|
|
2364
|
+
e && (this.scene.background = e, delete this.scene.userData._backgroundOriginal);
|
|
2365
|
+
}
|
|
2361
2366
|
}
|
|
2362
2367
|
finalComposerRender() {
|
|
2363
2368
|
this.bloomComposerActive && this.bloomComposer ? (this.bloomComposerRenderIng = !0, this.mixPass.enabled = !0, this.darkenNonBloomed(), this.bloomComposer.render(), this.restoreNonBloomed(), this.bloomComposerRenderIng = !1) : this.mixPass && (this.mixPass.enabled = !1), this.finalComposer.render();
|
|
@@ -2391,19 +2396,19 @@ class Vs {
|
|
|
2391
2396
|
this.bloomMaterials = {}, this.bloomVisible = {}, this.bloomSelection.clear(), this.finalComposer.dispose(), (e = this.bloomComposer) == null || e.dispose();
|
|
2392
2397
|
}
|
|
2393
2398
|
}
|
|
2394
|
-
class
|
|
2399
|
+
class Ws extends ee {
|
|
2395
2400
|
constructor(e) {
|
|
2396
2401
|
super(), this.autoRotateSpeed = 0, this.options = e;
|
|
2397
2402
|
const t = {
|
|
2398
2403
|
Vector2: B,
|
|
2399
2404
|
Vector3: I,
|
|
2400
|
-
Vector4:
|
|
2401
|
-
Quaternion:
|
|
2405
|
+
Vector4: Wt,
|
|
2406
|
+
Quaternion: ht,
|
|
2402
2407
|
Matrix4: W,
|
|
2403
|
-
Spherical:
|
|
2404
|
-
Box3:
|
|
2405
|
-
Sphere:
|
|
2406
|
-
Raycaster:
|
|
2408
|
+
Spherical: Kt,
|
|
2409
|
+
Box3: ct,
|
|
2410
|
+
Sphere: $t,
|
|
2411
|
+
Raycaster: dt
|
|
2407
2412
|
};
|
|
2408
2413
|
J.install({ THREE: t });
|
|
2409
2414
|
}
|
|
@@ -2435,11 +2440,11 @@ class Ys extends ee {
|
|
|
2435
2440
|
});
|
|
2436
2441
|
}
|
|
2437
2442
|
update(e, t) {
|
|
2438
|
-
super.update(e, t), this.autoRotateSpeed && this.cameraControls && (this.cameraControls.azimuthAngle += this.autoRotateSpeed * e *
|
|
2443
|
+
super.update(e, t), this.autoRotateSpeed && this.cameraControls && (this.cameraControls.azimuthAngle += this.autoRotateSpeed * e * Zt.DEG2RAD);
|
|
2439
2444
|
}
|
|
2440
2445
|
}
|
|
2441
|
-
const
|
|
2442
|
-
class
|
|
2446
|
+
const qe = new I(), Ks = new ht(), Qe = new I(), H = new W(), $s = new W();
|
|
2447
|
+
class Gs {
|
|
2443
2448
|
/**
|
|
2444
2449
|
* Constructs a new CSS3D renderer.
|
|
2445
2450
|
*
|
|
@@ -2466,8 +2471,8 @@ class Ks {
|
|
|
2466
2471
|
l.view && l.view.enabled ? (c.style.transform = `translate( ${-l.view.offsetX * (s / l.view.width)}px, ${-l.view.offsetY * (i / l.view.height)}px )`, c.style.transform += `scale( ${l.view.fullWidth / l.view.width}, ${l.view.fullHeight / l.view.height} )`) : c.style.transform = "", y.matrixWorldAutoUpdate === !0 && y.updateMatrixWorld(), l.parent === null && l.matrixWorldAutoUpdate === !0 && l.updateMatrixWorld();
|
|
2467
2472
|
let O, C;
|
|
2468
2473
|
l.isOrthographicCamera && (O = -(l.right + l.left) / 2, C = (l.top + l.bottom) / 2);
|
|
2469
|
-
const b = l.view && l.view.enabled ? l.view.height / l.view.fullHeight : 1, E = l.isOrthographicCamera ? `scale( ${b} )scale(` + _ + ")translate(" + m(O) + "px," + m(C) + "px)" + v(l.matrixWorldInverse) : `scale( ${b} )translateZ(` + _ + "px)" + v(l.matrixWorldInverse),
|
|
2470
|
-
n.camera.style !==
|
|
2474
|
+
const b = l.view && l.view.enabled ? l.view.height / l.view.fullHeight : 1, E = l.isOrthographicCamera ? `scale( ${b} )scale(` + _ + ")translate(" + m(O) + "px," + m(C) + "px)" + v(l.matrixWorldInverse) : `scale( ${b} )translateZ(` + _ + "px)" + v(l.matrixWorldInverse), D = (l.isPerspectiveCamera ? "perspective(" + _ + "px) " : "") + E + "translate(" + r + "px," + o + "px)";
|
|
2475
|
+
n.camera.style !== D && (f.style.transform = D, n.camera.style = D), g(y, y, l);
|
|
2471
2476
|
}, this.setSize = function(y, l) {
|
|
2472
2477
|
s = y, i = l, r = s / 2, o = i / 2, a.style.width = y + "px", a.style.height = l + "px", c.style.width = y + "px", c.style.height = l + "px", f.style.width = y + "px", f.style.height = l + "px";
|
|
2473
2478
|
};
|
|
@@ -2497,12 +2502,12 @@ class Ks {
|
|
|
2497
2502
|
if (b.style.display = C === !0 ? "" : "none", C === !0) {
|
|
2498
2503
|
y.onBeforeRender(t, l, _);
|
|
2499
2504
|
let E;
|
|
2500
|
-
y.isCSS3DSprite ? (H.copy(_.matrixWorldInverse), H.transpose(), y.rotation2D !== 0 && H.multiply(
|
|
2505
|
+
y.isCSS3DSprite ? (H.copy(_.matrixWorldInverse), H.transpose(), y.rotation2D !== 0 && H.multiply($s.makeRotationZ(y.rotation2D)), y.matrixWorld.decompose(qe, Ks, Qe), H.setPosition(qe), H.scale(Qe), H.elements[3] = 0, H.elements[7] = 0, H.elements[11] = 0, H.elements[15] = 1, E = p(H)) : E = p(y.matrixWorld);
|
|
2501
2506
|
const x = n.objects.get(y);
|
|
2502
2507
|
if (x === void 0 || x.style !== E) {
|
|
2503
2508
|
b.style.transform = E;
|
|
2504
|
-
const
|
|
2505
|
-
n.objects.set(y,
|
|
2509
|
+
const D = { style: E };
|
|
2510
|
+
n.objects.set(y, D);
|
|
2506
2511
|
}
|
|
2507
2512
|
b.parentNode !== f && f.appendChild(b), y.onAfterRender(t, l, _);
|
|
2508
2513
|
}
|
|
@@ -2512,8 +2517,8 @@ class Ks {
|
|
|
2512
2517
|
}
|
|
2513
2518
|
}
|
|
2514
2519
|
}
|
|
2515
|
-
const q = new I(),
|
|
2516
|
-
class
|
|
2520
|
+
const q = new I(), Je = new W(), et = new W(), tt = new I(), st = new I();
|
|
2521
|
+
class Xs {
|
|
2517
2522
|
/**
|
|
2518
2523
|
* Constructs a new CSS2D renderer.
|
|
2519
2524
|
*
|
|
@@ -2531,7 +2536,7 @@ class $s {
|
|
|
2531
2536
|
height: i
|
|
2532
2537
|
};
|
|
2533
2538
|
}, this.render = function(u, g) {
|
|
2534
|
-
u.matrixWorldAutoUpdate === !0 && u.updateMatrixWorld(), g.parent === null && g.matrixWorldAutoUpdate === !0 && g.updateMatrixWorld(),
|
|
2539
|
+
u.matrixWorldAutoUpdate === !0 && u.updateMatrixWorld(), g.parent === null && g.matrixWorldAutoUpdate === !0 && g.updateMatrixWorld(), Je.copy(g.matrixWorldInverse), et.multiplyMatrices(g.projectionMatrix, Je), f(u, u, g), p(u);
|
|
2535
2540
|
}, this.setSize = function(u, g) {
|
|
2536
2541
|
s = u, i = g, r = s / 2, o = i / 2, a.style.width = u + "px", a.style.height = g + "px";
|
|
2537
2542
|
};
|
|
@@ -2546,7 +2551,7 @@ class $s {
|
|
|
2546
2551
|
return;
|
|
2547
2552
|
}
|
|
2548
2553
|
if (u.isCSS2DObject) {
|
|
2549
|
-
q.setFromMatrixPosition(u.matrixWorld), q.applyMatrix4(
|
|
2554
|
+
q.setFromMatrixPosition(u.matrixWorld), q.applyMatrix4(et);
|
|
2550
2555
|
const l = q.z >= -1 && q.z <= 1 && u.layers.test(y.layers) === !0, _ = u.element;
|
|
2551
2556
|
_.style.display = l === !0 ? "" : "none", l === !0 && (u.onBeforeRender(t, g, y), _.style.transform = "translate(" + -100 * u.center.x + "%," + -100 * u.center.y + "%)translate(" + (q.x * r + r) + "px," + (-q.y * o + o) + "px)", _.parentNode !== a && a.appendChild(_), u.onAfterRender(t, g, y));
|
|
2552
2557
|
const O = {
|
|
@@ -2558,7 +2563,7 @@ class $s {
|
|
|
2558
2563
|
f(u.children[l], g, y);
|
|
2559
2564
|
}
|
|
2560
2565
|
function m(u, g) {
|
|
2561
|
-
return
|
|
2566
|
+
return tt.setFromMatrixPosition(u.matrixWorld), st.setFromMatrixPosition(g.matrixWorld), tt.distanceToSquared(st);
|
|
2562
2567
|
}
|
|
2563
2568
|
function v(u) {
|
|
2564
2569
|
const g = [];
|
|
@@ -2578,15 +2583,15 @@ class $s {
|
|
|
2578
2583
|
}
|
|
2579
2584
|
}
|
|
2580
2585
|
}
|
|
2581
|
-
const
|
|
2586
|
+
const it = {
|
|
2582
2587
|
zIndex: "auto"
|
|
2583
2588
|
};
|
|
2584
|
-
class
|
|
2589
|
+
class qs {
|
|
2585
2590
|
constructor(e) {
|
|
2586
2591
|
this.container = e;
|
|
2587
2592
|
}
|
|
2588
2593
|
addRenderer(e, t) {
|
|
2589
|
-
const s = t.container || this.container, i = s.offsetWidth, r = s.offsetHeight, o = e === "css2d" ? new
|
|
2594
|
+
const s = t.container || this.container, i = s.offsetWidth, r = s.offsetHeight, o = e === "css2d" ? new Xs() : new Gs();
|
|
2590
2595
|
o.domElement.style.position = "absolute", o.domElement.style.top = "0", o.domElement.style.pointerEvents = "none", o.domElement.style.zIndex = t.zIndex, o.setSize(i, r), s.appendChild(o.domElement), e === "css2d" ? this.css2Drenderer = o : e === "css3d" && (this.css3Drenderer = o);
|
|
2591
2596
|
}
|
|
2592
2597
|
setSize(e, t) {
|
|
@@ -2602,7 +2607,7 @@ class Gs {
|
|
|
2602
2607
|
(e = this.css2Drenderer) == null || e.domElement.remove(), (t = this.css3Drenderer) == null || t.domElement.remove(), this.css2Drenderer = void 0, this.css3Drenderer = void 0;
|
|
2603
2608
|
}
|
|
2604
2609
|
}
|
|
2605
|
-
class
|
|
2610
|
+
class Qs {
|
|
2606
2611
|
constructor(e) {
|
|
2607
2612
|
this.helpers = {}, this.options = e;
|
|
2608
2613
|
}
|
|
@@ -2611,21 +2616,21 @@ class Xs {
|
|
|
2611
2616
|
let i = this.helpers[t];
|
|
2612
2617
|
if (i === void 0) {
|
|
2613
2618
|
if (e.isScene)
|
|
2614
|
-
i = new
|
|
2619
|
+
i = new Re(100);
|
|
2615
2620
|
else if (e.isCamera)
|
|
2616
|
-
i = new
|
|
2621
|
+
i = new Gt(e);
|
|
2617
2622
|
else if (e.isPointLight)
|
|
2618
|
-
i = new
|
|
2623
|
+
i = new Xt(e, 1);
|
|
2619
2624
|
else if (e.isDirectionalLight)
|
|
2620
|
-
i = new
|
|
2625
|
+
i = new qt(e, 1);
|
|
2621
2626
|
else if (e.isSpotLight)
|
|
2622
|
-
i = new
|
|
2627
|
+
i = new Qt(e);
|
|
2623
2628
|
else if (e.isHemisphereLight)
|
|
2624
|
-
i = new
|
|
2629
|
+
i = new Jt(e, 10);
|
|
2625
2630
|
else if (e.isRectAreaLight)
|
|
2626
|
-
i = new
|
|
2631
|
+
i = new ps(e);
|
|
2627
2632
|
else {
|
|
2628
|
-
const r = new
|
|
2633
|
+
const r = new ct();
|
|
2629
2634
|
if (r.setFromObject(e, !0), r.isEmpty() === !1) {
|
|
2630
2635
|
i = new Ue(r);
|
|
2631
2636
|
const o = i.material;
|
|
@@ -2637,7 +2642,7 @@ class Xs {
|
|
|
2637
2642
|
}
|
|
2638
2643
|
}
|
|
2639
2644
|
addViewHelper() {
|
|
2640
|
-
const { cameraController: e, container: t } = this.options, s = new
|
|
2645
|
+
const { cameraController: e, container: t } = this.options, s = new us(e.camera, t);
|
|
2641
2646
|
t.addEventListener("pointerdown", (i) => {
|
|
2642
2647
|
i.preventDefault(), s.handleClick(i);
|
|
2643
2648
|
}), this.viewHelper = s;
|
|
@@ -2659,7 +2664,7 @@ class Xs {
|
|
|
2659
2664
|
}
|
|
2660
2665
|
removeAllExcludeScene() {
|
|
2661
2666
|
Object.keys(this.helpers).forEach((e) => {
|
|
2662
|
-
this.helpers[e] instanceof
|
|
2667
|
+
this.helpers[e] instanceof Re || this.remove({
|
|
2663
2668
|
uuid: e
|
|
2664
2669
|
});
|
|
2665
2670
|
});
|
|
@@ -2687,7 +2692,7 @@ class Xs {
|
|
|
2687
2692
|
this.helpers = {}, (e = this.viewHelper) == null || e.dispose();
|
|
2688
2693
|
}
|
|
2689
2694
|
}
|
|
2690
|
-
function
|
|
2695
|
+
function rt(h) {
|
|
2691
2696
|
let e = !1, t = [];
|
|
2692
2697
|
return function(...s) {
|
|
2693
2698
|
t = s, e || (e = !0, requestAnimationFrame(() => {
|
|
@@ -2695,7 +2700,7 @@ function it(h) {
|
|
|
2695
2700
|
}));
|
|
2696
2701
|
};
|
|
2697
2702
|
}
|
|
2698
|
-
class
|
|
2703
|
+
class Js {
|
|
2699
2704
|
constructor(e) {
|
|
2700
2705
|
var t;
|
|
2701
2706
|
this.enabled = !0, this.pickFunctionsMap = /* @__PURE__ */ new Map(), this.pickNodeFunctionsMap = /* @__PURE__ */ new Map(), this.pickFunctionsMapIndex = -1, this.pickNodeFunctionsMapIndex = -1, this.activeObjects = /* @__PURE__ */ new Set(), this.activeObject = null, this.prevActiveObjects = /* @__PURE__ */ new Set(), this.objCallbackMap = /* @__PURE__ */ new Map(), this.pickListener = {
|
|
@@ -2737,7 +2742,7 @@ class qs {
|
|
|
2737
2742
|
};
|
|
2738
2743
|
this.domElement.addEventListener(
|
|
2739
2744
|
`pointer${e}`,
|
|
2740
|
-
|
|
2745
|
+
rt(i),
|
|
2741
2746
|
{ passive: !1 }
|
|
2742
2747
|
);
|
|
2743
2748
|
}
|
|
@@ -2862,7 +2867,7 @@ class qs {
|
|
|
2862
2867
|
mouseEvent: m
|
|
2863
2868
|
}));
|
|
2864
2869
|
}, f = `pointer${t}`;
|
|
2865
|
-
a.element.addEventListener(f,
|
|
2870
|
+
a.element.addEventListener(f, rt(c), !1), o.push({ arr: a, type: f, listener: c });
|
|
2866
2871
|
}
|
|
2867
2872
|
return this.pickNodeFunctionsMap.set(i, o), i;
|
|
2868
2873
|
}
|
|
@@ -2882,9 +2887,9 @@ class qs {
|
|
|
2882
2887
|
this.pickFunctionsMap.clear(), this.pickNodeFunctionsMap.clear(), this.activeObjects.clear(), this.prevActiveObjects.clear(), this.objCallbackMap.clear();
|
|
2883
2888
|
}
|
|
2884
2889
|
}
|
|
2885
|
-
class
|
|
2890
|
+
class ei extends Js {
|
|
2886
2891
|
constructor(e, t) {
|
|
2887
|
-
super(e), this.objMap = /* @__PURE__ */ new Map(), this.objects = /* @__PURE__ */ new Map(), this.objectsPm = /* @__PURE__ */ new Map(), this.objectWrapChindIdMap = /* @__PURE__ */ new Map(), this.objectNamesToFactories = /* @__PURE__ */ new Map(), this.mList = t.mList, this.scene = this.createBaseObject(t.scene || new
|
|
2892
|
+
super(e), this.objMap = /* @__PURE__ */ new Map(), this.objects = /* @__PURE__ */ new Map(), this.objectsPm = /* @__PURE__ */ new Map(), this.objectWrapChindIdMap = /* @__PURE__ */ new Map(), this.objectNamesToFactories = /* @__PURE__ */ new Map(), this.mList = t.mList, this.scene = this.createBaseObject(t.scene || new mt(), {
|
|
2888
2893
|
key: "@Scene",
|
|
2889
2894
|
name: "场景",
|
|
2890
2895
|
mList: !1
|
|
@@ -2906,12 +2911,12 @@ class Qs extends qs {
|
|
|
2906
2911
|
createBaseObject(e, t = {}) {
|
|
2907
2912
|
const s = U({
|
|
2908
2913
|
mList: !0
|
|
2909
|
-
}, t), i = new
|
|
2914
|
+
}, t), i = new as();
|
|
2910
2915
|
if (i.object3d = e, i.pencil = this.pencil, i.lead = this, i.mList = this.mList, s.key)
|
|
2911
2916
|
i.key = s.key;
|
|
2912
2917
|
else if (s.target) {
|
|
2913
2918
|
const r = s.target.key;
|
|
2914
|
-
if (r === "@Scene" && e instanceof
|
|
2919
|
+
if (r === "@Scene" && e instanceof es)
|
|
2915
2920
|
i.key = "@Camera";
|
|
2916
2921
|
else {
|
|
2917
2922
|
const o = this.objectWrapChindIdMap.get(s.target) ? this.objectWrapChindIdMap.get(s.target) + 1 : 0;
|
|
@@ -3045,7 +3050,7 @@ class Qs extends qs {
|
|
|
3045
3050
|
}), this.objects.clear(), this.objectsPm.clear(), this.objMap.clear(), this.objectWrapChindIdMap.clear(), this.objectNamesToFactories.clear();
|
|
3046
3051
|
}
|
|
3047
3052
|
}
|
|
3048
|
-
class
|
|
3053
|
+
class ti extends ee {
|
|
3049
3054
|
get lead() {
|
|
3050
3055
|
return this.controller;
|
|
3051
3056
|
}
|
|
@@ -3053,7 +3058,7 @@ class Js extends ee {
|
|
|
3053
3058
|
super(), this.options = e;
|
|
3054
3059
|
}
|
|
3055
3060
|
addLead(e, t, s) {
|
|
3056
|
-
const { pencil: i } = this.options, r = new
|
|
3061
|
+
const { pencil: i } = this.options, r = new ei(i, {
|
|
3057
3062
|
scene: e,
|
|
3058
3063
|
mList: t
|
|
3059
3064
|
});
|
|
@@ -3075,7 +3080,7 @@ class Js extends ee {
|
|
|
3075
3080
|
});
|
|
3076
3081
|
}
|
|
3077
3082
|
}
|
|
3078
|
-
class
|
|
3083
|
+
class si extends pt {
|
|
3079
3084
|
constructor(e) {
|
|
3080
3085
|
super(e);
|
|
3081
3086
|
}
|
|
@@ -3096,7 +3101,7 @@ class ei extends mt {
|
|
|
3096
3101
|
);
|
|
3097
3102
|
}
|
|
3098
3103
|
}
|
|
3099
|
-
class
|
|
3104
|
+
class ot extends pt {
|
|
3100
3105
|
constructor(e) {
|
|
3101
3106
|
super(e), this.options = { type: "image" };
|
|
3102
3107
|
}
|
|
@@ -3105,7 +3110,7 @@ class rt extends mt {
|
|
|
3105
3110
|
}
|
|
3106
3111
|
load(e, t, s, i) {
|
|
3107
3112
|
let r, o;
|
|
3108
|
-
this.options.type === "image" ? (o = document.createElement("img"), r = new fe(o)) : this.options.type === "video" ? (o = document.createElement("video"), o.preload = "auto", o.autoplay = !1, o.loop = !1, o.muted = !0, o.setAttribute("webkit-playsinline", "webkit-playsinline"), o.setAttribute("playsinline", ""), r = new
|
|
3113
|
+
this.options.type === "image" ? (o = document.createElement("img"), r = new fe(o)) : this.options.type === "video" ? (o = document.createElement("video"), o.preload = "auto", o.autoplay = !1, o.loop = !1, o.muted = !0, o.setAttribute("webkit-playsinline", "webkit-playsinline"), o.setAttribute("playsinline", ""), r = new ts(o)) : r = new fe();
|
|
3109
3114
|
const n = new Se(this.manager);
|
|
3110
3115
|
return n.setResponseType("blob"), n.setRequestHeader(this.requestHeader), n.setPath(this.path), n.setWithCredentials(this.withCredentials), n.load(
|
|
3111
3116
|
e,
|
|
@@ -3129,7 +3134,7 @@ class rt extends mt {
|
|
|
3129
3134
|
), r;
|
|
3130
3135
|
}
|
|
3131
3136
|
}
|
|
3132
|
-
const
|
|
3137
|
+
const ii = {
|
|
3133
3138
|
images: ["png", "jpg", "jpeg", "ico", "webp", "avif"],
|
|
3134
3139
|
media: ["mp4", "webm", "ogg"],
|
|
3135
3140
|
gltf: ["gltf", "glb"],
|
|
@@ -3138,12 +3143,12 @@ const ti = {
|
|
|
3138
3143
|
exr: ["exr"],
|
|
3139
3144
|
lottie: ["lottie.json"]
|
|
3140
3145
|
};
|
|
3141
|
-
class
|
|
3146
|
+
class ri {
|
|
3142
3147
|
constructor(e) {
|
|
3143
3148
|
this.loadObj = [], this.delLoadArr = [], this.assets = /* @__PURE__ */ new Map(), this.event = new ye.EventEmitter(), this.options = U({
|
|
3144
3149
|
simpleTexture4deleted: !1,
|
|
3145
3150
|
prefix: ""
|
|
3146
|
-
}, e), this.loadingManager = new
|
|
3151
|
+
}, e), this.loadingManager = new ss(
|
|
3147
3152
|
() => {
|
|
3148
3153
|
},
|
|
3149
3154
|
(t, s, i) => {
|
|
@@ -3181,27 +3186,27 @@ class si {
|
|
|
3181
3186
|
if (e.endsWith("json.gzip"))
|
|
3182
3187
|
return "gzipJson";
|
|
3183
3188
|
} else return;
|
|
3184
|
-
for (const [i, r] of Object.entries(
|
|
3189
|
+
for (const [i, r] of Object.entries(ii))
|
|
3185
3190
|
if (r.includes(t))
|
|
3186
3191
|
return i;
|
|
3187
3192
|
}
|
|
3188
3193
|
getLoader(e, t) {
|
|
3189
3194
|
if (e === "images")
|
|
3190
|
-
return this.textureLoader || (this.textureLoader = new
|
|
3195
|
+
return this.textureLoader || (this.textureLoader = new ot(this.loadingManager), this.options.prefix && this.textureLoader.setPath(this.options.prefix)), this.textureLoader;
|
|
3191
3196
|
if (e === "media")
|
|
3192
|
-
return this.videoTextureLoader || (this.videoTextureLoader = new
|
|
3197
|
+
return this.videoTextureLoader || (this.videoTextureLoader = new ot(this.loadingManager), this.videoTextureLoader.setOptions({ type: "video" }), this.options.prefix && this.videoTextureLoader.setPath(this.options.prefix)), this.videoTextureLoader;
|
|
3193
3198
|
if (e === "gltf" && (t != null && t.dracoPath))
|
|
3194
|
-
return this.dracoGltfLoader || (this.dracoGltfLoader = new He(this.loadingManager), this.dracoLoader = new
|
|
3199
|
+
return this.dracoGltfLoader || (this.dracoGltfLoader = new He(this.loadingManager), this.dracoLoader = new _s(), this.dracoLoader.setDecoderPath(t == null ? void 0 : t.dracoPath), this.dracoGltfLoader.setDRACOLoader(this.dracoLoader), this.options.prefix && this.dracoGltfLoader.setPath(this.options.prefix)), this.dracoGltfLoader;
|
|
3195
3200
|
if (e === "gltf")
|
|
3196
3201
|
return this.gltfLoader || (this.gltfLoader = new He(this.loadingManager), this.options.prefix && this.gltfLoader.setPath(this.options.prefix)), this.gltfLoader;
|
|
3197
3202
|
if (e === "lottie")
|
|
3198
|
-
return this.lottieLoader || (this.lottieLoader = new
|
|
3203
|
+
return this.lottieLoader || (this.lottieLoader = new ys(this.loadingManager), this.options.prefix && this.lottieLoader.setPath(this.options.prefix)), this.lottieLoader;
|
|
3199
3204
|
if (e === "gzipJson")
|
|
3200
|
-
return this.gzipJsonLoader || (this.gzipJsonLoader = new
|
|
3205
|
+
return this.gzipJsonLoader || (this.gzipJsonLoader = new si(this.loadingManager), this.options.prefix && this.gzipJsonLoader.setPath(this.options.prefix)), this.gzipJsonLoader;
|
|
3201
3206
|
if (e === "json")
|
|
3202
3207
|
return this.jsonLoader || (this.jsonLoader = new Se(this.loadingManager), this.jsonLoader.setResponseType("json"), this.options.prefix && this.jsonLoader.setPath(this.options.prefix)), this.jsonLoader;
|
|
3203
3208
|
if (e === "exr")
|
|
3204
|
-
return this.exrLoader || (this.exrLoader = new
|
|
3209
|
+
return this.exrLoader || (this.exrLoader = new gs(this.loadingManager), this.options.prefix && this.exrLoader.setPath(this.options.prefix)), this.exrLoader;
|
|
3205
3210
|
}
|
|
3206
3211
|
add(e, t) {
|
|
3207
3212
|
typeof e == "string" && (e = [e]), e.forEach((s) => {
|
|
@@ -3220,7 +3225,7 @@ class si {
|
|
|
3220
3225
|
get textureAssets() {
|
|
3221
3226
|
const e = /* @__PURE__ */ new Map();
|
|
3222
3227
|
return this.assets.forEach((t, s) => {
|
|
3223
|
-
(t instanceof fe || t instanceof
|
|
3228
|
+
(t instanceof fe || t instanceof is || t.isVideoTexture) && e.set(s, t);
|
|
3224
3229
|
}), e;
|
|
3225
3230
|
}
|
|
3226
3231
|
loadAll() {
|
|
@@ -3237,7 +3242,7 @@ class si {
|
|
|
3237
3242
|
const s = (n = t == null ? void 0 : t.type) != null ? n : this.getAssetType(e);
|
|
3238
3243
|
if (!s)
|
|
3239
3244
|
return;
|
|
3240
|
-
const i = (t == null ? void 0 : t.cache) !== !1, r =
|
|
3245
|
+
const i = (t == null ? void 0 : t.cache) !== !1, r = fs();
|
|
3241
3246
|
if (i) {
|
|
3242
3247
|
if (this.assets.has(e))
|
|
3243
3248
|
return this.assets.get(e);
|
|
@@ -3290,10 +3295,10 @@ class si {
|
|
|
3290
3295
|
this.assets.clear(), (e = this.dracoLoader) == null || e.dispose(), this.event.removeAllListeners(), this.delLoadArr.length = 0, this.loadObj.length = 0;
|
|
3291
3296
|
}
|
|
3292
3297
|
}
|
|
3293
|
-
const
|
|
3298
|
+
const oi = {
|
|
3294
3299
|
prefix: ""
|
|
3295
3300
|
};
|
|
3296
|
-
class
|
|
3301
|
+
class ni extends ee {
|
|
3297
3302
|
get loader() {
|
|
3298
3303
|
return this.controller;
|
|
3299
3304
|
}
|
|
@@ -3301,7 +3306,7 @@ class ri extends ee {
|
|
|
3301
3306
|
super(), this.options = e;
|
|
3302
3307
|
}
|
|
3303
3308
|
addLoader(e, t) {
|
|
3304
|
-
const { loaderParams: s } = this.options, i = new
|
|
3309
|
+
const { loaderParams: s } = this.options, i = new ri(te(U({}, s), {
|
|
3305
3310
|
scene: e
|
|
3306
3311
|
}));
|
|
3307
3312
|
return this.addController(i, t);
|
|
@@ -3312,7 +3317,7 @@ class ri extends ee {
|
|
|
3312
3317
|
});
|
|
3313
3318
|
}
|
|
3314
3319
|
}
|
|
3315
|
-
class
|
|
3320
|
+
class ai {
|
|
3316
3321
|
constructor(e) {
|
|
3317
3322
|
this.materials = /* @__PURE__ */ new Map(), this.fixBaseObjects = /* @__PURE__ */ new Map(), this.materialBaseObjectMap = /* @__PURE__ */ new Map(), this.pencil = e;
|
|
3318
3323
|
}
|
|
@@ -3491,7 +3496,7 @@ class oi {
|
|
|
3491
3496
|
});
|
|
3492
3497
|
}
|
|
3493
3498
|
applyColorSpaceToMaterials(e) {
|
|
3494
|
-
|
|
3499
|
+
vs({ material: e });
|
|
3495
3500
|
}
|
|
3496
3501
|
material2array(e) {
|
|
3497
3502
|
return Array.isArray(e) ? e : [e];
|
|
@@ -3539,7 +3544,7 @@ class oi {
|
|
|
3539
3544
|
e.track([...this.materials.values()]), e.dispose(), this.materials.clear(), this.fixBaseObjects.clear(), this.materialBaseObjectMap.clear();
|
|
3540
3545
|
}
|
|
3541
3546
|
}
|
|
3542
|
-
class
|
|
3547
|
+
class li extends ee {
|
|
3543
3548
|
get mList() {
|
|
3544
3549
|
return this.controller;
|
|
3545
3550
|
}
|
|
@@ -3547,7 +3552,7 @@ class ni extends ee {
|
|
|
3547
3552
|
super(), this.options = e;
|
|
3548
3553
|
}
|
|
3549
3554
|
addMList(e, t) {
|
|
3550
|
-
const { pencil: s } = this.options, i = new
|
|
3555
|
+
const { pencil: s } = this.options, i = new ai(s);
|
|
3551
3556
|
return this.addController(i, t);
|
|
3552
3557
|
}
|
|
3553
3558
|
removePage(e) {
|
|
@@ -3556,19 +3561,19 @@ class ni extends ee {
|
|
|
3556
3561
|
});
|
|
3557
3562
|
}
|
|
3558
3563
|
}
|
|
3559
|
-
const
|
|
3564
|
+
const hi = {
|
|
3560
3565
|
antialias: !1,
|
|
3561
3566
|
devicePixelRatio: window.devicePixelRatio,
|
|
3562
3567
|
powerPreference: "high-performance",
|
|
3563
3568
|
toneMappingExposure: 1,
|
|
3564
3569
|
alpha: !1,
|
|
3565
|
-
outputColorSpace:
|
|
3570
|
+
outputColorSpace: Cs.sRGB,
|
|
3566
3571
|
logarithmicDepthBuffer: !1,
|
|
3567
3572
|
preserveDrawingBuffer: !1,
|
|
3568
3573
|
stencil: !1,
|
|
3569
3574
|
depth: !1
|
|
3570
3575
|
};
|
|
3571
|
-
class
|
|
3576
|
+
class ci {
|
|
3572
3577
|
constructor(e) {
|
|
3573
3578
|
this.options = e;
|
|
3574
3579
|
const { width: t, height: s, rendererParams: i } = e, {
|
|
@@ -3582,7 +3587,7 @@ class li {
|
|
|
3582
3587
|
preserveDrawingBuffer: v,
|
|
3583
3588
|
stencil: p,
|
|
3584
3589
|
depth: u
|
|
3585
|
-
} = i, g = new
|
|
3590
|
+
} = i, g = new rs({
|
|
3586
3591
|
alpha: r,
|
|
3587
3592
|
antialias: n,
|
|
3588
3593
|
powerPreference: a,
|
|
@@ -3612,10 +3617,10 @@ class li {
|
|
|
3612
3617
|
this.setSize(0, 0), (e = this.renderer) == null || e.clear(), (t = this.renderer) == null || t.dispose(), (s = this.renderer) == null || s.forceContextLoss();
|
|
3613
3618
|
}
|
|
3614
3619
|
}
|
|
3615
|
-
const
|
|
3620
|
+
const di = {
|
|
3616
3621
|
background: null
|
|
3617
3622
|
};
|
|
3618
|
-
class
|
|
3623
|
+
class mi extends ee {
|
|
3619
3624
|
get scene() {
|
|
3620
3625
|
return this.controller;
|
|
3621
3626
|
}
|
|
@@ -3623,7 +3628,7 @@ class ci extends ee {
|
|
|
3623
3628
|
super(), this.options = e;
|
|
3624
3629
|
}
|
|
3625
3630
|
addScene(e, t) {
|
|
3626
|
-
const s = new
|
|
3631
|
+
const s = new mt();
|
|
3627
3632
|
return e != null && e.background && (s.background = e.background), this.addController(s, t);
|
|
3628
3633
|
}
|
|
3629
3634
|
removePage(e) {
|
|
@@ -3638,16 +3643,16 @@ class ci extends ee {
|
|
|
3638
3643
|
});
|
|
3639
3644
|
}
|
|
3640
3645
|
}
|
|
3641
|
-
class
|
|
3646
|
+
class pi {
|
|
3642
3647
|
constructor(e) {
|
|
3643
3648
|
this.event = new ye.EventEmitter();
|
|
3644
|
-
const { renderer: t, scene: s, camera: i } = e, r = new
|
|
3649
|
+
const { renderer: t, scene: s, camera: i } = e, r = new Es(
|
|
3645
3650
|
i,
|
|
3646
3651
|
t.domElement
|
|
3647
3652
|
);
|
|
3648
3653
|
if (r.getHelper) {
|
|
3649
3654
|
const o = r.getHelper();
|
|
3650
|
-
if (s.add(o), +
|
|
3655
|
+
if (s.add(o), +os < 170) {
|
|
3651
3656
|
const n = r._root;
|
|
3652
3657
|
n.dispose = () => {
|
|
3653
3658
|
n.traverse((a) => {
|
|
@@ -3657,7 +3662,7 @@ class di {
|
|
|
3657
3662
|
r.disconnect(), n.dispose();
|
|
3658
3663
|
};
|
|
3659
3664
|
}
|
|
3660
|
-
} else r instanceof
|
|
3665
|
+
} else r instanceof ns && s.add(r);
|
|
3661
3666
|
this.controls = r, this.addEvent();
|
|
3662
3667
|
}
|
|
3663
3668
|
get detach() {
|
|
@@ -3707,11 +3712,11 @@ class di {
|
|
|
3707
3712
|
this.event.removeAllListeners(), (e = this.controls) == null || e.dispose();
|
|
3708
3713
|
}
|
|
3709
3714
|
}
|
|
3710
|
-
const
|
|
3715
|
+
const ui = {
|
|
3711
3716
|
antialias: !0,
|
|
3712
3717
|
devicePixelRatio: window.devicePixelRatio
|
|
3713
3718
|
};
|
|
3714
|
-
class
|
|
3719
|
+
class fi {
|
|
3715
3720
|
constructor(e) {
|
|
3716
3721
|
this.options = e;
|
|
3717
3722
|
const { width: t, height: s, rendererParams: i, renderer: r } = e, { devicePixelRatio: o, antialias: n } = i, a = new r({
|
|
@@ -3730,7 +3735,7 @@ class pi {
|
|
|
3730
3735
|
this.setSize(1, 1), (e = this.renderer) == null || e.clear(), (t = this.renderer) == null || t.dispose();
|
|
3731
3736
|
}
|
|
3732
3737
|
}
|
|
3733
|
-
class
|
|
3738
|
+
class _i {
|
|
3734
3739
|
/**
|
|
3735
3740
|
* Constructs a new timer.
|
|
3736
3741
|
*/
|
|
@@ -3745,7 +3750,7 @@ class ui {
|
|
|
3745
3750
|
* @param {Document} document - The document.
|
|
3746
3751
|
*/
|
|
3747
3752
|
connect(e) {
|
|
3748
|
-
this._document = e, e.hidden !== void 0 && (this._pageVisibilityHandler =
|
|
3753
|
+
this._document = e, e.hidden !== void 0 && (this._pageVisibilityHandler = gi.bind(this), e.addEventListener(
|
|
3749
3754
|
"visibilitychange",
|
|
3750
3755
|
this._pageVisibilityHandler,
|
|
3751
3756
|
!1
|
|
@@ -3823,14 +3828,14 @@ class ui {
|
|
|
3823
3828
|
return this._pageVisibilityHandler !== null && this._document.hidden === !0 ? this._delta = 0 : (this._previousTime = this._currentTime, this._currentTime = (e !== void 0 ? e : performance.now()) - this._startTime, this._delta = (this._currentTime - this._previousTime) * this._timescale, this._elapsed += this._delta), this;
|
|
3824
3829
|
}
|
|
3825
3830
|
}
|
|
3826
|
-
function
|
|
3831
|
+
function gi() {
|
|
3827
3832
|
this._document.hidden === !1 && this.reset();
|
|
3828
3833
|
}
|
|
3829
3834
|
const _e = class _e {
|
|
3830
3835
|
constructor(e) {
|
|
3831
3836
|
var r, o;
|
|
3832
|
-
this.raycaster = new
|
|
3833
|
-
isMergeableObject:
|
|
3837
|
+
this.raycaster = new dt(), this.maxBackufferArea = 5760 * 5760, this.installPlugins = /* @__PURE__ */ new Map(), this._cameraPositon = new I(), this._cameraTarget = new I(), this.event = new ye.EventEmitter(), this.timer = new _i(), this.userData = {}, this.pageActiveIndex = 0, this.pageCountIndex = 0, this.userSetDprCache = 1, this.viewPadding = [0, 0, 0, 0], this._isDispose = !1, this.event.setMaxListeners(1 / 0), (o = (r = this.timer).connect) == null || o.call(r, document), this.options = Ut(_e.options, e, {
|
|
3838
|
+
isMergeableObject: Os
|
|
3834
3839
|
}), this.userSetDprCache = this.options.renderer.devicePixelRatio;
|
|
3835
3840
|
const {
|
|
3836
3841
|
container: t,
|
|
@@ -3838,7 +3843,7 @@ const _e = class _e {
|
|
|
3838
3843
|
transformControls: i
|
|
3839
3844
|
} = this.options;
|
|
3840
3845
|
if (this.init(), this.options.WebGPUTHREE || this.initComposer(), this.initCSSRenderer(), i && this.initTransformControls(), s) {
|
|
3841
|
-
const n = new
|
|
3846
|
+
const n = new zt({
|
|
3842
3847
|
horizontal: !1
|
|
3843
3848
|
});
|
|
3844
3849
|
n.dom.style.position = "absolute", n.init(this.renderer), t.appendChild(n.dom), this.stats = n;
|
|
@@ -3915,13 +3920,13 @@ const _e = class _e {
|
|
|
3915
3920
|
renderer: r,
|
|
3916
3921
|
controls: o,
|
|
3917
3922
|
loader: n
|
|
3918
|
-
} = this.options, { width: a, height: c } = this.getSize(), f = t ? new
|
|
3923
|
+
} = this.options, { width: a, height: c } = this.getSize(), f = t ? new fi({
|
|
3919
3924
|
width: a,
|
|
3920
3925
|
height: c,
|
|
3921
3926
|
//@ts-ignore
|
|
3922
3927
|
renderer: this.options.WebGPURenderer,
|
|
3923
|
-
rendererParams:
|
|
3924
|
-
}) : new
|
|
3928
|
+
rendererParams: ui
|
|
3929
|
+
}) : new ci({
|
|
3925
3930
|
width: a,
|
|
3926
3931
|
height: c,
|
|
3927
3932
|
rendererParams: te(U({}, r), {
|
|
@@ -3929,20 +3934,20 @@ const _e = class _e {
|
|
|
3929
3934
|
})
|
|
3930
3935
|
});
|
|
3931
3936
|
this.rendererController = f;
|
|
3932
|
-
const m = new
|
|
3937
|
+
const m = new Ds({
|
|
3933
3938
|
width: a,
|
|
3934
3939
|
height: c
|
|
3935
|
-
}), v = new
|
|
3940
|
+
}), v = new mi({}), p = new Ws({
|
|
3936
3941
|
controlsParams: {
|
|
3937
3942
|
domElement: (_ = o == null ? void 0 : o.domElement) != null ? _ : f.renderer.domElement
|
|
3938
3943
|
}
|
|
3939
|
-
}), u = new
|
|
3944
|
+
}), u = new ni({
|
|
3940
3945
|
loaderParams: U({
|
|
3941
3946
|
anisotropy: this.maxAnisotropy
|
|
3942
3947
|
}, n)
|
|
3943
|
-
}), g = new
|
|
3948
|
+
}), g = new li({
|
|
3944
3949
|
pencil: this
|
|
3945
|
-
}), y = new
|
|
3950
|
+
}), y = new ti({
|
|
3946
3951
|
pencil: this
|
|
3947
3952
|
});
|
|
3948
3953
|
this.sceneController = v, this.cameraController = m, this.controlsController = p, this.loaderController = u, this.mListController = g, this.leadController = y;
|
|
@@ -3951,7 +3956,7 @@ const _e = class _e {
|
|
|
3951
3956
|
cameraOptions: this.options.camera
|
|
3952
3957
|
});
|
|
3953
3958
|
if (this.showPage(l), s) {
|
|
3954
|
-
const O = new
|
|
3959
|
+
const O = new Qs({
|
|
3955
3960
|
container: e,
|
|
3956
3961
|
sceneController: v,
|
|
3957
3962
|
cameraController: m
|
|
@@ -3967,7 +3972,7 @@ const _e = class _e {
|
|
|
3967
3972
|
ssao: s,
|
|
3968
3973
|
ssaoParams: i,
|
|
3969
3974
|
composer: r
|
|
3970
|
-
} = this.options, o = new
|
|
3975
|
+
} = this.options, o = new Zs({
|
|
3971
3976
|
rendererController: this.rendererController,
|
|
3972
3977
|
sceneController: this.sceneController,
|
|
3973
3978
|
cameraController: this.cameraController,
|
|
@@ -3984,12 +3989,12 @@ const _e = class _e {
|
|
|
3984
3989
|
css3DRendererParams: r
|
|
3985
3990
|
} = this.options;
|
|
3986
3991
|
if (t || s) {
|
|
3987
|
-
const o = new
|
|
3992
|
+
const o = new qs(e);
|
|
3988
3993
|
t && o.addRenderer("css2d", i), s && o.addRenderer("css3d", r), this.cssRendererController = o;
|
|
3989
3994
|
}
|
|
3990
3995
|
}
|
|
3991
3996
|
initTransformControls() {
|
|
3992
|
-
const e = new
|
|
3997
|
+
const e = new pi({
|
|
3993
3998
|
camera: this.camera,
|
|
3994
3999
|
renderer: this.renderer,
|
|
3995
4000
|
scene: this.scene
|
|
@@ -4140,26 +4145,26 @@ _e.options = {
|
|
|
4140
4145
|
viewHelper: he,
|
|
4141
4146
|
controls: !0,
|
|
4142
4147
|
transformControls: he,
|
|
4143
|
-
renderer:
|
|
4144
|
-
composer:
|
|
4145
|
-
scene:
|
|
4146
|
-
camera:
|
|
4148
|
+
renderer: hi,
|
|
4149
|
+
composer: Ys,
|
|
4150
|
+
scene: di,
|
|
4151
|
+
camera: bt,
|
|
4147
4152
|
bloom: !1,
|
|
4148
|
-
bloomParams:
|
|
4153
|
+
bloomParams: Vs,
|
|
4149
4154
|
ssao: !1,
|
|
4150
|
-
loader:
|
|
4151
|
-
ssaoParams:
|
|
4155
|
+
loader: oi,
|
|
4156
|
+
ssaoParams: Bs,
|
|
4152
4157
|
css2DRenderer: !1,
|
|
4153
|
-
css2DRendererParams: U({},
|
|
4158
|
+
css2DRendererParams: U({}, it),
|
|
4154
4159
|
css3DRenderer: !1,
|
|
4155
|
-
css3DRendererParams: U({},
|
|
4160
|
+
css3DRendererParams: U({}, it)
|
|
4156
4161
|
};
|
|
4157
|
-
let
|
|
4158
|
-
const
|
|
4162
|
+
let nt = _e;
|
|
4163
|
+
const qi = J.ACTION;
|
|
4159
4164
|
export {
|
|
4160
|
-
|
|
4161
|
-
|
|
4165
|
+
as as BaseObject,
|
|
4166
|
+
nt as Pencil,
|
|
4162
4167
|
Pe as ResourceTracker,
|
|
4163
|
-
|
|
4164
|
-
|
|
4168
|
+
qi as cameraControlsAction,
|
|
4169
|
+
nt as default
|
|
4165
4170
|
};
|