This commit is contained in:
amitm02
2018-07-25 15:02:58 +03:00
parent 0689489985
commit 696b5daf5c
211 changed files with 252 additions and 84025 deletions

2
.gitignore vendored
View File

@ -33,7 +33,7 @@ node_modules
.node_repl_history
# build
# build
build
build-tests
# VSCode

File diff suppressed because one or more lines are too long

View File

@ -1,4 +0,0 @@
import { BaseXmlComponent, IXmlableObject } from "file/xml-components";
export declare class Formatter {
format(input: BaseXmlComponent): IXmlableObject;
}

View File

@ -1,5 +0,0 @@
export * from "./packer/local";
export * from "./packer/express";
export * from "./packer/packer";
export * from "./packer/stream";
export * from "./packer/buffer";

View File

@ -1,9 +0,0 @@
/// <reference types="node" />
import { Writable } from "stream";
export declare class BufferStream extends Writable {
private data;
constructor();
_write(chunk: any, encoding: string, next: (err?: Error) => void): void;
end(cb?: Function): void;
readonly Buffer: Buffer;
}

View File

@ -1,7 +0,0 @@
/// <reference types="node" />
import { File } from "../../file";
export declare class BufferPacker {
private readonly packer;
constructor(file: File);
pack(): Promise<Buffer>;
}

View File

@ -1,12 +0,0 @@
/// <reference types="node" />
import * as archiver from "archiver";
import * as express from "express";
import { Writable } from "stream";
import { File } from "file";
export declare class Compiler {
private file;
protected archive: archiver.Archiver;
private formatter;
constructor(file: File);
compile(output: Writable | express.Response): Promise<void>;
}

View File

@ -1,9 +0,0 @@
import * as express from "express";
import { File } from "file";
import { IPacker } from "./packer";
export declare class ExpressPacker implements IPacker {
private readonly res;
private readonly packer;
constructor(file: File, res: express.Response);
pack(name: string): Promise<void>;
}

View File

@ -1,10 +0,0 @@
import { File } from "../../file";
import { IPacker } from "./packer";
export declare class LocalPacker implements IPacker {
private stream;
private readonly pdfConverter;
private readonly packer;
constructor(file: File);
pack(filePath: string): Promise<void>;
packPdf(filePath: string): Promise<void>;
}

View File

@ -1,4 +0,0 @@
export interface IPacker {
pack(path: string): void;
}
export declare const WORKAROUND = "";

View File

@ -1,7 +0,0 @@
import * as request from "request-promise";
export interface IConvertOutput {
data: string;
}
export declare class PdfConvertWrapper {
convert(filePath: string): request.RequestPromise;
}

View File

@ -1,9 +0,0 @@
/// <reference types="node" />
import { Readable } from "stream";
import { File } from "../../file";
import { IPacker } from "./packer";
export declare class StreamPacker implements IPacker {
private readonly compiler;
constructor(file: File);
pack(): Readable;
}

View File

@ -1,11 +0,0 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface IAppPropertiesAttributes {
xmlns: string;
vt: string;
}
export declare class AppPropertiesAttributes extends XmlAttributeComponent<IAppPropertiesAttributes> {
protected xmlKeys: {
xmlns: string;
vt: string;
};
}

View File

@ -1,4 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class AppProperties extends XmlComponent {
constructor();
}

View File

@ -1,9 +0,0 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface IContentTypeAttributes {
xmlns?: string;
}
export declare class ContentTypeAttributes extends XmlAttributeComponent<IContentTypeAttributes> {
protected xmlKeys: {
xmlns: string;
};
}

View File

@ -1,6 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class ContentTypes extends XmlComponent {
constructor();
addFooter(index: number): void;
addHeader(index: number): void;
}

View File

@ -1,11 +0,0 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface IDefaultAttributes {
contentType: string;
extension?: string;
}
export declare class DefaultAttributes extends XmlAttributeComponent<IDefaultAttributes> {
protected xmlKeys: {
contentType: string;
extension: string;
};
}

View File

@ -1,4 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class Default extends XmlComponent {
constructor(contentType: string, extension?: string);
}

View File

@ -1,11 +0,0 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface IOverrideAttributes {
contentType: string;
partName?: string;
}
export declare class OverrideAttributes extends XmlAttributeComponent<IOverrideAttributes> {
protected xmlKeys: {
contentType: string;
partName: string;
};
}

View File

@ -1,4 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class Override extends XmlComponent {
constructor(contentType: string, partName?: string);
}

