@antv/narrative-text-vis
Version:
React component of interactive narrative text
12 lines (11 loc) • 379 B
TypeScript
export declare type ImageExtra = {
jumpUrl?: string;
};
/**
* 获取 html 元素的内容,并转换为可以复制粘贴的 html string
*/
export declare const transformHtml: ({ elements, imageExtra, replaceType }: {
elements: HTMLCollectionOf<Element> | HTMLElement[];
replaceType?: 'image' | 'text' | 'none';
imageExtra?: ImageExtra;
}) => Promise<string>;