Skip to content

Commit bb9417a

Browse files
committed
use meaningful IDs for svg tags
1 parent d0c6857 commit bb9417a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220
let cNode = { value: null };
221221
if (DlCore.fromPolishNotation(cNode, inputString, false, true)) {
222222
setTxt(txtInputDotted, DlCore.toPolishNotation_numVars(cNode.value));
223-
let svg = GalacticSvgGenerator.fromFormula(getFontHeigth(), inputString, "svg1", getPlain(), true, getPaddingL(), getPaddingT(), getPaddingR(), getPaddingB(), getDebug());
223+
let svg = GalacticSvgGenerator.fromFormula(getFontHeigth(), inputString, "svgFormula", getPlain(), true, getPaddingL(), getPaddingT(), getPaddingR(), getPaddingB(), getDebug());
224224
setTxtRaw(txtInfixFormula, DlCore.formulaRepresentation_unicode(cNode.value));
225225
setSyntaxTree(cNode.value, targetSvgSyntaxTree, txtSvgSyntaxTree);
226226
setTxtRaw(txtSvgStructural, svg);
@@ -258,7 +258,7 @@
258258
let cNode = { value: null };
259259
if (DlCore.fromPolishNotation_noRename(cNode, inputString, false, true)) {
260260
setTxt(txtInputNormal, DlCore.toPolishNotation(cNode.value));
261-
let svg = GalacticSvgGenerator.fromFormula(getFontHeigth(), inputString, "svg1", getPlain(), false, getPaddingL(), getPaddingT(), getPaddingR(), getPaddingB(), getDebug());
261+
let svg = GalacticSvgGenerator.fromFormula(getFontHeigth(), inputString, "svgFormula", getPlain(), false, getPaddingL(), getPaddingT(), getPaddingR(), getPaddingB(), getDebug());
262262
setTxtRaw(txtInfixFormula, DlCore.formulaRepresentation_unicode(cNode.value));
263263
setSyntaxTree(cNode.value, targetSvgSyntaxTree, txtSvgSyntaxTree);
264264
setTxtRaw(txtSvgStructural, svg);
@@ -293,7 +293,7 @@
293293
btnApplyDProof.addEventListener("click", function() {
294294
const inputString = txtInputDProof.value;
295295
try {
296-
let svg = GalacticSvgGenerator.fromProof(getFontHeigth(), inputString, "svg2", getPlain(), getPaddingL(), getPaddingT(), getPaddingR(), getPaddingB(), getDebug());
296+
let svg = GalacticSvgGenerator.fromProof(getFontHeigth(), inputString, "svgProof", getPlain(), getPaddingL(), getPaddingT(), getPaddingR(), getPaddingB(), getDebug());
297297
if (svg === undefined)
298298
throw "conversion failed";
299299
setTxtRaw(txtSvgStructural, svg);
@@ -324,7 +324,7 @@
324324
btnApplyProofSummary.addEventListener("click", function() {
325325
const inputString = txtInputProofSummary.value;
326326
try {
327-
let svg = GalacticSvgGenerator.fromProofSummary(getFontHeigth(), inputString, "svg2", getPlain(), getCentered(), !getDotted(), getPaddingL(), getPaddingT(), getPaddingR(), getPaddingB(), getDebug());
327+
let svg = GalacticSvgGenerator.fromProofSummary(getFontHeigth(), inputString, "svgProofSummary", getPlain(), getCentered(), !getDotted(), getPaddingL(), getPaddingT(), getPaddingR(), getPaddingB(), getDebug());
328328
if (svg === undefined)
329329
throw "conversion failed";
330330
setTxtRaw(txtSvgStructural, svg);

0 commit comments

Comments
 (0)