SvgElement class

Inheritance
Implements
Implemented by
Annotations
  • @DomName('SVGElement')
  • @Unstable()

Constants

abortEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.abortEvent'), @Experimental()
const EventStreamProvider<Event>('abort')
blurEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.blurEvent'), @Experimental()
const EventStreamProvider<Event>('blur')
canPlayEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.canplayEvent'), @Experimental()
const EventStreamProvider<Event>('canplay')
canPlayThroughEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.canplaythroughEvent'), @Experimental()
const EventStreamProvider<Event>('canplaythrough')
changeEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.changeEvent'), @Experimental()
const EventStreamProvider<Event>('change')
clickEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('SVGElement.clickEvent'), @Experimental()
contextMenuEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('SVGElement.contextmenuEvent'), @Experimental()
const EventStreamProvider<MouseEvent>('contextmenu')
doubleClickEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.dblclickEvent'), @Experimental()
const EventStreamProvider<Event>('dblclick')
dragEndEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('SVGElement.dragendEvent'), @Experimental()
const EventStreamProvider<MouseEvent>('dragend')
dragEnterEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('SVGElement.dragenterEvent'), @Experimental()
const EventStreamProvider<MouseEvent>('dragenter')
dragEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('SVGElement.dragEvent'), @Experimental()
dragLeaveEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('SVGElement.dragleaveEvent'), @Experimental()
const EventStreamProvider<MouseEvent>('dragleave')
dragOverEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('SVGElement.dragoverEvent'), @Experimental()
const EventStreamProvider<MouseEvent>('dragover')
dragStartEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('SVGElement.dragstartEvent'), @Experimental()
const EventStreamProvider<MouseEvent>('dragstart')
dropEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('SVGElement.dropEvent'), @Experimental()
durationChangeEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.durationchangeEvent'), @Experimental()
const EventStreamProvider<Event>('durationchange')
emptiedEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.emptiedEvent'), @Experimental()
const EventStreamProvider<Event>('emptied')
endedEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.endedEvent'), @Experimental()
const EventStreamProvider<Event>('ended')
errorEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.errorEvent'), @Experimental()
const EventStreamProvider<Event>('error')
focusEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.focusEvent'), @Experimental()
const EventStreamProvider<Event>('focus')
inputEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.inputEvent'), @Experimental()
const EventStreamProvider<Event>('input')
invalidEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.invalidEvent'), @Experimental()
const EventStreamProvider<Event>('invalid')
keyDownEventEventStreamProvider<KeyboardEvent>
@DocsEditable(), @DomName('SVGElement.keydownEvent'), @Experimental()
keyPressEventEventStreamProvider<KeyboardEvent>
@DocsEditable(), @DomName('SVGElement.keypressEvent'), @Experimental()
const EventStreamProvider<KeyboardEvent>('keypress')
keyUpEventEventStreamProvider<KeyboardEvent>
@DocsEditable(), @DomName('SVGElement.keyupEvent'), @Experimental()
loadedDataEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.loadeddataEvent'), @Experimental()
const EventStreamProvider<Event>('loadeddata')
loadedMetadataEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.loadedmetadataEvent'), @Experimental()
const EventStreamProvider<Event>('loadedmetadata')
loadEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.loadEvent'), @Experimental()
const EventStreamProvider<Event>('load')
mouseDownEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('SVGElement.mousedownEvent'), @Experimental()
const EventStreamProvider<MouseEvent>('mousedown')
mouseEnterEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('SVGElement.mouseenterEvent'), @Experimental()
const EventStreamProvider<MouseEvent>('mouseenter')
mouseLeaveEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('SVGElement.mouseleaveEvent'), @Experimental()
const EventStreamProvider<MouseEvent>('mouseleave')
mouseMoveEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('SVGElement.mousemoveEvent'), @Experimental()
const EventStreamProvider<MouseEvent>('mousemove')
mouseOutEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('SVGElement.mouseoutEvent'), @Experimental()
const EventStreamProvider<MouseEvent>('mouseout')
mouseOverEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('SVGElement.mouseoverEvent'), @Experimental()
const EventStreamProvider<MouseEvent>('mouseover')
mouseUpEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('SVGElement.mouseupEvent'), @Experimental()
const EventStreamProvider<MouseEvent>('mouseup')
mouseWheelEventEventStreamProvider<WheelEvent>
@DocsEditable(), @DomName('SVGElement.mousewheelEvent'), @Experimental()
const EventStreamProvider<WheelEvent>('mousewheel')
pauseEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.pauseEvent'), @Experimental()
const EventStreamProvider<Event>('pause')
playEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.playEvent'), @Experimental()
const EventStreamProvider<Event>('play')
playingEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.playingEvent'), @Experimental()
const EventStreamProvider<Event>('playing')
rateChangeEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.ratechangeEvent'), @Experimental()
const EventStreamProvider<Event>('ratechange')
resetEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.resetEvent'), @Experimental()
const EventStreamProvider<Event>('reset')
resizeEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.resizeEvent'), @Experimental()
const EventStreamProvider<Event>('resize')
scrollEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.scrollEvent'), @Experimental()
const EventStreamProvider<Event>('scroll')
seekedEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.seekedEvent'), @Experimental()
const EventStreamProvider<Event>('seeked')
seekingEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.seekingEvent'), @Experimental()
const EventStreamProvider<Event>('seeking')
selectEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.selectEvent'), @Experimental()
const EventStreamProvider<Event>('select')
stalledEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.stalledEvent'), @Experimental()
const EventStreamProvider<Event>('stalled')
submitEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.submitEvent'), @Experimental()
const EventStreamProvider<Event>('submit')
suspendEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.suspendEvent'), @Experimental()
const EventStreamProvider<Event>('suspend')
timeUpdateEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.timeupdateEvent'), @Experimental()
const EventStreamProvider<Event>('timeupdate')
touchCancelEventEventStreamProvider<TouchEvent>
@DocsEditable(), @DomName('SVGElement.touchcancelEvent'), @Experimental()
const EventStreamProvider<TouchEvent>('touchcancel')
touchEndEventEventStreamProvider<TouchEvent>
@DocsEditable(), @DomName('SVGElement.touchendEvent'), @Experimental()
const EventStreamProvider<TouchEvent>('touchend')
touchMoveEventEventStreamProvider<TouchEvent>
@DocsEditable(), @DomName('SVGElement.touchmoveEvent'), @Experimental()
const EventStreamProvider<TouchEvent>('touchmove')
touchStartEventEventStreamProvider<TouchEvent>
@DocsEditable(), @DomName('SVGElement.touchstartEvent'), @Experimental()
const EventStreamProvider<TouchEvent>('touchstart')
volumeChangeEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.volumechangeEvent'), @Experimental()
const EventStreamProvider<Event>('volumechange')
waitingEventEventStreamProvider<Event>
@DocsEditable(), @DomName('SVGElement.waitingEvent'), @Experimental()
const EventStreamProvider<Event>('waiting')

