You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, first of all thank you for this awesome project! I'm interested in adding my own templates to edit as a base. However, I realise it is not just about uploading a cover image to start editing.
When clicking on a template to start editing, the response from the API call contains id, cover, title, width, height etc. What I'm interested in is the "data" key. What is the data structure, or how do you set the values for this "data" attribute in order to get the template editing working?
Thank you very much :)
The text was updated successfully, but these errors were encountered:
Hello, thank you for liking! This project is planned to be updated for a long time, welcome to add star 😁
As for the problem you mentioned, this data structure is mainly processed and applied in the front end. For the API, it is just a serialized JSON data, which is saved to the server after being generated in the front end.
The specific data structure can be viewed in the src/store/widget of the code, they create by Pinia, like this:
So add a template just save those data (created on the front end) to the server.
There have been some changes in the data structure to support the cause of "multi artboards". I just recently drew a graph, it should be able to help you better understand:
Currently, both data structures are compatible. certainly, they both processed on the front end.
Hi there, first of all thank you for this awesome project! I'm interested in adding my own templates to edit as a base. However, I realise it is not just about uploading a cover image to start editing.
When clicking on a template to start editing, the response from the API call contains id, cover, title, width, height etc. What I'm interested in is the "data" key. What is the data structure, or how do you set the values for this "data" attribute in order to get the template editing working?
Thank you very much :)
The text was updated successfully, but these errors were encountered: