Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,5 @@ node_modules

dist/
.idea
lib/

react-avatar.iml
2 changes: 2 additions & 0 deletions lib/react-avatar.js

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions lib/react-avatar.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Konva JavaScript Framework v@@version
* http://konvajs.github.io/
* Licensed under the MIT
* Date: @@date
*
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
* Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva)
*
* @license
*/
Binary file added lib/react-avatar.js.LICENSE.txt.gz
Binary file not shown.
Binary file added lib/react-avatar.js.gz
Binary file not shown.
9 changes: 6 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"types": "src/avatar.d.ts",
"scripts": {
"start": "webpack-dev-server --open --config webpack.dev.js",
"build": "webpack --config webpack.prod.js --optimize-minimize",
"build": "webpack --config webpack.prod.js",
"build:example": "webpack --config webpack.example.js"
},
"repository": {
Expand Down
10 changes: 5 additions & 5 deletions src/avatar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Definitions by: Andrew Makarov <https://github.com/r3nya>
// TypeScript Version: 2.3

import * as React from 'react';
import * as React from "react";

export interface Props {
/**
Expand All @@ -24,12 +24,12 @@ export interface Props {
* The height of the editor (image will fit to this height)
*/
height: number;

/**
* The desired width of the image, can not be used together with imageHeight
*/
imageWidth?: number;

/**
* The desired height of the image, can not be used together with imageWidth
*/
Expand Down Expand Up @@ -117,7 +117,7 @@ export interface Props {
* Label text
* Default: Choose a file
*/
label?: string;
label?: any;

/**
* The style object for preview label
Expand All @@ -138,7 +138,7 @@ export interface Props {
* Invoked when user drag&drop event stop and return croped image in base64 sting
*/
onCrop?: (data: string) => void;

/**
* Invoked when user upload file with internal file loader
*/
Expand Down