Ink
Khả dụng hạn chế
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
Giao diện Ink của Ink API cung cấp quyền truy cập vào các đối tượng DelegatedInkTrailPresenter để ứng dụng sử dụng để hiển thị các nét mực.
Phương thức phiên bản
requestPresenter()Thử nghiệm-
Trả về một
Promisethực hiện với một đối tượngDelegatedInkTrailPresenterđể xử lý việc hiển thị các nét.
Ví dụ
js
async function inkInit() {
const ink = navigator.ink;
let presenter = await ink.requestPresenter({ presentationArea: canvas });
// …
}
Thông số kỹ thuật
| Thông số kỹ thuật |
|---|
| Ink API> # ink-interface> |