@idetik/core 0.23.5 → 0.23.7

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
@@ -534,6 +534,10 @@ declare class ChunkManager {
534
534
  private readonly pendingStores_;
535
535
  private readonly queue_;
536
536
  get queueStats(): QueueStats;
537
+ get memoryStats(): {
538
+ cpuChunkBytes: number;
539
+ cpuChunkCount: number;
540
+ };
537
541
  addView(source: ChunkSource, policy: ImageSourcePolicy): Promise<ChunkStoreView>;
538
542
  private getOrCreateStore;
539
543
  update(): void;
@@ -558,6 +562,8 @@ declare abstract class Renderer {
558
562
  get height(): number;
559
563
  get backgroundColor(): Color;
560
564
  get renderedObjects(): number;
565
+ abstract get gpuTextureBytes(): number;
566
+ abstract get gpuTextureCount(): number;
561
567
  set backgroundColor(color: ColorLike);
562
568
  }
563
569
 
@@ -573,6 +579,14 @@ type IdetikParams = {
573
579
  type IdetikContext = {
574
580
  chunkManager: ChunkManager;
575
581
  };
582
+ type MemoryStats = {
583
+ cpuChunkBytes: number;
584
+ cpuChunkCount: number;
585
+ gpuTextureBytes: number;
586
+ gpuTextureCount: number;
587
+ jsHeapUsedBytes?: number;
588
+ jsHeapLimitBytes?: number;
589
+ };
576
590
  declare class Idetik {
577
591
  private readonly chunkManager_;
578
592
  private readonly context_;
@@ -636,6 +650,7 @@ declare class Idetik {
636
650
  }): Promise<Idetik>;
637
651
  constructor(params: IdetikParams, renderer?: Renderer);
638
652
  get chunkQueueStats(): QueueStats;
653
+ get memoryStats(): MemoryStats;
639
654
  get renderedObjects(): number;
640
655
  get width(): number;
641
656
  get height(): number;
@@ -1838,4 +1853,4 @@ declare const Image: z.ZodObject<{
1838
1853
  type Image = z.infer<typeof Image>;
1839
1854
 
1840
1855
  export { AxesLayer, Color, Idetik, ImageLayer, ImageRenderable, LabelColorMap, LabelImageRenderable, LabelLayer, Layer, Image as OmeZarrImage, OmeZarrImageSource, OrbitControls, OrthographicCamera, PanZoomControls, PerspectiveCamera, Points, ProjectedLine, VolumeLayer, VolumeRenderable, createExplorationPolicy, createImageSourcePolicy, createNoPrefetchPolicy, createPlaybackPolicy, loadOmeZarrPlate, loadOmeZarrWell, loadOmeroChannels, loadOmeroDefaults };
1841
- export type { ChannelProps, ColorLike, LayerState, Overlay, SliceCoordinates };
1856
+ export type { ChannelProps, ColorLike, LayerState, MemoryStats, Overlay, SliceCoordinates };