UpdateElementGeometryOptions Class

  • Experimental (WEBPLATEXP0023)

The options of HtmlCanvasElement.UpdateElementGeometry (https://github.com/WICG/html-in-canvas).

[Experimental("WEBPLATEXP0023", UrlFormat = "https://github.com/meziantou/Meziantou.Framework/blob/main/src/Meziantou.Framework.WebPlatform/docs/experimental-apis.md#{0}")]
public sealed class UpdateElementGeometryOptions

Constructors

NameDescription
UpdateElementGeometryOptions()

UpdateElementGeometryOptions()

public UpdateElementGeometryOptions()

No documentation is available.

Properties

NameDescription
CanvasClipGets the clip of the element for the hit testing, in the coordinates of its canvas transform, or null to keep it.
CanvasTransformGets the canvas transform of the element, which maps its border box (before its CSS transforms) to the content box of the canvas, in CSS pixels, or null to keep it.
PreserveHitTestOrderGets whether an element already in the hit testing order of the canvas keeps its place (else it moves to the top).

CanvasClip

ElementImage.cs

Gets the clip of the element for the hit testing, in the coordinates of its canvas transform, or null to keep it.

public DomRectInit? CanvasClip { get; init; }

CanvasTransform

ElementImage.cs

Gets the canvas transform of the element, which maps its border box (before its CSS transforms) to the content box of the canvas, in CSS pixels, or null to keep it.

public DomMatrixInit? CanvasTransform { get; init; }

PreserveHitTestOrder

ElementImage.cs

Gets whether an element already in the hit testing order of the canvas keeps its place (else it moves to the top).

public bool PreserveHitTestOrder { get; init; }