Skip to content

Add support for various Ilograph features #332

@npouliquen

Description

@npouliquen

Description

Currently, the Ilograph exporter lacks support for some Ilograph features. Most notably to me:

  1. imports
  2. icons
  3. instanceOf

I believe these could be supported through the properties field in Workspace and Element. It seems like there is precedent for using properties to support features specific to an export type based on this line in the PlantUML exporter.

To support icon and instanceOf, there could simply be a check for those strings in the properties map in the writeElement method. Supporting imports is harder, as each Ilograph import has 2 properties, from and namespace. The way it needs to be formatted in the output is like this:

imports: 
- from: ilograph/aws
  namespace: AWS

My best thought right now would be to just have a check for a property with key "imports" and a value of "- from: ilograph/aws\nnamespace: AWS". This looks kinda ugly, but I cannot think of a better way given the class structure of the structurizr library. Happy to hear if anyone has any better ideas. I'm more than willing to implement this feature myself, as it is something I would really value.

Priority

I'm willing to add this feature myself and raise a PR (please confirm approach first)

More information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions