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:
Binary file not shown.
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
@ -69,6 +69,13 @@ export const getRectangleCallExpressions = (
|
|||||||
createPipeSubstitution(),
|
createPipeSubstitution(),
|
||||||
createLiteral(tags[2]),
|
createLiteral(tags[2]),
|
||||||
]),
|
]),
|
||||||
|
createCallExpressionStdLib('lineTo', [
|
||||||
|
createArrayExpression([
|
||||||
|
createCallExpressionStdLib('profileStartX', [createPipeSubstitution()]),
|
||||||
|
createCallExpressionStdLib('profileStartY', [createPipeSubstitution()]),
|
||||||
|
]),
|
||||||
|
createPipeSubstitution(),
|
||||||
|
]), // close the rectangle
|
||||||
createCallExpressionStdLib('close', [createPipeSubstitution()]),
|
createCallExpressionStdLib('close', [createPipeSubstitution()]),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user