API ReferenceGlobalsMockHTMLCanvasElement

# Class: MockHTMLCanvasElement

# Hierarchy

# Index

# Properties

# Methods

# Properties

# ATTRIBUTE_NODE

ATTRIBUTE_NODE: number

Inherited from MockHTMLCanvasElement.ATTRIBUTE_NODE

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11046


# CDATA_SECTION_NODE

CDATA_SECTION_NODE: number

Inherited from MockHTMLCanvasElement.CDATA_SECTION_NODE

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11050

node is a CDATASection node.


# COMMENT_NODE

COMMENT_NODE: number

Inherited from MockHTMLCanvasElement.COMMENT_NODE

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11054

node is a Comment node.


# DOCUMENT_FRAGMENT_NODE

DOCUMENT_FRAGMENT_NODE: number

Inherited from MockHTMLCanvasElement.DOCUMENT_FRAGMENT_NODE

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11058

node is a DocumentFragment node.


# DOCUMENT_NODE

DOCUMENT_NODE: number

Inherited from MockHTMLCanvasElement.DOCUMENT_NODE

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11062

node is a document.


# DOCUMENT_POSITION_CONTAINED_BY

DOCUMENT_POSITION_CONTAINED_BY: number

Inherited from MockHTMLCanvasElement.DOCUMENT_POSITION_CONTAINED_BY

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11066

Set when other is a descendant of node.


# DOCUMENT_POSITION_CONTAINS

DOCUMENT_POSITION_CONTAINS: number

Inherited from MockHTMLCanvasElement.DOCUMENT_POSITION_CONTAINS

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11070

Set when other is an ancestor of node.


# DOCUMENT_POSITION_DISCONNECTED

DOCUMENT_POSITION_DISCONNECTED: number

Inherited from MockHTMLCanvasElement.DOCUMENT_POSITION_DISCONNECTED

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11074

Set when node and other are not in the same tree.


# DOCUMENT_POSITION_FOLLOWING

DOCUMENT_POSITION_FOLLOWING: number

Inherited from MockHTMLCanvasElement.DOCUMENT_POSITION_FOLLOWING

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11078

Set when other is following node.


# DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number

Inherited from MockHTMLCanvasElement.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11079


# DOCUMENT_POSITION_PRECEDING

DOCUMENT_POSITION_PRECEDING: number

Inherited from MockHTMLCanvasElement.DOCUMENT_POSITION_PRECEDING

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11083

Set when other is preceding node.


# DOCUMENT_TYPE_NODE

DOCUMENT_TYPE_NODE: number

Inherited from MockHTMLCanvasElement.DOCUMENT_TYPE_NODE

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11087

node is a doctype.


# ELEMENT_NODE

ELEMENT_NODE: number

Inherited from MockHTMLCanvasElement.ELEMENT_NODE

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11091

node is an element.


# ENTITY_NODE

ENTITY_NODE: number

Inherited from MockHTMLCanvasElement.ENTITY_NODE

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11092


# ENTITY_REFERENCE_NODE

ENTITY_REFERENCE_NODE: number

Inherited from MockHTMLCanvasElement.ENTITY_REFERENCE_NODE

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11093


# NOTATION_NODE

NOTATION_NODE: number

Inherited from MockHTMLCanvasElement.NOTATION_NODE

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11094


# PROCESSING_INSTRUCTION_NODE

PROCESSING_INSTRUCTION_NODE: number

Inherited from MockHTMLCanvasElement.PROCESSING_INSTRUCTION_NODE

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11098

node is a ProcessingInstruction node.


# TEXT_NODE

TEXT_NODE: number

Inherited from MockHTMLCanvasElement.TEXT_NODE

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11102

node is a Text node.


# accessKey

accessKey: string

Inherited from MockHTMLCanvasElement.accessKey

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6694


# accessKeyLabel

accessKeyLabel: string

Inherited from MockHTMLCanvasElement.accessKeyLabel

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6695


# assignedSlot

assignedSlot: HTMLSlotElement | null

Inherited from MockHTMLCanvasElement.assignedSlot

Overrides void

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5199


# attributes

attributes: NamedNodeMap

Inherited from MockHTMLCanvasElement.attributes

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5200


# autocapitalize

autocapitalize: string

Inherited from MockHTMLCanvasElement.autocapitalize

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6696


# baseURI

baseURI: string

Inherited from MockHTMLCanvasElement.baseURI

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:10961

Returns node's node document's document base URL.


# childElementCount

childElementCount: number

Inherited from MockHTMLCanvasElement.childElementCount

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11505


# childNodes

childNodes: NodeListOf‹ChildNode›

Inherited from MockHTMLCanvasElement.childNodes

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:10965

Returns the children.


# children

children: HTMLCollection

Inherited from MockHTMLCanvasElement.children

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11509

Returns the child elements.


# classList

classList: DOMTokenList

Inherited from MockHTMLCanvasElement.classList

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5204

Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.


# className

className: string

Inherited from MockHTMLCanvasElement.className

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5208

Returns the value of element's class content attribute. Can be set to change it.


# clientHeight

clientHeight: number

Inherited from MockHTMLCanvasElement.clientHeight

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5209


# clientLeft

clientLeft: number

Inherited from MockHTMLCanvasElement.clientLeft

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5210


# clientTop

clientTop: number

Inherited from MockHTMLCanvasElement.clientTop

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5211


# clientWidth

clientWidth: number

Inherited from MockHTMLCanvasElement.clientWidth

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5212


# contentEditable

contentEditable: string

Inherited from MockHTMLCanvasElement.contentEditable

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5363


# dataset

dataset: DOMStringMap

Inherited from MockHTMLCanvasElement.dataset

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:8166


# dir

dir: string

Inherited from MockHTMLCanvasElement.dir

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6697


# draggable

draggable: boolean

Inherited from MockHTMLCanvasElement.draggable

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6698


