KineticJS icon indicating copy to clipboard operation
KineticJS copied to clipboard

HTML5 Canvas Drag, Drop, and Resize Images

Open Hackencrash opened this issue 13 years ago • 3 comments

This tutorial doesn't work with the latest library download. 4.0.0 works OK. Resizing images using bottom right anchor works, but choosing any of the others results in the image not resizing.

Hackencrash avatar Jan 18 '13 10:01 Hackencrash

I also meet this bug. It seems like the group's children didn't send to function "update" totally.

grapefruit623 avatar Jan 23 '13 06:01 grapefruit623

See the comments for issue #241 for one solution to the drag issue. You could also use 4.3.1 and set dragOnTop: false for the circles.

denishanson avatar Jan 23 '13 13:01 denishanson

Actually, the problem is that the API for setSize() changed. in v5.0.1, you have to pass in an object literal. In v5.0.2, I'll be adding back in the option for passing in two arguments via setSize(width, height). Lab is updated.

ericdrowell avatar Feb 24 '14 15:02 ericdrowell