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

Globs do not affect arrows #1989

Closed
FluxusMagna opened this issue Jul 1, 2024 · 2 comments
Closed

Globs do not affect arrows #1989

FluxusMagna opened this issue Jul 1, 2024 · 2 comments

Comments

@FluxusMagna
Copy link

Globs are not affecting arrows, even when they have the specified attribute. For example, changing the font-size for a diagram like

x -> y: z
**.style.font-size: 50

results in a a diagram with large text in the boxes and small text on the arrow.

I expect the output from the above to be the same as for

x: {style.font-size: 50}
y: {style.font-size: 50}
x -> y: z {style.font-size: 50}

but it is not.

@terlar
Copy link

terlar commented Jul 1, 2024

To target the connections you have to use something like:

(** -> **)[*].style.font-size: 50

@alixander
Copy link
Collaborator

Thank you @terlar

related: https://d2lang.com/tour/globs/#glob-connections

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

3 participants