- Delete old Vite+Svelte frontend - Initialize new SvelteKit project with TypeScript - Configure Tailwind CSS v4 + DaisyUI - Implement JWT authentication with auto-refresh - Create login page with form validation (Zod) - Add protected route guards - Update Docker configuration for single-stage build - Add E2E tests with Playwright (6/11 passing) - Fix Svelte 5 reactivity with $state() runes Known issues: - 5 E2E tests failing (timing/async issues) - Token refresh implementation needs debugging - Validation error display timing
86 lines
2.6 KiB
TypeScript
86 lines
2.6 KiB
TypeScript
import HTMLElement from '../html-element/HTMLElement.cjs';
|
|
import Blob from '../../file/Blob.cjs';
|
|
import OffscreenCanvas from './OffscreenCanvas.cjs';
|
|
import Event from '../../event/Event.cjs';
|
|
import MediaStream from '../html-media-element/MediaStream.cjs';
|
|
/**
|
|
* 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;
|
|
}): null;
|
|
/**
|
|
* 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
|