Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IOptions

Hierarchy

Index

Properties

Optional DOMParser

DOMParser: {}

XML/HTML parser from string into DOM Document.

Type declaration

Optional anonymousCrossOrigin

anonymousCrossOrigin: boolean

Load images anonymously.

Optional createCanvas

createCanvas: CreateCanvas

Function to create new canvas.

Optional createImage

createImage: CreateImage

Function to create new image.

Optional emSize

emSize: number

Default em size.

Optional enableRedraw

enableRedraw: boolean

Whether enable the redraw.

Optional fetch

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

WHATWG-compatible fetch function.

Type declaration

    • (input: RequestInfo, init?: RequestInit): Promise<Response>
    • Parameters

      • input: RequestInfo
      • Optional init: RequestInit

      Returns Promise<Response>

Optional ignoreAnimation

ignoreAnimation: boolean

Ignore animations.

Optional ignoreClear

ignoreClear: boolean

Does not clear canvas.

Optional ignoreDimensions

ignoreDimensions: boolean

Does not try to resize canvas.

Optional ignoreMouse

ignoreMouse: boolean

Ignore mouse events.

Optional offsetX

offsetX: number

Draws at a x offset.

Optional offsetY

offsetY: number

Draws at a y offset.

Optional rootEmSize

rootEmSize: number

Default rem size.

Optional scaleHeight

scaleHeight: number

Scales vertically to height.

Optional scaleWidth

scaleWidth: number

Scales horizontally to width.

Optional window

window: Window

Window object.

Methods

Optional forceRedraw

  • forceRedraw(): boolean

Generated using TypeDoc