Static Properties

instanceRuntimeTypeType
@Deprecated("Internal Use Only"), read-only

Static Methods

isTagSupported(String tag) → bool

Checks to see if the SVG element type is supported by the current platform.

Constructors

SvgElement.created()

Constructor instantiated by the DOM when a custom element has been created.

SvgElement.internal_()
SvgElement.svg(String svg, { NodeValidator validator, NodeTreeSanitizer treeSanitizer })
factory
SvgElement.tag(String tag)
factory

Properties

childrenList<Element>
read / write
classesCssClassSet
read-only
innerHtmlString
read / write
isContentEditablebool
read-only
onAbortElementStream<Event>
@DocsEditable(), @DomName('SVGElement.onabort'), @Experimental(), read-only
onBlurElementStream<Event>
@DocsEditable(), @DomName('SVGElement.onblur'), @Experimental(), read-only
onCanPlayElementStream<Event>
@DocsEditable(), @DomName('SVGElement.oncanplay'), @Experimental(), read-only
onCanPlayThroughElementStream<Event>
@DocsEditable(), @DomName('SVGElement.oncanplaythrough'), @Experimental(), read-only
onChangeElementStream<Event>
@DocsEditable(), @DomName('SVGElement.onchange'), @Experimental(), read-only
onClickElementStream<MouseEvent>
@DocsEditable(), @DomName('SVGElement.onclick'), @Experimental(), read-only
onContextMenuElementStream<MouseEvent>
@DocsEditable(), @DomName('SVGElement.oncontextmenu'), @Experimental(), read-only
onDoubleClickElementStream<Event>
@DocsEditable(), @DomName('SVGElement.ondblclick'), @Experimental(), read-only
onDragElementStream<MouseEvent>
@DocsEditable(), @DomName('SVGElement.ondrag'), @Experimental(), read-only
onDragEndElementStream<MouseEvent>
@DocsEditable(), @DomName('SVGElement.ondragend'), @Experimental(), read-only
onDragEnterElementStream<MouseEvent>
@DocsEditable(), @DomName('SVGElement.ondragenter'), @Experimental(), read-only
onDragLeaveElementStream<MouseEvent>
@DocsEditable(), @DomName('SVGElement.ondragleave'), @Experimental(), read-only
onDragOverElementStream<MouseEvent>
@DocsEditable(), @DomName('SVGElement.ondragover'), @Experimental(), read-only
onDragStartElementStream<MouseEvent>
@DocsEditable(), @DomName('SVGElement.ondragstart'), @Experimental(), read-only
onDropElementStream<MouseEvent>
@DocsEditable(), @DomName('SVGElement.ondrop'), @Experimental(), read-only
onDurationChangeElementStream<Event>
@DocsEditable(), @DomName('SVGElement.ondurationchange'), @Experimental(), read-only
onEmptiedElementStream<Event>
@DocsEditable(), @DomName('SVGElement.onemptied'), @Experimental(), read-only
onEndedElementStream<Event>
@DocsEditable(), @DomName('SVGElement.onended'), @Experimental(), read-only
onErrorElementStream<Event>
@DocsEditable(), @DomName('SVGElement.onerror'), @Experimental(), read-only
onFocusElementStream<Event>
@DocsEditable(), @DomName('SVGElement.onfocus'), @Experimental(), read-only
onInputElementStream<Event>
@DocsEditable(), @DomName('SVGElement.oninput'), @Experimental(), read-only
onInvalidElementStream<Event>
@DocsEditable(), @DomName('SVGElement.oninvalid'), @Experimental(), read-only
onKeyDownElementStream<KeyboardEvent>
@DocsEditable(), @DomName('SVGElement.onkeydown'), @Experimental(), read-only
onKeyPressElementStream<KeyboardEvent>
@DocsEditable(), @DomName('SVGElement.onkeypress'), @Experimental(), read-only
onKeyUpElementStream<KeyboardEvent>
@DocsEditable(), @DomName('SVGElement.onkeyup'), @Experimental(), read-only
onLoadElementStream<Event>
@DocsEditable(), @DomName('SVGElement.onload'), @Experimental(), read-only
onLoadedDataElementStream<Event>
@DocsEditable(), @DomName('SVGElement.onloadeddata'), @Experimental(), read-only
onLoadedMetadataElementStream<Event>
@DocsEditable(), @DomName('SVGElement.onloadedmetadata'), @Experimental(), read-only
onMouseDownElementStream<MouseEvent>
@DocsEditable(), @DomName('SVGElement.onmousedown'), @Experimental(), read-only
onMouseEnterElementStream<MouseEvent>
@DocsEditable(), @DomName('SVGElement.onmouseenter'), @Experimental(), read-only
onMouseLeaveElementStream<MouseEvent>
@DocsEditable(), @DomName('SVGElement.onmouseleave'), @Experimental(), read-only
onMouseMoveElementStream<MouseEvent>
@DocsEditable(), @DomName('SVGElement.onmousemove'), @Experimental(), read-only
onMouseOutElementStream<MouseEvent>
@DocsEditable(), @DomName('SVGElement.onmouseout'), @Experimental(), read-only
onMouseOverElementStream<MouseEvent>
@DocsEditable(), @DomName('SVGElement.onmouseover'), @Experimental(), read-only
onMouseUpElementStream<MouseEvent>
@DocsEditable(), @DomName('SVGElement.onmouseup'), @Experimental(), read-only
onMouseWheelElementStream<WheelEvent>
@DocsEditable(), @DomName('SVGElement.onmousewheel'), @Experimental(), read-only
onPauseElementStream<Event>
@DocsEditable(), @DomName('SVGElement.onpause'), @Experimental(), read-only
onPlayElementStream<Event>
@DocsEditable(), @DomName('SVGElement.onplay'), @Experimental(), read-only
onPlayingElementStream<Event>
@DocsEditable(), @DomName('SVGElement.onplaying'), @Experimental(), read-only
onRateChangeElementStream<Event>
@DocsEditable(), @DomName('SVGElement.onratechange'), @Experimental(), read-only
onResetElementStream<Event>
@DocsEditable(), @DomName('SVGElement.onreset'), @Experimental(), read-only
onResizeElementStream<Event>
@DocsEditable(), @DomName('SVGElement.onresize'), @Experimental(), read-only
onScrollElementStream<Event>
@DocsEditable(), @DomName('SVGElement.onscroll'), @Experimental(), read-only
onSeekedElementStream<Event>
@DocsEditable(), @DomName('SVGElement.onseeked'), @Experimental(), read-only
onSeekingElementStream<Event>
@DocsEditable(), @DomName('SVGElement.onseeking'), @Experimental(), read-only
onSelectElementStream<Event>
@DocsEditable(), @DomName('SVGElement.onselect'), @Experimental(), read-only
onStalledElementStream<Event>
@DocsEditable(), @DomName('SVGElement.onstalled'), @Experimental(), read-only
onSubmitElementStream<Event>
@DocsEditable(), @DomName('SVGElement.onsubmit'), @Experimental(), read-only
onSuspendElementStream<Event>
@DocsEditable(), @DomName('SVGElement.onsuspend'), @Experimental(), read-only
onTimeUpdateElementStream<Event>
@DocsEditable(), @DomName('SVGElement.ontimeupdate'), @Experimental(), read-only
onTouchCancelElementStream<TouchEvent>
@DocsEditable(), @DomName('SVGElement.ontouchcancel'), @Experimental(), read-only
onTouchEndElementStream<TouchEvent>
@DocsEditable(), @DomName('SVGElement.ontouchend'), @Experimental(), read-only
onTouchMoveElementStream<TouchEvent>
@DocsEditable(), @DomName('SVGElement.ontouchmove'), @Experimental(), read-only
onTouchStartElementStream<TouchEvent>
@DocsEditable(), @DomName('SVGElement.ontouchstart'), @Experimental(), read-only
onVolumeChangeElementStream<Event>
@DocsEditable(), @DomName('SVGElement.onvolumechange'), @Experimental(), read-only
onWaitingElementStream<Event>
@DocsEditable(), @DomName('SVGElement.onwaiting'), @Experimental(), read-only
outerHtmlString
read-only
ownerSvgElementSvgSvgElement
@DocsEditable(), @DomName('SVGElement.ownerSVGElement'), read-only
styleCssStyleDeclaration
@DocsEditable(), @DomName('SVGElement.style'), @Experimental(), read-only
tabIndexint
@DocsEditable(), @DomName('SVGElement.tabIndex'), @Experimental(), read / write
viewportElementSvgElement
@DocsEditable(), @DomName('SVGElement.viewportElement'), read-only
assignedSlotSlotElement
@DocsEditable(), @DomName('Element.assignedSlot'), @Experimental(), read-only, inherited
attributesMap<String, String>
read / write, inherited

