Skip to content

Commit cfbae54

Browse files
committed
Allow specifying option for graphviz
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
1 parent 24de5a5 commit cfbae54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

public/js/extra.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,10 @@ export function finishView (view) {
368368
graphvizs.each(function (key, value) {
369369
try {
370370
var $value = $(value)
371+
const options = deserializeParamAttributeFromElement(value)
371372
var $ele = $(value).parent().parent()
372373
$value.unwrap()
373-
viz.renderString($value.text())
374+
viz.renderString($value.text(), options)
374375
.then(graphviz => {
375376
if (!graphviz) throw Error('viz.js output empty graph')
376377
$value.html(graphviz)

0 commit comments

Comments
 (0)