diff --git a/lib/lib.decorators.d.ts b/lib/lib.decorators.d.ts
new file mode 100644
index 00000000000..d2b6b29a63c
--- /dev/null
+++ b/lib/lib.decorators.d.ts
@@ -0,0 +1,357 @@
+/*! *****************************************************************************
+Copyright (c) Microsoft Corporation. All rights reserved.
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License. You may obtain a copy of the
+License at http://www.apache.org/licenses/LICENSE-2.0
+
+THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
+WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
+MERCHANTABLITY OR NON-INFRINGEMENT.
+
+See the Apache Version 2.0 License for specific language governing permissions
+and limitations under the License.
+***************************************************************************** */
+
+
+
+///
+
+
+/**
+ * The decorator context types provided to class member decorators.
+ */
+type ClassMemberDecoratorContext =
+ | ClassMethodDecoratorContext
+ | ClassGetterDecoratorContext
+ | ClassSetterDecoratorContext
+ | ClassFieldDecoratorContext
+ | ClassAccessorDecoratorContext
+ ;
+
+/**
+ * The decorator context types provided to any decorator.
+ */
+type DecoratorContext =
+ | ClassDecoratorContext
+ | ClassMemberDecoratorContext
+ ;
+
+/**
+ * Context provided to a class decorator.
+ * @template Class The type of the decorated class associated with this context.
+ */
+interface ClassDecoratorContext<
+ Class extends abstract new (...args: any) => any = abstract new (...args: any) => any,
+> {
+ /** The kind of element that was decorated. */
+ readonly kind: "class";
+
+ /** The name of the decorated class. */
+ readonly name: string | undefined;
+
+ /**
+ * Adds a callback to be invoked after the class definition has been finalized.
+ *
+ * @example
+ * ```ts
+ * function customElement(name: string): ClassDecoratorFunction {
+ * return (target, context) => {
+ * context.addInitializer(function () {
+ * customElements.define(name, this);
+ * });
+ * }
+ * }
+ *
+ * @customElement("my-element")
+ * class MyElement {}
+ * ```
+ */
+ addInitializer(initializer: (this: Class) => void): void;
+}
+
+/**
+ * Context provided to a class method decorator.
+ * @template This The type on which the class element will be defined. For a static class element, this will be
+ * the type of the constructor. For a non-static class element, this will be the type of the instance.
+ * @template Value The type of the decorated class method.
+ */
+interface ClassMethodDecoratorContext<
+ This = unknown,
+ Value extends (this: This, ...args: any) => any = (this: This, ...args: any) => any,
+> {
+ /** The kind of class member that was decorated. */
+ readonly kind: "method";
+
+ /** The name of the decorated class member. */
+ readonly name: string | symbol;
+
+ /** A value indicating whether the class member is a static (`true`) or instance (`false`) member. */
+ readonly static: boolean;
+
+ /** A value indicating whether the class member has a private name. */
+ readonly private: boolean;
+
+ // NOTE: Disabled, pending the outcome of https://github.com/tc39/proposal-decorators/issues/494
+ // /** An object that can be used to access the current value of the class member at runtime. */
+ // readonly access: {
+ // /**
+ // * Gets the current value of the method from the provided receiver.
+ // *
+ // * @example
+ // * let fn = context.access.get.call(instance);
+ // */
+ // get(this: This): Value;
+ // };
+
+ /**
+ * Adds a callback to be invoked either before static initializers are run (when
+ * decorating a `static` member), or before instance initializers are run (when
+ * decorating a non-`static` member).
+ *
+ * @example
+ * ```ts
+ * const bound: ClassMethodDecoratorFunction = (value, context) {
+ * if (context.private) throw new TypeError("Not supported on private methods.");
+ * context.addInitializer(function () {
+ * this[context.name] = this[context.name].bind(this);
+ * });
+ * }
+ *
+ * class C {
+ * message = "Hello";
+ *
+ * @bound
+ * m() {
+ * console.log(this.message);
+ * }
+ * }
+ * ```
+ */
+ addInitializer(initializer: (this: This) => void): void;
+}
+
+/**
+ * Context provided to a class getter decorator.
+ * @template This The type on which the class element will be defined. For a static class element, this will be
+ * the type of the constructor. For a non-static class element, this will be the type of the instance.
+ * @template Value The property type of the decorated class getter.
+ */
+interface ClassGetterDecoratorContext<
+ This = unknown,
+ Value = unknown,
+> {
+ /** The kind of class member that was decorated. */
+ readonly kind: "getter";
+
+ /** The name of the decorated class member. */
+ readonly name: string | symbol;
+
+ /** A value indicating whether the class member is a static (`true`) or instance (`false`) member. */
+ readonly static: boolean;
+
+ /** A value indicating whether the class member has a private name. */
+ readonly private: boolean;
+
+ // NOTE: Disabled, pending the outcome of https://github.com/tc39/proposal-decorators/issues/494
+ // /** An object that can be used to access the current value of the class member at runtime. */
+ // readonly access: {
+ // /**
+ // * Invokes the getter on the provided receiver.
+ // *
+ // * @example
+ // * let value = context.access.get.call(instance);
+ // */
+ // get(this: This): Value;
+ // };
+
+ /**
+ * Adds a callback to be invoked either before static initializers are run (when
+ * decorating a `static` member), or before instance initializers are run (when
+ * decorating a non-`static` member).
+ */
+ addInitializer(initializer: (this: This) => void): void;
+}
+
+/**
+ * Context provided to a class setter decorator.
+ * @template This The type on which the class element will be defined. For a static class element, this will be
+ * the type of the constructor. For a non-static class element, this will be the type of the instance.
+ * @template Value The type of the decorated class setter.
+ */
+interface ClassSetterDecoratorContext<
+ This = unknown,
+ Value = unknown,
+> {
+ /** The kind of class member that was decorated. */
+ readonly kind: "setter";
+
+ /** The name of the decorated class member. */
+ readonly name: string | symbol;
+
+ /** A value indicating whether the class member is a static (`true`) or instance (`false`) member. */
+ readonly static: boolean;
+
+ /** A value indicating whether the class member has a private name. */
+ readonly private: boolean;
+
+ // NOTE: Disabled, pending the outcome of https://github.com/tc39/proposal-decorators/issues/494
+ /** An object that can be used to access the current value of the class member at runtime. */
+ // readonly access: {
+ // /**
+ // * Invokes the setter on the provided receiver.
+ // *
+ // * @example
+ // * context.access.set.call(instance, value);
+ // */
+ // set(this: This, value: Value): void;
+ // };
+
+ /**
+ * Adds a callback to be invoked either before static initializers are run (when
+ * decorating a `static` member), or before instance initializers are run (when
+ * decorating a non-`static` member).
+ */
+ addInitializer(initializer: (this: This) => void): void;
+}
+
+/**
+ * Context provided to a class `accessor` field decorator.
+ * @template This The type on which the class element will be defined. For a static class element, this will be
+ * the type of the constructor. For a non-static class element, this will be the type of the instance.
+ * @template Value The type of decorated class field.
+ */
+interface ClassAccessorDecoratorContext<
+ This = unknown,
+ Value = unknown,
+> {
+ /** The kind of class member that was decorated. */
+ readonly kind: "accessor";
+
+ /** The name of the decorated class member. */
+ readonly name: string | symbol;
+
+ /** A value indicating whether the class member is a static (`true`) or instance (`false`) member. */
+ readonly static: boolean;
+
+ /** A value indicating whether the class member has a private name. */
+ readonly private: boolean;
+
+ // NOTE: Disabled, pending the outcome of https://github.com/tc39/proposal-decorators/issues/494
+ // /** An object that can be used to access the current value of the class member at runtime. */
+ // readonly access: {
+ // /**
+ // * Invokes the getter on the provided receiver.
+ // *
+ // * @example
+ // * let value = context.access.get.call(instance);
+ // */
+ // get(this: This): Value;
+
+ // /**
+ // * Invokes the setter on the provided receiver.
+ // *
+ // * @example
+ // * context.access.set.call(instance, value);
+ // */
+ // set(this: This, value: Value): void;
+ // };
+
+ /**
+ * Adds a callback to be invoked either before static initializers are run (when
+ * decorating a `static` member), or before instance initializers are run (when
+ * decorating a non-`static` member).
+ */
+ addInitializer(initializer: (this: This) => void): void;
+}
+
+/**
+ * Describes the target provided to class `accessor` field decorators.
+ * @template This The `this` type to which the target applies.
+ * @template Value The property type for the class `accessor` field.
+ */
+interface ClassAccessorDecoratorTarget {
+ /**
+ * Invokes the getter that was defined prior to decorator application.
+ *
+ * @example
+ * let value = target.get.call(instance);
+ */
+ get(this: This): Value;
+
+ /**
+ * Invokes the setter that was defined prior to decorator application.
+ *
+ * @example
+ * target.set.call(instance, value);
+ */
+ set(this: This, value: Value): void;
+}
+
+/**
+ * Describes the allowed return value from a class `accessor` field decorator.
+ * @template This The `this` type to which the target applies.
+ * @template Value The property type for the class `accessor` field.
+ */
+interface ClassAccessorDecoratorResult {
+ /**
+ * An optional replacement getter function. If not provided, the existing getter function is used instead.
+ */
+ get?(this: This): Value;
+
+ /**
+ * An optional replacement setter function. If not provided, the existing setter function is used instead.
+ */
+ set?(this: This, value: Value): void;
+
+ /**
+ * An optional initializer mutator that is invoked when the underlying field initializer is evaluated.
+ * @param value The incoming initializer value.
+ * @returns The replacement initializer value.
+ */
+ init?(this: This, value: Value): Value;
+}
+
+/**
+ * Context provided to a class field decorator.
+ * @template This The type on which the class element will be defined. For a static class element, this will be
+ * the type of the constructor. For a non-static class element, this will be the type of the instance.
+ * @template Value The type of the decorated class field.
+ */
+interface ClassFieldDecoratorContext<
+ This = unknown,
+ Value = unknown,
+> {
+ /** The kind of class member that was decorated. */
+ readonly kind: "field";
+
+ /** The name of the decorated class member. */
+ readonly name: string | symbol;
+
+ /** A value indicating whether the class member is a static (`true`) or instance (`false`) member. */
+ readonly static: boolean;
+
+ /** A value indicating whether the class member has a private name. */
+ readonly private: boolean;
+
+ // NOTE: Disabled, pending the outcome of https://github.com/tc39/proposal-decorators/issues/494
+ // /** An object that can be used to access the current value of the class member at runtime. */
+ // readonly access: {
+ // /**
+ // * Gets the value of the field on the provided receiver.
+ // */
+ // get(this: This): Value;
+
+ // /**
+ // * Sets the value of the field on the provided receiver.
+ // */
+ // set(this: This, value: Value): void;
+ // };
+
+ /**
+ * Adds a callback to be invoked either before static initializers are run (when
+ * decorating a `static` member), or before instance initializers are run (when
+ * decorating a non-`static` member).
+ */
+ addInitializer(initializer: (this: This) => void): void;
+}
diff --git a/lib/lib.decorators.legacy.d.ts b/lib/lib.decorators.legacy.d.ts
new file mode 100644
index 00000000000..e8783bef48a
--- /dev/null
+++ b/lib/lib.decorators.legacy.d.ts
@@ -0,0 +1,24 @@
+/*! *****************************************************************************
+Copyright (c) Microsoft Corporation. All rights reserved.
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License. You may obtain a copy of the
+License at http://www.apache.org/licenses/LICENSE-2.0
+
+THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
+WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
+MERCHANTABLITY OR NON-INFRINGEMENT.
+
+See the Apache Version 2.0 License for specific language governing permissions
+and limitations under the License.
+***************************************************************************** */
+
+
+
+///
+
+
+declare type ClassDecorator = (target: TFunction) => TFunction | void;
+declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
+declare type MethodDecorator = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor | void;
+declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;
diff --git a/lib/lib.dom.d.ts b/lib/lib.dom.d.ts
index 753f7673d89..a1bc18a50cb 100644
--- a/lib/lib.dom.d.ts
+++ b/lib/lib.dom.d.ts
@@ -198,6 +198,11 @@ interface ChannelSplitterOptions extends AudioNodeOptions {
numberOfOutputs?: number;
}
+interface CheckVisibilityOptions {
+ checkOpacity?: boolean;
+ checkVisibilityCSS?: boolean;
+}
+
interface ClientQueryOptions {
includeUncontrolled?: boolean;
type?: ClientTypes;
@@ -507,8 +512,11 @@ interface FocusOptions {
}
interface FontFaceDescriptors {
- display?: string;
+ ascentOverride?: string;
+ descentOverride?: string;
+ display?: FontDisplay;
featureSettings?: string;
+ lineGapOverride?: string;
stretch?: string;
style?: string;
unicodeRange?: string;
@@ -624,6 +632,11 @@ interface ImageDataSettings {
colorSpace?: PredefinedColorSpace;
}
+interface ImageEncodeOptions {
+ quality?: number;
+ type?: string;
+}
+
interface ImportMeta {
url: string;
}
@@ -724,6 +737,19 @@ interface LockOptions {
steal?: boolean;
}
+interface MIDIConnectionEventInit extends EventInit {
+ port?: MIDIPort;
+}
+
+interface MIDIMessageEventInit extends EventInit {
+ data?: Uint8Array;
+}
+
+interface MIDIOptions {
+ software?: boolean;
+ sysex?: boolean;
+}
+
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
configuration?: MediaDecodingConfiguration;
}
@@ -838,7 +864,6 @@ interface MediaTrackCapabilities {
aspectRatio?: DoubleRange;
autoGainControl?: boolean[];
channelCount?: ULongRange;
- cursor?: string[];
deviceId?: string;
displaySurface?: string;
echoCancellation?: boolean[];
@@ -846,10 +871,7 @@ interface MediaTrackCapabilities {
frameRate?: DoubleRange;
groupId?: string;
height?: ULongRange;
- latency?: DoubleRange;
- logicalSurface?: boolean;
noiseSuppression?: boolean[];
- resizeMode?: string[];
sampleRate?: ULongRange;
sampleSize?: ULongRange;
width?: ULongRange;
@@ -860,16 +882,15 @@ interface MediaTrackConstraintSet {
autoGainControl?: ConstrainBoolean;
channelCount?: ConstrainULong;
deviceId?: ConstrainDOMString;
+ displaySurface?: ConstrainDOMString;
echoCancellation?: ConstrainBoolean;
facingMode?: ConstrainDOMString;
frameRate?: ConstrainDouble;
groupId?: ConstrainDOMString;
height?: ConstrainULong;
- latency?: ConstrainDouble;
noiseSuppression?: ConstrainBoolean;
sampleRate?: ConstrainULong;
sampleSize?: ConstrainULong;
- suppressLocalAudioPlayback?: ConstrainBoolean;
width?: ConstrainULong;
}
@@ -880,14 +901,15 @@ interface MediaTrackConstraints extends MediaTrackConstraintSet {
interface MediaTrackSettings {
aspectRatio?: number;
autoGainControl?: boolean;
+ channelCount?: number;
deviceId?: string;
+ displaySurface?: string;
echoCancellation?: boolean;
facingMode?: string;
frameRate?: number;
groupId?: string;
height?: number;
noiseSuppression?: boolean;
- restrictOwnAudio?: boolean;
sampleRate?: number;
sampleSize?: number;
width?: number;
@@ -896,7 +918,9 @@ interface MediaTrackSettings {
interface MediaTrackSupportedConstraints {
aspectRatio?: boolean;
autoGainControl?: boolean;
+ channelCount?: boolean;
deviceId?: boolean;
+ displaySurface?: boolean;
echoCancellation?: boolean;
facingMode?: boolean;
frameRate?: boolean;
@@ -905,7 +929,6 @@ interface MediaTrackSupportedConstraints {
noiseSuppression?: boolean;
sampleRate?: boolean;
sampleSize?: boolean;
- suppressLocalAudioPlayback?: boolean;
width?: boolean;
}
@@ -1967,22 +1990,22 @@ interface WorkletOptions {
type NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; };
declare var NodeFilter: {
- readonly FILTER_ACCEPT: number;
- readonly FILTER_REJECT: number;
- readonly FILTER_SKIP: number;
- readonly SHOW_ALL: number;
- readonly SHOW_ATTRIBUTE: number;
- readonly SHOW_CDATA_SECTION: number;
- readonly SHOW_COMMENT: number;
- readonly SHOW_DOCUMENT: number;
- readonly SHOW_DOCUMENT_FRAGMENT: number;
- readonly SHOW_DOCUMENT_TYPE: number;
- readonly SHOW_ELEMENT: number;
- readonly SHOW_ENTITY: number;
- readonly SHOW_ENTITY_REFERENCE: number;
- readonly SHOW_NOTATION: number;
- readonly SHOW_PROCESSING_INSTRUCTION: number;
- readonly SHOW_TEXT: number;
+ readonly FILTER_ACCEPT: 1;
+ readonly FILTER_REJECT: 2;
+ readonly FILTER_SKIP: 3;
+ readonly SHOW_ALL: 0xFFFFFFFF;
+ readonly SHOW_ELEMENT: 0x1;
+ readonly SHOW_ATTRIBUTE: 0x2;
+ readonly SHOW_TEXT: 0x4;
+ readonly SHOW_CDATA_SECTION: 0x8;
+ readonly SHOW_ENTITY_REFERENCE: 0x10;
+ readonly SHOW_ENTITY: 0x20;
+ readonly SHOW_PROCESSING_INSTRUCTION: 0x40;
+ readonly SHOW_COMMENT: 0x80;
+ readonly SHOW_DOCUMENT: 0x100;
+ readonly SHOW_DOCUMENT_TYPE: 0x200;
+ readonly SHOW_DOCUMENT_FRAGMENT: 0x400;
+ readonly SHOW_NOTATION: 0x800;
};
type XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; };
@@ -1992,7 +2015,7 @@ interface ANGLE_instanced_arrays {
drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
- readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: GLenum;
+ readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE;
}
interface ARIAMixin {
@@ -2002,7 +2025,6 @@ interface ARIAMixin {
ariaChecked: string | null;
ariaColCount: string | null;
ariaColIndex: string | null;
- ariaColIndexText: string | null;
ariaColSpan: string | null;
ariaCurrent: string | null;
ariaDisabled: string | null;
@@ -2026,7 +2048,6 @@ interface ARIAMixin {
ariaRoleDescription: string | null;
ariaRowCount: string | null;
ariaRowIndex: string | null;
- ariaRowIndexText: string | null;
ariaRowSpan: string | null;
ariaSelected: string | null;
ariaSetSize: string | null;
@@ -2207,7 +2228,7 @@ declare var AnimationPlaybackEvent: {
};
interface AnimationTimeline {
- readonly currentTime: CSSNumberish | null;
+ readonly currentTime: number | null;
}
declare var AnimationTimeline: {
@@ -2697,6 +2718,15 @@ declare var CSSFontFaceRule: {
new(): CSSFontFaceRule;
};
+interface CSSFontFeatureValuesRule extends CSSRule {
+ fontFamily: string;
+}
+
+declare var CSSFontFeatureValuesRule: {
+ prototype: CSSFontFeatureValuesRule;
+ new(): CSSFontFeatureValuesRule;
+};
+
interface CSSFontPaletteValuesRule extends CSSRule {
readonly basePalette: string;
readonly fontFamily: string;
@@ -2751,6 +2781,7 @@ interface CSSKeyframesRule extends CSSRule {
appendRule(rule: string): void;
deleteRule(select: string): void;
findRule(select: string): CSSKeyframeRule | null;
+ [index: number]: CSSKeyframeRule;
}
declare var CSSKeyframesRule: {
@@ -2815,31 +2846,31 @@ interface CSSRule {
readonly parentStyleSheet: CSSStyleSheet | null;
/** @deprecated */
readonly type: number;
- readonly CHARSET_RULE: number;
- readonly FONT_FACE_RULE: number;
- readonly IMPORT_RULE: number;
- readonly KEYFRAMES_RULE: number;
- readonly KEYFRAME_RULE: number;
- readonly MEDIA_RULE: number;
- readonly NAMESPACE_RULE: number;
- readonly PAGE_RULE: number;
- readonly STYLE_RULE: number;
- readonly SUPPORTS_RULE: number;
+ readonly STYLE_RULE: 1;
+ readonly CHARSET_RULE: 2;
+ readonly IMPORT_RULE: 3;
+ readonly MEDIA_RULE: 4;
+ readonly FONT_FACE_RULE: 5;
+ readonly PAGE_RULE: 6;
+ readonly NAMESPACE_RULE: 10;
+ readonly KEYFRAMES_RULE: 7;
+ readonly KEYFRAME_RULE: 8;
+ readonly SUPPORTS_RULE: 12;
}
declare var CSSRule: {
prototype: CSSRule;
new(): CSSRule;
- readonly CHARSET_RULE: number;
- readonly FONT_FACE_RULE: number;
- readonly IMPORT_RULE: number;
- readonly KEYFRAMES_RULE: number;
- readonly KEYFRAME_RULE: number;
- readonly MEDIA_RULE: number;
- readonly NAMESPACE_RULE: number;
- readonly PAGE_RULE: number;
- readonly STYLE_RULE: number;
- readonly SUPPORTS_RULE: number;
+ readonly STYLE_RULE: 1;
+ readonly CHARSET_RULE: 2;
+ readonly IMPORT_RULE: 3;
+ readonly MEDIA_RULE: 4;
+ readonly FONT_FACE_RULE: 5;
+ readonly PAGE_RULE: 6;
+ readonly NAMESPACE_RULE: 10;
+ readonly KEYFRAMES_RULE: 7;
+ readonly KEYFRAME_RULE: 8;
+ readonly SUPPORTS_RULE: 12;
};
/** A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. */
@@ -2978,10 +3009,16 @@ interface CSSStyleDeclaration {
columnWidth: string;
columns: string;
contain: string;
+ containIntrinsicBlockSize: string;
+ containIntrinsicHeight: string;
+ containIntrinsicInlineSize: string;
+ containIntrinsicSize: string;
+ containIntrinsicWidth: string;
container: string;
containerName: string;
containerType: string;
content: string;
+ contentVisibility: string;
counterIncrement: string;
counterReset: string;
counterSet: string;
@@ -3101,6 +3138,7 @@ interface CSSStyleDeclaration {
maskRepeat: string;
maskSize: string;
maskType: string;
+ mathStyle: string;
maxBlockSize: string;
maxHeight: string;
maxInlineSize: string;
@@ -3754,6 +3792,7 @@ declare var ClipboardEvent: {
/** Available only in secure contexts. */
interface ClipboardItem {
+ readonly presentationStyle: PresentationStyle;
readonly types: ReadonlyArray;
getType(type: string): Promise;
}
@@ -3864,7 +3903,7 @@ interface Crypto {
readonly subtle: SubtleCrypto;
getRandomValues(array: T): T;
/** Available only in secure contexts. */
- randomUUID(): string;
+ randomUUID(): `${string}-${string}-${string}-${string}-${string}`;
}
declare var Crypto: {
@@ -3918,61 +3957,61 @@ interface DOMException extends Error {
readonly code: number;
readonly message: string;
readonly name: string;
- readonly ABORT_ERR: number;
- readonly DATA_CLONE_ERR: number;
- readonly DOMSTRING_SIZE_ERR: number;
- readonly HIERARCHY_REQUEST_ERR: number;
- readonly INDEX_SIZE_ERR: number;
- readonly INUSE_ATTRIBUTE_ERR: number;
- readonly INVALID_ACCESS_ERR: number;
- readonly INVALID_CHARACTER_ERR: number;
- readonly INVALID_MODIFICATION_ERR: number;
- readonly INVALID_NODE_TYPE_ERR: number;
- readonly INVALID_STATE_ERR: number;
- readonly NAMESPACE_ERR: number;
- readonly NETWORK_ERR: number;
- readonly NOT_FOUND_ERR: number;
- readonly NOT_SUPPORTED_ERR: number;
- readonly NO_DATA_ALLOWED_ERR: number;
- readonly NO_MODIFICATION_ALLOWED_ERR: number;
- readonly QUOTA_EXCEEDED_ERR: number;
- readonly SECURITY_ERR: number;
- readonly SYNTAX_ERR: number;
- readonly TIMEOUT_ERR: number;
- readonly TYPE_MISMATCH_ERR: number;
- readonly URL_MISMATCH_ERR: number;
- readonly VALIDATION_ERR: number;
- readonly WRONG_DOCUMENT_ERR: number;
+ readonly INDEX_SIZE_ERR: 1;
+ readonly DOMSTRING_SIZE_ERR: 2;
+ readonly HIERARCHY_REQUEST_ERR: 3;
+ readonly WRONG_DOCUMENT_ERR: 4;
+ readonly INVALID_CHARACTER_ERR: 5;
+ readonly NO_DATA_ALLOWED_ERR: 6;
+ readonly NO_MODIFICATION_ALLOWED_ERR: 7;
+ readonly NOT_FOUND_ERR: 8;
+ readonly NOT_SUPPORTED_ERR: 9;
+ readonly INUSE_ATTRIBUTE_ERR: 10;
+ readonly INVALID_STATE_ERR: 11;
+ readonly SYNTAX_ERR: 12;
+ readonly INVALID_MODIFICATION_ERR: 13;
+ readonly NAMESPACE_ERR: 14;
+ readonly INVALID_ACCESS_ERR: 15;
+ readonly VALIDATION_ERR: 16;
+ readonly TYPE_MISMATCH_ERR: 17;
+ readonly SECURITY_ERR: 18;
+ readonly NETWORK_ERR: 19;
+ readonly ABORT_ERR: 20;
+ readonly URL_MISMATCH_ERR: 21;
+ readonly QUOTA_EXCEEDED_ERR: 22;
+ readonly TIMEOUT_ERR: 23;
+ readonly INVALID_NODE_TYPE_ERR: 24;
+ readonly DATA_CLONE_ERR: 25;
}
declare var DOMException: {
prototype: DOMException;
new(message?: string, name?: string): DOMException;
- readonly ABORT_ERR: number;
- readonly DATA_CLONE_ERR: number;
- readonly DOMSTRING_SIZE_ERR: number;
- readonly HIERARCHY_REQUEST_ERR: number;
- readonly INDEX_SIZE_ERR: number;
- readonly INUSE_ATTRIBUTE_ERR: number;
- readonly INVALID_ACCESS_ERR: number;
- readonly INVALID_CHARACTER_ERR: number;
- readonly INVALID_MODIFICATION_ERR: number;
- readonly INVALID_NODE_TYPE_ERR: number;
- readonly INVALID_STATE_ERR: number;
- readonly NAMESPACE_ERR: number;
- readonly NETWORK_ERR: number;
- readonly NOT_FOUND_ERR: number;
- readonly NOT_SUPPORTED_ERR: number;
- readonly NO_DATA_ALLOWED_ERR: number;
- readonly NO_MODIFICATION_ALLOWED_ERR: number;
- readonly QUOTA_EXCEEDED_ERR: number;
- readonly SECURITY_ERR: number;
- readonly SYNTAX_ERR: number;
- readonly TIMEOUT_ERR: number;
- readonly TYPE_MISMATCH_ERR: number;
- readonly URL_MISMATCH_ERR: number;
- readonly VALIDATION_ERR: number;
- readonly WRONG_DOCUMENT_ERR: number;
+ readonly INDEX_SIZE_ERR: 1;
+ readonly DOMSTRING_SIZE_ERR: 2;
+ readonly HIERARCHY_REQUEST_ERR: 3;
+ readonly WRONG_DOCUMENT_ERR: 4;
+ readonly INVALID_CHARACTER_ERR: 5;
+ readonly NO_DATA_ALLOWED_ERR: 6;
+ readonly NO_MODIFICATION_ALLOWED_ERR: 7;
+ readonly NOT_FOUND_ERR: 8;
+ readonly NOT_SUPPORTED_ERR: 9;
+ readonly INUSE_ATTRIBUTE_ERR: 10;
+ readonly INVALID_STATE_ERR: 11;
+ readonly SYNTAX_ERR: 12;
+ readonly INVALID_MODIFICATION_ERR: 13;
+ readonly NAMESPACE_ERR: 14;
+ readonly INVALID_ACCESS_ERR: 15;
+ readonly VALIDATION_ERR: 16;
+ readonly TYPE_MISMATCH_ERR: 17;
+ readonly SECURITY_ERR: 18;
+ readonly NETWORK_ERR: 19;
+ readonly ABORT_ERR: 20;
+ readonly URL_MISMATCH_ERR: 21;
+ readonly QUOTA_EXCEEDED_ERR: 22;
+ readonly TIMEOUT_ERR: 23;
+ readonly INVALID_NODE_TYPE_ERR: 24;
+ readonly DATA_CLONE_ERR: 25;
};
/** An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property. */
@@ -4430,7 +4469,7 @@ declare var DeviceOrientationEvent: {
new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;
};
-interface DocumentEventMap extends DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
+interface DocumentEventMap extends GlobalEventHandlersEventMap {
"DOMContentLoaded": Event;
"fullscreenchange": Event;
"fullscreenerror": Event;
@@ -4441,7 +4480,7 @@ interface DocumentEventMap extends DocumentAndElementEventHandlersEventMap, Glob
}
/** Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree. */
-interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {
+interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {
/** Sets or gets the URL for the current document. */
readonly URL: string;
/**
@@ -4637,6 +4676,8 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement;
createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K];
createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement;
+ createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: K): MathMLElementTagNameMap[K];
+ createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: string): MathMLElement;
createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element;
createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element;
createEvent(eventInterface: "AnimationEvent"): AnimationEvent;
@@ -4662,6 +4703,8 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
createEvent(eventInterface: "InputEvent"): InputEvent;
createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
+ createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent;
+ createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent;
createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
@@ -4752,6 +4795,9 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
*/
getElementsByTagName(qualifiedName: K): HTMLCollectionOf;
getElementsByTagName(qualifiedName: K): HTMLCollectionOf;
+ getElementsByTagName(qualifiedName: K): HTMLCollectionOf;
+ /** @deprecated */
+ getElementsByTagName(qualifiedName: K): HTMLCollectionOf;
getElementsByTagName(qualifiedName: string): HTMLCollectionOf;
/**
* If namespace and localName are "*" returns a HTMLCollection of all descendant elements.
@@ -4764,6 +4810,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
*/
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf;
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf;
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf;
/** Returns an object representing the current selection of the document that is loaded into the object displaying a webpage. */
getSelection(): Selection | null;
@@ -4839,22 +4886,6 @@ declare var Document: {
new(): Document;
};
-interface DocumentAndElementEventHandlersEventMap {
- "copy": ClipboardEvent;
- "cut": ClipboardEvent;
- "paste": ClipboardEvent;
-}
-
-interface DocumentAndElementEventHandlers {
- oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
- oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
- onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
- addEventListener(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
/** A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made. */
interface DocumentFragment extends Node, NonElementParentNode, ParentNode {
readonly ownerDocument: Document;
@@ -4940,18 +4971,18 @@ declare var DynamicsCompressorNode: {
};
interface EXT_blend_minmax {
- readonly MAX_EXT: GLenum;
- readonly MIN_EXT: GLenum;
+ readonly MIN_EXT: 0x8007;
+ readonly MAX_EXT: 0x8008;
}
interface EXT_color_buffer_float {
}
interface EXT_color_buffer_half_float {
- readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
- readonly RGB16F_EXT: GLenum;
- readonly RGBA16F_EXT: GLenum;
- readonly UNSIGNED_NORMALIZED_EXT: GLenum;
+ readonly RGBA16F_EXT: 0x881A;
+ readonly RGB16F_EXT: 0x881B;
+ readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
+ readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
}
interface EXT_float_blend {
@@ -4962,44 +4993,44 @@ interface EXT_frag_depth {
}
interface EXT_sRGB {
- readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: GLenum;
- readonly SRGB8_ALPHA8_EXT: GLenum;
- readonly SRGB_ALPHA_EXT: GLenum;
- readonly SRGB_EXT: GLenum;
+ readonly SRGB_EXT: 0x8C40;
+ readonly SRGB_ALPHA_EXT: 0x8C42;
+ readonly SRGB8_ALPHA8_EXT: 0x8C43;
+ readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210;
}
interface EXT_shader_texture_lod {
}
interface EXT_texture_compression_bptc {
- readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: GLenum;
- readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: GLenum;
- readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: GLenum;
- readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: GLenum;
+ readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C;
+ readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D;
+ readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E;
+ readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F;
}
interface EXT_texture_compression_rgtc {
- readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;
- readonly COMPRESSED_RED_RGTC1_EXT: GLenum;
- readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: GLenum;
- readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: GLenum;
+ readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB;
+ readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC;
+ readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD;
+ readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE;
}
/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */
interface EXT_texture_filter_anisotropic {
- readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
- readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
+ readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE;
+ readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF;
}
interface EXT_texture_norm16 {
- readonly R16_EXT: GLenum;
- readonly R16_SNORM_EXT: GLenum;
- readonly RG16_EXT: GLenum;
- readonly RG16_SNORM_EXT: GLenum;
- readonly RGB16_EXT: GLenum;
- readonly RGB16_SNORM_EXT: GLenum;
- readonly RGBA16_EXT: GLenum;
- readonly RGBA16_SNORM_EXT: GLenum;
+ readonly R16_EXT: 0x822A;
+ readonly RG16_EXT: 0x822C;
+ readonly RGB16_EXT: 0x8054;
+ readonly RGBA16_EXT: 0x805B;
+ readonly R16_SNORM_EXT: 0x8F98;
+ readonly RG16_SNORM_EXT: 0x8F99;
+ readonly RGB16_SNORM_EXT: 0x8F9A;
+ readonly RGBA16_SNORM_EXT: 0x8F9B;
}
interface ElementEventMap {
@@ -5043,9 +5074,11 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, Non
readonly tagName: string;
/** Creates a shadow root for element and returns it. */
attachShadow(init: ShadowRootInit): ShadowRoot;
+ checkVisibility(options?: CheckVisibilityOptions): boolean;
/** Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. */
closest(selector: K): HTMLElementTagNameMap[K] | null;
closest(selector: K): SVGElementTagNameMap[K] | null;
+ closest(selector: K): MathMLElementTagNameMap[K] | null;
closest(selectors: string): E | null;
/** Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. */
getAttribute(qualifiedName: string): string | null;
@@ -5061,9 +5094,13 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, Non
getElementsByClassName(classNames: string): HTMLCollectionOf;
getElementsByTagName(qualifiedName: K): HTMLCollectionOf;
getElementsByTagName(qualifiedName: K): HTMLCollectionOf;
+ getElementsByTagName(qualifiedName: K): HTMLCollectionOf;
+ /** @deprecated */
+ getElementsByTagName(qualifiedName: K): HTMLCollectionOf;
getElementsByTagName(qualifiedName: string): HTMLCollectionOf;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf;
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf;
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf;
/** Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. */
hasAttribute(qualifiedName: string): boolean;
@@ -5218,19 +5255,19 @@ interface Event {
stopImmediatePropagation(): void;
/** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */
stopPropagation(): void;
- readonly AT_TARGET: number;
- readonly BUBBLING_PHASE: number;
- readonly CAPTURING_PHASE: number;
- readonly NONE: number;
+ readonly NONE: 0;
+ readonly CAPTURING_PHASE: 1;
+ readonly AT_TARGET: 2;
+ readonly BUBBLING_PHASE: 3;
}
declare var Event: {
prototype: Event;
new(type: string, eventInitDict?: EventInit): Event;
- readonly AT_TARGET: number;
- readonly BUBBLING_PHASE: number;
- readonly CAPTURING_PHASE: number;
- readonly NONE: number;
+ readonly NONE: 0;
+ readonly CAPTURING_PHASE: 1;
+ readonly AT_TARGET: 2;
+ readonly BUBBLING_PHASE: 3;
};
interface EventCounts {
@@ -5268,9 +5305,9 @@ interface EventSource extends EventTarget {
readonly withCredentials: boolean;
/** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */
close(): void;
- readonly CLOSED: number;
- readonly CONNECTING: number;
- readonly OPEN: number;
+ readonly CONNECTING: 0;
+ readonly OPEN: 1;
+ readonly CLOSED: 2;
addEventListener(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -5282,9 +5319,9 @@ interface EventSource extends EventTarget {
declare var EventSource: {
prototype: EventSource;
new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;
- readonly CLOSED: number;
- readonly CONNECTING: number;
- readonly OPEN: number;
+ readonly CONNECTING: 0;
+ readonly OPEN: 1;
+ readonly CLOSED: 2;
};
/** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */
@@ -5372,16 +5409,16 @@ interface FileReader extends EventTarget {
onloadend: ((this: FileReader, ev: ProgressEvent) => any) | null;
onloadstart: ((this: FileReader, ev: ProgressEvent) => any) | null;
onprogress: ((this: FileReader, ev: ProgressEvent) => any) | null;
- readonly readyState: number;
+ readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;
readonly result: string | ArrayBuffer | null;
abort(): void;
readAsArrayBuffer(blob: Blob): void;
readAsBinaryString(blob: Blob): void;
readAsDataURL(blob: Blob): void;
readAsText(blob: Blob, encoding?: string): void;
- readonly DONE: number;
- readonly EMPTY: number;
- readonly LOADING: number;
+ readonly EMPTY: 0;
+ readonly LOADING: 1;
+ readonly DONE: 2;
addEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -5391,9 +5428,9 @@ interface FileReader extends EventTarget {
declare var FileReader: {
prototype: FileReader;
new(): FileReader;
- readonly DONE: number;
- readonly EMPTY: number;
- readonly LOADING: number;
+ readonly EMPTY: 0;
+ readonly LOADING: 1;
+ readonly DONE: 2;
};
interface FileSystem {
@@ -5499,7 +5536,7 @@ declare var FocusEvent: {
interface FontFace {
ascentOverride: string;
descentOverride: string;
- display: string;
+ display: FontDisplay;
family: string;
featureSettings: string;
lineGapOverride: string;
@@ -5509,7 +5546,6 @@ interface FontFace {
style: string;
unicodeRange: string;
variant: string;
- variationSettings: string;
weight: string;
load(): Promise;
}
@@ -5699,17 +5735,17 @@ declare var GeolocationPosition: {
interface GeolocationPositionError {
readonly code: number;
readonly message: string;
- readonly PERMISSION_DENIED: number;
- readonly POSITION_UNAVAILABLE: number;
- readonly TIMEOUT: number;
+ readonly PERMISSION_DENIED: 1;
+ readonly POSITION_UNAVAILABLE: 2;
+ readonly TIMEOUT: 3;
}
declare var GeolocationPositionError: {
prototype: GeolocationPositionError;
new(): GeolocationPositionError;
- readonly PERMISSION_DENIED: number;
- readonly POSITION_UNAVAILABLE: number;
- readonly TIMEOUT: number;
+ readonly PERMISSION_DENIED: 1;
+ readonly POSITION_UNAVAILABLE: 2;
+ readonly TIMEOUT: 3;
};
interface GlobalEventHandlersEventMap {
@@ -5731,7 +5767,9 @@ interface GlobalEventHandlersEventMap {
"compositionstart": CompositionEvent;
"compositionupdate": CompositionEvent;
"contextmenu": MouseEvent;
+ "copy": ClipboardEvent;
"cuechange": Event;
+ "cut": ClipboardEvent;
"dblclick": MouseEvent;
"drag": DragEvent;
"dragend": DragEvent;
@@ -5766,6 +5804,7 @@ interface GlobalEventHandlersEventMap {
"mouseout": MouseEvent;
"mouseover": MouseEvent;
"mouseup": MouseEvent;
+ "paste": ClipboardEvent;
"pause": Event;
"play": Event;
"playing": Event;
@@ -5851,7 +5890,9 @@ interface GlobalEventHandlers {
* @param ev The mouse event.
*/
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
+ oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+ oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
/**
* Fires when the user double-clicks the object.
* @param ev The mouse event.
@@ -5981,6 +6022,7 @@ interface GlobalEventHandlers {
* @param ev The mouse event.
*/
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
+ onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
/**
* Occurs when playback is paused.
* @param ev The event.
@@ -6507,11 +6549,11 @@ declare var HTMLDocument: {
new(): HTMLDocument;
};
-interface HTMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
+interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
}
/** Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it. */
-interface HTMLElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
+interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
accessKey: string;
readonly accessKeyLabel: string;
autocapitalize: string;
@@ -6669,6 +6711,8 @@ interface HTMLFormElement extends HTMLElement {
name: string;
/** Designates a form that is not validated when submitted. */
noValidate: boolean;
+ rel: string;
+ readonly relList: DOMTokenList;
/** Sets or retrieves the window or frame at which to target content. */
target: string;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
@@ -7111,7 +7155,7 @@ interface HTMLInputElement extends HTMLElement {
indeterminate: boolean;
readonly labels: NodeListOf | null;
/** Specifies the ID of a pre-defined datalist of options for an input element. */
- readonly list: HTMLElement | null;
+ readonly list: HTMLDataListElement | null;
/** Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. */
max: string;
/** Sets or retrieves the maximum number of characters that the user can enter in a text control. */
@@ -7435,15 +7479,15 @@ interface HTMLMediaElement extends HTMLElement {
play(): Promise;
/** Available only in secure contexts. */
setMediaKeys(mediaKeys: MediaKeys | null): Promise;
- readonly HAVE_CURRENT_DATA: number;
- readonly HAVE_ENOUGH_DATA: number;
- readonly HAVE_FUTURE_DATA: number;
- readonly HAVE_METADATA: number;
- readonly HAVE_NOTHING: number;
- readonly NETWORK_EMPTY: number;
- readonly NETWORK_IDLE: number;
- readonly NETWORK_LOADING: number;
- readonly NETWORK_NO_SOURCE: number;
+ readonly NETWORK_EMPTY: 0;
+ readonly NETWORK_IDLE: 1;
+ readonly NETWORK_LOADING: 2;
+ readonly NETWORK_NO_SOURCE: 3;
+ readonly HAVE_NOTHING: 0;
+ readonly HAVE_METADATA: 1;
+ readonly HAVE_CURRENT_DATA: 2;
+ readonly HAVE_FUTURE_DATA: 3;
+ readonly HAVE_ENOUGH_DATA: 4;
addEventListener(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -7453,15 +7497,15 @@ interface HTMLMediaElement extends HTMLElement {
declare var HTMLMediaElement: {
prototype: HTMLMediaElement;
new(): HTMLMediaElement;
- readonly HAVE_CURRENT_DATA: number;
- readonly HAVE_ENOUGH_DATA: number;
- readonly HAVE_FUTURE_DATA: number;
- readonly HAVE_METADATA: number;
- readonly HAVE_NOTHING: number;
- readonly NETWORK_EMPTY: number;
- readonly NETWORK_IDLE: number;
- readonly NETWORK_LOADING: number;
- readonly NETWORK_NO_SOURCE: number;
+ readonly NETWORK_EMPTY: 0;
+ readonly NETWORK_IDLE: 1;
+ readonly NETWORK_LOADING: 2;
+ readonly NETWORK_NO_SOURCE: 3;
+ readonly HAVE_NOTHING: 0;
+ readonly HAVE_METADATA: 1;
+ readonly HAVE_CURRENT_DATA: 2;
+ readonly HAVE_FUTURE_DATA: 3;
+ readonly HAVE_ENOUGH_DATA: 4;
};
interface HTMLMenuElement extends HTMLElement {
@@ -8488,10 +8532,10 @@ interface HTMLTrackElement extends HTMLElement {
srclang: string;
/** Returns the TextTrack object corresponding to the text track of the track element. */
readonly track: TextTrack;
- readonly ERROR: number;
- readonly LOADED: number;
- readonly LOADING: number;
- readonly NONE: number;
+ readonly NONE: 0;
+ readonly LOADING: 1;
+ readonly LOADED: 2;
+ readonly ERROR: 3;
addEventListener(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -8501,10 +8545,10 @@ interface HTMLTrackElement extends HTMLElement {
declare var HTMLTrackElement: {
prototype: HTMLTrackElement;
new(): HTMLTrackElement;
- readonly ERROR: number;
- readonly LOADED: number;
- readonly LOADING: number;
- readonly NONE: number;
+ readonly NONE: 0;
+ readonly LOADING: 1;
+ readonly LOADED: 2;
+ readonly ERROR: 3;
};
/** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list elements. */
@@ -9143,7 +9187,7 @@ declare var IntersectionObserverEntry: {
};
interface KHR_parallel_shader_compile {
- readonly COMPLETION_STATUS_KHR: GLenum;
+ readonly COMPLETION_STATUS_KHR: 0x91B1;
}
/** KeyboardEvent objects describe a user interaction with the keyboard; each event describes a single interaction between the user and a key (or combination of a key with modifier keys) on the keyboard. */
@@ -9164,19 +9208,19 @@ interface KeyboardEvent extends UIEvent {
getModifierState(keyArg: string): boolean;
/** @deprecated */
initKeyboardEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, keyArg?: string, locationArg?: number, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): void;
- readonly DOM_KEY_LOCATION_LEFT: number;
- readonly DOM_KEY_LOCATION_NUMPAD: number;
- readonly DOM_KEY_LOCATION_RIGHT: number;
- readonly DOM_KEY_LOCATION_STANDARD: number;
+ readonly DOM_KEY_LOCATION_STANDARD: 0x00;
+ readonly DOM_KEY_LOCATION_LEFT: 0x01;
+ readonly DOM_KEY_LOCATION_RIGHT: 0x02;
+ readonly DOM_KEY_LOCATION_NUMPAD: 0x03;
}
declare var KeyboardEvent: {
prototype: KeyboardEvent;
new(type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;
- readonly DOM_KEY_LOCATION_LEFT: number;
- readonly DOM_KEY_LOCATION_NUMPAD: number;
- readonly DOM_KEY_LOCATION_RIGHT: number;
- readonly DOM_KEY_LOCATION_STANDARD: number;
+ readonly DOM_KEY_LOCATION_STANDARD: 0x00;
+ readonly DOM_KEY_LOCATION_LEFT: 0x01;
+ readonly DOM_KEY_LOCATION_RIGHT: 0x02;
+ readonly DOM_KEY_LOCATION_NUMPAD: 0x03;
};
interface KeyframeEffect extends AnimationEffect {
@@ -9289,10 +9333,130 @@ declare var LockManager: {
new(): LockManager;
};
-interface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
+interface MIDIAccessEventMap {
+ "statechange": Event;
}
-interface MathMLElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
+/** Available only in secure contexts. */
+interface MIDIAccess extends EventTarget {
+ readonly inputs: MIDIInputMap;
+ onstatechange: ((this: MIDIAccess, ev: Event) => any) | null;
+ readonly outputs: MIDIOutputMap;
+ readonly sysexEnabled: boolean;
+ addEventListener(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+ removeEventListener(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var MIDIAccess: {
+ prototype: MIDIAccess;
+ new(): MIDIAccess;
+};
+
+/** Available only in secure contexts. */
+interface MIDIConnectionEvent extends Event {
+ readonly port: MIDIPort;
+}
+
+declare var MIDIConnectionEvent: {
+ prototype: MIDIConnectionEvent;
+ new(type: string, eventInitDict?: MIDIConnectionEventInit): MIDIConnectionEvent;
+};
+
+interface MIDIInputEventMap extends MIDIPortEventMap {
+ "midimessage": Event;
+}
+
+/** Available only in secure contexts. */
+interface MIDIInput extends MIDIPort {
+ onmidimessage: ((this: MIDIInput, ev: Event) => any) | null;
+ addEventListener(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+ removeEventListener(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var MIDIInput: {
+ prototype: MIDIInput;
+ new(): MIDIInput;
+};
+
+/** Available only in secure contexts. */
+interface MIDIInputMap {
+ forEach(callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void, thisArg?: any): void;
+}
+
+declare var MIDIInputMap: {
+ prototype: MIDIInputMap;
+ new(): MIDIInputMap;
+};
+
+/** Available only in secure contexts. */
+interface MIDIMessageEvent extends Event {
+ readonly data: Uint8Array;
+}
+
+declare var MIDIMessageEvent: {
+ prototype: MIDIMessageEvent;
+ new(type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent;
+};
+
+/** Available only in secure contexts. */
+interface MIDIOutput extends MIDIPort {
+ send(data: number[], timestamp?: DOMHighResTimeStamp): void;
+ addEventListener(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+ removeEventListener(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var MIDIOutput: {
+ prototype: MIDIOutput;
+ new(): MIDIOutput;
+};
+
+/** Available only in secure contexts. */
+interface MIDIOutputMap {
+ forEach(callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void, thisArg?: any): void;
+}
+
+declare var MIDIOutputMap: {
+ prototype: MIDIOutputMap;
+ new(): MIDIOutputMap;
+};
+
+interface MIDIPortEventMap {
+ "statechange": Event;
+}
+
+/** Available only in secure contexts. */
+interface MIDIPort extends EventTarget {
+ readonly connection: MIDIPortConnectionState;
+ readonly id: string;
+ readonly manufacturer: string | null;
+ readonly name: string | null;
+ onstatechange: ((this: MIDIPort, ev: Event) => any) | null;
+ readonly state: MIDIPortDeviceState;
+ readonly type: MIDIPortType;
+ readonly version: string | null;
+ close(): Promise;
+ open(): Promise;
+ addEventListener(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+ removeEventListener(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var MIDIPort: {
+ prototype: MIDIPort;
+ new(): MIDIPort;
+};
+
+interface MathMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
+}
+
+interface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
addEventListener(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -9380,19 +9544,19 @@ declare var MediaEncryptedEvent: {
interface MediaError {
readonly code: number;
readonly message: string;
- readonly MEDIA_ERR_ABORTED: number;
- readonly MEDIA_ERR_DECODE: number;
- readonly MEDIA_ERR_NETWORK: number;
- readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
+ readonly MEDIA_ERR_ABORTED: 1;
+ readonly MEDIA_ERR_NETWORK: 2;
+ readonly MEDIA_ERR_DECODE: 3;
+ readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4;
}
declare var MediaError: {
prototype: MediaError;
new(): MediaError;
- readonly MEDIA_ERR_ABORTED: number;
- readonly MEDIA_ERR_DECODE: number;
- readonly MEDIA_ERR_NETWORK: number;
- readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
+ readonly MEDIA_ERR_ABORTED: 1;
+ readonly MEDIA_ERR_NETWORK: 2;
+ readonly MEDIA_ERR_DECODE: 3;
+ readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4;
};
/**
@@ -9890,18 +10054,18 @@ interface MutationEvent extends Event {
readonly relatedNode: Node | null;
/** @deprecated */
initMutationEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, relatedNodeArg?: Node | null, prevValueArg?: string, newValueArg?: string, attrNameArg?: string, attrChangeArg?: number): void;
- readonly ADDITION: number;
- readonly MODIFICATION: number;
- readonly REMOVAL: number;
+ readonly MODIFICATION: 1;
+ readonly ADDITION: 2;
+ readonly REMOVAL: 3;
}
/** @deprecated */
declare var MutationEvent: {
prototype: MutationEvent;
new(): MutationEvent;
- readonly ADDITION: number;
- readonly MODIFICATION: number;
- readonly REMOVAL: number;
+ readonly MODIFICATION: 1;
+ readonly ADDITION: 2;
+ readonly REMOVAL: 3;
};
/** Provides the ability to watch for changes being made to the DOM tree. It is designed as a replacement for the older Mutation Events feature which was part of the DOM3 Events specification. */
@@ -10001,6 +10165,8 @@ interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentH
canShare(data?: ShareData): boolean;
getGamepads(): (Gamepad | null)[];
/** Available only in secure contexts. */
+ requestMIDIAccess(options?: MIDIOptions): Promise;
+ /** Available only in secure contexts. */
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise;
sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
/** Available only in secure contexts. */
@@ -10129,73 +10295,73 @@ interface Node extends EventTarget {
normalize(): void;
removeChild(child: T): T;
replaceChild(node: Node, child: T): T;
- readonly ATTRIBUTE_NODE: number;
- /** node is a CDATASection node. */
- readonly CDATA_SECTION_NODE: number;
- /** node is a Comment node. */
- readonly COMMENT_NODE: number;
- /** node is a DocumentFragment node. */
- readonly DOCUMENT_FRAGMENT_NODE: number;
- /** node is a document. */
- readonly DOCUMENT_NODE: number;
- /** Set when other is a descendant of node. */
- readonly DOCUMENT_POSITION_CONTAINED_BY: number;
- /** Set when other is an ancestor of node. */
- readonly DOCUMENT_POSITION_CONTAINS: number;
- /** Set when node and other are not in the same tree. */
- readonly DOCUMENT_POSITION_DISCONNECTED: number;
- /** Set when other is following node. */
- readonly DOCUMENT_POSITION_FOLLOWING: number;
- readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
- /** Set when other is preceding node. */
- readonly DOCUMENT_POSITION_PRECEDING: number;
- /** node is a doctype. */
- readonly DOCUMENT_TYPE_NODE: number;
/** node is an element. */
- readonly ELEMENT_NODE: number;
- readonly ENTITY_NODE: number;
- readonly ENTITY_REFERENCE_NODE: number;
- readonly NOTATION_NODE: number;
- /** node is a ProcessingInstruction node. */
- readonly PROCESSING_INSTRUCTION_NODE: number;
+ readonly ELEMENT_NODE: 1;
+ readonly ATTRIBUTE_NODE: 2;
/** node is a Text node. */
- readonly TEXT_NODE: number;
+ readonly TEXT_NODE: 3;
+ /** node is a CDATASection node. */
+ readonly CDATA_SECTION_NODE: 4;
+ readonly ENTITY_REFERENCE_NODE: 5;
+ readonly ENTITY_NODE: 6;
+ /** node is a ProcessingInstruction node. */
+ readonly PROCESSING_INSTRUCTION_NODE: 7;
+ /** node is a Comment node. */
+ readonly COMMENT_NODE: 8;
+ /** node is a document. */
+ readonly DOCUMENT_NODE: 9;
+ /** node is a doctype. */
+ readonly DOCUMENT_TYPE_NODE: 10;
+ /** node is a DocumentFragment node. */
+ readonly DOCUMENT_FRAGMENT_NODE: 11;
+ readonly NOTATION_NODE: 12;
+ /** Set when node and other are not in the same tree. */
+ readonly DOCUMENT_POSITION_DISCONNECTED: 0x01;
+ /** Set when other is preceding node. */
+ readonly DOCUMENT_POSITION_PRECEDING: 0x02;
+ /** Set when other is following node. */
+ readonly DOCUMENT_POSITION_FOLLOWING: 0x04;
+ /** Set when other is an ancestor of node. */
+ readonly DOCUMENT_POSITION_CONTAINS: 0x08;
+ /** Set when other is a descendant of node. */
+ readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10;
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20;
}
declare var Node: {
prototype: Node;
new(): Node;
- readonly ATTRIBUTE_NODE: number;
- /** node is a CDATASection node. */
- readonly CDATA_SECTION_NODE: number;
- /** node is a Comment node. */
- readonly COMMENT_NODE: number;
- /** node is a DocumentFragment node. */
- readonly DOCUMENT_FRAGMENT_NODE: number;
- /** node is a document. */
- readonly DOCUMENT_NODE: number;
- /** Set when other is a descendant of node. */
- readonly DOCUMENT_POSITION_CONTAINED_BY: number;
- /** Set when other is an ancestor of node. */
- readonly DOCUMENT_POSITION_CONTAINS: number;
- /** Set when node and other are not in the same tree. */
- readonly DOCUMENT_POSITION_DISCONNECTED: number;
- /** Set when other is following node. */
- readonly DOCUMENT_POSITION_FOLLOWING: number;
- readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
- /** Set when other is preceding node. */
- readonly DOCUMENT_POSITION_PRECEDING: number;
- /** node is a doctype. */
- readonly DOCUMENT_TYPE_NODE: number;
/** node is an element. */
- readonly ELEMENT_NODE: number;
- readonly ENTITY_NODE: number;
- readonly ENTITY_REFERENCE_NODE: number;
- readonly NOTATION_NODE: number;
- /** node is a ProcessingInstruction node. */
- readonly PROCESSING_INSTRUCTION_NODE: number;
+ readonly ELEMENT_NODE: 1;
+ readonly ATTRIBUTE_NODE: 2;
/** node is a Text node. */
- readonly TEXT_NODE: number;
+ readonly TEXT_NODE: 3;
+ /** node is a CDATASection node. */
+ readonly CDATA_SECTION_NODE: 4;
+ readonly ENTITY_REFERENCE_NODE: 5;
+ readonly ENTITY_NODE: 6;
+ /** node is a ProcessingInstruction node. */
+ readonly PROCESSING_INSTRUCTION_NODE: 7;
+ /** node is a Comment node. */
+ readonly COMMENT_NODE: 8;
+ /** node is a document. */
+ readonly DOCUMENT_NODE: 9;
+ /** node is a doctype. */
+ readonly DOCUMENT_TYPE_NODE: 10;
+ /** node is a DocumentFragment node. */
+ readonly DOCUMENT_FRAGMENT_NODE: 11;
+ readonly NOTATION_NODE: 12;
+ /** Set when node and other are not in the same tree. */
+ readonly DOCUMENT_POSITION_DISCONNECTED: 0x01;
+ /** Set when other is preceding node. */
+ readonly DOCUMENT_POSITION_PRECEDING: 0x02;
+ /** Set when other is following node. */
+ readonly DOCUMENT_POSITION_FOLLOWING: 0x04;
+ /** Set when other is an ancestor of node. */
+ readonly DOCUMENT_POSITION_CONTAINS: 0x08;
+ /** Set when other is a descendant of node. */
+ readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10;
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20;
};
/** An iterator over the members of a list of the nodes in a subtree of the DOM. The nodes will be returned in document order. */
@@ -10312,7 +10478,7 @@ interface OES_fbo_render_mipmap {
/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */
interface OES_standard_derivatives {
- readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: GLenum;
+ readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B;
}
/** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */
@@ -10325,7 +10491,7 @@ interface OES_texture_float_linear {
/** The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components. */
interface OES_texture_half_float {
- readonly HALF_FLOAT_OES: GLenum;
+ readonly HALF_FLOAT_OES: 0x8D61;
}
/** The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures. */
@@ -10337,15 +10503,15 @@ interface OES_vertex_array_object {
createVertexArrayOES(): WebGLVertexArrayObjectOES | null;
deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
- readonly VERTEX_ARRAY_BINDING_OES: GLenum;
+ readonly VERTEX_ARRAY_BINDING_OES: 0x85B5;
}
interface OVR_multiview2 {
framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;
- readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: GLenum;
- readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: GLenum;
- readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: GLenum;
- readonly MAX_VIEWS_OVR: GLenum;
+ readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630;
+ readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632;
+ readonly MAX_VIEWS_OVR: 0x9631;
+ readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633;
}
/** The Web Audio API OfflineAudioCompletionEvent interface represents events that occur when the processing of an OfflineAudioContext is terminated. The complete event implements this interface. */
@@ -10401,6 +10567,12 @@ interface OffscreenCanvas extends EventTarget {
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
*/
width: number;
+ /**
+ * Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.
+ *
+ * The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.
+ */
+ convertToBlob(options?: ImageEncodeOptions): Promise;
/**
* Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
*
@@ -10408,6 +10580,10 @@ interface OffscreenCanvas extends EventTarget {
*
* Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).
*/
+ getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null;
+ getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
+ getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
+ getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
/** Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image. */
transferToImageBitmap(): ImageBitmap;
@@ -10530,10 +10706,16 @@ interface ParentNode extends Node {
/** Returns the first element that is a descendant of node that matches selectors. */
querySelector(selectors: K): HTMLElementTagNameMap[K] | null;
querySelector(selectors: K): SVGElementTagNameMap[K] | null;
+ querySelector(selectors: K): MathMLElementTagNameMap[K] | null;
+ /** @deprecated */
+ querySelector(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
querySelector(selectors: string): E | null;
/** Returns all element descendants of node that match selectors. */
querySelectorAll(selectors: K): NodeListOf;
querySelectorAll(selectors: K): NodeListOf;
+ querySelectorAll(selectors: K): NodeListOf;
+ /** @deprecated */
+ querySelectorAll(selectors: K): NodeListOf;
querySelectorAll(selectors: string): NodeListOf;
/**
* Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.
@@ -10714,20 +10896,20 @@ interface PerformanceNavigation {
readonly type: number;
/** @deprecated */
toJSON(): any;
- readonly TYPE_BACK_FORWARD: number;
- readonly TYPE_NAVIGATE: number;
- readonly TYPE_RELOAD: number;
- readonly TYPE_RESERVED: number;
+ readonly TYPE_NAVIGATE: 0;
+ readonly TYPE_RELOAD: 1;
+ readonly TYPE_BACK_FORWARD: 2;
+ readonly TYPE_RESERVED: 255;
}
/** @deprecated */
declare var PerformanceNavigation: {
prototype: PerformanceNavigation;
new(): PerformanceNavigation;
- readonly TYPE_BACK_FORWARD: number;
- readonly TYPE_NAVIGATE: number;
- readonly TYPE_RELOAD: number;
- readonly TYPE_RESERVED: number;
+ readonly TYPE_NAVIGATE: 0;
+ readonly TYPE_RELOAD: 1;
+ readonly TYPE_BACK_FORWARD: 2;
+ readonly TYPE_RESERVED: 255;
};
/** Provides methods and properties to store and retrieve metrics regarding the browser's document navigation events. For example, this interface can be used to determine how much time it takes to load or unload a document. */
@@ -11084,6 +11266,7 @@ interface PublicKeyCredential extends Credential {
declare var PublicKeyCredential: {
prototype: PublicKeyCredential;
new(): PublicKeyCredential;
+ isConditionalMediationAvailable(): Promise;
isUserVerifyingPlatformAuthenticatorAvailable(): Promise;
};
@@ -11576,19 +11759,19 @@ interface Range extends AbstractRange {
setStartBefore(node: Node): void;
surroundContents(newParent: Node): void;
toString(): string;
- readonly END_TO_END: number;
- readonly END_TO_START: number;
- readonly START_TO_END: number;
- readonly START_TO_START: number;
+ readonly START_TO_START: 0;
+ readonly START_TO_END: 1;
+ readonly END_TO_END: 2;
+ readonly END_TO_START: 3;
}
declare var Range: {
prototype: Range;
new(): Range;
- readonly END_TO_END: number;
- readonly END_TO_START: number;
- readonly START_TO_END: number;
- readonly START_TO_START: number;
+ readonly START_TO_START: 0;
+ readonly START_TO_END: 1;
+ readonly END_TO_END: 2;
+ readonly END_TO_START: 3;
toString(): string;
};
@@ -11810,21 +11993,21 @@ interface SVGAngle {
valueInSpecifiedUnits: number;
convertToSpecifiedUnits(unitType: number): void;
newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
- readonly SVG_ANGLETYPE_DEG: number;
- readonly SVG_ANGLETYPE_GRAD: number;
- readonly SVG_ANGLETYPE_RAD: number;
- readonly SVG_ANGLETYPE_UNKNOWN: number;
- readonly SVG_ANGLETYPE_UNSPECIFIED: number;
+ readonly SVG_ANGLETYPE_UNKNOWN: 0;
+ readonly SVG_ANGLETYPE_UNSPECIFIED: 1;
+ readonly SVG_ANGLETYPE_DEG: 2;
+ readonly SVG_ANGLETYPE_RAD: 3;
+ readonly SVG_ANGLETYPE_GRAD: 4;
}
declare var SVGAngle: {
prototype: SVGAngle;
new(): SVGAngle;
- readonly SVG_ANGLETYPE_DEG: number;
- readonly SVG_ANGLETYPE_GRAD: number;
- readonly SVG_ANGLETYPE_RAD: number;
- readonly SVG_ANGLETYPE_UNKNOWN: number;
- readonly SVG_ANGLETYPE_UNSPECIFIED: number;
+ readonly SVG_ANGLETYPE_UNKNOWN: 0;
+ readonly SVG_ANGLETYPE_UNSPECIFIED: 1;
+ readonly SVG_ANGLETYPE_DEG: 2;
+ readonly SVG_ANGLETYPE_RAD: 3;
+ readonly SVG_ANGLETYPE_GRAD: 4;
};
interface SVGAnimateElement extends SVGAnimationElement {
@@ -12060,12 +12243,12 @@ interface SVGComponentTransferFunctionElement extends SVGElement {
readonly slope: SVGAnimatedNumber;
readonly tableValues: SVGAnimatedNumberList;
readonly type: SVGAnimatedEnumeration;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
+ readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0;
+ readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1;
+ readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2;
+ readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3;
+ readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4;
+ readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5;
addEventListener(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -12075,12 +12258,12 @@ interface SVGComponentTransferFunctionElement extends SVGElement {
declare var SVGComponentTransferFunctionElement: {
prototype: SVGComponentTransferFunctionElement;
new(): SVGComponentTransferFunctionElement;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
+ readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0;
+ readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1;
+ readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2;
+ readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3;
+ readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4;
+ readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5;
};
/** Corresponds to the element. */
@@ -12109,11 +12292,11 @@ declare var SVGDescElement: {
new(): SVGDescElement;
};
-interface SVGElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
+interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
}
/** All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface. */
-interface SVGElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
+interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
/** @deprecated */
readonly className: any;
readonly ownerSVGElement: SVGSVGElement | null;
@@ -12151,23 +12334,23 @@ interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttrib
readonly in1: SVGAnimatedString;
readonly in2: SVGAnimatedString;
readonly mode: SVGAnimatedEnumeration;
- readonly SVG_FEBLEND_MODE_COLOR: number;
- readonly SVG_FEBLEND_MODE_COLOR_BURN: number;
- readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;
- readonly SVG_FEBLEND_MODE_DARKEN: number;
- readonly SVG_FEBLEND_MODE_DIFFERENCE: number;
- readonly SVG_FEBLEND_MODE_EXCLUSION: number;
- readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;
- readonly SVG_FEBLEND_MODE_HUE: number;
- readonly SVG_FEBLEND_MODE_LIGHTEN: number;
- readonly SVG_FEBLEND_MODE_LUMINOSITY: number;
- readonly SVG_FEBLEND_MODE_MULTIPLY: number;
- readonly SVG_FEBLEND_MODE_NORMAL: number;
- readonly SVG_FEBLEND_MODE_OVERLAY: number;
- readonly SVG_FEBLEND_MODE_SATURATION: number;
- readonly SVG_FEBLEND_MODE_SCREEN: number;
- readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;
- readonly SVG_FEBLEND_MODE_UNKNOWN: number;
+ readonly SVG_FEBLEND_MODE_UNKNOWN: 0;
+ readonly SVG_FEBLEND_MODE_NORMAL: 1;
+ readonly SVG_FEBLEND_MODE_MULTIPLY: 2;
+ readonly SVG_FEBLEND_MODE_SCREEN: 3;
+ readonly SVG_FEBLEND_MODE_DARKEN: 4;
+ readonly SVG_FEBLEND_MODE_LIGHTEN: 5;
+ readonly SVG_FEBLEND_MODE_OVERLAY: 6;
+ readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7;
+ readonly SVG_FEBLEND_MODE_COLOR_BURN: 8;
+ readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9;
+ readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10;
+ readonly SVG_FEBLEND_MODE_DIFFERENCE: 11;
+ readonly SVG_FEBLEND_MODE_EXCLUSION: 12;
+ readonly SVG_FEBLEND_MODE_HUE: 13;
+ readonly SVG_FEBLEND_MODE_SATURATION: 14;
+ readonly SVG_FEBLEND_MODE_COLOR: 15;
+ readonly SVG_FEBLEND_MODE_LUMINOSITY: 16;
addEventListener(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -12177,23 +12360,23 @@ interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttrib
declare var SVGFEBlendElement: {
prototype: SVGFEBlendElement;
new(): SVGFEBlendElement;
- readonly SVG_FEBLEND_MODE_COLOR: number;
- readonly SVG_FEBLEND_MODE_COLOR_BURN: number;
- readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;
- readonly SVG_FEBLEND_MODE_DARKEN: number;
- readonly SVG_FEBLEND_MODE_DIFFERENCE: number;
- readonly SVG_FEBLEND_MODE_EXCLUSION: number;
- readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;
- readonly SVG_FEBLEND_MODE_HUE: number;
- readonly SVG_FEBLEND_MODE_LIGHTEN: number;
- readonly SVG_FEBLEND_MODE_LUMINOSITY: number;
- readonly SVG_FEBLEND_MODE_MULTIPLY: number;
- readonly SVG_FEBLEND_MODE_NORMAL: number;
- readonly SVG_FEBLEND_MODE_OVERLAY: number;
- readonly SVG_FEBLEND_MODE_SATURATION: number;
- readonly SVG_FEBLEND_MODE_SCREEN: number;
- readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;
- readonly SVG_FEBLEND_MODE_UNKNOWN: number;
+ readonly SVG_FEBLEND_MODE_UNKNOWN: 0;
+ readonly SVG_FEBLEND_MODE_NORMAL: 1;
+ readonly SVG_FEBLEND_MODE_MULTIPLY: 2;
+ readonly SVG_FEBLEND_MODE_SCREEN: 3;
+ readonly SVG_FEBLEND_MODE_DARKEN: 4;
+ readonly SVG_FEBLEND_MODE_LIGHTEN: 5;
+ readonly SVG_FEBLEND_MODE_OVERLAY: 6;
+ readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7;
+ readonly SVG_FEBLEND_MODE_COLOR_BURN: 8;
+ readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9;
+ readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10;
+ readonly SVG_FEBLEND_MODE_DIFFERENCE: 11;
+ readonly SVG_FEBLEND_MODE_EXCLUSION: 12;
+ readonly SVG_FEBLEND_MODE_HUE: 13;
+ readonly SVG_FEBLEND_MODE_SATURATION: 14;
+ readonly SVG_FEBLEND_MODE_COLOR: 15;
+ readonly SVG_FEBLEND_MODE_LUMINOSITY: 16;
};
/** Corresponds to the element. */
@@ -12201,11 +12384,11 @@ interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandard
readonly in1: SVGAnimatedString;
readonly type: SVGAnimatedEnumeration;
readonly values: SVGAnimatedNumberList;
- readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;
- readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;
- readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;
- readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;
- readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;
+ readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0;
+ readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1;
+ readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2;
+ readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3;
+ readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4;
addEventListener(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -12215,11 +12398,11 @@ interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandard
declare var SVGFEColorMatrixElement: {
prototype: SVGFEColorMatrixElement;
new(): SVGFEColorMatrixElement;
- readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;
- readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;
- readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;
- readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;
- readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;
+ readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0;
+ readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1;
+ readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2;
+ readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3;
+ readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4;
};
/** Corresponds to the element. */
@@ -12245,13 +12428,13 @@ interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAt
readonly k3: SVGAnimatedNumber;
readonly k4: SVGAnimatedNumber;
readonly operator: SVGAnimatedEnumeration;
- readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;
- readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;
- readonly SVG_FECOMPOSITE_OPERATOR_IN: number;
- readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;
- readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;
- readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;
- readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;
+ readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0;
+ readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1;
+ readonly SVG_FECOMPOSITE_OPERATOR_IN: 2;
+ readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3;
+ readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4;
+ readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5;
+ readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6;
addEventListener(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -12261,13 +12444,13 @@ interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAt
declare var SVGFECompositeElement: {
prototype: SVGFECompositeElement;
new(): SVGFECompositeElement;
- readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;
- readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;
- readonly SVG_FECOMPOSITE_OPERATOR_IN: number;
- readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;
- readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;
- readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;
- readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;
+ readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0;
+ readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1;
+ readonly SVG_FECOMPOSITE_OPERATOR_IN: 2;
+ readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3;
+ readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4;
+ readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5;
+ readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6;
};
/** Corresponds to the element. */
@@ -12284,10 +12467,10 @@ interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStand
readonly preserveAlpha: SVGAnimatedBoolean;
readonly targetX: SVGAnimatedInteger;
readonly targetY: SVGAnimatedInteger;
- readonly SVG_EDGEMODE_DUPLICATE: number;
- readonly SVG_EDGEMODE_NONE: number;
- readonly SVG_EDGEMODE_UNKNOWN: number;
- readonly SVG_EDGEMODE_WRAP: number;
+ readonly SVG_EDGEMODE_UNKNOWN: 0;
+ readonly SVG_EDGEMODE_DUPLICATE: 1;
+ readonly SVG_EDGEMODE_WRAP: 2;
+ readonly SVG_EDGEMODE_NONE: 3;
addEventListener(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -12297,10 +12480,10 @@ interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStand
declare var SVGFEConvolveMatrixElement: {
prototype: SVGFEConvolveMatrixElement;
new(): SVGFEConvolveMatrixElement;
- readonly SVG_EDGEMODE_DUPLICATE: number;
- readonly SVG_EDGEMODE_NONE: number;
- readonly SVG_EDGEMODE_UNKNOWN: number;
- readonly SVG_EDGEMODE_WRAP: number;
+ readonly SVG_EDGEMODE_UNKNOWN: 0;
+ readonly SVG_EDGEMODE_DUPLICATE: 1;
+ readonly SVG_EDGEMODE_WRAP: 2;
+ readonly SVG_EDGEMODE_NONE: 3;
};
/** Corresponds to the element. */
@@ -12328,11 +12511,11 @@ interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStan
readonly scale: SVGAnimatedNumber;
readonly xChannelSelector: SVGAnimatedEnumeration;
readonly yChannelSelector: SVGAnimatedEnumeration;
- readonly SVG_CHANNEL_A: number;
- readonly SVG_CHANNEL_B: number;
- readonly SVG_CHANNEL_G: number;
- readonly SVG_CHANNEL_R: number;
- readonly SVG_CHANNEL_UNKNOWN: number;
+ readonly SVG_CHANNEL_UNKNOWN: 0;
+ readonly SVG_CHANNEL_R: 1;
+ readonly SVG_CHANNEL_G: 2;
+ readonly SVG_CHANNEL_B: 3;
+ readonly SVG_CHANNEL_A: 4;
addEventListener(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -12342,11 +12525,11 @@ interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStan
declare var SVGFEDisplacementMapElement: {
prototype: SVGFEDisplacementMapElement;
new(): SVGFEDisplacementMapElement;
- readonly SVG_CHANNEL_A: number;
- readonly SVG_CHANNEL_B: number;
- readonly SVG_CHANNEL_G: number;
- readonly SVG_CHANNEL_R: number;
- readonly SVG_CHANNEL_UNKNOWN: number;
+ readonly SVG_CHANNEL_UNKNOWN: 0;
+ readonly SVG_CHANNEL_R: 1;
+ readonly SVG_CHANNEL_G: 2;
+ readonly SVG_CHANNEL_B: 3;
+ readonly SVG_CHANNEL_A: 4;
};
/** Corresponds to the element. */
@@ -12511,9 +12694,9 @@ interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardA
readonly operator: SVGAnimatedEnumeration;
readonly radiusX: SVGAnimatedNumber;
readonly radiusY: SVGAnimatedNumber;
- readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;
- readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;
- readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;
+ readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0;
+ readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1;
+ readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2;
addEventListener(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -12523,9 +12706,9 @@ interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardA
declare var SVGFEMorphologyElement: {
prototype: SVGFEMorphologyElement;
new(): SVGFEMorphologyElement;
- readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;
- readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;
- readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;
+ readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0;
+ readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1;
+ readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2;
};
/** Corresponds to the element. */
@@ -12622,12 +12805,12 @@ interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardA
readonly seed: SVGAnimatedNumber;
readonly stitchTiles: SVGAnimatedEnumeration;
readonly type: SVGAnimatedEnumeration;
- readonly SVG_STITCHTYPE_NOSTITCH: number;
- readonly SVG_STITCHTYPE_STITCH: number;
- readonly SVG_STITCHTYPE_UNKNOWN: number;
- readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;
- readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;
- readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;
+ readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0;
+ readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1;
+ readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2;
+ readonly SVG_STITCHTYPE_UNKNOWN: 0;
+ readonly SVG_STITCHTYPE_STITCH: 1;
+ readonly SVG_STITCHTYPE_NOSTITCH: 2;
addEventListener(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -12637,12 +12820,12 @@ interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardA
declare var SVGFETurbulenceElement: {
prototype: SVGFETurbulenceElement;
new(): SVGFETurbulenceElement;
- readonly SVG_STITCHTYPE_NOSTITCH: number;
- readonly SVG_STITCHTYPE_STITCH: number;
- readonly SVG_STITCHTYPE_UNKNOWN: number;
- readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;
- readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;
- readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;
+ readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0;
+ readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1;
+ readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2;
+ readonly SVG_STITCHTYPE_UNKNOWN: 0;
+ readonly SVG_STITCHTYPE_STITCH: 1;
+ readonly SVG_STITCHTYPE_NOSTITCH: 2;
};
/** Provides access to the properties of elements, as well as methods to manipulate them. */
@@ -12729,10 +12912,10 @@ interface SVGGradientElement extends SVGElement, SVGURIReference {
readonly gradientTransform: SVGAnimatedTransformList;
readonly gradientUnits: SVGAnimatedEnumeration;
readonly spreadMethod: SVGAnimatedEnumeration;
- readonly SVG_SPREADMETHOD_PAD: number;
- readonly SVG_SPREADMETHOD_REFLECT: number;
- readonly SVG_SPREADMETHOD_REPEAT: number;
- readonly SVG_SPREADMETHOD_UNKNOWN: number;
+ readonly SVG_SPREADMETHOD_UNKNOWN: 0;
+ readonly SVG_SPREADMETHOD_PAD: 1;
+ readonly SVG_SPREADMETHOD_REFLECT: 2;
+ readonly SVG_SPREADMETHOD_REPEAT: 3;
addEventListener(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -12742,10 +12925,10 @@ interface SVGGradientElement extends SVGElement, SVGURIReference {
declare var SVGGradientElement: {
prototype: SVGGradientElement;
new(): SVGGradientElement;
- readonly SVG_SPREADMETHOD_PAD: number;
- readonly SVG_SPREADMETHOD_REFLECT: number;
- readonly SVG_SPREADMETHOD_REPEAT: number;
- readonly SVG_SPREADMETHOD_UNKNOWN: number;
+ readonly SVG_SPREADMETHOD_UNKNOWN: 0;
+ readonly SVG_SPREADMETHOD_PAD: 1;
+ readonly SVG_SPREADMETHOD_REFLECT: 2;
+ readonly SVG_SPREADMETHOD_REPEAT: 3;
};
/** SVG elements whose primary purpose is to directly render graphics into a group. */
@@ -12791,33 +12974,33 @@ interface SVGLength {
valueInSpecifiedUnits: number;
convertToSpecifiedUnits(unitType: number): void;
newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
- readonly SVG_LENGTHTYPE_CM: number;
- readonly SVG_LENGTHTYPE_EMS: number;
- readonly SVG_LENGTHTYPE_EXS: number;
- readonly SVG_LENGTHTYPE_IN: number;
- readonly SVG_LENGTHTYPE_MM: number;
- readonly SVG_LENGTHTYPE_NUMBER: number;
- readonly SVG_LENGTHTYPE_PC: number;
- readonly SVG_LENGTHTYPE_PERCENTAGE: number;
- readonly SVG_LENGTHTYPE_PT: number;
- readonly SVG_LENGTHTYPE_PX: number;
- readonly SVG_LENGTHTYPE_UNKNOWN: number;
+ readonly SVG_LENGTHTYPE_UNKNOWN: 0;
+ readonly SVG_LENGTHTYPE_NUMBER: 1;
+ readonly SVG_LENGTHTYPE_PERCENTAGE: 2;
+ readonly SVG_LENGTHTYPE_EMS: 3;
+ readonly SVG_LENGTHTYPE_EXS: 4;
+ readonly SVG_LENGTHTYPE_PX: 5;
+ readonly SVG_LENGTHTYPE_CM: 6;
+ readonly SVG_LENGTHTYPE_MM: 7;
+ readonly SVG_LENGTHTYPE_IN: 8;
+ readonly SVG_LENGTHTYPE_PT: 9;
+ readonly SVG_LENGTHTYPE_PC: 10;
}
declare var SVGLength: {
prototype: SVGLength;
new(): SVGLength;
- readonly SVG_LENGTHTYPE_CM: number;
- readonly SVG_LENGTHTYPE_EMS: number;
- readonly SVG_LENGTHTYPE_EXS: number;
- readonly SVG_LENGTHTYPE_IN: number;
- readonly SVG_LENGTHTYPE_MM: number;
- readonly SVG_LENGTHTYPE_NUMBER: number;
- readonly SVG_LENGTHTYPE_PC: number;
- readonly SVG_LENGTHTYPE_PERCENTAGE: number;
- readonly SVG_LENGTHTYPE_PT: number;
- readonly SVG_LENGTHTYPE_PX: number;
- readonly SVG_LENGTHTYPE_UNKNOWN: number;
+ readonly SVG_LENGTHTYPE_UNKNOWN: 0;
+ readonly SVG_LENGTHTYPE_NUMBER: 1;
+ readonly SVG_LENGTHTYPE_PERCENTAGE: 2;
+ readonly SVG_LENGTHTYPE_EMS: 3;
+ readonly SVG_LENGTHTYPE_EXS: 4;
+ readonly SVG_LENGTHTYPE_PX: 5;
+ readonly SVG_LENGTHTYPE_CM: 6;
+ readonly SVG_LENGTHTYPE_MM: 7;
+ readonly SVG_LENGTHTYPE_IN: 8;
+ readonly SVG_LENGTHTYPE_PT: 9;
+ readonly SVG_LENGTHTYPE_PC: 10;
};
/** The SVGLengthList defines a list of SVGLength objects. */
@@ -12895,12 +13078,12 @@ interface SVGMarkerElement extends SVGElement, SVGFitToViewBox {
readonly refY: SVGAnimatedLength;
setOrientToAngle(angle: SVGAngle): void;
setOrientToAuto(): void;
- readonly SVG_MARKERUNITS_STROKEWIDTH: number;
- readonly SVG_MARKERUNITS_UNKNOWN: number;
- readonly SVG_MARKERUNITS_USERSPACEONUSE: number;
- readonly SVG_MARKER_ORIENT_ANGLE: number;
- readonly SVG_MARKER_ORIENT_AUTO: number;
- readonly SVG_MARKER_ORIENT_UNKNOWN: number;
+ readonly SVG_MARKERUNITS_UNKNOWN: 0;
+ readonly SVG_MARKERUNITS_USERSPACEONUSE: 1;
+ readonly SVG_MARKERUNITS_STROKEWIDTH: 2;
+ readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
+ readonly SVG_MARKER_ORIENT_AUTO: 1;
+ readonly SVG_MARKER_ORIENT_ANGLE: 2;
addEventListener(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -12910,12 +13093,12 @@ interface SVGMarkerElement extends SVGElement, SVGFitToViewBox {
declare var SVGMarkerElement: {
prototype: SVGMarkerElement;
new(): SVGMarkerElement;
- readonly SVG_MARKERUNITS_STROKEWIDTH: number;
- readonly SVG_MARKERUNITS_UNKNOWN: number;
- readonly SVG_MARKERUNITS_USERSPACEONUSE: number;
- readonly SVG_MARKER_ORIENT_ANGLE: number;
- readonly SVG_MARKER_ORIENT_AUTO: number;
- readonly SVG_MARKER_ORIENT_UNKNOWN: number;
+ readonly SVG_MARKERUNITS_UNKNOWN: 0;
+ readonly SVG_MARKERUNITS_USERSPACEONUSE: 1;
+ readonly SVG_MARKERUNITS_STROKEWIDTH: 2;
+ readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
+ readonly SVG_MARKER_ORIENT_AUTO: 1;
+ readonly SVG_MARKER_ORIENT_ANGLE: 2;
};
/** Provides access to the properties of elements, as well as methods to manipulate them. */
@@ -13060,39 +13243,39 @@ declare var SVGPolylineElement: {
interface SVGPreserveAspectRatio {
align: number;
meetOrSlice: number;
- readonly SVG_MEETORSLICE_MEET: number;
- readonly SVG_MEETORSLICE_SLICE: number;
- readonly SVG_MEETORSLICE_UNKNOWN: number;
- readonly SVG_PRESERVEASPECTRATIO_NONE: number;
- readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
- readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
- readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
- readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
- readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
- readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
- readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
- readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
- readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
- readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
+ readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0;
+ readonly SVG_PRESERVEASPECTRATIO_NONE: 1;
+ readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2;
+ readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3;
+ readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4;
+ readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5;
+ readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6;
+ readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7;
+ readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8;
+ readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9;
+ readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10;
+ readonly SVG_MEETORSLICE_UNKNOWN: 0;
+ readonly SVG_MEETORSLICE_MEET: 1;
+ readonly SVG_MEETORSLICE_SLICE: 2;
}
declare var SVGPreserveAspectRatio: {
prototype: SVGPreserveAspectRatio;
new(): SVGPreserveAspectRatio;
- readonly SVG_MEETORSLICE_MEET: number;
- readonly SVG_MEETORSLICE_SLICE: number;
- readonly SVG_MEETORSLICE_UNKNOWN: number;
- readonly SVG_PRESERVEASPECTRATIO_NONE: number;
- readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
- readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
- readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
- readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
- readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
- readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
- readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
- readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
- readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
- readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
+ readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0;
+ readonly SVG_PRESERVEASPECTRATIO_NONE: 1;
+ readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2;
+ readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3;
+ readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4;
+ readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5;
+ readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6;
+ readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7;
+ readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8;
+ readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9;
+ readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10;
+ readonly SVG_MEETORSLICE_UNKNOWN: 0;
+ readonly SVG_MEETORSLICE_MEET: 1;
+ readonly SVG_MEETORSLICE_SLICE: 2;
};
/** Corresponds to the element. */
@@ -13317,9 +13500,9 @@ interface SVGTextContentElement extends SVGGraphicsElement {
getSubStringLength(charnum: number, nchars: number): number;
/** @deprecated */
selectSubString(charnum: number, nchars: number): void;
- readonly LENGTHADJUST_SPACING: number;
- readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
- readonly LENGTHADJUST_UNKNOWN: number;
+ readonly LENGTHADJUST_UNKNOWN: 0;
+ readonly LENGTHADJUST_SPACING: 1;
+ readonly LENGTHADJUST_SPACINGANDGLYPHS: 2;
addEventListener(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -13329,9 +13512,9 @@ interface SVGTextContentElement extends SVGGraphicsElement {
declare var SVGTextContentElement: {
prototype: SVGTextContentElement;
new(): SVGTextContentElement;
- readonly LENGTHADJUST_SPACING: number;
- readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
- readonly LENGTHADJUST_UNKNOWN: number;
+ readonly LENGTHADJUST_UNKNOWN: 0;
+ readonly LENGTHADJUST_SPACING: 1;
+ readonly LENGTHADJUST_SPACINGANDGLYPHS: 2;
};
/** Corresponds to the elements. */
@@ -13352,12 +13535,12 @@ interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {
readonly method: SVGAnimatedEnumeration;
readonly spacing: SVGAnimatedEnumeration;
readonly startOffset: SVGAnimatedLength;
- readonly TEXTPATH_METHODTYPE_ALIGN: number;
- readonly TEXTPATH_METHODTYPE_STRETCH: number;
- readonly TEXTPATH_METHODTYPE_UNKNOWN: number;
- readonly TEXTPATH_SPACINGTYPE_AUTO: number;
- readonly TEXTPATH_SPACINGTYPE_EXACT: number;
- readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;
+ readonly TEXTPATH_METHODTYPE_UNKNOWN: 0;
+ readonly TEXTPATH_METHODTYPE_ALIGN: 1;
+ readonly TEXTPATH_METHODTYPE_STRETCH: 2;
+ readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0;
+ readonly TEXTPATH_SPACINGTYPE_AUTO: 1;
+ readonly TEXTPATH_SPACINGTYPE_EXACT: 2;
addEventListener(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -13367,12 +13550,12 @@ interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {
declare var SVGTextPathElement: {
prototype: SVGTextPathElement;
new(): SVGTextPathElement;
- readonly TEXTPATH_METHODTYPE_ALIGN: number;
- readonly TEXTPATH_METHODTYPE_STRETCH: number;
- readonly TEXTPATH_METHODTYPE_UNKNOWN: number;
- readonly TEXTPATH_SPACINGTYPE_AUTO: number;
- readonly TEXTPATH_SPACINGTYPE_EXACT: number;
- readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;
+ readonly TEXTPATH_METHODTYPE_UNKNOWN: 0;
+ readonly TEXTPATH_METHODTYPE_ALIGN: 1;
+ readonly TEXTPATH_METHODTYPE_STRETCH: 2;
+ readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0;
+ readonly TEXTPATH_SPACINGTYPE_AUTO: 1;
+ readonly TEXTPATH_SPACINGTYPE_EXACT: 2;
};
/** Implemented by elements that support attributes that position individual text glyphs. It is inherited by SVGTextElement, SVGTSpanElement, SVGTRefElement and SVGAltGlyphElement. */
@@ -13417,25 +13600,25 @@ interface SVGTransform {
setSkewX(angle: number): void;
setSkewY(angle: number): void;
setTranslate(tx: number, ty: number): void;
- readonly SVG_TRANSFORM_MATRIX: number;
- readonly SVG_TRANSFORM_ROTATE: number;
- readonly SVG_TRANSFORM_SCALE: number;
- readonly SVG_TRANSFORM_SKEWX: number;
- readonly SVG_TRANSFORM_SKEWY: number;
- readonly SVG_TRANSFORM_TRANSLATE: number;
- readonly SVG_TRANSFORM_UNKNOWN: number;
+ readonly SVG_TRANSFORM_UNKNOWN: 0;
+ readonly SVG_TRANSFORM_MATRIX: 1;
+ readonly SVG_TRANSFORM_TRANSLATE: 2;
+ readonly SVG_TRANSFORM_SCALE: 3;
+ readonly SVG_TRANSFORM_ROTATE: 4;
+ readonly SVG_TRANSFORM_SKEWX: 5;
+ readonly SVG_TRANSFORM_SKEWY: 6;
}
declare var SVGTransform: {
prototype: SVGTransform;
new(): SVGTransform;
- readonly SVG_TRANSFORM_MATRIX: number;
- readonly SVG_TRANSFORM_ROTATE: number;
- readonly SVG_TRANSFORM_SCALE: number;
- readonly SVG_TRANSFORM_SKEWX: number;
- readonly SVG_TRANSFORM_SKEWY: number;
- readonly SVG_TRANSFORM_TRANSLATE: number;
- readonly SVG_TRANSFORM_UNKNOWN: number;
+ readonly SVG_TRANSFORM_UNKNOWN: 0;
+ readonly SVG_TRANSFORM_MATRIX: 1;
+ readonly SVG_TRANSFORM_TRANSLATE: 2;
+ readonly SVG_TRANSFORM_SCALE: 3;
+ readonly SVG_TRANSFORM_ROTATE: 4;
+ readonly SVG_TRANSFORM_SKEWX: 5;
+ readonly SVG_TRANSFORM_SKEWY: 6;
};
/** The SVGTransformList defines a list of SVGTransform objects. */
@@ -13465,17 +13648,17 @@ interface SVGURIReference {
/** A commonly used set of constants used for reflecting gradientUnits, patternContentUnits and other similar attributes. */
interface SVGUnitTypes {
- readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
- readonly SVG_UNIT_TYPE_UNKNOWN: number;
- readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;
+ readonly SVG_UNIT_TYPE_UNKNOWN: 0;
+ readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1;
+ readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2;
}
declare var SVGUnitTypes: {
prototype: SVGUnitTypes;
new(): SVGUnitTypes;
- readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
- readonly SVG_UNIT_TYPE_UNKNOWN: number;
- readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;
+ readonly SVG_UNIT_TYPE_UNKNOWN: 0;
+ readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1;
+ readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2;
};
/** Corresponds to the