All attributes on this element.

baseUriString
@DocsEditable(), @DomName('Node.baseURI'), read-only, inherited
borderEdgeCssRect
@Experimental(), read-only, inherited

Access the dimensions and position of this element's content + padding + border box.

childNodesList<Node>
@DocsEditable(), @DomName('Node.childNodes'), read-only, inherited

A list of this node's children.

classesCssClassSet
read / write, inherited

The set of CSS classes applied to this element.

classNameString
@DocsEditable(), @DomName('Element.className'), read / write, inherited
clientRectangle
read-only, inherited

Gets the position of this element relative to the client area of the page.

clientHeightint
@DocsEditable(), @DomName('Element.clientHeight'), read-only, inherited
clientLeftint
@DocsEditable(), @DomName('Element.clientLeft'), read-only, inherited
clientTopint
@DocsEditable(), @DomName('Element.clientTop'), read-only, inherited
clientWidthint
@DocsEditable(), @DomName('Element.clientWidth'), read-only, inherited
computedNameString
@DocsEditable(), @DomName('Element.computedName'), @Experimental(), read-only, inherited
computedRoleString
@DocsEditable(), @DomName('Element.computedRole'), @Experimental(), read-only, inherited
contentEdgeCssRect
@Experimental(), read-only, inherited

Access this element's content position.

