fix: new Literal data structure update

This commit is contained in:
Kevin Nadro
2025-01-28 13:04:52 -06:00
parent 648b37c1dd
commit c6d563f08f
2 changed files with 3 additions and 3 deletions

View File

@ -612,8 +612,8 @@ export class SceneEntities {
segment.type === 'TangentialArcTo'
? segmentUtils.tangentialArcTo.init
: segment.type === 'Circle'
? segmentUtils.circle.init
: segmentUtils.straight.init
? segmentUtils.circle.init
: segmentUtils.straight.init
const input: SegmentInputs =
segment.type === 'Circle'
? {

View File

@ -141,7 +141,7 @@ export function updateCenterRectangleSketch(
const literal = arrayExpression.elements[0]
if (isLiteral(literal)) {
callExpression.arguments[0] = createArrayExpression([
createLiteral(literal.value),
createLiteral(literal.value.value),
createLiteral(Math.abs(twoX)),
])
}