@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
27 lines (23 loc) • 881 B
JavaScript
;
var BaseCommonBackground = require('./BaseCommonBackground-337b931a.cjs');
/**
* @description Automatically determines the color to use for padding, if needed when resizing an asset. Selects the
* predominant color from the border of the image.
* @memberOf Qualifiers.Background
* @extends {Qualifiers.Background.BaseCommonBackground}
*/
class BackgroundAutoBorderQualifier extends BaseCommonBackground.BaseCommonBackground {
/**
* @description
* Stringify the qualifier
* BackgroundQualifiers don't have a value, but instead override the toString() function.
*/
toString() {
return `
b_auto:border
${this._contrast ? '_contrast' : ''}
${this._palette.length ? `:palette_${this._palette.join('_')}` : ''}
`.replace(/\s+/g, '');
}
}
exports.BackgroundAutoBorderQualifier = BackgroundAutoBorderQualifier;