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

use scale flag for no-fit and customizing zoom #1413

Merged
merged 4 commits into from
Jun 26, 2023

Conversation

gavin-ts
Copy link
Contributor

@gavin-ts gavin-ts commented Jun 16, 2023

Summary

Add --scale flag to replace --no-fit (--scale=1) and customize zoom.

Details

e.g. scale=1

Screen Shot 2023-06-15 at 4 56 35 PM

e.g. scale=0.5

Screen Shot 2023-06-15 at 4 56 45 PM

@gavin-ts gavin-ts requested a review from a team June 16, 2023 00:04
@gavin-ts gavin-ts marked this pull request as ready for review June 16, 2023 00:04
d2cli/main.go Outdated Show resolved Hide resolved
d2cli/main.go Show resolved Hide resolved
@gavin-ts gavin-ts requested a review from alixander June 26, 2023 20:28
ci/release/template/man/d2.1 Outdated Show resolved Hide resolved
@gavin-ts gavin-ts requested a review from alixander June 26, 2023 20:48
@gavin-ts gavin-ts merged commit 5829f26 into terrastruct:master Jun 26, 2023
@pangloss
Copy link

Thanks, I'm using this now and it works great!

One minor nit: --scale doesn't show up in the commandline help. Perhaps other options are missing, too?

@alixander
Copy link
Collaborator

@pangloss is your version up to date?

Screen Shot 2023-08-19 at 10 09 47 PM

@pangloss
Copy link

Oh... yeah it is there. 😆

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.

Static diagram sizing option
3 participants