pixlmint / wiki

A frontend and editor for your brain (if your brain is written in markdown)
MIT License
0 stars 0 forks source link

[Drawing] Zooming and Panning Support #60

Open pixlmint opened 9 months ago

pixlmint commented 9 months ago

One way to accomplish this may be to rely on d3's coordinates a bit more. Right now I'm storing my coordinates and redrawing the whole thing each time. But d3 does have zoom and pan support, so when I try to redraw the image after a zoom/pan action, it may just draw the exact same thing again. Instead, I should ask d3 to tell me the coordinates of all my objects and just store those. This may result in a major overhaul of the drawing system