# firstChild

firstChild: ChildNode | null

Inherited from MockHTMLCanvasElement.firstChild

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:10969

Returns the first child.


# firstElementChild

firstElementChild: Element | null

Inherited from MockHTMLCanvasElement.firstElementChild

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11513

Returns the first child that is an element, and null otherwise.


# height

height: number

Inherited from MockHTMLCanvasElement.height

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6508

Gets or sets the height of a canvas element on a document.


# hidden

hidden: boolean

Inherited from MockHTMLCanvasElement.hidden

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6699


# id

id: string

Inherited from MockHTMLCanvasElement.id

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5216

Returns the value of element's id content attribute. Can be set to change it.


# innerHTML

innerHTML: string

Inherited from MockHTMLCanvasElement.innerHTML

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:9789


# innerText

innerText: string

Inherited from MockHTMLCanvasElement.innerText

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6700


# inputMode

inputMode: string

Inherited from MockHTMLCanvasElement.inputMode

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5364


# isConnected

isConnected: boolean

Inherited from MockHTMLCanvasElement.isConnected

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:10973

Returns true if node is connected and false otherwise.


# isContentEditable

isContentEditable: boolean

Inherited from MockHTMLCanvasElement.isContentEditable

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5365


# lang

lang: string

Inherited from MockHTMLCanvasElement.lang

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6701


# lastChild

lastChild: ChildNode | null

Inherited from MockHTMLCanvasElement.lastChild

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:10977

Returns the last child.


# lastElementChild

lastElementChild: Element | null

Inherited from MockHTMLCanvasElement.lastElementChild

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11517

Returns the last child that is an element, and null otherwise.


# localName

localName: string

Inherited from MockHTMLCanvasElement.localName

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5220

Returns the local name.


# namespaceURI

namespaceURI: string | null

Inherited from MockHTMLCanvasElement.namespaceURI

Overrides void

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5224

Returns the namespace.


# nextElementSibling

nextElementSibling: Element | null

Inherited from MockHTMLCanvasElement.nextElementSibling

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11248

Returns the first following sibling that is an element, and null otherwise.


# nextSibling

nextSibling: ChildNode | null

Inherited from MockHTMLCanvasElement.nextSibling

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:10983

Returns the next sibling.


# nodeName

nodeName: string

Inherited from MockHTMLCanvasElement.nodeName

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:10987

Returns a string appropriate for the type of node.


# nodeType

nodeType: number

Inherited from MockHTMLCanvasElement.nodeType

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:10991

Returns the type of node.


# nodeValue

nodeValue: string | null

Inherited from MockHTMLCanvasElement.nodeValue

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:10992


# Optional nonce

nonce? : string

Inherited from MockHTMLCanvasElement.nonce

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:8167


# offsetHeight

offsetHeight: number

Inherited from MockHTMLCanvasElement.offsetHeight

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6702


# offsetLeft

offsetLeft: number

Inherited from MockHTMLCanvasElement.offsetLeft

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6703


# offsetParent

offsetParent: Element | null

Inherited from MockHTMLCanvasElement.offsetParent

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6704


# offsetTop

offsetTop: number

Inherited from MockHTMLCanvasElement.offsetTop

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6705


# offsetWidth

offsetWidth: number

Inherited from MockHTMLCanvasElement.offsetWidth

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6706


# onabort

onabort: function | null

Inherited from MockHTMLCanvasElement.onabort

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5876

Fires when the user aborts the download.

param The event.


# onanimationcancel

onanimationcancel: function | null

Inherited from MockHTMLCanvasElement.onanimationcancel

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5877


# onanimationend

onanimationend: function | null

Inherited from MockHTMLCanvasElement.onanimationend

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5878


# onanimationiteration

onanimationiteration: function | null

Inherited from MockHTMLCanvasElement.onanimationiteration

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5879


# onanimationstart

onanimationstart: function | null

Inherited from MockHTMLCanvasElement.onanimationstart

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5880


# onauxclick

onauxclick: function | null

Inherited from MockHTMLCanvasElement.onauxclick

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5881


# onblur

onblur: function | null

Inherited from MockHTMLCanvasElement.onblur

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5886

Fires when the object loses the input focus.

param The focus event.


# oncancel

oncancel: function | null

Inherited from MockHTMLCanvasElement.oncancel

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5887


# oncanplay

oncanplay: function | null

Inherited from MockHTMLCanvasElement.oncanplay

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5892

Occurs when playback is possible, but would require further buffering.

param The event.


# oncanplaythrough

oncanplaythrough: function | null

Inherited from MockHTMLCanvasElement.oncanplaythrough

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5893


# onchange

onchange: function | null

Inherited from MockHTMLCanvasElement.onchange

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5898

Fires when the contents of the object or selection have changed.

param The event.


# onclick

onclick: function | null

Inherited from MockHTMLCanvasElement.onclick

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5903

Fires when the user clicks the left mouse button on the object

param The mouse event.


# onclose

onclose: function | null

Inherited from MockHTMLCanvasElement.onclose

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5904


# oncontextmenu

oncontextmenu: function | null

Inherited from MockHTMLCanvasElement.oncontextmenu

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5909

Fires when the user clicks the right mouse button in the client area, opening the context menu.

param The mouse event.


# oncopy

oncopy: function | null

Inherited from MockHTMLCanvasElement.oncopy

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:4999


# oncuechange

oncuechange: function | null

Inherited from MockHTMLCanvasElement.oncuechange

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5910


# oncut

oncut: function | null

Inherited from MockHTMLCanvasElement.oncut

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5000


# ondblclick

ondblclick: function | null

Inherited from MockHTMLCanvasElement.ondblclick

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5915

Fires when the user double-clicks the object.

param The mouse event.


# ondrag

ondrag: function | null

Inherited from MockHTMLCanvasElement.ondrag

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5920

