Skip to content

Add panzoom functionality - #48

Open
JDysiewicz wants to merge 6 commits into
d2lang:masterfrom
JDysiewicz:issue-33-zoom
Open

Add panzoom functionality#48
JDysiewicz wants to merge 6 commits into
d2lang:masterfrom
JDysiewicz:issue-33-zoom

Conversation

@JDysiewicz

Copy link
Copy Markdown

Added support for basic panzoom via ctrl+mousewheel for parity with d2playground website.

Related issue: #33

(This builds off of work done in PR #47 which was abandoned due to lack of time from the contributor).

d2-obsidian-zoom.mp4

Signed-off-by: Joshua Dysiewicz <joshuadysiewicz@googlemail.com>
Signed-off-by: Joshua Dysiewicz <joshuadysiewicz@googlemail.com>
Signed-off-by: Joshua Dysiewicz <joshuadysiewicz@googlemail.com>
Signed-off-by: Joshua Dysiewicz <joshuadysiewicz@googlemail.com>
@JDysiewicz JDysiewicz changed the title Add panzoom functionality - #33 Add panzoom functionality Jun 6, 2024
@JDysiewicz
JDysiewicz marked this pull request as ready for review June 6, 2024 22:02
@JDysiewicz

Copy link
Copy Markdown
Author

@gavin-ts Mind giving this a look? Sorry unsure of the PR process for this repo.

@i-am-the-slime

Copy link
Copy Markdown

@JDysiewicz do you know of a way to use a fork in obsidian?

@JDysiewicz

JDysiewicz commented Aug 28, 2024

Copy link
Copy Markdown
Author

@JDysiewicz do you know of a way to use a fork in obsidian?

Yeah, you can install the plugin in your obsidian vault as normal, then replace with a locally built version. Clone the fork you want, build it locally (yarn run build) and then copy the resulting main.js, styles.css, manifest.json over to your plugins directory for your vault. That's at VAULT_FOLDER/.obsidian/plugins/d2-obsidian.

@mrzl78

mrzl78 commented Jun 12, 2025

Copy link
Copy Markdown

hi, do you think this could be coming anytime soon? I would really greatly appreciate it. thanks!

@JDysiewicz

Copy link
Copy Markdown
Author

hi, do you think this could be coming anytime soon? I would really greatly appreciate it. thanks!

I'd love it to be, but doesn't seem like the maintainers are active here :(

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.

3 participants