blob: 92b6d4c2c12334ce2af46035c920d00c609d8e41 [file] [log] [blame]
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Generated from Web IDL definitions.
import 'dart:js_interop';
import 'audio_session.dart';
import 'autoplay_detection.dart';
import 'clipboard_apis.dart';
import 'contact_picker.dart';
import 'cookie_store.dart';
import 'credential_management.dart';
import 'css_font_loading.dart';
import 'css_nav.dart';
import 'css_typed_om.dart';
import 'cssom.dart';
import 'cssom_view.dart';
import 'custom_state_pseudo_class.dart';
import 'device_posture.dart';
import 'document_picture_in_picture.dart';
import 'dom.dart';
import 'edit_context.dart';
import 'encrypted_media.dart';
import 'entries_api.dart';
import 'fedcm.dart';
import 'fenced_frame.dart';
import 'fetch.dart';
import 'file_system_access.dart';
import 'fileapi.dart';
import 'geolocation.dart';
import 'geometry.dart';
import 'hr_time.dart';
import 'indexeddb.dart';
import 'ink_enhancement.dart';
import 'is_input_pending.dart';
import 'keyboard_lock.dart';
import 'local_font_access.dart';
import 'managed_configuration.dart';
import 'media_capabilities.dart';
import 'media_playback_quality.dart';
import 'media_source.dart';
import 'mediacapture_streams.dart';
import 'mediasession.dart';
import 'netinfo.dart';
import 'performance_timeline.dart';
import 'permissions.dart';
import 'permissions_policy.dart';
import 'portals.dart';
import 'presentation_api.dart';
import 'remote_playback.dart';
import 'requestidlecallback.dart';
import 'scheduling_apis.dart';
import 'screen_wake_lock.dart';
import 'selection_api.dart';
import 'serial.dart';
import 'service_workers.dart';
import 'shared_storage.dart';
import 'speech_api.dart';
import 'storage.dart';
import 'storage_buckets.dart';
import 'trusted_types.dart';
import 'turtledove.dart';
import 'ua_client_hints.dart';
import 'uievents.dart';
import 'vibration.dart';
import 'video_rvfc.dart';
import 'virtual_keyboard.dart';
import 'web_app_launch.dart';
import 'web_bluetooth.dart';
import 'web_locks.dart';
import 'web_share.dart';
import 'webcryptoapi.dart';
import 'webgpu.dart';
import 'webhid.dart';
import 'webidl.dart';
import 'webmidi.dart';
import 'webnn.dart';
import 'webusb.dart';
import 'webxr.dart';
import 'window_controls_overlay.dart';
import 'xhr.dart';
typedef HTMLOrSVGScriptElement = JSObject;
typedef MediaProvider = JSObject;
typedef RenderingContext = JSObject;
typedef HTMLOrSVGImageElement = JSObject;
typedef CanvasImageSource = JSObject;
typedef OffscreenRenderingContext = JSObject;
typedef EventHandler = EventHandlerNonNull?;
typedef OnErrorEventHandler = OnErrorEventHandlerNonNull?;
typedef OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull?;
typedef TimerHandler = JSAny;
typedef ImageBitmapSource = JSObject;
typedef MessageEventSource = JSObject;
typedef BlobCallback = JSFunction;
typedef CustomElementConstructor = JSFunction;
typedef FunctionStringCallback = JSFunction;
typedef NavigationInterceptHandler = JSFunction;
typedef EventHandlerNonNull = JSFunction;
typedef OnErrorEventHandlerNonNull = JSFunction;
typedef OnBeforeUnloadEventHandlerNonNull = JSFunction;
typedef FrameRequestCallback = JSFunction;
typedef DocumentReadyState = String;
typedef DocumentVisibilityState = String;
typedef CanPlayTypeResult = String;
typedef TextTrackMode = String;
typedef TextTrackKind = String;
typedef SelectionMode = String;
typedef PredefinedColorSpace = String;
typedef CanvasFillRule = String;
typedef ImageSmoothingQuality = String;
typedef CanvasLineCap = String;
typedef CanvasLineJoin = String;
typedef CanvasTextAlign = String;
typedef CanvasTextBaseline = String;
typedef CanvasDirection = String;
typedef CanvasFontKerning = String;
typedef CanvasFontStretch = String;
typedef CanvasFontVariantCaps = String;
typedef CanvasTextRendering = String;
typedef OffscreenRenderingContextId = String;
typedef ScrollRestoration = String;
typedef NavigationHistoryBehavior = String;
typedef NavigationType = String;
typedef NavigationFocusReset = String;
typedef NavigationScrollBehavior = String;
typedef DOMParserSupportedType = String;
typedef ImageOrientation = String;
typedef PremultiplyAlpha = String;
typedef ColorSpaceConversion = String;
typedef ResizeQuality = String;
typedef WorkerType = String;
@JS('HTMLAllCollection')
@staticInterop
class HTMLAllCollection {}
extension HTMLAllCollectionExtension on HTMLAllCollection {
external JSObject? namedItem(String name);
external JSObject? item([String nameOrIndex]);
external int get length;
}
@JS('HTMLFormControlsCollection')
@staticInterop
class HTMLFormControlsCollection implements HTMLCollection {}
extension HTMLFormControlsCollectionExtension on HTMLFormControlsCollection {
external JSObject? namedItem(String name);
}
@JS('RadioNodeList')
@staticInterop
class RadioNodeList implements NodeList {}
extension RadioNodeListExtension on RadioNodeList {
external set value(String value);
external String get value;
}
@JS('HTMLOptionsCollection')
@staticInterop
class HTMLOptionsCollection implements HTMLCollection {}
extension HTMLOptionsCollectionExtension on HTMLOptionsCollection {
external void add(
JSObject element, [
JSAny? before,
]);
external void remove(int index);
external set length(int value);
external int get length;
external set selectedIndex(int value);
external int get selectedIndex;
}
@JS('DOMStringList')
@staticInterop
class DOMStringList {}
extension DOMStringListExtension on DOMStringList {
external String? item(int index);
external bool contains(String string);
external int get length;
}
@JS('HTMLElement')
@staticInterop
class HTMLElement implements Element {
external factory HTMLElement();
}
extension HTMLElementExtension on HTMLElement {
external void click();
external ElementInternals attachInternals();
external void showPopover();
external void hidePopover();
external bool togglePopover([bool force]);
external void focus([FocusOptions options]);
external void blur();
external Element? get offsetParent;
external int get offsetTop;
external int get offsetLeft;
external int get offsetWidth;
external int get offsetHeight;
external set editContext(EditContext? value);
external EditContext? get editContext;
external set title(String value);
external String get title;
external set lang(String value);
external String get lang;
external set translate(bool value);
external bool get translate;
external set dir(String value);
external String get dir;
external set hidden(JSAny? value);
external JSAny? get hidden;
external set inert(bool value);
external bool get inert;
external set accessKey(String value);
external String get accessKey;
external String get accessKeyLabel;
external set draggable(bool value);
external bool get draggable;
external set spellcheck(bool value);
external bool get spellcheck;
external set autocapitalize(String value);
external String get autocapitalize;
external set innerText(String value);
external String get innerText;
external set outerText(String value);
external String get outerText;
external set popover(String? value);
external String? get popover;
external StylePropertyMap get attributeStyleMap;
external CSSStyleDeclaration get style;
external set onanimationstart(EventHandler value);
external EventHandler get onanimationstart;
external set onanimationiteration(EventHandler value);
external EventHandler get onanimationiteration;
external set onanimationend(EventHandler value);
external EventHandler get onanimationend;
external set onanimationcancel(EventHandler value);
external EventHandler get onanimationcancel;
external set ontransitionrun(EventHandler value);
external EventHandler get ontransitionrun;
external set ontransitionstart(EventHandler value);
external EventHandler get ontransitionstart;
external set ontransitionend(EventHandler value);
external EventHandler get ontransitionend;
external set ontransitioncancel(EventHandler value);
external EventHandler get ontransitioncancel;
external set onabort(EventHandler value);
external EventHandler get onabort;
external set onauxclick(EventHandler value);
external EventHandler get onauxclick;
external set onbeforeinput(EventHandler value);
external EventHandler get onbeforeinput;
external set onbeforematch(EventHandler value);
external EventHandler get onbeforematch;
external set onbeforetoggle(EventHandler value);
external EventHandler get onbeforetoggle;
external set onblur(EventHandler value);
external EventHandler get onblur;
external set oncancel(EventHandler value);
external EventHandler get oncancel;
external set oncanplay(EventHandler value);
external EventHandler get oncanplay;
external set oncanplaythrough(EventHandler value);
external EventHandler get oncanplaythrough;
external set onchange(EventHandler value);
external EventHandler get onchange;
external set onclick(EventHandler value);
external EventHandler get onclick;
external set onclose(EventHandler value);
external EventHandler get onclose;
external set oncontextlost(EventHandler value);
external EventHandler get oncontextlost;
external set oncontextmenu(EventHandler value);
external EventHandler get oncontextmenu;
external set oncontextrestored(EventHandler value);
external EventHandler get oncontextrestored;
external set oncopy(EventHandler value);
external EventHandler get oncopy;
external set oncuechange(EventHandler value);
external EventHandler get oncuechange;
external set oncut(EventHandler value);
external EventHandler get oncut;
external set ondblclick(EventHandler value);
external EventHandler get ondblclick;
external set ondrag(EventHandler value);
external EventHandler get ondrag;
external set ondragend(EventHandler value);
external EventHandler get ondragend;
external set ondragenter(EventHandler value);
external EventHandler get ondragenter;
external set ondragleave(EventHandler value);
external EventHandler get ondragleave;
external set ondragover(EventHandler value);
external EventHandler get ondragover;
external set ondragstart(EventHandler value);
external EventHandler get ondragstart;
external set ondrop(EventHandler value);
external EventHandler get ondrop;
external set ondurationchange(EventHandler value);
external EventHandler get ondurationchange;
external set onemptied(EventHandler value);
external EventHandler get onemptied;
external set onended(EventHandler value);
external EventHandler get onended;
external set onerror(OnErrorEventHandler value);
external OnErrorEventHandler get onerror;
external set onfocus(EventHandler value);
external EventHandler get onfocus;
external set onformdata(EventHandler value);
external EventHandler get onformdata;
external set oninput(EventHandler value);
external EventHandler get oninput;
external set oninvalid(EventHandler value);
external EventHandler get oninvalid;
external set onkeydown(EventHandler value);
external EventHandler get onkeydown;
external set onkeypress(EventHandler value);
external EventHandler get onkeypress;
external set onkeyup(EventHandler value);
external EventHandler get onkeyup;
external set onload(EventHandler value);
external EventHandler get onload;
external set onloadeddata(EventHandler value);
external EventHandler get onloadeddata;
external set onloadedmetadata(EventHandler value);
external EventHandler get onloadedmetadata;
external set onloadstart(EventHandler value);
external EventHandler get onloadstart;
external set onmousedown(EventHandler value);
external EventHandler get onmousedown;
external set onmouseenter(EventHandler value);
external EventHandler get onmouseenter;
external set onmouseleave(EventHandler value);
external EventHandler get onmouseleave;
external set onmousemove(EventHandler value);
external EventHandler get onmousemove;
external set onmouseout(EventHandler value);
external EventHandler get onmouseout;
external set onmouseover(EventHandler value);
external EventHandler get onmouseover;
external set onmouseup(EventHandler value);
external EventHandler get onmouseup;
external set onpaste(EventHandler value);
external EventHandler get onpaste;
external set onpause(EventHandler value);
external EventHandler get onpause;
external set onplay(EventHandler value);
external EventHandler get onplay;
external set onplaying(EventHandler value);
external EventHandler get onplaying;
external set onprogress(EventHandler value);
external EventHandler get onprogress;
external set onratechange(EventHandler value);
external EventHandler get onratechange;
external set onreset(EventHandler value);
external EventHandler get onreset;
external set onresize(EventHandler value);
external EventHandler get onresize;
external set onscroll(EventHandler value);
external EventHandler get onscroll;
external set onscrollend(EventHandler value);
external EventHandler get onscrollend;
external set onsecuritypolicyviolation(EventHandler value);
external EventHandler get onsecuritypolicyviolation;
external set onseeked(EventHandler value);
external EventHandler get onseeked;
external set onseeking(EventHandler value);
external EventHandler get onseeking;
external set onselect(EventHandler value);
external EventHandler get onselect;
external set onslotchange(EventHandler value);
external EventHandler get onslotchange;
external set onstalled(EventHandler value);
external EventHandler get onstalled;
external set onsubmit(EventHandler value);
external EventHandler get onsubmit;
external set onsuspend(EventHandler value);
external EventHandler get onsuspend;
external set ontimeupdate(EventHandler value);
external EventHandler get ontimeupdate;
external set ontoggle(EventHandler value);
external EventHandler get ontoggle;
external set onvolumechange(EventHandler value);
external EventHandler get onvolumechange;
external set onwaiting(EventHandler value);
external EventHandler get onwaiting;
external set onwebkitanimationend(EventHandler value);
external EventHandler get onwebkitanimationend;
external set onwebkitanimationiteration(EventHandler value);
external EventHandler get onwebkitanimationiteration;
external set onwebkitanimationstart(EventHandler value);
external EventHandler get onwebkitanimationstart;
external set onwebkittransitionend(EventHandler value);
external EventHandler get onwebkittransitionend;
external set onwheel(EventHandler value);
external EventHandler get onwheel;
external set onpointerover(EventHandler value);
external EventHandler get onpointerover;
external set onpointerenter(EventHandler value);
external EventHandler get onpointerenter;
external set onpointerdown(EventHandler value);
external EventHandler get onpointerdown;
external set onpointermove(EventHandler value);
external EventHandler get onpointermove;
external set onpointerrawupdate(EventHandler value);
external EventHandler get onpointerrawupdate;
external set onpointerup(EventHandler value);
external EventHandler get onpointerup;
external set onpointercancel(EventHandler value);
external EventHandler get onpointercancel;
external set onpointerout(EventHandler value);
external EventHandler get onpointerout;
external set onpointerleave(EventHandler value);
external EventHandler get onpointerleave;
external set ongotpointercapture(EventHandler value);
external EventHandler get ongotpointercapture;
external set onlostpointercapture(EventHandler value);
external EventHandler get onlostpointercapture;
external set onselectstart(EventHandler value);
external EventHandler get onselectstart;
external set onselectionchange(EventHandler value);
external EventHandler get onselectionchange;
external set ontouchstart(EventHandler value);
external EventHandler get ontouchstart;
external set ontouchend(EventHandler value);
external EventHandler get ontouchend;
external set ontouchmove(EventHandler value);
external EventHandler get ontouchmove;
external set ontouchcancel(EventHandler value);
external EventHandler get ontouchcancel;
external set onbeforexrselect(EventHandler value);
external EventHandler get onbeforexrselect;
external set contentEditable(String value);
external String get contentEditable;
external set enterKeyHint(String value);
external String get enterKeyHint;
external bool get isContentEditable;
external set inputMode(String value);
external String get inputMode;
external set virtualKeyboardPolicy(String value);
external String get virtualKeyboardPolicy;
external DOMStringMap get dataset;
external set nonce(String value);
external String get nonce;
external set autofocus(bool value);
external bool get autofocus;
external set tabIndex(int value);
external int get tabIndex;
}
@JS('HTMLUnknownElement')
@staticInterop
class HTMLUnknownElement implements HTMLElement {}
@JS('DOMStringMap')
@staticInterop
class DOMStringMap {}
@JS('HTMLHtmlElement')
@staticInterop
class HTMLHtmlElement implements HTMLElement {
external factory HTMLHtmlElement();
}
extension HTMLHtmlElementExtension on HTMLHtmlElement {
external set version(String value);
external String get version;
}
@JS('HTMLHeadElement')
@staticInterop
class HTMLHeadElement implements HTMLElement {
external factory HTMLHeadElement();
}
@JS('HTMLTitleElement')
@staticInterop
class HTMLTitleElement implements HTMLElement {
external factory HTMLTitleElement();
}
extension HTMLTitleElementExtension on HTMLTitleElement {
external set text(String value);
external String get text;
}
@JS('HTMLBaseElement')
@staticInterop
class HTMLBaseElement implements HTMLElement {
external factory HTMLBaseElement();
}
extension HTMLBaseElementExtension on HTMLBaseElement {
external set href(String value);
external String get href;
external set target(String value);
external String get target;
}
@JS('HTMLLinkElement')
@staticInterop
class HTMLLinkElement implements HTMLElement {
external factory HTMLLinkElement();
}
extension HTMLLinkElementExtension on HTMLLinkElement {
external set href(String value);
external String get href;
external set crossOrigin(String? value);
external String? get crossOrigin;
external set rel(String value);
external String get rel;
external set as(String value);
external String get as;
external DOMTokenList get relList;
external set media(String value);
external String get media;
external set integrity(String value);
external String get integrity;
external set hreflang(String value);
external String get hreflang;
external set type(String value);
external String get type;
external DOMTokenList get sizes;
external set imageSrcset(String value);
external String get imageSrcset;
external set imageSizes(String value);
external String get imageSizes;
external set referrerPolicy(String value);
external String get referrerPolicy;
external DOMTokenList get blocking;
external set disabled(bool value);
external bool get disabled;
external set fetchPriority(String value);
external String get fetchPriority;
external set charset(String value);
external String get charset;
external set rev(String value);
external String get rev;
external set target(String value);
external String get target;
external CSSStyleSheet? get sheet;
}
@JS('HTMLMetaElement')
@staticInterop
class HTMLMetaElement implements HTMLElement {
external factory HTMLMetaElement();
}
extension HTMLMetaElementExtension on HTMLMetaElement {
external set name(String value);
external String get name;
external set httpEquiv(String value);
external String get httpEquiv;
external set content(String value);
external String get content;
external set media(String value);
external String get media;
external set scheme(String value);
external String get scheme;
}
@JS('HTMLStyleElement')
@staticInterop
class HTMLStyleElement implements HTMLElement {
external factory HTMLStyleElement();
}
extension HTMLStyleElementExtension on HTMLStyleElement {
external set disabled(bool value);
external bool get disabled;
external set media(String value);
external String get media;
external DOMTokenList get blocking;
external set type(String value);
external String get type;
external CSSStyleSheet? get sheet;
}
@JS('HTMLBodyElement')
@staticInterop
class HTMLBodyElement implements HTMLElement {
external factory HTMLBodyElement();
}
extension HTMLBodyElementExtension on HTMLBodyElement {
external set onorientationchange(EventHandler value);
external EventHandler get onorientationchange;
external set text(String value);
external String get text;
external set link(String value);
external String get link;
external set vLink(String value);
external String get vLink;
external set aLink(String value);
external String get aLink;
external set bgColor(String value);
external String get bgColor;
external set background(String value);
external String get background;
external set ongamepadconnected(EventHandler value);
external EventHandler get ongamepadconnected;
external set ongamepaddisconnected(EventHandler value);
external EventHandler get ongamepaddisconnected;
external set onafterprint(EventHandler value);
external EventHandler get onafterprint;
external set onbeforeprint(EventHandler value);
external EventHandler get onbeforeprint;
external set onbeforeunload(OnBeforeUnloadEventHandler value);
external OnBeforeUnloadEventHandler get onbeforeunload;
external set onhashchange(EventHandler value);
external EventHandler get onhashchange;
external set onlanguagechange(EventHandler value);
external EventHandler get onlanguagechange;
external set onmessage(EventHandler value);
external EventHandler get onmessage;
external set onmessageerror(EventHandler value);
external EventHandler get onmessageerror;
external set onoffline(EventHandler value);
external EventHandler get onoffline;
external set ononline(EventHandler value);
external EventHandler get ononline;
external set onpagehide(EventHandler value);
external EventHandler get onpagehide;
external set onpageshow(EventHandler value);
external EventHandler get onpageshow;
external set onpopstate(EventHandler value);
external EventHandler get onpopstate;
external set onrejectionhandled(EventHandler value);
external EventHandler get onrejectionhandled;
external set onstorage(EventHandler value);
external EventHandler get onstorage;
external set onunhandledrejection(EventHandler value);
external EventHandler get onunhandledrejection;
external set onunload(EventHandler value);
external EventHandler get onunload;
external set onportalactivate(EventHandler value);
external EventHandler get onportalactivate;
}
@JS('HTMLHeadingElement')
@staticInterop
class HTMLHeadingElement implements HTMLElement {
external factory HTMLHeadingElement();
}
extension HTMLHeadingElementExtension on HTMLHeadingElement {
external set align(String value);
external String get align;
}
@JS('HTMLParagraphElement')
@staticInterop
class HTMLParagraphElement implements HTMLElement {
external factory HTMLParagraphElement();
}
extension HTMLParagraphElementExtension on HTMLParagraphElement {
external set align(String value);
external String get align;
}
@JS('HTMLHRElement')
@staticInterop
class HTMLHRElement implements HTMLElement {
external factory HTMLHRElement();
}
extension HTMLHRElementExtension on HTMLHRElement {
external set align(String value);
external String get align;
external set color(String value);
external String get color;
external set noShade(bool value);
external bool get noShade;
external set size(String value);
external String get size;
external set width(String value);
external String get width;
}
@JS('HTMLPreElement')
@staticInterop
class HTMLPreElement implements HTMLElement {
external factory HTMLPreElement();
}
extension HTMLPreElementExtension on HTMLPreElement {
external set width(int value);
external int get width;
}
@JS('HTMLQuoteElement')
@staticInterop
class HTMLQuoteElement implements HTMLElement {
external factory HTMLQuoteElement();
}
extension HTMLQuoteElementExtension on HTMLQuoteElement {
external set cite(String value);
external String get cite;
}
@JS('HTMLOListElement')
@staticInterop
class HTMLOListElement implements HTMLElement {
external factory HTMLOListElement();
}
extension HTMLOListElementExtension on HTMLOListElement {
external set reversed(bool value);
external bool get reversed;
external set start(int value);
external int get start;
external set type(String value);
external String get type;
external set compact(bool value);
external bool get compact;
}
@JS('HTMLUListElement')
@staticInterop
class HTMLUListElement implements HTMLElement {
external factory HTMLUListElement();
}
extension HTMLUListElementExtension on HTMLUListElement {
external set compact(bool value);
external bool get compact;
external set type(String value);
external String get type;
}
@JS('HTMLMenuElement')
@staticInterop
class HTMLMenuElement implements HTMLElement {
external factory HTMLMenuElement();
}
extension HTMLMenuElementExtension on HTMLMenuElement {
external set compact(bool value);
external bool get compact;
}
@JS('HTMLLIElement')
@staticInterop
class HTMLLIElement implements HTMLElement {
external factory HTMLLIElement();
}
extension HTMLLIElementExtension on HTMLLIElement {
external set value(int value);
external int get value;
external set type(String value);
external String get type;
}
@JS('HTMLDListElement')
@staticInterop
class HTMLDListElement implements HTMLElement {
external factory HTMLDListElement();
}
extension HTMLDListElementExtension on HTMLDListElement {
external set compact(bool value);
external bool get compact;
}
@JS('HTMLDivElement')
@staticInterop
class HTMLDivElement implements HTMLElement {
external factory HTMLDivElement();
}
extension HTMLDivElementExtension on HTMLDivElement {
external set align(String value);
external String get align;
}
@JS('HTMLAnchorElement')
@staticInterop
class HTMLAnchorElement implements HTMLElement {
external factory HTMLAnchorElement();
}
extension HTMLAnchorElementExtension on HTMLAnchorElement {
external set target(String value);
external String get target;
external set download(String value);
external String get download;
external set ping(String value);
external String get ping;
external set rel(String value);
external String get rel;
external DOMTokenList get relList;
external set hreflang(String value);
external String get hreflang;
external set type(String value);
external String get type;
external set text(String value);
external String get text;
external set referrerPolicy(String value);
external String get referrerPolicy;
external set coords(String value);
external String get coords;
external set charset(String value);
external String get charset;
external set name(String value);
external String get name;
external set rev(String value);
external String get rev;
external set shape(String value);
external String get shape;
external set attributionSourceId(int value);
external int get attributionSourceId;
external set attributionSrc(String value);
external String get attributionSrc;
external set href(String value);
external String get href;
external String get origin;
external set protocol(String value);
external String get protocol;
external set username(String value);
external String get username;
external set password(String value);
external String get password;
external set host(String value);
external String get host;
external set hostname(String value);
external String get hostname;
external set port(String value);
external String get port;
external set pathname(String value);
external String get pathname;
external set search(String value);
external String get search;
external set hash(String value);
external String get hash;
}
@JS('HTMLDataElement')
@staticInterop
class HTMLDataElement implements HTMLElement {
external factory HTMLDataElement();
}
extension HTMLDataElementExtension on HTMLDataElement {
external set value(String value);
external String get value;
}
@JS('HTMLTimeElement')
@staticInterop
class HTMLTimeElement implements HTMLElement {
external factory HTMLTimeElement();
}
extension HTMLTimeElementExtension on HTMLTimeElement {
external set dateTime(String value);
external String get dateTime;
}
@JS('HTMLSpanElement')
@staticInterop
class HTMLSpanElement implements HTMLElement {
external factory HTMLSpanElement();
}
@JS('HTMLBRElement')
@staticInterop
class HTMLBRElement implements HTMLElement {
external factory HTMLBRElement();
}
extension HTMLBRElementExtension on HTMLBRElement {
external set clear(String value);
external String get clear;
}
@JS('HTMLModElement')
@staticInterop
class HTMLModElement implements HTMLElement {
external factory HTMLModElement();
}
extension HTMLModElementExtension on HTMLModElement {
external set cite(String value);
external String get cite;
external set dateTime(String value);
external String get dateTime;
}
@JS('HTMLPictureElement')
@staticInterop
class HTMLPictureElement implements HTMLElement {
external factory HTMLPictureElement();
}
@JS('HTMLSourceElement')
@staticInterop
class HTMLSourceElement implements HTMLElement {
external factory HTMLSourceElement();
}
extension HTMLSourceElementExtension on HTMLSourceElement {
external set src(String value);
external String get src;
external set type(String value);
external String get type;
external set srcset(String value);
external String get srcset;
external set sizes(String value);
external String get sizes;
external set media(String value);
external String get media;
external set width(int value);
external int get width;
external set height(int value);
external int get height;
}
@JS('HTMLImageElement')
@staticInterop
class HTMLImageElement implements HTMLElement {
external factory HTMLImageElement();
}
extension HTMLImageElementExtension on HTMLImageElement {
external JSPromise decode();
external int get x;
external int get y;
external set alt(String value);
external String get alt;
external set src(String value);
external String get src;
external set srcset(String value);
external String get srcset;
external set sizes(String value);
external String get sizes;
external set crossOrigin(String? value);
external String? get crossOrigin;
external set useMap(String value);
external String get useMap;
external set isMap(bool value);
external bool get isMap;
external set width(int value);
external int get width;
external set height(int value);
external int get height;
external int get naturalWidth;
external int get naturalHeight;
external bool get complete;
external String get currentSrc;
external set referrerPolicy(String value);
external String get referrerPolicy;
external set decoding(String value);
external String get decoding;
external set loading(String value);
external String get loading;
external set fetchPriority(String value);
external String get fetchPriority;
external set name(String value);
external String get name;
external set lowsrc(String value);
external String get lowsrc;
external set align(String value);
external String get align;
external set hspace(int value);
external int get hspace;
external set vspace(int value);
external int get vspace;
external set longDesc(String value);
external String get longDesc;
external set border(String value);
external String get border;
external set attributionSrc(String value);
external String get attributionSrc;
external set sharedStorageWritable(bool value);
external bool get sharedStorageWritable;
}
@JS('HTMLIFrameElement')
@staticInterop
class HTMLIFrameElement implements HTMLElement {
external factory HTMLIFrameElement();
}
extension HTMLIFrameElementExtension on HTMLIFrameElement {
external Document? getSVGDocument();
external set credentialless(bool value);
external bool get credentialless;
external set csp(String value);
external String get csp;
external set src(String value);
external String get src;
external set srcdoc(String value);
external String get srcdoc;
external set name(String value);
external String get name;
external DOMTokenList get sandbox;
external set allow(String value);
external String get allow;
external set allowFullscreen(bool value);
external bool get allowFullscreen;
external set width(String value);
external String get width;
external set height(String value);
external String get height;
external set referrerPolicy(String value);
external String get referrerPolicy;
external set loading(String value);
external String get loading;
external Document? get contentDocument;
external Window? get contentWindow;
external set align(String value);
external String get align;
external set scrolling(String value);
external String get scrolling;
external set frameBorder(String value);
external String get frameBorder;
external set longDesc(String value);
external String get longDesc;
external set marginHeight(String value);
external String get marginHeight;
external set marginWidth(String value);
external String get marginWidth;
external PermissionsPolicy get permissionsPolicy;
external set privateToken(String value);
external String get privateToken;
external set sharedStorageWritable(bool value);
external bool get sharedStorageWritable;
}
@JS('HTMLEmbedElement')
@staticInterop
class HTMLEmbedElement implements HTMLElement {
external factory HTMLEmbedElement();
}
extension HTMLEmbedElementExtension on HTMLEmbedElement {
external Document? getSVGDocument();
external set src(String value);
external String get src;
external set type(String value);
external String get type;
external set width(String value);
external String get width;
external set height(String value);
external String get height;
external set align(String value);
external String get align;
external set name(String value);
external String get name;
}
@JS('HTMLObjectElement')
@staticInterop
class HTMLObjectElement implements HTMLElement {
external factory HTMLObjectElement();
}
extension HTMLObjectElementExtension on HTMLObjectElement {
external Document? getSVGDocument();
external bool checkValidity();
external bool reportValidity();
external void setCustomValidity(String error);
external set data(String value);
external String get data;
external set type(String value);
external String get type;
external set name(String value);
external String get name;
external HTMLFormElement? get form;
external set width(String value);
external String get width;
external set height(String value);
external String get height;
external Document? get contentDocument;
external Window? get contentWindow;
external bool get willValidate;
external ValidityState get validity;
external String get validationMessage;
external set align(String value);
external String get align;
external set archive(String value);
external String get archive;
external set code(String value);
external String get code;
external set declare(bool value);
external bool get declare;
external set hspace(int value);
external int get hspace;
external set standby(String value);
external String get standby;
external set vspace(int value);
external int get vspace;
external set codeBase(String value);
external String get codeBase;
external set codeType(String value);
external String get codeType;
external set useMap(String value);
external String get useMap;
external set border(String value);
external String get border;
}
@JS('HTMLVideoElement')
@staticInterop
class HTMLVideoElement implements HTMLMediaElement {
external factory HTMLVideoElement();
}
extension HTMLVideoElementExtension on HTMLVideoElement {
external VideoPlaybackQuality getVideoPlaybackQuality();
external JSPromise requestPictureInPicture();
external int requestVideoFrameCallback(VideoFrameRequestCallback callback);
external void cancelVideoFrameCallback(int handle);
external set width(int value);
external int get width;
external set height(int value);
external int get height;
external int get videoWidth;
external int get videoHeight;
external set poster(String value);
external String get poster;
external set playsInline(bool value);
external bool get playsInline;
external set onenterpictureinpicture(EventHandler value);
external EventHandler get onenterpictureinpicture;
external set onleavepictureinpicture(EventHandler value);
external EventHandler get onleavepictureinpicture;
external set disablePictureInPicture(bool value);
external bool get disablePictureInPicture;
}
@JS('HTMLAudioElement')
@staticInterop
class HTMLAudioElement implements HTMLMediaElement {
external factory HTMLAudioElement();
}
@JS('HTMLTrackElement')
@staticInterop
class HTMLTrackElement implements HTMLElement {
external factory HTMLTrackElement();
external static int get NONE;
external static int get LOADING;
external static int get LOADED;
external static int get ERROR;
}
extension HTMLTrackElementExtension on HTMLTrackElement {
external set kind(String value);
external String get kind;
external set src(String value);
external String get src;
external set srclang(String value);
external String get srclang;
external set label(String value);
external String get label;
@JS('default')
external set default_(bool value);
@JS('default')
external bool get default_;
external int get readyState;
external TextTrack get track;
}
@JS('HTMLMediaElement')
@staticInterop
class HTMLMediaElement implements HTMLElement {
external static int get NETWORK_EMPTY;
external static int get NETWORK_IDLE;
external static int get NETWORK_LOADING;
external static int get NETWORK_NO_SOURCE;
external static int get HAVE_NOTHING;
external static int get HAVE_METADATA;
external static int get HAVE_CURRENT_DATA;
external static int get HAVE_FUTURE_DATA;
external static int get HAVE_ENOUGH_DATA;
}
extension HTMLMediaElementExtension on HTMLMediaElement {
external JSPromise setSinkId(String sinkId);
external JSPromise setMediaKeys(MediaKeys? mediaKeys);
external void load();
external CanPlayTypeResult canPlayType(String type);
external void fastSeek(num time);
external JSObject getStartDate();
external JSPromise play();
external void pause();
external TextTrack addTextTrack(
TextTrackKind kind, [
String label,
String language,
]);
external MediaStream captureStream();
external String get sinkId;
external MediaKeys? get mediaKeys;
external set onencrypted(EventHandler value);
external EventHandler get onencrypted;
external set onwaitingforkey(EventHandler value);
external EventHandler get onwaitingforkey;
external MediaError? get error;
external set src(String value);
external String get src;
external set srcObject(MediaProvider? value);
external MediaProvider? get srcObject;
external String get currentSrc;
external set crossOrigin(String? value);
external String? get crossOrigin;
external int get networkState;
external set preload(String value);
external String get preload;
external TimeRanges get buffered;
external int get readyState;
external bool get seeking;
external set currentTime(num value);
external num get currentTime;
external num get duration;
external bool get paused;
external set defaultPlaybackRate(num value);
external num get defaultPlaybackRate;
external set playbackRate(num value);
external num get playbackRate;
external set preservesPitch(bool value);
external bool get preservesPitch;
external TimeRanges get played;
external TimeRanges get seekable;
external bool get ended;
external set autoplay(bool value);
external bool get autoplay;
external set loop(bool value);
external bool get loop;
external set controls(bool value);
external bool get controls;
external set volume(num value);
external num get volume;
external set muted(bool value);
external bool get muted;
external set defaultMuted(bool value);
external bool get defaultMuted;
external AudioTrackList get audioTracks;
external VideoTrackList get videoTracks;
external TextTrackList get textTracks;
external RemotePlayback get remote;
external set disableRemotePlayback(bool value);
external bool get disableRemotePlayback;
}
@JS('MediaError')
@staticInterop
class MediaError {
external static int get MEDIA_ERR_ABORTED;
external static int get MEDIA_ERR_NETWORK;
external static int get MEDIA_ERR_DECODE;
external static int get MEDIA_ERR_SRC_NOT_SUPPORTED;
}
extension MediaErrorExtension on MediaError {
external int get code;
external String get message;
}
@JS('AudioTrackList')
@staticInterop
class AudioTrackList implements EventTarget {}
extension AudioTrackListExtension on AudioTrackList {
external AudioTrack? getTrackById(String id);
external int get length;
external set onchange(EventHandler value);
external EventHandler get onchange;
external set onaddtrack(EventHandler value);
external EventHandler get onaddtrack;
external set onremovetrack(EventHandler value);
external EventHandler get onremovetrack;
}
@JS('AudioTrack')
@staticInterop
class AudioTrack {}
extension AudioTrackExtension on AudioTrack {
external String get id;
external String get kind;
external String get label;
external String get language;
external set enabled(bool value);
external bool get enabled;
external SourceBuffer? get sourceBuffer;
}
@JS('VideoTrackList')
@staticInterop
class VideoTrackList implements EventTarget {}
extension VideoTrackListExtension on VideoTrackList {
external VideoTrack? getTrackById(String id);
external int get length;
external int get selectedIndex;
external set onchange(EventHandler value);
external EventHandler get onchange;
external set onaddtrack(EventHandler value);
external EventHandler get onaddtrack;
external set onremovetrack(EventHandler value);
external EventHandler get onremovetrack;
}
@JS('VideoTrack')
@staticInterop
class VideoTrack {}
extension VideoTrackExtension on VideoTrack {
external String get id;
external String get kind;
external String get label;
external String get language;
external set selected(bool value);
external bool get selected;
external SourceBuffer? get sourceBuffer;
}
@JS('TextTrackList')
@staticInterop
class TextTrackList implements EventTarget {}
extension TextTrackListExtension on TextTrackList {
external TextTrack? getTrackById(String id);
external int get length;
external set onchange(EventHandler value);
external EventHandler get onchange;
external set onaddtrack(EventHandler value);
external EventHandler get onaddtrack;
external set onremovetrack(EventHandler value);
external EventHandler get onremovetrack;
}
@JS('TextTrack')
@staticInterop
class TextTrack implements EventTarget {}
extension TextTrackExtension on TextTrack {
external void addCue(TextTrackCue cue);
external void removeCue(TextTrackCue cue);
external TextTrackKind get kind;
external String get label;
external String get language;
external String get id;
external String get inBandMetadataTrackDispatchType;
external set mode(TextTrackMode value);
external TextTrackMode get mode;
external TextTrackCueList? get cues;
external TextTrackCueList? get activeCues;
external set oncuechange(EventHandler value);
external EventHandler get oncuechange;
external SourceBuffer? get sourceBuffer;
}
@JS('TextTrackCueList')
@staticInterop
class TextTrackCueList {}
extension TextTrackCueListExtension on TextTrackCueList {
external TextTrackCue? getCueById(String id);
external int get length;
}
@JS('TextTrackCue')
@staticInterop
class TextTrackCue implements EventTarget {}
extension TextTrackCueExtension on TextTrackCue {
external TextTrack? get track;
external set id(String value);
external String get id;
external set startTime(num value);
external num get startTime;
external set endTime(num value);
external num get endTime;
external set pauseOnExit(bool value);
external bool get pauseOnExit;
external set onenter(EventHandler value);
external EventHandler get onenter;
external set onexit(EventHandler value);
external EventHandler get onexit;
}
@JS('TimeRanges')
@staticInterop
class TimeRanges {}
extension TimeRangesExtension on TimeRanges {
external num start(int index);
external num end(int index);
external int get length;
}
@JS('TrackEvent')
@staticInterop
class TrackEvent implements Event {
external factory TrackEvent(
String type, [
TrackEventInit eventInitDict,
]);
}
extension TrackEventExtension on TrackEvent {
external JSObject? get track;
}
@JS()
@staticInterop
@anonymous
class TrackEventInit implements EventInit {
external factory TrackEventInit({JSObject? track});
}
extension TrackEventInitExtension on TrackEventInit {
external set track(JSObject? value);
external JSObject? get track;
}
@JS('HTMLMapElement')
@staticInterop
class HTMLMapElement implements HTMLElement {
external factory HTMLMapElement();
}
extension HTMLMapElementExtension on HTMLMapElement {
external set name(String value);
external String get name;
external HTMLCollection get areas;
}
@JS('HTMLAreaElement')
@staticInterop
class HTMLAreaElement implements HTMLElement {
external factory HTMLAreaElement();
}
extension HTMLAreaElementExtension on HTMLAreaElement {
external set alt(String value);
external String get alt;
external set coords(String value);
external String get coords;
external set shape(String value);
external String get shape;
external set target(String value);
external String get target;
external set download(String value);
external String get download;
external set ping(String value);
external String get ping;
external set rel(String value);
external String get rel;
external DOMTokenList get relList;
external set referrerPolicy(String value);
external String get referrerPolicy;
external set noHref(bool value);
external bool get noHref;
external set href(String value);
external String get href;
external String get origin;
external set protocol(String value);
external String get protocol;
external set username(String value);
external String get username;
external set password(String value);
external String get password;
external set host(String value);
external String get host;
external set hostname(String value);
external String get hostname;
external set port(String value);
external String get port;
external set pathname(String value);
external String get pathname;
external set search(String value);
external String get search;
external set hash(String value);
external String get hash;
}
@JS('HTMLTableElement')
@staticInterop
class HTMLTableElement implements HTMLElement {
external factory HTMLTableElement();
}
extension HTMLTableElementExtension on HTMLTableElement {
external HTMLTableCaptionElement createCaption();
external void deleteCaption();
external HTMLTableSectionElement createTHead();
external void deleteTHead();
external HTMLTableSectionElement createTFoot();
external void deleteTFoot();
external HTMLTableSectionElement createTBody();
external HTMLTableRowElement insertRow([int index]);
external void deleteRow(int index);
external set caption(HTMLTableCaptionElement? value);
external HTMLTableCaptionElement? get caption;
external set tHead(HTMLTableSectionElement? value);
external HTMLTableSectionElement? get tHead;
external set tFoot(HTMLTableSectionElement? value);
external HTMLTableSectionElement? get tFoot;
external HTMLCollection get tBodies;
external HTMLCollection get rows;
external set align(String value);
external String get align;
external set border(String value);
external String get border;
external set frame(String value);
external String get frame;
external set rules(String value);
external String get rules;
external set summary(String value);
external String get summary;
external set width(String value);
external String get width;
external set bgColor(String value);
external String get bgColor;
external set cellPadding(String value);
external String get cellPadding;
external set cellSpacing(String value);
external String get cellSpacing;
}
@JS('HTMLTableCaptionElement')
@staticInterop
class HTMLTableCaptionElement implements HTMLElement {
external factory HTMLTableCaptionElement();
}
extension HTMLTableCaptionElementExtension on HTMLTableCaptionElement {
external set align(String value);
external String get align;
}
@JS('HTMLTableColElement')
@staticInterop
class HTMLTableColElement implements HTMLElement {
external factory HTMLTableColElement();
}
extension HTMLTableColElementExtension on HTMLTableColElement {
external set span(int value);
external int get span;
external set align(String value);
external String get align;
external set ch(String value);
external String get ch;
external set chOff(String value);
external String get chOff;
external set vAlign(String value);
external String get vAlign;
external set width(String value);
external String get width;
}
@JS('HTMLTableSectionElement')
@staticInterop
class HTMLTableSectionElement implements HTMLElement {
external factory HTMLTableSectionElement();
}
extension HTMLTableSectionElementExtension on HTMLTableSectionElement {
external HTMLTableRowElement insertRow([int index]);
external void deleteRow(int index);
external HTMLCollection get rows;
external set align(String value);
external String get align;
external set ch(String value);
external String get ch;
external set chOff(String value);
external String get chOff;
external set vAlign(String value);
external String get vAlign;
}
@JS('HTMLTableRowElement')
@staticInterop
class HTMLTableRowElement implements HTMLElement {
external factory HTMLTableRowElement();
}
extension HTMLTableRowElementExtension on HTMLTableRowElement {
external HTMLTableCellElement insertCell([int index]);
external void deleteCell(int index);
external int get rowIndex;
external int get sectionRowIndex;
external HTMLCollection get cells;
external set align(String value);
external String get align;
external set ch(String value);
external String get ch;
external set chOff(String value);
external String get chOff;
external set vAlign(String value);
external String get vAlign;
external set bgColor(String value);
external String get bgColor;
}
@JS('HTMLTableCellElement')
@staticInterop
class HTMLTableCellElement implements HTMLElement {
external factory HTMLTableCellElement();
}
extension HTMLTableCellElementExtension on HTMLTableCellElement {
external set colSpan(int value);
external int get colSpan;
external set rowSpan(int value);
external int get rowSpan;
external set headers(String value);
external String get headers;
external int get cellIndex;
external set scope(String value);
external String get scope;
external set abbr(String value);
external String get abbr;
external set align(String value);
external String get align;
external set axis(String value);
external String get axis;
external set height(String value);
external String get height;
external set width(String value);
external String get width;
external set ch(String value);
external String get ch;
external set chOff(String value);
external String get chOff;
external set noWrap(bool value);
external bool get noWrap;
external set vAlign(String value);
external String get vAlign;
external set bgColor(String value);
external String get bgColor;
}
@JS('HTMLFormElement')
@staticInterop
class HTMLFormElement implements HTMLElement {
external factory HTMLFormElement();
}
extension HTMLFormElementExtension on HTMLFormElement {
external void submit();
external void requestSubmit([HTMLElement? submitter]);
external void reset();
external bool checkValidity();
external bool reportValidity();
external set acceptCharset(String value);
external String get acceptCharset;
external set action(String value);
external String get action;
external set autocomplete(String value);
external String get autocomplete;
external set enctype(String value);
external String get enctype;
external set encoding(String value);
external String get encoding;
external set method(String value);
external String get method;
external set name(String value);
external String get name;
external set noValidate(bool value);
external bool get noValidate;
external set target(String value);
external String get target;
external set rel(String value);
external String get rel;
external DOMTokenList get relList;
external HTMLFormControlsCollection get elements;
external int get length;
}
@JS('HTMLLabelElement')
@staticInterop
class HTMLLabelElement implements HTMLElement {
external factory HTMLLabelElement();
}
extension HTMLLabelElementExtension on HTMLLabelElement {
external HTMLFormElement? get form;
external set htmlFor(String value);
external String get htmlFor;
external HTMLElement? get control;
}
@JS('HTMLInputElement')
@staticInterop
class HTMLInputElement implements HTMLElement {
external factory HTMLInputElement();
}
extension HTMLInputElementExtension on HTMLInputElement {
external void stepUp([int n]);
external void stepDown([int n]);
external bool checkValidity();
external bool reportValidity();
external void setCustomValidity(String error);
external void select();
external void setRangeText(
String replacement, [
int start,
int end,
SelectionMode selectionMode,
]);
external void setSelectionRange(
int start,
int end, [
String direction,
]);
external void showPicker();
external set webkitdirectory(bool value);
external bool get webkitdirectory;
external JSArray get webkitEntries;
external set capture(String value);
external String get capture;
external set accept(String value);
external String get accept;
external set alt(String value);
external String get alt;
external set autocomplete(String value);
external String get autocomplete;
external set defaultChecked(bool value);
external bool get defaultChecked;
external set checked(bool value);
external bool get checked;
external set dirName(String value);
external String get dirName;
external set disabled(bool value);
external bool get disabled;
external HTMLFormElement? get form;
external set files(FileList? value);
external FileList? get files;
external set formAction(String value);
external String get formAction;
external set formEnctype(String value);
external String get formEnctype;
external set formMethod(String value);
external String get formMethod;
external set formNoValidate(bool value);
external bool get formNoValidate;
external set formTarget(String value);
external String get formTarget;
external set height(int value);
external int get height;
external set indeterminate(bool value);
external bool get indeterminate;
external HTMLDataListElement? get list;
external set max(String value);
external String get max;
external set maxLength(int value);
external int get maxLength;
external set min(String value);
external String get min;
external set minLength(int value);
external int get minLength;
external set multiple(bool value);
external bool get multiple;
external set name(String value);
external String get name;
external set pattern(String value);
external String get pattern;
external set placeholder(String value);
external String get placeholder;
external set readOnly(bool value);
external bool get readOnly;
external set required(bool value);
external bool get required;
external set size(int value);
external int get size;
external set src(String value);
external String get src;
external set step(String value);
external String get step;
external set type(String value);
external String get type;
external set defaultValue(String value);
external String get defaultValue;
external set value(String value);
external String get value;
external set valueAsDate(JSObject? value);
external JSObject? get valueAsDate;
external set valueAsNumber(num value);
external num get valueAsNumber;
external set width(int value);
external int get width;
external bool get willValidate;
external ValidityState get validity;
external String get validationMessage;
external NodeList? get labels;
external set selectionStart(int? value);
external int? get selectionStart;
external set selectionEnd(int? value);
external int? get selectionEnd;
external set selectionDirection(String? value);
external String? get selectionDirection;
external set align(String value);
external String get align;
external set useMap(String value);
external String get useMap;
external set popoverTargetElement(Element? value);
external Element? get popoverTargetElement;
external set popoverTargetAction(String value);
external String get popoverTargetAction;
}
@JS('HTMLButtonElement')
@staticInterop
class HTMLButtonElement implements HTMLElement {
external factory HTMLButtonElement();
}
extension HTMLButtonElementExtension on HTMLButtonElement {
external bool checkValidity();
external bool reportValidity();
external void setCustomValidity(String error);
external set disabled(bool value);
external bool get disabled;
external HTMLFormElement? get form;
external set formAction(String value);
external String get formAction;
external set formEnctype(String value);
external String get formEnctype;
external set formMethod(String value);
external String get formMethod;
external set formNoValidate(bool value);
external bool get formNoValidate;
external set formTarget(String value);
external String get formTarget;
external set name(String value);
external String get name;
external set type(String value);
external String get type;
external set value(String value);
external String get value;
external bool get willValidate;
external ValidityState get validity;
external String get validationMessage;
external NodeList get labels;
external set popoverTargetElement(Element? value);
external Element? get popoverTargetElement;
external set popoverTargetAction(String value);
external String get popoverTargetAction;
}
@JS('HTMLSelectElement')
@staticInterop
class HTMLSelectElement implements HTMLElement {
external factory HTMLSelectElement();
}
extension HTMLSelectElementExtension on HTMLSelectElement {
external HTMLOptionElement? item(int index);
external HTMLOptionElement? namedItem(String name);
external void add(
JSObject element, [
JSAny? before,
]);
external void remove([int index]);
external bool checkValidity();
external bool reportValidity();
external void setCustomValidity(String error);
external void showPicker();
external set autocomplete(String value);
external String get autocomplete;
external set disabled(bool value);
external bool get disabled;
external HTMLFormElement? get form;
external set multiple(bool value);
external bool get multiple;
external set name(String value);
external String get name;
external set required(bool value);
external bool get required;
external set size(int value);
external int get size;
external String get type;
external HTMLOptionsCollection get options;
external set length(int value);
external int get length;
external HTMLCollection get selectedOptions;
external set selectedIndex(int value);
external int get selectedIndex;
external set value(String value);
external String get value;
external bool get willValidate;
external ValidityState get validity;
external String get validationMessage;
external NodeList get labels;
}
@JS('HTMLDataListElement')
@staticInterop
class HTMLDataListElement implements HTMLElement {
external factory HTMLDataListElement();
}
extension HTMLDataListElementExtension on HTMLDataListElement {
external HTMLCollection get options;
}
@JS('HTMLOptGroupElement')
@staticInterop
class HTMLOptGroupElement implements HTMLElement {
external factory HTMLOptGroupElement();
}
extension HTMLOptGroupElementExtension on HTMLOptGroupElement {
external set disabled(bool value);
external bool get disabled;
external set label(String value);
external String get label;
}
@JS('HTMLOptionElement')
@staticInterop
class HTMLOptionElement implements HTMLElement {
external factory HTMLOptionElement();
}
extension HTMLOptionElementExtension on HTMLOptionElement {
external set disabled(bool value);
external bool get disabled;
external HTMLFormElement? get form;
external set label(String value);
external String get label;
external set defaultSelected(bool value);
external bool get defaultSelected;
external set selected(bool value);
external bool get selected;
external set value(String value);
external String get value;
external set text(String value);
external String get text;
external int get index;
}
@JS('HTMLTextAreaElement')
@staticInterop
class HTMLTextAreaElement implements HTMLElement {
external factory HTMLTextAreaElement();
}
extension HTMLTextAreaElementExtension on HTMLTextAreaElement {
external bool checkValidity();
external bool reportValidity();
external void setCustomValidity(String error);
external void select();
external void setRangeText(
String replacement, [
int start,
int end,
SelectionMode selectionMode,
]);
external void setSelectionRange(
int start,
int end, [
String direction,
]);
external set autocomplete(String value);
external String get autocomplete;
external set cols(int value);
external int get cols;
external set dirName(String value);
external String get dirName;
external set disabled(bool value);
external bool get disabled;
external HTMLFormElement? get form;
external set maxLength(int value);
external int get maxLength;
external set minLength(int value);
external int get minLength;
external set name(String value);
external String get name;
external set placeholder(String value);
external String get placeholder;
external set readOnly(bool value);
external bool get readOnly;
external set required(bool value);
external bool get required;
external set rows(int value);
external int get rows;
external set wrap(String value);
external String get wrap;
external String get type;
external set defaultValue(String value);
external String get defaultValue;
external set value(String value);
external String get value;
external int get textLength;
external bool get willValidate;
external ValidityState get validity;
external String get validationMessage;
external NodeList get labels;
external set selectionStart(int value);
external int get selectionStart;
external set selectionEnd(int value);
external int get selectionEnd;
external set selectionDirection(String value);
external String get selectionDirection;
}
@JS('HTMLOutputElement')
@staticInterop
class HTMLOutputElement implements HTMLElement {
external factory HTMLOutputElement();
}
extension HTMLOutputElementExtension on HTMLOutputElement {
external bool checkValidity();
external bool reportValidity();
external void setCustomValidity(String error);
external DOMTokenList get htmlFor;
external HTMLFormElement? get form;
external set name(String value);
external String get name;
external String get type;
external set defaultValue(String value);
external String get defaultValue;
external set value(String value);
external String get value;
external bool get willValidate;
external ValidityState get validity;
external String get validationMessage;
external NodeList get labels;
}
@JS('HTMLProgressElement')
@staticInterop
class HTMLProgressElement implements HTMLElement {
external factory HTMLProgressElement();
}
extension HTMLProgressElementExtension on HTMLProgressElement {
external set value(num value);
external num get value;
external set max(num value);
external num get max;
external num get position;
external NodeList get labels;
}
@JS('HTMLMeterElement')
@staticInterop
class HTMLMeterElement implements HTMLElement {
external factory HTMLMeterElement();
}
extension HTMLMeterElementExtension on HTMLMeterElement {
external set value(num value);
external num get value;
external set min(num value);
external num get min;
external set max(num value);
external num get max;
external set low(num value);
external num get low;
external set high(num value);
external num get high;
external set optimum(num value);
external num get optimum;
external NodeList get labels;
}
@JS('HTMLFieldSetElement')
@staticInterop
class HTMLFieldSetElement implements HTMLElement {
external factory HTMLFieldSetElement();
}
extension HTMLFieldSetElementExtension on HTMLFieldSetElement {
external bool checkValidity();
external bool reportValidity();
external void setCustomValidity(String error);
external set disabled(bool value);
external bool get disabled;
external HTMLFormElement? get form;
external set name(String value);
external String get name;
external String get type;
external HTMLCollection get elements;
external bool get willValidate;
external ValidityState get validity;
external String get validationMessage;
}
@JS('HTMLLegendElement')
@staticInterop
class HTMLLegendElement implements HTMLElement {
external factory HTMLLegendElement();
}
extension HTMLLegendElementExtension on HTMLLegendElement {
external HTMLFormElement? get form;
external set align(String value);
external String get align;
}
@JS('ValidityState')
@staticInterop
class ValidityState {}
extension ValidityStateExtension on ValidityState {
external bool get valueMissing;
external bool get typeMismatch;
external bool get patternMismatch;
external bool get tooLong;
external bool get tooShort;
external bool get rangeUnderflow;
external bool get rangeOverflow;
external bool get stepMismatch;
external bool get badInput;
external bool get customError;
external bool get valid;
}
@JS('SubmitEvent')
@staticInterop
class SubmitEvent implements Event {
external factory SubmitEvent(
String type, [
SubmitEventInit eventInitDict,
]);
}
extension SubmitEventExtension on SubmitEvent {
external HTMLElement? get submitter;
}
@JS()
@staticInterop
@anonymous
class SubmitEventInit implements EventInit {
external factory SubmitEventInit({HTMLElement? submitter});
}
extension SubmitEventInitExtension on SubmitEventInit {
external set submitter(HTMLElement? value);
external HTMLElement? get submitter;
}
@JS('FormDataEvent')
@staticInterop
class FormDataEvent implements Event {
external factory FormDataEvent(
String type,
FormDataEventInit eventInitDict,
);
}
extension FormDataEventExtension on FormDataEvent {
external FormData get formData;
}
@JS()
@staticInterop
@anonymous
class FormDataEventInit implements EventInit {
external factory FormDataEventInit({required FormData formData});
}
extension FormDataEventInitExtension on FormDataEventInit {
external set formData(FormData value);
external FormData get formData;
}
@JS('HTMLDetailsElement')
@staticInterop
class HTMLDetailsElement implements HTMLElement {
external factory HTMLDetailsElement();
}
extension HTMLDetailsElementExtension on HTMLDetailsElement {
external set name(String value);
external String get name;
external set open(bool value);
external bool get open;
}
@JS('HTMLDialogElement')
@staticInterop
class HTMLDialogElement implements HTMLElement {
external factory HTMLDialogElement();
}
extension HTMLDialogElementExtension on HTMLDialogElement {
external void show();
external void showModal();
external void close([String returnValue]);
external set open(bool value);
external bool get open;
external set returnValue(String value);
external String get returnValue;
}
@JS('HTMLScriptElement')
@staticInterop
class HTMLScriptElement implements HTMLElement {
external factory HTMLScriptElement();
external static bool supports(String type);
}
extension HTMLScriptElementExtension on HTMLScriptElement {
external set src(String value);
external String get src;
external set type(String value);
external String get type;
external set noModule(bool value);
external bool get noModule;
external set async(bool value);
external bool get async;
external set defer(bool value);
external bool get defer;
external set crossOrigin(String? value);
external String? get crossOrigin;
external set text(String value);
external String get text;
external set integrity(String value);
external String get integrity;
external set referrerPolicy(String value);
external String get referrerPolicy;
external DOMTokenList get blocking;
external set fetchPriority(String value);
external String get fetchPriority;
external set charset(String value);
external String get charset;
external set event(String value);
external String get event;
external set htmlFor(String value);
external String get htmlFor;
external set attributionSrc(String value);
external String get attributionSrc;
}
@JS('HTMLTemplateElement')
@staticInterop
class HTMLTemplateElement implements HTMLElement {
external factory HTMLTemplateElement();
}
extension HTMLTemplateElementExtension on HTMLTemplateElement {
external DocumentFragment get content;
external set shadowRootMode(String value);
external String get shadowRootMode;
external set shadowRootDelegatesFocus(bool value);
external bool get shadowRootDelegatesFocus;
}
@JS('HTMLSlotElement')
@staticInterop
class HTMLSlotElement implements HTMLElement {
external factory HTMLSlotElement();
}
extension HTMLSlotElementExtension on HTMLSlotElement {
external JSArray assignedNodes([AssignedNodesOptions options]);
external JSArray assignedElements([AssignedNodesOptions options]);
external void assign(JSObject nodes);
external set name(String value);
external String get name;
}
@JS()
@staticInterop
@anonymous
class AssignedNodesOptions {
external factory AssignedNodesOptions({bool flatten});
}
extension AssignedNodesOptionsExtension on AssignedNodesOptions {
external set flatten(bool value);
external bool get flatten;
}
@JS('HTMLCanvasElement')
@staticInterop
class HTMLCanvasElement implements HTMLElement {
external factory HTMLCanvasElement();
}
extension HTMLCanvasElementExtension on HTMLCanvasElement {
external RenderingContext? getContext(
String contextId, [
JSAny? options,
]);
external String toDataURL([
String type,
JSAny? quality,
]);
external void toBlob(
BlobCallback callback, [
String type,
JSAny? quality,
]);
external OffscreenCanvas transferControlToOffscreen();
external MediaStream captureStream([num frameRequestRate]);
external set width(int value);
external int get width;
external set height(int value);
external int get height;
}
@JS()
@staticInterop
@anonymous
class CanvasRenderingContext2DSettings {
external factory CanvasRenderingContext2DSettings({
bool alpha,
bool desynchronized,
PredefinedColorSpace colorSpace,
bool willReadFrequently,
});
}
extension CanvasRenderingContext2DSettingsExtension
on CanvasRenderingContext2DSettings {
external set alpha(bool value);
external bool get alpha;
external set desynchronized(bool value);
external bool get desynchronized;
external set colorSpace(PredefinedColorSpace value);
external PredefinedColorSpace get colorSpace;
external set willReadFrequently(bool value);
external bool get willReadFrequently;
}
@JS('CanvasRenderingContext2D')
@staticInterop
class CanvasRenderingContext2D {}
extension CanvasRenderingContext2DExtension on CanvasRenderingContext2D {
external CanvasRenderingContext2DSettings getContextAttributes();
external void save();
external void restore();
external void reset();
external bool isContextLost();
external void scale(
num x,
num y,
);
external void rotate(num angle);
external void translate(
num x,
num y,
);
external void transform(
num a,
num b,
num c,
num d,
num e,
num f,
);
external DOMMatrix getTransform();
external void setTransform([
JSAny aOrTransform,
num b,
num c,
num d,
num e,
num f,
]);
external void resetTransform();
external CanvasGradient createLinearGradient(
num x0,
num y0,
num x1,
num y1,
);
external CanvasGradient createRadialGradient(
num x0,
num y0,
num r0,
num x1,
num y1,
num r1,
);
external CanvasGradient createConicGradient(
num startAngle,
num x,
num y,
);
external CanvasPattern? createPattern(
CanvasImageSource image,
String repetition,
);
external void clearRect(
num x,
num y,
num w,
num h,
);
external void fillRect(
num x,
num y,
num w,
num h,
);
external void strokeRect(
num x,
num y,
num w,
num h,
);
external void beginPath();
external void fill([
JSAny fillRuleOrPath,
CanvasFillRule fillRule,
]);
external void stroke([Path2D path]);
external void clip([
JSAny fillRuleOrPath,
CanvasFillRule fillRule,
]);
external bool isPointInPath(
JSAny pathOrX,
num xOrY, [
JSAny fillRuleOrY,
CanvasFillRule fillRule,
]);
external bool isPointInStroke(
JSAny pathOrX,
num xOrY, [
num y,
]);
external void drawFocusIfNeeded(
JSObject elementOrPath, [
Element element,
]);
external void scrollPathIntoView([Path2D path]);
external void fillText(
String text,
num x,
num y, [
num maxWidth,
]);
external void strokeText(
String text,
num x,
num y, [
num maxWidth,
]);
external TextMetrics measureText(String text);
external void drawImage(
CanvasImageSource image,
num dxOrSx,
num dyOrSy, [
num dwOrSw,
num dhOrSh,
num dx,
num dy,
num dw,
num dh,
]);
external ImageData createImageData(
JSAny imagedataOrSw, [
int sh,
ImageDataSettings settings,
]);
external ImageData getImageData(
int sx,
int sy,
int sw,
int sh, [
ImageDataSettings settings,
]);
external void putImageData(
ImageData imagedata,
int dx,
int dy, [
int dirtyX,
int dirtyY,
int dirtyWidth,
int dirtyHeight,
]);
external void setLineDash(JSArray segments);
external JSArray getLineDash();
external void closePath();
external void moveTo(
num x,
num y,
);
external void lineTo(
num x,
num y,
);
external void quadraticCurveTo(
num cpx,
num cpy,
num x,
num y,
);
external void bezierCurveTo(
num cp1x,
num cp1y,
num cp2x,
num cp2y,
num x,
num y,
);
external void arcTo(
num x1,
num y1,
num x2,
num y2,
num radius,
);
external void rect(
num x,
num y,
num w,
num h,
);
external void roundRect(
num x,
num y,
num w,
num h, [
JSAny radii,
]);
external void arc(
num x,
num y,
num radius,
num startAngle,
num endAngle, [
bool counterclockwise,
]);
external void ellipse(
num x,
num y,
num radiusX,
num radiusY,
num rotation,
num startAngle,
num endAngle, [
bool counterclockwise,
]);
external HTMLCanvasElement get canvas;
external set globalAlpha(num value);
external num get globalAlpha;
external set globalCompositeOperation(String value);
external String get globalCompositeOperation;
external set imageSmoothingEnabled(bool value);
external bool get imageSmoothingEnabled;
external set imageSmoothingQuality(ImageSmoothingQuality value);
external ImageSmoothingQuality get imageSmoothingQuality;
external set strokeStyle(JSAny value);
external JSAny get strokeStyle;
external set fillStyle(JSAny value);
external JSAny get fillStyle;
external set shadowOffsetX(num value);
external num get shadowOffsetX;
external set shadowOffsetY(num value);
external num get shadowOffsetY;
external set shadowBlur(num value);
external num get shadowBlur;
external set shadowColor(String value);
external String get shadowColor;
external set filter(String value);
external String get filter;
external set lineWidth(num value);
external num get lineWidth;
external set lineCap(CanvasLineCap value);
external CanvasLineCap get lineCap;
external set lineJoin(CanvasLineJoin value);
external CanvasLineJoin get lineJoin;
external set miterLimit(num value);
external num get miterLimit;
external set lineDashOffset(num value);
external num get lineDashOffset;
external set font(String value);
external String get font;
external set textAlign(CanvasTextAlign value);
external CanvasTextAlign get textAlign;
external set textBaseline(CanvasTextBaseline value);
external CanvasTextBaseline get textBaseline;
external set direction(CanvasDirection value);
external CanvasDirection get direction;
external set letterSpacing(String value);
external String get letterSpacing;
external set fontKerning(CanvasFontKerning value);
external CanvasFontKerning get fontKerning;
external set fontStretch(CanvasFontStretch value);
external CanvasFontStretch get fontStretch;
external set fontVariantCaps(CanvasFontVariantCaps value);
external CanvasFontVariantCaps get fontVariantCaps;
external set textRendering(CanvasTextRendering value);
external CanvasTextRendering get textRendering;
external set wordSpacing(String value);
external String get wordSpacing;
}
@JS('CanvasGradient')
@staticInterop
class CanvasGradient {}
extension CanvasGradientExtension on CanvasGradient {
external void addColorStop(
num offset,
String color,
);
}
@JS('CanvasPattern')
@staticInterop
class CanvasPattern {}
extension CanvasPatternExtension on CanvasPattern {
external void setTransform([DOMMatrix2DInit transform]);
}
@JS('TextMetrics')
@staticInterop
class TextMetrics {}
extension TextMetricsExtension on TextMetrics {
external num get width;
external num get actualBoundingBoxLeft;
external num get actualBoundingBoxRight;
external num get fontBoundingBoxAscent;
external num get fontBoundingBoxDescent;
external num get actualBoundingBoxAscent;
external num get actualBoundingBoxDescent;
external num get emHeightAscent;
external num get emHeightDescent;
external num get hangingBaseline;
external num get alphabeticBaseline;
external num get ideographicBaseline;
}
@JS()
@staticInterop
@anonymous
class ImageDataSettings {
external factory ImageDataSettings({PredefinedColorSpace colorSpace});
}
extension ImageDataSettingsExtension on ImageDataSettings {
external set colorSpace(PredefinedColorSpace value);
external PredefinedColorSpace get colorSpace;
}
@JS('ImageData')
@staticInterop
class ImageData {
external factory ImageData(
JSAny dataOrSw,
int shOrSw, [
JSAny settingsOrSh,
ImageDataSettings settings,
]);
}
extension ImageDataExtension on ImageData {
external int get width;
external int get height;
external JSUint8ClampedArray get data;
external PredefinedColorSpace get colorSpace;
}
@JS('Path2D')
@staticInterop
class Path2D {
external factory Path2D([JSAny path]);
}
extension Path2DExtension on Path2D {
external void addPath(
Path2D path, [
DOMMatrix2DInit transform,
]);
external void closePath();
external void moveTo(
num x,
num y,
);
external void lineTo(
num x,
num y,
);
external void quadraticCurveTo(
num cpx,
num cpy,
num x,
num y,
);
external void bezierCurveTo(
num cp1x,
num cp1y,
num cp2x,
num cp2y,
num x,
num y,
);
external void arcTo(
num x1,
num y1,
num x2,
num y2,
num radius,
);
external void rect(
num x,
num y,
num w,
num h,
);
external void roundRect(
num x,
num y,
num w,
num h, [
JSAny radii,
]);
external void arc(
num x,
num y,
num radius,
num startAngle,
num endAngle, [
bool counterclockwise,
]);
external void ellipse(
num x,
num y,
num radiusX,
num radiusY,
num rotation,
num startAngle,
num endAngle, [
bool counterclockwise,
]);
}
@JS('ImageBitmapRenderingContext')
@staticInterop
class ImageBitmapRenderingContext {}
extension ImageBitmapRenderingContextExtension on ImageBitmapRenderingContext {
external void transferFromImageBitmap(ImageBitmap? bitmap);
external JSObject get canvas;
}
@JS()
@staticInterop
@anonymous
class ImageBitmapRenderingContextSettings {
external factory ImageBitmapRenderingContextSettings({bool alpha});
}
extension ImageBitmapRenderingContextSettingsExtension
on ImageBitmapRenderingContextSettings {
external set alpha(bool value);
external bool get alpha;
}
@JS()
@staticInterop
@anonymous
class ImageEncodeOptions {
external factory ImageEncodeOptions({
String type,
num quality,
});
}
extension ImageEncodeOptionsExtension on ImageEncodeOptions {
external set type(String value);
external String get type;
external set quality(num value);
external num get quality;
}
@JS('OffscreenCanvas')
@staticInterop
class OffscreenCanvas implements EventTarget {
external factory OffscreenCanvas(
int width,
int height,
);
}
extension OffscreenCanvasExtension on OffscreenCanvas {
external OffscreenRenderingContext? getContext(
OffscreenRenderingContextId contextId, [
JSAny? options,
]);
external ImageBitmap transferToImageBitmap();
external JSPromise convertToBlob([ImageEncodeOptions options]);
external set width(int value);
external int get width;
external set height(int value);
external int get height;
external set oncontextlost(EventHandler value);
external EventHandler get oncontextlost;
external set oncontextrestored(EventHandler value);
external EventHandler get oncontextrestored;
}
@JS('OffscreenCanvasRenderingContext2D')
@staticInterop
class OffscreenCanvasRenderingContext2D {}
extension OffscreenCanvasRenderingContext2DExtension
on OffscreenCanvasRenderingContext2D {
external void commit();
external void save();
external void restore();
external void reset();
external bool isContextLost();
external void scale(
num x,
num y,
);
external void rotate(num angle);
external void translate(
num x,
num y,
);
external void transform(
num a,
num b,
num c,
num d,
num e,
num f,
);
external DOMMatrix getTransform();
external void setTransform([
JSAny aOrTransform,
num b,
num c,
num d,
num e,
num f,
]);
external void resetTransform();
external CanvasGradient createLinearGradient(
num x0,
num y0,
num x1,
num y1,
);
external CanvasGradient createRadialGradient(
num x0,
num y0,
num r0,
num x1,
num y1,
num r1,
);
external CanvasGradient createConicGradient(
num startAngle,
num x,
num y,
);
external CanvasPattern? createPattern(
CanvasImageSource image,
String repetition,
);
external void clearRect(
num x,
num y,
num w,
num h,
);
external void fillRect(
num x,
num y,
num w,
num h,
);
external void strokeRect(
num x,
num y,
num w,
num h,
);
external void beginPath();
external void fill([
JSAny fillRuleOrPath,
CanvasFillRule fillRule,
]);
external void stroke([Path2D path]);
external void clip([
JSAny fillRuleOrPath,
CanvasFillRule fillRule,
]);
external bool isPointInPath(
JSAny pathOrX,
num xOrY, [
JSAny fillRuleOrY,
CanvasFillRule fillRule,
]);
external bool isPointInStroke(
JSAny pathOrX,
num xOrY, [
num y,
]);
external void fillText(
String text,
num x,
num y, [
num maxWidth,
]);
external void strokeText(
String text,
num x,
num y, [
num maxWidth,
]);
external TextMetrics measureText(String text);
external void drawImage(
CanvasImageSource image,
num dxOrSx,
num dyOrSy, [
num dwOrSw,
num dhOrSh,
num dx,
num dy,
num dw,
num dh,
]);
external ImageData createImageData(
JSAny imagedataOrSw, [
int sh,
ImageDataSettings settings,
]);
external ImageData getImageData(
int sx,
int sy,
int sw,
int sh, [
ImageDataSettings settings,
]);
external void putImageData(
ImageData imagedata,
int dx,
int dy, [
int dirtyX,
int dirtyY,
int dirtyWidth,
int dirtyHeight,
]);
external void setLineDash(JSArray segments);
external JSArray getLineDash();
external void closePath();
external void moveTo(
num x,
num y,
);
external void lineTo(
num x,
num y,
);
external void quadraticCurveTo(
num cpx,
num cpy,
num x,
num y,
);
external void bezierCurveTo(
num cp1x,
num cp1y,
num cp2x,
num cp2y,
num x,
num y,
);
external void arcTo(
num x1,
num y1,
num x2,
num y2,
num radius,
);
external void rect(
num x,
num y,
num w,
num h,
);
external void roundRect(
num x,
num y,
num w,
num h, [
JSAny radii,
]);
external void arc(
num x,
num y,
num radius,
num startAngle,
num endAngle, [
bool counterclockwise,
]);
external void ellipse(
num x,
num y,
num radiusX,
num radiusY,
num rotation,
num startAngle,
num endAngle, [
bool counterclockwise,
]);
external OffscreenCanvas get canvas;
external set globalAlpha(num value);
external num get globalAlpha;
external set globalCompositeOperation(String value);
external String get globalCompositeOperation;
external set imageSmoothingEnabled(bool value);
external bool get imageSmoothingEnabled;
external set imageSmoothingQuality(ImageSmoothingQuality value);
external ImageSmoothingQuality get imageSmoothingQuality;
external set strokeStyle(JSAny value);
external JSAny get strokeStyle;
external set fillStyle(JSAny value);
external JSAny get fillStyle;
external set shadowOffsetX(num value);
external num get shadowOffsetX;
external set shadowOffsetY(num value);
external num get shadowOffsetY;
external set shadowBlur(num value);
external num get shadowBlur;
external set shadowColor(String value);
external String get shadowColor;
external set filter(String value);
external String get filter;
external set lineWidth(num value);
external num get lineWidth;
external set lineCap(CanvasLineCap value);
external CanvasLineCap get lineCap;
external set lineJoin(CanvasLineJoin value);
external CanvasLineJoin get lineJoin;
external set miterLimit(num value);
external num get miterLimit;
external set lineDashOffset(num value);
external num get lineDashOffset;
external set font(String value);
external String get font;
external set textAlign(CanvasTextAlign value);
external CanvasTextAlign get textAlign;
external set textBaseline(CanvasTextBaseline value);
external CanvasTextBaseline get textBaseline;
external set direction(CanvasDirection value);
external CanvasDirection get direction;
external set letterSpacing(String value);
external String get letterSpacing;
external set fontKerning(CanvasFontKerning value);
external CanvasFontKerning get fontKerning;
external set fontStretch(CanvasFontStretch value);
external CanvasFontStretch get fontStretch;
external set fontVariantCaps(CanvasFontVariantCaps value);
external CanvasFontVariantCaps get fontVariantCaps;
external set textRendering(CanvasTextRendering value);
external CanvasTextRendering get textRendering;
external set wordSpacing(String value);
external String get wordSpacing;
}
@JS('CustomElementRegistry')
@staticInterop
class CustomElementRegistry {}
extension CustomElementRegistryExtension on CustomElementRegistry {
external void define(
String name,
CustomElementConstructor constructor, [
ElementDefinitionOptions options,
]);
external CustomElementConstructor? get(String name);
external String? getName(CustomElementConstructor constructor);
external JSPromise whenDefined(String name);
external void upgrade(Node root);
}
@JS()
@staticInterop
@anonymous
class ElementDefinitionOptions {
external factory ElementDefinitionOptions({String extends_});
}
extension ElementDefinitionOptionsExtension on ElementDefinitionOptions {
@JS('extends')
external set extends_(String value);
@JS('extends')
external String get extends_;
}
@JS('ElementInternals')
@staticInterop
class ElementInternals {}
extension ElementInternalsExtension on ElementInternals {
external void setFormValue(
JSAny? value, [
JSAny? state,
]);
external void setValidity([
ValidityStateFlags flags,
String message,
HTMLElement anchor,
]);
external bool checkValidity();
external bool reportValidity();
external CustomStateSet get states;
external ShadowRoot? get shadowRoot;
external HTMLFormElement? get form;
external bool get willValidate;
external ValidityState get validity;
external String get validationMessage;
external NodeList get labels;
external set role(String? value);
external String? get role;
external set ariaActiveDescendantElement(Element? value);
external Element? get ariaActiveDescendantElement;
external set ariaAtomic(String? value);
external String? get ariaAtomic;
external set ariaAutoComplete(String? value);
external String? get ariaAutoComplete;
external set ariaBusy(String? value);
external String? get ariaBusy;
external set ariaChecked(String? value);
external String? get ariaChecked;
external set ariaColCount(String? value);
external String? get ariaColCount;
external set ariaColIndex(String? value);
external String? get ariaColIndex;
external set ariaColIndexText(String? value);
external String? get ariaColIndexText;
external set ariaColSpan(String? value);
external String? get ariaColSpan;
external set ariaControlsElements(JSArray? value);
external JSArray? get ariaControlsElements;
external set ariaCurrent(String? value);
external String? get ariaCurrent;
external set ariaDescribedByElements(JSArray? value);
external JSArray? get ariaDescribedByElements;
external set ariaDescription(String? value);
external String? get ariaDescription;
external set ariaDetailsElements(JSArray? value);
external JSArray? get ariaDetailsElements;
external set ariaDisabled(String? value);
external String? get ariaDisabled;
external set ariaErrorMessageElements(JSArray? value);
external JSArray? get ariaErrorMessageElements;
external set ariaExpanded(String? value);
external String? get ariaExpanded;
external set ariaFlowToElements(JSArray? value);
external JSArray? get ariaFlowToElements;
external set ariaHasPopup(String? value);
external String? get ariaHasPopup;
external set ariaHidden(String? value);
external String? get ariaHidden;
external set ariaInvalid(String? value);
external String? get ariaInvalid;
external set ariaKeyShortcuts(String? value);
external String? get ariaKeyShortcuts;
external set ariaLabel(String? value);
external String? get ariaLabel;
external set ariaLabelledByElements(JSArray? value);
external JSArray? get ariaLabelledByElements;
external set ariaLevel(String? value);
external String? get ariaLevel;
external set ariaLive(String? value);
external String? get ariaLive;
external set ariaModal(String? value);
external String? get ariaModal;
external set ariaMultiLine(String? value);
external String? get ariaMultiLine;
external set ariaMultiSelectable(String? value);
external String? get ariaMultiSelectable;
external set ariaOrientation(String? value);
external String? get ariaOrientation;
external set ariaOwnsElements(JSArray? value);
external JSArray? get ariaOwnsElements;
external set ariaPlaceholder(String? value);
external String? get ariaPlaceholder;
external set ariaPosInSet(String? value);
external String? get ariaPosInSet;
external set ariaPressed(String? value);
external String? get ariaPressed;