Skip to content

Commit

Permalink
add fontStyle and fontWeight options for text
Browse files Browse the repository at this point in the history
  • Loading branch information
GHarutyunyan committed Apr 1, 2020
1 parent 54bc68a commit 14126b6
Show file tree
Hide file tree
Showing 5 changed files with 130 additions and 130 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
node_modules
.history
.history
yarn.lock
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,12 @@ this.$refs.editor.set('text')
```
Object key | Default Value | Description
------------- | ------------- | -------------
fill | `black` | color
fontFamily | `Arial` | font-family
fontSize | `32` | font-size
placeholder | `Add Text` | default text placeholder when the text will be added
fill | `black` | color
fontFamily | `Arial` | font-family
fontSize | `32` | font-size
fontWeight | `100` | font-weight(`100`,`200`,`300`,`400`,`500`,`600`,`700`,`bold`,`normal`)
fontStyle | `normal` | font-style(`normal`,`italic`,`oblique`)
placeholder | `Add Text` | default text placeholder when the text will be added
or you can customize your editor text mode styles by overwriting default values.
```javascript
let textModeOptions = { fill: 'red', fontFamily: 'Verdana',fontSize: 16, placeholder: 'Type something'}
Expand Down Expand Up @@ -228,4 +230,4 @@ mounted:{
## Credits

- [Lilit Simonyan](https://github.com/lilitsimonyan98)
- [Lionix Team](https://github.com/lionix-team)
- [Lionix Team](https://github.com/lionix-team)
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-image-markup",
"version": "2.0.7",
"version": "2.0.8",
"description": "vue-image-markup will provide you to edit uploaded image easily and save it.",
"main": "src/Editor.vue",
"repository": {
Expand Down Expand Up @@ -59,4 +59,4 @@
"dependencies": {
"fabric": "^3.4.0"
}
}
}
Loading

0 comments on commit 14126b6

Please sign in to comment.