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