modern-canvas 0.24.10 → 0.24.13
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/Engine.d.ts +15 -5
- package/dist/index.js +761 -823
- package/dist/scene/2d/element/Element2DFill.d.ts +15 -2
- package/dist/scene/2d/element/Element2DForeground.d.ts +6 -36
- package/dist/scene/2d/element/imagePipeline.d.ts +11 -0
- package/dist/scene/2d/element/index.d.ts +1 -0
- package/package.json +2 -2
- package/dist/scene/2d/element/bakeImageEffects.d.ts +0 -17
package/dist/Engine.d.ts
CHANGED
|
@@ -71,13 +71,23 @@ export declare class Engine extends SceneTree {
|
|
|
71
71
|
start(): Promise<void>;
|
|
72
72
|
/**
|
|
73
73
|
* Largest dimension (in device pixels) a single offscreen render pass can
|
|
74
|
-
* allocate.
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
74
|
+
* allocate. Capped by the GPU's MAX_TEXTURE_SIZE / MAX_RENDERBUFFER_SIZE /
|
|
75
|
+
* MAX_VIEWPORT_DIMS *and* — crucially — the actual WebGL drawing-buffer size,
|
|
76
|
+
* which the browser/GPU often clamps far below MAX_TEXTURE_SIZE (tied to
|
|
77
|
+
* screen size / VRAM, e.g. ~5760 on a laptop while MAX_TEXTURE_SIZE is 16384).
|
|
78
|
+
* The export reads pixels back from the drawing buffer, so anything beyond it
|
|
79
|
+
* is lost/garbled. Oversized exports are tiled within this budget instead.
|
|
79
80
|
*/
|
|
80
81
|
protected _maxExportPassSize(): number;
|
|
82
|
+
protected _maxDrawingBufferCache: number;
|
|
83
|
+
/**
|
|
84
|
+
* Probe the real drawing-buffer cap on the *renderer's own* GL context (its
|
|
85
|
+
* attributes — preserveDrawingBuffer / stencil / antialias — lower the cap vs
|
|
86
|
+
* a bare context, so a throwaway probe overestimates). Temporarily sizes the
|
|
87
|
+
* canvas (default framebuffer only, not the FBO textures) to `cap` and reads
|
|
88
|
+
* `drawingBufferWidth/Height`, then restores. Cached per engine.
|
|
89
|
+
*/
|
|
90
|
+
protected _maxDrawingBufferSize(cap: number): number;
|
|
81
91
|
/** Tile budget in logical units (the GPU limit is in device pixels). */
|
|
82
92
|
protected _exportTileLimit(): number;
|
|
83
93
|
/** Resize the renderer + root viewport without triggering a render. */
|