Skip to content

cli: add pad option - #431

Merged
alixander merged 1 commit into
d2lang:masterfrom
alixander:pad
Dec 12, 2022
Merged

cli: add pad option#431
alixander merged 1 commit into
d2lang:masterfrom
alixander:pad

Conversation

@alixander

Copy link
Copy Markdown
Collaborator

i've been sneakily adjusting padding for myself to generate d2lang.com images. time to make this generally available.

Default padding vs --pad=0:

Screen Shot 2022-12-11 at 11 30 49 PM

Screen Shot 2022-12-11 at 11 26 47 PM

Screen Shot 2022-12-11 at 11 26 39 PM

closes #14

@alixander
alixander requested a review from nhooyr December 12, 2022 07:33
@alixander
alixander force-pushed the pad branch 2 times, most recently from b1636b1 to 9cd35ab Compare December 12, 2022 07:37
@alixander
alixander merged commit a557d1a into d2lang:master Dec 12, 2022
@alixander
alixander deleted the pad branch December 12, 2022 07:44
@lucasjinreal

Copy link
Copy Markdown

@alixander Hello, this looks pad on whole rending graph, is there a way to change padding of each box from the text label inside?

@nhooyr nhooyr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

whitespace padding should be configurable

3 participants