MDN self-hosted library · e01.org

Ink

Ink API

Ink API

The Ink interface of the Ink API provides access to DelegatedInkTrailPresenter objects for the application to use to render ink strokes.

Instance methods

  • requestPresenter()
  • : Returns a Promise that fulfills with a DelegatedInkTrailPresenter object to handle rendering strokes.

Example

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

  // …
}

Specifications

Browser compatibility