enable curveFitting & bump roughjs (#373)

This commit is contained in:
David Luzar 2020-01-15 20:01:50 +01:00 committed by Faustino Kialungila
parent 657014466c
commit 42968ef44d
3 changed files with 6 additions and 5 deletions

6
package-lock.json generated
View File

@ -12833,9 +12833,9 @@
}
},
"roughjs": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/roughjs/-/roughjs-4.0.3.tgz",
"integrity": "sha512-bXqNB7R9f7Zg3D4x8Cgz4KCnP2FJJCEvOPgsrg3FSlq6tOFm3aTAC+Lb9z64m0tOGW4Lq3hzAp0UMpB4Dq4mhw=="
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/roughjs/-/roughjs-4.0.4.tgz",
"integrity": "sha512-rXmMGcALUlYIFKBbn9aWuxznPKOtnx9bouVC407/uneUNx0mT/4Mo2Z4TUieoCOT+rWmHnOQqVT1FvoN+L3baA=="
},
"rsvp": {
"version": "4.8.5",

View File

@ -10,7 +10,7 @@
"react": "16.12.0",
"react-dom": "16.12.0",
"react-scripts": "3.3.0",
"roughjs": "4.0.3"
"roughjs": "^4.0.4"
},
"devDependencies": {
"@types/jest": "^24.0.25",

View File

@ -85,7 +85,8 @@ export function renderElement(
fillStyle: element.fillStyle,
strokeWidth: element.strokeWidth,
roughness: element.roughness,
seed: element.seed
seed: element.seed,
curveFitting: 1
}
);
}