Complete the code to perform a union of two shapes in Figma.
const unionShape = figma.combineShapes({ shapes: [shape1, shape2], operation: '[1]' });The UNION operation combines two shapes into one shape that covers both areas.
Complete the code to subtract shape2 from shape1 in Figma.
const subtractShape = figma.combineShapes({ shapes: [shape1, shape2], operation: '[1]' });The SUBTRACT operation removes the area of the second shape from the first shape.
Fix the error in the code to intersect two shapes in Figma.
const intersectShape = figma.combineShapes({ shapes: [shape1, shape2], operation: '[1]' });The INTERSECT operation keeps only the overlapping area of both shapes.
Fill both blanks to exclude overlapping areas between two shapes in Figma.
const excludeShape = figma.combineShapes({ shapes: [[1], [2]], operation: 'EXCLUDE' });The EXCLUDE operation removes the overlapping area between the two shapes, keeping only non-overlapping parts.
Fill all three blanks to create a combined shape using union, subtract, and intersect operations in Figma.
const combinedShape = figma.combineShapes({ shapes: [shapeA, shapeB], operation: '[1]' });
const subtractedShape = figma.combineShapes({ shapes: [shapeC, shapeD], operation: '[2]' });
const intersectedShape = figma.combineShapes({ shapes: [shapeE, shapeF], operation: '[3]' });This code shows three different boolean operations: UNION to combine shapes, SUBTRACT to remove one shape from another, and INTERSECT to keep only overlapping areas.