UNPKG

@cloudinary/url-gen

Version:

Cloudinary URL-Gen SDK ========================= [![Build Status](https://api.travis-ci.com/cloudinary/js-url-gen.svg?branch=master)](https://app.travis-ci.com/github/cloudinary/js-url-gen) ## About The Cloudinary URL-Gen SDK allows you to quickly and eas

81 lines (76 loc) 2.51 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var BlendModeQualifier = require('../BlendModeQualifier-10cb22c9.cjs'); require('../Action-34aa7481.cjs'); require('../FlagQualifier-0e14a6c3.cjs'); require('../QualifierValue-e770d619.cjs'); require('../Qualifier-6633a22f.cjs'); require('../QualifierModel-0923d819.cjs'); require('../unsupportedError-74070138.cjs'); /** * @description Defines the mode of blending to use when overlaying an image. * * <b>Learn more:</b> {@link https://cloudinary.com/documentation/effects_and_artistic_enhancements#blending_and_masking_layers|Overlay blending effects} * @namespace BlendMode * @memberOf Qualifiers * @see To be used with an {@link Actions.Overlay|Overlay} */ /** * @summary qualifier * @memberOf Qualifiers.BlendMode * @description Add an overlay image blended using the 'multiply' blend mode. * @return {Qualifiers.BlendMode.BlendModeQualifier} */ function multiply() { return new BlendModeQualifier.BlendModeQualifier('multiply'); } /** * @summary qualifier * @memberOf Qualifiers.BlendMode * @description Add an overlay image blended using the 'screen' blend mode. * @return {Qualifiers.BlendMode.BlendModeQualifier} */ function screen() { return new BlendModeQualifier.BlendModeQualifier('screen'); } /** * @summary qualifier * @memberOf Qualifiers.BlendMode * @description Add an overlay image blended using the 'overlay' blend mode. * @return {Qualifiers.BlendMode.BlendModeQualifier} */ function overlay() { return new BlendModeQualifier.BlendModeQualifier('overlay'); } /** * @summary qualifier * @memberOf Qualifiers.BlendMode * @description Add an overlay image blended using the 'mask' blend mode. * @return {Qualifiers.BlendMode.BlendModeQualifier} */ function mask() { return new BlendModeQualifier.BlendModeQualifier('mask'); } /** * @summary qualifier * @memberOf Qualifiers.BlendMode * @description Add an overlay image blended using the 'antiRemoval' blend mode. * @param {number} lvl The level of distortion. (Range: 1 to 100, Server default: 50) * @return {Qualifiers.BlendMode.BlendModeQualifier} */ function antiRemoval(lvl) { return new BlendModeQualifier.BlendModeQualifier('anti_removal', lvl); } const BlendMode = { screen, multiply, overlay, mask, antiRemoval }; exports.BlendMode = BlendMode; exports.antiRemoval = antiRemoval; exports.mask = mask; exports.multiply = multiply; exports.overlay = overlay; exports.screen = screen;