Fires on the source object continuously during a drag operation.

param The event.


# ondragend

ondragend: function | null

Inherited from MockHTMLCanvasElement.ondragend

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5925

Fires on the source object when the user releases the mouse at the close of a drag operation.

param The event.


# ondragenter

ondragenter: function | null

Inherited from MockHTMLCanvasElement.ondragenter

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5930

Fires on the target element when the user drags the object to a valid drop target.

param The drag event.


# ondragexit

ondragexit: function | null

Inherited from MockHTMLCanvasElement.ondragexit

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5931


# ondragleave

ondragleave: function | null

Inherited from MockHTMLCanvasElement.ondragleave

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5936

Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.

param The drag event.


# ondragover

ondragover: function | null

Inherited from MockHTMLCanvasElement.ondragover

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5941

Fires on the target element continuously while the user drags the object over a valid drop target.

param The event.


# ondragstart

ondragstart: function | null

Inherited from MockHTMLCanvasElement.ondragstart

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5946

Fires on the source object when the user starts to drag a text selection or selected object.

param The event.


# ondrop

ondrop: function | null

Inherited from MockHTMLCanvasElement.ondrop

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5947


# ondurationchange

ondurationchange: function | null

Inherited from MockHTMLCanvasElement.ondurationchange

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5952

Occurs when the duration attribute is updated.

param The event.


# onemptied

onemptied: function | null

Inherited from MockHTMLCanvasElement.onemptied

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5957

Occurs when the media element is reset to its initial state.

param The event.


# onended

onended: function | null

Inherited from MockHTMLCanvasElement.onended

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5962

Occurs when the end of playback is reached.

param The event


# onerror

onerror: OnErrorEventHandler

Inherited from MockHTMLCanvasElement.onerror

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5967

Fires when an error occurs during object loading.

param The event.


# onfocus

onfocus: function | null

Inherited from MockHTMLCanvasElement.onfocus

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5972

Fires when the object receives focus.

param The event.


# onfullscreenchange

onfullscreenchange: function | null

Inherited from MockHTMLCanvasElement.onfullscreenchange

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5225


# onfullscreenerror

onfullscreenerror: function | null

Inherited from MockHTMLCanvasElement.onfullscreenerror

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5226


# ongotpointercapture

ongotpointercapture: function | null

Inherited from MockHTMLCanvasElement.ongotpointercapture

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5973


# oninput

oninput: function | null

Inherited from MockHTMLCanvasElement.oninput

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5974


# oninvalid

oninvalid: function | null

Inherited from MockHTMLCanvasElement.oninvalid

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5975


# onkeydown

onkeydown: function | null

Inherited from MockHTMLCanvasElement.onkeydown

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5980

Fires when the user presses a key.

param The keyboard event


# onkeypress

onkeypress: function | null

Inherited from MockHTMLCanvasElement.onkeypress

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5985

Fires when the user presses an alphanumeric key.

param The event.


# onkeyup

onkeyup: function | null

Inherited from MockHTMLCanvasElement.onkeyup

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5990

Fires when the user releases a key.

param The keyboard event


# onload

onload: function | null

Inherited from MockHTMLCanvasElement.onload

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5995

Fires immediately after the browser loads the object.

param The event.


# onloadeddata

onloadeddata: function | null

Inherited from MockHTMLCanvasElement.onloadeddata

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6000

Occurs when media data is loaded at the current playback position.

param The event.


# onloadedmetadata

onloadedmetadata: function | null

Inherited from MockHTMLCanvasElement.onloadedmetadata

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6005

Occurs when the duration and dimensions of the media have been determined.

param The event.


# onloadend

onloadend: function | null

Inherited from MockHTMLCanvasElement.onloadend

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6006


# onloadstart

onloadstart: function | null

Inherited from MockHTMLCanvasElement.onloadstart

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6011

Occurs when Internet Explorer begins looking for media data.

param The event.


# onlostpointercapture

onlostpointercapture: function | null

Inherited from MockHTMLCanvasElement.onlostpointercapture

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6012


# onmousedown

onmousedown: function | null

Inherited from MockHTMLCanvasElement.onmousedown

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6017

Fires when the user clicks the object with either mouse button.

param The mouse event.


# onmouseenter

onmouseenter: function | null

Inherited from MockHTMLCanvasElement.onmouseenter

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6018


# onmouseleave

onmouseleave: function | null

Inherited from MockHTMLCanvasElement.onmouseleave

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6019


# onmousemove

onmousemove: function | null

Inherited from MockHTMLCanvasElement.onmousemove

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6024

Fires when the user moves the mouse over the object.

param The mouse event.


# onmouseout

onmouseout: function | null

Inherited from MockHTMLCanvasElement.onmouseout

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6029

Fires when the user moves the mouse pointer outside the boundaries of the object.

param The mouse event.


# onmouseover

onmouseover: function | null

Inherited from MockHTMLCanvasElement.onmouseover

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6034

Fires when the user moves the mouse pointer into the object.

param The mouse event.


# onmouseup

onmouseup: function | null

Inherited from MockHTMLCanvasElement.onmouseup

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6039

Fires when the user releases a mouse button while the mouse is over the object.

param The mouse event.


# onpaste

onpaste: function | null

Inherited from MockHTMLCanvasElement.onpaste

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5001


# onpause

onpause: function | null

Inherited from MockHTMLCanvasElement.onpause

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6044

Occurs when playback is paused.

param The event.


# onplay

onplay: function | null

Inherited from MockHTMLCanvasElement.onplay

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6049

Occurs when the play method is requested.

param The event.


# onplaying

onplaying: function | null

Inherited from MockHTMLCanvasElement.onplaying

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6054

Occurs when the audio or video has started playing.

param The event.


# onpointercancel

onpointercancel: function | null

Inherited from MockHTMLCanvasElement.onpointercancel

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6055


