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:
@ -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()]),
|
||||
]
|
||||
|
||||
|
Reference in New Issue
Block a user