humbleui

jlmr 2024-07-16T07:51:53.300899Z

@tonsky love the work you are doing! Would you say it is possible with the current state of HumbleUI to create an “infinite (or very large) zoomable and pannable canvas”? Like those in Miro, Figma, etc. If so, can you give any pointers on how to set it up?

grounded_sage 2024-07-16T13:20:59.098179Z

You will want to use linear scaling functions. For Clojure there is this library. https://github.com/scicloj/wadogo From there it’s just capturing events such as panning, zooming and loading in elements just outside the view you are displaying.

Niki 2024-07-16T22:24:39.253909Z

Sure. You’ll need to implement custom Node right now. I’ll try to cook up an example

jlmr 2024-07-17T06:27:59.168059Z

@grounded_sage thanks for this! And @tonsky that would be great 🙂