8000 Glob matching shapes in and out of a container · terrastruct d2 · Discussion #1931 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Glob matching shapes in and out of a container #1931

Closed Answered by alixander
muteboy asked this question in Q&A
Discussion options

You must be logged in to vote

I realized that there actually is a way to do this (it's possible the additional functionality only came out after the original question you posted). You use ** to glob every object, and filter by its label.

classes: {
  question: {
    label: ?
  }
}

**: {
  &label: question*
  class: question
}

question1

a: {
  question2
}

https://play.d2lang.com/?script=Ss5JLC5OLbZSqOZSUCgsTS0uyczPg_AUFHISk1JzrBTsuRQUarlqubi0tCAyalAJmHotLgUFsEEIIZByGNuQiysR1QIjrlouQAAAAP__&

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@alixander
Comment options

@alixander
Comment options

@mauroexe
Comment options

Comment options

You must be logged in to vote
2 replies
@muteboy
Comment options

@alixander
Comment options

Answer selected by alixander
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
0