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 DelegatedInkTrailPresenterProperties
| Name | Description |
|---|---|
| PresentationArea | Gets the element the ink trails are clipped to, or null for the viewport of the document. |
PresentationArea
Ink.csGets the element the ink trails are clipped to, or null for the viewport of the document.
public Element? PresentationArea { get; }Methods
| Name | Description |
|---|---|
| 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.csSets 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
eventPointerEvent- The pointer event of the point: a trusted event.
styleInkTrailStyle- The style of the trail.
Exceptions
DomException- A
NotAllowedErrorwhen the event is not trusted, and aNotSupportedErrorwhen the diameter is not greater than 0. TypeErrorException- The color is not a valid CSS color.