d2-obsidian
d2-obsidian copied to clipboard
added basic panzoom functionality
Added very basic panzooming support, works like d2-playground website. It's not perfect, but it works.
Related issue: #33
Known issues:
- Everytime recompile button was hit, diagram will back to its original size and position
- Diagram will be gone if you swipe too hard, but it can be reset with recompile button
Nice to add:
- Reset button (size and position)
- Zoom slider
@zombozo12 Hiya, I'd really find this feature really useful - are you planning to come back to this? If not no worries, happy to do an implementation myself.
@JDysiewicz hi, I think I can't add more. I have very little expirience in TypeScript. If you want to continue, you can continue in this PR or make a new one.