Class PaintWorkletGlobalScope
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalPaintWorkletGlobalScope interface of the CSS Painting API represents the global object available inside a paint Worklet.
[Value("PaintWorkletGlobalScope")]
public class PaintWorkletGlobalScope : WorkletGlobalScope
- Inheritance
-
PaintWorkletGlobalScope
- Inherited Members
Remarks
Constructors
PaintWorkletGlobalScope()
public PaintWorkletGlobalScope()
Properties
DevicePixelRatio
NOTE
ExperimentaldevicePixelRatio read-only property of the PaintWorkletGlobalScope interface returns the current device's ratio of physical pixels to logical pixels.
[Value("devicePixelRatio")]
public double DevicePixelRatio { get; }
Property Value
- double
A double-precision integer.
Remarks
Methods
RegisterPaint(string, VoidFunction)
NOTE
ExperimentalregisterPaint() method of thePaintWorkletGlobalScope interface registers a class to programmatically generate an
image where a CSS property expects a file.
[Value("registerPaint")]
public GlobalObject.Undefined RegisterPaint(string name, VoidFunction paintCtor)
Parameters
namestringpaintCtorVoidFunction