Package elemental2.dom
Class HTMLCanvasElement
- java.lang.Object
-
- elemental2.dom.Node
-
- elemental2.dom.Element
-
- elemental2.dom.HTMLElement
-
- elemental2.dom.HTMLCanvasElement
-
- All Implemented Interfaces:
EventTarget
@JsType(isNative=true, namespace="<global>") public class HTMLCanvasElement extends HTMLElement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
HTMLCanvasElement.ToBlobCallbackFn
-
Nested classes/interfaces inherited from class elemental2.dom.HTMLElement
HTMLElement.AttachedCallbackFn, HTMLElement.ConnectedCallbackFn, HTMLElement.CreatedCallbackFn, HTMLElement.DetachedCallbackFn, HTMLElement.DisconnectedCallbackFn
-
Nested classes/interfaces inherited from class elemental2.dom.Element
Element.AfterNodesUnionType, Element.AppendNodesUnionType, Element.BeforeNodesUnionType, Element.FocusOptionsType, Element.MatchesSelectorRefNodesUnionType, Element.OnabortFn, Element.OnbeforeinputFn, Element.OnbeforeunloadFn, Element.OnblurFn, Element.OnchangeFn, Element.OnclickFn, Element.OncompositionendFn, Element.OncompositionstartFn, Element.OncompositionupdateFn, Element.OncontextmenuFn, Element.OncopyFn, Element.OncutFn, Element.OndblclickFn, Element.OnerrorFn, Element.OnfocusFn, Element.OnfocusinFn, Element.OnfocusoutFn, Element.OninputFn, Element.OnkeydownFn, Element.OnkeypressFn, Element.OnkeyupFn, Element.OnloadFn, Element.OnmousedownFn, Element.OnmousemoveFn, Element.OnmouseoutFn, Element.OnmouseoverFn, Element.OnmouseupFn, Element.OnmousewheelFn, Element.OnpasteFn, Element.OnresetFn, Element.OnresizeFn, Element.OnscrollFn, Element.OnselectFn, Element.OnselectionchangeFn, Element.OnselectstartFn, Element.OnsubmitFn, Element.OntextinputFn, Element.OntouchcancelFn, Element.OntouchendFn, Element.OntouchmoveFn, Element.OntouchstartFn, Element.OnunloadFn, Element.OnwheelFn, Element.PrependNodesUnionType, Element.ReplaceChildrenNodesUnionType, Element.ReplaceWithNodesUnionType, Element.ScrollIntoViewTopUnionType, Element.ScrollToScrollToOptionsOrXUnionType, Element.SetAttributeNSValueUnionType, Element.SetAttributeValueUnionType
-
Nested classes/interfaces inherited from interface elemental2.dom.EventTarget
EventTarget.AddEventListenerListenerFn, EventTarget.AddEventListenerOptionsUnionType, EventTarget.RemoveEventListenerListenerFn, EventTarget.RemoveEventListenerOptionsUnionType
-
-
Field Summary
Fields Modifier and Type Field Description int
height
int
width
-
Fields inherited from class elemental2.dom.HTMLElement
attachedCallback, className, connectedCallback, contextMenu, createdCallback, dataset, detachedCallback, dir, disconnectedCallback, draggable, dropzone, hidden, inert, lang, nonce, observedAttributes, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, shadowRoot, spellcheck, style, tabIndex, title
-
Fields inherited from class elemental2.dom.Element
ALLOW_KEYBOARD_INPUT, attributes, childElementCount, classList, clientHeight, clientLeft, clientTop, clientWidth, firstElementChild, id, innerHTML, lastElementChild, nextElementSibling, onabort, onbeforeinput, onbeforeunload, onblur, onchange, onclick, oncompositionend, oncompositionstart, oncompositionupdate, oncontextmenu, oncopy, oncut, ondblclick, onerror, onfocus, onfocusin, onfocusout, oninput, onkeydown, onkeypress, onkeyup, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel, onpaste, onreset, onresize, onscroll, onselect, onselectionchange, onselectstart, onsubmit, ontextinput, ontouchcancel, ontouchend, ontouchmove, ontouchstart, onunload, onwheel, outerHTML, previousElementSibling, scrollHeight, scrollLeft, scrollTop, scrollWidth, slot, tagName
-
Fields inherited from class elemental2.dom.Node
assignedSlot, ATTRIBUTE_NODE, baseURI, CDATA_SECTION_NODE, childNodes, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, firstChild, isConnected, lastChild, localName, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, NOTATION_NODE, ownerDocument, parentElement, parentNode, prefix, previousSibling, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, textContent
-
-
Constructor Summary
Constructors Constructor Description HTMLCanvasElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MediaStream
captureStream()
MediaStream
captureStream(double framerate)
elemental2.core.JsObject
getContext(java.lang.String contextId)
elemental2.core.JsObject
getContext(java.lang.String contextId, elemental2.core.JsObject args)
elemental2.core.JsObject
getContext(java.lang.String contextId, java.lang.Object args)
java.lang.Object
toBlob(HTMLCanvasElement.ToBlobCallbackFn callback)
java.lang.Object
toBlob(HTMLCanvasElement.ToBlobCallbackFn callback, java.lang.String type, java.lang.Object... var_args)
java.lang.String
toDataURL()
java.lang.String
toDataURL(java.lang.String type, java.lang.Object... var_args)
OffscreenCanvas
transferControlToOffscreen()
-
Methods inherited from class elemental2.dom.HTMLElement
adoptedCallback, attachShadow, attributeChangedCallback, click, createShadowRoot, getDestinationInsertionPoints, webkitCreateShadowRoot
-
Methods inherited from class elemental2.dom.Element
after, after, after, append, append, append, before, before, before, blur, closest, focus, focus, getAttribute, getAttribute, getAttributeNames, getAttributeNode, getAttributeNodeNS, getAttributeNS, getBoundingClientRect, getClientRects, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, hasAttribute, hasAttributeNS, insertAdjacentElement, insertAdjacentText, matches, matchesSelector, matchesSelector, matchesSelector, matchesSelector, mozMatchesSelector, mozRequestFullScreen, mozRequestFullScreenWithKeys, msMatchesSelector, msRequestFullscreen, oMatchesSelector, prepend, prepend, prepend, querySelector, querySelectorAll, remove, removeAttribute, removeAttributeNode, removeAttributeNS, replaceChildren, replaceChildren, replaceChildren, replaceWith, replaceWith, replaceWith, requestFullscreen, requestFullscreen, scrollIntoView, scrollIntoView, scrollIntoView, scrollIntoView, scrollTo, scrollTo, scrollTo, scrollTo, scrollTo, scrollTo, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setAttributeNS, setAttributeNS, setAttributeNS, toggleAttribute, toggleAttribute, webkitMatchesSelector, webkitRequestFullscreen, webkitRequestFullscreen, webkitRequestFullScreen, webkitRequestFullScreen
-
Methods inherited from class elemental2.dom.Node
addEventListener, addEventListener, appendChild, cloneNode, compareDocumentPosition, contains, dispatchEvent, getFeature, getRootNode, getRootNode, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, normalize, removeChild, removeEventListener, removeEventListener, replaceChild
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elemental2.dom.EventTarget
addEventListener, addEventListener, removeEventListener, removeEventListener
-
-
-
-
Method Detail
-
captureStream
public MediaStream captureStream()
-
captureStream
public MediaStream captureStream(double framerate)
-
getContext
public elemental2.core.JsObject getContext(java.lang.String contextId, elemental2.core.JsObject args)
-
getContext
@JsOverlay public final elemental2.core.JsObject getContext(java.lang.String contextId, java.lang.Object args)
-
getContext
public elemental2.core.JsObject getContext(java.lang.String contextId)
-
toBlob
public java.lang.Object toBlob(HTMLCanvasElement.ToBlobCallbackFn callback, java.lang.String type, java.lang.Object... var_args)
-
toBlob
public java.lang.Object toBlob(HTMLCanvasElement.ToBlobCallbackFn callback)
-
toDataURL
public java.lang.String toDataURL()
-
toDataURL
public java.lang.String toDataURL(java.lang.String type, java.lang.Object... var_args)
-
transferControlToOffscreen
public OffscreenCanvas transferControlToOffscreen()
-
-