npm update with fix to new eslint issues
This commit is contained in:
@@ -28,11 +28,7 @@ function transformToString (xform) {
|
||||
text = 'translate(' + m.e + ',' + m.f + ')';
|
||||
break;
|
||||
case 3: // SCALE
|
||||
if (m.a === m.d) {
|
||||
text = 'scale(' + m.a + ')';
|
||||
} else {
|
||||
text = 'scale(' + m.a + ',' + m.d + ')';
|
||||
}
|
||||
text = (m.a === m.d) ? `scale(${m.a})` : `scale(${m.a},${m.d})`;
|
||||
break;
|
||||
case 4: { // ROTATE
|
||||
let cx = 0;
|
||||
|
||||
@@ -315,11 +315,7 @@ export const convertToXMLReferences = function (input) {
|
||||
let output = '';
|
||||
[...input].forEach((ch) => {
|
||||
const c = ch.charCodeAt();
|
||||
if (c <= 127) {
|
||||
output += ch;
|
||||
} else {
|
||||
output += `&#${c};`;
|
||||
}
|
||||
output += (c <= 127) ? ch : `&#${c};`;
|
||||
});
|
||||
return output;
|
||||
};
|
||||
@@ -778,18 +774,17 @@ export const getPathDFromElement = function (elem) {
|
||||
h = b.height;
|
||||
num = 4 - num; // Why? Because!
|
||||
|
||||
if (!rx && !ry) {
|
||||
d = (!rx && !ry)
|
||||
// Regular rect
|
||||
d = getPathDFromSegments([
|
||||
? getPathDFromSegments([
|
||||
['M', [x, y]],
|
||||
['L', [x + w, y]],
|
||||
['L', [x + w, y + h]],
|
||||
['L', [x, y + h]],
|
||||
['L', [x, y]],
|
||||
['Z', []]
|
||||
]);
|
||||
} else {
|
||||
d = getPathDFromSegments([
|
||||
])
|
||||
: getPathDFromSegments([
|
||||
['M', [x, y + ry]],
|
||||
['C', [x, y + ry / num, x + rx / num, y, x + rx, y]],
|
||||
['L', [x + w - rx, y]],
|
||||
@@ -801,7 +796,6 @@ export const getPathDFromElement = function (elem) {
|
||||
['L', [x, y + ry]],
|
||||
['Z', []]
|
||||
]);
|
||||
}
|
||||
break;
|
||||
} default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user