Skip to content

Commit 892743b

Browse files
committed
readme fix
1 parent fc6c564 commit 892743b

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Table of contents
3232
* [Supported hotkeys](#supported-hotkeys)
3333
* [Configuration](#configuration)
3434
* [UI color scheme](#ui-color-scheme)
35+
* [Translation](#translation)
3536
* [Saving image](#saving-image)
3637
* [Base64 saving](#base64-saving)
3738
* [Binary saving](#binary-saving)
@@ -110,11 +111,11 @@ Configuration
110111
|`backgroundFillColor` | Default background color when image created/erased | "#ffffff" |
111112
|`defaultFontSize` | Default font size in pixels | 24 |
112113
|`defaultSize` | default image size, should be string in format `<width>x<height>` in pixel, e.g. `'200x100'`. If value is `'fill'`(default) than all container size will be used | `'fill'` |
113-
|`hiddenTools` | List of tools that you do not want to see in Painterro
114-
e.g. something of this list `['crop', 'line', 'rect', 'ellipse', 'brush', 'text', 'rotate', 'resize', 'save', 'open', 'close']` | [] |
114+
|`hiddenTools` | List of tools that you wish to exclude from toolbar
115+
e.g. something from this list `['crop', 'line', 'rect', 'ellipse', 'brush', 'text', 'rotate', 'resize', 'save', 'open', 'close']` | [] |
115116

116117
UI color scheme
117-
===============
118+
---------------
118119

119120
Next group of params used to configure painterro user interface.
120121
They should be placed under `colorScheme` group, for example:
@@ -144,19 +145,21 @@ Painterro({
144145
Translation
145146
-----------
146147

147-
If you want to translate or change strings you can du this by passing `translation` parameter
148+
If you want to translate or change strings you can do this by passing
149+
`translation` parameter, for example:
148150

149151
```js
150152
Painterro({
151153
translation: {
152154
name: 'ua',
153155
strings: {
154156
apply: 'Застосувати'
157+
// other strings
155158
}
156159
}
157160
}).show()
158161
```
159-
For all values that can be translated see `js/translation.js`
162+
For all strings that can be translated see `js/translation.js`
160163

161164

162165
Saving image

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "painterro",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "Embуedded html image editor",
55
"main": "build/painterro.commonjs2.js",
66
"scripts": {

0 commit comments

Comments
 (0)