@quake2ts/test-utils 0.0.764 → 0.0.765

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.cts CHANGED
@@ -1204,20 +1204,9 @@ interface HeadlessWebGLContext {
1204
1204
  height: number;
1205
1205
  cleanup: () => void;
1206
1206
  }
1207
- /**
1208
- * Creates a headless WebGL2 context using the 'gl' package.
1209
- * Note: 'gl' is lazy-loaded to avoid issues in environments where it's not supported/needed.
1210
- */
1211
- declare function createHeadlessWebGL(options?: HeadlessWebGLOptions): Promise<HeadlessWebGLContext>;
1212
- /**
1213
- * Captures the current framebuffer content as a Uint8ClampedArray (RGBA).
1214
- * Flips the pixels vertically to match standard image orientation (top-left origin).
1215
- */
1216
- declare function captureWebGLFramebuffer(glContext: WebGL2RenderingContext, width: number, height: number): Uint8ClampedArray;
1217
- /**
1218
- * Flips pixel data vertically in-place.
1219
- */
1207
+ declare function createHeadlessWebGL(options?: HeadlessWebGLOptions): HeadlessWebGLContext;
1220
1208
  declare function flipPixelsVertically(pixels: Uint8ClampedArray, width: number, height: number): Uint8ClampedArray;
1209
+ declare function captureWebGLFramebuffer(gl: WebGL2RenderingContext, width: number, height: number): Uint8ClampedArray;
1221
1210
 
1222
1211
  interface MockWebGPUContext {
1223
1212
  adapter: GPUAdapter;
package/dist/index.d.ts CHANGED
@@ -1204,20 +1204,9 @@ interface HeadlessWebGLContext {
1204
1204
  height: number;
1205
1205
  cleanup: () => void;
1206
1206
  }
1207
- /**
1208
- * Creates a headless WebGL2 context using the 'gl' package.
1209
- * Note: 'gl' is lazy-loaded to avoid issues in environments where it's not supported/needed.
1210
- */
1211
- declare function createHeadlessWebGL(options?: HeadlessWebGLOptions): Promise<HeadlessWebGLContext>;
1212
- /**
1213
- * Captures the current framebuffer content as a Uint8ClampedArray (RGBA).
1214
- * Flips the pixels vertically to match standard image orientation (top-left origin).
1215
- */
1216
- declare function captureWebGLFramebuffer(glContext: WebGL2RenderingContext, width: number, height: number): Uint8ClampedArray;
1217
- /**
1218
- * Flips pixel data vertically in-place.
1219
- */
1207
+ declare function createHeadlessWebGL(options?: HeadlessWebGLOptions): HeadlessWebGLContext;
1220
1208
  declare function flipPixelsVertically(pixels: Uint8ClampedArray, width: number, height: number): Uint8ClampedArray;
1209
+ declare function captureWebGLFramebuffer(gl: WebGL2RenderingContext, width: number, height: number): Uint8ClampedArray;
1221
1210
 
1222
1211
  interface MockWebGPUContext {
1223
1212
  adapter: GPUAdapter;