@idetik/core 0.7.3 → 0.7.5
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
CHANGED
|
@@ -2251,6 +2251,7 @@ class _C {
|
|
|
2251
2251
|
Q
|
|
2252
2252
|
), A.t !== void 0 && this.markTimeChunksForPrefetch(
|
|
2253
2253
|
B,
|
|
2254
|
+
A,
|
|
2254
2255
|
o,
|
|
2255
2256
|
Q
|
|
2256
2257
|
);
|
|
@@ -2279,24 +2280,24 @@ class _C {
|
|
|
2279
2280
|
}
|
|
2280
2281
|
}
|
|
2281
2282
|
}
|
|
2282
|
-
markTimeChunksForPrefetch(A, I, B) {
|
|
2283
|
-
const
|
|
2284
|
-
|
|
2283
|
+
markTimeChunksForPrefetch(A, I, B, C) {
|
|
2284
|
+
const Q = this.store_.dimensions.t?.lods[0].size ?? 1, E = Math.min(
|
|
2285
|
+
Q - 1,
|
|
2285
2286
|
A + this.policy_.prefetch.t
|
|
2286
2287
|
);
|
|
2287
|
-
for (let
|
|
2288
|
-
for (const
|
|
2289
|
-
if (
|
|
2290
|
-
const
|
|
2291
|
-
|
|
2288
|
+
for (let i = A + 1; i <= E; ++i)
|
|
2289
|
+
for (const o of this.store_.getChunksAtTime(i)) {
|
|
2290
|
+
if (o.lod !== this.store_.getLowestResLOD() || !this.isChunkChannelInSlice(o, I) || !this.isChunkWithinBounds(o, B)) continue;
|
|
2291
|
+
const a = this.policy_.priorityMap.prefetchTime, D = this.squareDistance2D(o, C), h = vA(
|
|
2292
|
+
D / this.sourceMaxSquareDistance2D_,
|
|
2292
2293
|
0,
|
|
2293
2294
|
1 - Number.EPSILON
|
|
2294
|
-
),
|
|
2295
|
-
this.chunkViewStates_.set(
|
|
2295
|
+
), t = i - A + h;
|
|
2296
|
+
this.chunkViewStates_.set(o, {
|
|
2296
2297
|
visible: !1,
|
|
2297
2298
|
prefetch: !0,
|
|
2298
|
-
priority:
|
|
2299
|
-
orderKey:
|
|
2299
|
+
priority: a,
|
|
2300
|
+
orderKey: t
|
|
2300
2301
|
});
|
|
2301
2302
|
}
|
|
2302
2303
|
}
|