Skip to content

Instantly share code, notes, and snippets.

function hasRoundedCorners(r) {
const result = figma.currentPage.findAll(n => n.cornerRadius === r)
figma.currentPage.selection = result
}
// 引数に任意のnumber
hasRoundedCorners(8);
@hokaccha
hokaccha / font-awsome.jsx
Created September 18, 2013 08:36
イラレで選択したFont Awesomeの文字のクラス名を表示するスクリプト
(function() {
// Font Awesome version: 3.2.1
// map from: http://fortawesome.github.io/Font-Awesome/cheatsheet/
// You can copy for map string using this script at console.
//
// var result = {};
// $('.row .span4').each(function() {
// var $row = $(this);
// var code = ($row.find('.muted').text().match(/&#x(\w+);/) || [])[1];