working nodes sub-texts

This commit is contained in:
Klemek
2019-07-16 18:34:05 +02:00
parent c7264235b1
commit 64d952f8bc
6 changed files with 117 additions and 81 deletions
+2 -11
View File
@@ -38,21 +38,12 @@ fs.writeFileSync(`preview/links.svg`, rendering.toXML({'g': g}, {w: 1536 * 2, h:
const faDiagrams = require('./src/index');
const data = {
options: {
rendering: {
beautify: true,
icons: {
color: '#4E342E'
}
}
},
nodes: [
{
name: 'node1',
icon: 'laptop-code',
bottom: 'my\napp',
top:'my app',
left:'my\napp'
color: '#4E342E',
bottom: 'my app',
},
{
name: 'node2',