Class RenderContextAbstract

Hierarchy

Constructors

Accessors

  • get fillStyle(): string | CanvasGradient | CanvasPattern
  • Returns string | CanvasGradient | CanvasPattern

  • set fillStyle(style): void
  • Parameters

    • style: string | CanvasGradient | CanvasPattern

    Returns void

  • get font(): string
  • Returns string

  • set font(f): void
  • Parameters

    • f: string

    Returns void

  • get strokeStyle(): string | CanvasGradient | CanvasPattern
  • Returns string | CanvasGradient | CanvasPattern

  • set strokeStyle(style): void
  • Parameters

    • style: string | CanvasGradient | CanvasPattern

    Returns void

  • get CATEGORY(): string
  • Returns string

Methods

  • Parameters

    • child: any

    Returns void

  • Parameters

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

    Returns RenderContext

  • Parameters

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

    Returns RenderContext

  • Returns void

  • Returns void

  • Returns string

  • Parameters

    Returns any

  • Parameters

    • Optional f: string | FontInfo
    • Optional size: string | number
    • Optional weight: string | number
    • Optional style: string

    Returns RenderContext

  • This is kept for backwards compatibility with 3.0.9.

    Deprecated

    use setFont(...) instead since it now supports CSS font shorthand.

    Parameters

    • f: string

    Returns RenderContext