mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-23 23:44:06 +01:00
This commit is contained in:
parent
172b7ed018
commit
df3f444e48
6 changed files with 85 additions and 89 deletions
|
|
@ -28,7 +28,7 @@ export const graphvizRender = (element: Element, cdn = Constants.PROTYLE_CDN) =>
|
|||
const url = window.URL || window.webkitURL;
|
||||
const blobUrl = url.createObjectURL(blob);
|
||||
const worker = new Worker(blobUrl);
|
||||
new window.Viz({worker})
|
||||
new Viz({worker})
|
||||
.renderSVGElement(Lute.UnEscapeHTMLStr(e.getAttribute("data-content"))).then((result: HTMLElement) => {
|
||||
renderElement.innerHTML = result.outerHTML;
|
||||
renderElement.classList.remove("ft__error");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue