This commit is contained in:
DD 2018-03-22 15:29:19 -04:00
parent 28da99bb05
commit b1d5111ed4
3 changed files with 5 additions and 3 deletions

View file

@ -268,6 +268,7 @@ PaintEditor.propTypes = {
activate: PropTypes.func.isRequired,
remove: PropTypes.func.isRequired
}),
removeTextEditTarget: PropTypes.func.isRequired,
rotationCenterX: PropTypes.number,
rotationCenterY: PropTypes.number,
setSelectedItems: PropTypes.func.isRequired,
@ -279,7 +280,7 @@ PaintEditor.propTypes = {
stack: PropTypes.arrayOf(PropTypes.object).isRequired,
pointer: PropTypes.number.isRequired
}),
updateViewBounds: PropTypes.instanceOf(paper.Matrix).isRequired
updateViewBounds: PropTypes.func.isRequired,
};
const mapStateToProps = state => ({

View file

@ -223,7 +223,7 @@ PaperCanvas.propTypes = {
svg: PropTypes.string,
svgId: PropTypes.string,
undoSnapshot: PropTypes.func.isRequired,
updateViewBounds: PropTypes.instanceOf(paper.Matrix).isRequired
updateViewBounds: PropTypes.func.isRequired
};
const mapStateToProps = state => ({
mode: state.scratchPaint.mode

View file

@ -110,7 +110,8 @@ TextMode.propTypes = {
setSelectedItems: PropTypes.func.isRequired,
setTextEditTarget: PropTypes.func.isRequired,
textArea: PropTypes.instanceOf(Element),
textEditTarget: PropTypes.number
textEditTarget: PropTypes.number,
viewBounds: PropTypes.instanceOf(paper.Matrix).isRequired
};
const mapStateToProps = state => ({