summaryrefslogtreecommitdiff
path: root/node_modules/svgo/plugins/cleanupListOfValues.js
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-01-04 11:07:54 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-01-04 11:07:54 +0800
commit275f9dc0bdf3e58aa36b800f55f8648fbc55d8af (patch)
tree81c7cf120fb703cfd5e3162f2366033d9fe5c7f8 /node_modules/svgo/plugins/cleanupListOfValues.js
parent2b4ab36917baef56c7ce1602966f941be15af785 (diff)
upgrade
Diffstat (limited to 'node_modules/svgo/plugins/cleanupListOfValues.js')
-rw-r--r--node_modules/svgo/plugins/cleanupListOfValues.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/node_modules/svgo/plugins/cleanupListOfValues.js b/node_modules/svgo/plugins/cleanupListOfValues.js
index 7150449e..618fd062 100644
--- a/node_modules/svgo/plugins/cleanupListOfValues.js
+++ b/node_modules/svgo/plugins/cleanupListOfValues.js
@@ -68,7 +68,7 @@ exports.fn = (_root, params) => {
// convert absolute values to pixels
if (convertToPx && units && units in absoluteLengths) {
const pxNum = Number(
- (absoluteLengths[units] * Number(match[1])).toFixed(floatPrecision)
+ (absoluteLengths[units] * Number(match[1])).toFixed(floatPrecision),
);
if (pxNum.toString().length < match[0].length) {
@@ -112,7 +112,7 @@ exports.fn = (_root, params) => {
if (node.attributes['enable-background'] != null) {
node.attributes['enable-background'] = roundValues(
- node.attributes['enable-background']
+ node.attributes['enable-background'],
);
}
@@ -122,7 +122,7 @@ exports.fn = (_root, params) => {
if (node.attributes['stroke-dasharray'] != null) {
node.attributes['stroke-dasharray'] = roundValues(
- node.attributes['stroke-dasharray']
+ node.attributes['stroke-dasharray'],
);
}