zsviczian / obsidian-excalidraw-plugin

A plugin to edit and view Excalidraw drawings in Obsidian
4.24k stars 233 forks source link

Illustration elements shift and displacement after adding a link to a note in the illustration text #850

Closed martialebeau closed 2 years ago

martialebeau commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. create a new excalidraw drawing with many images and picture files.(.gpg etc)
  2. insert text on the drawing
  3. use the double bracket [[]] to create a link to an existing note (or create a new note) in the text you just created on the illustration
  4. repeat step 3 many times

Expected behavior Next time you come back to the drawing, instead a being displayed straight when you zoom or move in it, the latest element of the drawings (which include the links to notes) are shifted to the right and tilted (some time, as much as 45 degrees angle )

This is only happening with large drawing including many icon and .gpg and .png)

Screenshots excalidraw bug (illustration 1)

excalidraw bug (illustration 2)

excalidraw bug (illustration 3)

Environment (please complete the following information):

zsviczian commented 2 years ago

This is a very strange error... I am not even sure I understand the issue correctly. I've never seen text rotate unintended. I tried it now, but could not reproduce anything similar.

I added many images and many links, then closed and opened the drawing, but everything was ok.

Can you send me the file that has this issue so I can take a look?

martialebeau commented 2 years ago

Hi !

You need to zoom in and out the drawing (ctrl- rotate mouse weel) for the displacement to occur.

Here is a link to the file:

obsidian://open?vault=My%20Obsidian%20Vault%20(On%20Robot_PC)&file=Excalidraw%20White%20boards%2FCycle%20de%20liberation%20de%20la%20SOLITUDE%2FOrigine%20Psycho-Social%20de%20la%20SOLITUDE%20(Test%20for%20bug%20report)

martialebeau commented 2 years ago

Here is the markdown file

Image shift and displacement bug markdown file.txt in notepad ++

Hope this help !!

thank you very much :O))

martialebeau commented 2 years ago

Hi,

Monday on GitHub I sent you a link to the defective drawing (residing in my vault) and a text file of the code . Let me know if you need anything else

Many thanks

Martial Lebeau

Le lun. 24 oct. 2022 à 08:50, zsviczian @.***> a écrit :

This is a very strange error... I am not even sure I understand the issue correctly. I've never seen text rotate unintended. I tried it now, but could not reproduce anything similar.

I added many images and many links, then closed and opened the drawing, but everything was ok.

Can you send me the file that has this issue so I can take a look?

— Reply to this email directly, view it on GitHub https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/850#issuecomment-1288986366, or unsubscribe https://github.com/notifications/unsubscribe-auth/A27GQL4BZNB6NX5EW76C4L3WE2AZFANCNFSM6AAAAAARIQMHQI . You are receiving this because you authored the thread.Message ID: @.***>

zsviczian commented 2 years ago

I am able to reproduce.

zsviczian commented 2 years ago

solved in 1.7.26, will release it soon

martialebeau commented 2 years ago

Awesome,

You are the best !!!!

thanks!

Martial Lebeau, B.A.A, TRAmd Téléphone : 514 927-5458

Le sam. 29 oct. 2022 à 08:02, zsviczian @.***> a écrit :

Closed #850 https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/850 as completed.

— Reply to this email directly, view it on GitHub https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/850#event-7696874711, or unsubscribe https://github.com/notifications/unsubscribe-auth/A27GQL65LXSXWI6VRCK3U33WFUG4ZANCNFSM6AAAAAARIQMHQI . You are receiving this because you authored the thread.Message ID: <zsviczian/obsidian-excalidraw-plugin/issue/850/issue_event/7696874711@ github.com>