# onpointerdown

onpointerdown: function | null

Inherited from MockHTMLCanvasElement.onpointerdown

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6056


# onpointerenter

onpointerenter: function | null

Inherited from MockHTMLCanvasElement.onpointerenter

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6057


# onpointerleave

onpointerleave: function | null

Inherited from MockHTMLCanvasElement.onpointerleave

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6058


# onpointermove

onpointermove: function | null

Inherited from MockHTMLCanvasElement.onpointermove

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6059


# onpointerout

onpointerout: function | null

Inherited from MockHTMLCanvasElement.onpointerout

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6060


# onpointerover

onpointerover: function | null

Inherited from MockHTMLCanvasElement.onpointerover

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6061


# onpointerup

onpointerup: function | null

Inherited from MockHTMLCanvasElement.onpointerup

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6062


# onprogress

onprogress: function | null

Inherited from MockHTMLCanvasElement.onprogress

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6067

Occurs to indicate progress while downloading media data.

param The event.


# onratechange

onratechange: function | null

Inherited from MockHTMLCanvasElement.onratechange

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6072

Occurs when the playback rate is increased or decreased.

param The event.


# onreset

onreset: function | null

Inherited from MockHTMLCanvasElement.onreset

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6077

Fires when the user resets a form.

param The event.


# onresize

onresize: function | null

Inherited from MockHTMLCanvasElement.onresize

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6078


# onscroll

onscroll: function | null

Inherited from MockHTMLCanvasElement.onscroll

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6083

Fires when the user repositions the scroll box in the scroll bar on the object.

param The event.


# onsecuritypolicyviolation

onsecuritypolicyviolation: function | null

Inherited from MockHTMLCanvasElement.onsecuritypolicyviolation

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6084


# onseeked

onseeked: function | null

Inherited from MockHTMLCanvasElement.onseeked

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6089

Occurs when the seek operation ends.

param The event.


# onseeking

onseeking: function | null

Inherited from MockHTMLCanvasElement.onseeking

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6094

Occurs when the current playback position is moved.

param The event.


# onselect

onselect: function | null

Inherited from MockHTMLCanvasElement.onselect

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6099

Fires when the current selection changes.

param The event.


# onselectionchange

onselectionchange: function | null

Inherited from MockHTMLCanvasElement.onselectionchange

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6100


# onselectstart

onselectstart: function | null

Inherited from MockHTMLCanvasElement.onselectstart

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6101


# onstalled

onstalled: function | null

Inherited from MockHTMLCanvasElement.onstalled

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6106

Occurs when the download has stopped.

param The event.


# onsubmit

onsubmit: function | null

Inherited from MockHTMLCanvasElement.onsubmit

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6107


# onsuspend

onsuspend: function | null

Inherited from MockHTMLCanvasElement.onsuspend

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6112

Occurs if the load operation has been intentionally halted.

param The event.


# ontimeupdate

ontimeupdate: function | null

Inherited from MockHTMLCanvasElement.ontimeupdate

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6117

Occurs to indicate the current playback position.

param The event.


# ontoggle

ontoggle: function | null

Inherited from MockHTMLCanvasElement.ontoggle

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6118


# ontouchcancel

ontouchcancel: function | null

Inherited from MockHTMLCanvasElement.ontouchcancel

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6119


# ontouchend

ontouchend: function | null

Inherited from MockHTMLCanvasElement.ontouchend

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6120


# ontouchmove

ontouchmove: function | null

Inherited from MockHTMLCanvasElement.ontouchmove

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6121


# ontouchstart

ontouchstart: function | null

Inherited from MockHTMLCanvasElement.ontouchstart

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6122


# ontransitioncancel

ontransitioncancel: function | null

Inherited from MockHTMLCanvasElement.ontransitioncancel

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6123


# ontransitionend

ontransitionend: function | null

Inherited from MockHTMLCanvasElement.ontransitionend

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6124


# ontransitionrun

ontransitionrun: function | null

Inherited from MockHTMLCanvasElement.ontransitionrun

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6125


# ontransitionstart

ontransitionstart: function | null

Inherited from MockHTMLCanvasElement.ontransitionstart

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6126


# onvolumechange

onvolumechange: function | null

Inherited from MockHTMLCanvasElement.onvolumechange

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6131

Occurs when the volume is changed, or playback is muted or unmuted.

param The event.


# onwaiting

onwaiting: function | null

Inherited from MockHTMLCanvasElement.onwaiting

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6136

Occurs when playback stops because the next frame of a video resource is not available.

param The event.


# onwheel

onwheel: function | null

Inherited from MockHTMLCanvasElement.onwheel

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6137


# outerHTML

outerHTML: string

Inherited from MockHTMLCanvasElement.outerHTML

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5227


# ownerDocument

ownerDocument: Document | null

Inherited from MockHTMLCanvasElement.ownerDocument

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:10996

Returns the node document. Returns null for documents.


# parentElement

parentElement: HTMLElement | null

Inherited from MockHTMLCanvasElement.parentElement

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11000

Returns the parent element.


# parentNode

parentNode: Node & ParentNode | null

Inherited from MockHTMLCanvasElement.parentNode

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11004

Returns the parent.


# prefix

prefix: string | null

Inherited from MockHTMLCanvasElement.prefix

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5231

Returns the namespace prefix.


# previousElementSibling

previousElementSibling: Element | null

Inherited from MockHTMLCanvasElement.previousElementSibling

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11252

Returns the first preceding sibling that is an element, and null otherwise.


# previousSibling

previousSibling: Node | null

Inherited from MockHTMLCanvasElement.previousSibling

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11008

Returns the previous sibling.


# scrollHeight

scrollHeight: number

Inherited from MockHTMLCanvasElement.scrollHeight

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5232


# scrollLeft

scrollLeft: number

