viliusle / miniPaint

online image editor
http://viliusle.github.io/miniPaint/
Other
2.74k stars 634 forks source link

Rotation doesn't work #232

Closed karol11 closed 3 years ago

karol11 commented 3 years ago

Platform: Chrome, Windows 10

Steps: Paste new image Ctrl+V Image->Rotate

Actual result: Nothing happened, Log message: Uncaught TypeError: c.default.Actions.prepare_canvas_action is not a constructor at e.value (bundle.js:56602) at e.value (bundle.js:56602) at e.on_finish [as onfinish] (bundle.js:56602) at e.value (bundle.js:1) at HTMLButtonElement. (bundle.js:1)

Repro 100%

Giwayume commented 3 years ago

Type-o, "Prepare_canvas_action", "P" should be capitalized.

https://github.com/viliusle/miniPaint/blob/master/src/js/modules/image/rotate.js#L164 https://github.com/viliusle/miniPaint/blob/master/src/js/modules/image/rotate.js#L173

viliusle commented 3 years ago

Thank you, will fix it soon.