从./layer/LayerAction.js导入import {ImageSource} from "../qualifiers/source/sourceTypes/ImageSource.js"!import {BaseTextSource} from "../qualifiers/source/sourceTypes/BaseTextSource.js"!import {FetchSource} from "../qualifiers/source/sourceTypes/FetchSource.js"!/***@friendof动作*@namespaceunderlay*@descript
styleTextStyle}访问高级文本选项*@serinkActivity.Overlay*** const yourCldInstance=新云式康斯特 myVideo = yourCldInstance.Viewi* * import {source} from "@cloudinary/url-gen/actions/underlay" * import {image, video, text} from "@cloudinary/url-gen/qualifiers/source" * import {TextStyle} from '@cloudinary/url-gen/qualifiers/textStyle * * myVideo.underlay( * source(image('myImage')) * ) * * myVideo.underlay( * source(video('myVideo')) * ) * * myVideo.underlay( * source(text('My text'), 'arial_15') * ) * * // Or a text with more complex options * myVideo.underlay( * source(text('My text'), new TextStyle('arial', 50)) * ) */ /** * @summary action * @description Adds a layer for an asset * @param {Qualifiers.Source.ImageSource | Qualifiers.Source.TextSource} source * The Source used for the layer, use the functions provided {@link Qualifiers.Source|here} to easily create these objects * @memberOf Actions.Underlay * @return {SDK.LayerAction} */ function source(source: ImageSource | BaseTextSource | FetchSource): LayerAction { return new LayerAction(source) .setLayerType('u')!康斯特底线={source}导出{Uplay,源}};