Skip to content

Commit f88dace

Browse files
committed
Use template literal
1 parent 0e0e931 commit f88dace

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const xyToString = function (x, y, precision = 3) {
3939
}
4040

4141
export const sizeToString = function (size) {
42-
return `${size.width.toFixed(1)}×${size.height.toFixed(1)} [${size.aspectRatio.toFixed(3)}] mode=${aspectModeToString(size.aspectMode)}${getSizeMaxString(size)}${getSizeMinString(size)}${getSizeSnapString(size, 1)}${size._parent ? ('' + sizeToString(size._parent)) : ''}`
42+
return `${size.width.toFixed(1)}×${size.height.toFixed(1)} [${size.aspectRatio.toFixed(3)}] mode=${aspectModeToString(size.aspectMode)}${getSizeMaxString(size)}${getSizeMinString(size)}${getSizeSnapString(size, 1)}${size._parent ? (`${sizeToString(size._parent)}`) : ''}`
4343
}
4444

4545
export const rectToString = function (rect, precision = 1) {

0 commit comments

Comments
 (0)