View File

@ -1,31 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class Title extends XmlComponent {
constructor(value: string);
}
export declare class Subject extends XmlComponent {
constructor(value: string);
}
export declare class Creator extends XmlComponent {
constructor(value: string);
}
export declare class Keywords extends XmlComponent {
constructor(value: string);
}
export declare class Description extends XmlComponent {
constructor(value: string);
}
export declare class LastModifiedBy extends XmlComponent {
constructor(value: string);
}
export declare class Revision extends XmlComponent {
constructor(value: string);
}
export declare abstract class DateComponent extends XmlComponent {
protected getCurrentDate(): string;
}
export declare class Created extends DateComponent {
constructor();
}
export declare class Modified extends DateComponent {
constructor();
}

View File

@ -1 +0,0 @@
export * from "./properties";

View File

@ -1,14 +0,0 @@
import { XmlComponent } from "file/xml-components";
export interface IPropertiesOptions {
title?: string;
subject?: string;
creator?: string;
keywords?: string;
description?: string;
lastModifiedBy?: string;
revision?: string;
externalStyles?: string;
}
export declare class CoreProperties extends XmlComponent {
constructor(options: IPropertiesOptions);
}

View File

@ -1,12 +0,0 @@
import { IXmlableObject, XmlComponent } from "file/xml-components";
import { SectionProperties, SectionPropertiesOptions } from "./section-properties";
export declare class Body extends XmlComponent {
private defaultSection;
private sections;
constructor(sectionPropertiesOptions?: SectionPropertiesOptions);
addSection(section: SectionPropertiesOptions | SectionProperties): void;
prepForXml(): IXmlableObject;
push(component: XmlComponent): void;
readonly DefaultSection: SectionProperties;
private createSectionParagraph;
}

View File

@ -1,2 +0,0 @@
export * from "./body";
export * from "./section-properties";

View File

@ -1,9 +0,0 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface IColumnsAttributes {
space?: number;
}
export declare class ColumnsAttributes extends XmlAttributeComponent<IColumnsAttributes> {
protected xmlKeys: {
space: string;
};
}

View File

@ -1,4 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class Columns extends XmlComponent {
constructor(space: number);
}

View File

@ -1,9 +0,0 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface IDocGridAttributesProperties {
linePitch?: number;
}
export declare class DocGridAttributes extends XmlAttributeComponent<IDocGridAttributesProperties> {
protected xmlKeys: {
linePitch: string;
};
}

View File

@ -1,4 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class DocumentGrid extends XmlComponent {
constructor(linePitch: number);
}

View File

@ -1,16 +0,0 @@
import { XmlAttributeComponent } from "file/xml-components";
export declare enum FooterReferenceType {
DEFAULT = "default",
FIRST = "first",
EVEN = "even"
}
export interface IFooterReferenceAttributes {
type: string;
id: string;
}
export declare class FooterReferenceAttributes extends XmlAttributeComponent<IFooterReferenceAttributes> {
protected xmlKeys: {
type: string;
id: string;
};
}

View File

@ -1,9 +0,0 @@
import { XmlComponent } from "file/xml-components";
import { FooterReferenceType } from "./footer-reference-attributes";
export interface IFooterOptions {
footerType?: FooterReferenceType;
footerId?: number;
}
export declare class FooterReference extends XmlComponent {
constructor(options: IFooterOptions);
}

View File

@ -1,2 +0,0 @@
export * from "./footer-reference";
export * from "./footer-reference-attributes";

View File

@ -1,16 +0,0 @@
import { XmlAttributeComponent } from "file/xml-components";
export declare enum HeaderReferenceType {
DEFAULT = "default",
FIRST = "first",
EVEN = "even"
}
export interface IHeaderReferenceAttributes {
type: string;
id: string;
}
export declare class HeaderReferenceAttributes extends XmlAttributeComponent<IHeaderReferenceAttributes> {
protected xmlKeys: {
type: string;
id: string;
};
}

View File

@ -1,9 +0,0 @@
import { XmlComponent } from "file/xml-components";
import { HeaderReferenceType } from "./header-reference-attributes";
export interface IHeaderOptions {
headerType?: HeaderReferenceType;
headerId?: number;
}
export declare class HeaderReference extends XmlComponent {
constructor(options: IHeaderOptions);
}

View File

@ -1,2 +0,0 @@
export * from "./header-reference";
export * from "./header-reference-attributes";

View File

