fix: Skia rendering issues (#4200)

This commit is contained in:
David Luzar 2021-11-04 15:55:10 +01:00 committed by GitHub
parent 6b24592e4a
commit f59e608f18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 6 deletions

View file

@ -323,12 +323,13 @@ export const generateRoughOptions = (
roughness: element.roughness,
stroke: element.strokeColor,
preserveVertices: continuousPath,
// disable decimals to fix Skia rendering issues #4046
fixedDecimalPlaceDigits: 0,
};
switch (element.type) {
case "rectangle":
case "diamond":
case "image":
case "ellipse": {
options.fillStyle = element.fillStyle;
options.fill =