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

fix: shadow cut when 0 padding #1326

Merged
merged 4 commits into from
May 16, 2023
Merged

Conversation

LeonardsonCC
Copy link
Contributor

@LeonardsonCC LeonardsonCC commented May 14, 2023

Fix #1154, when the --pad is 0 the svg shadow is cut.
This PR changes the svg's dimension when some element has shadow.

Using the same example given in the issue we have the following result:
example

@LeonardsonCC LeonardsonCC marked this pull request as ready for review May 15, 2023 13:21
d2renderers/d2svg/d2svg.go Outdated Show resolved Hide resolved
d2target/d2target.go Outdated Show resolved Hide resolved
@gavin-ts gavin-ts enabled auto-merge May 16, 2023 20:37
@gavin-ts gavin-ts disabled auto-merge May 16, 2023 20:37
@gavin-ts gavin-ts merged commit 0121efe into terrastruct:master May 16, 2023
@alixander
Copy link
Collaborator

thanks @LeonardsonCC !

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.

shadow is cut off when 0 padding
3 participants