Skip to content

Remove Members or Methods Box On Class Diagram, If Either Are Not Set #6657

@robross0606

Description

@robross0606

Description

As per #3139, members and method boxes are removed from a diagram if neither is provided and hideEmptyMembersBox is set. However, if attributes are provided without operations, or operations are provided with no attributes , it still displays the empty box for whatever is missing.

Steps to reproduce

  • Create a class diagram with hideEmptyMembersBox where attributes are provided without operations.
  • Create a class diagram with hideEmptyMembersBox where operations are provided without attributes.

Screenshots

Image

Code Sample

---
  config:
    class:
      hideEmptyMembersBox: true
---
classDiagram
  class Duck {
    myProperty
  }

  class Goose {
    squawk()
  }

Setup

No response

Suggested Solutions

No response

Additional Context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageNeeds to be verified, categorized, etcType: Bug / ErrorSomething isn't working or is incorrect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @robross0606

        Issue actions

          Remove Members or Methods Box On Class Diagram, If Either Are Not Set · Issue #6657 · mermaid-js/mermaid