docx
Version:
Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.
19 lines (18 loc) • 958 B
TypeScript
import { IMediaDataTransformation } from '../../../../../media';
import { Paragraph } from '../../../../../paragraph';
import { XmlComponent } from '../../../../../xml-components';
import { IBodyPropertiesOptions } from './body-properties';
import { INonVisualShapePropertiesOptions } from './non-visual-shape-properties';
import { OutlineOptions } from '../pic/shape-properties/outline/outline';
import { SolidFillOptions } from '../pic/shape-properties/outline/solid-fill';
export type WpsShapeCoreOptions = {
readonly children: readonly Paragraph[];
readonly nonVisualProperties?: INonVisualShapePropertiesOptions;
readonly bodyProperties?: IBodyPropertiesOptions;
};
export type WpsShapeOptions = WpsShapeCoreOptions & {
readonly transformation: IMediaDataTransformation;
readonly outline?: OutlineOptions;
readonly solidFill?: SolidFillOptions;
};
export declare const createWpsShape: (options: WpsShapeOptions) => XmlComponent;