UNPKG

pptx-automizer

Version:

A template based pptx generator

42 lines (41 loc) 1.47 kB
import { Color } from '../types/modify-types'; import { XmlDocument, XmlElement } from '../types/xml-types'; export type XmlElementParams = { color?: Color; }; export default class XmlElements { element: XmlDocument | XmlElement; document: XmlDocument; params: XmlElementParams; defaultValues: Record<string, string>; paragraphTemplate: XmlElement; runTemplate: XmlElement; constructor(element: XmlDocument | XmlElement, params?: XmlElementParams); text(): this; createTextBody(): XmlElement; createBodyProperties(txBody: XmlElement): XmlElement; addBulletList(list: []): void; processList(txBody: XmlElement, items: [], level: number): void; createParagraph(level: number): XmlElement; createTextRun(text: string): XmlElement; paragraphProps(): Element; textRangeProps(): HTMLElement; textContent(): XmlElement; effectLst(): XmlElement; lineTexture(): XmlElement; fillTexture(): XmlElement; line(): XmlElement; solidFill(): XmlElement; colorType(): XmlElement; colorValue(colorType: XmlElement): void; dataPoint(): this; spPr(): XmlElement; idx(): XmlElement; cellBorder(tag: 'lnL' | 'lnR' | 'lnT' | 'lnB'): this; prstDash(): HTMLElement; round(): HTMLElement; lineEnd(type: 'headEnd' | 'tailEnd'): HTMLElement; shapeProperties(): void; dataPointLabel(): void; tableCellBorder(tag: 'a:lnL' | 'a:lnR' | 'a:lnT' | 'a:lnB'): void; }