@ -1,5 +0,0 @@
export * from "./section-properties";
export * from "./footer-reference";
export * from "./header-reference";
export * from "./page-size";
export * from "./page-number";

View File

@ -1,21 +0,0 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface IPageMarginAttributes {
top?: number;
right?: number;
bottom?: number;
left?: number;
header?: number;
footer?: number;
gutter?: number;
}
export declare class PageMarginAttributes extends XmlAttributeComponent<IPageMarginAttributes> {
protected xmlKeys: {
top: string;
right: string;
bottom: string;
left: string;
header: string;
footer: string;
gutter: string;
};
}

View File

@ -1,4 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class PageMargin extends XmlComponent {
constructor(top: number, right: number, bottom: number, left: number, header: number, footer: number, gutter: number);
}

View File

@ -1 +0,0 @@
export * from "./page-number";

View File

@ -1,28 +0,0 @@
import { XmlAttributeComponent, XmlComponent } from "file/xml-components";
export declare enum PageNumberFormat {
CARDINAL_TEXT = "cardinalText",
DECIMAL = "decimal",
DECIMAL_ENCLOSED_CIRCLE = "decimalEnclosedCircle",
DECIMAL_ENCLOSED_FULL_STOP = "decimalEnclosedFullstop",
DECIMAL_ENCLOSED_PAREN = "decimalEnclosedParen",
DECIMAL_ZERO = "decimalZero",
LOWER_LETTER = "lowerLetter",
LOWER_ROMAN = "lowerRoman",
NONE = "none",
ORDINAL_TEXT = "ordinalText",
UPPER_LETTER = "upperLetter",
UPPER_ROMAN = "upperRoman"
}
export interface IPageNumberTypeAttributes {
pageNumberStart?: number;
pageNumberFormatType?: PageNumberFormat;
}
export declare class PageNumberTypeAttributes extends XmlAttributeComponent<IPageNumberTypeAttributes> {
protected xmlKeys: {
pageNumberStart: string;
pageNumberFormatType: string;
};
}
export declare class PageNumberType extends XmlComponent {
constructor(start?: number, numberFormat?: PageNumberFormat);
}

View File

@ -1,2 +0,0 @@
export * from "./page-size";
export * from "./page-size-attributes";

View File

@ -1,17 +0,0 @@
import { XmlAttributeComponent } from "file/xml-components";
export declare enum PageOrientation {
PORTRAIT = "portrait",
LANDSCAPE = "landscape"
}
export interface IPageSizeAttributes {
width?: number;
height?: number;
orientation?: PageOrientation;
}
export declare class PageSizeAttributes extends XmlAttributeComponent<IPageSizeAttributes> {
protected xmlKeys: {
width: string;
height: string;
orientation: string;
};
}

View File

@ -1,5 +0,0 @@
import { XmlComponent } from "file/xml-components";
import { PageOrientation } from "./page-size-attributes";
export declare class PageSize extends XmlComponent {
constructor(width: number, height: number, orientation: PageOrientation);
}

View File

@ -1,14 +0,0 @@
import { XmlComponent } from "file/xml-components";
import { IPageNumberTypeAttributes } from "./";
import { IColumnsAttributes } from "./columns/columns-attributes";
import { IDocGridAttributesProperties } from "./doc-grid/doc-grid-attributes";
import { IFooterOptions } from "./footer-reference/footer-reference";
import { IHeaderOptions } from "./header-reference/header-reference";
import { IPageMarginAttributes } from "./page-margin/page-margin-attributes";
import { IPageSizeAttributes } from "./page-size/page-size-attributes";
export declare type SectionPropertiesOptions = IPageSizeAttributes & IPageMarginAttributes & IColumnsAttributes & IDocGridAttributesProperties & IHeaderOptions & IFooterOptions & IPageNumberTypeAttributes;
export declare class SectionProperties extends XmlComponent {
private options;
constructor(options?: SectionPropertiesOptions);
readonly Options: SectionPropertiesOptions;
}

View File

@ -1,53 +0,0 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface IDocumentAttributesProperties {
wpc?: string;
mc?: string;
o?: string;
r?: string;
m?: string;
v?: string;
wp14?: string;
wp?: string;
w10?: string;
w?: string;
w14?: string;
w15?: string;
wpg?: string;
wpi?: string;
wne?: string;
wps?: string;
Ignorable?: string;
cp?: string;
dc?: string;
dcterms?: string;
dcmitype?: string;
xsi?: string;
type?: string;
}
export declare class DocumentAttributes extends XmlAttributeComponent<IDocumentAttributesProperties> {
protected xmlKeys: {
wpc: string;
mc: string;
o: string;
r: string;
m: string;
v: string;
wp14: string;
wp: string;
w10: string;
w: string;
w14: string;
w15: string;
wpg: string;
wpi: string;
wne: string;
wps: string;
Ignorable: string;
cp: string;
dc: string;
dcterms: string;
dcmitype: string;
xsi: string;
type: string;
};
}

