Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added basic panzoom functionality #47

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zombozo12
Copy link

@zombozo12 zombozo12 commented Mar 22, 2024

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 zombozo12 changed the title added panzoom added basic panzoom functionality Mar 22, 2024
@JDysiewicz
Copy link

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

@zombozo12
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants