@@ -8494,7 +8494,7 @@ var SVGSymbols = /** @class */ (function () {
8494
8494
contactdoos_aarding: "\n<line x1=\"20\" y1=\"-15\" x2=\"20\" y2=\"15\" stroke=\"black\" stroke-width=\"2\" />\n",
8495
8495
contactdoos_kinderveilig: "\n<line x1=\"35\" y1=\"-20\" x2=\"35\" y2=\"-14.1\" stroke=\"black\" stroke-width=\"2\" />\n<line x1=\"35\" y1=\"20\" x2=\"35\" y2=\"14.1\" stroke=\"black\" stroke-width=\"2\" />\n",
8496
8496
bel: "\n<path d=\"M20 0 A15 15 0 0 1 0 15\" stroke=\"black\" fill=\"none\" stroke-width=\"2\" />\n<path d=\"M20 0 A15 15 0 0 0 0 -15\" stroke=\"black\" fill=\"none\" stroke-width=\"2\" />\n<line x1=\"0\" y1=\"15\" x2=\"0\" y2=\"-15\" stroke=\"black\" stroke-width=\"2\" />\n",
8497
- boiler: "\n<circle cx=\"20\" cy=\"0\" r=\"20\" style=\"stroke:black;fill:url(#VerticalStripe)\" />\n",
8497
+ boiler: "\n<circle cx=\"20\" cy=\"0\" r=\"20\" style=\"stroke:black; fill:url(#VerticalStripe); \" />\n",
8498
8498
boiler_accu: "\n<circle cx=\"20\" cy=\"0\" r=\"20\" style=\"stroke:black;fill:none\" />\n<circle cx=\"20\" cy=\"0\" r=\"15\" style=\"stroke:black;fill:url(#VerticalStripe)\" />\n",
8499
8499
motor: "\n<circle cx=\"20\" cy=\"0\" r=\"20\" style=\"stroke:black;fill:none\" />\n<text x=\"20\" y=\"6\" style=\"text-anchor:middle\" font-family=\"Arial, Helvetica, sans-serif\" font-weight=\"bold\" font-size=\"16\">M</text>\n",
8500
8500
elektriciteitsmeter: "\n<rect x=\"0\" y=\"-20\" width=\"40\" height=\"40\" fill=\"none\" style=\"stroke:black\" />\n<line x1=\"0\" y1=\"-6\" x2=\"40\" y2=\"-6\" stroke=\"black\" stroke-width=\"1\" />\n<text x=\"20\" y=\"10\" style=\"text-anchor:middle\" font-family=\"Arial, Helvetica, sans-serif\" font-weight=\"bold\" font-size=\"12\">kWh</text>\n",
@@ -9507,7 +9507,7 @@ function HLRedrawTreeHTMLLight() {
9507
9507
}
9508
9508
function HLRedrawTreeSVG() {
9509
9509
var str = '<b>Tekening: </b>Ga naar het print-menu om de tekening af te printen of te exporteren als SVG vector graphics.<br><br>'
9510
- + flattenSVGfromString(structure.toSVG(0, "horizontal").data, 10)
9510
+ + '<div id="EDS">' + flattenSVGfromString(structure.toSVG(0, "horizontal").data, 10) + '</div>'
9511
9511
+ '<h2>Legende:</h2>'
9512
9512
+ '<button style="background-color:green;">▲</button> Item hierboven invoegen (zelfde niveau)<br>'
9513
9513
+ '<button style="background-color:green;">▼</button> Item hieronder invoegen (zelfde niveau)<br>'
@@ -9642,6 +9642,7 @@ function toggleAppView(type) {
9642
9642
var lastview = structure.properties.currentView;
9643
9643
structure.properties.currentView = type;
9644
9644
if (type === '2col') {
9645
+ document.getElementById("configsection").innerHTML = '';
9645
9646
document.getElementById("configsection").style.display = 'none';
9646
9647
document.getElementById("outerdiv").style.display = 'none';
9647
9648
document.getElementById("ribbon").style.display = 'flex';
@@ -9651,13 +9652,20 @@ function toggleAppView(type) {
9651
9652
else if (type === 'config') {
9652
9653
document.getElementById("configsection").style.display = 'block';
9653
9654
document.getElementById("outerdiv").style.display = 'none';
9655
+ document.getElementById("ribbon").innerHTML = ''; // Voor performance redenen
9654
9656
document.getElementById("ribbon").style.display = 'none';
9657
+ document.getElementById("left_col_inner").innerHTML = ''; // Voor performance redenen
9658
+ // We zetten bewist het SVG element EDS niet op nul want is nodig voor het print-voorbeeld
9655
9659
document.getElementById("canvas_2col").style.display = 'none';
9656
9660
}
9657
9661
else if (type === 'draw') {
9662
+ document.getElementById("configsection").innerHTML = "";
9658
9663
document.getElementById("configsection").style.display = 'none';
9659
9664
document.getElementById("outerdiv").style.display = 'flex';
9660
9665
document.getElementById("ribbon").style.display = 'flex';
9666
+ document.getElementById("left_col_inner").innerHTML = ''; // Voor performance redenen
9667
+ if (document.getElementById("EDS") !== null)
9668
+ document.getElementById("EDS").innerHTML = ''; // Deze is nodig anders wil het situatieschema het patroon VerticalStripe niet laden wegens dubbel gedefinieerd
9661
9669
document.getElementById("canvas_2col").style.display = 'none';
9662
9670
}
9663
9671
if ((['2col', 'draw'].includes(type)) && (['2col', 'draw'].includes(lastview)) && (type !== lastview))
0 commit comments