1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-25 14:27:33 +00:00

Add check for elem existance to interactive SVG; reindent JS-code

This commit is contained in:
Kir Ax 2021-03-02 21:25:00 +07:00
parent f3e7e97fe8
commit 0cb778b063

View File

@ -216,6 +216,8 @@ public class SvgGraphics {
" let name1 = link.classList[1];" + "\n" +
" let name2 = link.classList[2];" + "\n" +
"" + "\n" +
" if (elemsMap[name1]) {" + "\n" +
" if (elemsMap[name2]) {" + "\n" +
" let elem1 = elemsMap[name1];" + "\n" +
" let elem2 = elemsMap[name2];" + "\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" +