@wordpress/block-library
Version:
Block library for the WordPress editor.
8 lines (7 loc) • 534 B
Source Map (JSON)
{
"version": 3,
"sources": ["../../src/post-featured-image/utils.js"],
"sourcesContent": ["/**\n * Generates the opacity/dim class based on given number.\n *\n * @param {number} ratio Dim/opacity number.\n *\n * @return {string} Generated class.\n */\nexport function dimRatioToClass( ratio ) {\n\treturn ratio === undefined\n\t\t? null\n\t\t: 'has-background-dim-' + 10 * Math.round( ratio / 10 );\n}\n"],
"mappings": ";AAOO,SAAS,gBAAiB,OAAQ;AACxC,SAAO,UAAU,SACd,OACA,wBAAwB,KAAK,KAAK,MAAO,QAAQ,EAAG;AACxD;",
"names": []
}