This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hasRoundedCorners(r) { | |
const result = figma.currentPage.findAll(n => n.cornerRadius === r) | |
figma.currentPage.selection = result | |
} | |
// 引数に任意のnumber | |
hasRoundedCorners(8); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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]; |