Skip to content

Commit

Permalink
docs: update drawer doc
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienwnklr committed Oct 3, 2023
1 parent 47c6c50 commit 01d204b
Show file tree
Hide file tree
Showing 56 changed files with 974 additions and 771 deletions.
14 changes: 14 additions & 0 deletions docs/docs/api/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@fabwcie/drawer / [Exports](modules.md)

# Drawer

## Dependencies
Expand Down Expand Up @@ -38,6 +40,18 @@ const $el = document.getElementById("myElement");
const drawer = new Drawer($el, { /** optional options */});
```

### Get Drawer instance of canvas

Drawer instance stored into $canvas object directly, for example:

```js
const $canvas = document.getElementById('canvas');
const drawer = $canvas.drawer;

drawer.changeTool('eraser');
// ...
```

### Available options

default options
Expand Down
Loading

0 comments on commit 01d204b

Please sign in to comment.