View File

@ -1,17 +0,0 @@
import { IMediaData } from "file/media";
import { XmlComponent } from "file/xml-components";
import { Paragraph, PictureRun } from "../paragraph";
import { Table } from "../table";
import { Body } from "./body";
import { SectionPropertiesOptions } from "./body/section-properties/section-properties";
export declare class Document extends XmlComponent {
private readonly body;
constructor(sectionPropertiesOptions?: SectionPropertiesOptions);
addParagraph(paragraph: Paragraph): void;
createParagraph(text?: string): Paragraph;
addTable(table: Table): void;
createTable(rows: number, cols: number): Table;
addDrawing(pictureParagraph: Paragraph): void;
createDrawing(imageData: IMediaData): PictureRun;
readonly Body: Body;
}

View File

@ -1,2 +0,0 @@
export * from "./document";
export * from "./body";

View File

@ -1,24 +0,0 @@
import { XmlAttributeComponent } from "file/xml-components";
import { IDistance } from "../drawing";
export interface IAnchorAttributes extends IDistance {
allowOverlap?: "0" | "1";
behindDoc?: "0" | "1";
layoutInCell?: "0" | "1";
locked?: "0" | "1";
relativeHeight?: number;
simplePos?: "0" | "1";
}
export declare class AnchorAttributes extends XmlAttributeComponent<IAnchorAttributes> {
protected xmlKeys: {
distT: string;
distB: string;
distL: string;
distR: string;
allowOverlap: string;
behindDoc: string;
layoutInCell: string;
locked: string;
relativeHeight: string;
simplePos: string;
};
}

View File

@ -1,6 +0,0 @@
import { IMediaDataDimensions } from "file/media";
import { XmlComponent } from "file/xml-components";
import { IDrawingOptions } from "../drawing";
export declare class Anchor extends XmlComponent {
constructor(referenceId: number, dimensions: IMediaDataDimensions, drawingOptions: IDrawingOptions);
}

View File

@ -1,2 +0,0 @@
export * from "./anchor";
export * from "./anchor-attributes";

View File

@ -1,13 +0,0 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface IDocPropertiesAttributes {
id?: number;
name?: string;
descr?: string;
}
export declare class DocPropertiesAttributes extends XmlAttributeComponent<IDocPropertiesAttributes> {
protected xmlKeys: {
id: string;
name: string;
descr: string;
};
}

View File

@ -1,4 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class DocProperties extends XmlComponent {
constructor();
}

View File

@ -1,24 +0,0 @@
import { IMediaData } from "file/media";
import { XmlComponent } from "file/xml-components";
import { IFloating } from "./floating";
import { ITextWrapping } from "./text-wrap";
export declare enum PlacementPosition {
INLINE = 0,
FLOATING = 1
}
export interface IDistance {
distT?: number;
distB?: number;
distL?: number;
distR?: number;
}
export interface IDrawingOptions {
position?: PlacementPosition;
textWrapping?: ITextWrapping;
floating?: IFloating;
}
export declare class Drawing extends XmlComponent {
private inline;
constructor(imageData: IMediaData, drawingOptions?: IDrawingOptions);
scale(factorX: number, factorY: number): void;
}

View File

@ -1,15 +0,0 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface IEffectExtentAttributes {
b?: number;
l?: number;
r?: number;
t?: number;
}
export declare class EffectExtentAttributes extends XmlAttributeComponent<IEffectExtentAttributes> {
protected xmlKeys: {
b: string;
l: string;
r: string;
t: string;
};
}

View File

@ -1,4 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class EffectExtent extends XmlComponent {
constructor();
}

View File

@ -1,11 +0,0 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface IExtentAttributes {
cx?: number;
cy?: number;
}
export declare class ExtentAttributes extends XmlAttributeComponent<IExtentAttributes> {
protected xmlKeys: {
cx: string;
cy: string;
};
}

View File

@ -1,6 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class Extent extends XmlComponent {
private attributes;
constructor(x: number, y: number);
setXY(x: number, y: number): void;
}

View File

