mirror of
https://github.com/octoleo/plantuml.git
synced 2024-12-22 10:59:01 +00:00
Add check for elem existance to interactive SVG; reindent JS-code
This commit is contained in:
parent
f3e7e97fe8
commit
ae3f858c81
@ -213,6 +213,8 @@ public class SvgGraphics {
|
||||
" });" + "\n" +
|
||||
"" + "\n" +
|
||||
" links.forEach(link => {" + "\n" +
|
||||
" if (elemsMap[name1]) {" + "\n" +
|
||||
" if (elemsMap[name2]) {" + "\n" +
|
||||
" let name1 = link.classList[1];" + "\n" +
|
||||
" let name2 = link.classList[2];" + "\n" +
|
||||
"" + "\n" +
|
||||
@ -224,6 +226,8 @@ public class SvgGraphics {
|
||||
"" + "\n" +
|
||||
" addItemToMapOfLists(linkedLinks, name1, link);" + "\n" +
|
||||
" addItemToMapOfLists(linkedLinks, name2, link);" + "\n" +
|
||||
" }" + "\n" +
|
||||
" }" + "\n" +
|
||||
" });" + "\n" +
|
||||
"" + "\n" +
|
||||
" let selectedElems = [];" + "\n" +
|
||||
|
Loading…
Reference in New Issue
Block a user