Jan 01, 1970
Mwen te panse se pa yon gwo zafè, ouvri yon Figma, pran kòd sous SVG la, jete li epi .... pa travay 😔
Rechèch pwoblèm nan, li te tounen soti ke bibliyotèk la ki anime SVG travay dirèkteman ak eleman rect
andedan menm SVG la. Oke ankò pa gen pwoblèm mwen te panse :), ann jis chanje non tout kouch yo Rect epi nou pral kontan.
Chanje non, mwen gade kòd sous SVG la epi mwen pa wè rect
:(
Li te tounen soti ke pou SVG konprann eleman yo nou vle anime kòm recr
nou bezwen trase yo .... woulo liv tanbou - atravè ankadreman.
const selectedNodes = figma.currentPage.selection; if (selectedNodes.length === 0) { figma.notify("Please select at least one layer."); } else { selectedNodes.forEach(node => { const frame = figma.createFrame(); frame.resize(node.width, node.height); frame.x = node.x; frame.y = node.y; frame.appendChild(node); node.x = 0; node.y = 0; }); figma.notify("All selected layers are wrapped in frames!"); } figma.closePlugin();