Table of Contents

Class PaintWorkletGlobalScope

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The PaintWorkletGlobalScope 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
Experimental
The devicePixelRatio 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
Experimental
The registerPaint() method of the
PaintWorkletGlobalScope 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

name string
paintCtor VoidFunction

Returns

GlobalObject.Undefined

None (GlobalObject.Undefined).

Remarks