@ -1,5 +0,0 @@
import { XmlComponent } from "file/xml-components";
import { HorizontalPositionAlign, VerticalPositionAlign } from "./floating-position";
export declare class Align extends XmlComponent {
constructor(value: HorizontalPositionAlign | VerticalPositionAlign);
}

View File

@ -1,52 +0,0 @@
export declare enum HorizontalPositionRelativeFrom {
CHARACTER = "character",
COLUMN = "column",
INSIDE_MARGIN = "insideMargin",
LEFT_MARGIN = "leftMargin",
MARGIN = "margin",
OUTSIDE_MARGIN = "outsideMargin",
PAGE = "page",
RIGHT_MARGIN = "rightMargin"
}
export declare enum VerticalPositionRelativeFrom {
BOTTOM_MARGIN = "bottomMargin",
INSIDE_MARGIN = "insideMargin",
LINE = "line",
MARGIN = "margin",
OUTSIDE_MARGIN = "outsideMargin",
PAGE = "page",
PARAGRAPH = "paragraph",
TOP_MARGIN = "topMargin"
}
export declare enum HorizontalPositionAlign {
CENTER = "center",
INSIDE = "inside",
LEFT = "left",
OUTSIDE = "outside",
RIGHT = "right"
}
export declare enum VerticalPositionAlign {
BOTTOM = "bottom",
CENTER = "center",
INSIDE = "inside",
OUTSIDE = "outside",
TOP = "top"
}
export interface IHorizontalPositionOptions {
relative: HorizontalPositionRelativeFrom;
align?: HorizontalPositionAlign;
offset?: number;
}
export interface IVerticalPositionOptions {
relative: VerticalPositionRelativeFrom;
align?: VerticalPositionAlign;
offset?: number;
}
export interface IFloating {
horizontalPosition: IHorizontalPositionOptions;
verticalPosition: IVerticalPositionOptions;
allowOverlap?: boolean;
lockAnchor?: boolean;
behindDocument?: boolean;
layoutInCell?: boolean;
}

View File

@ -1,5 +0,0 @@
import { XmlComponent } from "file/xml-components";
import { IHorizontalPositionOptions } from "./floating-position";
export declare class HorizontalPosition extends XmlComponent {
constructor(horizontalPosition: IHorizontalPositionOptions);
}

View File

@ -1,4 +0,0 @@
export * from "./floating-position";
export * from "./simple-pos";
export * from "./horizontal-position";
export * from "./vertical-position";

View File

@ -1,4 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class PositionOffset extends XmlComponent {
constructor(offsetValue: number);
}

View File

@ -1,4 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class SimplePos extends XmlComponent {
constructor();
}

View File

@ -1,5 +0,0 @@
import { XmlComponent } from "file/xml-components";
import { IVerticalPositionOptions } from "./floating-position";
export declare class VerticalPosition extends XmlComponent {
constructor(verticalPosition: IVerticalPositionOptions);
}

View File

@ -1,11 +0,0 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface IGraphicFrameLockAttributes {
xmlns?: string;
noChangeAspect?: number;
}
export declare class GraphicFrameLockAttributes extends XmlAttributeComponent<IGraphicFrameLockAttributes> {
protected xmlKeys: {
xmlns: string;
noChangeAspect: string;
};
}

View File

@ -1,4 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class GraphicFrameLocks extends XmlComponent {
constructor();
}

View File

@ -1,4 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class GraphicFrameProperties extends XmlComponent {
constructor();
}

View File

@ -1,3 +0,0 @@
export * from "./drawing";
export * from "./text-wrap";
export * from "./floating";

View File

@ -1,9 +0,0 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface IGraphicDataAttributes {
uri?: string;
}
export declare class GraphicDataAttributes extends XmlAttributeComponent<IGraphicDataAttributes> {
protected xmlKeys: {
uri: string;
};
}

View File

@ -1,6 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class GraphicData extends XmlComponent {
private pic;
constructor(referenceId: number, x: number, y: number);
setXY(x: number, y: number): void;
}

View File

@ -1 +0,0 @@
export * from "./graphic-data";

View File

@ -1,4 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class BlipFill extends XmlComponent {
constructor(referenceId: number);
}

View File

@ -1,4 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class Blip extends XmlComponent {
constructor(referenceId: number);
}

View File

@ -1,4 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class SourceRectangle extends XmlComponent {
constructor();
}

View File

@ -1,4 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class Stretch extends XmlComponent {
constructor();
}

View File

@ -1 +0,0 @@
export * from "./pic";