Inherited from MockHTMLCanvasElement.scrollLeft

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5233


# scrollTop

scrollTop: number

Inherited from MockHTMLCanvasElement.scrollTop

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5234


# scrollWidth

scrollWidth: number

Inherited from MockHTMLCanvasElement.scrollWidth

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5235


# shadowRoot

shadowRoot: ShadowRoot | null

Inherited from MockHTMLCanvasElement.shadowRoot

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5239

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise.


# slot

slot: string

Inherited from MockHTMLCanvasElement.slot

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5243

Returns the value of element's slot content attribute. Can be set to change it.


# spellcheck

spellcheck: boolean

Inherited from MockHTMLCanvasElement.spellcheck

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6707


# style

style: CSSStyleDeclaration

Inherited from MockHTMLCanvasElement.style

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5359


# tabIndex

tabIndex: number

Inherited from MockHTMLCanvasElement.tabIndex

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:8168


# tagName

tagName: string

Inherited from MockHTMLCanvasElement.tagName

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5247

Returns the HTML-uppercased qualified name.


# textContent

textContent: string | null

Inherited from MockHTMLCanvasElement.textContent

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11009


# title

title: string

Inherited from MockHTMLCanvasElement.title

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6708


# translate

translate: boolean

Inherited from MockHTMLCanvasElement.translate

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6709


# width

width: number

Inherited from MockHTMLCanvasElement.width

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6512

Gets or sets the width of a canvas element on a document.


# Static HTMLCanvasElement

HTMLCanvasElement: object

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6535

# Type declaration:

# Methods

# addEventListener

addEventListener<K>(type: K, listener: function, options?: boolean | AddEventListenerOptions): void

Inherited from MockHTMLCanvasElement.addEventListener

Overrides void

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6529

Type parameters:

K: keyof HTMLElementEventMap

Parameters:

type: K

listener: function

▸ (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]): any

Parameters:

Name Type
this HTMLCanvasElement
ev HTMLElementEventMap[K]

Optional options: boolean | AddEventListenerOptions

Returns: void

addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void

Inherited from MockHTMLCanvasElement.addEventListener

Overrides void

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6530

Parameters:

Name Type
type string
listener EventListenerOrEventListenerObject
options? boolean | AddEventListenerOptions

Returns: void


# after

after(...nodes: string | Node[]): void

Inherited from MockHTMLCanvasElement.after

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:3586

Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

Parameters:

Name Type
...nodes string | Node[]

Returns: void


# animate

animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation

Inherited from MockHTMLCanvasElement.animate

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:1986

Parameters:

Name Type
keyframes Keyframe[] | PropertyIndexedKeyframes | null
options? number | KeyframeAnimationOptions

Returns: Animation


# append

append(...nodes: string | Node[]): void

Inherited from MockHTMLCanvasElement.append

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11523

Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

Parameters:

Name Type
...nodes string | Node[]

Returns: void


# appendChild

appendChild<T>(newChild: T): T

Inherited from MockHTMLCanvasElement.appendChild

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11010

Type parameters:

T: Node

Parameters:

Name Type
newChild T

Returns: T


# attachShadow

attachShadow(init: ShadowRootInit): ShadowRoot

Inherited from MockHTMLCanvasElement.attachShadow

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5251

Creates a shadow root for element and returns it.

Parameters:

Name Type
init ShadowRootInit

Returns: ShadowRoot


# before

before(...nodes: string | Node[]): void

Inherited from MockHTMLCanvasElement.before

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:3592

Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

Parameters:

Name Type
...nodes string | Node[]

Returns: void


# blur

blur(): void

Inherited from MockHTMLCanvasElement.blur

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:8169

Returns: void


# click

click(): void

Inherited from MockHTMLCanvasElement.click

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6710

Returns: void


# cloneNode

cloneNode(deep?: boolean): Node

Inherited from MockHTMLCanvasElement.cloneNode

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11014

Returns a copy of node. If deep is true, the copy also includes the node's descendants.

Parameters:

Name Type
deep? boolean

Returns: Node


# closest

closest<K>(selector: K): HTMLElementTagNameMap[K] | null

Inherited from MockHTMLCanvasElement.closest

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5255

Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.

Type parameters:

K: keyof HTMLElementTagNameMap

Parameters:

Name Type
selector K

Returns: HTMLElementTagNameMap[K] | null

closest<K>(selector: K): SVGElementTagNameMap[K] | null

Inherited from MockHTMLCanvasElement.closest

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5256

Type parameters:

K: keyof SVGElementTagNameMap

Parameters:

Name Type
selector K

Returns: SVGElementTagNameMap[K] | null

closest<E>(selector: string): E | null

Inherited from MockHTMLCanvasElement.closest

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5257

Type parameters:

E: Element

Parameters:

Name Type
selector string

Returns: E | null


# compareDocumentPosition

compareDocumentPosition(other: Node): number

Inherited from MockHTMLCanvasElement.compareDocumentPosition

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11018

Returns a bitmask indicating the position of other relative to node.

Parameters:

Name Type
other Node

Returns: number


# contains

contains(other: Node | null): boolean

Inherited from MockHTMLCanvasElement.contains

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11022

Returns true if other is an inclusive descendant of node, and false otherwise.

Parameters:

Name Type
other Node | null

Returns: boolean


# dispatchEvent

dispatchEvent(event: Event): boolean

Inherited from MockHTMLCanvasElement.dispatchEvent

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5526

Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

Parameters:

Name Type
event Event

Returns: boolean


# focus

focus(options?: FocusOptions): void

Inherited from MockHTMLCanvasElement.focus

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:8170

Parameters:

Name Type
options? FocusOptions

Returns: void


# getAnimations

getAnimations(): Animation[]

Inherited from MockHTMLCanvasElement.getAnimations

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:1987

Returns: Animation[]


# getAttribute

getAttribute(qualifiedName: string): string | null

