How to get the Active Selection objects position relative to canvas #9943
Unanswered
sohailahmad07
asked this question in
Q&A
Replies: 1 comment 8 replies
-
The export of an active selection today is backed in the canvas export and is not great.
It saves the current object transform state, It is not a good flow and prone to errors, but as of now it is how is done |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi when i select multiple objects the position becomes relative to object but i want to get the object's position relative to the canvas
**what i am trying to achieve **
i have a canvas and all of the canvas data is store on the backend in a database i save the json of every object as a separate item assign to a user
Elemenets -> table_name
id
ele_json
user_id
board_id
Problem
the problem is when the user selects multiple objects and moves i send an Axios request to my backend to update object JSON in the database and when i refresh (to simulate the user coming back to the board on a later time) the object are no longer there because when i send the data all of the object position were according to the active selection and not canvas
Beta Was this translation helpful? Give feedback.
All reactions