bafolts / tplant

Typescript to plantuml
https://segmentationfaults.com/tplant/default.html
GNU General Public License v3.0
267 stars 34 forks source link

Possible to display namespace of a property/parameter in output? #54

Closed RoRoche closed 3 years ago

RoRoche commented 3 years ago

Hi,

Thank you for this amazing tool.

When a property/parameter is of a type belonging to a namespace, is there a way to display this namespace in the generated PlantUML diagram?

bafolts commented 3 years ago

Most likely. Can you provide expected input and output?

RoRoche commented 3 years ago

Input:

namespace Login {
  class Request {
    // code
  }
}

// anywhere:

class LoginComponent {
  public request: Login.Request;
}

Expected plantuml:

@startuml
namespace Login {
  class Request {
    // ...
  }
}

class LoginComponent {
  +request: Login.Request
}
@enduml
bafolts commented 3 years ago

The #58 will fix for properties.

bafolts commented 3 years ago

The #59 fixed parameters and method return types. Available in 2.3.5