Inherited from MockHTMLCanvasElement.getAttribute

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5261

Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.

Parameters:

Name Type
qualifiedName string

Returns: string | null


# getAttributeNS

getAttributeNS(namespace: string | null, localName: string): string | null

Inherited from MockHTMLCanvasElement.getAttributeNS

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5265

Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.

Parameters:

Name Type
namespace string | null
localName string

Returns: string | null


# getAttributeNames

getAttributeNames(): string[]

Inherited from MockHTMLCanvasElement.getAttributeNames

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5269

Returns the qualified names of all element's attributes. Can contain duplicates.

Returns: string[]


# getAttributeNode

getAttributeNode(name: string): Attr | null

Inherited from MockHTMLCanvasElement.getAttributeNode

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5270

Parameters:

Name Type
name string

Returns: Attr | null


# getAttributeNodeNS

getAttributeNodeNS(namespaceURI: string, localName: string): Attr | null

Inherited from MockHTMLCanvasElement.getAttributeNodeNS

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5271

Parameters:

Name Type
namespaceURI string
localName string

Returns: Attr | null


# getBoundingClientRect

getBoundingClientRect(): DOMRect

Inherited from MockHTMLCanvasElement.getBoundingClientRect

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5272

Returns: DOMRect


# getClientRects

getClientRects(): DOMRectList

Inherited from MockHTMLCanvasElement.getClientRects

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5273

Returns: DOMRectList


# getContext

getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null

Inherited from MockHTMLCanvasElement.getContext

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6517

Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas.

Parameters:

Name Type Description
contextId "2d" The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl");
options? CanvasRenderingContext2DSettings -

Returns: CanvasRenderingContext2D | null

getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null

Inherited from MockHTMLCanvasElement.getContext

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6518

Parameters:

Name Type
contextId "bitmaprenderer"
options? ImageBitmapRenderingContextSettings

Returns: ImageBitmapRenderingContext | null

getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null

Inherited from MockHTMLCanvasElement.getContext

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6519

Parameters:

Name Type
contextId "webgl"
options? WebGLContextAttributes

Returns: WebGLRenderingContext | null

getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null

Inherited from MockHTMLCanvasElement.getContext

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6520

Parameters:

Name Type
contextId "webgl2"
options? WebGLContextAttributes

Returns: WebGL2RenderingContext | null

getContext(contextId: string, options?: any): RenderingContext | null

Inherited from MockHTMLCanvasElement.getContext

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6521

Parameters:

Name Type
contextId string
options? any

Returns: RenderingContext | null


# getElementsByClassName

getElementsByClassName(classNames: string): HTMLCollectionOf‹Element›

Inherited from MockHTMLCanvasElement.getElementsByClassName

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5277

Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.

Parameters:

Name Type
classNames string

Returns: HTMLCollectionOf‹Element›


# getElementsByTagName

getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf‹HTMLElementTagNameMap[K]›

Inherited from MockHTMLCanvasElement.getElementsByTagName

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5278

Type parameters:

K: keyof HTMLElementTagNameMap

Parameters:

Name Type
qualifiedName K

Returns: HTMLCollectionOf‹HTMLElementTagNameMap[K]›

getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf‹SVGElementTagNameMap[K]›

Inherited from MockHTMLCanvasElement.getElementsByTagName

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5279

Type parameters:

K: keyof SVGElementTagNameMap

Parameters:

Name Type
qualifiedName K

Returns: HTMLCollectionOf‹SVGElementTagNameMap[K]›

getElementsByTagName(qualifiedName: string): HTMLCollectionOf‹Element›

Inherited from MockHTMLCanvasElement.getElementsByTagName

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5280

Parameters:

Name Type
qualifiedName string

Returns: HTMLCollectionOf‹Element›


# getElementsByTagNameNS

getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf‹HTMLElement›

Inherited from MockHTMLCanvasElement.getElementsByTagNameNS

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5281

Parameters:

Name Type
namespaceURI "http://www.w3.org/1999/xhtml"
localName string

Returns: HTMLCollectionOf‹HTMLElement›

getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf‹SVGElement›

Inherited from MockHTMLCanvasElement.getElementsByTagNameNS

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5282

Parameters:

Name Type
namespaceURI "http://www.w3.org/2000/svg"
localName string

Returns: HTMLCollectionOf‹SVGElement›

getElementsByTagNameNS(namespaceURI: string, localName: string): HTMLCollectionOf‹Element›

Inherited from MockHTMLCanvasElement.getElementsByTagNameNS

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5283

Parameters:

Name Type
namespaceURI string
localName string

Returns: HTMLCollectionOf‹Element›


# getRootNode

getRootNode(options?: GetRootNodeOptions): Node

Inherited from MockHTMLCanvasElement.getRootNode

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11026

Returns node's root.

Parameters:

Name Type
options? GetRootNodeOptions

Returns: Node


# hasAttribute

hasAttribute(qualifiedName: string): boolean

Inherited from MockHTMLCanvasElement.hasAttribute

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5287

Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.

Parameters:

Name Type
qualifiedName string

Returns: boolean


# hasAttributeNS

hasAttributeNS(namespace: string | null, localName: string): boolean

Inherited from MockHTMLCanvasElement.hasAttributeNS

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5291

Returns true if element has an attribute whose namespace is namespace and local name is localName.

Parameters:

Name Type
namespace string | null
localName string

Returns: boolean


# hasAttributes

hasAttributes(): boolean

Inherited from MockHTMLCanvasElement.hasAttributes

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5295

Returns true if element has attributes, and false otherwise.

Returns: boolean


# hasChildNodes

hasChildNodes(): boolean

Inherited from MockHTMLCanvasElement.hasChildNodes

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11030

Returns whether node has children.

Returns: boolean


# hasPointerCapture

hasPointerCapture(pointerId: number): boolean

