/Web APIs

InkPresenter: presentationArea property

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The presentationArea read-only property of the InkPresenter 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.




async function inkInit() {
  const ink = navigator.ink;
  let presenter = await ink.requestPresenter({ presentationArea: canvas });



Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
presentationArea 94 93 No No 80 No 94 94 No 66 No 17.0

See also

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.