Update rectangle code gen to use profileStart to close shape (#2565)

* Update rectangle code gen to use profileStart to close shape

* A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu)

* Re-run CI

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Frank Noirot
2024-05-31 14:02:46 -04:00
committed by GitHub
parent b07bbda20b
commit 59b1319e50
2 changed files with 7 additions and 0 deletions

View File

@ -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()]),
]