codigo0/node_modules/happy-dom/lib/nodes/html-canvas-element/HTMLCanvasElement.d.ts
planetazuzu 5d7a6500fe refactor: Fase 1 - Clean Architecture, refactorización modular y eliminación de duplicidades
-  Ticket 1.1: Estructura Clean Architecture en backend
-  Ticket 1.2: Schemas Zod compartidos
-  Ticket 1.3: Refactorización drugs.ts (1362 → 8 archivos modulares)
-  Ticket 1.4: Refactorización procedures.ts (3583 → 6 archivos modulares)
-  Ticket 1.5: Eliminación de duplicidades (~50 líneas)

Cambios principales:
- Creada estructura Clean Architecture en backend/src/
- Schemas Zod compartidos en backend/src/shared/schemas/
- Refactorización modular de drugs y procedures
- Utilidades genéricas en src/utils/ (filter, validation)
- Eliminados scripts obsoletos y documentación antigua
- Corregidos errores: QueryClient, import test-error-handling
- Build verificado y funcionando correctamente
2026-01-25 21:09:47 +01:00

86 lines
2.5 KiB
TypeScript

import HTMLElement from '../html-element/HTMLElement.js';
import Blob from '../../file/Blob.js';
import OffscreenCanvas from './OffscreenCanvas.js';
import Event from '../../event/Event.js';
import MediaStream from '../html-media-element/MediaStream.js';
/**
* HTMLCanvasElement
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement
*/
export default class HTMLCanvasElement extends HTMLElement {
get oncontextlost(): ((event: Event) => void) | null;
set oncontextlost(value: ((event: Event) => void) | null);
get oncontextrestored(): ((event: Event) => void) | null;
set oncontextrestored(value: ((event: Event) => void) | null);
get onwebglcontextcreationerror(): ((event: Event) => void) | null;
set onwebglcontextcreationerror(value: ((event: Event) => void) | null);
get onwebglcontextlost(): ((event: Event) => void) | null;
set onwebglcontextlost(value: ((event: Event) => void) | null);
get onwebglcontextrestored(): ((event: Event) => void) | null;
set onwebglcontextrestored(value: ((event: Event) => void) | null);
/**
* Returns width.
*
* @returns Width.
*/
get width(): number;
/**
* Sets width.
*
* @param width Width.
*/
set width(width: number);
/**
* Returns height.
*
* @returns Height.
*/
get height(): number;
/**
* Sets height.
*
* @param height Height.
*/
set height(height: number);
/**
* Returns capture stream.
*
* @param [frameRate] Frame rate.
* @returns Capture stream.
*/
captureStream(frameRate?: number): MediaStream;
/**
* Returns context.
*
* @param _contextType Context type.
* @param [_contextAttributes] Context attributes.
* @returns Context.
*/
getContext(_contextType: '2d' | 'webgl' | 'webgl2' | 'webgpu' | 'bitmaprenderer', _contextAttributes?: {
[key: string]: any;
}): any;
/**
* Returns to data URL.
*
* @param [_type] Type.
* @param [_encoderOptions] Quality.
* @returns Data URL.
*/
toDataURL(_type?: string, _encoderOptions?: any): string;
/**
* Returns to blob.
*
* @param callback Callback.
* @param [_type] Type.
* @param [_quality] Quality.
*/
toBlob(callback: (blob: Blob) => void, _type?: string, _quality?: any): void;
/**
* Transfers control to offscreen.
*
* @returns Offscreen canvas.
*/
transferControlToOffscreen(): OffscreenCanvas;
}
//# sourceMappingURL=HTMLCanvasElement.d.ts.map