Skip to content

Style methods/attributes of UML class individually #2700

@kusnezoff-alexander

Description

@kusnezoff-alexander

I would like to highlight certain methods in my d2 UML Diagram like for example:

Square: {
    shape: class

    +side: int

    +Area(): int {
      style: {
        fill: "#E0F7FA"
      }
   }
    +Perimeter(): int
}

to change the color and make the highlighted text bold/italic. Adding such more fine-grained styling options would be nice

Might be related to #2699

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions