5237 Replaced useRough by look

This commit is contained in:
Per Brolin
2024-06-12 12:10:20 +02:00
parent 36e4fcfdfe
commit 1b5bd999e2
24 changed files with 49 additions and 60 deletions

View File

@@ -25,7 +25,7 @@ export const forkJoin = (parent: SVG, node: Node, dir: string) => {
const y = (-1 * height) / 2;
let shape;
if (node.useRough) {
if (node.look === 'handdrawn') {
// @ts-ignore TODO: Fix rough typings
const rc = rough.svg(shapeSvg);
const roughNode = rc.rectangle(x, y, width, height, solidStateFill(lineColor));