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, when I opened an Excalidraw drawing in md (using Obsidian, I don't know if the info is relevent), I saw that all the deleted strokes were still present, they are juste flagged "isDeleted : true" in the json object. I thougth it was for undo, but once you close the file you can't undo what you did before. I also tried deleting the flagged files during editing, and I could undo. That's why I think it's actually useless. Does it have a practical use ? Does other similar software do the same ?
Because of a lack of time at the moment I didn't do a lot of testing, but I tried prompting gpt for a quick script that deletes the elements with the attribute "isDeleted : true". I found that on small test files with a few strokes the file size decreases, but when I tried on a big file (a real note from class), the size actually increased. The code seems inefficient, but as I said, I don't have time to check in details rn.
My idea is a script that deletes the deleted strokes from the json object, thus saving space. I wanted to ask you guys so I can understand all this better for when I have time to work on this idea. Thanks a lot and sorry if it's a stupid question, I'm not used to open source, it's my first time contributing.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, when I opened an Excalidraw drawing in md (using Obsidian, I don't know if the info is relevent), I saw that all the deleted strokes were still present, they are juste flagged "isDeleted : true" in the json object. I thougth it was for undo, but once you close the file you can't undo what you did before. I also tried deleting the flagged files during editing, and I could undo. That's why I think it's actually useless. Does it have a practical use ? Does other similar software do the same ?
Because of a lack of time at the moment I didn't do a lot of testing, but I tried prompting gpt for a quick script that deletes the elements with the attribute "isDeleted : true". I found that on small test files with a few strokes the file size decreases, but when I tried on a big file (a real note from class), the size actually increased. The code seems inefficient, but as I said, I don't have time to check in details rn.
My idea is a script that deletes the deleted strokes from the json object, thus saving space. I wanted to ask you guys so I can understand all this better for when I have time to work on this idea. Thanks a lot and sorry if it's a stupid question, I'm not used to open source, it's my first time contributing.
Beta Was this translation helpful? Give feedback.
All reactions