contentEditableString
read / write, inherited
contextMenuMenuElement
read / write, inherited
datasetMap<String, String>
read / write, inherited

Allows access to all custom data attributes (data-*) set on this element.

dirString
read / write, inherited
documentOffsetPoint
@Experimental(), read-only, inherited

Provides the coordinates of the element relative to the top of the document.

draggablebool
read / write, inherited
dropzoneString
read / write, inherited
firstChildNode
@DocsEditable(), @DomName('Node.firstChild'), read-only, inherited

The first child of this node.

hashCodeint
read-only, inherited
hiddenbool
read / write, inherited
idString
@DocsEditable(), @DomName('Element.id'), read / write, inherited
langString
read / write, inherited
lastChildNode
@DocsEditable(), @DomName('Node.lastChild'), read-only, inherited

The last child of this node.

localNameString
@DocsEditable(), @DomName('Element.localName'), read-only, inherited
marginEdgeCssRect
@Experimental(), read-only, inherited

Access the dimensions and position of this element's content + padding + border + margin box.

namespaceUriString
@DomName('Element.namespaceUri'), read-only, inherited

A URI that identifies the XML namespace of this element.

nextElementSiblingElement
@DocsEditable(), @DomName('Element.nextElementSibling'), read-only, inherited
nextNodeNode
@DocsEditable(), @DomName('Node.nextSibling'), read-only, inherited

