import {BaseSource} from "../qualifiers/source/BaseSource.js"!从./layer/LayerAction.js导入/***@descript添加视频、文本或图像层作为基层覆盖
sextStyle+TextStyle+** const yourCldInstance=新云式康斯特 myVideo = yourCldInstance.Viewi* * import {source} from "@cloudinary/url-gen/actions/overlay" * import {image, video, text} from "@cloudinary/url-gen/qualifiers/source" * import {TextStyle} from '@cloudinary/url-gen/qualifiers/textStyle * * myVideo.overlay( * source(image('myImage')) * ) * * myVideo.overlay( * source(video('myVideo')) * ) * * myVideo.overlay( * source(text('My text'), 'arial_15') * ) * * // Or a text with more complex options * myVideo.overlay( * source(text('My text'), new TextStyle('arial', 50)) * ) */ /** * @summary action * @memberOf Actions.Overlay * @description Adds a layer for an asset * @param {Qualifiers.Source.ImageSource | Qualifiers.Source.TextSource | Qualifiers.Source.VideoSource} source * The Source used for the layer, use the functions provided {@link Qualifiers.Source|here} to easily create these objects * @return {SDK.LayerAction} */ function source(source: BaseSource): LayerAction { return new LayerAction(source) .setLayerType('l')!康斯特重叠={source}导出{Overlay,源}};