Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rsimon committed Oct 25, 2021
1 parent 7d01df6 commit 15f306e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@ Include the plugin in your page directl from the CDN:
</html>
```

### If you only want to include some tools

You can set the tools to include when initializing the plugin.

```js
// Will only include ellipse and freehand, but not circle
Annotorious.SelectorPack(anno, {
tools: ['ellipse', 'freehand']
});
```

## Development

To run in development mode:
Expand Down
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
allowEmpty: true
});

Annotorious.SelectorPack(anno, {});
Annotorious.SelectorPack(anno);

var tools = anno.listDrawingTools();
var selected = 0;
Expand Down

0 comments on commit 15f306e

Please sign in to comment.