mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-05-20 10:01:07 -04:00
Import and export bitmaps (#404)
* Rename svg to image * Import/export bitmap * Fix playground and readme * Fix lint * Assume strings are svgs
This commit is contained in:
parent
af29e606d8
commit
3d99044ccf
44 changed files with 350 additions and 301 deletions
src/containers
|
@ -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 => ({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue