gtoolkit icon indicating copy to clipboard operation
gtoolkit copied to clipboard

Adding zoom in/out with scroll wheel functionality to `BlCanvassableElement`

Open botwhytho opened this issue 10 months ago • 4 comments

With this we can easily levarage in classes like GtScenery, GtPresenterCanvas, etc. and simplify existing logic in GtPhlowMondrianView>>#asElementDo:

Below is a video of functionality we get for free in various scenarios that use the class. PRs incoming.

https://github.com/user-attachments/assets/cbe396cf-3fa8-418e-a05c-4e3e723c8c66

botwhytho avatar Apr 06 '25 09:04 botwhytho

PR Created https://github.com/feenkcom/bloc-pac/pull/3

botwhytho avatar Apr 06 '25 09:04 botwhytho

PR Created https://github.com/feenkcom/gtoolkit-visualizer/pull/12. Removes logic that currently lives on GtPhlowMondrianView >> asElementDo: as it will now live in a more generic place in BlCanvassableElement

botwhytho avatar Apr 06 '25 09:04 botwhytho

Thanks. We will look at it.

/cc @syrel

girba avatar Apr 06 '25 15:04 girba

Zooming + Translating in same smooth motion after adding functionality.

https://github.com/user-attachments/assets/7d6f6be2-ffcd-4a97-94df-510172b5a96f

botwhytho avatar Apr 06 '25 21:04 botwhytho