likec4 icon indicating copy to clipboard operation
likec4 copied to clipboard

[Feature request] Include predicate without parent

Open jentor opened this issue 10 months ago • 0 comments

Sometimes it's handy to group elements in logical containers, like this:

model {
  actors = domain "Actors" {
    employee = actor "Employee"
    customer = actor "Customer"
  }
}

And then in system definition:

model {
  sys1 = system "System 1" {
    actors.employee .interacts-with it
  }
}

But in view, instead of viewing grouping "Actors" rectangle, I wish to include all actors child elements without, actually, including their parent.

views {
  view sys1_c1 of sys1 {
    include *, actors.** <-> sys1.**

    exclude actors # ..This line is crucial..
  }
}

Request: If it is possible, it would be great to have an option to include child elements and exclude their parent in one predicate in view definition.

jentor avatar Mar 13 '25 15:03 jentor