@types/web 0.0.353 → 0.0.355
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.d.ts +41 -33
- package/package.json +1 -1
- package/ts5.5/index.d.ts +40 -32
- package/ts5.5/iterable.d.ts +1 -1
- package/ts5.6/index.d.ts +40 -32
- package/ts5.6/iterable.d.ts +1 -1
- package/ts5.9/index.d.ts +40 -32
- package/ts5.9/iterable.d.ts +1 -1
package/README.md
CHANGED
|
@@ -49,4 +49,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
|
|
|
49
49
|
|
|
50
50
|
## Deploy Metadata
|
|
51
51
|
|
|
52
|
-
You can read what changed in version 0.0.
|
|
52
|
+
You can read what changed in version 0.0.355 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.355.
|
package/index.d.ts
CHANGED
|
@@ -1403,7 +1403,7 @@ interface Keyframe {
|
|
|
1403
1403
|
composite?: CompositeOperationOrAuto;
|
|
1404
1404
|
easing?: string;
|
|
1405
1405
|
offset?: number | null;
|
|
1406
|
-
[property: string]: string | number | null | undefined;
|
|
1406
|
+
[property: string]: string | number | CSSStyleValue | null | undefined;
|
|
1407
1407
|
}
|
|
1408
1408
|
|
|
1409
1409
|
interface KeyframeAnimationOptions extends KeyframeEffectOptions {
|
|
@@ -1838,6 +1838,10 @@ interface PannerOptions extends AudioNodeOptions {
|
|
|
1838
1838
|
rolloffFactor?: number;
|
|
1839
1839
|
}
|
|
1840
1840
|
|
|
1841
|
+
interface ParseHTMLUnsafeOptions {
|
|
1842
|
+
sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1841
1845
|
interface PayerErrors {
|
|
1842
1846
|
email?: string;
|
|
1843
1847
|
name?: string;
|
|
@@ -2028,7 +2032,7 @@ interface PropertyIndexedKeyframes {
|
|
|
2028
2032
|
composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];
|
|
2029
2033
|
easing?: string | string[];
|
|
2030
2034
|
offset?: number | (number | null)[];
|
|
2031
|
-
[property: string]: string | string[] | number | null | (number | null)[] | undefined;
|
|
2035
|
+
[property: string]: string | string[] | number | CSSStyleValue | CSSStyleValue[] | null | (number | null)[] | undefined;
|
|
2032
2036
|
}
|
|
2033
2037
|
|
|
2034
2038
|
interface PublicKeyCredentialCreationOptions {
|
|
@@ -2765,6 +2769,10 @@ interface SetHTMLOptions {
|
|
|
2765
2769
|
sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
|
|
2766
2770
|
}
|
|
2767
2771
|
|
|
2772
|
+
interface SetHTMLUnsafeOptions {
|
|
2773
|
+
sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
|
|
2774
|
+
}
|
|
2775
|
+
|
|
2768
2776
|
interface ShadowRootInit {
|
|
2769
2777
|
clonable?: boolean;
|
|
2770
2778
|
customElementRegistry?: CustomElementRegistry | null;
|
|
@@ -13659,7 +13667,7 @@ declare var Document: {
|
|
|
13659
13667
|
*
|
|
13660
13668
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static)
|
|
13661
13669
|
*/
|
|
13662
|
-
parseHTMLUnsafe(html: string): Document;
|
|
13670
|
+
parseHTMLUnsafe(html: string, options?: ParseHTMLUnsafeOptions): Document;
|
|
13663
13671
|
};
|
|
13664
13672
|
|
|
13665
13673
|
/**
|
|
@@ -14429,7 +14437,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
|
|
|
14429
14437
|
*
|
|
14430
14438
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe)
|
|
14431
14439
|
*/
|
|
14432
|
-
setHTMLUnsafe(html: string): void;
|
|
14440
|
+
setHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void;
|
|
14433
14441
|
/**
|
|
14434
14442
|
* The **`setPointerCapture()`** method of the Element interface is used to designate a specific element as the capture target of future pointer events. Subsequent events for the pointer will be targeted at the capture element until capture is released (via Element.releasePointerCapture() or the pointerup event is fired).
|
|
14435
14443
|
*
|
|
@@ -31810,13 +31818,13 @@ interface SVGAnimatedRect {
|
|
|
31810
31818
|
*
|
|
31811
31819
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect/animVal)
|
|
31812
31820
|
*/
|
|
31813
|
-
readonly animVal:
|
|
31821
|
+
readonly animVal: SVGRect;
|
|
31814
31822
|
/**
|
|
31815
31823
|
* The **`baseVal`** read-only property of the SVGAnimatedRect interface represents the current non-animated value of the viewBox attribute of an SVG element.
|
|
31816
31824
|
*
|
|
31817
31825
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect/baseVal)
|
|
31818
31826
|
*/
|
|
31819
|
-
readonly baseVal:
|
|
31827
|
+
readonly baseVal: SVGRect;
|
|
31820
31828
|
}
|
|
31821
31829
|
|
|
31822
31830
|
declare var SVGAnimatedRect: {
|
|
@@ -33193,7 +33201,7 @@ declare var SVGFETurbulenceElement: {
|
|
|
33193
33201
|
*
|
|
33194
33202
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement)
|
|
33195
33203
|
*/
|
|
33196
|
-
interface SVGFilterElement extends SVGElement
|
|
33204
|
+
interface SVGFilterElement extends SVGElement {
|
|
33197
33205
|
/**
|
|
33198
33206
|
* The **`filterUnits`** read-only property of the SVGFilterElement interface reflects the filterUnits attribute of the given <filter> element. It takes one of the SVG_UNIT_TYPE_* constants defined in SVGUnitTypes.
|
|
33199
33207
|
*
|
|
@@ -33336,7 +33344,7 @@ interface SVGGeometryElement extends SVGGraphicsElement {
|
|
|
33336
33344
|
*
|
|
33337
33345
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/getPointAtLength)
|
|
33338
33346
|
*/
|
|
33339
|
-
getPointAtLength(distance: number):
|
|
33347
|
+
getPointAtLength(distance: number): SVGPoint;
|
|
33340
33348
|
/**
|
|
33341
33349
|
* The **`SVGGeometryElement.getTotalLength()`** method returns the user agent's computed value for the total length of the path in user units.
|
|
33342
33350
|
*
|
|
@@ -33426,19 +33434,19 @@ interface SVGGraphicsElement extends SVGElement, SVGTests {
|
|
|
33426
33434
|
*
|
|
33427
33435
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getBBox)
|
|
33428
33436
|
*/
|
|
33429
|
-
getBBox(options?: SVGBoundingBoxOptions):
|
|
33437
|
+
getBBox(options?: SVGBoundingBoxOptions): SVGRect;
|
|
33430
33438
|
/**
|
|
33431
33439
|
* The **`getCTM()`** method of the SVGGraphicsElement interface represents the matrix that transforms the current element's coordinate system to its SVG viewport's coordinate system.
|
|
33432
33440
|
*
|
|
33433
33441
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getCTM)
|
|
33434
33442
|
*/
|
|
33435
|
-
getCTM():
|
|
33443
|
+
getCTM(): SVGMatrix | null;
|
|
33436
33444
|
/**
|
|
33437
33445
|
* The **`getScreenCTM()`** method of the SVGGraphicsElement interface represents the matrix that transforms the current element's coordinate system to the coordinate system of the SVG viewport for the SVG document fragment.
|
|
33438
33446
|
*
|
|
33439
33447
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getScreenCTM)
|
|
33440
33448
|
*/
|
|
33441
|
-
getScreenCTM():
|
|
33449
|
+
getScreenCTM(): SVGMatrix | null;
|
|
33442
33450
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
33443
33451
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
33444
33452
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -34100,7 +34108,7 @@ interface SVGPointList {
|
|
|
34100
34108
|
*
|
|
34101
34109
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/appendItem)
|
|
34102
34110
|
*/
|
|
34103
|
-
appendItem(newItem:
|
|
34111
|
+
appendItem(newItem: SVGPoint): SVGPoint;
|
|
34104
34112
|
/**
|
|
34105
34113
|
* The **`clear()`** method of the SVGPointList interface removes all items from the list.
|
|
34106
34114
|
*
|
|
@@ -34112,32 +34120,32 @@ interface SVGPointList {
|
|
|
34112
34120
|
*
|
|
34113
34121
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/getItem)
|
|
34114
34122
|
*/
|
|
34115
|
-
getItem(index: number):
|
|
34123
|
+
getItem(index: number): SVGPoint;
|
|
34116
34124
|
/**
|
|
34117
34125
|
* The **`initialize()`** method of the SVGPointList interface clears the list then adds a single new DOMPoint object to the list.
|
|
34118
34126
|
*
|
|
34119
34127
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/initialize)
|
|
34120
34128
|
*/
|
|
34121
|
-
initialize(newItem:
|
|
34129
|
+
initialize(newItem: SVGPoint): SVGPoint;
|
|
34122
34130
|
/**
|
|
34123
34131
|
* The **`insertItemBefore()`** method of the SVGPointList interface inserts a DOMPoint before another item in the list.
|
|
34124
34132
|
*
|
|
34125
34133
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/insertItemBefore)
|
|
34126
34134
|
*/
|
|
34127
|
-
insertItemBefore(newItem:
|
|
34135
|
+
insertItemBefore(newItem: SVGPoint, index: number): SVGPoint;
|
|
34128
34136
|
/**
|
|
34129
34137
|
* The **`removeItem()`** method of the SVGPointList interface removes a DOMPoint from the list.
|
|
34130
34138
|
*
|
|
34131
34139
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/removeItem)
|
|
34132
34140
|
*/
|
|
34133
|
-
removeItem(index: number):
|
|
34141
|
+
removeItem(index: number): SVGPoint;
|
|
34134
34142
|
/**
|
|
34135
34143
|
* The **`replaceItem()`** method of the SVGPointList interface replaces a DOMPoint in the list.
|
|
34136
34144
|
*
|
|
34137
34145
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/replaceItem)
|
|
34138
34146
|
*/
|
|
34139
|
-
replaceItem(newItem:
|
|
34140
|
-
[index: number]:
|
|
34147
|
+
replaceItem(newItem: SVGPoint, index: number): SVGPoint;
|
|
34148
|
+
[index: number]: SVGPoint;
|
|
34141
34149
|
}
|
|
34142
34150
|
|
|
34143
34151
|
declare var SVGPointList: {
|
|
@@ -34358,7 +34366,7 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
|
|
|
34358
34366
|
*
|
|
34359
34367
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/currentTranslate)
|
|
34360
34368
|
*/
|
|
34361
|
-
readonly currentTranslate:
|
|
34369
|
+
readonly currentTranslate: SVGPoint;
|
|
34362
34370
|
/**
|
|
34363
34371
|
* The **`height`** read-only property of the SVGSVGElement interface describes the vertical size of element as an SVGAnimatedLength. It reflects the <svg> element's height attribute, which may not be the SVG's rendered height.
|
|
34364
34372
|
*
|
|
@@ -34394,13 +34402,13 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
|
|
|
34394
34402
|
*
|
|
34395
34403
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/checkEnclosure)
|
|
34396
34404
|
*/
|
|
34397
|
-
checkEnclosure(element: SVGElement, rect:
|
|
34405
|
+
checkEnclosure(element: SVGElement, rect: SVGRect): boolean;
|
|
34398
34406
|
/**
|
|
34399
34407
|
* The **`checkIntersection()`** method of the SVGSVGElement interface checks if the rendered content of the given element intersects the supplied rectangle.
|
|
34400
34408
|
*
|
|
34401
34409
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/checkIntersection)
|
|
34402
34410
|
*/
|
|
34403
|
-
checkIntersection(element: SVGElement, rect:
|
|
34411
|
+
checkIntersection(element: SVGElement, rect: SVGRect): boolean;
|
|
34404
34412
|
/**
|
|
34405
34413
|
* The **`createSVGAngle()`** method of the SVGSVGElement interface creates an SVGAngle object outside of any document trees.
|
|
34406
34414
|
*
|
|
@@ -34418,7 +34426,7 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
|
|
|
34418
34426
|
*
|
|
34419
34427
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGMatrix)
|
|
34420
34428
|
*/
|
|
34421
|
-
createSVGMatrix():
|
|
34429
|
+
createSVGMatrix(): SVGMatrix;
|
|
34422
34430
|
/**
|
|
34423
34431
|
* The **`createSVGNumber()`** method of the SVGSVGElement interface creates an SVGNumber object outside of any document trees.
|
|
34424
34432
|
*
|
|
@@ -34430,13 +34438,13 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
|
|
|
34430
34438
|
*
|
|
34431
34439
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGPoint)
|
|
34432
34440
|
*/
|
|
34433
|
-
createSVGPoint():
|
|
34441
|
+
createSVGPoint(): SVGPoint;
|
|
34434
34442
|
/**
|
|
34435
34443
|
* The **`createSVGRect()`** method of the SVGSVGElement interface creates a DOMRect object outside of any document trees.
|
|
34436
34444
|
*
|
|
34437
34445
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGRect)
|
|
34438
34446
|
*/
|
|
34439
|
-
createSVGRect():
|
|
34447
|
+
createSVGRect(): SVGRect;
|
|
34440
34448
|
/**
|
|
34441
34449
|
* The **`createSVGTransform()`** method of the SVGSVGElement interface creates an SVGTransform object outside of any document trees.
|
|
34442
34450
|
*
|
|
@@ -34469,8 +34477,8 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
|
|
|
34469
34477
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/getElementById)
|
|
34470
34478
|
*/
|
|
34471
34479
|
getElementById(elementId: string): Element | null;
|
|
34472
|
-
getEnclosureList(rect:
|
|
34473
|
-
getIntersectionList(rect:
|
|
34480
|
+
getEnclosureList(rect: SVGRect, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
|
|
34481
|
+
getIntersectionList(rect: SVGRect, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
|
|
34474
34482
|
/**
|
|
34475
34483
|
* The **`pauseAnimations()`** method of the SVGSVGElement interface suspends (i.e., pauses) all currently running animations that are defined within the SVG document fragment corresponding to this <svg> element, causing the animation clock corresponding to this document fragment to stand still until it is unpaused.
|
|
34476
34484
|
*
|
|
@@ -34772,13 +34780,13 @@ interface SVGTextContentElement extends SVGGraphicsElement {
|
|
|
34772
34780
|
*
|
|
34773
34781
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getEndPositionOfChar)
|
|
34774
34782
|
*/
|
|
34775
|
-
getEndPositionOfChar(charnum: number):
|
|
34783
|
+
getEndPositionOfChar(charnum: number): SVGPoint;
|
|
34776
34784
|
/**
|
|
34777
34785
|
* The **`getExtentOfChar()`** method of the SVGTextContentElement interface the represents computed tight bounding box of the glyph cell that corresponds to a given typographic character.
|
|
34778
34786
|
*
|
|
34779
34787
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getExtentOfChar)
|
|
34780
34788
|
*/
|
|
34781
|
-
getExtentOfChar(charnum: number):
|
|
34789
|
+
getExtentOfChar(charnum: number): SVGRect;
|
|
34782
34790
|
/**
|
|
34783
34791
|
* The **`getNumberOfChars()`** method of the SVGTextContentElement interface represents the total number of addressable characters available for rendering within the current element, regardless of whether they will be rendered.
|
|
34784
34792
|
*
|
|
@@ -34796,7 +34804,7 @@ interface SVGTextContentElement extends SVGGraphicsElement {
|
|
|
34796
34804
|
*
|
|
34797
34805
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getStartPositionOfChar)
|
|
34798
34806
|
*/
|
|
34799
|
-
getStartPositionOfChar(charnum: number):
|
|
34807
|
+
getStartPositionOfChar(charnum: number): SVGPoint;
|
|
34800
34808
|
/**
|
|
34801
34809
|
* The **`getSubStringLength()`** method of the SVGTextContentElement interface represents the computed length of the formatted text advance distance for a substring of text within the element.
|
|
34802
34810
|
*
|
|
@@ -34967,7 +34975,7 @@ interface SVGTransform {
|
|
|
34967
34975
|
*
|
|
34968
34976
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/matrix)
|
|
34969
34977
|
*/
|
|
34970
|
-
readonly matrix:
|
|
34978
|
+
readonly matrix: SVGMatrix;
|
|
34971
34979
|
/**
|
|
34972
34980
|
* The **`type`** read-only property of the SVGTransform interface represents the type of transformation applied, specified by one of the SVG_TRANSFORM_* constants defined on this interface.
|
|
34973
34981
|
*
|
|
@@ -36061,7 +36069,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
|
|
|
36061
36069
|
*
|
|
36062
36070
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe)
|
|
36063
36071
|
*/
|
|
36064
|
-
setHTMLUnsafe(html: string): void;
|
|
36072
|
+
setHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void;
|
|
36065
36073
|
addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
36066
36074
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
36067
36075
|
removeEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -45212,7 +45220,7 @@ type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
|
45212
45220
|
type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8";
|
|
45213
45221
|
type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
|
|
45214
45222
|
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
45215
|
-
type GPUVertexFormat = "float16" | "float16x2" | "float16x4" | "float32" | "float32x2" | "float32x3" | "float32x4" | "sint16" | "sint16x2" | "sint16x4" | "sint32" | "sint32x2" | "sint32x3" | "sint32x4" | "sint8" | "sint8x2" | "sint8x4" | "snorm16" | "snorm16x2" | "snorm16x4" | "snorm8" | "snorm8x2" | "snorm8x4" | "uint16" | "uint16x2" | "uint16x4" | "uint32" | "uint32x2" | "uint32x3" | "uint32x4" | "uint8" | "uint8x2" | "uint8x4" | "unorm10-10-10-2" | "unorm16" | "unorm16x2" | "unorm16x4" | "unorm8" | "unorm8x2" | "unorm8x4" | "unorm8x4-bgra";
|
|
45223
|
+
type GPUVertexFormat = "float16" | "float16x2" | "float16x4" | "float32" | "float32x2" | "float32x3" | "float32x4" | "sint16" | "sint16x2" | "sint16x4" | "sint32" | "sint32x2" | "sint32x3" | "sint32x4" | "sint8" | "sint8x2" | "sint8x4" | "snorm10-10-10-2" | "snorm16" | "snorm16x2" | "snorm16x4" | "snorm8" | "snorm8x2" | "snorm8x4" | "uint16" | "uint16x2" | "uint16x4" | "uint32" | "uint32x2" | "uint32x3" | "uint32x4" | "uint8" | "uint8x2" | "uint8x4" | "unorm10-10-10-2" | "unorm16" | "unorm16x2" | "unorm16x4" | "unorm8" | "unorm8x2" | "unorm8x4" | "unorm8x4-bgra";
|
|
45216
45224
|
type GPUVertexStepMode = "instance" | "vertex";
|
|
45217
45225
|
type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble";
|
|
45218
45226
|
type GamepadHapticsResult = "complete" | "preempted";
|
|
@@ -45735,7 +45743,7 @@ interface SVGNumberList {
|
|
|
45735
45743
|
}
|
|
45736
45744
|
|
|
45737
45745
|
interface SVGPointList {
|
|
45738
|
-
[Symbol.iterator](): ArrayIterator<
|
|
45746
|
+
[Symbol.iterator](): ArrayIterator<SVGPoint>;
|
|
45739
45747
|
}
|
|
45740
45748
|
|
|
45741
45749
|
interface SVGStringList {
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -1400,7 +1400,7 @@ interface Keyframe {
|
|
|
1400
1400
|
composite?: CompositeOperationOrAuto;
|
|
1401
1401
|
easing?: string;
|
|
1402
1402
|
offset?: number | null;
|
|
1403
|
-
[property: string]: string | number | null | undefined;
|
|
1403
|
+
[property: string]: string | number | CSSStyleValue | null | undefined;
|
|
1404
1404
|
}
|
|
1405
1405
|
|
|
1406
1406
|
interface KeyframeAnimationOptions extends KeyframeEffectOptions {
|
|
@@ -1835,6 +1835,10 @@ interface PannerOptions extends AudioNodeOptions {
|
|
|
1835
1835
|
rolloffFactor?: number;
|
|
1836
1836
|
}
|
|
1837
1837
|
|
|
1838
|
+
interface ParseHTMLUnsafeOptions {
|
|
1839
|
+
sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1838
1842
|
interface PayerErrors {
|
|
1839
1843
|
email?: string;
|
|
1840
1844
|
name?: string;
|
|
@@ -2025,7 +2029,7 @@ interface PropertyIndexedKeyframes {
|
|
|
2025
2029
|
composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];
|
|
2026
2030
|
easing?: string | string[];
|
|
2027
2031
|
offset?: number | (number | null)[];
|
|
2028
|
-
[property: string]: string | string[] | number | null | (number | null)[] | undefined;
|
|
2032
|
+
[property: string]: string | string[] | number | CSSStyleValue | CSSStyleValue[] | null | (number | null)[] | undefined;
|
|
2029
2033
|
}
|
|
2030
2034
|
|
|
2031
2035
|
interface PublicKeyCredentialCreationOptions {
|
|
@@ -2762,6 +2766,10 @@ interface SetHTMLOptions {
|
|
|
2762
2766
|
sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
|
|
2763
2767
|
}
|
|
2764
2768
|
|
|
2769
|
+
interface SetHTMLUnsafeOptions {
|
|
2770
|
+
sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
|
|
2771
|
+
}
|
|
2772
|
+
|
|
2765
2773
|
interface ShadowRootInit {
|
|
2766
2774
|
clonable?: boolean;
|
|
2767
2775
|
customElementRegistry?: CustomElementRegistry | null;
|
|
@@ -13648,7 +13656,7 @@ declare var Document: {
|
|
|
13648
13656
|
*
|
|
13649
13657
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static)
|
|
13650
13658
|
*/
|
|
13651
|
-
parseHTMLUnsafe(html: string): Document;
|
|
13659
|
+
parseHTMLUnsafe(html: string, options?: ParseHTMLUnsafeOptions): Document;
|
|
13652
13660
|
};
|
|
13653
13661
|
|
|
13654
13662
|
/**
|
|
@@ -14416,7 +14424,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
|
|
|
14416
14424
|
*
|
|
14417
14425
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe)
|
|
14418
14426
|
*/
|
|
14419
|
-
setHTMLUnsafe(html: string): void;
|
|
14427
|
+
setHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void;
|
|
14420
14428
|
/**
|
|
14421
14429
|
* The **`setPointerCapture()`** method of the Element interface is used to designate a specific element as the capture target of future pointer events. Subsequent events for the pointer will be targeted at the capture element until capture is released (via Element.releasePointerCapture() or the pointerup event is fired).
|
|
14422
14430
|
*
|
|
@@ -31785,13 +31793,13 @@ interface SVGAnimatedRect {
|
|
|
31785
31793
|
*
|
|
31786
31794
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect/animVal)
|
|
31787
31795
|
*/
|
|
31788
|
-
readonly animVal:
|
|
31796
|
+
readonly animVal: SVGRect;
|
|
31789
31797
|
/**
|
|
31790
31798
|
* The **`baseVal`** read-only property of the SVGAnimatedRect interface represents the current non-animated value of the viewBox attribute of an SVG element.
|
|
31791
31799
|
*
|
|
31792
31800
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect/baseVal)
|
|
31793
31801
|
*/
|
|
31794
|
-
readonly baseVal:
|
|
31802
|
+
readonly baseVal: SVGRect;
|
|
31795
31803
|
}
|
|
31796
31804
|
|
|
31797
31805
|
declare var SVGAnimatedRect: {
|
|
@@ -33168,7 +33176,7 @@ declare var SVGFETurbulenceElement: {
|
|
|
33168
33176
|
*
|
|
33169
33177
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement)
|
|
33170
33178
|
*/
|
|
33171
|
-
interface SVGFilterElement extends SVGElement
|
|
33179
|
+
interface SVGFilterElement extends SVGElement {
|
|
33172
33180
|
/**
|
|
33173
33181
|
* The **`filterUnits`** read-only property of the SVGFilterElement interface reflects the filterUnits attribute of the given <filter> element. It takes one of the SVG_UNIT_TYPE_* constants defined in SVGUnitTypes.
|
|
33174
33182
|
*
|
|
@@ -33311,7 +33319,7 @@ interface SVGGeometryElement extends SVGGraphicsElement {
|
|
|
33311
33319
|
*
|
|
33312
33320
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/getPointAtLength)
|
|
33313
33321
|
*/
|
|
33314
|
-
getPointAtLength(distance: number):
|
|
33322
|
+
getPointAtLength(distance: number): SVGPoint;
|
|
33315
33323
|
/**
|
|
33316
33324
|
* The **`SVGGeometryElement.getTotalLength()`** method returns the user agent's computed value for the total length of the path in user units.
|
|
33317
33325
|
*
|
|
@@ -33401,19 +33409,19 @@ interface SVGGraphicsElement extends SVGElement, SVGTests {
|
|
|
33401
33409
|
*
|
|
33402
33410
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getBBox)
|
|
33403
33411
|
*/
|
|
33404
|
-
getBBox(options?: SVGBoundingBoxOptions):
|
|
33412
|
+
getBBox(options?: SVGBoundingBoxOptions): SVGRect;
|
|
33405
33413
|
/**
|
|
33406
33414
|
* The **`getCTM()`** method of the SVGGraphicsElement interface represents the matrix that transforms the current element's coordinate system to its SVG viewport's coordinate system.
|
|
33407
33415
|
*
|
|
33408
33416
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getCTM)
|
|
33409
33417
|
*/
|
|
33410
|
-
getCTM():
|
|
33418
|
+
getCTM(): SVGMatrix | null;
|
|
33411
33419
|
/**
|
|
33412
33420
|
* The **`getScreenCTM()`** method of the SVGGraphicsElement interface represents the matrix that transforms the current element's coordinate system to the coordinate system of the SVG viewport for the SVG document fragment.
|
|
33413
33421
|
*
|
|
33414
33422
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getScreenCTM)
|
|
33415
33423
|
*/
|
|
33416
|
-
getScreenCTM():
|
|
33424
|
+
getScreenCTM(): SVGMatrix | null;
|
|
33417
33425
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
33418
33426
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
33419
33427
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -34075,7 +34083,7 @@ interface SVGPointList {
|
|
|
34075
34083
|
*
|
|
34076
34084
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/appendItem)
|
|
34077
34085
|
*/
|
|
34078
|
-
appendItem(newItem:
|
|
34086
|
+
appendItem(newItem: SVGPoint): SVGPoint;
|
|
34079
34087
|
/**
|
|
34080
34088
|
* The **`clear()`** method of the SVGPointList interface removes all items from the list.
|
|
34081
34089
|
*
|
|
@@ -34087,32 +34095,32 @@ interface SVGPointList {
|
|
|
34087
34095
|
*
|
|
34088
34096
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/getItem)
|
|
34089
34097
|
*/
|
|
34090
|
-
getItem(index: number):
|
|
34098
|
+
getItem(index: number): SVGPoint;
|
|
34091
34099
|
/**
|
|
34092
34100
|
* The **`initialize()`** method of the SVGPointList interface clears the list then adds a single new DOMPoint object to the list.
|
|
34093
34101
|
*
|
|
34094
34102
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/initialize)
|
|
34095
34103
|
*/
|
|
34096
|
-
initialize(newItem:
|
|
34104
|
+
initialize(newItem: SVGPoint): SVGPoint;
|
|
34097
34105
|
/**
|
|
34098
34106
|
* The **`insertItemBefore()`** method of the SVGPointList interface inserts a DOMPoint before another item in the list.
|
|
34099
34107
|
*
|
|
34100
34108
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/insertItemBefore)
|
|
34101
34109
|
*/
|
|
34102
|
-
insertItemBefore(newItem:
|
|
34110
|
+
insertItemBefore(newItem: SVGPoint, index: number): SVGPoint;
|
|
34103
34111
|
/**
|
|
34104
34112
|
* The **`removeItem()`** method of the SVGPointList interface removes a DOMPoint from the list.
|
|
34105
34113
|
*
|
|
34106
34114
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/removeItem)
|
|
34107
34115
|
*/
|
|
34108
|
-
removeItem(index: number):
|
|
34116
|
+
removeItem(index: number): SVGPoint;
|
|
34109
34117
|
/**
|
|
34110
34118
|
* The **`replaceItem()`** method of the SVGPointList interface replaces a DOMPoint in the list.
|
|
34111
34119
|
*
|
|
34112
34120
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/replaceItem)
|
|
34113
34121
|
*/
|
|
34114
|
-
replaceItem(newItem:
|
|
34115
|
-
[index: number]:
|
|
34122
|
+
replaceItem(newItem: SVGPoint, index: number): SVGPoint;
|
|
34123
|
+
[index: number]: SVGPoint;
|
|
34116
34124
|
}
|
|
34117
34125
|
|
|
34118
34126
|
declare var SVGPointList: {
|
|
@@ -34333,7 +34341,7 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
|
|
|
34333
34341
|
*
|
|
34334
34342
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/currentTranslate)
|
|
34335
34343
|
*/
|
|
34336
|
-
readonly currentTranslate:
|
|
34344
|
+
readonly currentTranslate: SVGPoint;
|
|
34337
34345
|
/**
|
|
34338
34346
|
* The **`height`** read-only property of the SVGSVGElement interface describes the vertical size of element as an SVGAnimatedLength. It reflects the <svg> element's height attribute, which may not be the SVG's rendered height.
|
|
34339
34347
|
*
|
|
@@ -34369,13 +34377,13 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
|
|
|
34369
34377
|
*
|
|
34370
34378
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/checkEnclosure)
|
|
34371
34379
|
*/
|
|
34372
|
-
checkEnclosure(element: SVGElement, rect:
|
|
34380
|
+
checkEnclosure(element: SVGElement, rect: SVGRect): boolean;
|
|
34373
34381
|
/**
|
|
34374
34382
|
* The **`checkIntersection()`** method of the SVGSVGElement interface checks if the rendered content of the given element intersects the supplied rectangle.
|
|
34375
34383
|
*
|
|
34376
34384
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/checkIntersection)
|
|
34377
34385
|
*/
|
|
34378
|
-
checkIntersection(element: SVGElement, rect:
|
|
34386
|
+
checkIntersection(element: SVGElement, rect: SVGRect): boolean;
|
|
34379
34387
|
/**
|
|
34380
34388
|
* The **`createSVGAngle()`** method of the SVGSVGElement interface creates an SVGAngle object outside of any document trees.
|
|
34381
34389
|
*
|
|
@@ -34393,7 +34401,7 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
|
|
|
34393
34401
|
*
|
|
34394
34402
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGMatrix)
|
|
34395
34403
|
*/
|
|
34396
|
-
createSVGMatrix():
|
|
34404
|
+
createSVGMatrix(): SVGMatrix;
|
|
34397
34405
|
/**
|
|
34398
34406
|
* The **`createSVGNumber()`** method of the SVGSVGElement interface creates an SVGNumber object outside of any document trees.
|
|
34399
34407
|
*
|
|
@@ -34405,13 +34413,13 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
|
|
|
34405
34413
|
*
|
|
34406
34414
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGPoint)
|
|
34407
34415
|
*/
|
|
34408
|
-
createSVGPoint():
|
|
34416
|
+
createSVGPoint(): SVGPoint;
|
|
34409
34417
|
/**
|
|
34410
34418
|
* The **`createSVGRect()`** method of the SVGSVGElement interface creates a DOMRect object outside of any document trees.
|
|
34411
34419
|
*
|
|
34412
34420
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGRect)
|
|
34413
34421
|
*/
|
|
34414
|
-
createSVGRect():
|
|
34422
|
+
createSVGRect(): SVGRect;
|
|
34415
34423
|
/**
|
|
34416
34424
|
* The **`createSVGTransform()`** method of the SVGSVGElement interface creates an SVGTransform object outside of any document trees.
|
|
34417
34425
|
*
|
|
@@ -34444,8 +34452,8 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
|
|
|
34444
34452
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/getElementById)
|
|
34445
34453
|
*/
|
|
34446
34454
|
getElementById(elementId: string): Element | null;
|
|
34447
|
-
getEnclosureList(rect:
|
|
34448
|
-
getIntersectionList(rect:
|
|
34455
|
+
getEnclosureList(rect: SVGRect, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
|
|
34456
|
+
getIntersectionList(rect: SVGRect, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
|
|
34449
34457
|
/**
|
|
34450
34458
|
* The **`pauseAnimations()`** method of the SVGSVGElement interface suspends (i.e., pauses) all currently running animations that are defined within the SVG document fragment corresponding to this <svg> element, causing the animation clock corresponding to this document fragment to stand still until it is unpaused.
|
|
34451
34459
|
*
|
|
@@ -34747,13 +34755,13 @@ interface SVGTextContentElement extends SVGGraphicsElement {
|
|
|
34747
34755
|
*
|
|
34748
34756
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getEndPositionOfChar)
|
|
34749
34757
|
*/
|
|
34750
|
-
getEndPositionOfChar(charnum: number):
|
|
34758
|
+
getEndPositionOfChar(charnum: number): SVGPoint;
|
|
34751
34759
|
/**
|
|
34752
34760
|
* The **`getExtentOfChar()`** method of the SVGTextContentElement interface the represents computed tight bounding box of the glyph cell that corresponds to a given typographic character.
|
|
34753
34761
|
*
|
|
34754
34762
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getExtentOfChar)
|
|
34755
34763
|
*/
|
|
34756
|
-
getExtentOfChar(charnum: number):
|
|
34764
|
+
getExtentOfChar(charnum: number): SVGRect;
|
|
34757
34765
|
/**
|
|
34758
34766
|
* The **`getNumberOfChars()`** method of the SVGTextContentElement interface represents the total number of addressable characters available for rendering within the current element, regardless of whether they will be rendered.
|
|
34759
34767
|
*
|
|
@@ -34771,7 +34779,7 @@ interface SVGTextContentElement extends SVGGraphicsElement {
|
|
|
34771
34779
|
*
|
|
34772
34780
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getStartPositionOfChar)
|
|
34773
34781
|
*/
|
|
34774
|
-
getStartPositionOfChar(charnum: number):
|
|
34782
|
+
getStartPositionOfChar(charnum: number): SVGPoint;
|
|
34775
34783
|
/**
|
|
34776
34784
|
* The **`getSubStringLength()`** method of the SVGTextContentElement interface represents the computed length of the formatted text advance distance for a substring of text within the element.
|
|
34777
34785
|
*
|
|
@@ -34942,7 +34950,7 @@ interface SVGTransform {
|
|
|
34942
34950
|
*
|
|
34943
34951
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/matrix)
|
|
34944
34952
|
*/
|
|
34945
|
-
readonly matrix:
|
|
34953
|
+
readonly matrix: SVGMatrix;
|
|
34946
34954
|
/**
|
|
34947
34955
|
* The **`type`** read-only property of the SVGTransform interface represents the type of transformation applied, specified by one of the SVG_TRANSFORM_* constants defined on this interface.
|
|
34948
34956
|
*
|
|
@@ -36036,7 +36044,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
|
|
|
36036
36044
|
*
|
|
36037
36045
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe)
|
|
36038
36046
|
*/
|
|
36039
|
-
setHTMLUnsafe(html: string): void;
|
|
36047
|
+
setHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void;
|
|
36040
36048
|
addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
36041
36049
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
36042
36050
|
removeEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -45186,7 +45194,7 @@ type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
|
45186
45194
|
type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8";
|
|
45187
45195
|
type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
|
|
45188
45196
|
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
45189
|
-
type GPUVertexFormat = "float16" | "float16x2" | "float16x4" | "float32" | "float32x2" | "float32x3" | "float32x4" | "sint16" | "sint16x2" | "sint16x4" | "sint32" | "sint32x2" | "sint32x3" | "sint32x4" | "sint8" | "sint8x2" | "sint8x4" | "snorm16" | "snorm16x2" | "snorm16x4" | "snorm8" | "snorm8x2" | "snorm8x4" | "uint16" | "uint16x2" | "uint16x4" | "uint32" | "uint32x2" | "uint32x3" | "uint32x4" | "uint8" | "uint8x2" | "uint8x4" | "unorm10-10-10-2" | "unorm16" | "unorm16x2" | "unorm16x4" | "unorm8" | "unorm8x2" | "unorm8x4" | "unorm8x4-bgra";
|
|
45197
|
+
type GPUVertexFormat = "float16" | "float16x2" | "float16x4" | "float32" | "float32x2" | "float32x3" | "float32x4" | "sint16" | "sint16x2" | "sint16x4" | "sint32" | "sint32x2" | "sint32x3" | "sint32x4" | "sint8" | "sint8x2" | "sint8x4" | "snorm10-10-10-2" | "snorm16" | "snorm16x2" | "snorm16x4" | "snorm8" | "snorm8x2" | "snorm8x4" | "uint16" | "uint16x2" | "uint16x4" | "uint32" | "uint32x2" | "uint32x3" | "uint32x4" | "uint8" | "uint8x2" | "uint8x4" | "unorm10-10-10-2" | "unorm16" | "unorm16x2" | "unorm16x4" | "unorm8" | "unorm8x2" | "unorm8x4" | "unorm8x4-bgra";
|
|
45190
45198
|
type GPUVertexStepMode = "instance" | "vertex";
|
|
45191
45199
|
type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble";
|
|
45192
45200
|
type GamepadHapticsResult = "complete" | "preempted";
|
package/ts5.5/iterable.d.ts
CHANGED
package/ts5.6/index.d.ts
CHANGED
|
@@ -1400,7 +1400,7 @@ interface Keyframe {
|
|
|
1400
1400
|
composite?: CompositeOperationOrAuto;
|
|
1401
1401
|
easing?: string;
|
|
1402
1402
|
offset?: number | null;
|
|
1403
|
-
[property: string]: string | number | null | undefined;
|
|
1403
|
+
[property: string]: string | number | CSSStyleValue | null | undefined;
|
|
1404
1404
|
}
|
|
1405
1405
|
|
|
1406
1406
|
interface KeyframeAnimationOptions extends KeyframeEffectOptions {
|
|
@@ -1835,6 +1835,10 @@ interface PannerOptions extends AudioNodeOptions {
|
|
|
1835
1835
|
rolloffFactor?: number;
|
|
1836
1836
|
}
|
|
1837
1837
|
|
|
1838
|
+
interface ParseHTMLUnsafeOptions {
|
|
1839
|
+
sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1838
1842
|
interface PayerErrors {
|
|
1839
1843
|
email?: string;
|
|
1840
1844
|
name?: string;
|
|
@@ -2025,7 +2029,7 @@ interface PropertyIndexedKeyframes {
|
|
|
2025
2029
|
composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];
|
|
2026
2030
|
easing?: string | string[];
|
|
2027
2031
|
offset?: number | (number | null)[];
|
|
2028
|
-
[property: string]: string | string[] | number | null | (number | null)[] | undefined;
|
|
2032
|
+
[property: string]: string | string[] | number | CSSStyleValue | CSSStyleValue[] | null | (number | null)[] | undefined;
|
|
2029
2033
|
}
|
|
2030
2034
|
|
|
2031
2035
|
interface PublicKeyCredentialCreationOptions {
|
|
@@ -2762,6 +2766,10 @@ interface SetHTMLOptions {
|
|
|
2762
2766
|
sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
|
|
2763
2767
|
}
|
|
2764
2768
|
|
|
2769
|
+
interface SetHTMLUnsafeOptions {
|
|
2770
|
+
sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
|
|
2771
|
+
}
|
|
2772
|
+
|
|
2765
2773
|
interface ShadowRootInit {
|
|
2766
2774
|
clonable?: boolean;
|
|
2767
2775
|
customElementRegistry?: CustomElementRegistry | null;
|
|
@@ -13656,7 +13664,7 @@ declare var Document: {
|
|
|
13656
13664
|
*
|
|
13657
13665
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static)
|
|
13658
13666
|
*/
|
|
13659
|
-
parseHTMLUnsafe(html: string): Document;
|
|
13667
|
+
parseHTMLUnsafe(html: string, options?: ParseHTMLUnsafeOptions): Document;
|
|
13660
13668
|
};
|
|
13661
13669
|
|
|
13662
13670
|
/**
|
|
@@ -14426,7 +14434,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
|
|
|
14426
14434
|
*
|
|
14427
14435
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe)
|
|
14428
14436
|
*/
|
|
14429
|
-
setHTMLUnsafe(html: string): void;
|
|
14437
|
+
setHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void;
|
|
14430
14438
|
/**
|
|
14431
14439
|
* The **`setPointerCapture()`** method of the Element interface is used to designate a specific element as the capture target of future pointer events. Subsequent events for the pointer will be targeted at the capture element until capture is released (via Element.releasePointerCapture() or the pointerup event is fired).
|
|
14432
14440
|
*
|
|
@@ -31807,13 +31815,13 @@ interface SVGAnimatedRect {
|
|
|
31807
31815
|
*
|
|
31808
31816
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect/animVal)
|
|
31809
31817
|
*/
|
|
31810
|
-
readonly animVal:
|
|
31818
|
+
readonly animVal: SVGRect;
|
|
31811
31819
|
/**
|
|
31812
31820
|
* The **`baseVal`** read-only property of the SVGAnimatedRect interface represents the current non-animated value of the viewBox attribute of an SVG element.
|
|
31813
31821
|
*
|
|
31814
31822
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect/baseVal)
|
|
31815
31823
|
*/
|
|
31816
|
-
readonly baseVal:
|
|
31824
|
+
readonly baseVal: SVGRect;
|
|
31817
31825
|
}
|
|
31818
31826
|
|
|
31819
31827
|
declare var SVGAnimatedRect: {
|
|
@@ -33190,7 +33198,7 @@ declare var SVGFETurbulenceElement: {
|
|
|
33190
33198
|
*
|
|
33191
33199
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement)
|
|
33192
33200
|
*/
|
|
33193
|
-
interface SVGFilterElement extends SVGElement
|
|
33201
|
+
interface SVGFilterElement extends SVGElement {
|
|
33194
33202
|
/**
|
|
33195
33203
|
* The **`filterUnits`** read-only property of the SVGFilterElement interface reflects the filterUnits attribute of the given <filter> element. It takes one of the SVG_UNIT_TYPE_* constants defined in SVGUnitTypes.
|
|
33196
33204
|
*
|
|
@@ -33333,7 +33341,7 @@ interface SVGGeometryElement extends SVGGraphicsElement {
|
|
|
33333
33341
|
*
|
|
33334
33342
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/getPointAtLength)
|
|
33335
33343
|
*/
|
|
33336
|
-
getPointAtLength(distance: number):
|
|
33344
|
+
getPointAtLength(distance: number): SVGPoint;
|
|
33337
33345
|
/**
|
|
33338
33346
|
* The **`SVGGeometryElement.getTotalLength()`** method returns the user agent's computed value for the total length of the path in user units.
|
|
33339
33347
|
*
|
|
@@ -33423,19 +33431,19 @@ interface SVGGraphicsElement extends SVGElement, SVGTests {
|
|
|
33423
33431
|
*
|
|
33424
33432
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getBBox)
|
|
33425
33433
|
*/
|
|
33426
|
-
getBBox(options?: SVGBoundingBoxOptions):
|
|
33434
|
+
getBBox(options?: SVGBoundingBoxOptions): SVGRect;
|
|
33427
33435
|
/**
|
|
33428
33436
|
* The **`getCTM()`** method of the SVGGraphicsElement interface represents the matrix that transforms the current element's coordinate system to its SVG viewport's coordinate system.
|
|
33429
33437
|
*
|
|
33430
33438
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getCTM)
|
|
33431
33439
|
*/
|
|
33432
|
-
getCTM():
|
|
33440
|
+
getCTM(): SVGMatrix | null;
|
|
33433
33441
|
/**
|
|
33434
33442
|
* The **`getScreenCTM()`** method of the SVGGraphicsElement interface represents the matrix that transforms the current element's coordinate system to the coordinate system of the SVG viewport for the SVG document fragment.
|
|
33435
33443
|
*
|
|
33436
33444
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getScreenCTM)
|
|
33437
33445
|
*/
|
|
33438
|
-
getScreenCTM():
|
|
33446
|
+
getScreenCTM(): SVGMatrix | null;
|
|
33439
33447
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
33440
33448
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
33441
33449
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -34097,7 +34105,7 @@ interface SVGPointList {
|
|
|
34097
34105
|
*
|
|
34098
34106
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/appendItem)
|
|
34099
34107
|
*/
|
|
34100
|
-
appendItem(newItem:
|
|
34108
|
+
appendItem(newItem: SVGPoint): SVGPoint;
|
|
34101
34109
|
/**
|
|
34102
34110
|
* The **`clear()`** method of the SVGPointList interface removes all items from the list.
|
|
34103
34111
|
*
|
|
@@ -34109,32 +34117,32 @@ interface SVGPointList {
|
|
|
34109
34117
|
*
|
|
34110
34118
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/getItem)
|
|
34111
34119
|
*/
|
|
34112
|
-
getItem(index: number):
|
|
34120
|
+
getItem(index: number): SVGPoint;
|
|
34113
34121
|
/**
|
|
34114
34122
|
* The **`initialize()`** method of the SVGPointList interface clears the list then adds a single new DOMPoint object to the list.
|
|
34115
34123
|
*
|
|
34116
34124
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/initialize)
|
|
34117
34125
|
*/
|
|
34118
|
-
initialize(newItem:
|
|
34126
|
+
initialize(newItem: SVGPoint): SVGPoint;
|
|
34119
34127
|
/**
|
|
34120
34128
|
* The **`insertItemBefore()`** method of the SVGPointList interface inserts a DOMPoint before another item in the list.
|
|
34121
34129
|
*
|
|
34122
34130
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/insertItemBefore)
|
|
34123
34131
|
*/
|
|
34124
|
-
insertItemBefore(newItem:
|
|
34132
|
+
insertItemBefore(newItem: SVGPoint, index: number): SVGPoint;
|
|
34125
34133
|
/**
|
|
34126
34134
|
* The **`removeItem()`** method of the SVGPointList interface removes a DOMPoint from the list.
|
|
34127
34135
|
*
|
|
34128
34136
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/removeItem)
|
|
34129
34137
|
*/
|
|
34130
|
-
removeItem(index: number):
|
|
34138
|
+
removeItem(index: number): SVGPoint;
|
|
34131
34139
|
/**
|
|
34132
34140
|
* The **`replaceItem()`** method of the SVGPointList interface replaces a DOMPoint in the list.
|
|
34133
34141
|
*
|
|
34134
34142
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/replaceItem)
|
|
34135
34143
|
*/
|
|
34136
|
-
replaceItem(newItem:
|
|
34137
|
-
[index: number]:
|
|
34144
|
+
replaceItem(newItem: SVGPoint, index: number): SVGPoint;
|
|
34145
|
+
[index: number]: SVGPoint;
|
|
34138
34146
|
}
|
|
34139
34147
|
|
|
34140
34148
|
declare var SVGPointList: {
|
|
@@ -34355,7 +34363,7 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
|
|
|
34355
34363
|
*
|
|
34356
34364
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/currentTranslate)
|
|
34357
34365
|
*/
|
|
34358
|
-
readonly currentTranslate:
|
|
34366
|
+
readonly currentTranslate: SVGPoint;
|
|
34359
34367
|
/**
|
|
34360
34368
|
* The **`height`** read-only property of the SVGSVGElement interface describes the vertical size of element as an SVGAnimatedLength. It reflects the <svg> element's height attribute, which may not be the SVG's rendered height.
|
|
34361
34369
|
*
|
|
@@ -34391,13 +34399,13 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
|
|
|
34391
34399
|
*
|
|
34392
34400
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/checkEnclosure)
|
|
34393
34401
|
*/
|
|
34394
|
-
checkEnclosure(element: SVGElement, rect:
|
|
34402
|
+
checkEnclosure(element: SVGElement, rect: SVGRect): boolean;
|
|
34395
34403
|
/**
|
|
34396
34404
|
* The **`checkIntersection()`** method of the SVGSVGElement interface checks if the rendered content of the given element intersects the supplied rectangle.
|
|
34397
34405
|
*
|
|
34398
34406
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/checkIntersection)
|
|
34399
34407
|
*/
|
|
34400
|
-
checkIntersection(element: SVGElement, rect:
|
|
34408
|
+
checkIntersection(element: SVGElement, rect: SVGRect): boolean;
|
|
34401
34409
|
/**
|
|
34402
34410
|
* The **`createSVGAngle()`** method of the SVGSVGElement interface creates an SVGAngle object outside of any document trees.
|
|
34403
34411
|
*
|
|
@@ -34415,7 +34423,7 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
|
|
|
34415
34423
|
*
|
|
34416
34424
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGMatrix)
|
|
34417
34425
|
*/
|
|
34418
|
-
createSVGMatrix():
|
|
34426
|
+
createSVGMatrix(): SVGMatrix;
|
|
34419
34427
|
/**
|
|
34420
34428
|
* The **`createSVGNumber()`** method of the SVGSVGElement interface creates an SVGNumber object outside of any document trees.
|
|
34421
34429
|
*
|
|
@@ -34427,13 +34435,13 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
|
|
|
34427
34435
|
*
|
|
34428
34436
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGPoint)
|
|
34429
34437
|
*/
|
|
34430
|
-
createSVGPoint():
|
|
34438
|
+
createSVGPoint(): SVGPoint;
|
|
34431
34439
|
/**
|
|
34432
34440
|
* The **`createSVGRect()`** method of the SVGSVGElement interface creates a DOMRect object outside of any document trees.
|
|
34433
34441
|
*
|
|
34434
34442
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGRect)
|
|
34435
34443
|
*/
|
|
34436
|
-
createSVGRect():
|
|
34444
|
+
createSVGRect(): SVGRect;
|
|
34437
34445
|
/**
|
|
34438
34446
|
* The **`createSVGTransform()`** method of the SVGSVGElement interface creates an SVGTransform object outside of any document trees.
|
|
34439
34447
|
*
|
|
@@ -34466,8 +34474,8 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
|
|
|
34466
34474
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/getElementById)
|
|
34467
34475
|
*/
|
|
34468
34476
|
getElementById(elementId: string): Element | null;
|
|
34469
|
-
getEnclosureList(rect:
|
|
34470
|
-
getIntersectionList(rect:
|
|
34477
|
+
getEnclosureList(rect: SVGRect, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
|
|
34478
|
+
getIntersectionList(rect: SVGRect, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
|
|
34471
34479
|
/**
|
|
34472
34480
|
* The **`pauseAnimations()`** method of the SVGSVGElement interface suspends (i.e., pauses) all currently running animations that are defined within the SVG document fragment corresponding to this <svg> element, causing the animation clock corresponding to this document fragment to stand still until it is unpaused.
|
|
34473
34481
|
*
|
|
@@ -34769,13 +34777,13 @@ interface SVGTextContentElement extends SVGGraphicsElement {
|
|
|
34769
34777
|
*
|
|
34770
34778
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getEndPositionOfChar)
|
|
34771
34779
|
*/
|
|
34772
|
-
getEndPositionOfChar(charnum: number):
|
|
34780
|
+
getEndPositionOfChar(charnum: number): SVGPoint;
|
|
34773
34781
|
/**
|
|
34774
34782
|
* The **`getExtentOfChar()`** method of the SVGTextContentElement interface the represents computed tight bounding box of the glyph cell that corresponds to a given typographic character.
|
|
34775
34783
|
*
|
|
34776
34784
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getExtentOfChar)
|
|
34777
34785
|
*/
|
|
34778
|
-
getExtentOfChar(charnum: number):
|
|
34786
|
+
getExtentOfChar(charnum: number): SVGRect;
|
|
34779
34787
|
/**
|
|
34780
34788
|
* The **`getNumberOfChars()`** method of the SVGTextContentElement interface represents the total number of addressable characters available for rendering within the current element, regardless of whether they will be rendered.
|
|
34781
34789
|
*
|
|
@@ -34793,7 +34801,7 @@ interface SVGTextContentElement extends SVGGraphicsElement {
|
|
|
34793
34801
|
*
|
|
34794
34802
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getStartPositionOfChar)
|
|
34795
34803
|
*/
|
|
34796
|
-
getStartPositionOfChar(charnum: number):
|
|
34804
|
+
getStartPositionOfChar(charnum: number): SVGPoint;
|
|
34797
34805
|
/**
|
|
34798
34806
|
* The **`getSubStringLength()`** method of the SVGTextContentElement interface represents the computed length of the formatted text advance distance for a substring of text within the element.
|
|
34799
34807
|
*
|
|
@@ -34964,7 +34972,7 @@ interface SVGTransform {
|
|
|
34964
34972
|
*
|
|
34965
34973
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/matrix)
|
|
34966
34974
|
*/
|
|
34967
|
-
readonly matrix:
|
|
34975
|
+
readonly matrix: SVGMatrix;
|
|
34968
34976
|
/**
|
|
34969
34977
|
* The **`type`** read-only property of the SVGTransform interface represents the type of transformation applied, specified by one of the SVG_TRANSFORM_* constants defined on this interface.
|
|
34970
34978
|
*
|
|
@@ -36058,7 +36066,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
|
|
|
36058
36066
|
*
|
|
36059
36067
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe)
|
|
36060
36068
|
*/
|
|
36061
|
-
setHTMLUnsafe(html: string): void;
|
|
36069
|
+
setHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void;
|
|
36062
36070
|
addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
36063
36071
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
36064
36072
|
removeEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -45209,7 +45217,7 @@ type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
|
45209
45217
|
type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8";
|
|
45210
45218
|
type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
|
|
45211
45219
|
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
45212
|
-
type GPUVertexFormat = "float16" | "float16x2" | "float16x4" | "float32" | "float32x2" | "float32x3" | "float32x4" | "sint16" | "sint16x2" | "sint16x4" | "sint32" | "sint32x2" | "sint32x3" | "sint32x4" | "sint8" | "sint8x2" | "sint8x4" | "snorm16" | "snorm16x2" | "snorm16x4" | "snorm8" | "snorm8x2" | "snorm8x4" | "uint16" | "uint16x2" | "uint16x4" | "uint32" | "uint32x2" | "uint32x3" | "uint32x4" | "uint8" | "uint8x2" | "uint8x4" | "unorm10-10-10-2" | "unorm16" | "unorm16x2" | "unorm16x4" | "unorm8" | "unorm8x2" | "unorm8x4" | "unorm8x4-bgra";
|
|
45220
|
+
type GPUVertexFormat = "float16" | "float16x2" | "float16x4" | "float32" | "float32x2" | "float32x3" | "float32x4" | "sint16" | "sint16x2" | "sint16x4" | "sint32" | "sint32x2" | "sint32x3" | "sint32x4" | "sint8" | "sint8x2" | "sint8x4" | "snorm10-10-10-2" | "snorm16" | "snorm16x2" | "snorm16x4" | "snorm8" | "snorm8x2" | "snorm8x4" | "uint16" | "uint16x2" | "uint16x4" | "uint32" | "uint32x2" | "uint32x3" | "uint32x4" | "uint8" | "uint8x2" | "uint8x4" | "unorm10-10-10-2" | "unorm16" | "unorm16x2" | "unorm16x4" | "unorm8" | "unorm8x2" | "unorm8x4" | "unorm8x4-bgra";
|
|
45213
45221
|
type GPUVertexStepMode = "instance" | "vertex";
|
|
45214
45222
|
type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble";
|
|
45215
45223
|
type GamepadHapticsResult = "complete" | "preempted";
|
package/ts5.6/iterable.d.ts
CHANGED
package/ts5.9/index.d.ts
CHANGED
|
@@ -1400,7 +1400,7 @@ interface Keyframe {
|
|
|
1400
1400
|
composite?: CompositeOperationOrAuto;
|
|
1401
1401
|
easing?: string;
|
|
1402
1402
|
offset?: number | null;
|
|
1403
|
-
[property: string]: string | number | null | undefined;
|
|
1403
|
+
[property: string]: string | number | CSSStyleValue | null | undefined;
|
|
1404
1404
|
}
|
|
1405
1405
|
|
|
1406
1406
|
interface KeyframeAnimationOptions extends KeyframeEffectOptions {
|
|
@@ -1835,6 +1835,10 @@ interface PannerOptions extends AudioNodeOptions {
|
|
|
1835
1835
|
rolloffFactor?: number;
|
|
1836
1836
|
}
|
|
1837
1837
|
|
|
1838
|
+
interface ParseHTMLUnsafeOptions {
|
|
1839
|
+
sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1838
1842
|
interface PayerErrors {
|
|
1839
1843
|
email?: string;
|
|
1840
1844
|
name?: string;
|
|
@@ -2025,7 +2029,7 @@ interface PropertyIndexedKeyframes {
|
|
|
2025
2029
|
composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];
|
|
2026
2030
|
easing?: string | string[];
|
|
2027
2031
|
offset?: number | (number | null)[];
|
|
2028
|
-
[property: string]: string | string[] | number | null | (number | null)[] | undefined;
|
|
2032
|
+
[property: string]: string | string[] | number | CSSStyleValue | CSSStyleValue[] | null | (number | null)[] | undefined;
|
|
2029
2033
|
}
|
|
2030
2034
|
|
|
2031
2035
|
interface PublicKeyCredentialCreationOptions {
|
|
@@ -2762,6 +2766,10 @@ interface SetHTMLOptions {
|
|
|
2762
2766
|
sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
|
|
2763
2767
|
}
|
|
2764
2768
|
|
|
2769
|
+
interface SetHTMLUnsafeOptions {
|
|
2770
|
+
sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
|
|
2771
|
+
}
|
|
2772
|
+
|
|
2765
2773
|
interface ShadowRootInit {
|
|
2766
2774
|
clonable?: boolean;
|
|
2767
2775
|
customElementRegistry?: CustomElementRegistry | null;
|
|
@@ -13656,7 +13664,7 @@ declare var Document: {
|
|
|
13656
13664
|
*
|
|
13657
13665
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static)
|
|
13658
13666
|
*/
|
|
13659
|
-
parseHTMLUnsafe(html: string): Document;
|
|
13667
|
+
parseHTMLUnsafe(html: string, options?: ParseHTMLUnsafeOptions): Document;
|
|
13660
13668
|
};
|
|
13661
13669
|
|
|
13662
13670
|
/**
|
|
@@ -14426,7 +14434,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
|
|
|
14426
14434
|
*
|
|
14427
14435
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe)
|
|
14428
14436
|
*/
|
|
14429
|
-
setHTMLUnsafe(html: string): void;
|
|
14437
|
+
setHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void;
|
|
14430
14438
|
/**
|
|
14431
14439
|
* The **`setPointerCapture()`** method of the Element interface is used to designate a specific element as the capture target of future pointer events. Subsequent events for the pointer will be targeted at the capture element until capture is released (via Element.releasePointerCapture() or the pointerup event is fired).
|
|
14432
14440
|
*
|
|
@@ -31807,13 +31815,13 @@ interface SVGAnimatedRect {
|
|
|
31807
31815
|
*
|
|
31808
31816
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect/animVal)
|
|
31809
31817
|
*/
|
|
31810
|
-
readonly animVal:
|
|
31818
|
+
readonly animVal: SVGRect;
|
|
31811
31819
|
/**
|
|
31812
31820
|
* The **`baseVal`** read-only property of the SVGAnimatedRect interface represents the current non-animated value of the viewBox attribute of an SVG element.
|
|
31813
31821
|
*
|
|
31814
31822
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect/baseVal)
|
|
31815
31823
|
*/
|
|
31816
|
-
readonly baseVal:
|
|
31824
|
+
readonly baseVal: SVGRect;
|
|
31817
31825
|
}
|
|
31818
31826
|
|
|
31819
31827
|
declare var SVGAnimatedRect: {
|
|
@@ -33190,7 +33198,7 @@ declare var SVGFETurbulenceElement: {
|
|
|
33190
33198
|
*
|
|
33191
33199
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement)
|
|
33192
33200
|
*/
|
|
33193
|
-
interface SVGFilterElement extends SVGElement
|
|
33201
|
+
interface SVGFilterElement extends SVGElement {
|
|
33194
33202
|
/**
|
|
33195
33203
|
* The **`filterUnits`** read-only property of the SVGFilterElement interface reflects the filterUnits attribute of the given <filter> element. It takes one of the SVG_UNIT_TYPE_* constants defined in SVGUnitTypes.
|
|
33196
33204
|
*
|
|
@@ -33333,7 +33341,7 @@ interface SVGGeometryElement extends SVGGraphicsElement {
|
|
|
33333
33341
|
*
|
|
33334
33342
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/getPointAtLength)
|
|
33335
33343
|
*/
|
|
33336
|
-
getPointAtLength(distance: number):
|
|
33344
|
+
getPointAtLength(distance: number): SVGPoint;
|
|
33337
33345
|
/**
|
|
33338
33346
|
* The **`SVGGeometryElement.getTotalLength()`** method returns the user agent's computed value for the total length of the path in user units.
|
|
33339
33347
|
*
|
|
@@ -33423,19 +33431,19 @@ interface SVGGraphicsElement extends SVGElement, SVGTests {
|
|
|
33423
33431
|
*
|
|
33424
33432
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getBBox)
|
|
33425
33433
|
*/
|
|
33426
|
-
getBBox(options?: SVGBoundingBoxOptions):
|
|
33434
|
+
getBBox(options?: SVGBoundingBoxOptions): SVGRect;
|
|
33427
33435
|
/**
|
|
33428
33436
|
* The **`getCTM()`** method of the SVGGraphicsElement interface represents the matrix that transforms the current element's coordinate system to its SVG viewport's coordinate system.
|
|
33429
33437
|
*
|
|
33430
33438
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getCTM)
|
|
33431
33439
|
*/
|
|
33432
|
-
getCTM():
|
|
33440
|
+
getCTM(): SVGMatrix | null;
|
|
33433
33441
|
/**
|
|
33434
33442
|
* The **`getScreenCTM()`** method of the SVGGraphicsElement interface represents the matrix that transforms the current element's coordinate system to the coordinate system of the SVG viewport for the SVG document fragment.
|
|
33435
33443
|
*
|
|
33436
33444
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getScreenCTM)
|
|
33437
33445
|
*/
|
|
33438
|
-
getScreenCTM():
|
|
33446
|
+
getScreenCTM(): SVGMatrix | null;
|
|
33439
33447
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
33440
33448
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
33441
33449
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -34097,7 +34105,7 @@ interface SVGPointList {
|
|
|
34097
34105
|
*
|
|
34098
34106
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/appendItem)
|
|
34099
34107
|
*/
|
|
34100
|
-
appendItem(newItem:
|
|
34108
|
+
appendItem(newItem: SVGPoint): SVGPoint;
|
|
34101
34109
|
/**
|
|
34102
34110
|
* The **`clear()`** method of the SVGPointList interface removes all items from the list.
|
|
34103
34111
|
*
|
|
@@ -34109,32 +34117,32 @@ interface SVGPointList {
|
|
|
34109
34117
|
*
|
|
34110
34118
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/getItem)
|
|
34111
34119
|
*/
|
|
34112
|
-
getItem(index: number):
|
|
34120
|
+
getItem(index: number): SVGPoint;
|
|
34113
34121
|
/**
|
|
34114
34122
|
* The **`initialize()`** method of the SVGPointList interface clears the list then adds a single new DOMPoint object to the list.
|
|
34115
34123
|
*
|
|
34116
34124
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/initialize)
|
|
34117
34125
|
*/
|
|
34118
|
-
initialize(newItem:
|
|
34126
|
+
initialize(newItem: SVGPoint): SVGPoint;
|
|
34119
34127
|
/**
|
|
34120
34128
|
* The **`insertItemBefore()`** method of the SVGPointList interface inserts a DOMPoint before another item in the list.
|
|
34121
34129
|
*
|
|
34122
34130
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/insertItemBefore)
|
|
34123
34131
|
*/
|
|
34124
|
-
insertItemBefore(newItem:
|
|
34132
|
+
insertItemBefore(newItem: SVGPoint, index: number): SVGPoint;
|
|
34125
34133
|
/**
|
|
34126
34134
|
* The **`removeItem()`** method of the SVGPointList interface removes a DOMPoint from the list.
|
|
34127
34135
|
*
|
|
34128
34136
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/removeItem)
|
|
34129
34137
|
*/
|
|
34130
|
-
removeItem(index: number):
|
|
34138
|
+
removeItem(index: number): SVGPoint;
|
|
34131
34139
|
/**
|
|
34132
34140
|
* The **`replaceItem()`** method of the SVGPointList interface replaces a DOMPoint in the list.
|
|
34133
34141
|
*
|
|
34134
34142
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/replaceItem)
|
|
34135
34143
|
*/
|
|
34136
|
-
replaceItem(newItem:
|
|
34137
|
-
[index: number]:
|
|
34144
|
+
replaceItem(newItem: SVGPoint, index: number): SVGPoint;
|
|
34145
|
+
[index: number]: SVGPoint;
|
|
34138
34146
|
}
|
|
34139
34147
|
|
|
34140
34148
|
declare var SVGPointList: {
|
|
@@ -34355,7 +34363,7 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
|
|
|
34355
34363
|
*
|
|
34356
34364
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/currentTranslate)
|
|
34357
34365
|
*/
|
|
34358
|
-
readonly currentTranslate:
|
|
34366
|
+
readonly currentTranslate: SVGPoint;
|
|
34359
34367
|
/**
|
|
34360
34368
|
* The **`height`** read-only property of the SVGSVGElement interface describes the vertical size of element as an SVGAnimatedLength. It reflects the <svg> element's height attribute, which may not be the SVG's rendered height.
|
|
34361
34369
|
*
|
|
@@ -34391,13 +34399,13 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
|
|
|
34391
34399
|
*
|
|
34392
34400
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/checkEnclosure)
|
|
34393
34401
|
*/
|
|
34394
|
-
checkEnclosure(element: SVGElement, rect:
|
|
34402
|
+
checkEnclosure(element: SVGElement, rect: SVGRect): boolean;
|
|
34395
34403
|
/**
|
|
34396
34404
|
* The **`checkIntersection()`** method of the SVGSVGElement interface checks if the rendered content of the given element intersects the supplied rectangle.
|
|
34397
34405
|
*
|
|
34398
34406
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/checkIntersection)
|
|
34399
34407
|
*/
|
|
34400
|
-
checkIntersection(element: SVGElement, rect:
|
|
34408
|
+
checkIntersection(element: SVGElement, rect: SVGRect): boolean;
|
|
34401
34409
|
/**
|
|
34402
34410
|
* The **`createSVGAngle()`** method of the SVGSVGElement interface creates an SVGAngle object outside of any document trees.
|
|
34403
34411
|
*
|
|
@@ -34415,7 +34423,7 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
|
|
|
34415
34423
|
*
|
|
34416
34424
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGMatrix)
|
|
34417
34425
|
*/
|
|
34418
|
-
createSVGMatrix():
|
|
34426
|
+
createSVGMatrix(): SVGMatrix;
|
|
34419
34427
|
/**
|
|
34420
34428
|
* The **`createSVGNumber()`** method of the SVGSVGElement interface creates an SVGNumber object outside of any document trees.
|
|
34421
34429
|
*
|
|
@@ -34427,13 +34435,13 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
|
|
|
34427
34435
|
*
|
|
34428
34436
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGPoint)
|
|
34429
34437
|
*/
|
|
34430
|
-
createSVGPoint():
|
|
34438
|
+
createSVGPoint(): SVGPoint;
|
|
34431
34439
|
/**
|
|
34432
34440
|
* The **`createSVGRect()`** method of the SVGSVGElement interface creates a DOMRect object outside of any document trees.
|
|
34433
34441
|
*
|
|
34434
34442
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGRect)
|
|
34435
34443
|
*/
|
|
34436
|
-
createSVGRect():
|
|
34444
|
+
createSVGRect(): SVGRect;
|
|
34437
34445
|
/**
|
|
34438
34446
|
* The **`createSVGTransform()`** method of the SVGSVGElement interface creates an SVGTransform object outside of any document trees.
|
|
34439
34447
|
*
|
|
@@ -34466,8 +34474,8 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
|
|
|
34466
34474
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/getElementById)
|
|
34467
34475
|
*/
|
|
34468
34476
|
getElementById(elementId: string): Element | null;
|
|
34469
|
-
getEnclosureList(rect:
|
|
34470
|
-
getIntersectionList(rect:
|
|
34477
|
+
getEnclosureList(rect: SVGRect, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
|
|
34478
|
+
getIntersectionList(rect: SVGRect, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
|
|
34471
34479
|
/**
|
|
34472
34480
|
* The **`pauseAnimations()`** method of the SVGSVGElement interface suspends (i.e., pauses) all currently running animations that are defined within the SVG document fragment corresponding to this <svg> element, causing the animation clock corresponding to this document fragment to stand still until it is unpaused.
|
|
34473
34481
|
*
|
|
@@ -34769,13 +34777,13 @@ interface SVGTextContentElement extends SVGGraphicsElement {
|
|
|
34769
34777
|
*
|
|
34770
34778
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getEndPositionOfChar)
|
|
34771
34779
|
*/
|
|
34772
|
-
getEndPositionOfChar(charnum: number):
|
|
34780
|
+
getEndPositionOfChar(charnum: number): SVGPoint;
|
|
34773
34781
|
/**
|
|
34774
34782
|
* The **`getExtentOfChar()`** method of the SVGTextContentElement interface the represents computed tight bounding box of the glyph cell that corresponds to a given typographic character.
|
|
34775
34783
|
*
|
|
34776
34784
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getExtentOfChar)
|
|
34777
34785
|
*/
|
|
34778
|
-
getExtentOfChar(charnum: number):
|
|
34786
|
+
getExtentOfChar(charnum: number): SVGRect;
|
|
34779
34787
|
/**
|
|
34780
34788
|
* The **`getNumberOfChars()`** method of the SVGTextContentElement interface represents the total number of addressable characters available for rendering within the current element, regardless of whether they will be rendered.
|
|
34781
34789
|
*
|
|
@@ -34793,7 +34801,7 @@ interface SVGTextContentElement extends SVGGraphicsElement {
|
|
|
34793
34801
|
*
|
|
34794
34802
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getStartPositionOfChar)
|
|
34795
34803
|
*/
|
|
34796
|
-
getStartPositionOfChar(charnum: number):
|
|
34804
|
+
getStartPositionOfChar(charnum: number): SVGPoint;
|
|
34797
34805
|
/**
|
|
34798
34806
|
* The **`getSubStringLength()`** method of the SVGTextContentElement interface represents the computed length of the formatted text advance distance for a substring of text within the element.
|
|
34799
34807
|
*
|
|
@@ -34964,7 +34972,7 @@ interface SVGTransform {
|
|
|
34964
34972
|
*
|
|
34965
34973
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/matrix)
|
|
34966
34974
|
*/
|
|
34967
|
-
readonly matrix:
|
|
34975
|
+
readonly matrix: SVGMatrix;
|
|
34968
34976
|
/**
|
|
34969
34977
|
* The **`type`** read-only property of the SVGTransform interface represents the type of transformation applied, specified by one of the SVG_TRANSFORM_* constants defined on this interface.
|
|
34970
34978
|
*
|
|
@@ -36058,7 +36066,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
|
|
|
36058
36066
|
*
|
|
36059
36067
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe)
|
|
36060
36068
|
*/
|
|
36061
|
-
setHTMLUnsafe(html: string): void;
|
|
36069
|
+
setHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void;
|
|
36062
36070
|
addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
36063
36071
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
36064
36072
|
removeEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -45209,7 +45217,7 @@ type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
|
45209
45217
|
type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8";
|
|
45210
45218
|
type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
|
|
45211
45219
|
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
45212
|
-
type GPUVertexFormat = "float16" | "float16x2" | "float16x4" | "float32" | "float32x2" | "float32x3" | "float32x4" | "sint16" | "sint16x2" | "sint16x4" | "sint32" | "sint32x2" | "sint32x3" | "sint32x4" | "sint8" | "sint8x2" | "sint8x4" | "snorm16" | "snorm16x2" | "snorm16x4" | "snorm8" | "snorm8x2" | "snorm8x4" | "uint16" | "uint16x2" | "uint16x4" | "uint32" | "uint32x2" | "uint32x3" | "uint32x4" | "uint8" | "uint8x2" | "uint8x4" | "unorm10-10-10-2" | "unorm16" | "unorm16x2" | "unorm16x4" | "unorm8" | "unorm8x2" | "unorm8x4" | "unorm8x4-bgra";
|
|
45220
|
+
type GPUVertexFormat = "float16" | "float16x2" | "float16x4" | "float32" | "float32x2" | "float32x3" | "float32x4" | "sint16" | "sint16x2" | "sint16x4" | "sint32" | "sint32x2" | "sint32x3" | "sint32x4" | "sint8" | "sint8x2" | "sint8x4" | "snorm10-10-10-2" | "snorm16" | "snorm16x2" | "snorm16x4" | "snorm8" | "snorm8x2" | "snorm8x4" | "uint16" | "uint16x2" | "uint16x4" | "uint32" | "uint32x2" | "uint32x3" | "uint32x4" | "uint8" | "uint8x2" | "uint8x4" | "unorm10-10-10-2" | "unorm16" | "unorm16x2" | "unorm16x4" | "unorm8" | "unorm8x2" | "unorm8x4" | "unorm8x4-bgra";
|
|
45213
45221
|
type GPUVertexStepMode = "instance" | "vertex";
|
|
45214
45222
|
type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble";
|
|
45215
45223
|
type GamepadHapticsResult = "complete" | "preempted";
|