The next sibling node.

nodeNameString
@DocsEditable(), @DomName('Node.nodeName'), read-only, inherited

The name of this node.

nodesList<Node>
read / write, inherited

A modifiable list of this node's children.

nodeTypeint
@DocsEditable(), @DomName('Node.nodeType'), read-only, inherited

The type of node.

nodeValueString
@DocsEditable(), @DomName('Node.nodeValue'), read-only, inherited

The value of this node.

offsetRectangle
read-only, inherited

Gets the offset of this element relative to its offsetParent.

offsetHeightint
@DocsEditable(), @DomName('Element.offsetHeight'), read-only, inherited
offsetLeftint
@DocsEditable(), @DomName('Element.offsetLeft'), read-only, inherited
offsetParentElement
@DocsEditable(), @DomName('Element.offsetParent'), read-only, inherited
offsetTopint
@DocsEditable(), @DomName('Element.offsetTop'), read-only, inherited
offsetWidthint
@DocsEditable(), @DomName('Element.offsetWidth'), read-only, inherited
onElementEvents
read-only, inherited

This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.

onBeforeCopyElementStream<Event>
@DocsEditable(), @DomName('Element.onbeforecopy'), read-only, inherited

Stream of beforecopy events handled by this Element.

onBeforeCutElementStream<Event>
@DocsEditable(), @DomName('Element.onbeforecut'), read-only, inherited

Stream of beforecut events handled by this Element.

onBeforePasteElementStream<Event>
@DocsEditable(), @DomName('Element.onbeforepaste'), read-only, inherited

