diff --git a/e2e/playwright/snapshot-tests.spec.ts-snapshots/Draft-rectangles-should-look-right-1-Google-Chrome-linux.png b/e2e/playwright/snapshot-tests.spec.ts-snapshots/Draft-rectangles-should-look-right-1-Google-Chrome-linux.png index 9ef452cc5..a5fe57b94 100644 Binary files a/e2e/playwright/snapshot-tests.spec.ts-snapshots/Draft-rectangles-should-look-right-1-Google-Chrome-linux.png and b/e2e/playwright/snapshot-tests.spec.ts-snapshots/Draft-rectangles-should-look-right-1-Google-Chrome-linux.png differ diff --git a/src/lib/rectangleTool.ts b/src/lib/rectangleTool.ts index 544793245..27c494fd0 100644 --- a/src/lib/rectangleTool.ts +++ b/src/lib/rectangleTool.ts @@ -69,6 +69,13 @@ export const getRectangleCallExpressions = ( createPipeSubstitution(), createLiteral(tags[2]), ]), + createCallExpressionStdLib('lineTo', [ + createArrayExpression([ + createCallExpressionStdLib('profileStartX', [createPipeSubstitution()]), + createCallExpressionStdLib('profileStartY', [createPipeSubstitution()]), + ]), + createPipeSubstitution(), + ]), // close the rectangle createCallExpressionStdLib('close', [createPipeSubstitution()]), ]