File "generateBorderRadius.js"
Full path: C:/Inetpub/vhosts/drshti.com/httpdocs/wp-content/plugins/ultimate-addons-for-gutenberg/blocks-config/uagb-controls/generateBorderRadius.js
File
size: 764 B (764 B bytes)
MIME-type: text/x-java
Charset: utf-8
Download Open Edit Advanced Editor &nnbsp; Back
/* eslint-disable no-nested-ternary */
import generateCSSUnit from './generateCSSUnit';
export default function generateBorderRadius( unit, topLeft, topRight = NaN, bottomRight = NaN, bottomLeft = NaN ) {
return ! Number.isNaN( topRight )
? ! Number.isNaN( bottomRight )
? ! Number.isNaN( bottomLeft )
? `${ generateCSSUnit( topLeft, unit ) } ${ generateCSSUnit( topRight, unit ) } ${ generateCSSUnit(
bottomRight,
unit
) } ${ generateCSSUnit( bottomLeft, unit ) }`
: `${ generateCSSUnit( topLeft, unit ) } ${ generateCSSUnit( topRight, unit ) } ${ generateCSSUnit(
bottomRight,
unit
) }`
: `${ generateCSSUnit( topLeft, unit ) } ${ generateCSSUnit( topRight, unit ) }`
: generateCSSUnit( topLeft, unit );
}