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

placeholder to investigate #2192

Closed
alixander opened this issue Nov 5, 2024 · 1 comment
Closed

placeholder to investigate #2192

alixander opened this issue Nov 5, 2024 · 1 comment

Comments

@alixander
Copy link
Collaborator

alixander commented Nov 5, 2024

Wanted to separate out a useful comment from a closed issue to further investigate later


          Few cents, my tests shows these work better (for imports `***` maybe used I guess):
**.style.font-size: 10
(** -> **)[*].style.font-size: 10

I found another issue (0.6.7): this styling does not apply if any of ! -> used: --, <-, <->.


In my case, lowering font-size didn't help...

I'm playing with D2 (Activity diagrams) all morning, I can see big potential, reusability and so on, but Puml gives much shorter diagrams. I added only few steps, and diagram does not fit into monitor already (I know I can rotate layout, but that won't help if I add 1 or 2 steps more). And the problem is not in steps amount, but in a way space is used: it's just wasted :(
I'm getting huge square shape with tiny text with lots of space around it, and extremly long arrows... Changing layout engine didn't help.

All good, but padding ruins the readability and displaying/printing options.
Playing with size this way:

**: {
  # trying to reduce padding as much as possible
  &shape: hexagon
  width: 150
  height: 40
  # I was hopping that CSS-like approach works...
  # BTW, try to add this :) <---- !!!
  pad: 0
}

ruins the whole idea of autolayout. The above approach comes at the cost of fixed size and the need of re-styling elements selectively when needed.

Anyway, good work! 👍 Waiting for new D2 versions

UPD: Probably this is what I'm looking for. Found only --elk-padding in CLI help. Is there a way to tune ELK params?

Originally posted by @qd3v in #429 (comment)

@cyborg-ts cyborg-ts added this to D2 Nov 5, 2024
@alixander
Copy link
Collaborator Author

this boils down to #1740

@alixander alixander closed this as not planned Won't fix, can't repro, duplicate, stale Nov 8, 2024
@github-project-automation github-project-automation bot moved this to Done in D2 Nov 8, 2024
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

1 participant