@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.
32 lines • 1.13 kB
TypeScript
import { PhraseSpec } from './phrase';
import { CommonProps, CustomBlockElement } from './common';
export type ParagraphSpec = HeadingParagraphSpec | TextParagraphSpec | BulletsParagraphSpec | CustomBlockElement;
export declare enum ParagraphType {
HEADING1 = "heading1",
HEADING2 = "heading2",
HEADING3 = "heading3",
HEADING4 = "heading4",
HEADING5 = "heading5",
HEADING6 = "heading6",
NORMAL = "normal",
BULLETS = "bullets"
}
export type HeadingParagraphSpec = CommonProps & {
type: ParagraphType.HEADING1 | ParagraphType.HEADING2 | ParagraphType.HEADING3 | ParagraphType.HEADING4 | ParagraphType.HEADING5 | ParagraphType.HEADING6;
phrases: PhraseSpec[];
};
export type TextParagraphSpec = CommonProps & {
type: ParagraphType.NORMAL;
phrases: PhraseSpec[];
};
export type BulletsParagraphSpec = CommonProps & {
type: ParagraphType.BULLETS;
isOrder: boolean;
bullets: BulletItemSpec[];
};
export type BulletItemSpec = CommonProps & {
type: 'bullet-item';
phrases: PhraseSpec[];
subBullet?: BulletsParagraphSpec;
};
//# sourceMappingURL=paragraph.d.ts.map