Ink API
The presentationArea read-only property of the DelegatedInkTrailPresenter interface returns the Element inside which rendering of ink strokes is confined.
If the preceding Ink.requestPresenter method call included a specific presentationArea element definition, then that will be the element returned. Otherwise, the default is returned, which is the containing viewport.
This area is always the client coordinates for the element's border box, so moving the element or scrolling the element requires no recalculation on the developer's part.
Value
An Element.
Example
async function inkInit() {
const ink = navigator.ink;
const presenter = await ink.requestPresenter({ presentationArea: canvas });
console.log(presenter.presentationArea);
// …
}
Specifications
Browser compatibility
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
