Skip to content

Commit

Permalink
Import version 1.2022.5
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudroques committed May 4, 2022
1 parent 25a51b2 commit 93e5964
Show file tree
Hide file tree
Showing 92 changed files with 513 additions and 413 deletions.
2 changes: 1 addition & 1 deletion build.xml
Expand Up @@ -20,7 +20,7 @@
<target name="compile">
<delete dir="build" />
<mkdir dir="build" />
<javac target="1.7" source="1.7" srcdir="src" destdir="build" debug="on" />
<javac target="1.8" source="1.8" srcdir="src" destdir="build" debug="on" />
<copy file="src/net/sourceforge/plantuml/version/logo.png"
todir="build/net/sourceforge/plantuml/version" />
<copy file="src/net/sourceforge/plantuml/version/favicon.png"
Expand Down
2 changes: 1 addition & 1 deletion skin/plantuml.skin
Expand Up @@ -423,7 +423,7 @@ timingDiagram {
FontSize 12
LineColor darkgreen
BackgroundColor: var(--grey-blue);
LineThickness 2
LineThickness 1.5
}
robust {
FontStyle plain
Expand Down
9 changes: 9 additions & 0 deletions skin/rose.skin
Expand Up @@ -136,6 +136,14 @@ group {
BackGroundColor transparent
}

componentDiagram {
node, rectangle {
LineColor black
LineThickness 1.5
}
}


sequenceDiagram {
group {
LineColor black
Expand Down Expand Up @@ -494,6 +502,7 @@ timingDiagram {
FontSize 12
LineColor darkgreen
BackgroundColor #c
LineThickness 1.5
}
robust {
FontStyle plain
Expand Down
2 changes: 1 addition & 1 deletion src/net/sourceforge/plantuml/SkinParam.java
Expand Up @@ -217,7 +217,7 @@ List<String> cleanForKey(String key) {

List<String> cleanForKeySlow(String key) {
key = StringUtils.trin(StringUtils.goLowerCase(key));
key = key.replaceAll("_|\\.|\\s", "");
key = key.replaceAll("_|\\.", "");
// key = replaceSmart(key, "partition", "package");
key = replaceSmart(key, "sequenceparticipant", "participant");
key = replaceSmart(key, "sequenceactor", "actor");
Expand Down
Expand Up @@ -258,7 +258,7 @@ private void drawSingleCluster(UGraphic ug, IGroup group, ElkNode elkNode) {
final Style style = Cluster.getDefaultStyleDefinition(umlDiagramType.getStyleName(), group.getUSymbol())
.getMergedStyle(skinParam.getCurrentStyleBuilder());
final double shadowing = style.value(PName.Shadowing).asDouble();
final UStroke stroke = Cluster.getStrokeInternal(group, skinParam, style);
final UStroke stroke = Cluster.getStrokeInternal(group, style);

HColor backColor = getBackColor(umlDiagramType);
backColor = Cluster.getBackColor(backColor, skinParam, group.getStereotype(), umlDiagramType.getStyleName(),
Expand Down
2 changes: 1 addition & 1 deletion src/net/sourceforge/plantuml/security/SURL.java
Expand Up @@ -110,7 +110,7 @@ public class SURL {
/**
* Regex to remove the UserInfo part from a URL.
*/
private static final Pattern PATTERN_USERINFO = Pattern.compile("(^https?://)([-_:0-9a-zA-Z]+@)([^@]*)");
private static final Pattern PATTERN_USERINFO = Pattern.compile("(^https?://)([-_0-9a-zA-Z]+@)([^@]*)");

private static final ExecutorService EXE = Executors.newCachedThreadPool(new ThreadFactory() {
public Thread newThread(Runnable r) {
Expand Down
Expand Up @@ -37,7 +37,6 @@

import net.sourceforge.plantuml.SkinParam;
import net.sourceforge.plantuml.TitledDiagram;
import net.sourceforge.plantuml.UseStyle;
import net.sourceforge.plantuml.command.BlocLines;
import net.sourceforge.plantuml.command.CommandExecutionResult;
import net.sourceforge.plantuml.command.CommandMultilines2;
Expand Down
2 changes: 1 addition & 1 deletion src/net/sourceforge/plantuml/style/Context.java
Expand Up @@ -83,7 +83,7 @@ public Collection<StyleSignatureBasic> toSignatures() {
final List<StyleSignatureBasic> tmp = new ArrayList<>();
for (StyleSignatureBasic ss : results)
for (String name : names)
tmp.add(ss.add(name));
tmp.add(ss.add(name.trim()));
results = tmp;
}

Expand Down
24 changes: 22 additions & 2 deletions src/net/sourceforge/plantuml/style/FromSkinparamToStyle.java
Expand Up @@ -210,6 +210,14 @@ public String toString() {
addMagic(SName.usecase);
addMagic(SName.map);
addMagic(SName.archimate);


// addConvert("nodeStereotypeFontSize", PName.FontSize, SName.node, SName.stereotype);
// addConvert("sequenceStereotypeFontSize", PName.FontSize, SName.stereotype);
// addConvert("sequenceStereotypeFontStyle", PName.FontStyle, SName.stereotype);
// addConvert("sequenceStereotypeFontColor", PName.FontColor, SName.stereotype);
// addConvert("sequenceStereotypeFontName", PName.FontName, SName.stereotype);


}

Expand All @@ -221,8 +229,14 @@ private static void addMagic(SName sname) {
addConvert(cleanName + "RoundCorner", PName.RoundCorner, sname);
addConvert(cleanName + "DiagonalCorner", PName.DiagonalCorner, sname);
addConvert(cleanName + "BorderStyle", PName.LineStyle, sname);
addConvert(cleanName + "StereotypeFontColor", PName.FontColor, SName.stereotype, sname);
addConFont(cleanName, sname);
addConvert(cleanName + "Shadowing", PName.Shadowing, sname);

addConvert(cleanName + "StereotypeFontSize", PName.FontSize, SName.stereotype, sname);
addConvert(cleanName + "StereotypeFontStyle", PName.FontStyle, SName.stereotype, sname);
addConvert(cleanName + "StereotypeFontColor", PName.FontColor, SName.stereotype, sname);
addConvert(cleanName + "StereotypeFontName", PName.FontName, SName.stereotype, sname);

}

private final List<Style> styles = new ArrayList<>();
Expand All @@ -234,7 +248,7 @@ public FromSkinparamToStyle(String key) {
if (key.contains("<<")) {
final StringTokenizer st = new StringTokenizer(key, "<>");
this.key = st.nextToken();
this.stereo = st.hasMoreTokens() ? st.nextToken() : null;
this.stereo = st.hasMoreTokens() ? st.nextToken().trim() : null;
} else {
this.key = key;
this.stereo = null;
Expand All @@ -243,6 +257,12 @@ public FromSkinparamToStyle(String key) {
}

public void convertNow(String value, final AutomaticCounter counter) {
if (key.endsWith("shadowing")) {
if (value.equalsIgnoreCase("false"))
value = "0";
else if (value.equalsIgnoreCase("true"))
value = "3";
}
if (value.equalsIgnoreCase("right:right"))
value = "right";
if (value.equalsIgnoreCase("dotted"))
Expand Down
2 changes: 1 addition & 1 deletion src/net/sourceforge/plantuml/style/StyleLoader.java
Expand Up @@ -164,7 +164,7 @@ public static Collection<Style> getDeclaredStyles(BlocLines lines, AutomaticCoun

final Matcher2 mKeyNames = keyName.matcher(trimmed);
if (mKeyNames.find()) {
String names = mKeyNames.group(1).replace(" ", "");
String names = mKeyNames.group(1);
final boolean isRecurse = mKeyNames.group(2) != null;
if (isRecurse)
names += "*";
Expand Down
3 changes: 1 addition & 2 deletions src/net/sourceforge/plantuml/svek/Boundary.java
Expand Up @@ -35,9 +35,8 @@
*/
package net.sourceforge.plantuml.svek;

import net.sourceforge.plantuml.awt.geom.Dimension2D;

import net.sourceforge.plantuml.Dimension2DDouble;
import net.sourceforge.plantuml.awt.geom.Dimension2D;
import net.sourceforge.plantuml.graphic.AbstractTextBlock;
import net.sourceforge.plantuml.graphic.StringBounder;
import net.sourceforge.plantuml.graphic.SymbolContext;
Expand Down
3 changes: 1 addition & 2 deletions src/net/sourceforge/plantuml/svek/CircleInterface2.java
Expand Up @@ -35,9 +35,8 @@
*/
package net.sourceforge.plantuml.svek;

import net.sourceforge.plantuml.awt.geom.Dimension2D;

import net.sourceforge.plantuml.Dimension2DDouble;
import net.sourceforge.plantuml.awt.geom.Dimension2D;
import net.sourceforge.plantuml.graphic.AbstractTextBlock;
import net.sourceforge.plantuml.graphic.StringBounder;
import net.sourceforge.plantuml.graphic.TextBlock;
Expand Down

0 comments on commit 93e5964

Please sign in to comment.