Inherited from MockHTMLCanvasElement.hasPointerCapture

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5296

Parameters:

Name Type
pointerId number

Returns: boolean


# insertAdjacentElement

insertAdjacentElement(position: InsertPosition, insertedElement: Element): Element | null

Inherited from MockHTMLCanvasElement.insertAdjacentElement

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5297

Parameters:

Name Type
position InsertPosition
insertedElement Element

Returns: Element | null


# insertAdjacentHTML

insertAdjacentHTML(where: InsertPosition, html: string): void

Inherited from MockHTMLCanvasElement.insertAdjacentHTML

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5298

Parameters:

Name Type
where InsertPosition
html string

Returns: void


# insertAdjacentText

insertAdjacentText(where: InsertPosition, text: string): void

Inherited from MockHTMLCanvasElement.insertAdjacentText

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5299

Parameters:

Name Type
where InsertPosition
text string

Returns: void


# insertBefore

insertBefore<T>(newChild: T, refChild: Node | null): T

Inherited from MockHTMLCanvasElement.insertBefore

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11031

Type parameters:

T: Node

Parameters:

Name Type
newChild T
refChild Node | null

Returns: T


# isDefaultNamespace

isDefaultNamespace(namespace: string | null): boolean

Inherited from MockHTMLCanvasElement.isDefaultNamespace

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11032

Parameters:

Name Type
namespace string | null

Returns: boolean


# isEqualNode

isEqualNode(otherNode: Node | null): boolean

Inherited from MockHTMLCanvasElement.isEqualNode

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11036

Returns whether node and otherNode have the same properties.

Parameters:

Name Type
otherNode Node | null

Returns: boolean


# isSameNode

isSameNode(otherNode: Node | null): boolean

Inherited from MockHTMLCanvasElement.isSameNode

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11037

Parameters:

Name Type
otherNode Node | null

Returns: boolean


# lookupNamespaceURI

lookupNamespaceURI(prefix: string | null): string | null

Inherited from MockHTMLCanvasElement.lookupNamespaceURI

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11038

Parameters:

Name Type
prefix string | null

Returns: string | null


# lookupPrefix

lookupPrefix(namespace: string | null): string | null

Inherited from MockHTMLCanvasElement.lookupPrefix

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11039

Parameters:

Name Type
namespace string | null

Returns: string | null


# matches

matches(selectors: string): boolean

Inherited from MockHTMLCanvasElement.matches

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5303

Returns true if matching selectors against element's root yields element, and false otherwise.

Parameters:

Name Type
selectors string

Returns: boolean


# msGetRegionContent

msGetRegionContent(): any

Inherited from MockHTMLCanvasElement.msGetRegionContent

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5304

Returns: any


# normalize

normalize(): void

Inherited from MockHTMLCanvasElement.normalize

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11043

Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.

Returns: void


# prepend

prepend(...nodes: string | Node[]): void

Inherited from MockHTMLCanvasElement.prepend

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11529

Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

Parameters:

Name Type
...nodes string | Node[]

Returns: void


# querySelector

querySelector<K>(selectors: K): HTMLElementTagNameMap[K] | null

Inherited from MockHTMLCanvasElement.querySelector

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11533

Returns the first element that is a descendant of node that matches selectors.

Type parameters:

K: keyof HTMLElementTagNameMap

Parameters:

Name Type
selectors K

Returns: HTMLElementTagNameMap[K] | null

querySelector<K>(selectors: K): SVGElementTagNameMap[K] | null

Inherited from MockHTMLCanvasElement.querySelector

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11534

Type parameters:

K: keyof SVGElementTagNameMap

Parameters:

Name Type
selectors K

Returns: SVGElementTagNameMap[K] | null

querySelector<E>(selectors: string): E | null

Inherited from MockHTMLCanvasElement.querySelector

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11535

Type parameters:

E: Element

Parameters:

Name Type
selectors string

Returns: E | null


# querySelectorAll

querySelectorAll<K>(selectors: K): NodeListOf‹HTMLElementTagNameMap[K]›

Inherited from MockHTMLCanvasElement.querySelectorAll

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11539

Returns all element descendants of node that match selectors.

Type parameters:

K: keyof HTMLElementTagNameMap

Parameters:

Name Type
selectors K

Returns: NodeListOf‹HTMLElementTagNameMap[K]›

querySelectorAll<K>(selectors: K): NodeListOf‹SVGElementTagNameMap[K]›

Inherited from MockHTMLCanvasElement.querySelectorAll

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11540

Type parameters:

K: keyof SVGElementTagNameMap

Parameters:

Name Type
selectors K

Returns: NodeListOf‹SVGElementTagNameMap[K]›

querySelectorAll<E>(selectors: string): NodeListOf‹E›

Inherited from MockHTMLCanvasElement.querySelectorAll

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11541

Type parameters:

E: Element

Parameters:

Name Type
selectors string

Returns: NodeListOf‹E›


# releasePointerCapture

releasePointerCapture(pointerId: number): void

Inherited from MockHTMLCanvasElement.releasePointerCapture

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5305

Parameters:

Name Type
pointerId number

Returns: void


# remove

remove(): void

Inherited from MockHTMLCanvasElement.remove

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:3596

Removes node.

Returns: void


# removeAttribute

removeAttribute(qualifiedName: string): void

Inherited from MockHTMLCanvasElement.removeAttribute

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5309

Removes element's first attribute whose qualified name is qualifiedName.

Parameters:

Name Type
qualifiedName string

Returns: void


# removeAttributeNS

removeAttributeNS(namespace: string | null, localName: string): void

Inherited from MockHTMLCanvasElement.removeAttributeNS

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5313

Removes element's attribute whose namespace is namespace and local name is localName.

Parameters:

Name Type
namespace string | null
localName string

Returns: void


# removeAttributeNode

removeAttributeNode(attr: Attr): Attr