Stream of beforepaste events handled by this Element.

onCopyElementStream<ClipboardEvent>
@DocsEditable(), @DomName('Element.oncopy'), read-only, inherited

Stream of copy events handled by this Element.

onCutElementStream<ClipboardEvent>
@DocsEditable(), @DomName('Element.oncut'), read-only, inherited

Stream of cut events handled by this Element.

onFullscreenChangeElementStream<Event>
@DocsEditable(), @DomName('Element.onwebkitfullscreenchange'), @Experimental(), read-only, inherited

Stream of fullscreenchange events handled by this Element.

onFullscreenErrorElementStream<Event>
@DocsEditable(), @DomName('Element.onwebkitfullscreenerror'), @Experimental(), read-only, inherited

Stream of fullscreenerror events handled by this Element.

onPasteElementStream<ClipboardEvent>
@DocsEditable(), @DomName('Element.onpaste'), read-only, inherited

Stream of paste events handled by this Element.

onSearchElementStream<Event>
@DocsEditable(), @DomName('Element.onsearch'), @Experimental(), read-only, inherited

Stream of search events handled by this Element.

onSelectStartElementStream<Event>
@DocsEditable(), @DomName('Element.onselectstart'), @Experimental(), read-only, inherited

Stream of selectstart events handled by this Element.

onTouchEnterElementStream<TouchEvent>
@DocsEditable(), @DomName('Element.ontouchenter'), @Experimental(), read-only, inherited

Stream of touchenter events handled by this Element.

onTouchLeaveElementStream<TouchEvent>
@DocsEditable(), @DomName('Element.ontouchleave'), @Experimental(), read-only, inherited

Stream of touchleave events handled by this Element.

onTransitionEndElementStream<TransitionEvent>
@DocsEditable(), @DomName('Element.ontransitionend'), @SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.FIREFOX), @SupportedBrowser(SupportedBrowser.IE, '10'), @SupportedBrowser(SupportedBrowser.SAFARI), read-only, inherited

Stream of transitionend events handled by this Element.

ownerDocumentDocument
@DocsEditable(), @DomName('Node.ownerDocument'), read-only, inherited

The document this node belongs to.

paddingEdgeCssRect
@Experimental(), read-only, inherited

Access the dimensions and position of this element's content + padding box.

parentElement
@DocsEditable(), @DomName('Node.parentElement'), read-only, inherited

The parent element of this node.

parentNodeNode
@DocsEditable(), @DomName('Node.parentNode'), read-only, inherited

The parent node of this node.

previousElementSiblingElement
@DocsEditable(), @DomName('Element.previousElementSibling'), read-only, inherited
previousNodeNode
@DocsEditable(), @DomName('Node.previousSibling'), read-only, inherited

The previous sibling node.

runtimeTypeType
read-only, inherited

A representation of the runtime type of the object.

scrollHeightint
@DocsEditable(), @DomName('Element.scrollHeight'), read-only, inherited
scrollLeftint
@DocsEditable(), @DomName('Element.scrollLeft'), read / write, inherited
scrollTopint
@DocsEditable(), @DomName('Element.scrollTop'), read / write, inherited
scrollWidthint
@DocsEditable(), @DomName('Element.scrollWidth'), read-only, inherited
shadowRootShadowRoot
@DocsEditable(), @DomName('Element.shadowRoot'), @Experimental(), read-only, inherited
slotString
@DocsEditable(), @DomName('Element.slot'), @Experimental(), read / write, inherited
spellcheckbool
read / write, inherited
tagNameString
@DocsEditable(), @DomName('Element.tagName'), read-only, inherited
textString
@DocsEditable(), @DomName('Node.textContent'), read / write, inherited

All text within this node and its descendents.

titleString
read / write, inherited
translatebool
read / write, inherited
treeRootNode
@DocsEditable(), @DomName('Node.treeRoot'), @Experimental(), read-only, inherited
xtag → dynamic
read / write, inherited

Experimental support for web components. This field stores a reference to the component implementation. It was inspired by Mozilla's x-tags project. Please note: in the future it may be possible to extend Element from your class, in which case this field will be deprecated.

