fix: new Literal data structure update
This commit is contained in:
		@ -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'
 | 
			
		||||
          ? {
 | 
			
		||||
 | 
			
		||||
@ -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)),
 | 
			
		||||
        ])
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user