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
- Ink.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
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
