From 275f9dc0bdf3e58aa36b800f55f8648fbc55d8af Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Thu, 4 Jan 2024 11:07:54 +0800 Subject: upgrade --- node_modules/svgo/plugins/convertShapeToPath.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'node_modules/svgo/plugins/convertShapeToPath.js') diff --git a/node_modules/svgo/plugins/convertShapeToPath.js b/node_modules/svgo/plugins/convertShapeToPath.js index 8a3b5a1f..f0ba0fd8 100644 --- a/node_modules/svgo/plugins/convertShapeToPath.js +++ b/node_modules/svgo/plugins/convertShapeToPath.js @@ -46,7 +46,7 @@ exports.fn = (root, params) => { // TODO: Calculate sizes from % and non-px units if possible. if (Number.isNaN(x - y + width - height)) return; /** - * @type {Array} + * @type {PathDataItem[]} */ const pathData = [ { command: 'M', args: [x, y] }, @@ -71,7 +71,7 @@ exports.fn = (root, params) => { const y2 = Number(node.attributes.y2 || '0'); if (Number.isNaN(x1 - y1 + x2 - y2)) return; /** - * @type {Array} + * @type {PathDataItem[]} */ const pathData = [ { command: 'M', args: [x1, y1] }, @@ -91,14 +91,14 @@ exports.fn = (root, params) => { node.attributes.points != null ) { const coords = (node.attributes.points.match(regNumber) || []).map( - Number + Number, ); if (coords.length < 4) { detachNodeFromParent(node, parentNode); return; } /** - * @type {Array} + * @type {PathDataItem[]} */ const pathData = []; for (let i = 0; i < coords.length; i += 2) { @@ -124,7 +124,7 @@ exports.fn = (root, params) => { return; } /** - * @type {Array} + * @type {PathDataItem[]} */ const pathData = [ { command: 'M', args: [cx, cy - r] }, @@ -149,7 +149,7 @@ exports.fn = (root, params) => { return; } /** - * @type {Array} + * @type {PathDataItem[]} */ const pathData = [ { command: 'M', args: [ecx, ecy - ry] }, -- cgit v1.2.3