fix: Skia rendering issues (#4200)
This commit is contained in:
parent
6b24592e4a
commit
f59e608f18
@ -49,7 +49,7 @@
|
|||||||
"react": "17.0.2",
|
"react": "17.0.2",
|
||||||
"react-dom": "17.0.2",
|
"react-dom": "17.0.2",
|
||||||
"react-scripts": "4.0.3",
|
"react-scripts": "4.0.3",
|
||||||
"roughjs": "4.4.3",
|
"roughjs": "4.4.4",
|
||||||
"sass": "1.43.4",
|
"sass": "1.43.4",
|
||||||
"socket.io-client": "2.3.1",
|
"socket.io-client": "2.3.1",
|
||||||
"typescript": "4.4.4"
|
"typescript": "4.4.4"
|
||||||
|
@ -323,12 +323,13 @@ export const generateRoughOptions = (
|
|||||||
roughness: element.roughness,
|
roughness: element.roughness,
|
||||||
stroke: element.strokeColor,
|
stroke: element.strokeColor,
|
||||||
preserveVertices: continuousPath,
|
preserveVertices: continuousPath,
|
||||||
|
// disable decimals to fix Skia rendering issues #4046
|
||||||
|
fixedDecimalPlaceDigits: 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
switch (element.type) {
|
switch (element.type) {
|
||||||
case "rectangle":
|
case "rectangle":
|
||||||
case "diamond":
|
case "diamond":
|
||||||
case "image":
|
|
||||||
case "ellipse": {
|
case "ellipse": {
|
||||||
options.fillStyle = element.fillStyle;
|
options.fillStyle = element.fillStyle;
|
||||||
options.fill =
|
options.fill =
|
||||||
|
@ -12797,10 +12797,10 @@ rollup@^1.31.1:
|
|||||||
"@types/node" "*"
|
"@types/node" "*"
|
||||||
acorn "^7.1.0"
|
acorn "^7.1.0"
|
||||||
|
|
||||||
roughjs@4.4.3:
|
roughjs@4.4.4:
|
||||||
version "4.4.3"
|
version "4.4.4"
|
||||||
resolved "https://registry.yarnpkg.com/roughjs/-/roughjs-4.4.3.tgz#c6278e1bfe6e16bfd8470d8a835236a81df877f9"
|
resolved "https://registry.yarnpkg.com/roughjs/-/roughjs-4.4.4.tgz#880e2ef0cb195f0e7e3096f0a2d474121ae874fe"
|
||||||
integrity sha512-bfeqk/dWmQUkn6HHvKGJlENOSHxmPZ9pS33u9WtK8UeQRvqrJZ+2i7AgyOsUurEc9LqOLGHN2L6oUiaQxcdljg==
|
integrity sha512-OXoPkOIoT1vlo+kvy6JZemRxRPkWM5spWUCU+c8JI6bca95tc1Z82SBABRHH+aTpvI+ZK3STGrmvire/f56wvQ==
|
||||||
dependencies:
|
dependencies:
|
||||||
path-data-parser "^0.1.0"
|
path-data-parser "^0.1.0"
|
||||||
points-on-curve "^0.2.0"
|
points-on-curve "^0.2.0"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user