Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IOptions

Hierarchy

Index

Properties

DOMParser?: {}

XML/HTML parser from string into DOM Document.

Type declaration

    anonymousCrossOrigin?: boolean

    Load images anonymously.

    createCanvas?: CreateCanvas

    Function to create new canvas.

    createImage?: CreateImage

    Function to create new image.

    emSize?: number

    Default em size.

    enableRedraw?: boolean

    Whether enable the redraw.

    fetch?: (input: RequestInfo, init?: RequestInit) => Promise<Response>

    Type declaration

      • (input: RequestInfo, init?: RequestInit): Promise<Response>
      • WHATWG-compatible fetch function.

        Parameters

        • input: RequestInfo
        • Optional init: RequestInit

        Returns Promise<Response>

    ignoreAnimation?: boolean

    Ignore animations.

    ignoreClear?: boolean

    Does not clear canvas.

    ignoreDimensions?: boolean

    Does not try to resize canvas.

    ignoreMouse?: boolean

    Ignore mouse events.

    offsetX?: number

    Draws at a x offset.

    offsetY?: number

    Draws at a y offset.

    rootEmSize?: number

    Default rem size.

    scaleHeight?: number

    Scales vertically to height.

    scaleWidth?: number

    Scales horizontally to width.

    window?: Window

    Window object.

    Methods

    • forceRedraw(): boolean

    Generated using TypeDoc