DelegatedInkTrailPresenter Class

A presenter of delegated ink trails (https://wicg.github.io/ink-enhancement/#delegatedinktrailpresenter), created by Ink.RequestPresenter: the page gives it the last rendered point of its ink trail, from which the compositor draws the trail up to the latest position of the pointer until the next animation frame. The engine validates the requests and records the start point; it does not draw the predicted trail (the next frame of the page draws the trail itself).

public sealed class DelegatedInkTrailPresenter

Properties

NameDescription
PresentationAreaGets the element the ink trails are clipped to, or null for the viewport of the document.

PresentationArea

Ink.cs

Gets the element the ink trails are clipped to, or null for the viewport of the document.

public Element? PresentationArea { get; }

Methods

NameDescription
UpdateInkTrailStartPoint(PointerEvent, InkTrailStyle)Sets the last point of the ink trail that the page rendered (https://wicg.github.io/ink-enhancement/#dom-delegatedinktrailpresenter-updateinktrailstartpoint). The request is ignored when the presentation area is no longer connected to the document, as in Chromium.

UpdateInkTrailStartPoint(PointerEvent, InkTrailStyle)

Ink.cs

Sets the last point of the ink trail that the page rendered (https://wicg.github.io/ink-enhancement/#dom-delegatedinktrailpresenter-updateinktrailstartpoint). The request is ignored when the presentation area is no longer connected to the document, as in Chromium.

public void UpdateInkTrailStartPoint(PointerEvent @event, InkTrailStyle style)

Parameters

event PointerEvent
The pointer event of the point: a trusted event.
style InkTrailStyle
The style of the trail.

Exceptions

DomException
A NotAllowedError when the event is not trusted, and a NotSupportedError when the diameter is not greater than 0.
TypeErrorException
The color is not a valid CSS color.

See also