Complete the code to apply a layer blur effect with a radius of 10.
layer.effects = [{ type: 'LAYER_BLUR', radius: [1] }]The radius value controls the strength of the blur. A radius of 10 applies a moderate blur effect.
Complete the code to add a layer blur effect to the selected node.
const node = figma.currentPage.selection[0]; node.effects = [{ type: [1], radius: 8 }];
The effect type must be 'LAYER_BLUR' to apply a blur effect to the layer itself.
Fix the error in the code to correctly apply a layer blur effect with radius 12.
node.effects = [{ type: 'LAYER_BLUR', radius: [1] }];The radius must be a number, not a string, so use 12 without quotes.
Fill both blanks to create a layer blur effect with radius 15 and add it to the node's effects array.
node.effects = [[1]]; node.effects[0].radius = [2];
First, create a layer blur effect with radius 0, then update the radius to 15.
Fill all three blanks to apply a layer blur effect with radius 20, then log the radius value.
node.effects = [{ type: [1], radius: [2] }];
console.log(node.effects[0].[3]);Use 'LAYER_BLUR' as the effect type, 20 as the radius number, and access the radius property without quotes.