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

Code shape text boxes do not respect style.multiple #2364

Open
HariSekhon opened this issue Feb 20, 2025 · 0 comments
Open

Code shape text boxes do not respect style.multiple #2364

HariSekhon opened this issue Feb 20, 2025 · 0 comments
Labels
good first issue Good for newcomers

Comments

@HariSekhon
Copy link

HariSekhon commented Feb 20, 2025

I am trying to do this:

    json_config: |json
      {
        "json_config":
          ...
      }
    | {
      shape: code
      style.multiple: true  # doesn't work on code shape
    }

If I change shape to another shape then you see the multiple shapes stacked representing multiple files, but most of the other shapes look ugly and ruin the alignment of the code by putting the opening brace in the middle of the first line instead of respecting the code style.

I want mutiple code boxes representing multiple code files while remaining true to the contents.

I've settled for doing multiple on the parent container instead like this:

  configs: Configs {
    style.multiple: true
    json_config: |json
      {
        "json_config":
          ...
      }
    | {
      shape: code
      style.multiple: true  # doesn't work on code shape
    }

Here is the full diagram from my HariSekhon/Diagrams-as-Code repo:

https://github.com/HariSekhon/Diagrams-as-Code/blob/master/images/aws_s3_config_notify_lambda_dynamodb.svg

So far I've just settled for using style.multiple on the parent Configs container instead to visually demonstrate multiple:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Status: No status
Development

No branches or pull requests

2 participants