From 2ea517fc1b20d855fafc9ebe713fae357b9ea8d3 Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Tue, 7 Jan 2020 18:59:36 +0800 Subject: [PATCH] - Linting (ESLint): Revert addition of radix which is not needed in ES6 dev. environment (Babel to handle) --- editor/jspdf/jspdf.plugin.svgToPdf.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/editor/jspdf/jspdf.plugin.svgToPdf.js b/editor/jspdf/jspdf.plugin.svgToPdf.js index 31fdd9ed..5cb2072c 100644 --- a/editor/jspdf/jspdf.plugin.svgToPdf.js +++ b/editor/jspdf/jspdf.plugin.svgToPdf.js @@ -216,7 +216,7 @@ const svgElementToPdf = function (element, pdf, options) { } pdf.setFontType(fontType); const pdfFontSize = node.hasAttribute('font-size') - ? parseInt(node.getAttribute('font-size'), 10) + ? parseInt(node.getAttribute('font-size')) : 16; /** @@ -252,8 +252,8 @@ const svgElementToPdf = function (element, pdf, options) { case 'start': break; case 'default': node.setAttribute('text-anchor', 'start'); break; } - x = parseInt(node.getAttribute('x'), 10) - xOffset; - y = parseInt(node.getAttribute('y'), 10); + x = parseInt(node.getAttribute('x')) - xOffset; + y = parseInt(node.getAttribute('y')); } // console.log('fontSize:', pdfFontSize, 'text:', node.textContent); pdf.setFontSize(pdfFontSize).text(