Import and export bitmaps ()

* Rename svg to image

* Import/export bitmap

* Fix playground and readme

* Fix lint

* Assume strings are svgs
This commit is contained in:
DD Liu 2018-04-26 18:45:50 -04:00 committed by GitHub
parent af29e606d8
commit 3d99044ccf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
44 changed files with 350 additions and 301 deletions
src/containers

View file

@ -52,7 +52,7 @@ class BitLineMode extends React.Component {
color = DEFAULT_COLOR;
}
this.tool = new BitLineTool(
this.props.onUpdateSvg
this.props.onUpdateImage
);
this.tool.setColor(color);
this.tool.setLineSize(this.props.bitBrushSize);
@ -81,7 +81,7 @@ BitLineMode.propTypes = {
handleMouseDown: PropTypes.func.isRequired,
isBitLineModeActive: PropTypes.bool.isRequired,
onChangeFillColor: PropTypes.func.isRequired,
onUpdateSvg: PropTypes.func.isRequired
onUpdateImage: PropTypes.func.isRequired
};
const mapStateToProps = state => ({