world.ts 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2840,7 +2840,7 @@ const B = 34, li = 22, ui = ve(0, B).flatMap(
|
|
|
2840
2840
|
uvwBuffer: v,
|
|
2841
2841
|
indexBuffer: p
|
|
2842
2842
|
}), x = [0, 1, 2, 3], M = x.map(L), _ = x.map(ne), l = x.map(me), T = (g) => {
|
|
2843
|
-
const y = new Array([0, 0, 0]), b = new Array(), { worldToLocal: S, localToClip: U, clipToScreen: F } = g, z =
|
|
2843
|
+
const y = new Array([0, 0, 0]), b = new Array(), { worldToLocal: S, localToClip: U, clipToScreen: F } = g, z = 384 * Math.pow(2, t.downsample?.() ?? 0);
|
|
2844
2844
|
for (; ; ) {
|
|
2845
2845
|
const P = y.pop();
|
|
2846
2846
|
if (!P)
|
|
@@ -3273,7 +3273,7 @@ const ji = ({ gl: e }, t) => {
|
|
|
3273
3273
|
r = !1, x.dispose(), s.dispose(), a instanceof HTMLCanvasElement && f.unobserve(a);
|
|
3274
3274
|
}
|
|
3275
3275
|
};
|
|
3276
|
-
}, Oe = (e) => e.
|
|
3276
|
+
}, Oe = (e, t = []) => e.reduce((n, i) => (Oe(i.children ?? [], n), n.push(i), n), t);
|
|
3277
3277
|
export {
|
|
3278
3278
|
ae as cache,
|
|
3279
3279
|
Xi as cacheAll,
|