Improve import alias

@file/ and @export/ instead of file/ and export/ etc
This commit is contained in:
Dolan Miu
2022-06-26 23:26:42 +01:00
parent c19bc6b4b3
commit 982d923553
380 changed files with 758 additions and 521 deletions

201
package-lock.json generated
View File

@ -46,6 +46,7 @@
"ts-loader": "^9.0.0", "ts-loader": "^9.0.0",
"ts-node": "^10.2.1", "ts-node": "^10.2.1",
"tsconfig-paths": "^4.0.0", "tsconfig-paths": "^4.0.0",
"tsconfig-paths-webpack-plugin": "^3.5.2",
"tslint": "^6.1.3", "tslint": "^6.1.3",
"tslint-immutable": "^6.0.1", "tslint-immutable": "^6.0.1",
"typedoc": "^0.22.3", "typedoc": "^0.22.3",
@ -768,6 +769,12 @@
"integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==",
"dev": true "dev": true
}, },
"node_modules/@types/json5": {
"version": "0.0.29",
"resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz",
"integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==",
"dev": true
},
"node_modules/@types/minimatch": { "node_modules/@types/minimatch": {
"version": "3.0.5", "version": "3.0.5",
"resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz",
@ -6953,6 +6960,111 @@
"strip-bom": "^3.0.0" "strip-bom": "^3.0.0"
} }
}, },
"node_modules/tsconfig-paths-webpack-plugin": {
"version": "3.5.2",
"resolved": "https://registry.npmjs.org/tsconfig-paths-webpack-plugin/-/tsconfig-paths-webpack-plugin-3.5.2.tgz",
"integrity": "sha512-EhnfjHbzm5IYI9YPNVIxx1moxMI4bpHD2e0zTXeDNQcwjjRaGepP7IhTHJkyDBG0CAOoxRfe7jCG630Ou+C6Pw==",
"dev": true,
"dependencies": {
"chalk": "^4.1.0",
"enhanced-resolve": "^5.7.0",
"tsconfig-paths": "^3.9.0"
}
},
"node_modules/tsconfig-paths-webpack-plugin/node_modules/ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"dependencies": {
"color-convert": "^2.0.1"
},
"engines": {
"node": ">=8"
},
"funding": {
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
}
},
"node_modules/tsconfig-paths-webpack-plugin/node_modules/chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"dependencies": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
},
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/chalk/chalk?sponsor=1"
}
},
"node_modules/tsconfig-paths-webpack-plugin/node_modules/color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"dependencies": {
"color-name": "~1.1.4"
},
"engines": {
"node": ">=7.0.0"
}
},
"node_modules/tsconfig-paths-webpack-plugin/node_modules/color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true
},
"node_modules/tsconfig-paths-webpack-plugin/node_modules/has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"engines": {
"node": ">=8"
}
},
"node_modules/tsconfig-paths-webpack-plugin/node_modules/json5": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz",
"integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==",
"dev": true,
"dependencies": {
"minimist": "^1.2.0"
},
"bin": {
"json5": "lib/cli.js"
}
},
"node_modules/tsconfig-paths-webpack-plugin/node_modules/supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"dependencies": {
"has-flag": "^4.0.0"
},
"engines": {
"node": ">=8"
}
},
"node_modules/tsconfig-paths-webpack-plugin/node_modules/tsconfig-paths": {
"version": "3.14.1",
"resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz",
"integrity": "sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ==",
"dev": true,
"dependencies": {
"@types/json5": "^0.0.29",
"json5": "^1.0.1",
"minimist": "^1.2.6",
"strip-bom": "^3.0.0"
}
},
"node_modules/tslib": { "node_modules/tslib": {
"version": "1.13.0", "version": "1.13.0",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz",
@ -8686,6 +8798,12 @@
"integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==",
"dev": true "dev": true
}, },
"@types/json5": {
"version": "0.0.29",
"resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz",
"integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==",
"dev": true
},
"@types/minimatch": { "@types/minimatch": {
"version": "3.0.5", "version": "3.0.5",
"resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz",
@ -13475,6 +13593,89 @@
"strip-bom": "^3.0.0" "strip-bom": "^3.0.0"
} }
}, },
"tsconfig-paths-webpack-plugin": {
"version": "3.5.2",
"resolved": "https://registry.npmjs.org/tsconfig-paths-webpack-plugin/-/tsconfig-paths-webpack-plugin-3.5.2.tgz",
"integrity": "sha512-EhnfjHbzm5IYI9YPNVIxx1moxMI4bpHD2e0zTXeDNQcwjjRaGepP7IhTHJkyDBG0CAOoxRfe7jCG630Ou+C6Pw==",
"dev": true,
"requires": {
"chalk": "^4.1.0",
"enhanced-resolve": "^5.7.0",
"tsconfig-paths": "^3.9.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true
},
"json5": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz",
"integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==",
"dev": true,
"requires": {
"minimist": "^1.2.0"
}
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"tsconfig-paths": {
"version": "3.14.1",
"resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz",
"integrity": "sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ==",
"dev": true,
"requires": {
"@types/json5": "^0.0.29",
"json5": "^1.0.1",
"minimist": "^1.2.6",
"strip-bom": "^3.0.0"
}
}
}
},
"tslib": { "tslib": {
"version": "1.13.0", "version": "1.13.0",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz",

View File

@ -92,6 +92,7 @@
"ts-loader": "^9.0.0", "ts-loader": "^9.0.0",
"ts-node": "^10.2.1", "ts-node": "^10.2.1",
"tsconfig-paths": "^4.0.0", "tsconfig-paths": "^4.0.0",
"tsconfig-paths-webpack-plugin": "^3.5.2",
"tslint": "^6.1.3", "tslint": "^6.1.3",
"tslint-immutable": "^6.0.1", "tslint-immutable": "^6.0.1",
"typedoc": "^0.22.3", "typedoc": "^0.22.3",

View File

@ -6,9 +6,9 @@ const files = glob.sync("build/**/*.d.ts");
for (const file of files) { for (const file of files) {
replaceInFile({ replaceInFile({
files: file, files: file,
from: /"file[a-z/-]*"/gi, from: /"@[a-z/-]*"/gi,
to: (match) => { to: (match) => {
const matchSlug = match.replace(/['"]+/g, "").trim(); const matchSlug = match.replace(/['"]+/g, "").replace(/[@]+/g, "").trim();
const levelCount = file.split("/").length - 2; const levelCount = file.split("/").length - 2;
const backLevels = Array(levelCount).fill("../").join(""); const backLevels = Array(levelCount).fill("../").join("");

View File

@ -2,9 +2,9 @@ import { assert, expect } from "chai";
import * as sinon from "sinon"; import * as sinon from "sinon";
import { Formatter } from "@export/formatter"; import { Formatter } from "@export/formatter";
import { Paragraph, TextRun } from "file"; import { CoreProperties } from "@file/core-properties";
import { CoreProperties } from "file/core-properties"; import { Paragraph, TextRun } from "@file/paragraph";
import { Attributes } from "file/xml-components"; import { Attributes } from "@file/xml-components";
describe("Formatter", () => { describe("Formatter", () => {
let formatter: Formatter; let formatter: Formatter;

View File

@ -1,4 +1,4 @@
import { BaseXmlComponent, IContext, IXmlableObject } from "file/xml-components"; import { BaseXmlComponent, IContext, IXmlableObject } from "@file/xml-components";
export class Formatter { export class Formatter {
// tslint:disable-next-line: no-object-literal-type-assertion // tslint:disable-next-line: no-object-literal-type-assertion

View File

@ -1,6 +1,6 @@
import { expect } from "chai"; import { expect } from "chai";
import { Media } from "file"; import { Media } from "@file/media";
import { ImageReplacer } from "./image-replacer"; import { ImageReplacer } from "./image-replacer";

View File

@ -1,4 +1,4 @@
import { IMediaData, Media } from "file/media"; import { IMediaData, Media } from "@file/media";
export class ImageReplacer { export class ImageReplacer {
public replace(xmlData: string, mediaData: IMediaData[], offset: number): string { public replace(xmlData: string, mediaData: IMediaData[], offset: number): string {

View File

@ -2,7 +2,9 @@
import { expect } from "chai"; import { expect } from "chai";
import * as sinon from "sinon"; import * as sinon from "sinon";
import { File, Footer, Header, Paragraph } from "file"; import { File } from "@file/file";
import { Footer, Header } from "@file/header";
import { Paragraph } from "@file/paragraph";
import { Compiler } from "./next-compiler"; import { Compiler } from "./next-compiler";

View File

@ -1,7 +1,8 @@
import * as JSZip from "jszip"; import * as JSZip from "jszip";
import * as xml from "xml"; import * as xml from "xml";
import { File } from "file"; import { File } from "@file/file";
import { Formatter } from "../formatter"; import { Formatter } from "../formatter";
import { ImageReplacer } from "./image-replacer"; import { ImageReplacer } from "./image-replacer";
import { NumberingReplacer } from "./numbering-replacer"; import { NumberingReplacer } from "./numbering-replacer";

View File

@ -1,4 +1,4 @@
import { ConcreteNumbering } from "file"; import { ConcreteNumbering } from "@file/numbering";
export class NumberingReplacer { export class NumberingReplacer {
public replace(xmlData: string, concreteNumberings: ConcreteNumbering[]): string { public replace(xmlData: string, concreteNumberings: ConcreteNumbering[]): string {

View File

@ -2,7 +2,8 @@
import { assert } from "chai"; import { assert } from "chai";
import { mock, stub } from "sinon"; import { mock, stub } from "sinon";
import { File, HeadingLevel, Paragraph } from "file"; import { File } from "@file/file";
import { HeadingLevel, Paragraph } from "@file/paragraph";
import { Packer } from "./packer"; import { Packer } from "./packer";

View File

@ -1,4 +1,5 @@
import { File } from "file"; import { File } from "@file/file";
import { Compiler } from "./next-compiler"; import { Compiler } from "./next-compiler";
/** /**

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components"; import { XmlAttributeComponent } from "@file/xml-components";
export class AppPropertiesAttributes extends XmlAttributeComponent<{ export class AppPropertiesAttributes extends XmlAttributeComponent<{
readonly xmlns: string; readonly xmlns: string;

View File

@ -1,4 +1,4 @@
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { AppPropertiesAttributes } from "./app-properties-attributes"; import { AppPropertiesAttributes } from "./app-properties-attributes";
export class AppProperties extends XmlComponent { export class AppProperties extends XmlComponent {

View File

@ -1,7 +1,7 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { BorderStyle } from "file/border"; import { BorderStyle } from "@file/border";
import { BorderElement } from "./border"; import { BorderElement } from "./border";

View File

@ -19,8 +19,8 @@
// <xsd:attribute name="shadow" type="s:ST_OnOff" use="optional"/> // <xsd:attribute name="shadow" type="s:ST_OnOff" use="optional"/>
// <xsd:attribute name="frame" type="s:ST_OnOff" use="optional"/> // <xsd:attribute name="frame" type="s:ST_OnOff" use="optional"/>
// </xsd:complexType> // </xsd:complexType>
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
import { eighthPointMeasureValue, hexColorValue, pointMeasureValue } from "../values"; import { eighthPointMeasureValue, hexColorValue, pointMeasureValue } from "@util/values";
export interface IBorderOptions { export interface IBorderOptions {
readonly style: BorderStyle; readonly style: BorderStyle;

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components"; import { XmlAttributeComponent } from "@file/xml-components";
export class ContentTypeAttributes extends XmlAttributeComponent<{ export class ContentTypeAttributes extends XmlAttributeComponent<{
readonly xmlns?: string; readonly xmlns?: string;

View File

@ -2,7 +2,7 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { ContentTypes } from "./content-types"; import { ContentTypes } from "./content-types";

View File

@ -1,4 +1,4 @@
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { ContentTypeAttributes } from "./content-types-attributes"; import { ContentTypeAttributes } from "./content-types-attributes";
import { Default } from "./default/default"; import { Default } from "./default/default";
import { Override } from "./override/override"; import { Override } from "./override/override";

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components"; import { XmlAttributeComponent } from "@file/xml-components";
export class DefaultAttributes extends XmlAttributeComponent<{ export class DefaultAttributes extends XmlAttributeComponent<{
readonly contentType: string; readonly contentType: string;

View File

@ -1,4 +1,4 @@
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { DefaultAttributes } from "./default-attributes"; import { DefaultAttributes } from "./default-attributes";
export class Default extends XmlComponent { export class Default extends XmlComponent {

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components"; import { XmlAttributeComponent } from "@file/xml-components";
export class OverrideAttributes extends XmlAttributeComponent<{ export class OverrideAttributes extends XmlAttributeComponent<{
readonly contentType: string; readonly contentType: string;

View File

@ -1,4 +1,4 @@
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { OverrideAttributes } from "./override-attributes"; import { OverrideAttributes } from "./override-attributes";
export class Override extends XmlComponent { export class Override extends XmlComponent {

View File

@ -1,6 +1,6 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { CoreProperties } from "./properties"; import { CoreProperties } from "./properties";

View File

@ -1,5 +1,6 @@
import { ICommentsOptions } from "file/paragraph/run/comment-run"; import { ICommentsOptions } from "@file/paragraph/run/comment-run";
import { StringContainer, XmlComponent } from "file/xml-components"; import { StringContainer, XmlComponent } from "@file/xml-components";
import { dateTimeValue } from "@util/values";
import { ICustomPropertyOptions } from "../custom-properties"; import { ICustomPropertyOptions } from "../custom-properties";
import { IDocumentBackgroundOptions } from "../document"; import { IDocumentBackgroundOptions } from "../document";
@ -9,7 +10,6 @@ import { ISectionOptions } from "../file";
import { INumberingOptions } from "../numbering"; import { INumberingOptions } from "../numbering";
import { Paragraph } from "../paragraph"; import { Paragraph } from "../paragraph";
import { IStylesOptions } from "../styles"; import { IStylesOptions } from "../styles";
import { dateTimeValue } from "../values";
export interface IPropertiesOptions { export interface IPropertiesOptions {
readonly sections: ISectionOptions[]; readonly sections: ISectionOptions[];

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components"; import { XmlAttributeComponent } from "@file/xml-components";
export class CustomPropertiesAttributes extends XmlAttributeComponent<{ export class CustomPropertiesAttributes extends XmlAttributeComponent<{
readonly xmlns: string; readonly xmlns: string;

View File

@ -1,5 +1,7 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter";
import { Formatter } from "@export/formatter";
import { CustomProperties } from "./custom-properties"; import { CustomProperties } from "./custom-properties";
describe("CustomProperties", () => { describe("CustomProperties", () => {

View File

@ -1,4 +1,4 @@
import { IContext, IXmlableObject, XmlComponent } from "file/xml-components"; import { IContext, IXmlableObject, XmlComponent } from "@file/xml-components";
import { CustomPropertiesAttributes } from "./custom-properties-attributes"; import { CustomPropertiesAttributes } from "./custom-properties-attributes";
import { CustomProperty, ICustomPropertyOptions } from "./custom-property"; import { CustomProperty, ICustomPropertyOptions } from "./custom-property";

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components"; import { XmlAttributeComponent } from "@file/xml-components";
export class CustomPropertyAttributes extends XmlAttributeComponent<{ export class CustomPropertyAttributes extends XmlAttributeComponent<{
readonly fmtid: string; readonly fmtid: string;

View File

@ -1,4 +1,4 @@
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { CustomPropertyAttributes } from "./custom-property-attributes"; import { CustomPropertyAttributes } from "./custom-property-attributes";
export interface ICustomPropertyOptions { export interface ICustomPropertyOptions {

View File

@ -1,6 +1,6 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { Body } from "./body"; import { Body } from "./body";
import { sectionMarginDefaults } from "./section-properties"; import { sectionMarginDefaults } from "./section-properties";

View File

@ -1,6 +1,6 @@
import { IContext, IXmlableObject, XmlComponent } from "file/xml-components"; import { Paragraph, ParagraphProperties } from "@file/paragraph";
import { IContext, IXmlableObject, XmlComponent } from "@file/xml-components";
import { Paragraph, ParagraphProperties } from "../..";
import { ISectionPropertiesOptions, SectionProperties } from "./section-properties/section-properties"; import { ISectionPropertiesOptions, SectionProperties } from "./section-properties/section-properties";
export class Body extends XmlComponent { export class Body extends XmlComponent {

View File

@ -1,5 +1,5 @@
import { twipsMeasureValue } from "file/values"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { twipsMeasureValue } from "@util/values";
export interface IColumnAttributes { export interface IColumnAttributes {
readonly width: number | string; readonly width: number | string;

View File

@ -1,6 +1,6 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { Column, Columns } from "."; import { Column, Columns } from ".";

View File

@ -1,5 +1,6 @@
import { decimalNumber, twipsMeasureValue } from "file/values"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { decimalNumber, twipsMeasureValue } from "@util/values";
import { Column } from "./column"; import { Column } from "./column";
// <xsd:complexType name="CT_Columns"> // <xsd:complexType name="CT_Columns">

View File

@ -1,6 +1,6 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { DocumentGrid, DocumentGridType } from "."; import { DocumentGrid, DocumentGridType } from ".";

View File

@ -1,5 +1,5 @@
import { decimalNumber } from "file/values"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { decimalNumber } from "@util/values";
// not implemented // not implemented
// <xsd:simpleType name="ST_DocGrid"> // <xsd:simpleType name="ST_DocGrid">

View File

@ -1,6 +1,6 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { HeaderFooterReference, HeaderFooterReferenceType, HeaderFooterType } from "./header-footer-reference"; import { HeaderFooterReference, HeaderFooterReferenceType, HeaderFooterType } from "./header-footer-reference";
describe("HeaderFooterReference", () => { describe("HeaderFooterReference", () => {

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
// <xsd:simpleType name="ST_HdrFtr"> // <xsd:simpleType name="ST_HdrFtr">
// <xsd:restriction base="xsd:string"> // <xsd:restriction base="xsd:string">

View File

@ -1,6 +1,6 @@
// http://officeopenxml.com/WPsectionLineNumbering.php // http://officeopenxml.com/WPsectionLineNumbering.php
import { decimalNumber, twipsMeasureValue } from "file/values"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { decimalNumber, twipsMeasureValue } from "@util/values";
// <xsd:simpleType name="ST_LineNumberRestart"> // <xsd:simpleType name="ST_LineNumberRestart">
// <xsd:restriction base="xsd:string"> // <xsd:restriction base="xsd:string">

View File

@ -1,7 +1,7 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { BorderStyle } from "file/border"; import { BorderStyle } from "@file/border";
import { PageBorderDisplay, PageBorders, PageBorderZOrder } from "./page-borders"; import { PageBorderDisplay, PageBorders, PageBorderZOrder } from "./page-borders";

View File

@ -1,6 +1,6 @@
// http://officeopenxml.com/WPsectionBorders.php // http://officeopenxml.com/WPsectionBorders.php
import { BorderElement, IBorderOptions } from "file/border"; import { BorderElement, IBorderOptions } from "@file/border";
import { IgnoreIfEmptyXmlComponent, XmlAttributeComponent } from "file/xml-components"; import { IgnoreIfEmptyXmlComponent, XmlAttributeComponent } from "@file/xml-components";
// <xsd:simpleType name="ST_PageBorderDisplay"> // <xsd:simpleType name="ST_PageBorderDisplay">
// <xsd:restriction base="xsd:string"> // <xsd:restriction base="xsd:string">

View File

@ -1,5 +1,5 @@
import { signedTwipsMeasureValue, twipsMeasureValue } from "file/values"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { signedTwipsMeasureValue, twipsMeasureValue } from "@util/values";
// <xsd:complexType name="CT_PageMar"> // <xsd:complexType name="CT_PageMar">
// <xsd:attribute name="top" type="ST_SignedTwipsMeasure" use="required"/> // <xsd:attribute name="top" type="ST_SignedTwipsMeasure" use="required"/>

View File

@ -1,7 +1,7 @@
// http://officeopenxml.com/WPSectionPgNumType.php // http://officeopenxml.com/WPSectionPgNumType.php
import { NumberFormat } from "file/shared/number-format"; import { NumberFormat } from "@file/shared/number-format";
import { decimalNumber } from "file/values"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { decimalNumber } from "@util/values";
// <xsd:simpleType name="ST_ChapterSep"> // <xsd:simpleType name="ST_ChapterSep">
// <xsd:restriction base="xsd:string"> // <xsd:restriction base="xsd:string">

View File

@ -1,6 +1,6 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { PageOrientation, PageSize } from "./page-size"; import { PageOrientation, PageSize } from "./page-size";

View File

@ -1,5 +1,5 @@
import { twipsMeasureValue } from "file/values"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { twipsMeasureValue } from "@util/values";
// <xsd:simpleType name="ST_PageOrientation"> // <xsd:simpleType name="ST_PageOrientation">
// <xsd:restriction base="xsd:string"> // <xsd:restriction base="xsd:string">

View File

@ -1,6 +1,6 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { PageTextDirection, PageTextDirectionType } from "./page-text-direction"; import { PageTextDirection, PageTextDirectionType } from "./page-text-direction";
describe("PageTextDirection", () => { describe("PageTextDirection", () => {

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
export enum PageTextDirectionType { export enum PageTextDirectionType {
LEFT_TO_RIGHT_TOP_TO_BOTTOM = "lrTb", LEFT_TO_RIGHT_TOP_TO_BOTTOM = "lrTb",

View File

@ -1,6 +1,6 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { SectionType, Type } from "./section-type"; import { SectionType, Type } from "./section-type";
describe("Type", () => { describe("Type", () => {

View File

@ -1,5 +1,5 @@
// http://officeopenxml.com/WPsection.php // http://officeopenxml.com/WPsection.php
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
// <xsd:simpleType name="ST_SectionMark"> // <xsd:simpleType name="ST_SectionMark">
// <xsd:restriction base="xsd:string"> // <xsd:restriction base="xsd:string">

View File

@ -1,12 +1,12 @@
import { expect } from "chai"; import { expect } from "chai";
import { convertInchesToTwip } from "convenience-functions"; import { Formatter } from "@export/formatter";
import { Formatter } from "export/formatter"; import { FooterWrapper } from "@file/footer-wrapper";
import { FooterWrapper } from "file/footer-wrapper"; import { HeaderWrapper } from "@file/header-wrapper";
import { HeaderWrapper } from "file/header-wrapper"; import { Media } from "@file/media";
import { Media } from "file/media"; import { NumberFormat } from "@file/shared/number-format";
import { NumberFormat } from "file/shared/number-format"; import { VerticalAlign } from "@file/vertical-align";
import { VerticalAlign } from "file/vertical-align"; import { convertInchesToTwip } from "@util/convenience-functions";
import { PageOrientation } from "./properties"; import { PageOrientation } from "./properties";
import { DocumentGridType } from "./properties/doc-grid"; import { DocumentGridType } from "./properties/doc-grid";

View File

@ -1,10 +1,10 @@
// http://officeopenxml.com/WPsection.php // http://officeopenxml.com/WPsection.php
// tslint:disable: no-unnecessary-initializer // tslint:disable: no-unnecessary-initializer
import { FooterWrapper } from "file/footer-wrapper"; import { FooterWrapper } from "@file/footer-wrapper";
import { HeaderWrapper } from "file/header-wrapper"; import { HeaderWrapper } from "@file/header-wrapper";
import { VerticalAlign, VerticalAlignElement } from "file/vertical-align"; import { VerticalAlign, VerticalAlignElement } from "@file/vertical-align";
import { OnOffElement, XmlComponent } from "file/xml-components"; import { OnOffElement, XmlComponent } from "@file/xml-components";
import { HeaderFooterReference, HeaderFooterReferenceType, HeaderFooterType } from "./properties/header-footer-reference"; import { HeaderFooterReference, HeaderFooterReferenceType, HeaderFooterType } from "./properties/header-footer-reference";

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components"; import { XmlAttributeComponent } from "@file/xml-components";
export interface IDocumentAttributesProperties { export interface IDocumentAttributesProperties {
readonly wpc?: string; readonly wpc?: string;

View File

@ -1,6 +1,6 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { DocumentBackground } from "./document-background"; import { DocumentBackground } from "./document-background";

View File

@ -1,7 +1,7 @@
// http://officeopenxml.com/WPdocument.php // http://officeopenxml.com/WPdocument.php
// http://www.datypic.com/sc/ooxml/e-w_background-1.html // http://www.datypic.com/sc/ooxml/e-w_background-1.html
import { hexColorValue, uCharHexNumber } from "file/values"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { hexColorValue, uCharHexNumber } from "@util/values";
// <xsd:simpleType name="ST_ThemeColor"> // <xsd:simpleType name="ST_ThemeColor">
// <xsd:restriction base="xsd:string"> // <xsd:restriction base="xsd:string">

View File

@ -1,6 +1,6 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { Document } from "./document"; import { Document } from "./document";

View File

@ -1,5 +1,5 @@
// http://officeopenxml.com/WPdocument.php // http://officeopenxml.com/WPdocument.php
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { ConcreteHyperlink, Paragraph } from "../paragraph"; import { ConcreteHyperlink, Paragraph } from "../paragraph";
import { Table } from "../table"; import { Table } from "../table";
import { TableOfContents } from "../table-of-contents"; import { TableOfContents } from "../table-of-contents";

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components"; import { XmlAttributeComponent } from "@file/xml-components";
import { IDistance } from "../drawing"; import { IDistance } from "../drawing";
export interface IAnchorAttributes extends IDistance { export interface IAnchorAttributes extends IDistance {

View File

@ -1,6 +1,6 @@
// http://officeopenxml.com/drwPicFloating.php // http://officeopenxml.com/drwPicFloating.php
import { IMediaData, IMediaDataTransformation } from "file/media"; import { IMediaData, IMediaDataTransformation } from "@file/media";
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { IDrawingOptions } from "../drawing"; import { IDrawingOptions } from "../drawing";
import { HorizontalPosition, IFloating, SimplePos, VerticalPosition } from "../floating"; import { HorizontalPosition, IFloating, SimplePos, VerticalPosition } from "../floating";
import { Graphic } from "../inline/graphic"; import { Graphic } from "../inline/graphic";

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components"; import { XmlAttributeComponent } from "@file/xml-components";
export class DocPropertiesAttributes extends XmlAttributeComponent<{ export class DocPropertiesAttributes extends XmlAttributeComponent<{
readonly id?: number; readonly id?: number;

View File

@ -1,4 +1,4 @@
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { DocPropertiesAttributes } from "./doc-properties-attributes"; import { DocPropertiesAttributes } from "./doc-properties-attributes";
export class DocProperties extends XmlComponent { export class DocProperties extends XmlComponent {

View File

@ -1,6 +1,6 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { Drawing, IDrawingOptions } from "./drawing"; import { Drawing, IDrawingOptions } from "./drawing";

View File

@ -1,5 +1,5 @@
import { IMediaData } from "file/media"; import { IMediaData } from "@file/media";
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { Anchor } from "./anchor"; import { Anchor } from "./anchor";
import { IFloating } from "./floating"; import { IFloating } from "./floating";
import { Inline } from "./inline"; import { Inline } from "./inline";

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components"; import { XmlAttributeComponent } from "@file/xml-components";
export class EffectExtentAttributes extends XmlAttributeComponent<{ export class EffectExtentAttributes extends XmlAttributeComponent<{
readonly b?: number; readonly b?: number;

View File

@ -1,4 +1,4 @@
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { EffectExtentAttributes } from "./effect-extent-attributes"; import { EffectExtentAttributes } from "./effect-extent-attributes";
export class EffectExtent extends XmlComponent { export class EffectExtent extends XmlComponent {

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components"; import { XmlAttributeComponent } from "@file/xml-components";
export class ExtentAttributes extends XmlAttributeComponent<{ export class ExtentAttributes extends XmlAttributeComponent<{
readonly cx?: number; readonly cx?: number;

View File

@ -1,4 +1,4 @@
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { ExtentAttributes } from "./extent-attributes"; import { ExtentAttributes } from "./extent-attributes";

View File

@ -1,7 +1,7 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { VerticalPositionAlign } from "file/shared/alignment"; import { VerticalPositionAlign } from "@file/shared/alignment";
import { Align } from "./align"; import { Align } from "./align";

View File

@ -1,6 +1,6 @@
// http://officeopenxml.com/drwPicFloating-position.php // http://officeopenxml.com/drwPicFloating-position.php
import { HorizontalPositionAlign, VerticalPositionAlign } from "file/shared/alignment"; import { HorizontalPositionAlign, VerticalPositionAlign } from "@file/shared/alignment";
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
export class Align extends XmlComponent { export class Align extends XmlComponent {
constructor(value: HorizontalPositionAlign | VerticalPositionAlign) { constructor(value: HorizontalPositionAlign | VerticalPositionAlign) {

View File

@ -1,6 +1,6 @@
// http://officeopenxml.com/drwPicFloating-position.php // http://officeopenxml.com/drwPicFloating-position.php
// http://officeopenxml.com/drwPicFloating.php // http://officeopenxml.com/drwPicFloating.php
import { HorizontalPositionAlign, VerticalPositionAlign } from "file/shared/alignment"; import { HorizontalPositionAlign, VerticalPositionAlign } from "@file/shared/alignment";
import { ITextWrapping } from "../text-wrap"; import { ITextWrapping } from "../text-wrap";

View File

@ -1,7 +1,7 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { HorizontalPositionAlign } from "file/shared/alignment"; import { HorizontalPositionAlign } from "@file/shared/alignment";
import { HorizontalPositionRelativeFrom } from "./floating-position"; import { HorizontalPositionRelativeFrom } from "./floating-position";
import { HorizontalPosition } from "./horizontal-position"; import { HorizontalPosition } from "./horizontal-position";

View File

@ -1,5 +1,5 @@
// http://officeopenxml.com/drwPicFloating-position.php // http://officeopenxml.com/drwPicFloating-position.php
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
import { Align } from "./align"; import { Align } from "./align";
import { HorizontalPositionRelativeFrom, IHorizontalPositionOptions } from "./floating-position"; import { HorizontalPositionRelativeFrom, IHorizontalPositionOptions } from "./floating-position";
import { PositionOffset } from "./position-offset"; import { PositionOffset } from "./position-offset";

View File

@ -1,6 +1,6 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { PositionOffset } from "./position-offset"; import { PositionOffset } from "./position-offset";

View File

@ -1,5 +1,5 @@
// http://officeopenxml.com/drwPicFloating-position.php // http://officeopenxml.com/drwPicFloating-position.php
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
export class PositionOffset extends XmlComponent { export class PositionOffset extends XmlComponent {
constructor(offsetValue: number) { constructor(offsetValue: number) {

View File

@ -1,6 +1,6 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { SimplePos } from "./simple-pos"; import { SimplePos } from "./simple-pos";

View File

@ -1,5 +1,5 @@
// http://officeopenxml.com/drwPicFloating-position.php // http://officeopenxml.com/drwPicFloating-position.php
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
class SimplePosAttributes extends XmlAttributeComponent<{ class SimplePosAttributes extends XmlAttributeComponent<{
readonly x: number; readonly x: number;

View File

@ -1,7 +1,7 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { VerticalPositionAlign } from "file/shared/alignment"; import { VerticalPositionAlign } from "@file/shared/alignment";
import { VerticalPositionRelativeFrom } from "./floating-position"; import { VerticalPositionRelativeFrom } from "./floating-position";
import { VerticalPosition } from "./vertical-position"; import { VerticalPosition } from "./vertical-position";

View File

@ -1,5 +1,5 @@
// http://officeopenxml.com/drwPicFloating-position.php // http://officeopenxml.com/drwPicFloating-position.php
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
import { Align } from "./align"; import { Align } from "./align";
import { IVerticalPositionOptions, VerticalPositionRelativeFrom } from "./floating-position"; import { IVerticalPositionOptions, VerticalPositionRelativeFrom } from "./floating-position";
import { PositionOffset } from "./position-offset"; import { PositionOffset } from "./position-offset";

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components"; import { XmlAttributeComponent } from "@file/xml-components";
export class GraphicFrameLockAttributes extends XmlAttributeComponent<{ export class GraphicFrameLockAttributes extends XmlAttributeComponent<{
readonly xmlns?: string; readonly xmlns?: string;

View File

@ -1,4 +1,4 @@
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { GraphicFrameLockAttributes } from "./graphic-frame-lock-attributes"; import { GraphicFrameLockAttributes } from "./graphic-frame-lock-attributes";
export class GraphicFrameLocks extends XmlComponent { export class GraphicFrameLocks extends XmlComponent {

View File

@ -1,4 +1,4 @@
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { GraphicFrameLocks } from "./graphic-frame-locks/graphic-frame-locks"; import { GraphicFrameLocks } from "./graphic-frame-locks/graphic-frame-locks";
export class GraphicFrameProperties extends XmlComponent { export class GraphicFrameProperties extends XmlComponent {

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components"; import { XmlAttributeComponent } from "@file/xml-components";
export class GraphicDataAttributes extends XmlAttributeComponent<{ export class GraphicDataAttributes extends XmlAttributeComponent<{
readonly uri?: string; readonly uri?: string;

View File

@ -1,5 +1,5 @@
import { IMediaData, IMediaDataTransformation } from "file/media"; import { IMediaData, IMediaDataTransformation } from "@file/media";
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { GraphicDataAttributes } from "./graphic-data-attribute"; import { GraphicDataAttributes } from "./graphic-data-attribute";
import { Pic } from "./pic"; import { Pic } from "./pic";

View File

@ -1,5 +1,5 @@
import { IMediaData } from "file/media"; import { IMediaData } from "@file/media";
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { Blip } from "./blip"; import { Blip } from "./blip";
import { SourceRectangle } from "./source-rectangle"; import { SourceRectangle } from "./source-rectangle";

View File

@ -1,5 +1,5 @@
import { IMediaData } from "file/media"; import { IMediaData } from "@file/media";
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
class BlipAttributes extends XmlAttributeComponent<{ class BlipAttributes extends XmlAttributeComponent<{
readonly embed: string; readonly embed: string;

View File

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

View File

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

View File

@ -1,4 +1,4 @@
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { PicLocks } from "./pic-locks/pic-locks"; import { PicLocks } from "./pic-locks/pic-locks";
export class ChildNonVisualProperties extends XmlComponent { export class ChildNonVisualProperties extends XmlComponent {

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components"; import { XmlAttributeComponent } from "@file/xml-components";
export class PicLocksAttributes extends XmlAttributeComponent<{ export class PicLocksAttributes extends XmlAttributeComponent<{
readonly noChangeAspect?: number; readonly noChangeAspect?: number;

View File

@ -1,4 +1,4 @@
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { PicLocksAttributes } from "./pic-locks-attributes"; import { PicLocksAttributes } from "./pic-locks-attributes";
export class PicLocks extends XmlComponent { export class PicLocks extends XmlComponent {

View File

@ -1,4 +1,4 @@
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { ChildNonVisualProperties } from "./child-non-visual-pic-properties/child-non-visual-pic-properties"; import { ChildNonVisualProperties } from "./child-non-visual-pic-properties/child-non-visual-pic-properties";
import { NonVisualProperties } from "./non-visual-properties/non-visual-properties"; import { NonVisualProperties } from "./non-visual-properties/non-visual-properties";

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components"; import { XmlAttributeComponent } from "@file/xml-components";
export class NonVisualPropertiesAttributes extends XmlAttributeComponent<{ export class NonVisualPropertiesAttributes extends XmlAttributeComponent<{
readonly id?: number; readonly id?: number;

View File

@ -1,4 +1,4 @@
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { NonVisualPropertiesAttributes } from "./non-visual-properties-attributes"; import { NonVisualPropertiesAttributes } from "./non-visual-properties-attributes";
export class NonVisualProperties extends XmlComponent { export class NonVisualProperties extends XmlComponent {

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components"; import { XmlAttributeComponent } from "@file/xml-components";
export class PicAttributes extends XmlAttributeComponent<{ export class PicAttributes extends XmlAttributeComponent<{
readonly xmlns?: string; readonly xmlns?: string;

View File

@ -1,6 +1,6 @@
// http://officeopenxml.com/drwPic.php // http://officeopenxml.com/drwPic.php
import { IMediaData, IMediaDataTransformation } from "file/media"; import { IMediaData, IMediaDataTransformation } from "@file/media";
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { BlipFill } from "./blip/blip-fill"; import { BlipFill } from "./blip/blip-fill";
import { NonVisualPicProperties } from "./non-visual-pic-properties/non-visual-pic-properties"; import { NonVisualPicProperties } from "./non-visual-pic-properties/non-visual-pic-properties";

View File

@ -1,6 +1,6 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { Form } from "./form/form"; import { Form } from "./form/form";
describe("Form", () => { describe("Form", () => {

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components"; import { XmlAttributeComponent } from "@file/xml-components";
export class ExtentsAttributes extends XmlAttributeComponent<{ export class ExtentsAttributes extends XmlAttributeComponent<{
readonly cx?: number; readonly cx?: number;

View File

@ -1,5 +1,5 @@
// http://officeopenxml.com/drwSp-size.php // http://officeopenxml.com/drwSp-size.php
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { ExtentsAttributes } from "./extents-attributes"; import { ExtentsAttributes } from "./extents-attributes";
export class Extents extends XmlComponent { export class Extents extends XmlComponent {

View File

@ -1,7 +1,7 @@
// http://officeopenxml.com/drwSp-size.php // http://officeopenxml.com/drwSp-size.php
// http://officeopenxml.com/drwSp-rotate.php // http://officeopenxml.com/drwSp-rotate.php
import { IMediaDataTransformation } from "file/media"; import { IMediaDataTransformation } from "@file/media";
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
import { Extents } from "./extents/extents"; import { Extents } from "./extents/extents";
import { Offset } from "./offset/off"; import { Offset } from "./offset/off";

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components"; import { XmlAttributeComponent } from "@file/xml-components";
export class OffsetAttributes extends XmlAttributeComponent<{ export class OffsetAttributes extends XmlAttributeComponent<{
readonly x?: number; readonly x?: number;

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