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

style.stroke-dash doesn't work on shapes #188

Closed
tcsavage opened this issue Nov 24, 2022 · 1 comment · Fixed by #189
Closed

style.stroke-dash doesn't work on shapes #188

tcsavage opened this issue Nov 24, 2022 · 1 comment · Fixed by #189

Comments

@tcsavage
Copy link

I can successfully set stroke on both a shape and a connection, but stroke-dash is apparently ignored on shapes.

Example:

a

b: {
    style: {
        stroke: "#ff0000"
        stroke-dash: 4
    }
}

a -> b: {
    style: {
        stroke: "#ff0000"
        stroke-dash: 4
    }
}

Generates the following output:

Screen Shot 2022-11-24 at 08 51 27

But what I want is this (obtained by manually editing the generated SVG):

Screen Shot 2022-11-24 at 08 51 18

The documentation doesn't specify that stroke-dash only applies to connections so I'd expect this to work.

d2 version: v0.0.13 on macOS

@alixander
Copy link
Collaborator

ty for the report, this will be merged and included in the next release: #189

@nhooyr nhooyr added this to D2 Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

2 participants