diff --git a/src/containers/paint-editor.jsx b/src/containers/paint-editor.jsx index 1e92b27b..19566414 100644 --- a/src/containers/paint-editor.jsx +++ b/src/containers/paint-editor.jsx @@ -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 => ({ diff --git a/src/containers/paper-canvas.jsx b/src/containers/paper-canvas.jsx index 4cf61b8d..0ba806ed 100644 --- a/src/containers/paper-canvas.jsx +++ b/src/containers/paper-canvas.jsx @@ -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 diff --git a/src/containers/text-mode.jsx b/src/containers/text-mode.jsx index 2bf0c5c1..039a6304 100644 --- a/src/containers/text-mode.jsx +++ b/src/containers/text-mode.jsx @@ -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 => ({