commit
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@ -33,7 +33,7 @@ node_modules
|
||||
.node_repl_history
|
||||
|
||||
# build
|
||||
build
|
||||
# build
|
||||
build-tests
|
||||
|
||||
# VSCode
|
||||
|
81885
build/index.js
Normal file
81885
build/index.js
Normal file
File diff suppressed because one or more lines are too long
4
build/src/export/formatter.d.ts
vendored
Normal file
4
build/src/export/formatter.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import { BaseXmlComponent, IXmlableObject } from "file/xml-components";
|
||||
export declare class Formatter {
|
||||
format(input: BaseXmlComponent): IXmlableObject;
|
||||
}
|
5
build/src/export/index.d.ts
vendored
Normal file
5
build/src/export/index.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
export * from "./packer/local";
|
||||
export * from "./packer/express";
|
||||
export * from "./packer/packer";
|
||||
export * from "./packer/stream";
|
||||
export * from "./packer/buffer";
|
9
build/src/export/packer/buffer-stream.d.ts
vendored
Normal file
9
build/src/export/packer/buffer-stream.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
/// <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;
|
||||
}
|
7
build/src/export/packer/buffer.d.ts
vendored
Normal file
7
build/src/export/packer/buffer.d.ts
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
/// <reference types="node" />
|
||||
import { File } from "../../file";
|
||||
export declare class BufferPacker {
|
||||
private readonly packer;
|
||||
constructor(file: File);
|
||||
pack(): Promise<Buffer>;
|
||||
}
|
12
build/src/export/packer/compiler.d.ts
vendored
Normal file
12
build/src/export/packer/compiler.d.ts
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
/// <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>;
|
||||
}
|
9
build/src/export/packer/express.d.ts
vendored
Normal file
9
build/src/export/packer/express.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
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>;
|
||||
}
|
10
build/src/export/packer/local.d.ts
vendored
Normal file
10
build/src/export/packer/local.d.ts
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
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>;
|
||||
}
|
4
build/src/export/packer/packer.d.ts
vendored
Normal file
4
build/src/export/packer/packer.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export interface IPacker {
|
||||
pack(path: string): void;
|
||||
}
|
||||
export declare const WORKAROUND = "";
|
7
build/src/export/packer/pdf-convert-wrapper.d.ts
vendored
Normal file
7
build/src/export/packer/pdf-convert-wrapper.d.ts
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
import * as request from "request-promise";
|
||||
export interface IConvertOutput {
|
||||
data: string;
|
||||
}
|
||||
export declare class PdfConvertWrapper {
|
||||
convert(filePath: string): request.RequestPromise;
|
||||
}
|
9
build/src/export/packer/stream.d.ts
vendored
Normal file
9
build/src/export/packer/stream.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
/// <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;
|
||||
}
|
11
build/src/file/app-properties/app-properties-attributes.d.ts
vendored
Normal file
11
build/src/file/app-properties/app-properties-attributes.d.ts
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
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;
|
||||
};
|
||||
}
|
4
build/src/file/app-properties/app-properties.d.ts
vendored
Normal file
4
build/src/file/app-properties/app-properties.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
export declare class AppProperties extends XmlComponent {
|
||||
constructor();
|
||||
}
|
9
build/src/file/content-types/content-types-attributes.d.ts
vendored
Normal file
9
build/src/file/content-types/content-types-attributes.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
import { XmlAttributeComponent } from "file/xml-components";
|
||||
export interface IContentTypeAttributes {
|
||||
xmlns?: string;
|
||||
}
|
||||
export declare class ContentTypeAttributes extends XmlAttributeComponent<IContentTypeAttributes> {
|
||||
protected xmlKeys: {
|
||||
xmlns: string;
|
||||
};
|
||||
}
|
6
build/src/file/content-types/content-types.d.ts
vendored
Normal file
6
build/src/file/content-types/content-types.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
export declare class ContentTypes extends XmlComponent {
|
||||
constructor();
|
||||
addFooter(index: number): void;
|
||||
addHeader(index: number): void;
|
||||
}
|
11
build/src/file/content-types/default/default-attributes.d.ts
vendored
Normal file
11
build/src/file/content-types/default/default-attributes.d.ts
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
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;
|
||||
};
|
||||
}
|
4
build/src/file/content-types/default/default.d.ts
vendored
Normal file
4
build/src/file/content-types/default/default.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
export declare class Default extends XmlComponent {
|
||||
constructor(contentType: string, extension?: string);
|
||||
}
|
11
build/src/file/content-types/override/override-attributes.d.ts
vendored
Normal file
11
build/src/file/content-types/override/override-attributes.d.ts
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
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;
|
||||
};
|
||||
}
|
4
build/src/file/content-types/override/override.d.ts
vendored
Normal file
4
build/src/file/content-types/override/override.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
export declare class Override extends XmlComponent {
|
||||
constructor(contentType: string, partName?: string);
|
||||
}
|
31
build/src/file/core-properties/components.d.ts
vendored
Normal file
31
build/src/file/core-properties/components.d.ts
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
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();
|
||||
}
|
1
build/src/file/core-properties/index.d.ts
vendored
Normal file
1
build/src/file/core-properties/index.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
export * from "./properties";
|
14
build/src/file/core-properties/properties.d.ts
vendored
Normal file
14
build/src/file/core-properties/properties.d.ts
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
12
build/src/file/document/body/body.d.ts
vendored
Normal file
12
build/src/file/document/body/body.d.ts
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
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;
|
||||
}
|
2
build/src/file/document/body/index.d.ts
vendored
Normal file
2
build/src/file/document/body/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
export * from "./body";
|
||||
export * from "./section-properties";
|
9
build/src/file/document/body/section-properties/columns/columns-attributes.d.ts
vendored
Normal file
9
build/src/file/document/body/section-properties/columns/columns-attributes.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
import { XmlAttributeComponent } from "file/xml-components";
|
||||
export interface IColumnsAttributes {
|
||||
space?: number;
|
||||
}
|
||||
export declare class ColumnsAttributes extends XmlAttributeComponent<IColumnsAttributes> {
|
||||
protected xmlKeys: {
|
||||
space: string;
|
||||
};
|
||||
}
|
4
build/src/file/document/body/section-properties/columns/columns.d.ts
vendored
Normal file
4
build/src/file/document/body/section-properties/columns/columns.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
export declare class Columns extends XmlComponent {
|
||||
constructor(space: number);
|
||||
}
|
9
build/src/file/document/body/section-properties/doc-grid/doc-grid-attributes.d.ts
vendored
Normal file
9
build/src/file/document/body/section-properties/doc-grid/doc-grid-attributes.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
import { XmlAttributeComponent } from "file/xml-components";
|
||||
export interface IDocGridAttributesProperties {
|
||||
linePitch?: number;
|
||||
}
|
||||
export declare class DocGridAttributes extends XmlAttributeComponent<IDocGridAttributesProperties> {
|
||||
protected xmlKeys: {
|
||||
linePitch: string;
|
||||
};
|
||||
}
|
4
build/src/file/document/body/section-properties/doc-grid/doc-grid.d.ts
vendored
Normal file
4
build/src/file/document/body/section-properties/doc-grid/doc-grid.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
export declare class DocumentGrid extends XmlComponent {
|
||||
constructor(linePitch: number);
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
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;
|
||||
};
|
||||
}
|
9
build/src/file/document/body/section-properties/footer-reference/footer-reference.d.ts
vendored
Normal file
9
build/src/file/document/body/section-properties/footer-reference/footer-reference.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
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);
|
||||
}
|
2
build/src/file/document/body/section-properties/footer-reference/index.d.ts
vendored
Normal file
2
build/src/file/document/body/section-properties/footer-reference/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
export * from "./footer-reference";
|
||||
export * from "./footer-reference-attributes";
|
@ -0,0 +1,16 @@
|
||||
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;
|
||||
};
|
||||
}
|
9
build/src/file/document/body/section-properties/header-reference/header-reference.d.ts
vendored
Normal file
9
build/src/file/document/body/section-properties/header-reference/header-reference.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
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);
|
||||
}
|
2
build/src/file/document/body/section-properties/header-reference/index.d.ts
vendored
Normal file
2
build/src/file/document/body/section-properties/header-reference/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
export * from "./header-reference";
|
||||
export * from "./header-reference-attributes";
|
5
build/src/file/document/body/section-properties/index.d.ts
vendored
Normal file
5
build/src/file/document/body/section-properties/index.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
export * from "./section-properties";
|
||||
export * from "./footer-reference";
|
||||
export * from "./header-reference";
|
||||
export * from "./page-size";
|
||||
export * from "./page-number";
|
21
build/src/file/document/body/section-properties/page-margin/page-margin-attributes.d.ts
vendored
Normal file
21
build/src/file/document/body/section-properties/page-margin/page-margin-attributes.d.ts
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
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;
|
||||
};
|
||||
}
|
4
build/src/file/document/body/section-properties/page-margin/page-margin.d.ts
vendored
Normal file
4
build/src/file/document/body/section-properties/page-margin/page-margin.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
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);
|
||||
}
|
1
build/src/file/document/body/section-properties/page-number/index.d.ts
vendored
Normal file
1
build/src/file/document/body/section-properties/page-number/index.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
export * from "./page-number";
|
28
build/src/file/document/body/section-properties/page-number/page-number.d.ts
vendored
Normal file
28
build/src/file/document/body/section-properties/page-number/page-number.d.ts
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
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);
|
||||
}
|
2
build/src/file/document/body/section-properties/page-size/index.d.ts
vendored
Normal file
2
build/src/file/document/body/section-properties/page-size/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
export * from "./page-size";
|
||||
export * from "./page-size-attributes";
|
17
build/src/file/document/body/section-properties/page-size/page-size-attributes.d.ts
vendored
Normal file
17
build/src/file/document/body/section-properties/page-size/page-size-attributes.d.ts
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
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;
|
||||
};
|
||||
}
|
5
build/src/file/document/body/section-properties/page-size/page-size.d.ts
vendored
Normal file
5
build/src/file/document/body/section-properties/page-size/page-size.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
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);
|
||||
}
|
14
build/src/file/document/body/section-properties/section-properties.d.ts
vendored
Normal file
14
build/src/file/document/body/section-properties/section-properties.d.ts
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
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;
|
||||
}
|
53
build/src/file/document/document-attributes.d.ts
vendored
Normal file
53
build/src/file/document/document-attributes.d.ts
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
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;
|
||||
};
|
||||
}
|
17
build/src/file/document/document.d.ts
vendored
Normal file
17
build/src/file/document/document.d.ts
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
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;
|
||||
}
|
2
build/src/file/document/index.d.ts
vendored
Normal file
2
build/src/file/document/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
export * from "./document";
|
||||
export * from "./body";
|
24
build/src/file/drawing/anchor/anchor-attributes.d.ts
vendored
Normal file
24
build/src/file/drawing/anchor/anchor-attributes.d.ts
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
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;
|
||||
};
|
||||
}
|
6
build/src/file/drawing/anchor/anchor.d.ts
vendored
Normal file
6
build/src/file/drawing/anchor/anchor.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
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);
|
||||
}
|
2
build/src/file/drawing/anchor/index.d.ts
vendored
Normal file
2
build/src/file/drawing/anchor/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
export * from "./anchor";
|
||||
export * from "./anchor-attributes";
|
13
build/src/file/drawing/doc-properties/doc-properties-attributes.d.ts
vendored
Normal file
13
build/src/file/drawing/doc-properties/doc-properties-attributes.d.ts
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
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;
|
||||
};
|
||||
}
|
4
build/src/file/drawing/doc-properties/doc-properties.d.ts
vendored
Normal file
4
build/src/file/drawing/doc-properties/doc-properties.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
export declare class DocProperties extends XmlComponent {
|
||||
constructor();
|
||||
}
|
24
build/src/file/drawing/drawing.d.ts
vendored
Normal file
24
build/src/file/drawing/drawing.d.ts
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
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;
|
||||
}
|
15
build/src/file/drawing/effect-extent/effect-extent-attributes.d.ts
vendored
Normal file
15
build/src/file/drawing/effect-extent/effect-extent-attributes.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
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;
|
||||
};
|
||||
}
|
4
build/src/file/drawing/effect-extent/effect-extent.d.ts
vendored
Normal file
4
build/src/file/drawing/effect-extent/effect-extent.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
export declare class EffectExtent extends XmlComponent {
|
||||
constructor();
|
||||
}
|
11
build/src/file/drawing/extent/extent-attributes.d.ts
vendored
Normal file
11
build/src/file/drawing/extent/extent-attributes.d.ts
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
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;
|
||||
};
|
||||
}
|
6
build/src/file/drawing/extent/extent.d.ts
vendored
Normal file
6
build/src/file/drawing/extent/extent.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
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;
|
||||
}
|
5
build/src/file/drawing/floating/align.d.ts
vendored
Normal file
5
build/src/file/drawing/floating/align.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
import { HorizontalPositionAlign, VerticalPositionAlign } from "./floating-position";
|
||||
export declare class Align extends XmlComponent {
|
||||
constructor(value: HorizontalPositionAlign | VerticalPositionAlign);
|
||||
}
|
52
build/src/file/drawing/floating/floating-position.d.ts
vendored
Normal file
52
build/src/file/drawing/floating/floating-position.d.ts
vendored
Normal file
@ -0,0 +1,52 @@
|
||||
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;
|
||||
}
|
5
build/src/file/drawing/floating/horizontal-position.d.ts
vendored
Normal file
5
build/src/file/drawing/floating/horizontal-position.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
import { IHorizontalPositionOptions } from "./floating-position";
|
||||
export declare class HorizontalPosition extends XmlComponent {
|
||||
constructor(horizontalPosition: IHorizontalPositionOptions);
|
||||
}
|
4
build/src/file/drawing/floating/index.d.ts
vendored
Normal file
4
build/src/file/drawing/floating/index.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export * from "./floating-position";
|
||||
export * from "./simple-pos";
|
||||
export * from "./horizontal-position";
|
||||
export * from "./vertical-position";
|
4
build/src/file/drawing/floating/position-offset.d.ts
vendored
Normal file
4
build/src/file/drawing/floating/position-offset.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
export declare class PositionOffset extends XmlComponent {
|
||||
constructor(offsetValue: number);
|
||||
}
|
4
build/src/file/drawing/floating/simple-pos.d.ts
vendored
Normal file
4
build/src/file/drawing/floating/simple-pos.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
export declare class SimplePos extends XmlComponent {
|
||||
constructor();
|
||||
}
|
5
build/src/file/drawing/floating/vertical-position.d.ts
vendored
Normal file
5
build/src/file/drawing/floating/vertical-position.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
import { IVerticalPositionOptions } from "./floating-position";
|
||||
export declare class VerticalPosition extends XmlComponent {
|
||||
constructor(verticalPosition: IVerticalPositionOptions);
|
||||
}
|
11
build/src/file/drawing/graphic-frame/graphic-frame-locks/graphic-frame-lock-attributes.d.ts
vendored
Normal file
11
build/src/file/drawing/graphic-frame/graphic-frame-locks/graphic-frame-lock-attributes.d.ts
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
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;
|
||||
};
|
||||
}
|
4
build/src/file/drawing/graphic-frame/graphic-frame-locks/graphic-frame-locks.d.ts
vendored
Normal file
4
build/src/file/drawing/graphic-frame/graphic-frame-locks/graphic-frame-locks.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
export declare class GraphicFrameLocks extends XmlComponent {
|
||||
constructor();
|
||||
}
|
4
build/src/file/drawing/graphic-frame/graphic-frame-properties.d.ts
vendored
Normal file
4
build/src/file/drawing/graphic-frame/graphic-frame-properties.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
export declare class GraphicFrameProperties extends XmlComponent {
|
||||
constructor();
|
||||
}
|
3
build/src/file/drawing/index.d.ts
vendored
Normal file
3
build/src/file/drawing/index.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
export * from "./drawing";
|
||||
export * from "./text-wrap";
|
||||
export * from "./floating";
|
9
build/src/file/drawing/inline/graphic/graphic-data/graphic-data-attribute.d.ts
vendored
Normal file
9
build/src/file/drawing/inline/graphic/graphic-data/graphic-data-attribute.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
import { XmlAttributeComponent } from "file/xml-components";
|
||||
export interface IGraphicDataAttributes {
|
||||
uri?: string;
|
||||
}
|
||||
export declare class GraphicDataAttributes extends XmlAttributeComponent<IGraphicDataAttributes> {
|
||||
protected xmlKeys: {
|
||||
uri: string;
|
||||
};
|
||||
}
|
6
build/src/file/drawing/inline/graphic/graphic-data/graphic-data.d.ts
vendored
Normal file
6
build/src/file/drawing/inline/graphic/graphic-data/graphic-data.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
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;
|
||||
}
|
1
build/src/file/drawing/inline/graphic/graphic-data/index.d.ts
vendored
Normal file
1
build/src/file/drawing/inline/graphic/graphic-data/index.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
export * from "./graphic-data";
|
4
build/src/file/drawing/inline/graphic/graphic-data/pic/blip/blip-fill.d.ts
vendored
Normal file
4
build/src/file/drawing/inline/graphic/graphic-data/pic/blip/blip-fill.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
export declare class BlipFill extends XmlComponent {
|
||||
constructor(referenceId: number);
|
||||
}
|
4
build/src/file/drawing/inline/graphic/graphic-data/pic/blip/blip.d.ts
vendored
Normal file
4
build/src/file/drawing/inline/graphic/graphic-data/pic/blip/blip.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
export declare class Blip extends XmlComponent {
|
||||
constructor(referenceId: number);
|
||||
}
|
4
build/src/file/drawing/inline/graphic/graphic-data/pic/blip/source-rectangle.d.ts
vendored
Normal file
4
build/src/file/drawing/inline/graphic/graphic-data/pic/blip/source-rectangle.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
export declare class SourceRectangle extends XmlComponent {
|
||||
constructor();
|
||||
}
|
4
build/src/file/drawing/inline/graphic/graphic-data/pic/blip/stretch.d.ts
vendored
Normal file
4
build/src/file/drawing/inline/graphic/graphic-data/pic/blip/stretch.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
export declare class Stretch extends XmlComponent {
|
||||
constructor();
|
||||
}
|
1
build/src/file/drawing/inline/graphic/graphic-data/pic/index.d.ts
vendored
Normal file
1
build/src/file/drawing/inline/graphic/graphic-data/pic/index.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
export * from "./pic";
|
@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
export declare class ChildNonVisualProperties extends XmlComponent {
|
||||
constructor();
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
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;
|
||||
};
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
export declare class PicLocks extends XmlComponent {
|
||||
constructor();
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
export declare class NonVisualPicProperties extends XmlComponent {
|
||||
constructor();
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
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;
|
||||
};
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
export declare class NonVisualProperties extends XmlComponent {
|
||||
constructor();
|
||||
}
|
9
build/src/file/drawing/inline/graphic/graphic-data/pic/pic-attributes.d.ts
vendored
Normal file
9
build/src/file/drawing/inline/graphic/graphic-data/pic/pic-attributes.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
import { XmlAttributeComponent } from "file/xml-components";
|
||||
export interface IPicAttributes {
|
||||
xmlns?: string;
|
||||
}
|
||||
export declare class PicAttributes extends XmlAttributeComponent<IPicAttributes> {
|
||||
protected xmlKeys: {
|
||||
xmlns: string;
|
||||
};
|
||||
}
|
6
build/src/file/drawing/inline/graphic/graphic-data/pic/pic.d.ts
vendored
Normal file
6
build/src/file/drawing/inline/graphic/graphic-data/pic/pic.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
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;
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
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;
|
||||
};
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
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;
|
||||
}
|
6
build/src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/form.d.ts
vendored
Normal file
6
build/src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/form.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
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;
|
||||
}
|
1
build/src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/index.d.ts
vendored
Normal file
1
build/src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/index.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
export * from "./form";
|
@ -0,0 +1,11 @@
|
||||
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;
|
||||
};
|
||||
}
|
4
build/src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/offset/off.d.ts
vendored
Normal file
4
build/src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/offset/off.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
export declare class Offset extends XmlComponent {
|
||||
constructor();
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
export declare class AdjustmentValues extends XmlComponent {
|
||||
constructor();
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
import { XmlAttributeComponent } from "file/xml-components";
|
||||
export interface IPresetGeometryAttributes {
|
||||
prst?: string;
|
||||
}
|
||||
export declare class PresetGeometryAttributes extends XmlAttributeComponent<IPresetGeometryAttributes> {
|
||||
protected xmlKeys: {
|
||||
prst: string;
|
||||
};
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
export declare class PresetGeometry extends XmlComponent {
|
||||
constructor();
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
import { XmlAttributeComponent } from "file/xml-components";
|
||||
export interface IShapePropertiesAttributes {
|
||||
bwMode?: string;
|
||||
}
|
||||
export declare class ShapePropertiesAttributes extends XmlAttributeComponent<IShapePropertiesAttributes> {
|
||||
protected xmlKeys: {
|
||||
bwMode: string;
|
||||
};
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
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;
|
||||
}
|
6
build/src/file/drawing/inline/graphic/graphic.d.ts
vendored
Normal file
6
build/src/file/drawing/inline/graphic/graphic.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
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;
|
||||
}
|
1
build/src/file/drawing/inline/graphic/index.d.ts
vendored
Normal file
1
build/src/file/drawing/inline/graphic/index.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
export * from "./graphic";
|
1
build/src/file/drawing/inline/index.d.ts
vendored
Normal file
1
build/src/file/drawing/inline/index.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
export * from "./inline";
|
12
build/src/file/drawing/inline/inline-attributes.d.ts
vendored
Normal file
12
build/src/file/drawing/inline/inline-attributes.d.ts
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
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;
|
||||
};
|
||||
}
|
9
build/src/file/drawing/inline/inline.d.ts
vendored
Normal file
9
build/src/file/drawing/inline/inline.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
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
Reference in New Issue
Block a user