Class Renderer

Support Canvas & SVG rendering contexts.

Hierarchy

  • Renderer

Constructors

Properties

Backends: typeof RendererBackends = RendererBackends
LineEndType: typeof RendererLineEndType = RendererLineEndType
lastContext?: RenderContext = undefined

Methods

  • Parameters

    • width: number
    • height: number

    Returns Renderer

  • Parameters

    • elementId: string | HTMLCanvasElement | HTMLDivElement
    • backend: number
    • width: number
    • height: number
    • background: string = '#FFF'

    Returns RenderContext

  • Parameters

    • context: RenderContext
    • fromX: number
    • fromY: number
    • toX: number
    • toY: number
    • dashPattern: number[]

    Returns void

  • Parameters

    • elementId: string
    • width: number
    • height: number
    • Optional background: string

    Returns RenderContext

  • Parameters

    • elementId: string
    • width: number
    • height: number
    • Optional background: string

    Returns RenderContext