Complete the code to set the corner radius of a rectangle in Figma.
rectangle.cornerRadius = [1]In Figma's plugin API, the cornerRadius property is set directly with a number representing pixels.
Complete the code to set the smoothing of a rectangle's corners in Figma.
rectangle.cornerSmoothing = [1]The cornerSmoothing property accepts a number between 0 and 1, where 0 means no smoothing and 1 means full smoothing.
Fix the error in setting corner radius and smoothing for a rectangle.
rectangle.cornerRadius = [1] rectangle.cornerSmoothing = 0.7
cornerRadius must be a number, not a string or function call.
Fill both blanks to set corner radius and smoothing correctly.
rectangle.cornerRadius = [1] rectangle.cornerSmoothing = [2]
cornerRadius is a number (20), and cornerSmoothing is a decimal number (0.3) without quotes.
Fill all three blanks to create a rectangle with corner radius and smoothing, then log the values.
const rect = figma.createRectangle() rect.cornerRadius = [1] rect.cornerSmoothing = [2] console.log('Radius:', [3])
Set cornerRadius to 15 (number), cornerSmoothing to 0.6 (number), and log rect.cornerRadius to see the radius value.