@idetik/core 0.43.0 → 0.44.0

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.d.ts CHANGED
@@ -248,6 +248,7 @@ declare class ChunkStore {
248
248
  private readonly dimensions_;
249
249
  private readonly views_;
250
250
  private hasHadViews_;
251
+ private readonly resident_;
251
252
  constructor(dimensions: SourceDimensionMap);
252
253
  getChunkGrid(lod: number, t: number, c: number): Chunk[][][] | undefined;
253
254
  hasChunksAtTime(timeIndex: number): boolean;
@@ -257,6 +258,9 @@ declare class ChunkStore {
257
258
  getLowestResLOD(): number;
258
259
  addView(policy: ImageSourcePolicy, axes?: SliceAxes): ChunkStoreView;
259
260
  get views(): ReadonlyArray<ChunkStoreView>;
261
+ get residentChunks(): ReadonlySet<Chunk>;
262
+ setChunkTexture(chunk: Chunk, texture: Texture): void;
263
+ clearChunkTexture(chunk: Chunk): Texture | undefined;
260
264
  canDispose(): boolean;
261
265
  updateAndCollectChunkChanges(): Set<Chunk>;
262
266
  private removeDisposedViews;
@@ -323,12 +327,13 @@ declare class ChunkStoreView {
323
327
  private readonly store_;
324
328
  private policy_;
325
329
  private policyChanged_;
326
- private currentLOD_;
330
+ private targetLOD_;
327
331
  private readonly axes_;
328
332
  private readonly scale0_;
333
+ private mode_;
329
334
  private lastViewBounds2D_;
330
335
  private lastViewProjection_;
331
- private lastSliceBounds_?;
336
+ private lastSliceCoordW_?;
332
337
  private lastTCoord_?;
333
338
  private lastCCoords_?;
334
339
  private readonly sourceMaxSquareDistance2D_;
@@ -341,6 +346,8 @@ declare class ChunkStoreView {
341
346
  get channelCount(): number;
342
347
  getWholePlaneRect(): Box2;
343
348
  getChunksToRender(): Chunk[];
349
+ private residentChunksMarkedVisible;
350
+ private residentChunksForSlice;
344
351
  updateChunksForImage(sliceCoords: SliceCoordinates, view: {
345
352
  worldViewRect: Box2;
346
353
  bufferWidthPx: number;
@@ -359,14 +366,12 @@ declare class ChunkStoreView {
359
366
  private chunkIndexRange;
360
367
  private iterateChunksInBox;
361
368
  private iterateAllChunksAtLod;
362
- private getChunkAabb;
363
- private fallbackLOD;
369
+ private lodRange;
364
370
  private timeIndex;
365
371
  private getSliceAxisBounds;
366
372
  private makeViewBounds3D;
367
373
  private viewBounds2DChanged;
368
374
  private hasViewProjectionChanged;
369
- private sliceBoundsChanged;
370
375
  private cCoordsChanged;
371
376
  private getPaddedBounds;
372
377
  private squareDistance2D;
@@ -389,7 +394,6 @@ declare class ChunkManager {
389
394
  private readonly getGpuResidentBytes_;
390
395
  private memoryLimitBytes_;
391
396
  private readonly maxGpuUploadsPerUpdate_;
392
- private readonly resident_;
393
397
  constructor(uploadTexture?: (texture: Texture) => void, disposeTexture?: (texture: Texture) => void, getGpuResidentBytes?: () => number, memoryLimitBytes?: number, maxConcurrentRequests?: number, maxGpuUploadsPerUpdate?: number);
394
398
  get memoryLimitBytes(): number;
395
399
  set memoryLimitBytes(value: number);