|
220 | 220 | let cNode = { value: null }; |
221 | 221 | if (DlCore.fromPolishNotation(cNode, inputString, false, true)) { |
222 | 222 | 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()); |
224 | 224 | setTxtRaw(txtInfixFormula, DlCore.formulaRepresentation_unicode(cNode.value)); |
225 | 225 | setSyntaxTree(cNode.value, targetSvgSyntaxTree, txtSvgSyntaxTree); |
226 | 226 | setTxtRaw(txtSvgStructural, svg); |
|
258 | 258 | let cNode = { value: null }; |
259 | 259 | if (DlCore.fromPolishNotation_noRename(cNode, inputString, false, true)) { |
260 | 260 | 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()); |
262 | 262 | setTxtRaw(txtInfixFormula, DlCore.formulaRepresentation_unicode(cNode.value)); |
263 | 263 | setSyntaxTree(cNode.value, targetSvgSyntaxTree, txtSvgSyntaxTree); |
264 | 264 | setTxtRaw(txtSvgStructural, svg); |
|
293 | 293 | btnApplyDProof.addEventListener("click", function() { |
294 | 294 | const inputString = txtInputDProof.value; |
295 | 295 | 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()); |
297 | 297 | if (svg === undefined) |
298 | 298 | throw "conversion failed"; |
299 | 299 | setTxtRaw(txtSvgStructural, svg); |
|
324 | 324 | btnApplyProofSummary.addEventListener("click", function() { |
325 | 325 | const inputString = txtInputProofSummary.value; |
326 | 326 | 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()); |
328 | 328 | if (svg === undefined) |
329 | 329 | throw "conversion failed"; |
330 | 330 | setTxtRaw(txtSvgStructural, svg); |
|
0 commit comments