Interface CanvasPainter

Hierarchy

  • CanvasRenderingContext2D
    • CanvasPainter

Properties

canvas: HTMLCanvasElement
direction: CanvasDirection
fillStyle: string | CanvasGradient | CanvasPattern
filter: string
font: string
fontKerning: CanvasFontKerning
globalAlpha: number
globalCompositeOperation: GlobalCompositeOperation
height: number
imageSmoothingEnabled: boolean
imageSmoothingQuality: ImageSmoothingQuality
lineCap: CanvasLineCap
lineDashOffset: number
lineJoin: CanvasLineJoin
lineWidth: number
miterLimit: number
shadowBlur: number
shadowColor: string
shadowOffsetX: number
shadowOffsetY: number
strokeStyle: string | CanvasGradient | CanvasPattern
textAlign: CanvasTextAlign
textBaseline: CanvasTextBaseline
width: number

Methods

  • Parameters

    • x: number
    • y: number
    • radius: number
    • startAngle: number
    • endAngle: number
    • Optional counterclockwise: boolean

    Returns void

  • Parameters

    • x1: number
    • y1: number
    • x2: number
    • y2: number
    • radius: number

    Returns void

  • Returns void

  • Parameters

    • cp1x: number
    • cp1y: number
    • cp2x: number
    • cp2y: number
    • x: number
    • y: number

    Returns void

  • Parameters

    • text: string
    • rounded: boolean

    Returns {
        height: number;
        width: number;
    }

    • height: number
    • width: number
  • Parameters

    • x: number
    • y: number
    • radius: number

    Returns void

  • Parameters

    • x: number
    • y: number
    • w: number
    • h: number

    Returns void

  • Parameters

    • Optional fillRule: CanvasFillRule

    Returns void

  • Parameters

    • path: Path2D
    • Optional fillRule: CanvasFillRule

    Returns void

  • Returns void

  • Parameters

    • startAngle: number
    • x: number
    • y: number

    Returns CanvasGradient

  • Parameters

    • sw: number
    • sh: number
    • Optional settings: ImageDataSettings

    Returns ImageData

  • Parameters

    • imagedata: ImageData

    Returns ImageData

  • Parameters

    • x0: number
    • y0: number
    • x1: number
    • y1: number

    Returns CanvasGradient

  • Parameters

    • image: CanvasImageSource
    • repetition: string

    Returns CanvasPattern

  • Parameters

    • x0: number
    • y0: number
    • r0: number
    • x1: number
    • y1: number
    • r1: number

    Returns CanvasGradient

  • Parameters

    • element: Element

    Returns void

  • Parameters

    • path: Path2D
    • element: Element

    Returns void

  • Parameters

    • image: CanvasImageSource
    • dx: number
    • dy: number

    Returns void

  • Parameters

    • image: CanvasImageSource
    • dx: number
    • dy: number
    • dw: number
    • dh: number

    Returns void

  • Parameters

    • image: CanvasImageSource
    • sx: number
    • sy: number
    • sw: number
    • sh: number
    • dx: number
    • dy: number
    • dw: number
    • dh: number

    Returns void

  • Parameters

    • x: number
    • y: number
    • radiusX: number
    • radiusY: number
    • rotation: number
    • startAngle: number
    • endAngle: number
    • Optional counterclockwise: boolean

    Returns void

  • Parameters

    • Optional fillRule: CanvasFillRule

    Returns void

  • Parameters

    • path: Path2D
    • Optional fillRule: CanvasFillRule

    Returns void

  • Parameters

    • x: number
    • y: number
    • w: number
    • h: number

    Returns void

  • Parameters

    • text: string
    • x: number
    • y: number
    • Optional maxWidth: number

    Returns void

  • Returns CanvasRenderingContext2DSettings

  • Parameters

    • sx: number
    • sy: number
    • sw: number
    • sh: number
    • Optional settings: ImageDataSettings

    Returns ImageData

  • Returns number[]

  • Returns DOMMatrix

  • Parameters

    • x: number
    • y: number
    • Optional fillRule: CanvasFillRule

    Returns boolean

  • Parameters

    • path: Path2D
    • x: number
    • y: number
    • Optional fillRule: CanvasFillRule

    Returns boolean

  • Parameters

    • x: number
    • y: number

    Returns boolean

  • Parameters

    • path: Path2D
    • x: number
    • y: number

    Returns boolean

  • Parameters

    • x1: number
    • y1: number
    • x2: number
    • y2: number
    • color: string
    • lineWidth: number

    Returns void

  • Parameters

    • x: number
    • y: number

    Returns void

  • Parameters

    • text: string

    Returns TextMetrics

  • Parameters

    • x: number
    • y: number

    Returns void

  • Parameters

    • imagedata: ImageData
    • dx: number
    • dy: number

    Returns void

  • Parameters

    • imagedata: ImageData
    • dx: number
    • dy: number
    • dirtyX: number
    • dirtyY: number
    • dirtyWidth: number
    • dirtyHeight: number

    Returns void

  • Parameters

    • cpx: number
    • cpy: number
    • x: number
    • y: number

    Returns void

  • Parameters

    • x: number
    • y: number
    • w: number
    • h: number

    Returns void

  • Returns void

  • Returns void

  • Parameters

    • angle: number

    Returns void

  • Parameters

    • x: number
    • y: number
    • width: number
    • height: number
    • radius: number

    Returns void

  • Returns void

  • Parameters

    • x: number
    • y: number

    Returns void

  • Parameters

    • fs: number

    Returns void

  • Parameters

    • segments: number[]

    Returns void

  • Parameters

    • a: number
    • b: number
    • c: number
    • d: number
    • e: number
    • f: number

    Returns void

  • Parameters

    • Optional transform: DOMMatrix2DInit

    Returns void

  • Parameters

    • points: any[]
    • path: CanvasPath
    • move: boolean

    Returns void

  • Parameters

    • _points: any[]
    • tension: number
    • numOfSeg: number
    • path: CanvasPath
    • Optional move: boolean
    • Optional close: boolean

    Returns void

  • Returns void

  • Parameters

    • path: Path2D

    Returns void

  • Parameters

    • x: number
    • y: number
    • w: number
    • h: number

    Returns void

  • Parameters

    • text: string
    • x: number
    • y: number
    • Optional maxWidth: number

    Returns void

  • Parameters

    • a: number
    • b: number
    • c: number
    • d: number
    • e: number
    • f: number

    Returns void

  • Parameters

    • x: number
    • y: number

    Returns void

Generated using TypeDoc