CoolFace
Apppublic

AK-21/Graphite-Industrial-Intelligence

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
lib.dom.d.ts45126 linesDownload Raw Back to lib
1/*! *****************************************************************************2Copyright (c) Microsoft Corporation. All rights reserved.3Licensed under the Apache License, Version 2.0 (the "License"); you may not use4this file except in compliance with the License. You may obtain a copy of the5License at http://www.apache.org/licenses/LICENSE-2.06 7THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY8KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED9WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,10MERCHANTABILITY OR NON-INFRINGEMENT.11 12See the Apache Version 2.0 License for specific language governing permissions13and limitations under the License.14***************************************************************************** */15 16 17/// <reference lib="es2015" />18/// <reference lib="es2018.asynciterable" />19 20/////////////////////////////21/// Window APIs22/////////////////////////////23 24interface AacEncoderConfig {25    format?: AacBitstreamFormat;26}27 28interface AddEventListenerOptions extends EventListenerOptions {29    once?: boolean;30    passive?: boolean;31    signal?: AbortSignal;32}33 34interface AddressErrors {35    addressLine?: string;36    city?: string;37    country?: string;38    dependentLocality?: string;39    organization?: string;40    phone?: string;41    postalCode?: string;42    recipient?: string;43    region?: string;44    sortingCode?: string;45}46 47interface AesCbcParams extends Algorithm {48    iv: BufferSource;49}50 51interface AesCtrParams extends Algorithm {52    counter: BufferSource;53    length: number;54}55 56interface AesDerivedKeyParams extends Algorithm {57    length: number;58}59 60interface AesGcmParams extends Algorithm {61    additionalData?: BufferSource;62    iv: BufferSource;63    tagLength?: number;64}65 66interface AesKeyAlgorithm extends KeyAlgorithm {67    length: number;68}69 70interface AesKeyGenParams extends Algorithm {71    length: number;72}73 74interface Algorithm {75    name: string;76}77 78interface AllAcceptedCredentialsOptions {79    allAcceptedCredentialIds: Base64URLString[];80    rpId: string;81    userId: Base64URLString;82}83 84interface AnalyserOptions extends AudioNodeOptions {85    fftSize?: number;86    maxDecibels?: number;87    minDecibels?: number;88    smoothingTimeConstant?: number;89}90 91interface AnimationEventInit extends EventInit {92    animationName?: string;93    elapsedTime?: number;94    pseudoElement?: string;95}96 97interface AnimationPlaybackEventInit extends EventInit {98    currentTime?: CSSNumberish | null;99    timelineTime?: CSSNumberish | null;100}101 102interface AssignedNodesOptions {103    flatten?: boolean;104}105 106interface AudioBufferOptions {107    length: number;108    numberOfChannels?: number;109    sampleRate: number;110}111 112interface AudioBufferSourceOptions {113    buffer?: AudioBuffer | null;114    detune?: number;115    loop?: boolean;116    loopEnd?: number;117    loopStart?: number;118    playbackRate?: number;119}120 121interface AudioConfiguration {122    bitrate?: number;123    channels?: string;124    contentType: string;125    samplerate?: number;126    spatialRendering?: boolean;127}128 129interface AudioContextOptions {130    latencyHint?: AudioContextLatencyCategory | number;131    sampleRate?: number;132}133 134interface AudioDataCopyToOptions {135    format?: AudioSampleFormat;136    frameCount?: number;137    frameOffset?: number;138    planeIndex: number;139}140 141interface AudioDataInit {142    data: BufferSource;143    format: AudioSampleFormat;144    numberOfChannels: number;145    numberOfFrames: number;146    sampleRate: number;147    timestamp: number;148    transfer?: ArrayBuffer[];149}150 151interface AudioDecoderConfig {152    codec: string;153    description?: AllowSharedBufferSource;154    numberOfChannels: number;155    sampleRate: number;156}157 158interface AudioDecoderInit {159    error: WebCodecsErrorCallback;160    output: AudioDataOutputCallback;161}162 163interface AudioDecoderSupport {164    config?: AudioDecoderConfig;165    supported?: boolean;166}167 168interface AudioEncoderConfig {169    aac?: AacEncoderConfig;170    bitrate?: number;171    bitrateMode?: BitrateMode;172    codec: string;173    numberOfChannels: number;174    opus?: OpusEncoderConfig;175    sampleRate: number;176}177 178interface AudioEncoderInit {179    error: WebCodecsErrorCallback;180    output: EncodedAudioChunkOutputCallback;181}182 183interface AudioEncoderSupport {184    config?: AudioEncoderConfig;185    supported?: boolean;186}187 188interface AudioNodeOptions {189    channelCount?: number;190    channelCountMode?: ChannelCountMode;191    channelInterpretation?: ChannelInterpretation;192}193 194interface AudioProcessingEventInit extends EventInit {195    inputBuffer: AudioBuffer;196    outputBuffer: AudioBuffer;197    playbackTime: number;198}199 200interface AudioTimestamp {201    contextTime?: number;202    performanceTime?: DOMHighResTimeStamp;203}204 205interface AudioWorkletNodeOptions extends AudioNodeOptions {206    numberOfInputs?: number;207    numberOfOutputs?: number;208    outputChannelCount?: number[];209    parameterData?: Record<string, number>;210    processorOptions?: any;211}212 213interface AuthenticationExtensionsClientInputs {214    appid?: string;215    credProps?: boolean;216    credentialProtectionPolicy?: string;217    enforceCredentialProtectionPolicy?: boolean;218    hmacCreateSecret?: boolean;219    largeBlob?: AuthenticationExtensionsLargeBlobInputs;220    minPinLength?: boolean;221    prf?: AuthenticationExtensionsPRFInputs;222}223 224interface AuthenticationExtensionsClientInputsJSON {225    appid?: string;226    credProps?: boolean;227    largeBlob?: AuthenticationExtensionsLargeBlobInputsJSON;228    prf?: AuthenticationExtensionsPRFInputsJSON;229}230 231interface AuthenticationExtensionsClientOutputs {232    appid?: boolean;233    credProps?: CredentialPropertiesOutput;234    hmacCreateSecret?: boolean;235    largeBlob?: AuthenticationExtensionsLargeBlobOutputs;236    prf?: AuthenticationExtensionsPRFOutputs;237}238 239interface AuthenticationExtensionsClientOutputsJSON {240    appid?: boolean;241    credProps?: CredentialPropertiesOutput;242    largeBlob?: AuthenticationExtensionsLargeBlobOutputsJSON;243    prf?: AuthenticationExtensionsPRFOutputsJSON;244}245 246interface AuthenticationExtensionsLargeBlobInputs {247    read?: boolean;248    support?: string;249    write?: BufferSource;250}251 252interface AuthenticationExtensionsLargeBlobInputsJSON {253    read?: boolean;254    support?: string;255    write?: Base64URLString;256}257 258interface AuthenticationExtensionsLargeBlobOutputs {259    blob?: ArrayBuffer;260    supported?: boolean;261    written?: boolean;262}263 264interface AuthenticationExtensionsLargeBlobOutputsJSON {265    blob?: Base64URLString;266    supported?: boolean;267    written?: boolean;268}269 270interface AuthenticationExtensionsPRFInputs {271    eval?: AuthenticationExtensionsPRFValues;272    evalByCredential?: Record<string, AuthenticationExtensionsPRFValues>;273}274 275interface AuthenticationExtensionsPRFInputsJSON {276    eval?: AuthenticationExtensionsPRFValuesJSON;277    evalByCredential?: Record<string, AuthenticationExtensionsPRFValuesJSON>;278}279 280interface AuthenticationExtensionsPRFOutputs {281    enabled?: boolean;282    results?: AuthenticationExtensionsPRFValues;283}284 285interface AuthenticationExtensionsPRFOutputsJSON {286    enabled?: boolean;287    results?: AuthenticationExtensionsPRFValuesJSON;288}289 290interface AuthenticationExtensionsPRFValues {291    first: BufferSource;292    second?: BufferSource;293}294 295interface AuthenticationExtensionsPRFValuesJSON {296    first: Base64URLString;297    second?: Base64URLString;298}299 300interface AuthenticationResponseJSON {301    authenticatorAttachment?: string;302    clientExtensionResults: AuthenticationExtensionsClientOutputsJSON;303    id: string;304    rawId: Base64URLString;305    response: AuthenticatorAssertionResponseJSON;306    type: string;307}308 309interface AuthenticatorAssertionResponseJSON {310    authenticatorData: Base64URLString;311    clientDataJSON: Base64URLString;312    signature: Base64URLString;313    userHandle?: Base64URLString;314}315 316interface AuthenticatorAttestationResponseJSON {317    attestationObject: Base64URLString;318    authenticatorData: Base64URLString;319    clientDataJSON: Base64URLString;320    publicKey?: Base64URLString;321    publicKeyAlgorithm: COSEAlgorithmIdentifier;322    transports: string[];323}324 325interface AuthenticatorSelectionCriteria {326    authenticatorAttachment?: AuthenticatorAttachment;327    requireResidentKey?: boolean;328    residentKey?: ResidentKeyRequirement;329    userVerification?: UserVerificationRequirement;330}331 332interface AvcEncoderConfig {333    format?: AvcBitstreamFormat;334}335 336interface BiquadFilterOptions extends AudioNodeOptions {337    Q?: number;338    detune?: number;339    frequency?: number;340    gain?: number;341    type?: BiquadFilterType;342}343 344interface BlobEventInit extends EventInit {345    data: Blob;346    timecode?: DOMHighResTimeStamp;347}348 349interface BlobPropertyBag {350    endings?: EndingType;351    type?: string;352}353 354interface CSSMatrixComponentOptions {355    is2D?: boolean;356}357 358interface CSSNumericType {359    angle?: number;360    flex?: number;361    frequency?: number;362    length?: number;363    percent?: number;364    percentHint?: CSSNumericBaseType;365    resolution?: number;366    time?: number;367}368 369interface CSSStyleSheetInit {370    baseURL?: string;371    disabled?: boolean;372    media?: MediaList | string;373}374 375interface CacheQueryOptions {376    ignoreMethod?: boolean;377    ignoreSearch?: boolean;378    ignoreVary?: boolean;379}380 381interface CanvasRenderingContext2DSettings {382    alpha?: boolean;383    colorSpace?: PredefinedColorSpace;384    desynchronized?: boolean;385    willReadFrequently?: boolean;386}387 388interface CaretPositionFromPointOptions {389    shadowRoots?: ShadowRoot[];390}391 392interface ChannelMergerOptions extends AudioNodeOptions {393    numberOfInputs?: number;394}395 396interface ChannelSplitterOptions extends AudioNodeOptions {397    numberOfOutputs?: number;398}399 400interface CheckVisibilityOptions {401    checkOpacity?: boolean;402    checkVisibilityCSS?: boolean;403    contentVisibilityAuto?: boolean;404    opacityProperty?: boolean;405    visibilityProperty?: boolean;406}407 408interface ClientQueryOptions {409    includeUncontrolled?: boolean;410    type?: ClientTypes;411}412 413interface ClipboardEventInit extends EventInit {414    clipboardData?: DataTransfer | null;415}416 417interface ClipboardItemOptions {418    presentationStyle?: PresentationStyle;419}420 421interface CloseEventInit extends EventInit {422    code?: number;423    reason?: string;424    wasClean?: boolean;425}426 427interface CommandEventInit extends EventInit {428    command?: string;429    source?: Element | null;430}431 432interface CompositionEventInit extends UIEventInit {433    data?: string;434}435 436interface ComputedEffectTiming extends EffectTiming {437    activeDuration?: CSSNumberish;438    currentIteration?: number | null;439    endTime?: CSSNumberish;440    localTime?: CSSNumberish | null;441    progress?: number | null;442    startTime?: CSSNumberish;443}444 445interface ComputedKeyframe {446    composite: CompositeOperationOrAuto;447    computedOffset: number;448    easing: string;449    offset: number | null;450    [property: string]: string | number | null | undefined;451}452 453interface ConstantSourceOptions {454    offset?: number;455}456 457interface ConstrainBooleanOrDOMStringParameters {458    exact?: boolean | string;459    ideal?: boolean | string;460}461 462interface ConstrainBooleanParameters {463    exact?: boolean;464    ideal?: boolean;465}466 467interface ConstrainDOMStringParameters {468    exact?: string | string[];469    ideal?: string | string[];470}471 472interface ConstrainDoubleRange extends DoubleRange {473    exact?: number;474    ideal?: number;475}476 477interface ConstrainULongRange extends ULongRange {478    exact?: number;479    ideal?: number;480}481 482interface ContentVisibilityAutoStateChangeEventInit extends EventInit {483    skipped?: boolean;484}485 486interface ConvolverOptions extends AudioNodeOptions {487    buffer?: AudioBuffer | null;488    disableNormalization?: boolean;489}490 491interface CookieChangeEventInit extends EventInit {492    changed?: CookieList;493    deleted?: CookieList;494}495 496interface CookieInit {497    domain?: string | null;498    expires?: DOMHighResTimeStamp | null;499    name: string;500    partitioned?: boolean;501    path?: string;502    sameSite?: CookieSameSite;503    value: string;504}505 506interface CookieListItem {507    name?: string;508    value?: string;509}510 511interface CookieStoreDeleteOptions {512    domain?: string | null;513    name: string;514    partitioned?: boolean;515    path?: string;516}517 518interface CookieStoreGetOptions {519    name?: string;520    url?: string;521}522 523interface CredentialCreationOptions {524    publicKey?: PublicKeyCredentialCreationOptions;525    signal?: AbortSignal;526}527 528interface CredentialPropertiesOutput {529    rk?: boolean;530}531 532interface CredentialRequestOptions {533    mediation?: CredentialMediationRequirement;534    publicKey?: PublicKeyCredentialRequestOptions;535    signal?: AbortSignal;536}537 538interface CryptoKeyPair {539    privateKey: CryptoKey;540    publicKey: CryptoKey;541}542 543interface CurrentUserDetailsOptions {544    displayName: string;545    name: string;546    rpId: string;547    userId: Base64URLString;548}549 550interface CustomEventInit<T = any> extends EventInit {551    detail?: T;552}553 554interface DOMMatrix2DInit {555    a?: number;556    b?: number;557    c?: number;558    d?: number;559    e?: number;560    f?: number;561    m11?: number;562    m12?: number;563    m21?: number;564    m22?: number;565    m41?: number;566    m42?: number;567}568 569interface DOMMatrixInit extends DOMMatrix2DInit {570    is2D?: boolean;571    m13?: number;572    m14?: number;573    m23?: number;574    m24?: number;575    m31?: number;576    m32?: number;577    m33?: number;578    m34?: number;579    m43?: number;580    m44?: number;581}582 583interface DOMPointInit {584    w?: number;585    x?: number;586    y?: number;587    z?: number;588}589 590interface DOMQuadInit {591    p1?: DOMPointInit;592    p2?: DOMPointInit;593    p3?: DOMPointInit;594    p4?: DOMPointInit;595}596 597interface DOMRectInit {598    height?: number;599    width?: number;600    x?: number;601    y?: number;602}603 604interface DelayOptions extends AudioNodeOptions {605    delayTime?: number;606    maxDelayTime?: number;607}608 609interface DeviceMotionEventAccelerationInit {610    x?: number | null;611    y?: number | null;612    z?: number | null;613}614 615interface DeviceMotionEventInit extends EventInit {616    acceleration?: DeviceMotionEventAccelerationInit;617    accelerationIncludingGravity?: DeviceMotionEventAccelerationInit;618    interval?: number;619    rotationRate?: DeviceMotionEventRotationRateInit;620}621 622interface DeviceMotionEventRotationRateInit {623    alpha?: number | null;624    beta?: number | null;625    gamma?: number | null;626}627 628interface DeviceOrientationEventInit extends EventInit {629    absolute?: boolean;630    alpha?: number | null;631    beta?: number | null;632    gamma?: number | null;633}634 635interface DisplayMediaStreamOptions {636    audio?: boolean | MediaTrackConstraints;637    video?: boolean | MediaTrackConstraints;638}639 640interface DocumentTimelineOptions {641    originTime?: DOMHighResTimeStamp;642}643 644interface DoubleRange {645    max?: number;646    min?: number;647}648 649interface DragEventInit extends MouseEventInit {650    dataTransfer?: DataTransfer | null;651}652 653interface DynamicsCompressorOptions extends AudioNodeOptions {654    attack?: number;655    knee?: number;656    ratio?: number;657    release?: number;658    threshold?: number;659}660 661interface EcKeyAlgorithm extends KeyAlgorithm {662    namedCurve: NamedCurve;663}664 665interface EcKeyGenParams extends Algorithm {666    namedCurve: NamedCurve;667}668 669interface EcKeyImportParams extends Algorithm {670    namedCurve: NamedCurve;671}672 673interface EcdhKeyDeriveParams extends Algorithm {674    public: CryptoKey;675}676 677interface EcdsaParams extends Algorithm {678    hash: HashAlgorithmIdentifier;679}680 681interface EffectTiming {682    delay?: number;683    direction?: PlaybackDirection;684    duration?: number | CSSNumericValue | string;685    easing?: string;686    endDelay?: number;687    fill?: FillMode;688    iterationStart?: number;689    iterations?: number;690    playbackRate?: number;691}692 693interface ElementCreationOptions {694    customElementRegistry?: CustomElementRegistry | null;695    is?: string;696}697 698interface ElementDefinitionOptions {699    extends?: string;700}701 702interface EncodedAudioChunkInit {703    data: AllowSharedBufferSource;704    duration?: number;705    timestamp: number;706    transfer?: ArrayBuffer[];707    type: EncodedAudioChunkType;708}709 710interface EncodedAudioChunkMetadata {711    decoderConfig?: AudioDecoderConfig;712}713 714interface EncodedVideoChunkInit {715    data: AllowSharedBufferSource;716    duration?: number;717    timestamp: number;718    type: EncodedVideoChunkType;719}720 721interface EncodedVideoChunkMetadata {722    decoderConfig?: VideoDecoderConfig;723    svc?: SvcOutputMetadata;724}725 726interface ErrorEventInit extends EventInit {727    colno?: number;728    error?: any;729    filename?: string;730    lineno?: number;731    message?: string;732}733 734interface EventInit {735    bubbles?: boolean;736    cancelable?: boolean;737    composed?: boolean;738}739 740interface EventListenerOptions {741    capture?: boolean;742}743 744interface EventModifierInit extends UIEventInit {745    altKey?: boolean;746    ctrlKey?: boolean;747    metaKey?: boolean;748    modifierAltGraph?: boolean;749    modifierCapsLock?: boolean;750    modifierFn?: boolean;751    modifierFnLock?: boolean;752    modifierHyper?: boolean;753    modifierNumLock?: boolean;754    modifierScrollLock?: boolean;755    modifierSuper?: boolean;756    modifierSymbol?: boolean;757    modifierSymbolLock?: boolean;758    shiftKey?: boolean;759}760 761interface EventSourceInit {762    withCredentials?: boolean;763}764 765interface FilePropertyBag extends BlobPropertyBag {766    lastModified?: number;767}768 769interface FileSystemCreateWritableOptions {770    keepExistingData?: boolean;771}772 773interface FileSystemFlags {774    create?: boolean;775    exclusive?: boolean;776}777 778interface FileSystemGetDirectoryOptions {779    create?: boolean;780}781 782interface FileSystemGetFileOptions {783    create?: boolean;784}785 786interface FileSystemRemoveOptions {787    recursive?: boolean;788}789 790interface FocusEventInit extends UIEventInit {791    relatedTarget?: EventTarget | null;792}793 794interface FocusOptions {795    focusVisible?: boolean;796    preventScroll?: boolean;797}798 799interface FontFaceDescriptors {800    ascentOverride?: string;801    descentOverride?: string;802    display?: FontDisplay;803    featureSettings?: string;804    lineGapOverride?: string;805    stretch?: string;806    style?: string;807    unicodeRange?: string;808    variationSettings?: string;809    weight?: string;810}811 812interface FontFaceSetLoadEventInit extends EventInit {813    fontfaces?: FontFace[];814}815 816interface FormDataEventInit extends EventInit {817    formData: FormData;818}819 820interface FullscreenOptions {821    navigationUI?: FullscreenNavigationUI;822}823 824interface GPUBindGroupDescriptor extends GPUObjectDescriptorBase {825    entries: GPUBindGroupEntry[];826    layout: GPUBindGroupLayout;827}828 829interface GPUBindGroupEntry {830    binding: GPUIndex32;831    resource: GPUBindingResource;832}833 834interface GPUBindGroupLayoutDescriptor extends GPUObjectDescriptorBase {835    entries: GPUBindGroupLayoutEntry[];836}837 838interface GPUBindGroupLayoutEntry {839    binding: GPUIndex32;840    buffer?: GPUBufferBindingLayout;841    externalTexture?: GPUExternalTextureBindingLayout;842    sampler?: GPUSamplerBindingLayout;843    storageTexture?: GPUStorageTextureBindingLayout;844    texture?: GPUTextureBindingLayout;845    visibility: GPUShaderStageFlags;846}847 848interface GPUBlendComponent {849    dstFactor?: GPUBlendFactor;850    operation?: GPUBlendOperation;851    srcFactor?: GPUBlendFactor;852}853 854interface GPUBlendState {855    alpha: GPUBlendComponent;856    color: GPUBlendComponent;857}858 859interface GPUBufferBinding {860    buffer: GPUBuffer;861    offset?: GPUSize64;862    size?: GPUSize64;863}864 865interface GPUBufferBindingLayout {866    hasDynamicOffset?: boolean;867    minBindingSize?: GPUSize64;868    type?: GPUBufferBindingType;869}870 871interface GPUBufferDescriptor extends GPUObjectDescriptorBase {872    mappedAtCreation?: boolean;873    size: GPUSize64;874    usage: GPUBufferUsageFlags;875}876 877interface GPUCanvasConfiguration {878    alphaMode?: GPUCanvasAlphaMode;879    colorSpace?: PredefinedColorSpace;880    device: GPUDevice;881    format: GPUTextureFormat;882    toneMapping?: GPUCanvasToneMapping;883    usage?: GPUTextureUsageFlags;884    viewFormats?: GPUTextureFormat[];885}886 887interface GPUCanvasToneMapping {888    mode?: GPUCanvasToneMappingMode;889}890 891interface GPUColorDict {892    a: number;893    b: number;894    g: number;895    r: number;896}897 898interface GPUColorTargetState {899    blend?: GPUBlendState;900    format: GPUTextureFormat;901    writeMask?: GPUColorWriteFlags;902}903 904interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {905}906 907interface GPUCommandEncoderDescriptor extends GPUObjectDescriptorBase {908}909 910interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {911    timestampWrites?: GPUComputePassTimestampWrites;912}913 914interface GPUComputePassTimestampWrites {915    beginningOfPassWriteIndex?: GPUSize32;916    endOfPassWriteIndex?: GPUSize32;917    querySet: GPUQuerySet;918}919 920interface GPUComputePipelineDescriptor extends GPUPipelineDescriptorBase {921    compute: GPUProgrammableStage;922}923 924interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {925    colorSpace?: PredefinedColorSpace;926    premultipliedAlpha?: boolean;927}928 929interface GPUCopyExternalImageSourceInfo {930    flipY?: boolean;931    origin?: GPUOrigin2D;932    source: GPUCopyExternalImageSource;933}934 935interface GPUDepthStencilState {936    depthBias?: GPUDepthBias;937    depthBiasClamp?: number;938    depthBiasSlopeScale?: number;939    depthCompare?: GPUCompareFunction;940    depthWriteEnabled?: boolean;941    format: GPUTextureFormat;942    stencilBack?: GPUStencilFaceState;943    stencilFront?: GPUStencilFaceState;944    stencilReadMask?: GPUStencilValue;945    stencilWriteMask?: GPUStencilValue;946}947 948interface GPUDeviceDescriptor extends GPUObjectDescriptorBase {949    defaultQueue?: GPUQueueDescriptor;950    requiredFeatures?: GPUFeatureName[];951    requiredLimits?: Record<string, GPUSize64 | undefined>;952}953 954interface GPUExtent3DDict {955    depthOrArrayLayers?: GPUIntegerCoordinate;956    height?: GPUIntegerCoordinate;957    width: GPUIntegerCoordinate;958}959 960interface GPUExternalTextureBindingLayout {961}962 963interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {964    colorSpace?: PredefinedColorSpace;965    source: HTMLVideoElement | VideoFrame;966}967 968interface GPUFragmentState extends GPUProgrammableStage {969    targets: (GPUColorTargetState | null)[];970}971 972interface GPUMultisampleState {973    alphaToCoverageEnabled?: boolean;974    count?: GPUSize32;975    mask?: GPUSampleMask;976}977 978interface GPUObjectDescriptorBase {979    label?: string;980}981 982interface GPUOrigin2DDict {983    x?: GPUIntegerCoordinate;984    y?: GPUIntegerCoordinate;985}986 987interface GPUOrigin3DDict {988    x?: GPUIntegerCoordinate;989    y?: GPUIntegerCoordinate;990    z?: GPUIntegerCoordinate;991}992 993interface GPUPipelineDescriptorBase extends GPUObjectDescriptorBase {994    layout: GPUPipelineLayout | GPUAutoLayoutMode;995}996 997interface GPUPipelineErrorInit {998    reason: GPUPipelineErrorReason;999}1000 1001interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {1002    bindGroupLayouts: (GPUBindGroupLayout | null)[];1003}1004 1005interface GPUPrimitiveState {1006    cullMode?: GPUCullMode;1007    frontFace?: GPUFrontFace;1008    stripIndexFormat?: GPUIndexFormat;1009    topology?: GPUPrimitiveTopology;1010    unclippedDepth?: boolean;1011}1012 1013interface GPUProgrammableStage {1014    constants?: Record<string, GPUPipelineConstantValue>;1015    entryPoint?: string;1016    module: GPUShaderModule;1017}1018 1019interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {1020    count: GPUSize32;1021    type: GPUQueryType;1022}1023 1024interface GPUQueueDescriptor extends GPUObjectDescriptorBase {1025}1026 1027interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {1028}1029 1030interface GPURenderBundleEncoderDescriptor extends GPURenderPassLayout {1031    depthReadOnly?: boolean;1032    stencilReadOnly?: boolean;1033}1034 1035interface GPURenderPassColorAttachment {1036    clearValue?: GPUColor;1037    depthSlice?: GPUIntegerCoordinate;1038    loadOp: GPULoadOp;1039    resolveTarget?: GPUTexture | GPUTextureView;1040    storeOp: GPUStoreOp;1041    view: GPUTexture | GPUTextureView;1042}1043 1044interface GPURenderPassDepthStencilAttachment {1045    depthClearValue?: number;1046    depthLoadOp?: GPULoadOp;1047    depthReadOnly?: boolean;1048    depthStoreOp?: GPUStoreOp;1049    stencilClearValue?: GPUStencilValue;1050    stencilLoadOp?: GPULoadOp;1051    stencilReadOnly?: boolean;1052    stencilStoreOp?: GPUStoreOp;1053    view: GPUTexture | GPUTextureView;1054}1055 1056interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {1057    colorAttachments: (GPURenderPassColorAttachment | null)[];1058    depthStencilAttachment?: GPURenderPassDepthStencilAttachment;1059    maxDrawCount?: GPUSize64;1060    occlusionQuerySet?: GPUQuerySet;1061    timestampWrites?: GPURenderPassTimestampWrites;1062}1063 1064interface GPURenderPassLayout extends GPUObjectDescriptorBase {1065    colorFormats: (GPUTextureFormat | null)[];1066    depthStencilFormat?: GPUTextureFormat;1067    sampleCount?: GPUSize32;1068}1069 1070interface GPURenderPassTimestampWrites {1071    beginningOfPassWriteIndex?: GPUSize32;1072    endOfPassWriteIndex?: GPUSize32;1073    querySet: GPUQuerySet;1074}1075 1076interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase {1077    depthStencil?: GPUDepthStencilState;1078    fragment?: GPUFragmentState;1079    multisample?: GPUMultisampleState;1080    primitive?: GPUPrimitiveState;1081    vertex: GPUVertexState;1082}1083 1084interface GPURequestAdapterOptions {1085    forceFallbackAdapter?: boolean;1086    powerPreference?: GPUPowerPreference;1087}1088 1089interface GPUSamplerBindingLayout {1090    type?: GPUSamplerBindingType;1091}1092 1093interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {1094    addressModeU?: GPUAddressMode;1095    addressModeV?: GPUAddressMode;1096    addressModeW?: GPUAddressMode;1097    compare?: GPUCompareFunction;1098    lodMaxClamp?: number;1099    lodMinClamp?: number;1100    magFilter?: GPUFilterMode;1101    maxAnisotropy?: number;1102    minFilter?: GPUFilterMode;1103    mipmapFilter?: GPUMipmapFilterMode;1104}1105 1106interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {1107    code: string;1108}1109 1110interface GPUStencilFaceState {1111    compare?: GPUCompareFunction;1112    depthFailOp?: GPUStencilOperation;1113    failOp?: GPUStencilOperation;1114    passOp?: GPUStencilOperation;1115}1116 1117interface GPUStorageTextureBindingLayout {1118    access?: GPUStorageTextureAccess;1119    format: GPUTextureFormat;1120    viewDimension?: GPUTextureViewDimension;1121}1122 1123interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {1124    buffer: GPUBuffer;1125}1126 1127interface GPUTexelCopyBufferLayout {1128    bytesPerRow?: GPUSize32;1129    offset?: GPUSize64;1130    rowsPerImage?: GPUSize32;1131}1132 1133interface GPUTexelCopyTextureInfo {1134    aspect?: GPUTextureAspect;1135    mipLevel?: GPUIntegerCoordinate;1136    origin?: GPUOrigin3D;1137    texture: GPUTexture;1138}1139 1140interface GPUTextureBindingLayout {1141    multisampled?: boolean;1142    sampleType?: GPUTextureSampleType;1143    viewDimension?: GPUTextureViewDimension;1144}1145 1146interface GPUTextureDescriptor extends GPUObjectDescriptorBase {1147    dimension?: GPUTextureDimension;1148    format: GPUTextureFormat;1149    mipLevelCount?: GPUIntegerCoordinate;1150    sampleCount?: GPUSize32;1151    size: GPUExtent3D;1152    usage: GPUTextureUsageFlags;1153    viewFormats?: GPUTextureFormat[];1154}1155 1156interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {1157    arrayLayerCount?: GPUIntegerCoordinate;1158    aspect?: GPUTextureAspect;1159    baseArrayLayer?: GPUIntegerCoordinate;1160    baseMipLevel?: GPUIntegerCoordinate;1161    dimension?: GPUTextureViewDimension;1162    format?: GPUTextureFormat;1163    mipLevelCount?: GPUIntegerCoordinate;1164    usage?: GPUTextureUsageFlags;1165}1166 1167interface GPUUncapturedErrorEventInit extends EventInit {1168    error: GPUError;1169}1170 1171interface GPUVertexAttribute {1172    format: GPUVertexFormat;1173    offset: GPUSize64;1174    shaderLocation: GPUIndex32;1175}1176 1177interface GPUVertexBufferLayout {1178    arrayStride: GPUSize64;1179    attributes: GPUVertexAttribute[];1180    stepMode?: GPUVertexStepMode;1181}1182 1183interface GPUVertexState extends GPUProgrammableStage {1184    buffers?: (GPUVertexBufferLayout | null)[];1185}1186 1187interface GainOptions extends AudioNodeOptions {1188    gain?: number;1189}1190 1191interface GamepadEffectParameters {1192    duration?: number;1193    leftTrigger?: number;1194    rightTrigger?: number;1195    startDelay?: number;1196    strongMagnitude?: number;1197    weakMagnitude?: number;1198}1199 1200interface GamepadEventInit extends EventInit {

Showing the first 1,200 of 45126 lines. Download the file for the rest.