- Linting (ESLint): Revert addition of radix which is not needed in ES6 dev. environment (Babel to handle)

master
Brett Zamir 2020-01-07 18:59:36 +08:00
parent 3d95c9095f
commit 2ea517fc1b
1 changed files with 3 additions and 3 deletions

View File

@ -216,7 +216,7 @@ const svgElementToPdf = function (element, pdf, options) {
} }
pdf.setFontType(fontType); pdf.setFontType(fontType);
const pdfFontSize = node.hasAttribute('font-size') const pdfFontSize = node.hasAttribute('font-size')
? parseInt(node.getAttribute('font-size'), 10) ? parseInt(node.getAttribute('font-size'))
: 16; : 16;
/** /**
@ -252,8 +252,8 @@ const svgElementToPdf = function (element, pdf, options) {
case 'start': break; case 'start': break;
case 'default': node.setAttribute('text-anchor', 'start'); break; case 'default': node.setAttribute('text-anchor', 'start'); break;
} }
x = parseInt(node.getAttribute('x'), 10) - xOffset; x = parseInt(node.getAttribute('x')) - xOffset;
y = parseInt(node.getAttribute('y'), 10); y = parseInt(node.getAttribute('y'));
} }
// console.log('fontSize:', pdfFontSize, 'text:', node.textContent); // console.log('fontSize:', pdfFontSize, 'text:', node.textContent);
pdf.setFontSize(pdfFontSize).text( pdf.setFontSize(pdfFontSize).text(