Constructor
new ProfileEditFormAvatar()
Extends
- Component
Methods
drawImageProp(ctx, img, x, y, w, h, offsetX, offsetY)
- Source:
Центрирование изображения
Parameters:
| Name | Type | Description |
|---|---|---|
ctx |
Object | |
img |
Object | |
x |
Int | |
y |
Int | |
w |
Int | |
h |
Int | |
offsetX |
Int | |
offsetY |
Int |
readFiles(w, h, file)
- Source:
Добавление картинок файлридером через канвас
Parameters:
| Name | Type | Description |
|---|---|---|
w |
Number | Ширина |
h |
Number | Высота |
file |
Object | Загружаемый файл |
render() → {Object}
- Source:
Render component
Returns:
jsx object
- Type
- Object
upload(e)
- Source:
Загрузка аватара в браузере
Parameters:
| Name | Type | Description |
|---|---|---|
e |
Object |
Fires:
- event:onChange