web api interface
Ink
Limited availability
The Ink interface of the Ink API provides access to DelegatedInkTrailPresenter objects for the application to use to render ink strokes.
Instance methods
requestPresenter()Experimental- : Returns a
Promisethat fulfills with aDelegatedInkTrailPresenterobject to handle rendering strokes.
- : Returns a
Example
async function inkInit() {
const ink = navigator.ink;
let presenter = await ink.requestPresenter({ presentationArea: canvas });
// …
}
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.