UNPKG

universal-canvas-context

Version:

Universal canvas context api

15 lines (13 loc) 380 B
export type CanvasContext = { draw?: () => void } & RenderingContext; export interface ContextAttributes { antialias?: boolean, depth?: boolean, alpha?: boolean, willReadFrequently?: boolean, storage?: string, failIfMajorPerformanceCaveat?: boolean, powerPreference?: string, premultipliedAlpha?: boolean, preserveDrawingBuffer?: boolean, stencil?: boolean }