@cloudinary/url-gen
Version:
Cloudinary URL-Gen SDK ========================= [](https://app.travis-ci.com/github/cloudinary/js-url-gen) ## About The Cloudinary URL-Gen SDK allows you to quickly and eas
29 lines (25 loc) • 1.05 kB
JavaScript
;
var BaseGradientBackground = require('./BaseGradientBackground-22905746.cjs');
/**
* @description Specifies that the gradient fade effect, used for the background when resizing with padding, uses the
* predominant colors in the border pixels of the image.
* @memberOf Qualifiers.Background
* @extends {Qualifiers.Background.BaseGradientBackground}
*/
class BackgroundBorderGradientQualifier extends BaseGradientBackground.BaseGradientBackground {
/**
* @description
* Stringify the qualifier
* BackgroundQualifiers don't have a value, but instead override the toString() function.
*/
toString() {
return `
b_auto:border_gradient
${this._contrast ? '_contrast' : ''}
${this._gradientColors ? `:${this._gradientColors}` : ''}
${this._gradientDirection ? `:${this._gradientDirection}` : ''}
${this._palette.length ? `:palette_${this._palette.join('_')}` : ''}
`.replace(/\s+/g, '');
}
}
exports.BackgroundBorderGradientQualifier = BackgroundBorderGradientQualifier;