mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Fix formatting
This commit is contained in:
parent
757c32f6c4
commit
0b9f34a5bf
@ -138,11 +138,13 @@ const parseColorStops = (args: Array<string>, firstColorStopIndex: number, lineL
|
||||
}
|
||||
|
||||
const absoluteValuedColorStops = colorStops.map(({color, stop}) => {
|
||||
const absoluteStop =
|
||||
lineLength === 0 ? 0 : stop ? stop.getAbsoluteValue(lineLength) / lineLength : null;
|
||||
|
||||
return {
|
||||
color,
|
||||
stop:
|
||||
// $FlowFixMe
|
||||
lineLength === 0 ? 0 : stop ? stop.getAbsoluteValue(lineLength) / lineLength : null
|
||||
stop: absoluteStop
|
||||
};
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user