Skip to content

Adds Preview and Save to png tasks#11

Open
Megabound wants to merge 1 commit intogabeins:mainfrom
Megabound:CB/Add-Preview-and-Save-Tasks
Open

Adds Preview and Save to png tasks#11
Megabound wants to merge 1 commit intogabeins:mainfrom
Megabound:CB/Add-Preview-and-Save-Tasks

Conversation

@Megabound
Copy link
Copy Markdown

@Megabound Megabound commented Mar 1, 2026

Adds 2 new tasks, Preview which will create an svg in the same folder as the d2 file and open it in a web browser for live previews as the d2 file is updates and Save to png which will export a png in the same location as the d2 file.

I considered using Export to png instead of Save to png but that would move Preview below it in the Tasks list and I thought it better to have preview be at the top of the list.

Closes #9

Adds 2 new tasks, Preview which will create an svg in the same folder
as the d2 file and open it in a web browser for live previews as the
d2 file is updates and Save to png which will export a png in the same
location as the d2 file.

I considered using Export to png instead of Save to png but that would
move Preview below it in the Tasks list and I thought it better to have
preview be at the top of the list.
@Megabound Megabound mentioned this pull request Mar 1, 2026
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.

Diagram preview

1 participant