@types/web 0.0.334 → 0.0.336
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 +258 -1
- package/package.json +1 -1
- package/ts5.5/index.d.ts +258 -1
- package/ts5.6/index.d.ts +258 -1
- package/ts5.9/index.d.ts +258 -1
package/README.md
CHANGED
|
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
|
|
|
47
47
|
|
|
48
48
|
## Deploy Metadata
|
|
49
49
|
|
|
50
|
-
You can read what changed in version 0.0.
|
|
50
|
+
You can read what changed in version 0.0.336 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.336.
|
package/index.d.ts
CHANGED
|
@@ -818,12 +818,43 @@ interface GPUBindGroupEntry {
|
|
|
818
818
|
resource: GPUBindingResource;
|
|
819
819
|
}
|
|
820
820
|
|
|
821
|
+
interface GPUBindGroupLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
822
|
+
entries: GPUBindGroupLayoutEntry[];
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
interface GPUBindGroupLayoutEntry {
|
|
826
|
+
binding: GPUIndex32;
|
|
827
|
+
buffer?: GPUBufferBindingLayout;
|
|
828
|
+
externalTexture?: GPUExternalTextureBindingLayout;
|
|
829
|
+
sampler?: GPUSamplerBindingLayout;
|
|
830
|
+
storageTexture?: GPUStorageTextureBindingLayout;
|
|
831
|
+
texture?: GPUTextureBindingLayout;
|
|
832
|
+
visibility: GPUShaderStageFlags;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
interface GPUBlendComponent {
|
|
836
|
+
dstFactor?: GPUBlendFactor;
|
|
837
|
+
operation?: GPUBlendOperation;
|
|
838
|
+
srcFactor?: GPUBlendFactor;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
interface GPUBlendState {
|
|
842
|
+
alpha: GPUBlendComponent;
|
|
843
|
+
color: GPUBlendComponent;
|
|
844
|
+
}
|
|
845
|
+
|
|
821
846
|
interface GPUBufferBinding {
|
|
822
847
|
buffer: GPUBuffer;
|
|
823
848
|
offset?: GPUSize64;
|
|
824
849
|
size?: GPUSize64;
|
|
825
850
|
}
|
|
826
851
|
|
|
852
|
+
interface GPUBufferBindingLayout {
|
|
853
|
+
hasDynamicOffset?: boolean;
|
|
854
|
+
minBindingSize?: GPUSize64;
|
|
855
|
+
type?: GPUBufferBindingType;
|
|
856
|
+
}
|
|
857
|
+
|
|
827
858
|
interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
|
|
828
859
|
mappedAtCreation?: boolean;
|
|
829
860
|
size: GPUSize64;
|
|
@@ -851,6 +882,12 @@ interface GPUColorDict {
|
|
|
851
882
|
r: number;
|
|
852
883
|
}
|
|
853
884
|
|
|
885
|
+
interface GPUColorTargetState {
|
|
886
|
+
blend?: GPUBlendState;
|
|
887
|
+
format: GPUTextureFormat;
|
|
888
|
+
writeMask?: GPUColorWriteFlags;
|
|
889
|
+
}
|
|
890
|
+
|
|
854
891
|
interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
|
|
855
892
|
}
|
|
856
893
|
|
|
@@ -882,17 +919,49 @@ interface GPUCopyExternalImageSourceInfo {
|
|
|
882
919
|
source: GPUCopyExternalImageSource;
|
|
883
920
|
}
|
|
884
921
|
|
|
922
|
+
interface GPUDepthStencilState {
|
|
923
|
+
depthBias?: GPUDepthBias;
|
|
924
|
+
depthBiasClamp?: number;
|
|
925
|
+
depthBiasSlopeScale?: number;
|
|
926
|
+
depthCompare?: GPUCompareFunction;
|
|
927
|
+
depthWriteEnabled?: boolean;
|
|
928
|
+
format: GPUTextureFormat;
|
|
929
|
+
stencilBack?: GPUStencilFaceState;
|
|
930
|
+
stencilFront?: GPUStencilFaceState;
|
|
931
|
+
stencilReadMask?: GPUStencilValue;
|
|
932
|
+
stencilWriteMask?: GPUStencilValue;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
interface GPUDeviceDescriptor extends GPUObjectDescriptorBase {
|
|
936
|
+
defaultQueue?: GPUQueueDescriptor;
|
|
937
|
+
requiredFeatures?: GPUFeatureName[];
|
|
938
|
+
requiredLimits?: Record<string, GPUSize64 | undefined>;
|
|
939
|
+
}
|
|
940
|
+
|
|
885
941
|
interface GPUExtent3DDict {
|
|
886
942
|
depthOrArrayLayers?: GPUIntegerCoordinate;
|
|
887
943
|
height?: GPUIntegerCoordinate;
|
|
888
944
|
width: GPUIntegerCoordinate;
|
|
889
945
|
}
|
|
890
946
|
|
|
947
|
+
interface GPUExternalTextureBindingLayout {
|
|
948
|
+
}
|
|
949
|
+
|
|
891
950
|
interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
|
|
892
951
|
colorSpace?: PredefinedColorSpace;
|
|
893
952
|
source: HTMLVideoElement | VideoFrame;
|
|
894
953
|
}
|
|
895
954
|
|
|
955
|
+
interface GPUFragmentState extends GPUProgrammableStage {
|
|
956
|
+
targets: (GPUColorTargetState | null)[];
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
interface GPUMultisampleState {
|
|
960
|
+
alphaToCoverageEnabled?: boolean;
|
|
961
|
+
count?: GPUSize32;
|
|
962
|
+
mask?: GPUSampleMask;
|
|
963
|
+
}
|
|
964
|
+
|
|
896
965
|
interface GPUObjectDescriptorBase {
|
|
897
966
|
label?: string;
|
|
898
967
|
}
|
|
@@ -920,6 +989,14 @@ interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
|
920
989
|
bindGroupLayouts: (GPUBindGroupLayout | null)[];
|
|
921
990
|
}
|
|
922
991
|
|
|
992
|
+
interface GPUPrimitiveState {
|
|
993
|
+
cullMode?: GPUCullMode;
|
|
994
|
+
frontFace?: GPUFrontFace;
|
|
995
|
+
stripIndexFormat?: GPUIndexFormat;
|
|
996
|
+
topology?: GPUPrimitiveTopology;
|
|
997
|
+
unclippedDepth?: boolean;
|
|
998
|
+
}
|
|
999
|
+
|
|
923
1000
|
interface GPUProgrammableStage {
|
|
924
1001
|
constants?: Record<string, GPUPipelineConstantValue>;
|
|
925
1002
|
entryPoint?: string;
|
|
@@ -931,6 +1008,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
|
|
|
931
1008
|
type: GPUQueryType;
|
|
932
1009
|
}
|
|
933
1010
|
|
|
1011
|
+
interface GPUQueueDescriptor extends GPUObjectDescriptorBase {
|
|
1012
|
+
}
|
|
1013
|
+
|
|
934
1014
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
935
1015
|
}
|
|
936
1016
|
|
|
@@ -980,6 +1060,23 @@ interface GPURenderPassTimestampWrites {
|
|
|
980
1060
|
querySet: GPUQuerySet;
|
|
981
1061
|
}
|
|
982
1062
|
|
|
1063
|
+
interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
1064
|
+
depthStencil?: GPUDepthStencilState;
|
|
1065
|
+
fragment?: GPUFragmentState;
|
|
1066
|
+
multisample?: GPUMultisampleState;
|
|
1067
|
+
primitive?: GPUPrimitiveState;
|
|
1068
|
+
vertex: GPUVertexState;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
interface GPURequestAdapterOptions {
|
|
1072
|
+
forceFallbackAdapter?: boolean;
|
|
1073
|
+
powerPreference?: GPUPowerPreference;
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
interface GPUSamplerBindingLayout {
|
|
1077
|
+
type?: GPUSamplerBindingType;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
983
1080
|
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
984
1081
|
addressModeU?: GPUAddressMode;
|
|
985
1082
|
addressModeV?: GPUAddressMode;
|
|
@@ -997,6 +1094,19 @@ interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
|
|
|
997
1094
|
code: string;
|
|
998
1095
|
}
|
|
999
1096
|
|
|
1097
|
+
interface GPUStencilFaceState {
|
|
1098
|
+
compare?: GPUCompareFunction;
|
|
1099
|
+
depthFailOp?: GPUStencilOperation;
|
|
1100
|
+
failOp?: GPUStencilOperation;
|
|
1101
|
+
passOp?: GPUStencilOperation;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
interface GPUStorageTextureBindingLayout {
|
|
1105
|
+
access?: GPUStorageTextureAccess;
|
|
1106
|
+
format: GPUTextureFormat;
|
|
1107
|
+
viewDimension?: GPUTextureViewDimension;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1000
1110
|
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
1001
1111
|
buffer: GPUBuffer;
|
|
1002
1112
|
}
|
|
@@ -1014,6 +1124,12 @@ interface GPUTexelCopyTextureInfo {
|
|
|
1014
1124
|
texture: GPUTexture;
|
|
1015
1125
|
}
|
|
1016
1126
|
|
|
1127
|
+
interface GPUTextureBindingLayout {
|
|
1128
|
+
multisampled?: boolean;
|
|
1129
|
+
sampleType?: GPUTextureSampleType;
|
|
1130
|
+
viewDimension?: GPUTextureViewDimension;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1017
1133
|
interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
|
|
1018
1134
|
dimension?: GPUTextureDimension;
|
|
1019
1135
|
format: GPUTextureFormat;
|
|
@@ -1039,6 +1155,22 @@ interface GPUUncapturedErrorEventInit extends EventInit {
|
|
|
1039
1155
|
error: GPUError;
|
|
1040
1156
|
}
|
|
1041
1157
|
|
|
1158
|
+
interface GPUVertexAttribute {
|
|
1159
|
+
format: GPUVertexFormat;
|
|
1160
|
+
offset: GPUSize64;
|
|
1161
|
+
shaderLocation: GPUIndex32;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
interface GPUVertexBufferLayout {
|
|
1165
|
+
arrayStride: GPUSize64;
|
|
1166
|
+
attributes: GPUVertexAttribute[];
|
|
1167
|
+
stepMode?: GPUVertexStepMode;
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
interface GPUVertexState extends GPUProgrammableStage {
|
|
1171
|
+
buffers?: (GPUVertexBufferLayout | null)[];
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1042
1174
|
interface GainOptions extends AudioNodeOptions {
|
|
1043
1175
|
gain?: number;
|
|
1044
1176
|
}
|
|
@@ -11101,6 +11233,7 @@ interface CustomElementRegistry {
|
|
|
11101
11233
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName)
|
|
11102
11234
|
*/
|
|
11103
11235
|
getName(constructor: CustomElementConstructor): string | null;
|
|
11236
|
+
initialize(root: Node): void;
|
|
11104
11237
|
/**
|
|
11105
11238
|
* The **`upgrade()`** method of the CustomElementRegistry interface upgrades all shadow-containing custom elements in a Node subtree, even before they are connected to the main document.
|
|
11106
11239
|
*
|
|
@@ -13098,6 +13231,7 @@ interface DocumentOrShadowRoot {
|
|
|
13098
13231
|
readonly activeElement: Element | null;
|
|
13099
13232
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */
|
|
13100
13233
|
adoptedStyleSheets: CSSStyleSheet[];
|
|
13234
|
+
readonly customElementRegistry: CustomElementRegistry | null;
|
|
13101
13235
|
/**
|
|
13102
13236
|
* Returns document's fullscreen element.
|
|
13103
13237
|
*
|
|
@@ -13407,6 +13541,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
|
|
|
13407
13541
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom)
|
|
13408
13542
|
*/
|
|
13409
13543
|
readonly currentCSSZoom: number;
|
|
13544
|
+
readonly customElementRegistry: CustomElementRegistry | null;
|
|
13410
13545
|
/**
|
|
13411
13546
|
* The **`id`** property of the Element interface represents the element's identifier, reflecting the id global attribute.
|
|
13412
13547
|
*
|
|
@@ -14965,6 +15100,76 @@ declare var FragmentDirective: {
|
|
|
14965
15100
|
new(): FragmentDirective;
|
|
14966
15101
|
};
|
|
14967
15102
|
|
|
15103
|
+
/**
|
|
15104
|
+
* The **`GPU`** interface of the WebGPU API is the starting point for using WebGPU. It can be used to return a GPUAdapter from which you can request devices, configure features and limits, and more.
|
|
15105
|
+
* Available only in secure contexts.
|
|
15106
|
+
*
|
|
15107
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU)
|
|
15108
|
+
*/
|
|
15109
|
+
interface GPU {
|
|
15110
|
+
/**
|
|
15111
|
+
* The **`wgslLanguageFeatures`** read-only property of the GPU interface returns a WGSLLanguageFeatures object that reports the WGSL language extensions supported by the WebGPU implementation.
|
|
15112
|
+
*
|
|
15113
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/wgslLanguageFeatures)
|
|
15114
|
+
*/
|
|
15115
|
+
readonly wgslLanguageFeatures: WGSLLanguageFeatures;
|
|
15116
|
+
/**
|
|
15117
|
+
* The **`getPreferredCanvasFormat()`** method of the GPU interface returns the optimal canvas texture format for displaying 8-bit depth, standard dynamic range content on the current system.
|
|
15118
|
+
*
|
|
15119
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/getPreferredCanvasFormat)
|
|
15120
|
+
*/
|
|
15121
|
+
getPreferredCanvasFormat(): GPUTextureFormat;
|
|
15122
|
+
/**
|
|
15123
|
+
* The **`requestAdapter()`** method of the GPU interface returns a Promise that fulfills with a GPUAdapter object instance. From this you can request a GPUDevice, adapter info, features, and limits.
|
|
15124
|
+
*
|
|
15125
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/requestAdapter)
|
|
15126
|
+
*/
|
|
15127
|
+
requestAdapter(options?: GPURequestAdapterOptions): Promise<GPUAdapter | null>;
|
|
15128
|
+
}
|
|
15129
|
+
|
|
15130
|
+
declare var GPU: {
|
|
15131
|
+
prototype: GPU;
|
|
15132
|
+
new(): GPU;
|
|
15133
|
+
};
|
|
15134
|
+
|
|
15135
|
+
/**
|
|
15136
|
+
* The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits.
|
|
15137
|
+
* Available only in secure contexts.
|
|
15138
|
+
*
|
|
15139
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter)
|
|
15140
|
+
*/
|
|
15141
|
+
interface GPUAdapter {
|
|
15142
|
+
/**
|
|
15143
|
+
* The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter.
|
|
15144
|
+
*
|
|
15145
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features)
|
|
15146
|
+
*/
|
|
15147
|
+
readonly features: GPUSupportedFeatures;
|
|
15148
|
+
/**
|
|
15149
|
+
* The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter.
|
|
15150
|
+
*
|
|
15151
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info)
|
|
15152
|
+
*/
|
|
15153
|
+
readonly info: GPUAdapterInfo;
|
|
15154
|
+
/**
|
|
15155
|
+
* The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter.
|
|
15156
|
+
*
|
|
15157
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits)
|
|
15158
|
+
*/
|
|
15159
|
+
readonly limits: GPUSupportedLimits;
|
|
15160
|
+
/**
|
|
15161
|
+
* The **`requestDevice()`** method of the GPUAdapter interface returns a Promise that fulfills with a GPUDevice object, which is the primary interface for communicating with the GPU.
|
|
15162
|
+
*
|
|
15163
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice)
|
|
15164
|
+
*/
|
|
15165
|
+
requestDevice(descriptor?: GPUDeviceDescriptor): Promise<GPUDevice>;
|
|
15166
|
+
}
|
|
15167
|
+
|
|
15168
|
+
declare var GPUAdapter: {
|
|
15169
|
+
prototype: GPUAdapter;
|
|
15170
|
+
new(): GPUAdapter;
|
|
15171
|
+
};
|
|
15172
|
+
|
|
14968
15173
|
/**
|
|
14969
15174
|
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
14970
15175
|
* Available only in secure contexts.
|
|
@@ -15418,6 +15623,12 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
15418
15623
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
15419
15624
|
*/
|
|
15420
15625
|
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
15626
|
+
/**
|
|
15627
|
+
* The **`createBindGroupLayout()`** method of the GPUDevice interface creates a GPUBindGroupLayout that defines the structure and purpose of related GPU resources such as buffers that will be used in a pipeline, and is used as a template when creating GPUBindGroups.
|
|
15628
|
+
*
|
|
15629
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroupLayout)
|
|
15630
|
+
*/
|
|
15631
|
+
createBindGroupLayout(descriptor: GPUBindGroupLayoutDescriptor): GPUBindGroupLayout;
|
|
15421
15632
|
/**
|
|
15422
15633
|
* The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
|
|
15423
15634
|
*
|
|
@@ -15460,6 +15671,18 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
15460
15671
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
|
|
15461
15672
|
*/
|
|
15462
15673
|
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
|
|
15674
|
+
/**
|
|
15675
|
+
* The **`createRenderPipeline()`** method of the GPUDevice interface creates a GPURenderPipeline that can control the vertex and fragment shader stages and be used in a GPURenderPassEncoder or GPURenderBundleEncoder.
|
|
15676
|
+
*
|
|
15677
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipeline)
|
|
15678
|
+
*/
|
|
15679
|
+
createRenderPipeline(descriptor: GPURenderPipelineDescriptor): GPURenderPipeline;
|
|
15680
|
+
/**
|
|
15681
|
+
* The **`createRenderPipelineAsync()`** method of the GPUDevice interface returns a Promise that fulfills with a GPURenderPipeline, which can control the vertex and fragment shader stages and be used in a GPURenderPassEncoder or GPURenderBundleEncoder, once the pipeline can be used without any stalling.
|
|
15682
|
+
*
|
|
15683
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipelineAsync)
|
|
15684
|
+
*/
|
|
15685
|
+
createRenderPipelineAsync(descriptor: GPURenderPipelineDescriptor): Promise<GPURenderPipeline>;
|
|
15463
15686
|
/**
|
|
15464
15687
|
* The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
|
|
15465
15688
|
*
|
|
@@ -21083,6 +21306,7 @@ interface HTMLTemplateElement extends HTMLElement {
|
|
|
21083
21306
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootClonable)
|
|
21084
21307
|
*/
|
|
21085
21308
|
shadowRootClonable: boolean;
|
|
21309
|
+
shadowRootCustomElementRegistry: string;
|
|
21086
21310
|
/**
|
|
21087
21311
|
* The **`shadowRootDelegatesFocus`** property of the HTMLTemplateElement interface reflects the value of the shadowrootdelegatesfocus attribute of the associated <template> element.
|
|
21088
21312
|
*
|
|
@@ -25445,6 +25669,12 @@ declare var NavigationHistoryEntry: {
|
|
|
25445
25669
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController)
|
|
25446
25670
|
*/
|
|
25447
25671
|
interface NavigationPrecommitController {
|
|
25672
|
+
/**
|
|
25673
|
+
* The **`addHandler()`** method of the NavigationPrecommitController interface allows you to dynamically add a handler callback function in precommit code, which will then be run after the navigation has committed.
|
|
25674
|
+
*
|
|
25675
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController/addHandler)
|
|
25676
|
+
*/
|
|
25677
|
+
addHandler(handler: NavigationInterceptHandler): void;
|
|
25448
25678
|
/**
|
|
25449
25679
|
* The **`redirect()`** method of the NavigationPrecommitController interface redirects the browser to a specified URL and specifies history behavior and any desired state information.
|
|
25450
25680
|
*
|
|
@@ -25533,7 +25763,7 @@ declare var NavigationTransition: {
|
|
|
25533
25763
|
*
|
|
25534
25764
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator)
|
|
25535
25765
|
*/
|
|
25536
|
-
interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
|
25766
|
+
interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorGPU, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
|
25537
25767
|
/**
|
|
25538
25768
|
* The **`clipboard`** read-only property of the Navigator interface returns a Clipboard object used to read and write the clipboard's contents.
|
|
25539
25769
|
* Available only in secure contexts.
|
|
@@ -25698,6 +25928,15 @@ interface NavigatorCookies {
|
|
|
25698
25928
|
readonly cookieEnabled: boolean;
|
|
25699
25929
|
}
|
|
25700
25930
|
|
|
25931
|
+
interface NavigatorGPU {
|
|
25932
|
+
/**
|
|
25933
|
+
* Available only in secure contexts.
|
|
25934
|
+
*
|
|
25935
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/gpu)
|
|
25936
|
+
*/
|
|
25937
|
+
readonly gpu: GPU;
|
|
25938
|
+
}
|
|
25939
|
+
|
|
25701
25940
|
interface NavigatorID {
|
|
25702
25941
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) */
|
|
25703
25942
|
readonly appCodeName: string;
|
|
@@ -43922,7 +44161,9 @@ type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer |
|
|
|
43922
44161
|
type GPUBufferDynamicOffset = number;
|
|
43923
44162
|
type GPUBufferUsageFlags = number;
|
|
43924
44163
|
type GPUColor = number[] | GPUColorDict;
|
|
44164
|
+
type GPUColorWriteFlags = number;
|
|
43925
44165
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas;
|
|
44166
|
+
type GPUDepthBias = number;
|
|
43926
44167
|
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
43927
44168
|
type GPUFlagsConstant = number;
|
|
43928
44169
|
type GPUIndex32 = number;
|
|
@@ -43932,6 +44173,8 @@ type GPUMapModeFlags = number;
|
|
|
43932
44173
|
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
43933
44174
|
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
43934
44175
|
type GPUPipelineConstantValue = number;
|
|
44176
|
+
type GPUSampleMask = number;
|
|
44177
|
+
type GPUShaderStageFlags = number;
|
|
43935
44178
|
type GPUSignedOffset32 = number;
|
|
43936
44179
|
type GPUSize32 = number;
|
|
43937
44180
|
type GPUSize32Out = number;
|
|
@@ -44047,24 +44290,38 @@ type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
|
44047
44290
|
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
44048
44291
|
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
44049
44292
|
type GPUAutoLayoutMode = "auto";
|
|
44293
|
+
type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "zero";
|
|
44294
|
+
type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract";
|
|
44295
|
+
type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform";
|
|
44050
44296
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
44051
44297
|
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
44052
44298
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
44053
44299
|
type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
|
|
44054
44300
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
44301
|
+
type GPUCullMode = "back" | "front" | "none";
|
|
44055
44302
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
44056
44303
|
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
44304
|
+
type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query";
|
|
44057
44305
|
type GPUFilterMode = "linear" | "nearest";
|
|
44306
|
+
type GPUFrontFace = "ccw" | "cw";
|
|
44058
44307
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
44059
44308
|
type GPULoadOp = "clear" | "load";
|
|
44060
44309
|
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
44061
44310
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
44311
|
+
type GPUPowerPreference = "high-performance" | "low-power";
|
|
44312
|
+
type GPUPrimitiveTopology = "line-list" | "line-strip" | "point-list" | "triangle-list" | "triangle-strip";
|
|
44062
44313
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
44314
|
+
type GPUSamplerBindingType = "comparison" | "filtering" | "non-filtering";
|
|
44315
|
+
type GPUStencilOperation = "decrement-clamp" | "decrement-wrap" | "increment-clamp" | "increment-wrap" | "invert" | "keep" | "replace" | "zero";
|
|
44316
|
+
type GPUStorageTextureAccess = "read-only" | "read-write" | "write-only";
|
|
44063
44317
|
type GPUStoreOp = "discard" | "store";
|
|
44064
44318
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
44065
44319
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
44066
44320
|
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";
|
|
44321
|
+
type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
|
|
44067
44322
|
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
44323
|
+
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";
|
|
44324
|
+
type GPUVertexStepMode = "instance" | "vertex";
|
|
44068
44325
|
type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble";
|
|
44069
44326
|
type GamepadHapticsResult = "complete" | "preempted";
|
|
44070
44327
|
type GamepadMappingType = "" | "standard" | "xr-standard";
|