pptx-svelte-viewer 2.20.4 → 2.20.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/{AiChatPanel-Bpx1xBL5.js → AiChatPanel-loOqMQN8.js} +471 -467
- package/dist/{GLTFLoader-CAjQhVgN.js → GLTFLoader-9vQ_XShd.js} +43 -44
- package/dist/{OrbitControls-B2ezETBF.js → OrbitControls-DRqFov_0.js} +5 -9
- package/dist/{awareness-CkFlr7xx.js → awareness-CrSnuSE_.js} +1 -1
- package/dist/{export-CEyYhd0_.js → export-BPyf11v8.js} +21477 -21273
- package/dist/index.js +1 -1
- package/dist/pptx-svelte-viewer.css +1 -1
- package/dist/{smartart-3d-BLqXYusO.js → smartart-3d-CX2GnyTe.js} +2 -2
- package/dist/{three.module-BLwnGxzY.js → three.module-BAfeCwYa.js} +890 -868
- package/dist/viewer/collab/collaboration.svelte.d.ts +5 -0
- package/dist/viewer/collab/collaboration.svelte.d.ts.map +1 -1
- package/dist/viewer/collab/components/props.d.ts +8 -0
- package/dist/viewer/collab/components/props.d.ts.map +1 -1
- package/dist/viewer/index.d.ts +5 -0
- package/dist/viewer/index.js +1 -1
- package/dist/{y-webrtc-Cph8DzuM.js → y-webrtc-Ctru8jg8.js} +37 -38
- package/dist/y-websocket-BgHVdw-O.js +125 -0
- package/dist/{yjs-CE9F053g.js → yjs-DbU20bpp.js} +383 -385
- package/package.json +6 -6
- package/dist/y-websocket-C6aE1Dkp.js +0 -115
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnimationClip as Te, Bone as Re, Box3 as Ee, BufferAttribute as j, BufferGeometry as Ae, ClampToEdgeWrapping as _e, Color as O, ColorManagement as J, DirectionalLight as ve, FileLoader as ce, Group as V, ImageBitmapLoader as Le, InstancedBufferAttribute as Me, InstancedMesh as xe, InterleavedBuffer as Se, InterleavedBufferAttribute as ye, Interpolant as we, InterpolateDiscrete as
|
|
1
|
+
import { AnimationClip as Te, Bone as Re, Box3 as Ee, BufferAttribute as j, BufferGeometry as Ae, ClampToEdgeWrapping as _e, Color as O, ColorManagement as J, DirectionalLight as ve, FileLoader as ce, Group as V, ImageBitmapLoader as Le, InstancedBufferAttribute as Me, InstancedMesh as xe, InterleavedBuffer as Se, InterleavedBufferAttribute as ye, Interpolant as we, InterpolateDiscrete as Ne, InterpolateLinear as le, Line as be, LineBasicMaterial as Ie, LineLoop as Oe, LineSegments as Ce, LinearFilter as Fe, LinearMipmapLinearFilter as Pe, LinearMipmapNearestFilter as He, LinearSRGBColorSpace as N, Loader as ke, LoaderUtils as D, Material as X, MathUtils as De, Matrix4 as U, Mesh as Ge, MeshBasicMaterial as k, MeshPhysicalMaterial as x, MeshStandardMaterial as ue, MirroredRepeatWrapping as Ue, NearestFilter as Be, NearestMipmapLinearFilter as Ke, NearestMipmapNearestFilter as je, NumberKeyframeTrack as Z, Object3D as he, OrthographicCamera as Ve, PerspectiveCamera as Xe, PointLight as ze, Points as qe, PointsMaterial as We, PropertyBinding as Ye, Quaternion as fe, QuaternionKeyframeTrack as $, RepeatWrapping as Qe, SRGBColorSpace as G, Skeleton as Je, SkinnedMesh as Ze, Sphere as $e, SpotLight as et, Texture as ee, TextureLoader as tt, Vector2 as de, Vector3 as I, VectorKeyframeTrack as te } from "./three.module-BAfeCwYa.js";
|
|
2
2
|
function se(e, t) {
|
|
3
3
|
if (t === 0)
|
|
4
4
|
return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."), e;
|
|
@@ -38,7 +38,7 @@ function pe(e, t, n) {
|
|
|
38
38
|
n(e, t);
|
|
39
39
|
for (let s = 0; s < e.children.length; s++) pe(e.children[s], t.children[s], n);
|
|
40
40
|
}
|
|
41
|
-
var Kt = class extends
|
|
41
|
+
var Kt = class extends ke {
|
|
42
42
|
constructor(e) {
|
|
43
43
|
super(e), this.dracoLoader = null, this.ktx2Loader = null, this.meshoptDecoder = null, this.pluginCallbacks = [], this.register(function(t) {
|
|
44
44
|
return new at(t);
|
|
@@ -119,15 +119,16 @@ var Kt = class extends He {
|
|
|
119
119
|
let r;
|
|
120
120
|
const i = {}, o = {}, a = new TextDecoder();
|
|
121
121
|
if (typeof e == "string") r = JSON.parse(e);
|
|
122
|
-
else if (e instanceof ArrayBuffer)
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
122
|
+
else if (e instanceof ArrayBuffer)
|
|
123
|
+
if (a.decode(new Uint8Array(e, 0, 4)) === me) {
|
|
124
|
+
try {
|
|
125
|
+
i[m.KHR_BINARY_GLTF] = new _t(e);
|
|
126
|
+
} catch (l) {
|
|
127
|
+
s && s(l);
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
r = JSON.parse(i[m.KHR_BINARY_GLTF].content);
|
|
131
|
+
} else r = JSON.parse(a.decode(e));
|
|
131
132
|
else r = e;
|
|
132
133
|
if (r.asset === void 0 || r.asset.version[0] < 2) {
|
|
133
134
|
s && s(/* @__PURE__ */ new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported."));
|
|
@@ -240,7 +241,7 @@ var m = {
|
|
|
240
241
|
const r = t.json, i = ((r.extensions && r.extensions[this.name] || {}).lights || [])[e];
|
|
241
242
|
let o;
|
|
242
243
|
const a = new O(16777215);
|
|
243
|
-
i.color !== void 0 && a.setRGB(i.color[0], i.color[1], i.color[2],
|
|
244
|
+
i.color !== void 0 && a.setRGB(i.color[0], i.color[1], i.color[2], N);
|
|
244
245
|
const c = i.range !== void 0 ? i.range : 0;
|
|
245
246
|
switch (i.type) {
|
|
246
247
|
case "directional":
|
|
@@ -272,7 +273,7 @@ var m = {
|
|
|
272
273
|
this.name = m.KHR_MATERIALS_UNLIT;
|
|
273
274
|
}
|
|
274
275
|
getMaterialType() {
|
|
275
|
-
return
|
|
276
|
+
return k;
|
|
276
277
|
}
|
|
277
278
|
extendParams(e, t, n) {
|
|
278
279
|
const s = [];
|
|
@@ -281,7 +282,7 @@ var m = {
|
|
|
281
282
|
if (r) {
|
|
282
283
|
if (Array.isArray(r.baseColorFactor)) {
|
|
283
284
|
const i = r.baseColorFactor;
|
|
284
|
-
e.color.setRGB(i[0], i[1], i[2],
|
|
285
|
+
e.color.setRGB(i[0], i[1], i[2], N), e.opacity = i[3];
|
|
285
286
|
}
|
|
286
287
|
r.baseColorTexture !== void 0 && s.push(n.assignTexture(e, "map", r.baseColorTexture, G));
|
|
287
288
|
}
|
|
@@ -349,7 +350,7 @@ var m = {
|
|
|
349
350
|
const s = [];
|
|
350
351
|
if (t.sheenColor = new O(0, 0, 0), t.sheenRoughness = 0, t.sheen = 1, n.sheenColorFactor !== void 0) {
|
|
351
352
|
const r = n.sheenColorFactor;
|
|
352
|
-
t.sheenColor.setRGB(r[0], r[1], r[2],
|
|
353
|
+
t.sheenColor.setRGB(r[0], r[1], r[2], N);
|
|
353
354
|
}
|
|
354
355
|
return n.sheenRoughnessFactor !== void 0 && (t.sheenRoughness = n.sheenRoughnessFactor), n.sheenColorTexture !== void 0 && s.push(this.parser.assignTexture(t, "sheenColorMap", n.sheenColorTexture, G)), n.sheenRoughnessTexture !== void 0 && s.push(this.parser.assignTexture(t, "sheenRoughnessMap", n.sheenRoughnessTexture)), Promise.all(s);
|
|
355
356
|
}
|
|
@@ -383,7 +384,7 @@ var m = {
|
|
|
383
384
|
1,
|
|
384
385
|
1
|
|
385
386
|
];
|
|
386
|
-
return t.attenuationColor = new O().setRGB(r[0], r[1], r[2],
|
|
387
|
+
return t.attenuationColor = new O().setRGB(r[0], r[1], r[2], N), Promise.all(s);
|
|
387
388
|
}
|
|
388
389
|
}, dt = class {
|
|
389
390
|
constructor(e) {
|
|
@@ -413,7 +414,7 @@ var m = {
|
|
|
413
414
|
1,
|
|
414
415
|
1
|
|
415
416
|
];
|
|
416
|
-
return t.specularColor = new O().setRGB(r[0], r[1], r[2],
|
|
417
|
+
return t.specularColor = new O().setRGB(r[0], r[1], r[2], N), n.specularColorTexture !== void 0 && s.push(this.parser.assignTexture(t, "specularColorMap", n.specularColorTexture, G)), Promise.all(s);
|
|
417
418
|
}
|
|
418
419
|
}, mt = class {
|
|
419
420
|
constructor(e) {
|
|
@@ -534,30 +535,30 @@ var m = {
|
|
|
534
535
|
return c.isGroup ? (c.clear(), c.add(...h), c) : h[0];
|
|
535
536
|
}));
|
|
536
537
|
}
|
|
537
|
-
}, me = "glTF",
|
|
538
|
+
}, me = "glTF", H = 12, re = {
|
|
538
539
|
JSON: 1313821514,
|
|
539
540
|
BIN: 5130562
|
|
540
541
|
}, _t = class {
|
|
541
542
|
constructor(e) {
|
|
542
543
|
this.name = m.KHR_BINARY_GLTF, this.content = null, this.body = null;
|
|
543
|
-
const t = new DataView(e, 0,
|
|
544
|
+
const t = new DataView(e, 0, H), n = new TextDecoder();
|
|
544
545
|
if (this.header = {
|
|
545
546
|
magic: n.decode(new Uint8Array(e.slice(0, 4))),
|
|
546
547
|
version: t.getUint32(4, !0),
|
|
547
548
|
length: t.getUint32(8, !0)
|
|
548
549
|
}, this.header.magic !== me) throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");
|
|
549
550
|
if (this.header.version < 2) throw new Error("THREE.GLTFLoader: Legacy binary file detected.");
|
|
550
|
-
const s = this.header.length -
|
|
551
|
+
const s = this.header.length - H, r = new DataView(e, H);
|
|
551
552
|
let i = 0;
|
|
552
553
|
for (; i < s; ) {
|
|
553
554
|
const o = r.getUint32(i, !0);
|
|
554
555
|
i += 4;
|
|
555
556
|
const a = r.getUint32(i, !0);
|
|
556
557
|
if (i += 4, a === re.JSON) {
|
|
557
|
-
const c = new Uint8Array(e,
|
|
558
|
+
const c = new Uint8Array(e, H + i, o);
|
|
558
559
|
this.content = n.decode(c);
|
|
559
560
|
} else if (a === re.BIN) {
|
|
560
|
-
const c =
|
|
561
|
+
const c = H + i;
|
|
561
562
|
this.body = e.slice(c, c + o);
|
|
562
563
|
}
|
|
563
564
|
i += o;
|
|
@@ -590,7 +591,7 @@ var m = {
|
|
|
590
591
|
d !== void 0 && (g.normalized = d);
|
|
591
592
|
}
|
|
592
593
|
u(f);
|
|
593
|
-
}, o, c,
|
|
594
|
+
}, o, c, N, h);
|
|
594
595
|
});
|
|
595
596
|
});
|
|
596
597
|
}
|
|
@@ -657,7 +658,7 @@ var m = {
|
|
|
657
658
|
9728: Be,
|
|
658
659
|
9729: Fe,
|
|
659
660
|
9984: je,
|
|
660
|
-
9985:
|
|
661
|
+
9985: He,
|
|
661
662
|
9986: Ke,
|
|
662
663
|
9987: Pe
|
|
663
664
|
}, oe = {
|
|
@@ -691,7 +692,7 @@ var m = {
|
|
|
691
692
|
}, yt = {
|
|
692
693
|
CUBICSPLINE: void 0,
|
|
693
694
|
LINEAR: le,
|
|
694
|
-
STEP:
|
|
695
|
+
STEP: Ne
|
|
695
696
|
}, q = {
|
|
696
697
|
OPAQUE: "OPAQUE",
|
|
697
698
|
MASK: "MASK",
|
|
@@ -708,13 +709,13 @@ function wt(e) {
|
|
|
708
709
|
side: 0
|
|
709
710
|
})), e.DefaultMaterial;
|
|
710
711
|
}
|
|
711
|
-
function
|
|
712
|
+
function b(e, t, n) {
|
|
712
713
|
for (const s in n.extensions) e[s] === void 0 && (t.userData.gltfExtensions = t.userData.gltfExtensions || {}, t.userData.gltfExtensions[s] = n.extensions[s]);
|
|
713
714
|
}
|
|
714
715
|
function M(e, t) {
|
|
715
716
|
t.extras !== void 0 && (typeof t.extras == "object" ? Object.assign(e.userData, t.extras) : console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, " + t.extras));
|
|
716
717
|
}
|
|
717
|
-
function
|
|
718
|
+
function Nt(e, t, n) {
|
|
718
719
|
let s = !1, r = !1, i = !1;
|
|
719
720
|
for (let l = 0, u = t.length; l < u; l++) {
|
|
720
721
|
const h = t[l];
|
|
@@ -746,7 +747,7 @@ function bt(e, t, n) {
|
|
|
746
747
|
return s && (e.morphAttributes.position = u), r && (e.morphAttributes.normal = h), i && (e.morphAttributes.color = f), e.morphTargetsRelative = !0, e;
|
|
747
748
|
});
|
|
748
749
|
}
|
|
749
|
-
function
|
|
750
|
+
function bt(e, t) {
|
|
750
751
|
if (e.updateMorphTargets(), t.weights !== void 0) for (let n = 0, s = t.weights.length; n < s; n++) e.morphTargetInfluences[n] = t.weights[n];
|
|
751
752
|
if (t.extras && Array.isArray(t.extras.targetNames)) {
|
|
752
753
|
const n = t.extras.targetNames;
|
|
@@ -834,7 +835,7 @@ var Ct = new U(), Ft = class {
|
|
|
834
835
|
parser: n,
|
|
835
836
|
userData: {}
|
|
836
837
|
};
|
|
837
|
-
return
|
|
838
|
+
return b(r, o, s), M(o, s), Promise.all(n._invokeAll(function(a) {
|
|
838
839
|
return a.afterRoot && a.afterRoot(o);
|
|
839
840
|
})).then(function() {
|
|
840
841
|
for (const a of o.scenes) a.updateMatrixWorld();
|
|
@@ -938,7 +939,6 @@ var Ct = new U(), Ft = class {
|
|
|
938
939
|
if (s = this._invokeOne(function(r) {
|
|
939
940
|
return r != this && r.getDependency && r.getDependency(e, t);
|
|
940
941
|
}), !s) throw new Error("Unknown type: " + e);
|
|
941
|
-
break;
|
|
942
942
|
}
|
|
943
943
|
this.cache.add(n, s);
|
|
944
944
|
}
|
|
@@ -1096,7 +1096,7 @@ var Ct = new U(), Ft = class {
|
|
|
1096
1096
|
const u = r.pbrMetallicRoughness || {};
|
|
1097
1097
|
if (o.color = new O(1, 1, 1), o.opacity = 1, Array.isArray(u.baseColorFactor)) {
|
|
1098
1098
|
const h = u.baseColorFactor;
|
|
1099
|
-
o.color.setRGB(h[0], h[1], h[2],
|
|
1099
|
+
o.color.setRGB(h[0], h[1], h[2], N), o.opacity = h[3];
|
|
1100
1100
|
}
|
|
1101
1101
|
u.baseColorTexture !== void 0 && c.push(t.assignTexture(o, "map", u.baseColorTexture, G)), o.metalness = u.metallicFactor !== void 0 ? u.metallicFactor : 1, o.roughness = u.roughnessFactor !== void 0 ? u.roughnessFactor : 1, u.metallicRoughnessTexture !== void 0 && (c.push(t.assignTexture(o, "metalnessMap", u.metallicRoughnessTexture)), c.push(t.assignTexture(o, "roughnessMap", u.metallicRoughnessTexture))), i = this._invokeOne(function(h) {
|
|
1102
1102
|
return h.getMaterialType && h.getMaterialType(e);
|
|
@@ -1106,17 +1106,17 @@ var Ct = new U(), Ft = class {
|
|
|
1106
1106
|
}
|
|
1107
1107
|
r.doubleSided === !0 && (o.side = 2);
|
|
1108
1108
|
const l = r.alphaMode || q.OPAQUE;
|
|
1109
|
-
if (l === q.BLEND ? (o.transparent = !0, o.depthWrite = !1) : (o.transparent = !1, l === q.MASK && (o.alphaTest = r.alphaCutoff !== void 0 ? r.alphaCutoff : 0.5)), r.normalTexture !== void 0 && i !==
|
|
1109
|
+
if (l === q.BLEND ? (o.transparent = !0, o.depthWrite = !1) : (o.transparent = !1, l === q.MASK && (o.alphaTest = r.alphaCutoff !== void 0 ? r.alphaCutoff : 0.5)), r.normalTexture !== void 0 && i !== k && (c.push(t.assignTexture(o, "normalMap", r.normalTexture)), o.normalScale = new de(1, 1), r.normalTexture.scale !== void 0)) {
|
|
1110
1110
|
const u = r.normalTexture.scale;
|
|
1111
1111
|
o.normalScale.set(u, u);
|
|
1112
1112
|
}
|
|
1113
|
-
if (r.occlusionTexture !== void 0 && i !==
|
|
1113
|
+
if (r.occlusionTexture !== void 0 && i !== k && (c.push(t.assignTexture(o, "aoMap", r.occlusionTexture)), r.occlusionTexture.strength !== void 0 && (o.aoMapIntensity = r.occlusionTexture.strength)), r.emissiveFactor !== void 0 && i !== k) {
|
|
1114
1114
|
const u = r.emissiveFactor;
|
|
1115
|
-
o.emissive = new O().setRGB(u[0], u[1], u[2],
|
|
1115
|
+
o.emissive = new O().setRGB(u[0], u[1], u[2], N);
|
|
1116
1116
|
}
|
|
1117
|
-
return r.emissiveTexture !== void 0 && i !==
|
|
1117
|
+
return r.emissiveTexture !== void 0 && i !== k && c.push(t.assignTexture(o, "emissiveMap", r.emissiveTexture, G)), Promise.all(c).then(function() {
|
|
1118
1118
|
const u = new i(o);
|
|
1119
|
-
return r.name && (u.name = r.name), M(u, r), t.associations.set(u, { materials: e }), r.extensions &&
|
|
1119
|
+
return r.name && (u.name = r.name), M(u, r), t.associations.set(u, { materials: e }), r.extensions && b(s, u, r), u;
|
|
1120
1120
|
});
|
|
1121
1121
|
}
|
|
1122
1122
|
createUniqueName(e) {
|
|
@@ -1159,20 +1159,20 @@ var Ct = new U(), Ft = class {
|
|
|
1159
1159
|
if (d.mode === v.TRIANGLES || d.mode === v.TRIANGLE_STRIP || d.mode === v.TRIANGLE_FAN || d.mode === void 0)
|
|
1160
1160
|
T = r.isSkinnedMesh === !0 ? new Ze(g, E) : new Ge(g, E), T.isSkinnedMesh === !0 && T.normalizeSkinWeights(), d.mode === v.TRIANGLE_STRIP ? T.geometry = se(T.geometry, 1) : d.mode === v.TRIANGLE_FAN && (T.geometry = se(T.geometry, 2));
|
|
1161
1161
|
else if (d.mode === v.LINES) T = new Ce(g, E);
|
|
1162
|
-
else if (d.mode === v.LINE_STRIP) T = new
|
|
1162
|
+
else if (d.mode === v.LINE_STRIP) T = new be(g, E);
|
|
1163
1163
|
else if (d.mode === v.LINE_LOOP) T = new Oe(g, E);
|
|
1164
1164
|
else if (d.mode === v.POINTS) T = new qe(g, E);
|
|
1165
1165
|
else throw new Error("THREE.GLTFLoader: Primitive mode unsupported: " + d.mode);
|
|
1166
|
-
Object.keys(T.geometry.morphAttributes).length > 0 &&
|
|
1166
|
+
Object.keys(T.geometry.morphAttributes).length > 0 && bt(T, r), T.name = t.createUniqueName(r.name || "mesh_" + e), M(T, r), d.extensions && b(s, T, d), t.assignFinalMaterial(T), u.push(T);
|
|
1167
1167
|
}
|
|
1168
1168
|
for (let f = 0, p = u.length; f < p; f++) t.associations.set(u[f], {
|
|
1169
1169
|
meshes: e,
|
|
1170
1170
|
primitives: f
|
|
1171
1171
|
});
|
|
1172
1172
|
if (u.length === 1)
|
|
1173
|
-
return r.extensions &&
|
|
1173
|
+
return r.extensions && b(s, u[0], r), u[0];
|
|
1174
1174
|
const h = new V();
|
|
1175
|
-
r.extensions &&
|
|
1175
|
+
r.extensions && b(s, h, r), t.associations.set(h, { meshes: e });
|
|
1176
1176
|
for (let f = 0, p = u.length; f < p; f++) h.add(u[f]);
|
|
1177
1177
|
return h;
|
|
1178
1178
|
});
|
|
@@ -1273,7 +1273,7 @@ var Ct = new U(), Ft = class {
|
|
|
1273
1273
|
}), this.nodeCache[e] = Promise.all(o).then(function(c) {
|
|
1274
1274
|
let l;
|
|
1275
1275
|
if (r.isBone === !0 ? l = new Re() : c.length > 1 ? l = new V() : c.length === 1 ? l = c[0] : l = new he(), l !== c[0]) for (let u = 0, h = c.length; u < h; u++) l.add(c[u]);
|
|
1276
|
-
if (r.name && (l.userData.name = r.name, l.name = i), M(l, r), r.extensions &&
|
|
1276
|
+
if (r.name && (l.userData.name = r.name, l.name = i), M(l, r), r.extensions && b(n, l, r), r.matrix !== void 0) {
|
|
1277
1277
|
const u = new U();
|
|
1278
1278
|
u.fromArray(r.matrix), l.applyMatrix4(u);
|
|
1279
1279
|
} else
|
|
@@ -1288,7 +1288,7 @@ var Ct = new U(), Ft = class {
|
|
|
1288
1288
|
}
|
|
1289
1289
|
loadScene(e) {
|
|
1290
1290
|
const t = this.extensions, n = this.json.scenes[e], s = this, r = new V();
|
|
1291
|
-
n.name && (r.name = s.createUniqueName(n.name)), M(r, n), n.extensions &&
|
|
1291
|
+
n.name && (r.name = s.createUniqueName(n.name)), M(r, n), n.extensions && b(t, r, n);
|
|
1292
1292
|
const i = n.nodes || [], o = [];
|
|
1293
1293
|
for (let a = 0, c = i.length; a < c; a++) o.push(s.getDependency("node", i[a]));
|
|
1294
1294
|
return Promise.all(o).then(function(a) {
|
|
@@ -1327,7 +1327,6 @@ var Ct = new U(), Ft = class {
|
|
|
1327
1327
|
break;
|
|
1328
1328
|
default:
|
|
1329
1329
|
n.itemSize === 1 ? l = Z : l = te;
|
|
1330
|
-
break;
|
|
1331
1330
|
}
|
|
1332
1331
|
const u = s.interpolation !== void 0 ? yt[s.interpolation] : le, h = this._getArrayFromAccessor(n);
|
|
1333
1332
|
for (let f = 0, p = a.length; f < p; f++) {
|
|
@@ -1405,7 +1404,7 @@ function ae(e, t, n) {
|
|
|
1405
1404
|
r.push(o);
|
|
1406
1405
|
}
|
|
1407
1406
|
return J.workingColorSpace !== "srgb-linear" && "COLOR_0" in s && console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${J.workingColorSpace}" not supported.`), M(e, t), Pt(e, t, n), Promise.all(r).then(function() {
|
|
1408
|
-
return t.targets !== void 0 ?
|
|
1407
|
+
return t.targets !== void 0 ? Nt(e, t.targets, n) : e;
|
|
1409
1408
|
});
|
|
1410
1409
|
}
|
|
1411
1410
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Controls as S, MOUSE as _, MathUtils as M, Plane as w, Quaternion as g, Ray as O, Spherical as E, TOUCH as d, Vector2 as l, Vector3 as c } from "./three.module-
|
|
1
|
+
import { Controls as S, MOUSE as _, MathUtils as M, Plane as w, Quaternion as g, Ray as O, Spherical as E, TOUCH as d, Vector2 as l, Vector3 as c } from "./three.module-BAfeCwYa.js";
|
|
2
2
|
var P = { type: "change" }, y = { type: "start" }, T = { type: "end" }, m = new O(), D = new w(), R = Math.cos(70 * M.DEG2RAD), a = new c(), h = 2 * Math.PI, s = {
|
|
3
3
|
NONE: -1,
|
|
4
4
|
ROTATE: 0,
|
|
@@ -22,7 +22,7 @@ var P = { type: "change" }, y = { type: "start" }, T = { type: "end" }, m = new
|
|
|
22
22
|
}, this.touches = {
|
|
23
23
|
ONE: d.ROTATE,
|
|
24
24
|
TWO: d.DOLLY_PAN
|
|
25
|
-
}, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._cursorStyle = "auto", this._domElementKeyEvents = null, this._lastPosition = new c(), this._lastQuaternion = new g(), this._lastTargetPosition = new c(), this._quat = new g().setFromUnitVectors(t.up, new c(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new E(), this._sphericalDelta = new E(), this._scale = 1, this._panOffset = new c(), this._rotateStart = new l(), this._rotateEnd = new l(), this._rotateDelta = new l(), this._panStart = new l(), this._panEnd = new l(), this._panDelta = new l(), this._dollyStart = new l(), this._dollyEnd = new l(), this._dollyDelta = new l(), this._dollyDirection = new c(), this._mouse = new l(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = j.bind(this), this._onPointerDown = L.bind(this), this._onPointerUp = A.bind(this), this._onContextMenu = U.bind(this), this._onMouseWheel =
|
|
25
|
+
}, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._cursorStyle = "auto", this._domElementKeyEvents = null, this._lastPosition = new c(), this._lastQuaternion = new g(), this._lastTargetPosition = new c(), this._quat = new g().setFromUnitVectors(t.up, new c(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new E(), this._sphericalDelta = new E(), this._scale = 1, this._panOffset = new c(), this._rotateStart = new l(), this._rotateEnd = new l(), this._rotateDelta = new l(), this._panStart = new l(), this._panEnd = new l(), this._panDelta = new l(), this._dollyStart = new l(), this._dollyEnd = new l(), this._dollyDelta = new l(), this._dollyDirection = new c(), this._mouse = new l(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = j.bind(this), this._onPointerDown = L.bind(this), this._onPointerUp = A.bind(this), this._onContextMenu = U.bind(this), this._onMouseWheel = k.bind(this), this._onKeyDown = N.bind(this), this._onTouchStart = Y.bind(this), this._onTouchMove = I.bind(this), this._onMouseDown = x.bind(this), this._onMouseMove = C.bind(this), this._interceptControlDown = Z.bind(this), this._interceptControlUp = z.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
|
|
26
26
|
}
|
|
27
27
|
set cursorStyle(t) {
|
|
28
28
|
this._cursorStyle = t, t === "grab" ? this.domElement.style.cursor = "grab" : this.domElement.style.cursor = "auto";
|
|
@@ -192,7 +192,6 @@ var P = { type: "change" }, y = { type: "start" }, T = { type: "end" }, m = new
|
|
|
192
192
|
break;
|
|
193
193
|
case this.keys.RIGHT:
|
|
194
194
|
t.ctrlKey || t.metaKey || t.shiftKey ? this.enableRotate && this._rotateLeft(-h * this.keyRotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(-this.keyPanSpeed, 0), e = !0;
|
|
195
|
-
break;
|
|
196
195
|
}
|
|
197
196
|
e && (t.preventDefault(), this.update());
|
|
198
197
|
}
|
|
@@ -284,7 +283,6 @@ var P = { type: "change" }, y = { type: "start" }, T = { type: "end" }, m = new
|
|
|
284
283
|
break;
|
|
285
284
|
case 2:
|
|
286
285
|
i.deltaY *= 100;
|
|
287
|
-
break;
|
|
288
286
|
}
|
|
289
287
|
return t.ctrlKey && !this._controlActive && (i.deltaY *= 10), i;
|
|
290
288
|
}
|
|
@@ -307,10 +305,9 @@ function A(t) {
|
|
|
307
305
|
pageX: i.x,
|
|
308
306
|
pageY: i.y
|
|
309
307
|
});
|
|
310
|
-
break;
|
|
311
308
|
}
|
|
312
309
|
}
|
|
313
|
-
function
|
|
310
|
+
function x(t) {
|
|
314
311
|
let e;
|
|
315
312
|
switch (t.button) {
|
|
316
313
|
case 0:
|
|
@@ -353,7 +350,7 @@ function k(t) {
|
|
|
353
350
|
}
|
|
354
351
|
this.state !== s.NONE && this.dispatchEvent(y);
|
|
355
352
|
}
|
|
356
|
-
function
|
|
353
|
+
function C(t) {
|
|
357
354
|
switch (this.state) {
|
|
358
355
|
case s.ROTATE:
|
|
359
356
|
if (this.enableRotate === !1) return;
|
|
@@ -366,10 +363,9 @@ function x(t) {
|
|
|
366
363
|
case s.PAN:
|
|
367
364
|
if (this.enablePan === !1) return;
|
|
368
365
|
this._handleMouseMovePan(t);
|
|
369
|
-
break;
|
|
370
366
|
}
|
|
371
367
|
}
|
|
372
|
-
function
|
|
368
|
+
function k(t) {
|
|
373
369
|
this.enabled === !1 || this.enableZoom === !1 || this.state !== s.NONE || (t.preventDefault(), this.dispatchEvent(y), this._handleMouseWheel(this._customWheelEvent(t)), this.dispatchEvent(T));
|
|
374
370
|
}
|
|
375
371
|
function N(t) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as m, B as C, C as A, F as f, H as M, I as V, O as B, S as U, T as _, U as w, _ as E, applyUpdate as j, b as x, c as T, encodeStateAsUpdate as Y, encodeStateVector as F, f as b, g as O, h as J, k as d, l as N, m as q, u as z, x as g } from "./yjs-
|
|
1
|
+
import { A as m, B as C, C as A, F as f, H as M, I as V, O as B, S as U, T as _, U as w, _ as E, applyUpdate as j, b as x, c as T, encodeStateAsUpdate as Y, encodeStateVector as F, f as b, g as O, h as J, k as d, l as N, m as q, u as z, x as g } from "./yjs-DbU20bpp.js";
|
|
2
2
|
var I = /* @__PURE__ */ new Map(), P = class {
|
|
3
3
|
constructor(t) {
|
|
4
4
|
this.room = t, this.onmessage = null, this._onChange = (e) => e.key === t && this.onmessage !== null && this.onmessage({ data: N(e.newValue || "") }), J(this._onChange);
|