Rendering area link causes sudden shifts in displayed content and incorrect link position #925
wwf194
started this conversation in
Script Engine
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I really love using area links. With this feature, after making some modifications to hand-written mathematical formula in excalidraw, I no longer need to export as png and replace original picture.
However, every time an area link becomes rendered image, as its occupies more lines, the content at the cursor location will be shifted by a distance equaling to additional lines. Before all links are rendered, there will be such sudden shifts in displayed content several times a second, making it difficult to edit or read the note. It takes considerable time for a newly-opened note to become useable.
Moreover, such rendering makes location of link to content in the same file incorrect. When navigating to a file containing area links, after rendering there seems to be an offset from the correct position, possibly caused by change in occupying space before and after rendering.
I understand that dynamical rendering takes time, but is it possible to think of some ways to avoid above-mentioned effects, such as rendering the bounding box first and content later, or a lazy mechanism that returns a cached image saved in previous rendering prcoess with a background thread detecting updates and triggering re-rendering?
Beta Was this translation helpful? Give feedback.
All reactions