Slide 19
Slide 19 text
// code
figma.on(' ', () => {
const selection = figma.currentPage.selection.map(node => ({ id: node.id, name: node.name }));
({ type: 'selection', selection });
});
// ui
window.addEventListener(‘message’, event => {
if (event.origin !== 'https://www.figma.com') return;
textField.value = JSON.stringify( , null, 0);
}, false);
button.addEventListener(click, () => {
fetch(' /repos/openameba/spindle/actions/workflows/..., {...})
}, false);
selectionchange
figma.ui.postMessage
event.data.pluginMessage.selection
https://api.github.com
D E S I G N S Y S T E M S p i n d l e
C o p y r i g h t @ 2 0 2 4 C y b e r A g e n t A l l R i g h t s R e s e r v e d .