UNPKG

@pdfme/schemas

Version:

TypeScript base PDF generator and React base UI. Open source, developed by the community, and completely free to use under the MIT license!

32 lines (31 loc) 706 B
import type { TextSchema } from '../text/types.js'; export type LIST_STYLE = 'bullet' | 'ordered'; export type ListSchema = TextSchema & { listStyle: LIST_STYLE; markerWidth: number; markerGap: number; indentSize?: number; itemSpacing: number; }; export type ListItem = { text: string; level: number; }; export type ListItemLayout = { item: string; itemIndex: number; level: number; marker: string; lines: string[]; height: number; markerX: number; bodyX: number; bodyWidth: number; }; export type ListLayout = { items: ListItemLayout[]; totalHeight: number; markerWidth: number; markerGap: number; indentSize: number; };