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

support for Block diagrams to merge row blocks #5379

Open
jgunstone opened this issue Mar 12, 2024 · 1 comment
Open

support for Block diagrams to merge row blocks #5379

jgunstone opened this issue Mar 12, 2024 · 1 comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@jgunstone
Copy link

jgunstone commented Mar 12, 2024

Description

within a Block diagram you specify the columns and then each new line is a row.
it would be awesome if row blocks could be merged

Steps to reproduce

see code sample.

NOTE - this isn't a bug - it is a feature request for an existing diagram type (which I couldn't see a issue-type for).

Screenshots

I would like to create this:
image

the closest I could get is this:
image

Code Sample

block-beta
  columns 6
  a0:6
  a1:1 c1:4 b1:1
  a2:1 c2:4 b2:1
  a3:1 c3:4 b3:1
  a4:1 c4:4 b4:1
  a5:1 c5:4 b5:1

  classDef front fill:#696,stroke:#333;
  classDef back fill:#969,stroke:#333;
  class a0,a1,a2,a2,a3,a4,a5,b0,b1,b2,b2,b3,b4,b5 front
  class c1,c2,c3,c4 back

Setup

  • Mermaid version: using the live editor in the docs
  • Browser and Version: Chrome

Suggested Solutions

No response

Additional Context

No response

@jgunstone jgunstone added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Mar 12, 2024
@sysescool
Copy link

I can give you another example:

But the a0 block is too high, and I don't know how to control it.
It is really ugly.

block-beta
  columns 6
  a0:6
  a1:1
  block:cgroup:4
    columns 1
    c1
    c2
    c3
    c4
    c5
  end
  b1:1
block-beta
  columns 6
  a0:6
  a1:1
  block:cgroup:4
    columns 1
    c1
    c2
    c3
    c4
    c5
  end
  b1:1
Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

2 participants