salgum1114 / react-design-editor

React Design Editor has started to developed direct manipulation of editable design tools like Powerpoint, We've developed it with reactjs, ant.design, fabricjs
https://salgum1114.github.io/react-design-editor/
MIT License
1.52k stars 422 forks source link

Canvas elements have negative position values #235

Open jksjaz opened 2 years ago

jksjaz commented 2 years ago

As I'm unsure if this project is maintained, I'm posting this question here instead of on StackOverflow.

My question is why do elements in the work area have negative position values when the work area fixed size is changed and the elements are moved to the top left corner.

I thought that maybe we maybe consider positions X0 and Y0 as the center and anything to the left is regarded as a negative value but that doesn't seem to be the case.

Is there a specific reason for having values for position negative?