Skip to content

Commit

Permalink
With space after size and strength the html looks better, more readable.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdela committed Mar 10, 2019
1 parent 14a5a20 commit a2d17b9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
26 changes: 13 additions & 13 deletions socomo-core/socomo.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@
['pl.gdela.socomo']: // level
{
components: {
'[root]' :{ size:0.2 },
'bytecode' :{ size:0.9 },
'codemap' :{ size:1.0 },
'composition' :{ size:0.6 },
'visualizer' :{ size:0.7 },
'[root]' :{ size: 0.2 },
'bytecode' :{ size: 0.9 },
'codemap' :{ size: 1.0 },
'composition' :{ size: 0.6 },
'visualizer' :{ size: 0.7 },
},
dependencies: {
'[root] -> bytecode' :{ strength:0.1 },
'[root] -> codemap' :{ strength:0.2 },
'[root] -> composition' :{ strength:0.2 },
'[root] -> visualizer' :{ strength:0.1 },
'bytecode -> codemap' :{ strength:1.0 },
'codemap -> bytecode' :{ strength:0.0 },
'composition -> codemap' :{ strength:0.4 },
'visualizer -> composition' :{ strength:0.7 },
'[root] -> bytecode' :{ strength: 0.1 },
'[root] -> codemap' :{ strength: 0.2 },
'[root] -> composition' :{ strength: 0.2 },
'[root] -> visualizer' :{ strength: 0.1 },
'bytecode -> codemap' :{ strength: 1.0 },
'codemap -> bytecode' :{ strength: 0.0 },
'composition -> codemap' :{ strength: 0.4 },
'visualizer -> composition' :{ strength: 0.7 },
},
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private void printComponents(Level level) {
out("components: {");
indent(+2);
for (Component component : level.components) {
out("%-36s :{ size:%.1f },", ecmaString(component.name), component.size/maxSize);
out("%-36s :{ size: %.1f },", ecmaString(component.name), component.size/maxSize);
}
indent(-2);
out("},");
Expand All @@ -119,7 +119,7 @@ private void printDependencies(Level level) {
indent(+2);
for (ComponentDep dep : level.dependencies) {
String depName = dep.from.name + " -> " + dep.to.name;
out("%-36s :{ strength:%.1f },", ecmaString(depName), dep.strength/maxStrength);
out("%-36s :{ strength: %.1f },", ecmaString(depName), dep.strength/maxStrength);
}
indent(-2);
out("},");
Expand Down
2 changes: 1 addition & 1 deletion socomo-maven/socomo.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
['pl.gdela.socomo']: // level
{
components: {
'maven' :{ size:1.0 },
'maven' :{ size: 1.0 },
},
dependencies: {
},
Expand Down

0 comments on commit a2d17b9

Please sign in to comment.