mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-01-10 14:42:13 -05:00
fix lint
This commit is contained in:
parent
28da99bb05
commit
b1d5111ed4
3 changed files with 5 additions and 3 deletions
|
@ -268,6 +268,7 @@ PaintEditor.propTypes = {
|
||||||
activate: PropTypes.func.isRequired,
|
activate: PropTypes.func.isRequired,
|
||||||
remove: PropTypes.func.isRequired
|
remove: PropTypes.func.isRequired
|
||||||
}),
|
}),
|
||||||
|
removeTextEditTarget: PropTypes.func.isRequired,
|
||||||
rotationCenterX: PropTypes.number,
|
rotationCenterX: PropTypes.number,
|
||||||
rotationCenterY: PropTypes.number,
|
rotationCenterY: PropTypes.number,
|
||||||
setSelectedItems: PropTypes.func.isRequired,
|
setSelectedItems: PropTypes.func.isRequired,
|
||||||
|
@ -279,7 +280,7 @@ PaintEditor.propTypes = {
|
||||||
stack: PropTypes.arrayOf(PropTypes.object).isRequired,
|
stack: PropTypes.arrayOf(PropTypes.object).isRequired,
|
||||||
pointer: PropTypes.number.isRequired
|
pointer: PropTypes.number.isRequired
|
||||||
}),
|
}),
|
||||||
updateViewBounds: PropTypes.instanceOf(paper.Matrix).isRequired
|
updateViewBounds: PropTypes.func.isRequired,
|
||||||
};
|
};
|
||||||
|
|
||||||
const mapStateToProps = state => ({
|
const mapStateToProps = state => ({
|
||||||
|
|
|
@ -223,7 +223,7 @@ PaperCanvas.propTypes = {
|
||||||
svg: PropTypes.string,
|
svg: PropTypes.string,
|
||||||
svgId: PropTypes.string,
|
svgId: PropTypes.string,
|
||||||
undoSnapshot: PropTypes.func.isRequired,
|
undoSnapshot: PropTypes.func.isRequired,
|
||||||
updateViewBounds: PropTypes.instanceOf(paper.Matrix).isRequired
|
updateViewBounds: PropTypes.func.isRequired
|
||||||
};
|
};
|
||||||
const mapStateToProps = state => ({
|
const mapStateToProps = state => ({
|
||||||
mode: state.scratchPaint.mode
|
mode: state.scratchPaint.mode
|
||||||
|
|
|
@ -110,7 +110,8 @@ TextMode.propTypes = {
|
||||||
setSelectedItems: PropTypes.func.isRequired,
|
setSelectedItems: PropTypes.func.isRequired,
|
||||||
setTextEditTarget: PropTypes.func.isRequired,
|
setTextEditTarget: PropTypes.func.isRequired,
|
||||||
textArea: PropTypes.instanceOf(Element),
|
textArea: PropTypes.instanceOf(Element),
|
||||||
textEditTarget: PropTypes.number
|
textEditTarget: PropTypes.number,
|
||||||
|
viewBounds: PropTypes.instanceOf(paper.Matrix).isRequired
|
||||||
};
|
};
|
||||||
|
|
||||||
const mapStateToProps = state => ({
|
const mapStateToProps = state => ({
|
||||||
|
|
Loading…
Reference in a new issue