View File

@ -1,4 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class ChildNonVisualProperties extends XmlComponent {
constructor();
}

View File

@ -1,11 +0,0 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface IPicLocksAttributes {
noChangeAspect?: number;
noChangeArrowheads?: number;
}
export declare class PicLocksAttributes extends XmlAttributeComponent<IPicLocksAttributes> {
protected xmlKeys: {
noChangeAspect: string;
noChangeArrowheads: string;
};
}

View File

@ -1,4 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class PicLocks extends XmlComponent {
constructor();
}

View File

@ -1,4 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class NonVisualPicProperties extends XmlComponent {
constructor();
}

View File

@ -1,13 +0,0 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface INonVisualPropertiesAttributes {
id?: number;
name?: string;
descr?: string;
}
export declare class NonVisualPropertiesAttributes extends XmlAttributeComponent<INonVisualPropertiesAttributes> {
protected xmlKeys: {
id: string;
name: string;
descr: string;
};
}

View File

@ -1,4 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class NonVisualProperties extends XmlComponent {
constructor();
}

View File

@ -1,9 +0,0 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface IPicAttributes {
xmlns?: string;
}
export declare class PicAttributes extends XmlAttributeComponent<IPicAttributes> {
protected xmlKeys: {
xmlns: string;
};
}

View File

@ -1,6 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class Pic extends XmlComponent {
private shapeProperties;
constructor(referenceId: number, x: number, y: number);
setXY(x: number, y: number): void;
}

View File

@ -1,11 +0,0 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface IExtentsAttributes {
cx?: number;
cy?: number;
}
export declare class ExtentsAttributes extends XmlAttributeComponent<IExtentsAttributes> {
protected xmlKeys: {
cx: string;
cy: string;
};
}

View File

@ -1,6 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class Extents extends XmlComponent {
private attributes;
constructor(x: number, y: number);
setXY(x: number, y: number): void;
}

View File

@ -1,6 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class Form extends XmlComponent {
private extents;
constructor(x: number, y: number);
setXY(x: number, y: number): void;
}

View File

@ -1 +0,0 @@
export * from "./form";

View File

@ -1,11 +0,0 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface IOffsetAttributes {
x?: number;
y?: number;
}
export declare class OffsetAttributes extends XmlAttributeComponent<IOffsetAttributes> {
protected xmlKeys: {
x: string;
y: string;
};
}

View File

@ -1,4 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class Offset extends XmlComponent {
constructor();
}

View File

@ -1,4 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class AdjustmentValues extends XmlComponent {
constructor();
}

View File

@ -1,9 +0,0 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface IPresetGeometryAttributes {
prst?: string;
}
export declare class PresetGeometryAttributes extends XmlAttributeComponent<IPresetGeometryAttributes> {
protected xmlKeys: {
prst: string;
};
}

View File

@ -1,4 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class PresetGeometry extends XmlComponent {
constructor();
}

View File

@ -1,9 +0,0 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface IShapePropertiesAttributes {
bwMode?: string;
}
export declare class ShapePropertiesAttributes extends XmlAttributeComponent<IShapePropertiesAttributes> {
protected xmlKeys: {
bwMode: string;
};
}

View File

@ -1,6 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class ShapeProperties extends XmlComponent {
private form;
constructor(x: number, y: number);
setXY(x: number, y: number): void;
}

View File

@ -1,6 +0,0 @@
import { XmlComponent } from "file/xml-components";
export declare class Graphic extends XmlComponent {
private data;
constructor(referenceId: number, x: number, y: number);
setXY(x: number, y: number): void;
}

View File

@ -1 +0,0 @@
export * from "./graphic";

View File

@ -1 +0,0 @@
export * from "./inline";

View File

@ -1,12 +0,0 @@
import { XmlAttributeComponent } from "file/xml-components";
import { IDistance } from "../drawing";
export interface IInlineAttributes extends IDistance {
}
export declare class InlineAttributes extends XmlAttributeComponent<IInlineAttributes> {
protected xmlKeys: {
distT: string;
distB: string;
distL: string;
distR: string;
};
}

View File

@ -1,9 +0,0 @@
import { IMediaDataDimensions } from "file/media";
import { XmlComponent } from "file/xml-components";
export declare class Inline extends XmlComponent {
private dimensions;
private extent;
private graphic;
constructor(referenceId: number, dimensions: IMediaDataDimensions);
scale(factorX: number, factorY: number): void;
}

Some files were not shown because too many files have changed in this diff Show More