Bump dist build

This commit is contained in:
sparkjsdev[bot]
2025-10-24 16:30:02 +00:00
parent 8f90fe0ca6
commit d116b6e3b2
9 changed files with 45 additions and 28 deletions
-1
View File
@@ -1 +0,0 @@
d74c1acc782e408766d90111444dc37d77d70cc2
+14 -5
View File
@@ -9982,7 +9982,7 @@ const _SparkViewpoint = class _SparkViewpoint {
// The method cannot be private because then SparkRenderer would
// not be able to call it.
autoPoll({ accumulator }) {
var _a2, _b2, _c, _d;
var _a2, _b2, _c;
if (this.camera) {
this.camera.updateMatrixWorld();
this.viewToWorld = this.camera.matrixWorld.clone();
@@ -9995,9 +9995,14 @@ const _SparkViewpoint = class _SparkViewpoint {
needsSort = true;
const { mappingVersion } = this.display.accumulator;
if (accumulator.mappingVersion === mappingVersion) {
accumulator.refCount += 1;
this.spark.releaseAccumulator(this.display.accumulator);
this.display.accumulator = accumulator;
this.display.viewToWorld.copy(this.viewToWorld);
displayed = true;
if (this.spark.viewpoint === this) {
this.spark.prepareViewpoint(this);
}
}
}
const latestView = ((_a2 = this.sorting) == null ? void 0 : _a2.viewToWorld) ?? ((_b2 = this.display) == null ? void 0 : _b2.viewToWorld);
@@ -10020,7 +10025,7 @@ const _SparkViewpoint = class _SparkViewpoint {
if (accumulator) {
accumulator.refCount += 1;
}
if (accumulator && ((_c = this.pending) == null ? void 0 : _c.accumulator) && this.pending.accumulator !== ((_d = this.display) == null ? void 0 : _d.accumulator)) {
if ((_c = this.pending) == null ? void 0 : _c.accumulator) {
this.spark.releaseAccumulator(this.pending.accumulator);
}
this.pending = { accumulator, viewToWorld: this.viewToWorld, displayed };
@@ -10033,9 +10038,9 @@ const _SparkViewpoint = class _SparkViewpoint {
return;
}
const { viewToWorld, displayed } = this.pending;
let accumulator = this.pending.accumulator ?? ((_a2 = this.display) == null ? void 0 : _a2.accumulator);
let accumulator = this.pending.accumulator;
if (!accumulator) {
accumulator = this.spark.active;
accumulator = ((_a2 = this.display) == null ? void 0 : _a2.accumulator) ?? this.spark.active;
accumulator.refCount += 1;
}
this.pending = null;
@@ -10045,6 +10050,7 @@ const _SparkViewpoint = class _SparkViewpoint {
this.sorting = { viewToWorld };
await this.sortUpdate({ accumulator, viewToWorld, displayed });
this.sorting = null;
this.spark.releaseAccumulator(accumulator);
}
}
async sortUpdate({
@@ -10137,6 +10143,7 @@ const _SparkViewpoint = class _SparkViewpoint {
displayed = false
}) {
if (!this.display) {
accumulator.refCount += 1;
this.display = {
accumulator,
viewToWorld,
@@ -10144,6 +10151,7 @@ const _SparkViewpoint = class _SparkViewpoint {
};
} else {
if (!displayed && accumulator !== this.display.accumulator) {
accumulator.refCount += 1;
this.spark.releaseAccumulator(this.display.accumulator);
this.display.accumulator = accumulator;
}
@@ -10450,6 +10458,7 @@ const _SparkRenderer = class _SparkRenderer extends THREE__namespace.Mesh {
this.focalAdjustment = options.focalAdjustment ?? 1;
this.splatEncoding = options.splatEncoding ?? { ...DEFAULT_SPLAT_ENCODING };
this.active = new SplatAccumulator();
this.active.refCount = 1;
this.accumulatorCount = 1;
this.freeAccumulators = [];
for (let count = 0; count < 1; ++count) {
@@ -10788,7 +10797,7 @@ const _SparkRenderer = class _SparkRenderer extends THREE__namespace.Mesh {
}
const originChanged = !withinCoorientDist({
matrix1: originToWorld,
matrix2: this.active.toWorld,
matrix2: accumulator.toWorld,
maxDistance: 1e-5,
minCoorient: 0.99999
});
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+14 -5
View File
@@ -9963,7 +9963,7 @@ const _SparkViewpoint = class _SparkViewpoint {
// The method cannot be private because then SparkRenderer would
// not be able to call it.
autoPoll({ accumulator }) {
var _a2, _b2, _c, _d;
var _a2, _b2, _c;
if (this.camera) {
this.camera.updateMatrixWorld();
this.viewToWorld = this.camera.matrixWorld.clone();
@@ -9976,9 +9976,14 @@ const _SparkViewpoint = class _SparkViewpoint {
needsSort = true;
const { mappingVersion } = this.display.accumulator;
if (accumulator.mappingVersion === mappingVersion) {
accumulator.refCount += 1;
this.spark.releaseAccumulator(this.display.accumulator);
this.display.accumulator = accumulator;
this.display.viewToWorld.copy(this.viewToWorld);
displayed = true;
if (this.spark.viewpoint === this) {
this.spark.prepareViewpoint(this);
}
}
}
const latestView = ((_a2 = this.sorting) == null ? void 0 : _a2.viewToWorld) ?? ((_b2 = this.display) == null ? void 0 : _b2.viewToWorld);
@@ -10001,7 +10006,7 @@ const _SparkViewpoint = class _SparkViewpoint {
if (accumulator) {
accumulator.refCount += 1;
}
if (accumulator && ((_c = this.pending) == null ? void 0 : _c.accumulator) && this.pending.accumulator !== ((_d = this.display) == null ? void 0 : _d.accumulator)) {
if ((_c = this.pending) == null ? void 0 : _c.accumulator) {
this.spark.releaseAccumulator(this.pending.accumulator);
}
this.pending = { accumulator, viewToWorld: this.viewToWorld, displayed };
@@ -10014,9 +10019,9 @@ const _SparkViewpoint = class _SparkViewpoint {
return;
}
const { viewToWorld, displayed } = this.pending;
let accumulator = this.pending.accumulator ?? ((_a2 = this.display) == null ? void 0 : _a2.accumulator);
let accumulator = this.pending.accumulator;
if (!accumulator) {
accumulator = this.spark.active;
accumulator = ((_a2 = this.display) == null ? void 0 : _a2.accumulator) ?? this.spark.active;
accumulator.refCount += 1;
}
this.pending = null;
@@ -10026,6 +10031,7 @@ const _SparkViewpoint = class _SparkViewpoint {
this.sorting = { viewToWorld };
await this.sortUpdate({ accumulator, viewToWorld, displayed });
this.sorting = null;
this.spark.releaseAccumulator(accumulator);
}
}
async sortUpdate({
@@ -10118,6 +10124,7 @@ const _SparkViewpoint = class _SparkViewpoint {
displayed = false
}) {
if (!this.display) {
accumulator.refCount += 1;
this.display = {
accumulator,
viewToWorld,
@@ -10125,6 +10132,7 @@ const _SparkViewpoint = class _SparkViewpoint {
};
} else {
if (!displayed && accumulator !== this.display.accumulator) {
accumulator.refCount += 1;
this.spark.releaseAccumulator(this.display.accumulator);
this.display.accumulator = accumulator;
}
@@ -10431,6 +10439,7 @@ const _SparkRenderer = class _SparkRenderer extends THREE.Mesh {
this.focalAdjustment = options.focalAdjustment ?? 1;
this.splatEncoding = options.splatEncoding ?? { ...DEFAULT_SPLAT_ENCODING };
this.active = new SplatAccumulator();
this.active.refCount = 1;
this.accumulatorCount = 1;
this.freeAccumulators = [];
for (let count = 0; count < 1; ++count) {
@@ -10769,7 +10778,7 @@ const _SparkRenderer = class _SparkRenderer extends THREE.Mesh {
}
const originChanged = !withinCoorientDist({
matrix1: originToWorld,
matrix2: this.active.toWorld,
matrix2: accumulator.toWorld,
maxDistance: 1e-5,
minCoorient: 0.99999
});
+1 -1
View File
File diff suppressed because one or more lines are too long
+11 -11
View File
@@ -7745,15 +7745,15 @@ const jh = new Float32Array([
// The method cannot be private because then SparkRenderer would
// not be able to call it.
autoPoll({ accumulator: A }) {
var i, r, a, o;
var i, r, a;
this.camera && (this.camera.updateMatrixWorld(), this.viewToWorld = this.camera.matrixWorld.clone());
let e = !1, s = !1;
if (!this.display)
e = !0;
else if (A) {
e = !0;
const { mappingVersion: g } = this.display.accumulator;
A.mappingVersion === g && (this.spark.releaseAccumulator(this.display.accumulator), this.display.accumulator = A, s = !0);
const { mappingVersion: o } = this.display.accumulator;
A.mappingVersion === o && (A.refCount += 1, this.spark.releaseAccumulator(this.display.accumulator), this.display.accumulator = A, this.display.viewToWorld.copy(this.viewToWorld), s = !0, this.spark.viewpoint === this && this.spark.prepareViewpoint(this));
}
const n = ((i = this.sorting) == null ? void 0 : i.viewToWorld) ?? ((r = this.display) == null ? void 0 : r.viewToWorld);
n && !ge({
@@ -7766,7 +7766,7 @@ const jh = new Float32Array([
// For depth sort, small rotations can change sort order a lot, so
// update sort for even small rotations.
minCoorient: this.sortCoorient ?? this.sortRadial ? 0.99 : 0.999
}) && (e = !0), e && (A && (A.refCount += 1), A && ((a = this.pending) != null && a.accumulator) && this.pending.accumulator !== ((o = this.display) == null ? void 0 : o.accumulator) && this.spark.releaseAccumulator(this.pending.accumulator), this.pending = { accumulator: A, viewToWorld: this.viewToWorld, displayed: s }, this.driveSort());
}) && (e = !0), e && (A && (A.refCount += 1), (a = this.pending) != null && a.accumulator && this.spark.releaseAccumulator(this.pending.accumulator), this.pending = { accumulator: A, viewToWorld: this.viewToWorld, displayed: s }, this.driveSort());
}
async driveSort() {
var A;
@@ -7774,10 +7774,10 @@ const jh = new Float32Array([
if (this.sorting || !this.pending)
return;
const { viewToWorld: e, displayed: s } = this.pending;
let n = this.pending.accumulator ?? ((A = this.display) == null ? void 0 : A.accumulator);
if (n || (n = this.spark.active, n.refCount += 1), this.pending = null, !n)
let n = this.pending.accumulator;
if (n || (n = ((A = this.display) == null ? void 0 : A.accumulator) ?? this.spark.active, n.refCount += 1), this.pending = null, !n)
throw new Error("No accumulator to sort");
this.sorting = { viewToWorld: e }, await this.sortUpdate({ accumulator: n, viewToWorld: e, displayed: s }), this.sorting = null;
this.sorting = { viewToWorld: e }, await this.sortUpdate({ accumulator: n, viewToWorld: e, displayed: s }), this.sorting = null, this.spark.releaseAccumulator(n);
}
}
async sortUpdate({
@@ -7849,13 +7849,13 @@ const jh = new Float32Array([
displayed: i = !1
}) {
if (!this.display)
this.display = {
A.refCount += 1, this.display = {
accumulator: A,
viewToWorld: e,
geometry: new Pe(s, n)
};
else {
!i && A !== this.display.accumulator && (this.spark.releaseAccumulator(this.display.accumulator), this.display.accumulator = A), this.display.viewToWorld = e;
!i && A !== this.display.accumulator && (A.refCount += 1, this.spark.releaseAccumulator(this.display.accumulator), this.display.accumulator = A), this.display.viewToWorld = e;
const r = this.display.geometry.ordering;
r.length === s.length ? this.display.geometry.update(s, n) : (this.display.geometry.dispose(), this.display.geometry = new Pe(s, n)), this.orderingFreelist.free(r);
}
@@ -8642,7 +8642,7 @@ const ys = 5, oA = class oA extends h.Mesh {
}), { gsplat: a };
}
);
this.modifier = new mh(r), this.premultipliedAlpha = n, this.autoUpdate = A.autoUpdate ?? !0, this.preUpdate = A.preUpdate ?? !1, this.needsUpdate = !1, this.originDistance = A.originDistance ?? 1, this.maxStdDev = A.maxStdDev ?? Math.sqrt(8), this.minPixelRadius = A.minPixelRadius ?? 0, this.maxPixelRadius = A.maxPixelRadius ?? 512, this.minAlpha = A.minAlpha ?? 0.5 * (1 / 255), this.enable2DGS = A.enable2DGS ?? !1, this.preBlurAmount = A.preBlurAmount ?? 0, this.blurAmount = A.blurAmount ?? 0.3, this.focalDistance = A.focalDistance ?? 0, this.apertureAngle = A.apertureAngle ?? 0, this.falloff = A.falloff ?? 1, this.clipXY = A.clipXY ?? 1.4, this.focalAdjustment = A.focalAdjustment ?? 1, this.splatEncoding = A.splatEncoding ?? { ...de }, this.active = new ke(), this.accumulatorCount = 1, this.freeAccumulators = [];
this.modifier = new mh(r), this.premultipliedAlpha = n, this.autoUpdate = A.autoUpdate ?? !0, this.preUpdate = A.preUpdate ?? !1, this.needsUpdate = !1, this.originDistance = A.originDistance ?? 1, this.maxStdDev = A.maxStdDev ?? Math.sqrt(8), this.minPixelRadius = A.minPixelRadius ?? 0, this.maxPixelRadius = A.maxPixelRadius ?? 512, this.minAlpha = A.minAlpha ?? 0.5 * (1 / 255), this.enable2DGS = A.enable2DGS ?? !1, this.preBlurAmount = A.preBlurAmount ?? 0, this.blurAmount = A.blurAmount ?? 0.3, this.focalDistance = A.focalDistance ?? 0, this.apertureAngle = A.apertureAngle ?? 0, this.falloff = A.falloff ?? 1, this.clipXY = A.clipXY ?? 1.4, this.focalAdjustment = A.focalAdjustment ?? 1, this.splatEncoding = A.splatEncoding ?? { ...de }, this.active = new ke(), this.active.refCount = 1, this.accumulatorCount = 1, this.freeAccumulators = [];
for (let a = 0; a < 1; ++a)
this.freeAccumulators.push(new ke()), this.accumulatorCount += 1;
this.defaultView = new Be({
@@ -8863,7 +8863,7 @@ const ys = 5, oA = class oA extends h.Mesh {
throw new Error("Unreachable");
const B = !ge({
matrix1: e,
matrix2: this.active.toWorld,
matrix2: I.toWorld,
maxDistance: 1e-5,
minCoorient: 0.99999
}), E = o.map((x, w) => {
+1 -1
View File
File diff suppressed because one or more lines are too long