@perspective-dev/viewer-charts 4.5.1 → 4.5.2

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.
@@ -21,6 +21,25 @@ export declare const RUNTIME_MODE: "worker" | "inprocess";
21
21
  * into the visible canvas via `drawImage`.
22
22
  */
23
23
  export declare const RENDER_BLIT_MODE: "direct" | "blit";
24
+ /**
25
+ * Number of shared WebGL contexts in pooled blit mode.
26
+ *
27
+ * The browser caps live contexts per agent (~16 in Chromium) and
28
+ * force-loses the oldest past that cap, so a page with more charts than
29
+ * the cap cannot give each its own context. When `> 0` *and*
30
+ * `RENDER_BLIT_MODE === "blit"`, every chart borrows one of this many
31
+ * shared contexts (round-robin, sticky for the chart's lifetime) instead
32
+ * of allocating its own — decoupling live-context count from chart
33
+ * count. N charts render through K = this many contexts; the scheduler
34
+ * serializes renders that land on the same context.
35
+ *
36
+ * `0` disables pooling (every chart gets its own context — the original
37
+ * behavior). Pooling never applies to `"direct"` mode, which renders
38
+ * into the host's transferred visible canvas and is permanently 1:1 with
39
+ * a context; keep pages that need more than ~16 simultaneous charts on
40
+ * `"blit"`.
41
+ */
42
+ export declare const RENDER_CONTEXT_POOL_SIZE: number;
24
43
  /**
25
44
  * Strict-mode validation for `BufferPool.upload`.
26
45
  */