question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add `package` to class diagram

See original GitHub issue

Is your feature request related to a problem? Please describe.

Hello! Иon-native English speaker warning

I’m relative frequently drawing class diagrams. For now I’m using MagicDraw but I would like to try text-to-scheme solution.

I like your syntax for class diagrams and I would be very happy to use it for my work but I frequently using packages in my schemes. Like class A goes to package X and associated with class B that laying in package Y.

Describe the solution you’d like

I would like to have a package extension for current syntax like:

package Sales {
  class Product {
    +int id
  }
  Product o-- Employees.Manager

package Employees {
  class Manager {
    +int id
  }
}

Describe alternatives you’ve considered Do not see any

Additional context None

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:61
  • Comments:28 (8 by maintainers)

github_iconTop GitHub Comments

23reactions
sebastianbergtcommented, Aug 8, 2022

Hey,

I would like to express how much I enjoy using mermaid over other tools for diagramming. Its great to be able to version code and documentation next to each other in the same folder.

My current project really needs this feature, so I have set up a bounty for it here: https://app.bountysource.com/issues/83273957-add-package-to-class-diagram

If you decide to work on it, please call it “namespace” instead of “package”. Also I would appriciate it very much to be nestable like so:

namespace Factory {
    namespace Employees {
        class Technician {
            +int id
        }
    }
}

I hope this convinces someone to built the feature, keep on rocking Mermaid! 😃

11reactions
jgreywolfcommented, Oct 30, 2020

Sorry, no - I had put the work on hold until the new version of rendering engine was completed. Now that this is in place I will get back to this item

Read more comments on GitHub >

github_iconTop Results From Across the Web

Package Diagram Tutorial - Lucidchart
A complete guide on everything you need to know about package diagrams in UML. Learn the symbols, best practices, and use a template...
Read more >
Example Class Diagram with Packages - YouTube
This video is part of the Udacity course "Software Architecture & Design". Watch the full course at https://www.udacity.com/course/ud821.
Read more >
Class in a Package (Airline)
This class diagram example describes the structural relationship of an airline information system. The Passenger and milesAccount Classes appear in both ...
Read more >
Creating Java packages in domain modeling class diagrams
Procedure · In the Palette, click Package and click an empty space inside the class diagram. · In the New Java Package wizard,...
Read more >
Add a Package | Enterprise Architect User Guide
You can also add a new Package element by dragging the Package icon from the Toolbox into a diagram; in this case the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found