Skip to content

Commit

Permalink
Update readme for eraser
Browse files Browse the repository at this point in the history
  • Loading branch information
lilitsimonyan98 committed Sep 17, 2020
1 parent 1bd3d4f commit 97890fe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,15 @@ mounted() {
`editorId (optional)` will set editor id, allowing the use of multiple editors in the same component
## Function set(`type`,`params`)
##### With the set() function you choose editor's mode,which should get two parameters `type` and `params`
Editor have 6 modes
Editor have 7 modes
- text
- circle
- rect
- selectMode
- arrow
- freeDrawing
- crop
- eraser

`params` parameter must be an object which set the type and every type have it's own options.

Expand Down Expand Up @@ -190,6 +191,13 @@ or you can customize your editor crop mode styles by overwriting default values.
```javascript
this.$refs.editor.applyCropping()
```
#### Eraser Mode
##### `set('eraser')` to enable eraser mode in editor, which will remove the object from editor when the object will be clicked.
```javascript
this.$refs.editor.set('eraser')
```


## Function setBackgroundImage(imageUrl)
##### `setBackgroundImage(imageUrl)` to set editor background image
```vue
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-image-markup",
"version": "3.1.9",
"version": "3.1.10",
"description": "vue-image-markup will provide you to edit uploaded image easily and save it.",
"main": "src/Editor.vue",
"repository": {
Expand Down

0 comments on commit 97890fe

Please sign in to comment.