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

shadow is cut off when 0 padding #1154

Closed
alixander opened this issue Apr 8, 2023 · 3 comments · Fixed by #1326
Closed

shadow is cut off when 0 padding #1154

alixander opened this issue Apr 8, 2023 · 3 comments · Fixed by #1326
Labels
good first issue Good for newcomers

Comments

@alixander
Copy link
Collaborator

alixander commented Apr 8, 2023

direction: right
classes: {
  load balancer: {
    label: load\nbalancer
    width: 34
    height: 200
    style: {
      stroke-width: 0
      fill: "#44C7B1"
      shadow: true
      border-radius: 5
    }
  }
  unhealthy: {
    style: {
      fill: "#FE7070"
      stroke: "#F69E03"
    }
  }
}

web traffic -> web lb
web lb.class: load balancer

web lb -> api1
web lb -> api2
web lb -> api3

api2.class: unhealthy

api1 -> cache lb
api3 -> cache lb

cache lb.class: load balancer

the right side is cut off

Screen Shot 2023-04-07 at 9 34 37 PM

@alixander alixander added the good first issue Good for newcomers label Apr 8, 2023
@yhorbachov
Copy link

yhorbachov commented May 2, 2023

Cannot reproduce.
I run locally with go run main.go --watch input.d2 and it gives me this picture:
image

My browser: Brave | Version 1.50.121 Chromium: 112.0.5615.138 (Official Build) (arm64)

@alixander
Copy link
Collaborator Author

my fault for the lack of reproducible steps here. By 0 padding i mean with the flag --pad 0. Can you try that @yhorbachov ?

@yhorbachov
Copy link

@alixander Can confirm - it cuts of shadow. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants