vis-core 0.28.0-beta.3 → 0.28.0-beta.4
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/editor/command/Commands.d.ts +1 -0
- package/dist/editor/command/SetObjectMaterialType.d.ts +14 -0
- package/dist/editor/index.d.ts +1 -0
- package/dist/editor/viewport.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -8
- package/dist/index.module.js +322 -275
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.module.js
CHANGED
|
@@ -12,7 +12,7 @@ var Gn = (m, t) => (t = Symbol[m]) ? t : Symbol.for("Symbol." + m), An = (m) =>
|
|
|
12
12
|
kn.call(t, r) && Zn(m, r, t[r]);
|
|
13
13
|
return m;
|
|
14
14
|
}, Ui = (m, t) => In(m, zn(t));
|
|
15
|
-
var
|
|
15
|
+
var _0 = (m, t, r) => Zn(m, typeof t != "symbol" ? t + "" : t, r);
|
|
16
16
|
var fn = (m, t, r) => Kn(Nn(m), r, t);
|
|
17
17
|
var U0 = (m, t, r) => new Promise((d, g) => {
|
|
18
18
|
var v = (I) => {
|
|
@@ -88,7 +88,7 @@ const publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRz
|
|
|
88
88
|
).toString(CryptoJS.enc.Utf8), Pe = JSON.parse(Se), Ne = Date.now();
|
|
89
89
|
return !Pe.s || Pe.s > Ne ? (this.token = void 0, "") : Pe.e && Pe.e < Ne ? (this.token = void 0, "") : (Pe.isValid = O, Pe);
|
|
90
90
|
}
|
|
91
|
-
}, version = "0.28.0-beta.
|
|
91
|
+
}, version = "0.28.0-beta.4";
|
|
92
92
|
/**
|
|
93
93
|
* @license
|
|
94
94
|
* Copyright 2010-2025 Three.js Authors
|
|
@@ -30955,8 +30955,8 @@ class WebGLRenderer {
|
|
|
30955
30955
|
m0 = M0 === RGBAIntegerFormat || M0 === RGIntegerFormat || M0 === RedIntegerFormat;
|
|
30956
30956
|
}
|
|
30957
30957
|
if (m0) {
|
|
30958
|
-
const M0 = Pt.texture.type,
|
|
30959
|
-
|
|
30958
|
+
const M0 = Pt.texture.type, R0 = M0 === UnsignedByteType || M0 === UnsignedIntType || M0 === UnsignedShortType || M0 === UnsignedInt248Type || M0 === UnsignedShort4444Type || M0 === UnsignedShort5551Type, V0 = wi.getClearColor(), H0 = wi.getClearAlpha(), $0 = V0.r, Q0 = V0.g, yi = V0.b;
|
|
30959
|
+
R0 ? (ke[0] = $0, ke[1] = Q0, ke[2] = yi, ke[3] = H0, h0.clearBufferuiv(h0.COLOR, 0, ke)) : (ht[0] = $0, ht[1] = Q0, ht[2] = yi, ht[3] = H0, h0.clearBufferiv(h0.COLOR, 0, ht));
|
|
30960
30960
|
} else
|
|
30961
30961
|
S0 |= h0.COLOR_BUFFER_BIT;
|
|
30962
30962
|
}
|
|
@@ -30996,8 +30996,8 @@ class WebGLRenderer {
|
|
|
30996
30996
|
}
|
|
30997
30997
|
this.renderBufferDirect = function(t0, d0, u0, S0, m0, M0) {
|
|
30998
30998
|
d0 === null && (d0 = Fi);
|
|
30999
|
-
const
|
|
31000
|
-
A0.setMaterial(S0,
|
|
30999
|
+
const R0 = m0.isMesh && m0.matrixWorld.determinant() < 0, V0 = _n(t0, d0, u0, S0, m0);
|
|
31000
|
+
A0.setMaterial(S0, R0);
|
|
31001
31001
|
let H0 = u0.index, $0 = 1;
|
|
31002
31002
|
if (S0.wireframe === !0) {
|
|
31003
31003
|
if (H0 = E0.getWireframeAttribute(u0), H0 === void 0) return;
|
|
@@ -31050,8 +31050,8 @@ class WebGLRenderer {
|
|
|
31050
31050
|
const M0 = m0.material;
|
|
31051
31051
|
if (M0)
|
|
31052
31052
|
if (Array.isArray(M0))
|
|
31053
|
-
for (let
|
|
31054
|
-
const V0 = M0[
|
|
31053
|
+
for (let R0 = 0; R0 < M0.length; R0++) {
|
|
31054
|
+
const V0 = M0[R0];
|
|
31055
31055
|
ji(V0, u0, m0), S0.add(V0);
|
|
31056
31056
|
}
|
|
31057
31057
|
else
|
|
@@ -31061,8 +31061,8 @@ class WebGLRenderer {
|
|
|
31061
31061
|
const S0 = this.compile(t0, d0, u0);
|
|
31062
31062
|
return new Promise((m0) => {
|
|
31063
31063
|
function M0() {
|
|
31064
|
-
if (S0.forEach(function(
|
|
31065
|
-
C0.get(
|
|
31064
|
+
if (S0.forEach(function(R0) {
|
|
31065
|
+
C0.get(R0).currentProgram.isReady() && S0.delete(R0);
|
|
31066
31066
|
}), S0.size === 0) {
|
|
31067
31067
|
m0(t0);
|
|
31068
31068
|
return;
|
|
@@ -31102,13 +31102,13 @@ class WebGLRenderer {
|
|
|
31102
31102
|
if (Fe.setupLights(), d0.isArrayCamera) {
|
|
31103
31103
|
const M0 = d0.cameras;
|
|
31104
31104
|
if (m0.length > 0)
|
|
31105
|
-
for (let
|
|
31106
|
-
const H0 = M0[
|
|
31105
|
+
for (let R0 = 0, V0 = M0.length; R0 < V0; R0++) {
|
|
31106
|
+
const H0 = M0[R0];
|
|
31107
31107
|
Tn(S0, m0, t0, H0);
|
|
31108
31108
|
}
|
|
31109
31109
|
Ni && wi.render(t0);
|
|
31110
|
-
for (let
|
|
31111
|
-
const H0 = M0[
|
|
31110
|
+
for (let R0 = 0, V0 = M0.length; R0 < V0; R0++) {
|
|
31111
|
+
const H0 = M0[R0];
|
|
31112
31112
|
xn(He, t0, H0, H0.viewport);
|
|
31113
31113
|
}
|
|
31114
31114
|
} else
|
|
@@ -31127,27 +31127,27 @@ class WebGLRenderer {
|
|
|
31127
31127
|
else if (t0.isSprite) {
|
|
31128
31128
|
if (!t0.frustumCulled || G0.intersectsSprite(t0)) {
|
|
31129
31129
|
S0 && Mi.setFromMatrixPosition(t0.matrixWorld).applyMatrix4(Si);
|
|
31130
|
-
const
|
|
31131
|
-
V0.visible && He.push(t0,
|
|
31130
|
+
const R0 = w0.update(t0), V0 = t0.material;
|
|
31131
|
+
V0.visible && He.push(t0, R0, V0, u0, Mi.z, null);
|
|
31132
31132
|
}
|
|
31133
31133
|
} else if ((t0.isMesh || t0.isLine || t0.isPoints) && (!t0.frustumCulled || G0.intersectsObject(t0))) {
|
|
31134
|
-
const
|
|
31135
|
-
if (S0 && (t0.boundingSphere !== void 0 ? (t0.boundingSphere === null && t0.computeBoundingSphere(), Mi.copy(t0.boundingSphere.center)) : (
|
|
31136
|
-
const H0 =
|
|
31134
|
+
const R0 = w0.update(t0), V0 = t0.material;
|
|
31135
|
+
if (S0 && (t0.boundingSphere !== void 0 ? (t0.boundingSphere === null && t0.computeBoundingSphere(), Mi.copy(t0.boundingSphere.center)) : (R0.boundingSphere === null && R0.computeBoundingSphere(), Mi.copy(R0.boundingSphere.center)), Mi.applyMatrix4(t0.matrixWorld).applyMatrix4(Si)), Array.isArray(V0)) {
|
|
31136
|
+
const H0 = R0.groups;
|
|
31137
31137
|
for (let $0 = 0, Q0 = H0.length; $0 < Q0; $0++) {
|
|
31138
31138
|
const yi = H0[$0], gi = V0[yi.materialIndex];
|
|
31139
|
-
gi && gi.visible && He.push(t0,
|
|
31139
|
+
gi && gi.visible && He.push(t0, R0, gi, u0, Mi.z, yi);
|
|
31140
31140
|
}
|
|
31141
|
-
} else V0.visible && He.push(t0,
|
|
31141
|
+
} else V0.visible && He.push(t0, R0, V0, u0, Mi.z, null);
|
|
31142
31142
|
}
|
|
31143
31143
|
}
|
|
31144
31144
|
const M0 = t0.children;
|
|
31145
|
-
for (let
|
|
31146
|
-
gn(M0[
|
|
31145
|
+
for (let R0 = 0, V0 = M0.length; R0 < V0; R0++)
|
|
31146
|
+
gn(M0[R0], d0, u0, S0);
|
|
31147
31147
|
}
|
|
31148
31148
|
function xn(t0, d0, u0, S0) {
|
|
31149
|
-
const m0 = t0.opaque, M0 = t0.transmissive,
|
|
31150
|
-
Fe.setupLightsView(u0), I0 === !0 && j0.setGlobalState(xt.clippingPlanes, u0), S0 && A0.viewport(Kt.copy(S0)), m0.length > 0 && pn(m0, d0, u0), M0.length > 0 && pn(M0, d0, u0),
|
|
31149
|
+
const m0 = t0.opaque, M0 = t0.transmissive, R0 = t0.transparent;
|
|
31150
|
+
Fe.setupLightsView(u0), I0 === !0 && j0.setGlobalState(xt.clippingPlanes, u0), S0 && A0.viewport(Kt.copy(S0)), m0.length > 0 && pn(m0, d0, u0), M0.length > 0 && pn(M0, d0, u0), R0.length > 0 && pn(R0, d0, u0), A0.buffers.depth.setTest(!0), A0.buffers.depth.setMask(!0), A0.buffers.color.setMask(!0), A0.setPolygonOffset(!1);
|
|
31151
31151
|
}
|
|
31152
31152
|
function Tn(t0, d0, u0, S0) {
|
|
31153
31153
|
if ((u0.isScene === !0 ? u0.overrideMaterial : null) !== null)
|
|
@@ -31162,8 +31162,8 @@ class WebGLRenderer {
|
|
|
31162
31162
|
resolveStencilBuffer: !1,
|
|
31163
31163
|
colorSpace: ColorManagement.workingColorSpace
|
|
31164
31164
|
}));
|
|
31165
|
-
const M0 = Fe.state.transmissionRenderTarget[S0.id],
|
|
31166
|
-
M0.setSize(
|
|
31165
|
+
const M0 = Fe.state.transmissionRenderTarget[S0.id], R0 = S0.viewport || Kt;
|
|
31166
|
+
M0.setSize(R0.z * xt.transmissionResolutionScale, R0.w * xt.transmissionResolutionScale);
|
|
31167
31167
|
const V0 = xt.getRenderTarget();
|
|
31168
31168
|
xt.setRenderTarget(M0), xt.getClearColor(l0), n0 = xt.getClearAlpha(), n0 < 1 && xt.setClearColor(16777215, 0.5), xt.clear(), Ni && wi.render(u0);
|
|
31169
31169
|
const H0 = xt.toneMapping;
|
|
@@ -31185,8 +31185,8 @@ class WebGLRenderer {
|
|
|
31185
31185
|
function pn(t0, d0, u0) {
|
|
31186
31186
|
const S0 = d0.isScene === !0 ? d0.overrideMaterial : null;
|
|
31187
31187
|
for (let m0 = 0, M0 = t0.length; m0 < M0; m0++) {
|
|
31188
|
-
const
|
|
31189
|
-
let Q0 =
|
|
31188
|
+
const R0 = t0[m0], V0 = R0.object, H0 = R0.geometry, $0 = R0.group;
|
|
31189
|
+
let Q0 = R0.material;
|
|
31190
31190
|
Q0.allowOverride === !0 && S0 !== null && (Q0 = S0), V0.layers.test(u0.layers) && Cn(V0, d0, u0, H0, Q0, $0);
|
|
31191
31191
|
}
|
|
31192
31192
|
}
|
|
@@ -31195,17 +31195,17 @@ class WebGLRenderer {
|
|
|
31195
31195
|
}
|
|
31196
31196
|
function mn(t0, d0, u0) {
|
|
31197
31197
|
d0.isScene !== !0 && (d0 = Fi);
|
|
31198
|
-
const S0 = C0.get(t0), m0 = Fe.state.lights, M0 = Fe.state.shadowsArray,
|
|
31198
|
+
const S0 = C0.get(t0), m0 = Fe.state.lights, M0 = Fe.state.shadowsArray, R0 = m0.state.version, V0 = vi.getParameters(t0, m0.state, M0, d0, u0), H0 = vi.getProgramCacheKey(V0);
|
|
31199
31199
|
let $0 = S0.programs;
|
|
31200
31200
|
S0.environment = t0.isMeshStandardMaterial ? d0.environment : null, S0.fog = d0.fog, S0.envMap = (t0.isMeshStandardMaterial ? v0 : s0).get(t0.envMap || S0.environment), S0.envMapRotation = S0.environment !== null && t0.envMap === null ? d0.environmentRotation : t0.envMapRotation, $0 === void 0 && (t0.addEventListener("dispose", Bi), $0 = /* @__PURE__ */ new Map(), S0.programs = $0);
|
|
31201
31201
|
let Q0 = $0.get(H0);
|
|
31202
31202
|
if (Q0 !== void 0) {
|
|
31203
|
-
if (S0.currentProgram === Q0 && S0.lightsStateVersion ===
|
|
31203
|
+
if (S0.currentProgram === Q0 && S0.lightsStateVersion === R0)
|
|
31204
31204
|
return vn(t0, V0), Q0;
|
|
31205
31205
|
} else
|
|
31206
31206
|
V0.uniforms = vi.getUniforms(t0), t0.onBeforeCompile(V0, xt), Q0 = vi.acquireProgram(V0, H0), $0.set(H0, Q0), S0.uniforms = V0.uniforms;
|
|
31207
31207
|
const yi = S0.uniforms;
|
|
31208
|
-
return (!t0.isShaderMaterial && !t0.isRawShaderMaterial || t0.clipping === !0) && (yi.clippingPlanes = j0.uniform), vn(t0, V0), S0.needsLights = hn(t0), S0.lightsStateVersion =
|
|
31208
|
+
return (!t0.isShaderMaterial && !t0.isRawShaderMaterial || t0.clipping === !0) && (yi.clippingPlanes = j0.uniform), vn(t0, V0), S0.needsLights = hn(t0), S0.lightsStateVersion = R0, S0.needsLights && (yi.ambientLightColor.value = m0.state.ambient, yi.lightProbe.value = m0.state.probe, yi.directionalLights.value = m0.state.directional, yi.directionalLightShadows.value = m0.state.directionalShadow, yi.spotLights.value = m0.state.spot, yi.spotLightShadows.value = m0.state.spotShadow, yi.rectAreaLights.value = m0.state.rectArea, yi.ltc_1.value = m0.state.rectAreaLTC1, yi.ltc_2.value = m0.state.rectAreaLTC2, yi.pointLights.value = m0.state.point, yi.pointLightShadows.value = m0.state.pointShadow, yi.hemisphereLights.value = m0.state.hemi, yi.directionalShadowMap.value = m0.state.directionalShadowMap, yi.directionalShadowMatrix.value = m0.state.directionalShadowMatrix, yi.spotShadowMap.value = m0.state.spotShadowMap, yi.spotLightMatrix.value = m0.state.spotLightMatrix, yi.spotLightMap.value = m0.state.spotLightMap, yi.pointShadowMap.value = m0.state.pointShadowMap, yi.pointShadowMatrix.value = m0.state.pointShadowMatrix), S0.currentProgram = Q0, S0.uniformsList = null, Q0;
|
|
31209
31209
|
}
|
|
31210
31210
|
function Sn(t0) {
|
|
31211
31211
|
if (t0.uniformsList === null) {
|
|
@@ -31220,7 +31220,7 @@ class WebGLRenderer {
|
|
|
31220
31220
|
}
|
|
31221
31221
|
function _n(t0, d0, u0, S0, m0) {
|
|
31222
31222
|
d0.isScene !== !0 && (d0 = Fi), a0.resetTextureUnits();
|
|
31223
|
-
const M0 = d0.fog,
|
|
31223
|
+
const M0 = d0.fog, R0 = S0.isMeshStandardMaterial ? d0.environment : null, V0 = Pt === null ? xt.outputColorSpace : Pt.isXRRenderTarget === !0 ? Pt.texture.colorSpace : LinearSRGBColorSpace, H0 = (S0.isMeshStandardMaterial ? v0 : s0).get(S0.envMap || R0), $0 = S0.vertexColors === !0 && !!u0.attributes.color && u0.attributes.color.itemSize === 4, Q0 = !!u0.attributes.tangent && (!!S0.normalMap || S0.anisotropy > 0), yi = !!u0.morphAttributes.position, gi = !!u0.morphAttributes.normal, Li = !!u0.morphAttributes.color;
|
|
31224
31224
|
let Wi = NoToneMapping;
|
|
31225
31225
|
S0.toneMapped && (Pt === null || Pt.isXRRenderTarget === !0) && (Wi = xt.toneMapping);
|
|
31226
31226
|
const Ai = u0.morphAttributes.position || u0.morphAttributes.normal || u0.morphAttributes.color, ki = Ai !== void 0 ? Ai.length : 0, Vi = C0.get(S0), Di = Fe.state.lights;
|
|
@@ -31281,7 +31281,7 @@ class WebGLRenderer {
|
|
|
31281
31281
|
const qt = h0.createFramebuffer();
|
|
31282
31282
|
this.setRenderTarget = function(t0, d0 = 0, u0 = 0) {
|
|
31283
31283
|
Pt = t0, Lt = d0, Wt = u0;
|
|
31284
|
-
let S0 = !0, m0 = null, M0 = !1,
|
|
31284
|
+
let S0 = !0, m0 = null, M0 = !1, R0 = !1;
|
|
31285
31285
|
if (t0) {
|
|
31286
31286
|
const H0 = C0.get(t0);
|
|
31287
31287
|
if (H0.__useDefaultFramebuffer !== void 0)
|
|
@@ -31299,7 +31299,7 @@ class WebGLRenderer {
|
|
|
31299
31299
|
}
|
|
31300
31300
|
}
|
|
31301
31301
|
const $0 = t0.texture;
|
|
31302
|
-
($0.isData3DTexture || $0.isDataArrayTexture || $0.isCompressedArrayTexture) && (
|
|
31302
|
+
($0.isData3DTexture || $0.isDataArrayTexture || $0.isCompressedArrayTexture) && (R0 = !0);
|
|
31303
31303
|
const Q0 = C0.get(t0).__webglFramebuffer;
|
|
31304
31304
|
t0.isWebGLCubeRenderTarget ? (Array.isArray(Q0[d0]) ? m0 = Q0[d0][u0] : m0 = Q0[d0], M0 = !0) : t0.samples > 0 && a0.useMultisampledRTT(t0) === !1 ? m0 = C0.get(t0).__webglMultisampledFramebuffer : Array.isArray(Q0) ? m0 = Q0[u0] : m0 = Q0, Kt.copy(t0.viewport), i0.copy(t0.scissor), r0 = t0.scissorTest;
|
|
31305
31305
|
} else
|
|
@@ -31307,7 +31307,7 @@ class WebGLRenderer {
|
|
|
31307
31307
|
if (u0 !== 0 && (m0 = qt), A0.bindFramebuffer(h0.FRAMEBUFFER, m0) && S0 && A0.drawBuffers(t0, m0), A0.viewport(Kt), A0.scissor(i0), A0.setScissorTest(r0), M0) {
|
|
31308
31308
|
const H0 = C0.get(t0.texture);
|
|
31309
31309
|
h0.framebufferTexture2D(h0.FRAMEBUFFER, h0.COLOR_ATTACHMENT0, h0.TEXTURE_CUBE_MAP_POSITIVE_X + d0, H0.__webglTexture, u0);
|
|
31310
|
-
} else if (
|
|
31310
|
+
} else if (R0) {
|
|
31311
31311
|
const H0 = C0.get(t0.texture), $0 = d0;
|
|
31312
31312
|
h0.framebufferTextureLayer(h0.FRAMEBUFFER, h0.COLOR_ATTACHMENT0, H0.__webglTexture, u0, $0);
|
|
31313
31313
|
} else if (t0 !== null && u0 !== 0) {
|
|
@@ -31315,13 +31315,13 @@ class WebGLRenderer {
|
|
|
31315
31315
|
h0.framebufferTexture2D(h0.FRAMEBUFFER, h0.COLOR_ATTACHMENT0, h0.TEXTURE_2D, H0.__webglTexture, u0);
|
|
31316
31316
|
}
|
|
31317
31317
|
Ft = -1;
|
|
31318
|
-
}, this.readRenderTargetPixels = function(t0, d0, u0, S0, m0, M0,
|
|
31318
|
+
}, this.readRenderTargetPixels = function(t0, d0, u0, S0, m0, M0, R0) {
|
|
31319
31319
|
if (!(t0 && t0.isWebGLRenderTarget)) {
|
|
31320
31320
|
console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");
|
|
31321
31321
|
return;
|
|
31322
31322
|
}
|
|
31323
31323
|
let V0 = C0.get(t0).__webglFramebuffer;
|
|
31324
|
-
if (t0.isWebGLCubeRenderTarget &&
|
|
31324
|
+
if (t0.isWebGLCubeRenderTarget && R0 !== void 0 && (V0 = V0[R0]), V0) {
|
|
31325
31325
|
A0.bindFramebuffer(h0.FRAMEBUFFER, V0);
|
|
31326
31326
|
try {
|
|
31327
31327
|
const H0 = t0.texture, $0 = H0.format, Q0 = H0.type;
|
|
@@ -31339,12 +31339,12 @@ class WebGLRenderer {
|
|
|
31339
31339
|
A0.bindFramebuffer(h0.FRAMEBUFFER, H0);
|
|
31340
31340
|
}
|
|
31341
31341
|
}
|
|
31342
|
-
}, this.readRenderTargetPixelsAsync = function(t0, d0, u0, S0, m0, M0,
|
|
31342
|
+
}, this.readRenderTargetPixelsAsync = function(t0, d0, u0, S0, m0, M0, R0) {
|
|
31343
31343
|
return U0(this, null, function* () {
|
|
31344
31344
|
if (!(t0 && t0.isWebGLRenderTarget))
|
|
31345
31345
|
throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");
|
|
31346
31346
|
let V0 = C0.get(t0).__webglFramebuffer;
|
|
31347
|
-
if (t0.isWebGLCubeRenderTarget &&
|
|
31347
|
+
if (t0.isWebGLCubeRenderTarget && R0 !== void 0 && (V0 = V0[R0]), V0)
|
|
31348
31348
|
if (d0 >= 0 && d0 <= t0.width - S0 && u0 >= 0 && u0 <= t0.height - m0) {
|
|
31349
31349
|
A0.bindFramebuffer(h0.FRAMEBUFFER, V0);
|
|
31350
31350
|
const H0 = t0.texture, $0 = H0.format, Q0 = H0.type;
|
|
@@ -31362,19 +31362,19 @@ class WebGLRenderer {
|
|
|
31362
31362
|
throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.");
|
|
31363
31363
|
});
|
|
31364
31364
|
}, this.copyFramebufferToTexture = function(t0, d0 = null, u0 = 0) {
|
|
31365
|
-
const S0 = Math.pow(2, -u0), m0 = Math.floor(t0.image.width * S0), M0 = Math.floor(t0.image.height * S0),
|
|
31366
|
-
a0.setTexture2D(t0, 0), h0.copyTexSubImage2D(h0.TEXTURE_2D, u0, 0, 0,
|
|
31365
|
+
const S0 = Math.pow(2, -u0), m0 = Math.floor(t0.image.width * S0), M0 = Math.floor(t0.image.height * S0), R0 = d0 !== null ? d0.x : 0, V0 = d0 !== null ? d0.y : 0;
|
|
31366
|
+
a0.setTexture2D(t0, 0), h0.copyTexSubImage2D(h0.TEXTURE_2D, u0, 0, 0, R0, V0, m0, M0), A0.unbindTexture();
|
|
31367
31367
|
};
|
|
31368
31368
|
const c0 = h0.createFramebuffer(), g0 = h0.createFramebuffer();
|
|
31369
31369
|
this.copyTextureToTexture = function(t0, d0, u0 = null, S0 = null, m0 = 0, M0 = null) {
|
|
31370
31370
|
M0 === null && (m0 !== 0 ? (warnOnce("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."), M0 = m0, m0 = 0) : M0 = 0);
|
|
31371
|
-
let
|
|
31371
|
+
let R0, V0, H0, $0, Q0, yi, gi, Li, Wi;
|
|
31372
31372
|
const Ai = t0.isCompressedTexture ? t0.mipmaps[M0] : t0.image;
|
|
31373
31373
|
if (u0 !== null)
|
|
31374
|
-
|
|
31374
|
+
R0 = u0.max.x - u0.min.x, V0 = u0.max.y - u0.min.y, H0 = u0.isBox3 ? u0.max.z - u0.min.z : 1, $0 = u0.min.x, Q0 = u0.min.y, yi = u0.isBox3 ? u0.min.z : 0;
|
|
31375
31375
|
else {
|
|
31376
31376
|
const rn = Math.pow(2, -m0);
|
|
31377
|
-
|
|
31377
|
+
R0 = Math.floor(Ai.width * rn), V0 = Math.floor(Ai.height * rn), t0.isDataArrayTexture ? H0 = Ai.depth : t0.isData3DTexture ? H0 = Math.floor(Ai.depth * rn) : H0 = 1, $0 = 0, Q0 = 0, yi = 0;
|
|
31378
31378
|
}
|
|
31379
31379
|
S0 !== null ? (gi = S0.x, Li = S0.y, Wi = S0.z) : (gi = 0, Li = 0, Wi = 0);
|
|
31380
31380
|
const ki = zi.convert(d0.format), Vi = zi.convert(d0.type);
|
|
@@ -31387,16 +31387,16 @@ class WebGLRenderer {
|
|
|
31387
31387
|
const rn = C0.get(t0), $i = C0.get(d0), nn = C0.get(rn.__renderTarget), Rn = C0.get($i.__renderTarget);
|
|
31388
31388
|
A0.bindFramebuffer(h0.READ_FRAMEBUFFER, nn.__webglFramebuffer), A0.bindFramebuffer(h0.DRAW_FRAMEBUFFER, Rn.__webglFramebuffer);
|
|
31389
31389
|
for (let dn = 0; dn < H0; dn++)
|
|
31390
|
-
Hi && (h0.framebufferTextureLayer(h0.READ_FRAMEBUFFER, h0.COLOR_ATTACHMENT0, C0.get(t0).__webglTexture, m0, yi + dn), h0.framebufferTextureLayer(h0.DRAW_FRAMEBUFFER, h0.COLOR_ATTACHMENT0, C0.get(d0).__webglTexture, M0, Wi + dn)), h0.blitFramebuffer($0, Q0,
|
|
31390
|
+
Hi && (h0.framebufferTextureLayer(h0.READ_FRAMEBUFFER, h0.COLOR_ATTACHMENT0, C0.get(t0).__webglTexture, m0, yi + dn), h0.framebufferTextureLayer(h0.DRAW_FRAMEBUFFER, h0.COLOR_ATTACHMENT0, C0.get(d0).__webglTexture, M0, Wi + dn)), h0.blitFramebuffer($0, Q0, R0, V0, gi, Li, R0, V0, h0.DEPTH_BUFFER_BIT, h0.NEAREST);
|
|
31391
31391
|
A0.bindFramebuffer(h0.READ_FRAMEBUFFER, null), A0.bindFramebuffer(h0.DRAW_FRAMEBUFFER, null);
|
|
31392
31392
|
} else if (m0 !== 0 || t0.isRenderTargetTexture || C0.has(t0)) {
|
|
31393
31393
|
const rn = C0.get(t0), $i = C0.get(d0);
|
|
31394
31394
|
A0.bindFramebuffer(h0.READ_FRAMEBUFFER, c0), A0.bindFramebuffer(h0.DRAW_FRAMEBUFFER, g0);
|
|
31395
31395
|
for (let nn = 0; nn < H0; nn++)
|
|
31396
|
-
Hi ? h0.framebufferTextureLayer(h0.READ_FRAMEBUFFER, h0.COLOR_ATTACHMENT0, rn.__webglTexture, m0, yi + nn) : h0.framebufferTexture2D(h0.READ_FRAMEBUFFER, h0.COLOR_ATTACHMENT0, h0.TEXTURE_2D, rn.__webglTexture, m0), en ? h0.framebufferTextureLayer(h0.DRAW_FRAMEBUFFER, h0.COLOR_ATTACHMENT0, $i.__webglTexture, M0, Wi + nn) : h0.framebufferTexture2D(h0.DRAW_FRAMEBUFFER, h0.COLOR_ATTACHMENT0, h0.TEXTURE_2D, $i.__webglTexture, M0), m0 !== 0 ? h0.blitFramebuffer($0, Q0,
|
|
31396
|
+
Hi ? h0.framebufferTextureLayer(h0.READ_FRAMEBUFFER, h0.COLOR_ATTACHMENT0, rn.__webglTexture, m0, yi + nn) : h0.framebufferTexture2D(h0.READ_FRAMEBUFFER, h0.COLOR_ATTACHMENT0, h0.TEXTURE_2D, rn.__webglTexture, m0), en ? h0.framebufferTextureLayer(h0.DRAW_FRAMEBUFFER, h0.COLOR_ATTACHMENT0, $i.__webglTexture, M0, Wi + nn) : h0.framebufferTexture2D(h0.DRAW_FRAMEBUFFER, h0.COLOR_ATTACHMENT0, h0.TEXTURE_2D, $i.__webglTexture, M0), m0 !== 0 ? h0.blitFramebuffer($0, Q0, R0, V0, gi, Li, R0, V0, h0.COLOR_BUFFER_BIT, h0.NEAREST) : en ? h0.copyTexSubImage3D(Di, M0, gi, Li, Wi + nn, $0, Q0, R0, V0) : h0.copyTexSubImage2D(Di, M0, gi, Li, $0, Q0, R0, V0);
|
|
31397
31397
|
A0.bindFramebuffer(h0.READ_FRAMEBUFFER, null), A0.bindFramebuffer(h0.DRAW_FRAMEBUFFER, null);
|
|
31398
31398
|
} else
|
|
31399
|
-
en ? t0.isDataTexture || t0.isData3DTexture ? h0.texSubImage3D(Di, M0, gi, Li, Wi,
|
|
31399
|
+
en ? t0.isDataTexture || t0.isData3DTexture ? h0.texSubImage3D(Di, M0, gi, Li, Wi, R0, V0, H0, ki, Vi, Ai.data) : d0.isCompressedArrayTexture ? h0.compressedTexSubImage3D(Di, M0, gi, Li, Wi, R0, V0, H0, ki, Ai.data) : h0.texSubImage3D(Di, M0, gi, Li, Wi, R0, V0, H0, ki, Vi, Ai) : t0.isDataTexture ? h0.texSubImage2D(h0.TEXTURE_2D, M0, gi, Li, R0, V0, ki, Vi, Ai.data) : t0.isCompressedTexture ? h0.compressedTexSubImage2D(h0.TEXTURE_2D, M0, gi, Li, Ai.width, Ai.height, ki, Ai.data) : h0.texSubImage2D(h0.TEXTURE_2D, M0, gi, Li, R0, V0, ki, Vi, Ai);
|
|
31400
31400
|
h0.pixelStorei(h0.UNPACK_ROW_LENGTH, Pi), h0.pixelStorei(h0.UNPACK_IMAGE_HEIGHT, Qi), h0.pixelStorei(h0.UNPACK_SKIP_PIXELS, tn), h0.pixelStorei(h0.UNPACK_SKIP_ROWS, Ji), h0.pixelStorei(h0.UNPACK_SKIP_IMAGES, Oi), M0 === 0 && d0.generateMipmaps && h0.generateMipmap(Di), A0.unbindTexture();
|
|
31401
31401
|
}, this.copyTextureToTexture3D = function(t0, d0, u0 = null, S0 = null, m0 = 0) {
|
|
31402
31402
|
return warnOnce('WebGLRenderer: copyTextureToTexture3D function has been deprecated. Use "copyTextureToTexture" instead.'), this.copyTextureToTexture(t0, d0, u0, S0, m0);
|
|
@@ -45228,8 +45228,8 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45228
45228
|
for (; t0 <= d0; t0++) {
|
|
45229
45229
|
if (S0.value - c0.value > g0) return !1;
|
|
45230
45230
|
r0(6, m0, M0, qt, S0);
|
|
45231
|
-
const
|
|
45232
|
-
if (m0 = i0.c, M0 = i0.lc, u0[t0] =
|
|
45231
|
+
const R0 = i0.l;
|
|
45232
|
+
if (m0 = i0.c, M0 = i0.lc, u0[t0] = R0, R0 == 63) {
|
|
45233
45233
|
if (S0.value - c0.value > g0)
|
|
45234
45234
|
throw new Error("Something wrong with hufUnpackEncTable");
|
|
45235
45235
|
r0(8, m0, M0, qt, S0);
|
|
@@ -45238,8 +45238,8 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45238
45238
|
throw new Error("Something wrong with hufUnpackEncTable");
|
|
45239
45239
|
for (; V0--; ) u0[t0++] = 0;
|
|
45240
45240
|
t0--;
|
|
45241
|
-
} else if (
|
|
45242
|
-
let V0 =
|
|
45241
|
+
} else if (R0 >= 59) {
|
|
45242
|
+
let V0 = R0 - 59 + 2;
|
|
45243
45243
|
if (t0 + V0 > d0 + 1)
|
|
45244
45244
|
throw new Error("Something wrong with hufUnpackEncTable");
|
|
45245
45245
|
for (; V0--; ) u0[t0++] = 0;
|
|
@@ -45291,11 +45291,11 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45291
45291
|
function q0(qt, c0, g0, t0, d0, u0, S0, m0, M0) {
|
|
45292
45292
|
if (qt == c0) {
|
|
45293
45293
|
t0 < 8 && (f0(g0, t0, d0, u0), g0 = b0.c, t0 = b0.lc), t0 -= 8;
|
|
45294
|
-
let
|
|
45295
|
-
if (
|
|
45294
|
+
let R0 = g0 >> t0;
|
|
45295
|
+
if (R0 = new Uint8Array([R0])[0], m0.value + R0 > M0)
|
|
45296
45296
|
return !1;
|
|
45297
45297
|
const V0 = S0[m0.value - 1];
|
|
45298
|
-
for (;
|
|
45298
|
+
for (; R0-- > 0; )
|
|
45299
45299
|
S0[m0.value++] = V0;
|
|
45300
45300
|
} else if (m0.value < M0)
|
|
45301
45301
|
S0[m0.value++] = qt;
|
|
@@ -45321,11 +45321,11 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45321
45321
|
}
|
|
45322
45322
|
function Ti(qt, c0, g0, t0, d0, u0, S0) {
|
|
45323
45323
|
const m0 = S0 < 16384, M0 = g0 > d0 ? d0 : g0;
|
|
45324
|
-
let
|
|
45325
|
-
for (;
|
|
45326
|
-
for (
|
|
45324
|
+
let R0 = 1, V0, H0;
|
|
45325
|
+
for (; R0 <= M0; ) R0 <<= 1;
|
|
45326
|
+
for (R0 >>= 1, V0 = R0, R0 >>= 1; R0 >= 1; ) {
|
|
45327
45327
|
H0 = 0;
|
|
45328
|
-
const $0 = H0 + u0 * (d0 - V0), Q0 = u0 *
|
|
45328
|
+
const $0 = H0 + u0 * (d0 - V0), Q0 = u0 * R0, yi = u0 * V0, gi = t0 * R0, Li = t0 * V0;
|
|
45329
45329
|
let Wi, Ai, ki, Vi;
|
|
45330
45330
|
for (; H0 <= $0; H0 += yi) {
|
|
45331
45331
|
let Di = H0;
|
|
@@ -45334,12 +45334,12 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45334
45334
|
const Qi = Di + gi, tn = Di + Q0, Ji = tn + gi;
|
|
45335
45335
|
m0 ? (D0(qt[Di + c0], qt[tn + c0]), Wi = F0.a, ki = F0.b, D0(qt[Qi + c0], qt[Ji + c0]), Ai = F0.a, Vi = F0.b, D0(Wi, Ai), qt[Di + c0] = F0.a, qt[Qi + c0] = F0.b, D0(ki, Vi), qt[tn + c0] = F0.a, qt[Ji + c0] = F0.b) : (Si(qt[Di + c0], qt[tn + c0]), Wi = F0.a, ki = F0.b, Si(qt[Qi + c0], qt[Ji + c0]), Ai = F0.a, Vi = F0.b, Si(Wi, Ai), qt[Di + c0] = F0.a, qt[Qi + c0] = F0.b, Si(ki, Vi), qt[tn + c0] = F0.a, qt[Ji + c0] = F0.b);
|
|
45336
45336
|
}
|
|
45337
|
-
if (g0 &
|
|
45337
|
+
if (g0 & R0) {
|
|
45338
45338
|
const Qi = Di + Q0;
|
|
45339
45339
|
m0 ? D0(qt[Di + c0], qt[Qi + c0]) : Si(qt[Di + c0], qt[Qi + c0]), Wi = F0.a, qt[Qi + c0] = F0.b, qt[Di + c0] = Wi;
|
|
45340
45340
|
}
|
|
45341
45341
|
}
|
|
45342
|
-
if (d0 &
|
|
45342
|
+
if (d0 & R0) {
|
|
45343
45343
|
let Di = H0;
|
|
45344
45344
|
const Pi = H0 + t0 * (g0 - V0);
|
|
45345
45345
|
for (; Di <= Pi; Di += Li) {
|
|
@@ -45347,18 +45347,18 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45347
45347
|
m0 ? D0(qt[Di + c0], qt[Qi + c0]) : Si(qt[Di + c0], qt[Qi + c0]), Wi = F0.a, qt[Qi + c0] = F0.b, qt[Di + c0] = Wi;
|
|
45348
45348
|
}
|
|
45349
45349
|
}
|
|
45350
|
-
V0 =
|
|
45350
|
+
V0 = R0, R0 >>= 1;
|
|
45351
45351
|
}
|
|
45352
45352
|
return H0;
|
|
45353
45353
|
}
|
|
45354
45354
|
function Mi(qt, c0, g0, t0, d0, u0, S0, m0, M0) {
|
|
45355
|
-
let
|
|
45355
|
+
let R0 = 0, V0 = 0;
|
|
45356
45356
|
const H0 = S0, $0 = Math.trunc(t0.value + (d0 + 7) / 8);
|
|
45357
45357
|
for (; t0.value < $0; )
|
|
45358
|
-
for (f0(
|
|
45359
|
-
const yi =
|
|
45358
|
+
for (f0(R0, V0, g0, t0), R0 = b0.c, V0 = b0.lc; V0 >= 14; ) {
|
|
45359
|
+
const yi = R0 >> V0 - 14 & 16383, gi = c0[yi];
|
|
45360
45360
|
if (gi.len)
|
|
45361
|
-
V0 -= gi.len, q0(gi.lit, u0,
|
|
45361
|
+
V0 -= gi.len, q0(gi.lit, u0, R0, V0, g0, t0, m0, M0, H0), R0 = P0.c, V0 = P0.lc;
|
|
45362
45362
|
else {
|
|
45363
45363
|
if (!gi.p)
|
|
45364
45364
|
throw new Error("hufDecode issues");
|
|
@@ -45366,9 +45366,9 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45366
45366
|
for (Li = 0; Li < gi.lit; Li++) {
|
|
45367
45367
|
const Wi = e0(qt[gi.p[Li]]);
|
|
45368
45368
|
for (; V0 < Wi && t0.value < $0; )
|
|
45369
|
-
f0(
|
|
45370
|
-
if (V0 >= Wi && Yt(qt[gi.p[Li]]) == (
|
|
45371
|
-
V0 -= Wi, q0(gi.p[Li], u0,
|
|
45369
|
+
f0(R0, V0, g0, t0), R0 = b0.c, V0 = b0.lc;
|
|
45370
|
+
if (V0 >= Wi && Yt(qt[gi.p[Li]]) == (R0 >> V0 - Wi & (1 << Wi) - 1)) {
|
|
45371
|
+
V0 -= Wi, q0(gi.p[Li], u0, R0, V0, g0, t0, m0, M0, H0), R0 = P0.c, V0 = P0.lc;
|
|
45372
45372
|
break;
|
|
45373
45373
|
}
|
|
45374
45374
|
}
|
|
@@ -45377,27 +45377,27 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45377
45377
|
}
|
|
45378
45378
|
}
|
|
45379
45379
|
const Q0 = 8 - d0 & 7;
|
|
45380
|
-
for (
|
|
45381
|
-
const yi = c0[
|
|
45380
|
+
for (R0 >>= Q0, V0 -= Q0; V0 > 0; ) {
|
|
45381
|
+
const yi = c0[R0 << 14 - V0 & 16383];
|
|
45382
45382
|
if (yi.len)
|
|
45383
|
-
V0 -= yi.len, q0(yi.lit, u0,
|
|
45383
|
+
V0 -= yi.len, q0(yi.lit, u0, R0, V0, g0, t0, m0, M0, H0), R0 = P0.c, V0 = P0.lc;
|
|
45384
45384
|
else
|
|
45385
45385
|
throw new Error("hufDecode issues");
|
|
45386
45386
|
}
|
|
45387
45387
|
return !0;
|
|
45388
45388
|
}
|
|
45389
45389
|
function Fi(qt, c0, g0, t0, d0, u0) {
|
|
45390
|
-
const S0 = { value: 0 }, m0 = g0.value, M0 = Ii(c0, g0),
|
|
45390
|
+
const S0 = { value: 0 }, m0 = g0.value, M0 = Ii(c0, g0), R0 = Ii(c0, g0);
|
|
45391
45391
|
g0.value += 4;
|
|
45392
45392
|
const V0 = Ii(c0, g0);
|
|
45393
|
-
if (g0.value += 4, M0 < 0 || M0 >= 65537 ||
|
|
45393
|
+
if (g0.value += 4, M0 < 0 || M0 >= 65537 || R0 < 0 || R0 >= 65537)
|
|
45394
45394
|
throw new Error("Something wrong with HUF_ENCSIZE");
|
|
45395
45395
|
const H0 = new Array(65537), $0 = new Array(16384);
|
|
45396
45396
|
Kt($0);
|
|
45397
45397
|
const Q0 = t0 - (g0.value - m0);
|
|
45398
|
-
if (Ut(qt, g0, Q0, M0,
|
|
45398
|
+
if (Ut(qt, g0, Q0, M0, R0, H0), V0 > 8 * (t0 - (g0.value - m0)))
|
|
45399
45399
|
throw new Error("Something wrong with hufUncompress");
|
|
45400
|
-
o0(H0, M0,
|
|
45400
|
+
o0(H0, M0, R0, $0), Mi(H0, $0, qt, g0, V0, R0, u0, d0, S0);
|
|
45401
45401
|
}
|
|
45402
45402
|
function Ni(qt, c0, g0) {
|
|
45403
45403
|
for (let t0 = 0; t0 < g0; ++t0)
|
|
@@ -45439,8 +45439,8 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45439
45439
|
}
|
|
45440
45440
|
function O0(qt, c0, g0, t0, d0, u0) {
|
|
45441
45441
|
let S0 = new DataView(u0.buffer);
|
|
45442
|
-
const m0 = g0[qt.idx[0]].width, M0 = g0[qt.idx[0]].height,
|
|
45443
|
-
for (let Pi = 0; Pi <
|
|
45442
|
+
const m0 = g0[qt.idx[0]].width, M0 = g0[qt.idx[0]].height, R0 = 3, V0 = Math.floor(m0 / 8), H0 = Math.ceil(m0 / 8), $0 = Math.ceil(M0 / 8), Q0 = m0 - (H0 - 1) * 8, yi = M0 - ($0 - 1) * 8, gi = { value: 0 }, Li = new Array(R0), Wi = new Array(R0), Ai = new Array(R0), ki = new Array(R0), Vi = new Array(R0);
|
|
45443
|
+
for (let Pi = 0; Pi < R0; ++Pi)
|
|
45444
45444
|
Vi[Pi] = c0[qt.idx[Pi]], Li[Pi] = Pi < 1 ? 0 : Li[Pi - 1] + H0 * $0, Wi[Pi] = new Float32Array(64), Ai[Pi] = new Uint16Array(64), ki[Pi] = new Uint16Array(H0 * 64);
|
|
45445
45445
|
for (let Pi = 0; Pi < $0; ++Pi) {
|
|
45446
45446
|
let Qi = 8;
|
|
@@ -45448,14 +45448,14 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45448
45448
|
let tn = 8;
|
|
45449
45449
|
for (let Oi = 0; Oi < H0; ++Oi) {
|
|
45450
45450
|
Oi == H0 - 1 && (tn = Q0);
|
|
45451
|
-
for (let Hi = 0; Hi <
|
|
45451
|
+
for (let Hi = 0; Hi < R0; ++Hi)
|
|
45452
45452
|
Ai[Hi].fill(0), Ai[Hi][0] = d0[Li[Hi]++], J0(gi, t0, Ai[Hi]), A0(Ai[Hi], Wi[Hi]), N0(Wi[Hi]);
|
|
45453
45453
|
C0(Wi);
|
|
45454
|
-
for (let Hi = 0; Hi <
|
|
45454
|
+
for (let Hi = 0; Hi < R0; ++Hi)
|
|
45455
45455
|
a0(Wi[Hi], ki[Hi], Oi * 64);
|
|
45456
45456
|
}
|
|
45457
45457
|
let Ji = 0;
|
|
45458
|
-
for (let Oi = 0; Oi <
|
|
45458
|
+
for (let Oi = 0; Oi < R0; ++Oi) {
|
|
45459
45459
|
const Hi = g0[qt.idx[Oi]].type;
|
|
45460
45460
|
for (let en = 8 * Pi; en < 8 * Pi + Qi; ++en) {
|
|
45461
45461
|
Ji = Vi[Oi][en];
|
|
@@ -45474,7 +45474,7 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45474
45474
|
}
|
|
45475
45475
|
const Di = new Uint16Array(m0);
|
|
45476
45476
|
S0 = new DataView(u0.buffer);
|
|
45477
|
-
for (let Pi = 0; Pi <
|
|
45477
|
+
for (let Pi = 0; Pi < R0; ++Pi) {
|
|
45478
45478
|
g0[qt.idx[Pi]].decoded = !0;
|
|
45479
45479
|
const Qi = g0[qt.idx[Pi]].type;
|
|
45480
45480
|
if (g0[Pi].type == 2)
|
|
@@ -45496,13 +45496,13 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45496
45496
|
c0[0] = k0(qt[0]), c0[1] = k0(qt[1]), c0[2] = k0(qt[5]), c0[3] = k0(qt[6]), c0[4] = k0(qt[14]), c0[5] = k0(qt[15]), c0[6] = k0(qt[27]), c0[7] = k0(qt[28]), c0[8] = k0(qt[2]), c0[9] = k0(qt[4]), c0[10] = k0(qt[7]), c0[11] = k0(qt[13]), c0[12] = k0(qt[16]), c0[13] = k0(qt[26]), c0[14] = k0(qt[29]), c0[15] = k0(qt[42]), c0[16] = k0(qt[3]), c0[17] = k0(qt[8]), c0[18] = k0(qt[12]), c0[19] = k0(qt[17]), c0[20] = k0(qt[25]), c0[21] = k0(qt[30]), c0[22] = k0(qt[41]), c0[23] = k0(qt[43]), c0[24] = k0(qt[9]), c0[25] = k0(qt[11]), c0[26] = k0(qt[18]), c0[27] = k0(qt[24]), c0[28] = k0(qt[31]), c0[29] = k0(qt[40]), c0[30] = k0(qt[44]), c0[31] = k0(qt[53]), c0[32] = k0(qt[10]), c0[33] = k0(qt[19]), c0[34] = k0(qt[23]), c0[35] = k0(qt[32]), c0[36] = k0(qt[39]), c0[37] = k0(qt[45]), c0[38] = k0(qt[52]), c0[39] = k0(qt[54]), c0[40] = k0(qt[20]), c0[41] = k0(qt[22]), c0[42] = k0(qt[33]), c0[43] = k0(qt[38]), c0[44] = k0(qt[46]), c0[45] = k0(qt[51]), c0[46] = k0(qt[55]), c0[47] = k0(qt[60]), c0[48] = k0(qt[21]), c0[49] = k0(qt[34]), c0[50] = k0(qt[37]), c0[51] = k0(qt[47]), c0[52] = k0(qt[50]), c0[53] = k0(qt[56]), c0[54] = k0(qt[59]), c0[55] = k0(qt[61]), c0[56] = k0(qt[35]), c0[57] = k0(qt[36]), c0[58] = k0(qt[48]), c0[59] = k0(qt[49]), c0[60] = k0(qt[57]), c0[61] = k0(qt[58]), c0[62] = k0(qt[62]), c0[63] = k0(qt[63]);
|
|
45497
45497
|
}
|
|
45498
45498
|
function N0(qt) {
|
|
45499
|
-
const c0 = 0.5 * Math.cos(0.7853975), g0 = 0.5 * Math.cos(3.14159 / 16), t0 = 0.5 * Math.cos(3.14159 / 8), d0 = 0.5 * Math.cos(3 * 3.14159 / 16), u0 = 0.5 * Math.cos(5 * 3.14159 / 16), S0 = 0.5 * Math.cos(3 * 3.14159 / 8), m0 = 0.5 * Math.cos(7 * 3.14159 / 16), M0 = new Array(4),
|
|
45499
|
+
const c0 = 0.5 * Math.cos(0.7853975), g0 = 0.5 * Math.cos(3.14159 / 16), t0 = 0.5 * Math.cos(3.14159 / 8), d0 = 0.5 * Math.cos(3 * 3.14159 / 16), u0 = 0.5 * Math.cos(5 * 3.14159 / 16), S0 = 0.5 * Math.cos(3 * 3.14159 / 8), m0 = 0.5 * Math.cos(7 * 3.14159 / 16), M0 = new Array(4), R0 = new Array(4), V0 = new Array(4), H0 = new Array(4);
|
|
45500
45500
|
for (let $0 = 0; $0 < 8; ++$0) {
|
|
45501
45501
|
const Q0 = $0 * 8;
|
|
45502
|
-
M0[0] = t0 * qt[Q0 + 2], M0[1] = S0 * qt[Q0 + 2], M0[2] = t0 * qt[Q0 + 6], M0[3] = S0 * qt[Q0 + 6],
|
|
45502
|
+
M0[0] = t0 * qt[Q0 + 2], M0[1] = S0 * qt[Q0 + 2], M0[2] = t0 * qt[Q0 + 6], M0[3] = S0 * qt[Q0 + 6], R0[0] = g0 * qt[Q0 + 1] + d0 * qt[Q0 + 3] + u0 * qt[Q0 + 5] + m0 * qt[Q0 + 7], R0[1] = d0 * qt[Q0 + 1] - m0 * qt[Q0 + 3] - g0 * qt[Q0 + 5] - u0 * qt[Q0 + 7], R0[2] = u0 * qt[Q0 + 1] - g0 * qt[Q0 + 3] + m0 * qt[Q0 + 5] + d0 * qt[Q0 + 7], R0[3] = m0 * qt[Q0 + 1] - u0 * qt[Q0 + 3] + d0 * qt[Q0 + 5] - g0 * qt[Q0 + 7], V0[0] = c0 * (qt[Q0 + 0] + qt[Q0 + 4]), V0[3] = c0 * (qt[Q0 + 0] - qt[Q0 + 4]), V0[1] = M0[0] + M0[3], V0[2] = M0[1] - M0[2], H0[0] = V0[0] + V0[1], H0[1] = V0[3] + V0[2], H0[2] = V0[3] - V0[2], H0[3] = V0[0] - V0[1], qt[Q0 + 0] = H0[0] + R0[0], qt[Q0 + 1] = H0[1] + R0[1], qt[Q0 + 2] = H0[2] + R0[2], qt[Q0 + 3] = H0[3] + R0[3], qt[Q0 + 4] = H0[3] - R0[3], qt[Q0 + 5] = H0[2] - R0[2], qt[Q0 + 6] = H0[1] - R0[1], qt[Q0 + 7] = H0[0] - R0[0];
|
|
45503
45503
|
}
|
|
45504
45504
|
for (let $0 = 0; $0 < 8; ++$0)
|
|
45505
|
-
M0[0] = t0 * qt[16 + $0], M0[1] = S0 * qt[16 + $0], M0[2] = t0 * qt[48 + $0], M0[3] = S0 * qt[48 + $0],
|
|
45505
|
+
M0[0] = t0 * qt[16 + $0], M0[1] = S0 * qt[16 + $0], M0[2] = t0 * qt[48 + $0], M0[3] = S0 * qt[48 + $0], R0[0] = g0 * qt[8 + $0] + d0 * qt[24 + $0] + u0 * qt[40 + $0] + m0 * qt[56 + $0], R0[1] = d0 * qt[8 + $0] - m0 * qt[24 + $0] - g0 * qt[40 + $0] - u0 * qt[56 + $0], R0[2] = u0 * qt[8 + $0] - g0 * qt[24 + $0] + m0 * qt[40 + $0] + d0 * qt[56 + $0], R0[3] = m0 * qt[8 + $0] - u0 * qt[24 + $0] + d0 * qt[40 + $0] - g0 * qt[56 + $0], V0[0] = c0 * (qt[$0] + qt[32 + $0]), V0[3] = c0 * (qt[$0] - qt[32 + $0]), V0[1] = M0[0] + M0[3], V0[2] = M0[1] - M0[2], H0[0] = V0[0] + V0[1], H0[1] = V0[3] + V0[2], H0[2] = V0[3] - V0[2], H0[3] = V0[0] - V0[1], qt[0 + $0] = H0[0] + R0[0], qt[8 + $0] = H0[1] + R0[1], qt[16 + $0] = H0[2] + R0[2], qt[24 + $0] = H0[3] + R0[3], qt[32 + $0] = H0[3] - R0[3], qt[40 + $0] = H0[2] - R0[2], qt[48 + $0] = H0[1] - R0[1], qt[56 + $0] = H0[0] - R0[0];
|
|
45506
45506
|
}
|
|
45507
45507
|
function C0(qt) {
|
|
45508
45508
|
for (let c0 = 0; c0 < 64; ++c0) {
|
|
@@ -45540,7 +45540,7 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45540
45540
|
if (m0 <= M0)
|
|
45541
45541
|
for (let yi = 0; yi < M0 - m0 + 1; yi++)
|
|
45542
45542
|
d0[yi + m0] = Yi(c0, g0);
|
|
45543
|
-
const
|
|
45543
|
+
const R0 = new Uint16Array(65536), V0 = kt(d0, R0), H0 = Ii(c0, g0);
|
|
45544
45544
|
Fi(qt.array, c0, g0, H0, t0, u0);
|
|
45545
45545
|
for (let yi = 0; yi < qt.inputChannels.length; ++yi) {
|
|
45546
45546
|
const gi = S0[yi];
|
|
@@ -45555,7 +45555,7 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45555
45555
|
V0
|
|
45556
45556
|
);
|
|
45557
45557
|
}
|
|
45558
|
-
Ni(
|
|
45558
|
+
Ni(R0, t0, u0);
|
|
45559
45559
|
let $0 = 0;
|
|
45560
45560
|
const Q0 = new Uint8Array(t0.buffer.byteLength);
|
|
45561
45561
|
for (let yi = 0; yi < qt.lines; yi++)
|
|
@@ -45569,7 +45569,7 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45569
45569
|
const c0 = qt.array.slice(qt.offset.value, qt.offset.value + qt.size), g0 = unzlibSync(c0), t0 = qt.inputChannels.length * qt.lines * qt.columns * qt.totalBytes, d0 = new ArrayBuffer(t0), u0 = new DataView(d0);
|
|
45570
45570
|
let S0 = 0, m0 = 0;
|
|
45571
45571
|
const M0 = new Array(4);
|
|
45572
|
-
for (let
|
|
45572
|
+
for (let R0 = 0; R0 < qt.lines; R0++)
|
|
45573
45573
|
for (let V0 = 0; V0 < qt.inputChannels.length; V0++) {
|
|
45574
45574
|
let H0 = 0;
|
|
45575
45575
|
switch (qt.inputChannels[V0].pixelType) {
|
|
@@ -45623,14 +45623,14 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45623
45623
|
const Li = M0[gi] = {}, Wi = m0[gi];
|
|
45624
45624
|
Li.name = Wi.name, Li.compression = 0, Li.decoded = !1, Li.type = Wi.pixelType, Li.pLinear = Wi.pLinear, Li.width = qt.columns, Li.height = qt.lines;
|
|
45625
45625
|
}
|
|
45626
|
-
const
|
|
45626
|
+
const R0 = {
|
|
45627
45627
|
idx: new Array(3)
|
|
45628
45628
|
};
|
|
45629
45629
|
for (let gi = 0; gi < qt.inputChannels.length; ++gi) {
|
|
45630
45630
|
const Li = M0[gi];
|
|
45631
45631
|
for (let Wi = 0; Wi < u0.length; ++Wi) {
|
|
45632
45632
|
const Ai = u0[Wi];
|
|
45633
|
-
Li.name == Ai.name && (Li.compression = Ai.compression, Ai.index >= 0 && (
|
|
45633
|
+
Li.name == Ai.name && (Li.compression = Ai.compression, Ai.index >= 0 && (R0.idx[Ai.index] = gi), Li.offset = gi);
|
|
45634
45634
|
}
|
|
45635
45635
|
}
|
|
45636
45636
|
let V0, H0, $0;
|
|
@@ -45663,7 +45663,7 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45663
45663
|
for (let gi = 0; gi < qt.lines; ++gi)
|
|
45664
45664
|
for (let Li = 0; Li < M0.length; ++Li)
|
|
45665
45665
|
yi[Li].push(Q0), Q0 += M0[Li].width * qt.type * 2;
|
|
45666
|
-
O0(
|
|
45666
|
+
O0(R0, yi, M0, V0, H0, t0);
|
|
45667
45667
|
for (let gi = 0; gi < M0.length; ++gi) {
|
|
45668
45668
|
const Li = M0[gi];
|
|
45669
45669
|
if (!Li.decoded)
|
|
@@ -45754,20 +45754,20 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45754
45754
|
for (; g0.value < d0 + t0 - 1; ) {
|
|
45755
45755
|
const S0 = Ci(c0, g0), m0 = wi(qt, g0), M0 = Yi(qt, g0);
|
|
45756
45756
|
g0.value += 3;
|
|
45757
|
-
const
|
|
45757
|
+
const R0 = wi(qt, g0), V0 = wi(qt, g0);
|
|
45758
45758
|
u0.push({
|
|
45759
45759
|
name: S0,
|
|
45760
45760
|
pixelType: m0,
|
|
45761
45761
|
pLinear: M0,
|
|
45762
|
-
xSampling:
|
|
45762
|
+
xSampling: R0,
|
|
45763
45763
|
ySampling: V0
|
|
45764
45764
|
});
|
|
45765
45765
|
}
|
|
45766
45766
|
return g0.value += 1, u0;
|
|
45767
45767
|
}
|
|
45768
45768
|
function _i(qt, c0) {
|
|
45769
|
-
const g0 = Ki(qt, c0), t0 = Ki(qt, c0), d0 = Ki(qt, c0), u0 = Ki(qt, c0), S0 = Ki(qt, c0), m0 = Ki(qt, c0), M0 = Ki(qt, c0),
|
|
45770
|
-
return { redX: g0, redY: t0, greenX: d0, greenY: u0, blueX: S0, blueY: m0, whiteX: M0, whiteY:
|
|
45769
|
+
const g0 = Ki(qt, c0), t0 = Ki(qt, c0), d0 = Ki(qt, c0), u0 = Ki(qt, c0), S0 = Ki(qt, c0), m0 = Ki(qt, c0), M0 = Ki(qt, c0), R0 = Ki(qt, c0);
|
|
45770
|
+
return { redX: g0, redY: t0, greenX: d0, greenY: u0, blueX: S0, blueY: m0, whiteX: M0, whiteY: R0 };
|
|
45771
45771
|
}
|
|
45772
45772
|
function Bi(qt, c0) {
|
|
45773
45773
|
const g0 = [
|
|
@@ -45921,7 +45921,7 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45921
45921
|
const u0 = qt.columns * qt.totalBytes, m0 = qt.size < qt.lines * u0 ? qt.uncompress(qt) : v0(qt);
|
|
45922
45922
|
c0.value += qt.size;
|
|
45923
45923
|
for (let M0 = 0; M0 < qt.blockHeight; M0++) {
|
|
45924
|
-
const
|
|
45924
|
+
const R0 = t0 * qt.blockHeight, V0 = M0 + qt.scanOrder(R0);
|
|
45925
45925
|
if (V0 >= qt.height) continue;
|
|
45926
45926
|
const H0 = M0 * u0, $0 = (qt.height - 1 - V0) * qt.outLineWidth;
|
|
45927
45927
|
for (let Q0 = 0; Q0 < qt.inputChannels.length; Q0++) {
|
|
@@ -45955,8 +45955,8 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45955
45955
|
if (S0 === "")
|
|
45956
45956
|
u0 = !1;
|
|
45957
45957
|
else {
|
|
45958
|
-
const m0 = Ci(c0, g0), M0 = Ii(qt, g0),
|
|
45959
|
-
|
|
45958
|
+
const m0 = Ci(c0, g0), M0 = Ii(qt, g0), R0 = Ln(qt, c0, g0, m0, M0);
|
|
45959
|
+
R0 === void 0 ? console.warn(`THREE.EXRLoader: Skipped unknown header attribute type '${m0}'.`) : t0[S0] = R0;
|
|
45960
45960
|
}
|
|
45961
45961
|
}
|
|
45962
45962
|
if (d0 & -7)
|
|
@@ -46060,10 +46060,10 @@ class EXRLoader extends DataTextureLoader {
|
|
|
46060
46060
|
console.error("THREE.EXRLoader: unsupported type: ", d0);
|
|
46061
46061
|
break;
|
|
46062
46062
|
}
|
|
46063
|
-
let
|
|
46063
|
+
let R0 = 0;
|
|
46064
46064
|
for (const V0 of qt.channels)
|
|
46065
|
-
u0.decodeChannels[V0.name] !== void 0 && (u0.channelByteOffsets[V0.name] =
|
|
46066
|
-
if (u0.totalBytes =
|
|
46065
|
+
u0.decodeChannels[V0.name] !== void 0 && (u0.channelByteOffsets[V0.name] = R0), R0 += V0.pixelType * 2;
|
|
46066
|
+
if (u0.totalBytes = R0, u0.outLineWidth = u0.width * u0.outputChannels, qt.lineOrder === "INCREASING_Y" ? u0.scanOrder = (V0) => V0 : u0.scanOrder = (V0) => u0.height - 1 - V0, u0.outputChannels == 4 ? (u0.format = RGBAFormat, u0.colorSpace = LinearSRGBColorSpace) : (u0.format = RedFormat, u0.colorSpace = NoColorSpace), qt.spec.singleTile) {
|
|
46067
46067
|
u0.blockHeight = qt.tiles.ySize, u0.blockWidth = qt.tiles.xSize;
|
|
46068
46068
|
const V0 = gn(qt.tiles, u0.width, u0.height), H0 = xn(V0, u0.width, qt.tiles.xSize, qt.tiles.roundingMode), $0 = xn(V0, u0.height, qt.tiles.ySize, qt.tiles.roundingMode);
|
|
46069
46069
|
u0.tileCount = H0[0] * $0[0];
|
|
@@ -57343,8 +57343,8 @@ class Light extends Ze {
|
|
|
57343
57343
|
class Point extends ft$1 {
|
|
57344
57344
|
constructor(r) {
|
|
57345
57345
|
super();
|
|
57346
|
-
|
|
57347
|
-
|
|
57346
|
+
_0(this, "options");
|
|
57347
|
+
_0(this, "scaleValue", 1);
|
|
57348
57348
|
this.options = fi({
|
|
57349
57349
|
sprite: !0
|
|
57350
57350
|
}, r);
|
|
@@ -57421,11 +57421,11 @@ let map;
|
|
|
57421
57421
|
class Arc extends ft$1 {
|
|
57422
57422
|
constructor(r) {
|
|
57423
57423
|
super();
|
|
57424
|
-
|
|
57425
|
-
|
|
57426
|
-
|
|
57427
|
-
|
|
57428
|
-
|
|
57424
|
+
_0(this, "options");
|
|
57425
|
+
_0(this, "line");
|
|
57426
|
+
_0(this, "helperMesh");
|
|
57427
|
+
_0(this, "helperMeshPosition");
|
|
57428
|
+
_0(this, "pickTube", null);
|
|
57429
57429
|
this.options = fi({
|
|
57430
57430
|
color: "#ffffff",
|
|
57431
57431
|
lineWidth: 6,
|
|
@@ -57583,7 +57583,7 @@ class Arc extends ft$1 {
|
|
|
57583
57583
|
class CrossPlane extends ft$1 {
|
|
57584
57584
|
constructor(r) {
|
|
57585
57585
|
super();
|
|
57586
|
-
|
|
57586
|
+
_0(this, "options");
|
|
57587
57587
|
this.options = fi({}, r);
|
|
57588
57588
|
}
|
|
57589
57589
|
create() {
|
|
@@ -57626,7 +57626,7 @@ class PlaneShadow extends ft$1 {
|
|
|
57626
57626
|
class Model extends ft$1 {
|
|
57627
57627
|
constructor(r) {
|
|
57628
57628
|
super();
|
|
57629
|
-
|
|
57629
|
+
_0(this, "options");
|
|
57630
57630
|
this.options = fi({}, r);
|
|
57631
57631
|
}
|
|
57632
57632
|
create() {
|
|
@@ -57714,9 +57714,9 @@ class Ring extends ft$1 {
|
|
|
57714
57714
|
class Sphere extends ft$1 {
|
|
57715
57715
|
constructor() {
|
|
57716
57716
|
super(...arguments);
|
|
57717
|
-
|
|
57718
|
-
|
|
57719
|
-
|
|
57717
|
+
_0(this, "radius", 100);
|
|
57718
|
+
_0(this, "material");
|
|
57719
|
+
_0(this, "options");
|
|
57720
57720
|
}
|
|
57721
57721
|
create() {
|
|
57722
57722
|
var d;
|
|
@@ -57765,7 +57765,7 @@ class TorusKnot extends ft$1 {
|
|
|
57765
57765
|
class Tube extends ft$1 {
|
|
57766
57766
|
constructor(r) {
|
|
57767
57767
|
super();
|
|
57768
|
-
|
|
57768
|
+
_0(this, "options");
|
|
57769
57769
|
this.options = r;
|
|
57770
57770
|
}
|
|
57771
57771
|
create() {
|
|
@@ -58002,10 +58002,10 @@ function createAreaLightMaterial(m) {
|
|
|
58002
58002
|
}
|
|
58003
58003
|
class Event {
|
|
58004
58004
|
constructor() {
|
|
58005
|
-
|
|
58006
|
-
|
|
58007
|
-
|
|
58008
|
-
|
|
58005
|
+
_0(this, "event", new EventEmitter());
|
|
58006
|
+
_0(this, "eventHandlers", {});
|
|
58007
|
+
_0(this, "on", this.event.on.bind(this.event));
|
|
58008
|
+
_0(this, "emit", this.event.emit.bind(this.event));
|
|
58009
58009
|
}
|
|
58010
58010
|
addListener(t, r, d, g = !1) {
|
|
58011
58011
|
r in this.eventHandlers || (this.eventHandlers[r] = []), this.eventHandlers[r].push({
|
|
@@ -58036,9 +58036,9 @@ class Event {
|
|
|
58036
58036
|
class Camera extends Event {
|
|
58037
58037
|
constructor() {
|
|
58038
58038
|
super(...arguments);
|
|
58039
|
-
|
|
58040
|
-
|
|
58041
|
-
|
|
58039
|
+
_0(this, "container");
|
|
58040
|
+
_0(this, "pencil");
|
|
58041
|
+
_0(this, "cameraState", {});
|
|
58042
58042
|
}
|
|
58043
58043
|
setSaveCamera(r) {
|
|
58044
58044
|
const d = this.pencil, g = d.cameraPositon, v = d.cameraTarget;
|
|
@@ -58144,12 +58144,12 @@ class Camera extends Event {
|
|
|
58144
58144
|
}
|
|
58145
58145
|
class Command {
|
|
58146
58146
|
constructor(t) {
|
|
58147
|
-
|
|
58148
|
-
|
|
58149
|
-
|
|
58150
|
-
|
|
58151
|
-
|
|
58152
|
-
|
|
58147
|
+
_0(this, "id");
|
|
58148
|
+
_0(this, "updatable");
|
|
58149
|
+
_0(this, "type");
|
|
58150
|
+
_0(this, "name");
|
|
58151
|
+
_0(this, "editor");
|
|
58152
|
+
_0(this, "json", {});
|
|
58153
58153
|
this.id = -1, this.updatable = !1, this.type = "", this.name = "", this.editor = t;
|
|
58154
58154
|
}
|
|
58155
58155
|
toJSON() {
|
|
@@ -58595,8 +58595,8 @@ class SetVector extends Command {
|
|
|
58595
58595
|
class AddVis extends Command {
|
|
58596
58596
|
constructor(r, d, g) {
|
|
58597
58597
|
super(r);
|
|
58598
|
-
|
|
58599
|
-
|
|
58598
|
+
_0(this, "visType");
|
|
58599
|
+
_0(this, "visOptions");
|
|
58600
58600
|
this.type = "AddVis", this.visType = d, this.visOptions = g, d !== void 0 && (this.name = `Add Vis: ${d}`);
|
|
58601
58601
|
}
|
|
58602
58602
|
execute() {
|
|
@@ -58619,10 +58619,10 @@ class AddVis extends Command {
|
|
|
58619
58619
|
class AddObject extends Command {
|
|
58620
58620
|
constructor(r, d, g) {
|
|
58621
58621
|
super(r);
|
|
58622
|
-
|
|
58623
|
-
|
|
58624
|
-
|
|
58625
|
-
|
|
58622
|
+
_0(this, "objectType");
|
|
58623
|
+
_0(this, "objectOptions");
|
|
58624
|
+
_0(this, "obj");
|
|
58625
|
+
_0(this, "addObjectUuid");
|
|
58626
58626
|
this.type = "AddObject", this.objectType = d, this.objectOptions = g, d !== void 0 && (this.name = `Add Object: ${d}`);
|
|
58627
58627
|
}
|
|
58628
58628
|
execute() {
|
|
@@ -58652,8 +58652,8 @@ class AddObject extends Command {
|
|
|
58652
58652
|
class RemoveObject extends Command {
|
|
58653
58653
|
constructor(r, d) {
|
|
58654
58654
|
super(r);
|
|
58655
|
-
|
|
58656
|
-
|
|
58655
|
+
_0(this, "object");
|
|
58656
|
+
_0(this, "objectUuid");
|
|
58657
58657
|
this.type = "RemoveObject", this.name = "Remove Object", this.object = d, this.objectUuid = this.editor.uuidByBaseObject(d);
|
|
58658
58658
|
}
|
|
58659
58659
|
execute() {
|
|
@@ -58675,9 +58675,9 @@ class RemoveObject extends Command {
|
|
|
58675
58675
|
class CopyObject extends Command {
|
|
58676
58676
|
constructor(r, d) {
|
|
58677
58677
|
super(r);
|
|
58678
|
-
|
|
58679
|
-
|
|
58680
|
-
|
|
58678
|
+
_0(this, "object");
|
|
58679
|
+
_0(this, "copyObject", null);
|
|
58680
|
+
_0(this, "copyObjectUuid");
|
|
58681
58681
|
this.type = "CopyObject", this.name = "Copy Object", this.object = d;
|
|
58682
58682
|
}
|
|
58683
58683
|
execute() {
|
|
@@ -58707,12 +58707,44 @@ class CopyObject extends Command {
|
|
|
58707
58707
|
r && !r.copyObjectUuid && (r.copyObjectUuid = this.copyObjectUuid);
|
|
58708
58708
|
}
|
|
58709
58709
|
}
|
|
58710
|
+
class SetObjectMaterialType extends Command {
|
|
58711
|
+
constructor(r, d, g) {
|
|
58712
|
+
var v;
|
|
58713
|
+
super(r);
|
|
58714
|
+
_0(this, "object");
|
|
58715
|
+
_0(this, "oldType");
|
|
58716
|
+
_0(this, "newType");
|
|
58717
|
+
this.type = "SetObjectMaterialType", this.name = "Set Material Type", this.object = d, this.oldType = (v = this.object) == null ? void 0 : v.useMaterialType, this.newType = g;
|
|
58718
|
+
}
|
|
58719
|
+
execute() {
|
|
58720
|
+
return U0(this, null, function* () {
|
|
58721
|
+
if (this.newType === "new") {
|
|
58722
|
+
const r = `material_${this.id}`;
|
|
58723
|
+
this.object.setMaterialList(r, "clone"), this.object.useMaterial(r);
|
|
58724
|
+
} else
|
|
58725
|
+
this.object.useMaterial(this.newType);
|
|
58726
|
+
this.editor.emit("materialChanged", this.object), this.editor.emit("baseObjectListChange");
|
|
58727
|
+
});
|
|
58728
|
+
}
|
|
58729
|
+
undo() {
|
|
58730
|
+
return U0(this, null, function* () {
|
|
58731
|
+
this.object.useMaterial(this.oldType), this.editor.emit("materialChanged", this.object), this.editor.emit("baseObjectListChange");
|
|
58732
|
+
});
|
|
58733
|
+
}
|
|
58734
|
+
toJSON() {
|
|
58735
|
+
const r = super.toJSON();
|
|
58736
|
+
return r.objectUuid = this.editor.uuidByBaseObject(this.object), r.oldType = this.oldType, r.newType = this.newType, r;
|
|
58737
|
+
}
|
|
58738
|
+
fromJSON(r) {
|
|
58739
|
+
super.fromJSON(r), this.object = this.editor.baseObjectByUuid(r.objectUuid), this.oldType = r.oldType, this.newType = r.newType;
|
|
58740
|
+
}
|
|
58741
|
+
}
|
|
58710
58742
|
class SetSetting extends Command {
|
|
58711
58743
|
constructor(r, d, g) {
|
|
58712
58744
|
super(r);
|
|
58713
|
-
|
|
58714
|
-
|
|
58715
|
-
|
|
58745
|
+
_0(this, "attributeName");
|
|
58746
|
+
_0(this, "newValue");
|
|
58747
|
+
_0(this, "oldValue");
|
|
58716
58748
|
this.type = "SetSetting", this.updatable = !0, this.name = `Set Setting.${d}`, this.attributeName = d, this.newValue = g, r.viewport.vis && (this.oldValue = r.viewport.vis.settings[d]);
|
|
58717
58749
|
}
|
|
58718
58750
|
execute() {
|
|
@@ -58830,6 +58862,7 @@ const Commands = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
|
58830
58862
|
SetMaterialMapVector,
|
|
58831
58863
|
SetMaterialValue,
|
|
58832
58864
|
SetMaterialVector,
|
|
58865
|
+
SetObjectMaterialType,
|
|
58833
58866
|
SetPosition,
|
|
58834
58867
|
SetRotation,
|
|
58835
58868
|
SetScale,
|
|
@@ -58841,12 +58874,12 @@ const Commands = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
|
58841
58874
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
58842
58875
|
class History {
|
|
58843
58876
|
constructor(t) {
|
|
58844
|
-
|
|
58845
|
-
|
|
58846
|
-
|
|
58847
|
-
|
|
58848
|
-
|
|
58849
|
-
|
|
58877
|
+
_0(this, "editor");
|
|
58878
|
+
_0(this, "undos");
|
|
58879
|
+
_0(this, "redos");
|
|
58880
|
+
_0(this, "lastCmdTime");
|
|
58881
|
+
_0(this, "idCounter");
|
|
58882
|
+
_0(this, "historyDisabled");
|
|
58850
58883
|
this.editor = t, this.undos = [], this.redos = [], this.lastCmdTime = Date.now(), this.idCounter = 0, this.historyDisabled = !1;
|
|
58851
58884
|
}
|
|
58852
58885
|
execute(t, r) {
|
|
@@ -58975,12 +59008,12 @@ class History {
|
|
|
58975
59008
|
}
|
|
58976
59009
|
class Viewport {
|
|
58977
59010
|
constructor(t, r) {
|
|
58978
|
-
|
|
58979
|
-
|
|
58980
|
-
|
|
58981
|
-
|
|
58982
|
-
|
|
58983
|
-
|
|
59011
|
+
_0(this, "editor");
|
|
59012
|
+
_0(this, "vis");
|
|
59013
|
+
_0(this, "extendsOptions", {});
|
|
59014
|
+
_0(this, "cameraState", {});
|
|
59015
|
+
_0(this, "delLoadObj");
|
|
59016
|
+
_0(this, "options");
|
|
58984
59017
|
this.options = r, this.editor = t;
|
|
58985
59018
|
}
|
|
58986
59019
|
setSaveCamera(t) {
|
|
@@ -59074,6 +59107,15 @@ class Viewport {
|
|
|
59074
59107
|
this.editor.execute(new CopyObject(this.editor, d));
|
|
59075
59108
|
});
|
|
59076
59109
|
}
|
|
59110
|
+
setObjectMaterialType(t, r) {
|
|
59111
|
+
return U0(this, null, function* () {
|
|
59112
|
+
const { vis: d } = this;
|
|
59113
|
+
if (!d)
|
|
59114
|
+
return;
|
|
59115
|
+
const g = this.editor.baseObjectByUuid(t);
|
|
59116
|
+
this.editor.execute(new SetObjectMaterialType(this.editor, g, r));
|
|
59117
|
+
});
|
|
59118
|
+
}
|
|
59077
59119
|
setExtendsOptions(t, r) {
|
|
59078
59120
|
this.extendsOptions[t] = r, this.vis.extendsOptions[t] = r, this.editor.emit("optionsChanged"), setTimeout(() => {
|
|
59079
59121
|
const d = this.editor.toJSON();
|
|
@@ -59347,6 +59389,10 @@ function applyFixes(m, t) {
|
|
|
59347
59389
|
C.objectUuid === "building" && (C.objectUuid = "building#group");
|
|
59348
59390
|
});
|
|
59349
59391
|
}
|
|
59392
|
+
},
|
|
59393
|
+
{
|
|
59394
|
+
version: "0.28.1",
|
|
59395
|
+
fix: () => !1
|
|
59350
59396
|
}
|
|
59351
59397
|
];
|
|
59352
59398
|
let d = 0, g = r.length - 1, v = r.length;
|
|
@@ -59355,7 +59401,7 @@ function applyFixes(m, t) {
|
|
|
59355
59401
|
compareVersion(r[C].version, m) > 0 ? (v = C, g = C - 1) : d = C + 1;
|
|
59356
59402
|
}
|
|
59357
59403
|
for (let C = v; C < r.length; C++)
|
|
59358
|
-
r[C].fix()
|
|
59404
|
+
r[C].fix() !== !1 && (t.c.version = r[C].version);
|
|
59359
59405
|
}
|
|
59360
59406
|
const fixJSON = (m) => {
|
|
59361
59407
|
var t;
|
|
@@ -59375,8 +59421,8 @@ const fixJSON = (m) => {
|
|
|
59375
59421
|
};
|
|
59376
59422
|
class Hooks {
|
|
59377
59423
|
constructor(t) {
|
|
59378
|
-
|
|
59379
|
-
|
|
59424
|
+
_0(this, "editor");
|
|
59425
|
+
_0(this, "events", {
|
|
59380
59426
|
beforeSetVisOptions: [],
|
|
59381
59427
|
beforeExecuteUndo: [],
|
|
59382
59428
|
afterExecuteUndo: [],
|
|
@@ -59386,7 +59432,7 @@ class Hooks {
|
|
|
59386
59432
|
afterFromJSON: [],
|
|
59387
59433
|
errorFromJSON: []
|
|
59388
59434
|
});
|
|
59389
|
-
|
|
59435
|
+
_0(this, "source", "");
|
|
59390
59436
|
this.editor = t, this.addEvents({
|
|
59391
59437
|
beforeFromJSON: () => {
|
|
59392
59438
|
window.postMessage({ type: "vis-core.fromJSON.start" }), console.time("vis-core:time.fromJSON");
|
|
@@ -59441,8 +59487,8 @@ class Hooks {
|
|
|
59441
59487
|
}
|
|
59442
59488
|
class Config {
|
|
59443
59489
|
constructor(t) {
|
|
59444
|
-
|
|
59445
|
-
|
|
59490
|
+
_0(this, "editor");
|
|
59491
|
+
_0(this, "meta", {
|
|
59446
59492
|
name: "",
|
|
59447
59493
|
key: "",
|
|
59448
59494
|
open: !1,
|
|
@@ -59491,20 +59537,20 @@ const jsonFetch = (m, t, r = !1) => {
|
|
|
59491
59537
|
};
|
|
59492
59538
|
class Editor {
|
|
59493
59539
|
constructor(t) {
|
|
59494
|
-
|
|
59495
|
-
|
|
59496
|
-
|
|
59497
|
-
|
|
59498
|
-
|
|
59499
|
-
|
|
59500
|
-
|
|
59501
|
-
|
|
59502
|
-
|
|
59503
|
-
|
|
59504
|
-
|
|
59505
|
-
|
|
59506
|
-
|
|
59507
|
-
|
|
59540
|
+
_0(this, "selected", null);
|
|
59541
|
+
_0(this, "playing", !0);
|
|
59542
|
+
_0(this, "currentMaterialSlot", 0);
|
|
59543
|
+
_0(this, "events", new EventEmitter());
|
|
59544
|
+
_0(this, "history");
|
|
59545
|
+
_0(this, "viewport");
|
|
59546
|
+
_0(this, "hooks");
|
|
59547
|
+
_0(this, "config");
|
|
59548
|
+
_0(this, "pencil");
|
|
59549
|
+
_0(this, "on", this.events.on.bind(this.events));
|
|
59550
|
+
_0(this, "emit", this.events.emit.bind(this.events));
|
|
59551
|
+
_0(this, "options");
|
|
59552
|
+
_0(this, "selectOption", []);
|
|
59553
|
+
_0(this, "_dispose", !1);
|
|
59508
59554
|
this.options = fi({
|
|
59509
59555
|
assetsPrefix: "",
|
|
59510
59556
|
processUndosMaxFrameTime: Number.MAX_VALUE
|
|
@@ -59614,6 +59660,7 @@ class Editor {
|
|
|
59614
59660
|
name: g.object3d.name,
|
|
59615
59661
|
object: g.object3d,
|
|
59616
59662
|
visible: Pe ? !0 : g.object3d.visible,
|
|
59663
|
+
useMaterialType: g.useMaterialType,
|
|
59617
59664
|
disabledCR: O,
|
|
59618
59665
|
disabledTC: Se,
|
|
59619
59666
|
disabledVisible: Pe,
|
|
@@ -60089,7 +60136,7 @@ const BLOCKLISTED_GPUS = [
|
|
|
60089
60136
|
];
|
|
60090
60137
|
class Benchmarks {
|
|
60091
60138
|
constructor(t) {
|
|
60092
|
-
|
|
60139
|
+
_0(this, "renderer");
|
|
60093
60140
|
this.renderer = t;
|
|
60094
60141
|
}
|
|
60095
60142
|
query() {
|
|
@@ -60121,8 +60168,8 @@ class Benchmarks {
|
|
|
60121
60168
|
}
|
|
60122
60169
|
class WebGL {
|
|
60123
60170
|
constructor() {
|
|
60124
|
-
|
|
60125
|
-
|
|
60171
|
+
_0(this, "rawRenderer");
|
|
60172
|
+
_0(this, "renderer");
|
|
60126
60173
|
const t = this.getRawRenderer();
|
|
60127
60174
|
this.rawRenderer = t;
|
|
60128
60175
|
const r = this.getRenderer();
|
|
@@ -60245,30 +60292,30 @@ class Base extends Camera {
|
|
|
60245
60292
|
constructor(r) {
|
|
60246
60293
|
var d;
|
|
60247
60294
|
super();
|
|
60248
|
-
|
|
60249
|
-
|
|
60250
|
-
|
|
60251
|
-
|
|
60252
|
-
|
|
60253
|
-
|
|
60254
|
-
|
|
60255
|
-
|
|
60256
|
-
|
|
60257
|
-
|
|
60258
|
-
|
|
60259
|
-
|
|
60260
|
-
|
|
60261
|
-
|
|
60262
|
-
|
|
60263
|
-
|
|
60264
|
-
|
|
60265
|
-
|
|
60266
|
-
|
|
60267
|
-
|
|
60268
|
-
|
|
60269
|
-
|
|
60270
|
-
|
|
60271
|
-
|
|
60295
|
+
_0(this, "playing", !0);
|
|
60296
|
+
_0(this, "leftTruck", !0);
|
|
60297
|
+
_0(this, "options");
|
|
60298
|
+
_0(this, "showState", !1);
|
|
60299
|
+
_0(this, "settings", {});
|
|
60300
|
+
_0(this, "delLoadArr");
|
|
60301
|
+
_0(this, "extendsOptions", {});
|
|
60302
|
+
_0(this, "leadObjs", objs$3);
|
|
60303
|
+
_0(this, "lead");
|
|
60304
|
+
_0(this, "mList");
|
|
60305
|
+
_0(this, "workerOnce", !0);
|
|
60306
|
+
_0(this, "tier0", !1);
|
|
60307
|
+
_0(this, "pmremGenerator", null);
|
|
60308
|
+
_0(this, "re", null);
|
|
60309
|
+
_0(this, "roomEnvMap");
|
|
60310
|
+
_0(this, "visName");
|
|
60311
|
+
_0(this, "editor");
|
|
60312
|
+
_0(this, "publicDir", {});
|
|
60313
|
+
_0(this, "_baseObjectByUuid");
|
|
60314
|
+
_0(this, "_objectByUuid");
|
|
60315
|
+
_0(this, "observeScale", null);
|
|
60316
|
+
_0(this, "sceneActive", -1);
|
|
60317
|
+
_0(this, "initSettingsObj");
|
|
60318
|
+
_0(this, "mouseButtonsActiveStore", null);
|
|
60272
60319
|
if (this.container = r.container, this.options = fi({
|
|
60273
60320
|
assetsPrefix: "",
|
|
60274
60321
|
editor: !0,
|
|
@@ -60616,7 +60663,7 @@ class Base extends Camera {
|
|
|
60616
60663
|
super.dispose(), this.editor && (this.editor.viewport.vis = void 0, this.editor.dispose()), this.publicDir = {}, this.options.pencil ? this.pencil.removePage(this.sceneActive) : this.options.pencil2 || (r = this.pencil) == null || r.dispose(), (d = this.pmremGenerator) == null || d.dispose(), (g = this.re) == null || g.dispose(), (v = this.observeScale) == null || v.disconnect();
|
|
60617
60664
|
}
|
|
60618
60665
|
}
|
|
60619
|
-
|
|
60666
|
+
_0(Base, "VisName", "base");
|
|
60620
60667
|
function clipGeojson(m, t) {
|
|
60621
60668
|
const r = flatten$3(m).features, d = flatten$3(t).features, g = {
|
|
60622
60669
|
type: "FeatureCollection",
|
|
@@ -60655,10 +60702,10 @@ const getBoxMultiPoly = (m) => {
|
|
|
60655
60702
|
class Building extends ft$1 {
|
|
60656
60703
|
constructor(r) {
|
|
60657
60704
|
super();
|
|
60658
|
-
|
|
60659
|
-
|
|
60660
|
-
|
|
60661
|
-
|
|
60705
|
+
_0(this, "options");
|
|
60706
|
+
_0(this, "building", {});
|
|
60707
|
+
_0(this, "outJson", /* @__PURE__ */ new Map());
|
|
60708
|
+
_0(this, "worldPositionZ", {
|
|
60662
60709
|
value: 0
|
|
60663
60710
|
});
|
|
60664
60711
|
this.options = fi({}, r);
|
|
@@ -60800,10 +60847,10 @@ class Building extends ft$1 {
|
|
|
60800
60847
|
class Road extends ft$1 {
|
|
60801
60848
|
constructor(r) {
|
|
60802
60849
|
super();
|
|
60803
|
-
|
|
60804
|
-
|
|
60805
|
-
|
|
60806
|
-
|
|
60850
|
+
_0(this, "options");
|
|
60851
|
+
_0(this, "outJson", /* @__PURE__ */ new Map());
|
|
60852
|
+
_0(this, "linePrimary", []);
|
|
60853
|
+
_0(this, "lineSecondary", []);
|
|
60807
60854
|
this.options = fi({}, r);
|
|
60808
60855
|
}
|
|
60809
60856
|
create() {
|
|
@@ -60881,9 +60928,9 @@ class Road extends ft$1 {
|
|
|
60881
60928
|
class Area extends ft$1 {
|
|
60882
60929
|
constructor(r) {
|
|
60883
60930
|
super();
|
|
60884
|
-
|
|
60885
|
-
|
|
60886
|
-
|
|
60931
|
+
_0(this, "options");
|
|
60932
|
+
_0(this, "area", []);
|
|
60933
|
+
_0(this, "outJson", /* @__PURE__ */ new Map());
|
|
60887
60934
|
this.options = fi({}, r);
|
|
60888
60935
|
}
|
|
60889
60936
|
create() {
|
|
@@ -61430,9 +61477,9 @@ Water.WaterShader = {
|
|
|
61430
61477
|
class CityPlane extends ft$1 {
|
|
61431
61478
|
constructor(r) {
|
|
61432
61479
|
super();
|
|
61433
|
-
|
|
61434
|
-
|
|
61435
|
-
|
|
61480
|
+
_0(this, "options");
|
|
61481
|
+
_0(this, "plane");
|
|
61482
|
+
_0(this, "water");
|
|
61436
61483
|
this.options = fi({
|
|
61437
61484
|
color: "#0C4557",
|
|
61438
61485
|
map: null
|
|
@@ -61476,12 +61523,12 @@ function getCanvasTexture(m) {
|
|
|
61476
61523
|
class Target extends ft$1 {
|
|
61477
61524
|
constructor(r) {
|
|
61478
61525
|
super();
|
|
61479
|
-
|
|
61480
|
-
|
|
61481
|
-
|
|
61482
|
-
|
|
61483
|
-
|
|
61484
|
-
|
|
61526
|
+
_0(this, "options");
|
|
61527
|
+
_0(this, "time", { value: 0 });
|
|
61528
|
+
_0(this, "offset", new Vector2(0, 0));
|
|
61529
|
+
_0(this, "timer", null);
|
|
61530
|
+
_0(this, "inTween", null);
|
|
61531
|
+
_0(this, "outTween", null);
|
|
61485
61532
|
this.options = r;
|
|
61486
61533
|
}
|
|
61487
61534
|
createWave(r) {
|
|
@@ -139828,18 +139875,18 @@ const continentsBbox = continentsBboxObj, continentsM49 = {
|
|
|
139828
139875
|
class City$1 extends Base {
|
|
139829
139876
|
constructor() {
|
|
139830
139877
|
super(...arguments);
|
|
139831
|
-
|
|
139832
|
-
|
|
139833
|
-
|
|
139834
|
-
|
|
139878
|
+
_0(this, "leadObjs", objs$2);
|
|
139879
|
+
_0(this, "adcode", 0);
|
|
139880
|
+
_0(this, "pcenter", [104, 37.5]);
|
|
139881
|
+
_0(this, "pscale", 5e4);
|
|
139835
139882
|
// pscale = 50000 / 1000;
|
|
139836
|
-
|
|
139837
|
-
|
|
139838
|
-
|
|
139839
|
-
|
|
139840
|
-
|
|
139841
|
-
|
|
139842
|
-
|
|
139883
|
+
_0(this, "projection");
|
|
139884
|
+
_0(this, "group");
|
|
139885
|
+
_0(this, "building");
|
|
139886
|
+
_0(this, "road");
|
|
139887
|
+
_0(this, "innerAreaGroup");
|
|
139888
|
+
_0(this, "outAreaGroup");
|
|
139889
|
+
_0(this, "multiplyScalar", 1);
|
|
139843
139890
|
}
|
|
139844
139891
|
setOptions(r) {
|
|
139845
139892
|
super.setOptions(fi({
|
|
@@ -140262,11 +140309,11 @@ class City$1 extends Base {
|
|
|
140262
140309
|
};
|
|
140263
140310
|
}
|
|
140264
140311
|
}
|
|
140265
|
-
|
|
140312
|
+
_0(City$1, "VisName", "city");
|
|
140266
140313
|
class City extends City$1 {
|
|
140267
140314
|
constructor() {
|
|
140268
140315
|
super(...arguments);
|
|
140269
|
-
|
|
140316
|
+
_0(this, "multiplyScalar", 1 / 1e3);
|
|
140270
140317
|
}
|
|
140271
140318
|
fixNearFar(r = 0.01, d) {
|
|
140272
140319
|
this.pencil.camera.near = r * this.multiplyScalar, d && (this.pencil.camera.far = d * this.multiplyScalar), this.pencil.camera.updateProjectionMatrix();
|
|
@@ -140280,14 +140327,14 @@ let PlaneMap$1 = class extends ft$1 {
|
|
|
140280
140327
|
constructor(r) {
|
|
140281
140328
|
var d;
|
|
140282
140329
|
super();
|
|
140283
|
-
|
|
140284
|
-
|
|
140285
|
-
|
|
140286
|
-
|
|
140287
|
-
|
|
140288
|
-
|
|
140289
|
-
|
|
140290
|
-
|
|
140330
|
+
_0(this, "options");
|
|
140331
|
+
_0(this, "isActive", !0);
|
|
140332
|
+
_0(this, "groupArr", []);
|
|
140333
|
+
_0(this, "areaArr", []);
|
|
140334
|
+
_0(this, "lineArr");
|
|
140335
|
+
_0(this, "mergeSideArea", null);
|
|
140336
|
+
_0(this, "extrudelineArr");
|
|
140337
|
+
_0(this, "splitPolygons", 0);
|
|
140291
140338
|
this.options = fi({
|
|
140292
140339
|
areaGroup: !0,
|
|
140293
140340
|
hasSide: !0,
|
|
@@ -140616,8 +140663,8 @@ let PlaneMap$1 = class extends ft$1 {
|
|
|
140616
140663
|
class ContinentsBg extends ft$1 {
|
|
140617
140664
|
constructor(r) {
|
|
140618
140665
|
super();
|
|
140619
|
-
|
|
140620
|
-
|
|
140666
|
+
_0(this, "options");
|
|
140667
|
+
_0(this, "mapArr", []);
|
|
140621
140668
|
this.options = r;
|
|
140622
140669
|
}
|
|
140623
140670
|
create() {
|
|
@@ -140691,8 +140738,8 @@ class ContinentsBg extends ft$1 {
|
|
|
140691
140738
|
class PlaneMap extends ft$1 {
|
|
140692
140739
|
constructor(r) {
|
|
140693
140740
|
super();
|
|
140694
|
-
|
|
140695
|
-
|
|
140741
|
+
_0(this, "options");
|
|
140742
|
+
_0(this, "extrudePolygon");
|
|
140696
140743
|
this.options = fi({
|
|
140697
140744
|
depth: 2
|
|
140698
140745
|
}, r);
|
|
@@ -141149,25 +141196,25 @@ const objs$1 = Ui(fi({}, objs$3), {
|
|
|
141149
141196
|
}, yn = class yn extends Base {
|
|
141150
141197
|
constructor() {
|
|
141151
141198
|
super(...arguments);
|
|
141152
|
-
|
|
141153
|
-
|
|
141154
|
-
|
|
141155
|
-
|
|
141156
|
-
|
|
141157
|
-
|
|
141158
|
-
|
|
141159
|
-
|
|
141160
|
-
|
|
141161
|
-
|
|
141162
|
-
|
|
141163
|
-
|
|
141164
|
-
|
|
141199
|
+
_0(this, "leadObjs", objs$1);
|
|
141200
|
+
_0(this, "mapHistory", []);
|
|
141201
|
+
_0(this, "activePlaneMap", null);
|
|
141202
|
+
_0(this, "isAnimating", !1);
|
|
141203
|
+
_0(this, "parentBg", []);
|
|
141204
|
+
_0(this, "continentsBg");
|
|
141205
|
+
_0(this, "group");
|
|
141206
|
+
_0(this, "projection");
|
|
141207
|
+
_0(this, "pcenter", [104, 37.5]);
|
|
141208
|
+
_0(this, "pscale", 5e4 / 1e3);
|
|
141209
|
+
_0(this, "meters");
|
|
141210
|
+
_0(this, "cityVis", null);
|
|
141211
|
+
_0(this, "extendsOptions", {
|
|
141165
141212
|
mapDepth: () => this.getOptionsDepth(this.options.adcode),
|
|
141166
141213
|
equirectangular: () => this.options.projectionType === "equirectangular",
|
|
141167
141214
|
mapBoundary: () => this.options.mapBoundary,
|
|
141168
141215
|
mergeSide: () => this.options.mergeSide
|
|
141169
141216
|
});
|
|
141170
|
-
|
|
141217
|
+
_0(this, "initSettingsObj", {
|
|
141171
141218
|
label: !1,
|
|
141172
141219
|
labelLite: !1,
|
|
141173
141220
|
shadowMap: !1
|
|
@@ -141176,9 +141223,9 @@ const objs$1 = Ui(fi({}, objs$3), {
|
|
|
141176
141223
|
// '测试边框宽度:::caId': 0,
|
|
141177
141224
|
// '测试添加面.btn:::caId': 0,
|
|
141178
141225
|
});
|
|
141179
|
-
|
|
141180
|
-
|
|
141181
|
-
|
|
141226
|
+
_0(this, "caId");
|
|
141227
|
+
_0(this, "shadowMapLight");
|
|
141228
|
+
_0(this, "planeShadow");
|
|
141182
141229
|
}
|
|
141183
141230
|
get mapObj() {
|
|
141184
141231
|
return this.mapHistory[this.mapHistory.length - 1];
|
|
@@ -142163,12 +142210,12 @@ const objs$1 = Ui(fi({}, objs$3), {
|
|
|
142163
142210
|
}), this.parentBg.length = 0, (g = this.continentsBg) == null || g.dispose(), this.continentsBg = void 0, this.mapHistory.length = 0, super.dispose();
|
|
142164
142211
|
}
|
|
142165
142212
|
};
|
|
142166
|
-
|
|
142213
|
+
_0(yn, "VisName", "map");
|
|
142167
142214
|
let index$1 = yn;
|
|
142168
142215
|
class Earth extends Sphere {
|
|
142169
142216
|
constructor(r) {
|
|
142170
142217
|
super();
|
|
142171
|
-
|
|
142218
|
+
_0(this, "options");
|
|
142172
142219
|
this.options = fi({
|
|
142173
142220
|
radius: 30,
|
|
142174
142221
|
rotationY: 0
|
|
@@ -142182,9 +142229,9 @@ class Earth extends Sphere {
|
|
|
142182
142229
|
class Countries extends ft$1 {
|
|
142183
142230
|
constructor(r) {
|
|
142184
142231
|
super();
|
|
142185
|
-
|
|
142186
|
-
|
|
142187
|
-
|
|
142232
|
+
_0(this, "options");
|
|
142233
|
+
_0(this, "areaArr", []);
|
|
142234
|
+
_0(this, "lineArr", []);
|
|
142188
142235
|
this.options = fi({
|
|
142189
142236
|
start: 30,
|
|
142190
142237
|
depth: 1.4,
|
|
@@ -142273,7 +142320,7 @@ class Countries extends ft$1 {
|
|
|
142273
142320
|
class SphereShadow extends ft$1 {
|
|
142274
142321
|
constructor(r) {
|
|
142275
142322
|
super();
|
|
142276
|
-
|
|
142323
|
+
_0(this, "options");
|
|
142277
142324
|
this.options = fi({
|
|
142278
142325
|
radius: 30
|
|
142279
142326
|
}, r);
|
|
@@ -142521,13 +142568,13 @@ const objs = Ui(fi({}, objs$3), {
|
|
|
142521
142568
|
}, Symbol.toStringTag, { value: "Module" })), Xn = class Xn extends Base {
|
|
142522
142569
|
constructor() {
|
|
142523
142570
|
super(...arguments);
|
|
142524
|
-
|
|
142525
|
-
|
|
142526
|
-
|
|
142571
|
+
_0(this, "leadObjs", objs);
|
|
142572
|
+
_0(this, "leftTruck", !1);
|
|
142573
|
+
_0(this, "extendsOptions", {
|
|
142527
142574
|
mapDepth: () => this.options.mapDepth
|
|
142528
142575
|
});
|
|
142529
|
-
|
|
142530
|
-
|
|
142576
|
+
_0(this, "map");
|
|
142577
|
+
_0(this, "autoRotateSpeed", 0);
|
|
142531
142578
|
}
|
|
142532
142579
|
get mapArea() {
|
|
142533
142580
|
return this.map.areaArr;
|
|
@@ -142655,7 +142702,7 @@ const objs = Ui(fi({}, objs$3), {
|
|
|
142655
142702
|
});
|
|
142656
142703
|
}
|
|
142657
142704
|
};
|
|
142658
|
-
|
|
142705
|
+
_0(Xn, "VisName", "earth");
|
|
142659
142706
|
let index = Xn;
|
|
142660
142707
|
const ec = (m, t) => {
|
|
142661
142708
|
const r = stringToUtf8ByteArray(m), d = stringToUtf8ByteArray(t).map(function(g, v) {
|