Feature request: Graph shown as table/grid

Author: bastian-fenskeCreated Aug 16, 2024Updated Aug 31, 2024
Labelsquestion

We have an app with "modules" and layers. "Modules" in this sense are groups of functionalities build around a specific area of our domain, not modules in the sense of Typescript files, ES Modules etc. The directory structure is /src/app/{moduleName}/{layerName}/... where layerName can be one of ui, application, domain or infrastructure. I would love to create an SVG where I have the nodes arranged in a grid with modules#layers so that there would be one row for each module and one column for each layer.

Something like this:

+---------------------------------------------------------+
|  User                                                   |
| +----+  +-------------+  +--------+  +----------------+ |
| | ui |  | application |  | domain |  | infrastructure | |
| +----+  +-------------+  +--------+  +----------------+ |
+---------------------------------------------------------+

+---------------------------------------------------------+
|  Dashboard                                              |
| +----+  +-------------+  +--------+  +----------------+ |
| | ui |  | application |  | domain |  | infrastructure | |
| +----+  +-------------+  +--------+  +----------------+ |
+---------------------------------------------------------+

+---------------------------------------------------------+
|  Chart                                                  |
| +----+                   +--------+  +----------------+ |
| | ui |                   | domain |  | infrastructure | |
| +----+                   +--------+  +----------------+ |
+---------------------------------------------------------+

Is anybody aware of a simple way to implement this feature?

Source: sverweij/dependency-cruiser