Interface: IOptions
Hierarchy​
Properties​
rootEmSize​
• Optional rootEmSize: number
Default rem size.
Inherited from​
Defined in​
emSize​
• Optional emSize: number
Default em size.
Inherited from​
Defined in​
createCanvas​
• Optional createCanvas: CreateCanvas
Function to create new canvas.
Inherited from​
Defined in​
createImage​
• Optional createImage: CreateImage
Function to create new image.
Inherited from​
Defined in​
anonymousCrossOrigin​
• Optional anonymousCrossOrigin: boolean
Load images anonymously.
Inherited from​
IDocumentOptions.anonymousCrossOrigin
Defined in​
fetch​
• Optional fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>
Type declaration​
â–¸ (input, init?): Promise<Response>
WHATWG-compatible fetch function.
Parameters​
| Name | Type |
|---|---|
input | RequestInfo | URL |
init? | RequestInit |
Returns​
Promise<Response>
Inherited from​
Defined in​
DOMParser​
• Optional DOMParser: () => DOMParser
Type declaration​
• new DOMParser(): DOMParser
XML/HTML parser from string into DOM Document.
Returns​
DOMParser
Inherited from​
Defined in​
window​
• Optional window: Window
Window object.
Inherited from​
Defined in​
enableRedraw​
• Optional enableRedraw: boolean
Whether enable the redraw.
Inherited from​
IScreenStartOptions.enableRedraw
Defined in​
ignoreMouse​
• Optional ignoreMouse: boolean
Ignore mouse events.
Inherited from​
IScreenStartOptions.ignoreMouse
Defined in​
ignoreAnimation​
• Optional ignoreAnimation: boolean
Ignore animations.
Inherited from​
IScreenStartOptions.ignoreAnimation
Defined in​
ignoreDimensions​
• Optional ignoreDimensions: boolean
Does not try to resize canvas.
Inherited from​
IScreenStartOptions.ignoreDimensions
Defined in​
ignoreClear​
• Optional ignoreClear: boolean
Does not clear canvas.
Inherited from​
IScreenStartOptions.ignoreClear
Defined in​
scaleWidth​
• Optional scaleWidth: number
Scales horizontally to width.
Inherited from​
IScreenStartOptions.scaleWidth
Defined in​
scaleHeight​
• Optional scaleHeight: number
Scales vertically to height.
Inherited from​
IScreenStartOptions.scaleHeight
Defined in​
offsetX​
• Optional offsetX: number
Draws at a x offset.
Inherited from​
Defined in​
offsetY​
• Optional offsetY: number
Draws at a y offset.
Inherited from​
Defined in​
Methods​
forceRedraw​
â–¸ Optional forceRedraw(): boolean
Will call the function on every frame, if it returns true, will redraw.
Returns​
boolean
Inherited from​
IScreenStartOptions.forceRedraw