@antv/narrative-text-schema
Version:
Json schema of narrative text visualization
22 lines (21 loc) • 785 B
TypeScript
import { PhraseSpec } from './phrase';
import { CommonProps, CustomBlockElement } from './common';
export declare type ParagraphSpec = HeadingParagraphSpec | TextParagraphSpec | BulletsParagraphSpec | CustomBlockElement;
export declare type HeadingParagraphSpec = CommonProps & {
type: 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6';
phrases: PhraseSpec[];
};
export declare type TextParagraphSpec = CommonProps & {
type: 'normal';
phrases: PhraseSpec[];
};
export declare type BulletsParagraphSpec = CommonProps & {
type: 'bullets';
isOrder: boolean;
bullets: BulletItemSpec[];
};
export declare type BulletItemSpec = CommonProps & {
type: 'bullet-item';
phrases: PhraseSpec[];
subBullet?: BulletsParagraphSpec;
};