@antv/t8
Version:
T8 is a text visualization solution for unstructured data within the AntV technology stack, and it is a declarative JSON Schema syntax that can be used to describe the content of data interpretation reports.
34 lines • 1.49 kB
TypeScript
import { NarrativeTextSpec } from '../schema';
import { NarrativeEvents } from './types';
import { SeedTokenOptions } from '../theme';
import { PluginManager } from '../plugin';
export type ExtensionProps = {
/**
* @description extension plugin
* @description.zh-CN 扩展插件
*/
pluginManager?: PluginManager;
};
export type NarrativeTextVisProps = ExtensionProps & NarrativeEvents & {
/**
* @description specification of narrative text spec
* @description.zh-CN Narrative 描述 json 信息
*/
spec: NarrativeTextSpec;
/**
* @description the function to be called when copy event is listened. If it is undefined, the default behavior is to put the transformed html and plain text into user's clipboard
* @description.监听到 copy 事件时执行的函数,可用于控制复制的内容和复制行为,如果不传,默认将会把转换后的富文本和纯文本内容放入剪切板
*/
/**
* @description theme props
* @description.zh-CN 主题配置
*/
themeSeedToken?: SeedTokenOptions;
};
/**
* The NTV React component for rendering narrative text visualizations.
* It contains all the vis-components needed to render a narrative text spec.
* All the vis-components are writed with PReact.
*/
export declare function NarrativeTextVis({ spec, pluginManager, themeSeedToken, ...events }: NarrativeTextVisProps): import("preact").JSX.Element;
//# sourceMappingURL=NarrativeTextVis.d.ts.map