diff --git a/editor/extensions/ext-mathjax.js b/editor/extensions/ext-mathjax.js index c914eb6a..94f0a4b9 100644 --- a/editor/extensions/ext-mathjax.js +++ b/editor/extensions/ext-mathjax.js @@ -15,28 +15,28 @@ svgEditor.addExtension('mathjax', function () { // Configuration of the MathJax extention. // This will be added to the head tag before MathJax is loaded. - const /* mathjaxConfiguration = '', */ + const /* mathjaxConfiguration = ``, */ // mathjaxSrc = 'http://cdn.mathjax.org/mathjax/latest/MathJax.js', // Had been on https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_SVG.js // Obtained Text-AMS-MML_SVG.js from https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.3/config/TeX-AMS-MML_SVG.js diff --git a/editor/extensions/savefile.php b/editor/extensions/savefile.php index 7029cf7d..5e367b30 100644 --- a/editor/extensions/savefile.php +++ b/editor/extensions/savefile.php @@ -4,7 +4,7 @@ // files to your server which may cause disk space or possibly security problems require('savefile_config.php'); if (!isset($_POST['output_svg'])) { - print "You must supply output_svg"; + print 'You must supply output_svg'; exit; } $svg = $_POST['output_svg']; diff --git a/editor/jgraduate/jpicker.js b/editor/jgraduate/jpicker.js index 7cb2fa40..1117d843 100755 --- a/editor/jgraduate/jpicker.js +++ b/editor/jgraduate/jpicker.js @@ -785,7 +785,7 @@ const jPicker = function ($) { return { r: this.hexToInt(r), g: this.hexToInt(g), b: this.hexToInt(b), a: this.hexToInt(a) }; }, validateHex (hex) { - // if (typeof hex === "object") return ""; + // if (typeof hex === 'object') return ''; hex = hex.toLowerCase().replace(/[^a-f0-9]/g, ''); if (hex.length > 8) hex = hex.substring(0, 8); return hex; diff --git a/editor/jspdf/jspdf.plugin.svgToPdf.js b/editor/jspdf/jspdf.plugin.svgToPdf.js index 1beb0296..803b600c 100644 --- a/editor/jspdf/jspdf.plugin.svgToPdf.js +++ b/editor/jspdf/jspdf.plugin.svgToPdf.js @@ -57,12 +57,12 @@ const removeAttributes = function (node, attributes) { const svgElementToPdf = function (element, pdf, options) { // pdf is a jsPDF object - // console.log("options =", options); + // console.log('options =', options); const remove = (options.removeInvalid === undefined ? false : options.removeInvalid); const k = (options.scale === undefined ? 1.0 : options.scale); let colorMode = null; [].forEach.call(element.children, function (node) { - // console.log("passing: ", node); + // console.log('passing: ', node); // let hasStrokeColor = false; let hasFillColor = false; let fillRGB; @@ -192,7 +192,7 @@ const svgElementToPdf = function (element, pdf, options) { x = parseInt(node.getAttribute('x'), 10) - xOffset; y = parseInt(node.getAttribute('y'), 10); } - // console.log("fontSize:", pdfFontSize, "text:", node.textContent); + // console.log('fontSize:', pdfFontSize, 'text:', node.textContent); pdf.setFontSize(pdfFontSize).text( k * x, k * y, diff --git a/editor/svg-editor.js b/editor/svg-editor.js index e5b00f70..334f37bd 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -2145,8 +2145,8 @@ editor.init = function () { break; // TODO: Update values that change on move/resize, etc - // case "select": - // case "resize": + // case 'select': + // case 'resize': // break; } } @@ -5121,7 +5121,7 @@ editor.init = function () { updateCanvas(true); // }); - // const revnums = "svg-editor.js ($Rev$) "; + // const revnums = 'svg-editor.js ($Rev$) '; // revnums += svgCanvas.getVersion(); // $('#copyright')[0].setAttribute('title', revnums); diff --git a/editor/svgutils.js b/editor/svgutils.js index d6aab6e3..0d573582 100644 --- a/editor/svgutils.js +++ b/editor/svgutils.js @@ -295,7 +295,7 @@ export const walkTreePost = function (elem, cbFn) { */ export const getUrlFromAttr = function (attrVal) { if (attrVal) { - // url("#somegrad") + // url('#somegrad') if (attrVal.startsWith('url("')) { return attrVal.substring(5, attrVal.indexOf('"', 6)); }