Operators

operator ==(other) → bool
inherited

The equality operator.

Methods

blur() → void
@DocsEditable(), @DomName('SVGElement.blur'), @Experimental()
click() → void
createFragment(String svg, { NodeValidator validator, NodeTreeSanitizer treeSanitizer }) → DocumentFragment

Create a DocumentFragment from the HTML fragment and ensure that it follows the sanitization rules specified by the validator or treeSanitizer.

focus() → void
@DocsEditable(), @DomName('SVGElement.focus'), @Experimental()
insertAdjacentElement(String where, Element element) → Element
@DomName('Element.insertAdjacentElement')
insertAdjacentHtml(String where, String text, { NodeValidator validator, NodeTreeSanitizer treeSanitizer }) → void
@DomName('Element.insertAdjacentHTML')

Parses text as an HTML fragment and inserts it into the DOM at the specified location.

insertAdjacentText(String where, String text) → void
@DomName('Element.insertAdjacentText')
addEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
animate(Iterable<Map<String, dynamic>> frames, [ timing ]) → Animation
@Experimental(), @SupportedBrowser(SupportedBrowser.CHROME, '36'), inherited

Creates a new AnimationEffect object whose target element is the object on which the method is called, and calls the play() method of the AnimationTimeline object of the document timeline of the node document of the element, passing the newly created AnimationEffect as the argument to the method. Returns an Animation for the effect.

append(Node node) → Node
@DocsEditable(), @DomName('Node.appendChild'), inherited

Adds a node to the end of the child nodes list of this node.

appendHtml(String text, { NodeValidator validator, NodeTreeSanitizer treeSanitizer }) → void
inherited

Parses the specified text as HTML and adds the resulting node after the last child of this element.

appendText(String text) → void
inherited

Adds the specified text after the last child of this element.

attached() → void
@Experimental(), inherited

Called by the DOM when this element has been inserted into the live document.

attachShadow(Map shadowRootInitDict) → ShadowRoot
@DocsEditable(), @DomName('Element.attachShadow'), @Experimental(), inherited
attributeChanged(String name, String oldValue, String newValue) → void
inherited

Called by the DOM whenever an attribute on this has been changed.

clone(bool deep) → Node
@DocsEditable(), @DomName('Node.cloneNode'), inherited

Returns a copy of this node.

closest(String selectors) → Element
@DocsEditable(), @DomName('Element.closest'), @Experimental(), inherited
contains(Node other) → bool
@DocsEditable(), @DomName('Node.contains'), inherited

Returns true if this node contains the specified node.

createShadowRoot() → ShadowRoot
@DocsEditable(), @DomName('Element.createShadowRoot'), @Experimental(), @SupportedBrowser(SupportedBrowser.CHROME, '25'), inherited
detached() → void
@Experimental(), inherited

Called by the DOM when this element has been removed from the live document.

dispatchEvent(Event event) → bool
@DocsEditable(), @DomName('EventTarget.dispatchEvent'), inherited
enteredView() → void
@Experimental(), inherited

Deprecated*: override attached instead.

getAnimations() → List<Animation>
@DocsEditable(), @DomName('Element.getAnimations'), @Experimental(), inherited
getAttribute(String name) → String
@DocsEditable(), @DomName('Element.getAttribute'), @Experimental(), inherited
getAttributeNS(String namespaceURI, String localName) → String
@DocsEditable(), @DomName('Element.getAttributeNS'), @Experimental(), inherited
getBoundingClientRect() → Rectangle
@DocsEditable(), @DomName('Element.getBoundingClientRect'), inherited

Returns the smallest bounding rectangle that encompasses this element's padding, scrollbar, and border.

getClientRects() → List<Rectangle>
@DocsEditable(), @DomName('Element.getClientRects'), inherited

Returns a list of bounding rectangles for each box associated with this element.

getComputedStyle([String pseudoElement ]) → CssStyleDeclaration
inherited

The set of all CSS values applied to this element, including inherited and default values.

