partial loading of snapshot and "transparent" lines #3767
Unanswered
heinzkrebs
asked this question in
Q&A
Replies: 1 comment
-
hi, i narrowed down my problem to the following:
?!?!?! ciao |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
dear all,
i'm building my drawing tool using yarn, and since version 2.1 of tldraw i encounter the problem, that if i load a snapshot, this gets only partially loaded, and if i then draw lines the line i have drawn before get's invisible.
might sound strange, so i created two videos:
https://ixam.cloud/Version-2.0.2.mp4
This was created using the 2.0.2-branch of tldraw. everything works fine, i draw lines, and if i click button #4 on the right, the snapshot is saved to a variable and then loaded again, all ok.
the code behind the button is
<button
className="custom-button svg-button page4 editorMode"
onClick={() => {
var snapshot = editor.store.getSnapshot()
alert('Snapshot copied')
editor.store.loadSnapshot(snapshot)
alert('Snapshot loaded')
}}
/>
but the second video:
https://ixam.cloud/Version-2.1.4.mp4
i did not change the code, just rebuild the project with the new tldraw files. i draw the same lines like before. but if i save and load the snapshot some of the lines are invisible! and if i draw now lines, the last line gets "removed" - but not really removed since i can select the lines
is this a bug (this problem happens since version 2.1.0)? or what could be wrong in my code?!?!
ciao
H.
Beta Was this translation helpful? Give feedback.
All reactions