@idetik/core 0.42.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 +11 -6
- package/dist/index.js +1389 -1319
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +35 -35
- package/dist/index.umd.cjs.map +1 -1
- package/dist/types/src/core/geometry.d.ts +1 -0
- package/dist/types/src/core/geometry.d.ts.map +1 -1
- package/dist/types/src/data/chunk_manager.d.ts +0 -1
- package/dist/types/src/data/chunk_manager.d.ts.map +1 -1
- package/dist/types/src/data/chunk_store.d.ts +5 -0
- package/dist/types/src/data/chunk_store.d.ts.map +1 -1
- package/dist/types/src/data/chunk_store_view.d.ts +6 -5
- package/dist/types/src/data/chunk_store_view.d.ts.map +1 -1
- package/dist/types/src/renderers/webgl_renderer.d.ts.map +1 -1
- package/dist/types/src/renderers/webgl_textures.d.ts.map +1 -1
- package/package.json +1 -1
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
|
|
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
|
|
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
|
|
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);
|
|
@@ -659,6 +663,7 @@ type GeometryAttribute = {
|
|
|
659
663
|
offset: number;
|
|
660
664
|
};
|
|
661
665
|
declare class Geometry extends Node {
|
|
666
|
+
instanceCount: number | null;
|
|
662
667
|
private boundingBox_;
|
|
663
668
|
protected primitive_: Primitive;
|
|
664
669
|
protected attributes_: GeometryAttribute[];
|