mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Fix reftest precision
This commit is contained in:
parent
5bd06895e9
commit
97b0a1f21d
@ -119,7 +119,7 @@ class RefTestRenderer implements RenderTarget<string> {
|
|||||||
];
|
];
|
||||||
|
|
||||||
const stops = gradient.colorStops.map(
|
const stops = gradient.colorStops.map(
|
||||||
stop => `${stop.color.toString()} ${Math.round(stop.stop * 100) / 100}`
|
stop => `${stop.color.toString()} ${Math.ceil(stop.stop * 100) / 100}`
|
||||||
);
|
);
|
||||||
|
|
||||||
this.writeLine(
|
this.writeLine(
|
||||||
|
Loading…
Reference in New Issue
Block a user