d2-obsidian icon indicating copy to clipboard operation
d2-obsidian copied to clipboard

added basic panzoom functionality

Open zombozo12 opened this issue 11 months ago • 2 comments

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

image

zombozo12 avatar Mar 22 '24 17:03 zombozo12

@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 avatar Jun 06 '24 10:06 JDysiewicz

@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.

zombozo12 avatar Jun 06 '24 10:06 zombozo12