getDestinationInsertionPoints() → List<Node>
@DocsEditable(), @DomName('Element.getDestinationInsertionPoints'), @Experimental(), inherited

Returns a list of shadow DOM insertion points to which this element is distributed.

getElementsByClassName(String classNames) → List<Node>
@DocsEditable(), @DomName('Element.getElementsByClassName'), inherited

Returns a list of nodes with the given class name inside this element.

getNamespacedAttributes(String namespace) → Map<String, String>
inherited

Gets a map for manipulating the attributes of a particular namespace.

hasChildNodes() → bool
@DocsEditable(), @DomName('Node.hasChildNodes'), inherited

Returns true if this node has any children.

insertAllBefore(Iterable<Node> newNodes, Node refChild) → Node
inherited

Inserts all of the nodes into this node directly before refChild.

insertBefore(Node node, Node child) → Node
@DocsEditable(), @DomName('Node.insertBefore'), inherited

Inserts all of the nodes into this node directly before refChild.

leftView() → void
@Experimental(), inherited

Deprecated*: override detached instead.

matches(String selectors) → bool
@DocsEditable(), @DomName('Element.matches'), @Experimental(), inherited
matchesWithAncestors(String selectors) → bool
@Experimental(), inherited

Checks if this element or any of its parents match the CSS selectors.

noSuchMethod(Invocation invocation) → dynamic
inherited

Invoked when a non-existent method or property is accessed.

offsetTo(Element parent) → Point
@Experimental(), inherited

Provides the offset of this element's borderEdge relative to the specified parent.

query(String relativeSelectors) → Element
@DomName('Element.querySelector'), @Experimental(), inherited

Alias for querySelector. Note this function is deprecated because its semantics will be changing in the future.

queryAll(String relativeSelectors) → ElementList<Element>
@DomName('Element.querySelectorAll'), @Experimental(), inherited

Alias for querySelectorAll. Note this function is deprecated because its semantics will be changing in the future.

querySelector(String selectors) → Element
@DocsEditable(), @DomName('Element.querySelector'), inherited

Finds the first descendant element of this element that matches the specified group of selectors.

querySelectorAll(String selectors) → ElementList<Element>
@DomName('Element.querySelectorAll'), inherited

Finds all descendent elements of this element that match the specified group of selectors.

remove() → void
@DocsEditable(), @DomName('Element.remove'), inherited

Removes this node from the DOM.

removeEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
replaceWith(Node otherNode) → Node
@DomName('Node.replaceChild'), inherited

Replaces this node with another node.

requestFullscreen() → void
@DocsEditable(), @DomName('Element.requestFullscreen'), @Experimental(), inherited
requestPointerLock() → void
@DocsEditable(), @DomName('Element.requestPointerLock'), @Experimental(), inherited
scroll([options_OR_x, num y ]) → void
inherited
scrollBy([options_OR_x, num y ]) → void
inherited
scrollIntoView([ScrollAlignment alignment ]) → void
inherited

Scrolls this element into view.

scrollTo([options_OR_x, num y ]) → void
inherited
setApplyScroll(ScrollStateCallback scrollStateCallback, String nativeScrollBehavior) → void
@DocsEditable(), @DomName('Element.setApplyScroll'), @Experimental(), inherited
setAttribute(String name, String value) → void
@DocsEditable(), @DomName('Element.setAttribute'), inherited
setAttributeNS(String namespaceURI, String name, String value) → void
@DocsEditable(), @DomName('Element.setAttributeNS'), inherited
setDistributeScroll(ScrollStateCallback scrollStateCallback, String nativeScrollBehavior) → void
@DocsEditable(), @DomName('Element.setDistributeScroll'), @Experimental(), inherited
setInnerHtml(String html, { NodeValidator validator, NodeTreeSanitizer treeSanitizer }) → void
inherited

Parses the HTML fragment and sets it as the contents of this element. This ensures that the generated content follows the sanitization rules specified by the validator or treeSanitizer.

toString() → String
inherited

The string representation of this element.

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-svg/SvgElement-class.html