Inherited from MockHTMLCanvasElement.removeAttributeNode

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5314

Parameters:

Name Type
attr Attr

Returns: Attr


# removeChild

removeChild<T>(oldChild: T): T

Inherited from MockHTMLCanvasElement.removeChild

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11044

Type parameters:

T: Node

Parameters:

Name Type
oldChild T

Returns: T


# removeEventListener

removeEventListener<K>(type: K, listener: function, options?: boolean | EventListenerOptions): void

Inherited from MockHTMLCanvasElement.removeEventListener

Overrides void

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6531

Type parameters:

K: keyof HTMLElementEventMap

Parameters:

type: K

listener: function

▸ (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]): any

Parameters:

Name Type
this HTMLCanvasElement
ev HTMLElementEventMap[K]

Optional options: boolean | EventListenerOptions

Returns: void

removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void

Inherited from MockHTMLCanvasElement.removeEventListener

Overrides void

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6532

Parameters:

Name Type
type string
listener EventListenerOrEventListenerObject
options? boolean | EventListenerOptions

Returns: void


# replaceChild

replaceChild<T>(newChild: Node, oldChild: T): T

Inherited from MockHTMLCanvasElement.replaceChild

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:11045

Type parameters:

T: Node

Parameters:

Name Type
newChild Node
oldChild T

Returns: T


# replaceWith

replaceWith(...nodes: string | Node[]): void

Inherited from MockHTMLCanvasElement.replaceWith

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:3602

Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

Parameters:

Name Type
...nodes string | Node[]

Returns: void


# requestFullscreen

requestFullscreen(options?: FullscreenOptions): Promise‹void›

Inherited from MockHTMLCanvasElement.requestFullscreen

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5320

Displays element fullscreen and resolves promise when done.

When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference.

Parameters:

Name Type
options? FullscreenOptions

Returns: Promise‹void›


# requestPointerLock

requestPointerLock(): void

Inherited from MockHTMLCanvasElement.requestPointerLock

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5321

Returns: void


# scroll

scroll(options?: ScrollToOptions): void

Inherited from MockHTMLCanvasElement.scroll

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5322

Parameters:

Name Type
options? ScrollToOptions

Returns: void

scroll(x: number, y: number): void

Inherited from MockHTMLCanvasElement.scroll

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5323

Parameters:

Name Type
x number
y number

Returns: void


# scrollBy

scrollBy(options?: ScrollToOptions): void

Inherited from MockHTMLCanvasElement.scrollBy

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5324

Parameters:

Name Type
options? ScrollToOptions

Returns: void

scrollBy(x: number, y: number): void

Inherited from MockHTMLCanvasElement.scrollBy

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5325

Parameters:

Name Type
x number
y number

Returns: void


# scrollIntoView

scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void

Inherited from MockHTMLCanvasElement.scrollIntoView

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5326

Parameters:

Name Type
arg? boolean | ScrollIntoViewOptions

Returns: void


# scrollTo

scrollTo(options?: ScrollToOptions): void

Inherited from MockHTMLCanvasElement.scrollTo

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5327

Parameters:

Name Type
options? ScrollToOptions

Returns: void

scrollTo(x: number, y: number): void

Inherited from MockHTMLCanvasElement.scrollTo

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5328

Parameters:

Name Type
x number
y number

Returns: void


# setAttribute

setAttribute(qualifiedName: string, value: string): void

Inherited from MockHTMLCanvasElement.setAttribute

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5332

Sets the value of element's first attribute whose qualified name is qualifiedName to value.

Parameters:

Name Type
qualifiedName string
value string

Returns: void


# setAttributeNS

setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void

Inherited from MockHTMLCanvasElement.setAttributeNS

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5336

Sets the value of element's attribute whose namespace is namespace and local name is localName to value.

Parameters:

Name Type
namespace string | null
qualifiedName string
value string

Returns: void


# setAttributeNode

setAttributeNode(attr: Attr): Attr | null

Inherited from MockHTMLCanvasElement.setAttributeNode

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5337

Parameters:

Name Type
attr Attr

Returns: Attr | null


# setAttributeNodeNS

setAttributeNodeNS(attr: Attr): Attr | null

Inherited from MockHTMLCanvasElement.setAttributeNodeNS

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5338

Parameters:

Name Type
attr Attr

Returns: Attr | null


# setPointerCapture

setPointerCapture(pointerId: number): void

Inherited from MockHTMLCanvasElement.setPointerCapture

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5339

Parameters:

Name Type
pointerId number

Returns: void


# toBlob

toBlob(callback: BlobCallback, type?: string, quality?: any): void

Inherited from MockHTMLCanvasElement.toBlob

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6522

Parameters:

Name Type
callback BlobCallback
type? string
quality? any

Returns: void


# toDataURL

toDataURL(type?: string, quality?: any): string

Inherited from MockHTMLCanvasElement.toDataURL

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6527

Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.

Parameters:

Name Type Description
type? string The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.
quality? any -

Returns: string


# toDataUrl

toDataUrl(): string

Defined in packages/common-core/mock/three-mock.ts:4

Returns: string


# toggleAttribute

toggleAttribute(qualifiedName: string, force?: boolean): boolean

Inherited from MockHTMLCanvasElement.toggleAttribute

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5345

If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.

Returns true if qualifiedName is now present, and false otherwise.

Parameters:

Name Type
qualifiedName string
force? boolean

Returns: boolean


# transferControlToOffscreen

transferControlToOffscreen(): OffscreenCanvas

Inherited from MockHTMLCanvasElement.transferControlToOffscreen

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:6528

Returns: OffscreenCanvas


# webkitMatchesSelector

webkitMatchesSelector(selectors: string): boolean

Inherited from MockHTMLCanvasElement.webkitMatchesSelector

Defined in node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:5346

Parameters:

Name Type
selectors string

Returns: boolean