Skip to content

Commit 6d7eeda

Browse files
Solved issue #59
1 parent 0769fc6 commit 6d7eeda

File tree

4 files changed

+102
-73
lines changed

4 files changed

+102
-73
lines changed

docs/yuml_activity.svg

+89-70
Loading

docs/yuml_sequence.yuml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// {type:sequence}
2+
[:Computer]sendUnsentEmail>[:Server]
3+
[:Computer]newEmail>[:Server]
4+
[:Server]reponse.>[:Computer]
5+
[:Computer]downloadEmail>[:Server]
6+
[:Computer]deleteOldEmail>[:Server]

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
},
9898
"dependencies": {
9999
"jsdom": "^11.11.0",
100-
"yuml-diagram": "^1.0.9"
100+
"yuml-diagram": "^1.0.10"
101101
},
102102
"devDependencies": {
103103
"@types/mocha": "^2.2.32",

src/yumldoc-utils.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,17 @@ module.exports = function()
3131
</style>
3232
`;
3333

34-
if (svgLight.indexOf('<svg') > 0)
34+
// font-family="Helvetica,sans-Serif"
35+
36+
if (svgLight.indexOf('<svg') >= 0)
3537
div += ` <img class='yuml-light' src='data:image/svg+xml;base64,${Buffer.from(svgLight).toString('base64')}'>`;
3638
else
3739
div += svgLight;
3840

39-
if (svgDark.indexOf('<svg') > 0)
41+
if (svgDark.indexOf('<svg') >= 0)
4042
div += ` <img class='yuml-dark' src='data:image/svg+xml;base64,${Buffer.from(svgDark).toString('base64')}'>`;
43+
else
44+
div += svgDark;
4145

4246
div += `</div>`;
4347

0 commit comments

Comments
 (0)