Interface WebGLContextAttributes
interface WebGLContextAttributes {
alpha?: boolean;
antialias?: boolean;
depth?: boolean;
desynchronized?: boolean;
failIfMajorPerformanceCaveat?: boolean;
powerPreference?: WebGLPowerPreference;
premultipliedAlpha?: boolean;
preserveDrawingBuffer?: boolean;
stencil?: boolean;
xrCompatible?: boolean;
}
alpha?: boolean;
antialias?: boolean;
depth?: boolean;
desynchronized?: boolean;
failIfMajorPerformanceCaveat?: boolean;
powerPreference?: WebGLPowerPreference;
premultipliedAlpha?: boolean;
preserveDrawingBuffer?: boolean;
stencil?: boolean;
xrCompatible?: boolean;
}
 Properties
Optionalalpha
alpha?: boolean
Optionalantialias
antialias?: boolean
Optionaldepth
depth?: boolean
Optionaldesynchronized
desynchronized?: boolean
OptionalfailIfMajorPerformanceCaveat    
failIfMajorPerformanceCaveat?: boolean
OptionalpowerPreference 
OptionalpremultipliedAlpha 
premultipliedAlpha?: boolean
OptionalpreserveDrawingBuffer  
preserveDrawingBuffer?: boolean
Optionalstencil
stencil?: boolean
OptionalxrCompatible 
xrCompatible?: boolean