Skip to content

added basic panzoom functionality#47

Open
zombozo12 wants to merge 2 commits into
terrastruct:masterfrom
zombozo12:master
Open

added basic panzoom functionality#47
zombozo12 wants to merge 2 commits into
terrastruct:masterfrom
zombozo12:master

Conversation

@zombozo12
Copy link
Copy Markdown

@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
Copy Markdown

@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
Copy Markdown
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