Skip to content

Commit c76e3ce

Browse files
committed
FIX: typo
1 parent caaa564 commit c76e3ce

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-resizable-rotatable-draggable",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"description": "A rectangle react component which can be resized and rotated",
55
"author": "MockingBot",
66
"license": "MIT",

src/components/Rect/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default class Rect extends PureComponent {
9090
document.removeEventListener('mouseup', onUp)
9191
if (!this._isMouseDown) return
9292
this._isMouseDown = false
93-
this.props.onRoateEnd && this.props.onRoateEnd()
93+
this.props.onRotateEnd && this.props.onRotateEnd()
9494
}
9595
document.addEventListener('mousemove', onMove)
9696
document.addEventListener('mouseup', onUp)

src/index.example.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ class AppExample extends Component {
4646
})
4747
}
4848

49+
handleRotateEnd = () => console.log('aa')
50+
handleRotateStart = () => console.log("start")
4951
render () {
5052
const { width, top, left, height, rotateAngle } = this.state
5153

@@ -58,9 +60,9 @@ class AppExample extends Component {
5860
// minHeight={10}
5961
zoomable='n, w, s, e, nw, ne, se, sw'
6062
// rotatable={true}
61-
// onRotateStart={this.handleRotateStart}
63+
onRotateStart={this.handleRotateStart}
6264
onRotate={this.handleRotate}
63-
// onRotateEnd={this.handleRotateEnd}
65+
onRotateEnd={this.handleRotateEnd}
6466
// onResizeStart={this.handleResizeStart}
6567
onResize={this.handleResize}
6668
// onResizeEnd={this.handleUp}

0 commit comments

Comments
 (0)