feat: support setting/resetting cursor from host (#5215)

* Support setting/resetting cursor type from host

* add docs

* minor
This commit is contained in:
Aakansha Doshi 2022-05-20 18:43:38 +05:30 committed by GitHub
parent 92f30f7ed6
commit 07ebd7c68c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 63 additions and 7 deletions

View file

@ -466,6 +466,8 @@ export type ExcalidrawImperativeAPI = {
ready: true;
id: string;
setActiveTool: InstanceType<typeof App>["setActiveTool"];
setCursor: InstanceType<typeof App>["setCursor"];
resetCursor: InstanceType<typeof App>["resetCursor"];
};
export type DeviceType = {