skmail / vue-free-transform

VueJS Free transform tool component
MIT License
180 stars 29 forks source link

restricting transformable area #6

Open padoauk opened 5 years ago

padoauk commented 5 years ago

Hi.

Vue-free-transform is great. Translatable area restriction capability make it better, I guess. In many cases, area restriction is useful. Without it, translation is so free that object can be released in a area where horizontal position is negative and selection is impossible.

I found that the restriction is possible by checking payload in update(). But it looks much better to have certain component's property for restriction.

devonik commented 4 years ago

Yes that would be nice. I also added a conditional to the update() method but it would be nice to prevent this. Also maybe better peformance