1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-22 04:55:10 +00:00

Add ability to use any shape from USymbol in nwdiag elements.

Example:
@startuml
nwdiag {
  network inet {
	  web01 [shape = cloud]
  }
}
@enduml
This commit is contained in:
qwazer 2019-02-06 17:41:01 +03:00
parent 8b34df222b
commit 269c2828c0

View File

@ -109,11 +109,9 @@ public class DiagElement {
}
public final void setShape(String shapeName) {
if ("database".equalsIgnoreCase(shapeName)) {
this.shape = USymbol.DATABASE;
}
if ("node".equalsIgnoreCase(shapeName)) {
this.shape = USymbol.NODE;
USymbol shapeFromString = USymbol.getFromString(shapeName);
if (shapeFromString!=null){
this.shape = shapeFromString;
}
}