odf.js 2.4.22 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/dist/a1-5e9veCyu.d.cts +18 -0
- package/dist/a1-5e9veCyu.d.ts +18 -0
- package/dist/base64--HuymRl_.d.cts +5 -0
- package/dist/base64--HuymRl_.d.ts +5 -0
- package/dist/build-XSm3I8LT.d.cts +5 -0
- package/dist/build-Z1KRkSEB.d.ts +5 -0
- package/dist/cascade-8u4q16_U.d.ts +22 -0
- package/dist/cascade-qYa3mgnE.d.cts +22 -0
- package/dist/codec-CqVFFwD0.d.ts +107 -0
- package/dist/codec-Dg0R3WGd.d.cts +107 -0
- package/dist/codec.d.cts +2 -72
- package/dist/codec.d.ts +2 -72
- package/dist/color-CqXjt_to.d.cts +6 -0
- package/dist/color-CqXjt_to.d.ts +6 -0
- package/dist/embedded-CNMqOrnt.d.ts +13 -0
- package/dist/embedded-D7Kr1Sce.d.cts +13 -0
- package/dist/entities-BZlXvHqu.d.cts +5 -0
- package/dist/entities-BZlXvHqu.d.ts +5 -0
- package/dist/form-BC-wb1M2.d.cts +31 -0
- package/dist/form-DcGOX5RW.d.ts +31 -0
- package/dist/fragment-B1ZV7T5Z.d.ts +6 -0
- package/dist/fragment-B1og_8uA.d.cts +6 -0
- package/dist/geometry-DnhkIhAM.d.ts +12 -0
- package/dist/geometry-lKWJ_ifA.d.cts +12 -0
- package/dist/image/sniff.d.cts +1 -4
- package/dist/image/sniff.d.ts +1 -4
- package/dist/index.d.cts +43 -43
- package/dist/index.d.ts +43 -43
- package/dist/manifest-CmsCOCEi.d.cts +40 -0
- package/dist/manifest-xxJ4FpSe.d.ts +40 -0
- package/dist/manifest.cjs +0 -1
- package/dist/manifest.d.cts +2 -41
- package/dist/manifest.d.ts +2 -41
- package/dist/manifest.js +1 -1
- package/dist/masterpage-7nBnqFj-.d.ts +8 -0
- package/dist/masterpage-EmefIRgy.d.cts +8 -0
- package/dist/media-type-BOLkcHkJ.d.cts +20 -0
- package/dist/media-type-BOLkcHkJ.d.ts +20 -0
- package/dist/media-type.d.cts +1 -19
- package/dist/media-type.d.ts +1 -19
- package/dist/metadata-32LoP2TK.d.ts +7 -0
- package/dist/metadata-frJqeeSB.d.cts +7 -0
- package/dist/mimetype-BcLX0N-N.d.cts +6 -0
- package/dist/mimetype-uF-RHNpR.d.ts +6 -0
- package/dist/mimetype.cjs +0 -1
- package/dist/mimetype.d.cts +2 -7
- package/dist/mimetype.d.ts +2 -7
- package/dist/mimetype.js +1 -1
- package/dist/ns-Cihto3Fx.d.cts +33 -0
- package/dist/ns-Cihto3Fx.d.ts +33 -0
- package/dist/ns.d.cts +1 -32
- package/dist/ns.d.ts +1 -32
- package/dist/package-io/read.d.cts +1 -4
- package/dist/package-io/read.d.ts +1 -4
- package/dist/package-io/write.d.cts +1 -6
- package/dist/package-io/write.d.ts +1 -6
- package/dist/paragraph-9ii2naJC.d.cts +7 -0
- package/dist/paragraph-DWNnedIE.d.ts +7 -0
- package/dist/parse-A8_8sdpX.d.ts +5 -0
- package/dist/parse-CP5FLZqv.d.cts +5 -0
- package/dist/path-DE7wkIcz.d.cts +34 -0
- package/dist/path-DE7wkIcz.d.ts +34 -0
- package/dist/properties-BF_Fv6B3.d.cts +44 -0
- package/dist/properties-DjAIdPry.d.ts +44 -0
- package/dist/query-P-Y5DK0-.d.cts +9 -0
- package/dist/query-sECN-7vU.d.ts +9 -0
- package/dist/read-B0aBfNRf.d.ts +10 -0
- package/dist/read-BKS_zlGG.d.cts +10 -0
- package/dist/read-Bd16x8VD.d.cts +10 -0
- package/dist/read-BkFbEves.d.ts +15 -0
- package/dist/read-Bleh4LfR.d.ts +14 -0
- package/dist/read-BoIUENWq.d.ts +28 -0
- package/dist/read-C7gT8wtc.d.ts +10 -0
- package/dist/read-CFMsXSl7.d.cts +5 -0
- package/dist/read-CxdHrV1m.d.ts +10 -0
- package/dist/read-D4DKvOY7.d.cts +10 -0
- package/dist/read-DNNf5_6n.d.cts +15 -0
- package/dist/read-DapcRIZV.d.cts +10 -0
- package/dist/read-DhLNXgiM.d.ts +5 -0
- package/dist/read-Dn9qyBBs.d.ts +10 -0
- package/dist/read-DrdmKX0x.d.cts +28 -0
- package/dist/read-DyR9HfLT.d.cts +14 -0
- package/dist/registry-Dy6pjoh3.d.cts +37 -0
- package/dist/registry-R43n1hcL.d.ts +37 -0
- package/dist/report-BuCJ7_YU.d.cts +48 -0
- package/dist/report-MpwUgXbA.d.ts +48 -0
- package/dist/serialize-9xvti0FF.d.cts +7 -0
- package/dist/serialize-DvaE_t5D.d.ts +7 -0
- package/dist/shapes-BJAtBY24.d.ts +18 -0
- package/dist/shapes-CHc96HKu.d.cts +18 -0
- package/dist/sniff-DjpnUZRp.d.cts +5 -0
- package/dist/sniff-DjpnUZRp.d.ts +5 -0
- package/dist/span-BtmvlqZH.d.cts +5 -0
- package/dist/span-KXroEGuH.d.ts +5 -0
- package/dist/style-CwuPFm34.d.cts +2 -0
- package/dist/style-Jzwx2Q-Y.d.ts +2 -0
- package/dist/styles/properties.cjs +0 -1
- package/dist/styles/properties.d.cts +2 -45
- package/dist/styles/properties.d.ts +2 -45
- package/dist/styles/properties.js +1 -1
- package/dist/styles/registry.d.cts +1 -36
- package/dist/styles/registry.d.ts +1 -36
- package/dist/styles/serialize.d.cts +1 -6
- package/dist/styles/serialize.d.ts +1 -6
- package/dist/styles/span.d.cts +1 -4
- package/dist/styles/span.d.ts +1 -4
- package/dist/subdocument-CIxH3a5V.d.cts +8 -0
- package/dist/subdocument-DQNQF7wV.d.ts +8 -0
- package/dist/table-D81TZyBn.d.ts +14 -0
- package/dist/table-sweV3r9n.d.cts +14 -0
- package/dist/text-Cal14ZaX.d.cts +8 -0
- package/dist/text-CkNojpZm.d.ts +8 -0
- package/dist/transform-C7GrZZdR.d.ts +26 -0
- package/dist/transform-DKEjydnm.d.cts +26 -0
- package/dist/typed/draw/embedded.d.cts +1 -12
- package/dist/typed/draw/embedded.d.ts +1 -12
- package/dist/typed/draw/shapes.d.cts +1 -17
- package/dist/typed/draw/shapes.d.ts +1 -17
- package/dist/typed/formula/read.d.cts +1 -13
- package/dist/typed/formula/read.d.ts +1 -13
- package/dist/typed/odb/form.d.cts +1 -30
- package/dist/typed/odb/form.d.ts +1 -30
- package/dist/typed/odb/read.d.cts +1 -27
- package/dist/typed/odb/read.d.ts +1 -27
- package/dist/typed/odb/report.d.cts +1 -47
- package/dist/typed/odb/report.d.ts +1 -47
- package/dist/typed/odb/subdocument.d.cts +1 -7
- package/dist/typed/odb/subdocument.d.ts +1 -7
- package/dist/typed/odg/read.d.cts +1 -9
- package/dist/typed/odg/read.d.ts +1 -9
- package/dist/typed/odm/read.d.cts +1 -14
- package/dist/typed/odm/read.d.ts +1 -14
- package/dist/typed/odp/read.d.cts +1 -9
- package/dist/typed/odp/read.d.ts +1 -9
- package/dist/typed/ods/read.d.cts +1 -9
- package/dist/typed/ods/read.d.ts +1 -9
- package/dist/typed/odt/read.d.cts +1 -9
- package/dist/typed/odt/read.d.ts +1 -9
- package/dist/typed/shared/a1.d.cts +1 -17
- package/dist/typed/shared/a1.d.ts +1 -17
- package/dist/typed/shared/cascade.d.cts +1 -21
- package/dist/typed/shared/cascade.d.ts +1 -21
- package/dist/typed/shared/color.d.cts +1 -5
- package/dist/typed/shared/color.d.ts +1 -5
- package/dist/typed/shared/geometry.d.cts +1 -11
- package/dist/typed/shared/geometry.d.ts +1 -11
- package/dist/typed/shared/masterpage.d.cts +1 -7
- package/dist/typed/shared/masterpage.d.ts +1 -7
- package/dist/typed/shared/metadata.d.cts +1 -6
- package/dist/typed/shared/metadata.d.ts +1 -6
- package/dist/typed/shared/paragraph.d.cts +1 -6
- package/dist/typed/shared/paragraph.d.ts +1 -6
- package/dist/typed/shared/path.d.cts +1 -33
- package/dist/typed/shared/path.d.ts +1 -33
- package/dist/typed/shared/style.d.cts +1 -1
- package/dist/typed/shared/style.d.ts +1 -1
- package/dist/typed/shared/table.d.cts +1 -13
- package/dist/typed/shared/table.d.ts +1 -13
- package/dist/typed/shared/text.d.cts +1 -7
- package/dist/typed/shared/text.d.ts +1 -7
- package/dist/typed/shared/transform.d.cts +1 -25
- package/dist/typed/shared/transform.d.ts +1 -25
- package/dist/util/base64.d.cts +1 -4
- package/dist/util/base64.d.ts +1 -4
- package/dist/write-C0nwVuPI.d.ts +7 -0
- package/dist/write-Dfb2tirK.d.cts +7 -0
- package/dist/xml/build.d.cts +1 -4
- package/dist/xml/build.d.ts +1 -4
- package/dist/xml/entities.d.cts +1 -4
- package/dist/xml/entities.d.ts +1 -4
- package/dist/xml/fragment.d.cts +1 -5
- package/dist/xml/fragment.d.ts +1 -5
- package/dist/xml/parse.d.cts +1 -4
- package/dist/xml/parse.d.ts +1 -4
- package/dist/xml/query.d.cts +1 -8
- package/dist/xml/query.d.ts +1 -8
- package/dist/zip-ie17sOo5.d.cts +9 -0
- package/dist/zip-ie17sOo5.d.ts +9 -0
- package/dist/zip.d.cts +1 -8
- package/dist/zip.d.ts +1 -8
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { d as XmlNode, l as XmlElement } from "./node-CkBWRjNR.cjs";
|
|
2
|
+
import { Package } from "./model/package.cjs";
|
|
3
|
+
import { ContentDocument, LayoutMetadata } from "document-schema.js";
|
|
4
|
+
//#region src/typed/formula/read.d.ts
|
|
5
|
+
interface OdfFormulaDocument {
|
|
6
|
+
starMath?: string;
|
|
7
|
+
mathml: XmlNode[];
|
|
8
|
+
metadata: LayoutMetadata;
|
|
9
|
+
}
|
|
10
|
+
declare function findMathRoot(nodes: readonly XmlNode[]): XmlElement | undefined;
|
|
11
|
+
declare function readOdfFormula(pkg: Package): OdfFormulaDocument;
|
|
12
|
+
declare function readOdfFormulaDocument(pkg: Package): ContentDocument;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { readOdfFormulaDocument as i, findMathRoot as n, readOdfFormula as r, OdfFormulaDocument as t };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Package } from "./model/package.cjs";
|
|
2
|
+
import { n as StyleProperties } from "./properties-BF_Fv6B3.cjs";
|
|
3
|
+
//#region src/styles/registry.d.ts
|
|
4
|
+
declare const STYLE_FAMILIES: readonly ["paragraph", "text", "table", "table-column", "table-row", "table-cell", "graphic"];
|
|
5
|
+
type StyleFamily = (typeof STYLE_FAMILIES)[number];
|
|
6
|
+
declare function isStyleFamily(value: string): value is StyleFamily;
|
|
7
|
+
interface InternRequest {
|
|
8
|
+
properties: StyleProperties;
|
|
9
|
+
family: StyleFamily;
|
|
10
|
+
parentStyleName?: string;
|
|
11
|
+
}
|
|
12
|
+
interface OtherPartRef {
|
|
13
|
+
pkg: Package;
|
|
14
|
+
partPath: string;
|
|
15
|
+
}
|
|
16
|
+
interface StyleRegistryOptions {
|
|
17
|
+
otherPart?: OtherPartRef;
|
|
18
|
+
additionalReservedNames?: readonly string[];
|
|
19
|
+
}
|
|
20
|
+
declare class StyleRegistry {
|
|
21
|
+
private readonly automaticStyles;
|
|
22
|
+
private readonly prefixes;
|
|
23
|
+
private readonly reservedByFamily;
|
|
24
|
+
private readonly knownStyles;
|
|
25
|
+
private readonly fingerprintToName;
|
|
26
|
+
private readonly nameToFingerprint;
|
|
27
|
+
private readonly familyCounters;
|
|
28
|
+
private constructor();
|
|
29
|
+
static forPart(pkg: Package, partPath: string, options?: StyleRegistryOptions): StyleRegistry;
|
|
30
|
+
fingerprint(request: InternRequest): string;
|
|
31
|
+
intern(request: InternRequest): string;
|
|
32
|
+
private mintName;
|
|
33
|
+
names(): readonly string[];
|
|
34
|
+
gc(referenced: ReadonlySet<string>): number;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { StyleRegistry as a, StyleFamily as i, OtherPartRef as n, StyleRegistryOptions as o, STYLE_FAMILIES as r, isStyleFamily as s, InternRequest as t };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Package } from "./model/package.js";
|
|
2
|
+
import { n as StyleProperties } from "./properties-DjAIdPry.js";
|
|
3
|
+
//#region src/styles/registry.d.ts
|
|
4
|
+
declare const STYLE_FAMILIES: readonly ["paragraph", "text", "table", "table-column", "table-row", "table-cell", "graphic"];
|
|
5
|
+
type StyleFamily = (typeof STYLE_FAMILIES)[number];
|
|
6
|
+
declare function isStyleFamily(value: string): value is StyleFamily;
|
|
7
|
+
interface InternRequest {
|
|
8
|
+
properties: StyleProperties;
|
|
9
|
+
family: StyleFamily;
|
|
10
|
+
parentStyleName?: string;
|
|
11
|
+
}
|
|
12
|
+
interface OtherPartRef {
|
|
13
|
+
pkg: Package;
|
|
14
|
+
partPath: string;
|
|
15
|
+
}
|
|
16
|
+
interface StyleRegistryOptions {
|
|
17
|
+
otherPart?: OtherPartRef;
|
|
18
|
+
additionalReservedNames?: readonly string[];
|
|
19
|
+
}
|
|
20
|
+
declare class StyleRegistry {
|
|
21
|
+
private readonly automaticStyles;
|
|
22
|
+
private readonly prefixes;
|
|
23
|
+
private readonly reservedByFamily;
|
|
24
|
+
private readonly knownStyles;
|
|
25
|
+
private readonly fingerprintToName;
|
|
26
|
+
private readonly nameToFingerprint;
|
|
27
|
+
private readonly familyCounters;
|
|
28
|
+
private constructor();
|
|
29
|
+
static forPart(pkg: Package, partPath: string, options?: StyleRegistryOptions): StyleRegistry;
|
|
30
|
+
fingerprint(request: InternRequest): string;
|
|
31
|
+
intern(request: InternRequest): string;
|
|
32
|
+
private mintName;
|
|
33
|
+
names(): readonly string[];
|
|
34
|
+
gc(referenced: ReadonlySet<string>): number;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { StyleRegistry as a, StyleFamily as i, OtherPartRef as n, StyleRegistryOptions as o, STYLE_FAMILIES as r, isStyleFamily as s, InternRequest as t };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Package } from "./model/package.cjs";
|
|
2
|
+
//#region src/typed/odb/report.d.ts
|
|
3
|
+
interface OdbReportElement {
|
|
4
|
+
tag: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
text?: string;
|
|
7
|
+
formula?: string;
|
|
8
|
+
dataField?: string;
|
|
9
|
+
}
|
|
10
|
+
interface OdbReportBand {
|
|
11
|
+
kind: 'report-header' | 'page-header' | 'group-header' | 'detail' | 'group-footer' | 'page-footer' | 'report-footer';
|
|
12
|
+
name?: string;
|
|
13
|
+
elements: OdbReportElement[];
|
|
14
|
+
}
|
|
15
|
+
interface OdbReportFunction {
|
|
16
|
+
name: string;
|
|
17
|
+
formula: string;
|
|
18
|
+
}
|
|
19
|
+
interface OdbReportGroup {
|
|
20
|
+
groupExpression?: string;
|
|
21
|
+
sortExpression?: string;
|
|
22
|
+
sortAscending?: boolean;
|
|
23
|
+
startNewColumn?: boolean;
|
|
24
|
+
resetPageNumber?: boolean;
|
|
25
|
+
keepTogether?: string;
|
|
26
|
+
header?: OdbReportBand;
|
|
27
|
+
footer?: OdbReportBand;
|
|
28
|
+
functions: OdbReportFunction[];
|
|
29
|
+
groups: OdbReportGroup[];
|
|
30
|
+
}
|
|
31
|
+
interface OdbReport {
|
|
32
|
+
name: string;
|
|
33
|
+
href: string;
|
|
34
|
+
command?: string;
|
|
35
|
+
commandType?: string;
|
|
36
|
+
caption?: string;
|
|
37
|
+
mimeType?: string;
|
|
38
|
+
reportHeader?: OdbReportBand;
|
|
39
|
+
pageHeader?: OdbReportBand;
|
|
40
|
+
groups: OdbReportGroup[];
|
|
41
|
+
detail?: OdbReportBand;
|
|
42
|
+
pageFooter?: OdbReportBand;
|
|
43
|
+
reportFooter?: OdbReportBand;
|
|
44
|
+
functions: OdbReportFunction[];
|
|
45
|
+
}
|
|
46
|
+
declare function readOdbReport(pkg: Package, reportName: string): OdbReport;
|
|
47
|
+
//#endregion
|
|
48
|
+
export { OdbReportGroup as a, OdbReportFunction as i, OdbReportBand as n, readOdbReport as o, OdbReportElement as r, OdbReport as t };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Package } from "./model/package.js";
|
|
2
|
+
//#region src/typed/odb/report.d.ts
|
|
3
|
+
interface OdbReportElement {
|
|
4
|
+
tag: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
text?: string;
|
|
7
|
+
formula?: string;
|
|
8
|
+
dataField?: string;
|
|
9
|
+
}
|
|
10
|
+
interface OdbReportBand {
|
|
11
|
+
kind: 'report-header' | 'page-header' | 'group-header' | 'detail' | 'group-footer' | 'page-footer' | 'report-footer';
|
|
12
|
+
name?: string;
|
|
13
|
+
elements: OdbReportElement[];
|
|
14
|
+
}
|
|
15
|
+
interface OdbReportFunction {
|
|
16
|
+
name: string;
|
|
17
|
+
formula: string;
|
|
18
|
+
}
|
|
19
|
+
interface OdbReportGroup {
|
|
20
|
+
groupExpression?: string;
|
|
21
|
+
sortExpression?: string;
|
|
22
|
+
sortAscending?: boolean;
|
|
23
|
+
startNewColumn?: boolean;
|
|
24
|
+
resetPageNumber?: boolean;
|
|
25
|
+
keepTogether?: string;
|
|
26
|
+
header?: OdbReportBand;
|
|
27
|
+
footer?: OdbReportBand;
|
|
28
|
+
functions: OdbReportFunction[];
|
|
29
|
+
groups: OdbReportGroup[];
|
|
30
|
+
}
|
|
31
|
+
interface OdbReport {
|
|
32
|
+
name: string;
|
|
33
|
+
href: string;
|
|
34
|
+
command?: string;
|
|
35
|
+
commandType?: string;
|
|
36
|
+
caption?: string;
|
|
37
|
+
mimeType?: string;
|
|
38
|
+
reportHeader?: OdbReportBand;
|
|
39
|
+
pageHeader?: OdbReportBand;
|
|
40
|
+
groups: OdbReportGroup[];
|
|
41
|
+
detail?: OdbReportBand;
|
|
42
|
+
pageFooter?: OdbReportBand;
|
|
43
|
+
reportFooter?: OdbReportBand;
|
|
44
|
+
functions: OdbReportFunction[];
|
|
45
|
+
}
|
|
46
|
+
declare function readOdbReport(pkg: Package, reportName: string): OdbReport;
|
|
47
|
+
//#endregion
|
|
48
|
+
export { OdbReportGroup as a, OdbReportFunction as i, OdbReportBand as n, readOdbReport as o, OdbReportElement as r, OdbReport as t };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { l as XmlElement } from "./node-CkBWRjNR.cjs";
|
|
2
|
+
import { n as StyleProperties } from "./properties-BF_Fv6B3.cjs";
|
|
3
|
+
//#region src/styles/serialize.d.ts
|
|
4
|
+
declare function buildStylePropertyElements(properties: StyleProperties): XmlElement[];
|
|
5
|
+
declare function canonicalPropertiesString(properties: StyleProperties): string;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { canonicalPropertiesString as n, buildStylePropertyElements as t };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { l as XmlElement } from "./node-CkBWRjNR.js";
|
|
2
|
+
import { n as StyleProperties } from "./properties-DjAIdPry.js";
|
|
3
|
+
//#region src/styles/serialize.d.ts
|
|
4
|
+
declare function buildStylePropertyElements(properties: StyleProperties): XmlElement[];
|
|
5
|
+
declare function canonicalPropertiesString(properties: StyleProperties): string;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { canonicalPropertiesString as n, buildStylePropertyElements as t };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { d as XmlNode, l as XmlElement } from "./node-CkBWRjNR.js";
|
|
2
|
+
import { Package } from "./model/package.js";
|
|
3
|
+
import { r as OdfTransformFunction } from "./transform-C7GrZZdR.js";
|
|
4
|
+
import { Box, ContentImageBlock, ContentShape, ContentVector } from "document-schema.js";
|
|
5
|
+
//#region src/typed/draw/shapes.d.ts
|
|
6
|
+
declare function readDrawImageBlock(image: XmlElement, frame: XmlElement, frameBox: Box, pkg: Package): ContentImageBlock | undefined;
|
|
7
|
+
declare function readDrawFrame(frame: XmlElement, groupFunctions: readonly OdfTransformFunction[], pkg: Package): ContentShape | undefined;
|
|
8
|
+
declare function walkDrawShapes(children: readonly XmlNode[], groupFunctions: readonly OdfTransformFunction[], pkg: Package, out: ContentShape[], indexState?: DocumentIndexState): void;
|
|
9
|
+
interface DocumentIndexState {
|
|
10
|
+
next: number;
|
|
11
|
+
}
|
|
12
|
+
interface DrawPageContent {
|
|
13
|
+
readonly shapes: ContentShape[];
|
|
14
|
+
readonly vectors: ContentVector[];
|
|
15
|
+
}
|
|
16
|
+
declare function readDrawPageContent(children: readonly XmlNode[], pkg: Package): DrawPageContent;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { walkDrawShapes as a, readDrawPageContent as i, readDrawFrame as n, readDrawImageBlock as r, DrawPageContent as t };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { d as XmlNode, l as XmlElement } from "./node-CkBWRjNR.cjs";
|
|
2
|
+
import { Package } from "./model/package.cjs";
|
|
3
|
+
import { r as OdfTransformFunction } from "./transform-DKEjydnm.cjs";
|
|
4
|
+
import { Box, ContentImageBlock, ContentShape, ContentVector } from "document-schema.js";
|
|
5
|
+
//#region src/typed/draw/shapes.d.ts
|
|
6
|
+
declare function readDrawImageBlock(image: XmlElement, frame: XmlElement, frameBox: Box, pkg: Package): ContentImageBlock | undefined;
|
|
7
|
+
declare function readDrawFrame(frame: XmlElement, groupFunctions: readonly OdfTransformFunction[], pkg: Package): ContentShape | undefined;
|
|
8
|
+
declare function walkDrawShapes(children: readonly XmlNode[], groupFunctions: readonly OdfTransformFunction[], pkg: Package, out: ContentShape[], indexState?: DocumentIndexState): void;
|
|
9
|
+
interface DocumentIndexState {
|
|
10
|
+
next: number;
|
|
11
|
+
}
|
|
12
|
+
interface DrawPageContent {
|
|
13
|
+
readonly shapes: ContentShape[];
|
|
14
|
+
readonly vectors: ContentVector[];
|
|
15
|
+
}
|
|
16
|
+
declare function readDrawPageContent(children: readonly XmlNode[], pkg: Package): DrawPageContent;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { walkDrawShapes as a, readDrawPageContent as i, readDrawFrame as n, readDrawImageBlock as r, DrawPageContent as t };
|
|
@@ -279,7 +279,6 @@ exports.StylePropertiesSchema = StylePropertiesSchema;
|
|
|
279
279
|
exports.formatPercentageMultiplier = formatPercentageMultiplier;
|
|
280
280
|
exports.formatPt = formatPt;
|
|
281
281
|
exports.paragraphPropertiesToAttributes = paragraphPropertiesToAttributes;
|
|
282
|
-
exports.parseLength = require_typed_shared_units.parseOdfLength;
|
|
283
282
|
exports.parseParagraphProperties = parseParagraphProperties;
|
|
284
283
|
exports.parseStyleElementProperties = parseStyleElementProperties;
|
|
285
284
|
exports.parseTextProperties = parseTextProperties;
|
|
@@ -1,45 +1,2 @@
|
|
|
1
|
-
import { l as
|
|
2
|
-
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
//#region src/styles/properties.d.ts
|
|
5
|
-
declare const StylePropertiesSchema: z.ZodObject<{
|
|
6
|
-
bold: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
-
underline: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
-
strike: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
-
fontFamily: z.ZodOptional<z.ZodString>;
|
|
11
|
-
sizePt: z.ZodOptional<z.ZodNumber>;
|
|
12
|
-
color: z.ZodOptional<z.ZodObject<{
|
|
13
|
-
r: z.ZodNumber;
|
|
14
|
-
g: z.ZodNumber;
|
|
15
|
-
b: z.ZodNumber;
|
|
16
|
-
}, z.core.$strip>>;
|
|
17
|
-
alignment: z.ZodOptional<z.ZodEnum<{
|
|
18
|
-
left: "left";
|
|
19
|
-
center: "center";
|
|
20
|
-
right: "right";
|
|
21
|
-
justify: "justify";
|
|
22
|
-
}>>;
|
|
23
|
-
spacingBeforePt: z.ZodOptional<z.ZodNumber>;
|
|
24
|
-
spacingAfterPt: z.ZodOptional<z.ZodNumber>;
|
|
25
|
-
lineSpacing: z.ZodOptional<z.ZodNumber>;
|
|
26
|
-
indentLeftPt: z.ZodOptional<z.ZodNumber>;
|
|
27
|
-
indentFirstLinePt: z.ZodOptional<z.ZodNumber>;
|
|
28
|
-
}, z.core.$strip>;
|
|
29
|
-
type StyleProperties = z.infer<typeof StylePropertiesSchema>;
|
|
30
|
-
interface ParsedProperties {
|
|
31
|
-
properties: Partial<StyleProperties>;
|
|
32
|
-
hasUnknown: boolean;
|
|
33
|
-
}
|
|
34
|
-
declare function formatPt(valuePt: number): string;
|
|
35
|
-
declare function formatPercentageMultiplier(multiplier: number): string;
|
|
36
|
-
declare function parseTextProperties(element: XmlElement): ParsedProperties;
|
|
37
|
-
declare function parseParagraphProperties(element: XmlElement): ParsedProperties;
|
|
38
|
-
declare function parseStyleElementProperties(styleElement: XmlElement): {
|
|
39
|
-
properties: StyleProperties;
|
|
40
|
-
hasUnknown: boolean;
|
|
41
|
-
};
|
|
42
|
-
declare function textPropertiesToAttributes(properties: StyleProperties): Attribute[];
|
|
43
|
-
declare function paragraphPropertiesToAttributes(properties: StyleProperties): Attribute[];
|
|
44
|
-
//#endregion
|
|
45
|
-
export { ParsedProperties, StyleProperties, StylePropertiesSchema, formatPercentageMultiplier, formatPt, paragraphPropertiesToAttributes, parseOdfLength as parseLength, parseParagraphProperties, parseStyleElementProperties, parseTextProperties, textPropertiesToAttributes };
|
|
1
|
+
import { a as formatPt, c as parseStyleElementProperties, i as formatPercentageMultiplier, l as parseTextProperties, n as StyleProperties, o as paragraphPropertiesToAttributes, r as StylePropertiesSchema, s as parseParagraphProperties, t as ParsedProperties, u as textPropertiesToAttributes } from "../properties-BF_Fv6B3.cjs";
|
|
2
|
+
export { ParsedProperties, StyleProperties, StylePropertiesSchema, formatPercentageMultiplier, formatPt, paragraphPropertiesToAttributes, parseParagraphProperties, parseStyleElementProperties, parseTextProperties, textPropertiesToAttributes };
|
|
@@ -1,45 +1,2 @@
|
|
|
1
|
-
import { l as
|
|
2
|
-
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
//#region src/styles/properties.d.ts
|
|
5
|
-
declare const StylePropertiesSchema: z.ZodObject<{
|
|
6
|
-
bold: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
-
underline: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
-
strike: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
-
fontFamily: z.ZodOptional<z.ZodString>;
|
|
11
|
-
sizePt: z.ZodOptional<z.ZodNumber>;
|
|
12
|
-
color: z.ZodOptional<z.ZodObject<{
|
|
13
|
-
r: z.ZodNumber;
|
|
14
|
-
g: z.ZodNumber;
|
|
15
|
-
b: z.ZodNumber;
|
|
16
|
-
}, z.core.$strip>>;
|
|
17
|
-
alignment: z.ZodOptional<z.ZodEnum<{
|
|
18
|
-
left: "left";
|
|
19
|
-
center: "center";
|
|
20
|
-
right: "right";
|
|
21
|
-
justify: "justify";
|
|
22
|
-
}>>;
|
|
23
|
-
spacingBeforePt: z.ZodOptional<z.ZodNumber>;
|
|
24
|
-
spacingAfterPt: z.ZodOptional<z.ZodNumber>;
|
|
25
|
-
lineSpacing: z.ZodOptional<z.ZodNumber>;
|
|
26
|
-
indentLeftPt: z.ZodOptional<z.ZodNumber>;
|
|
27
|
-
indentFirstLinePt: z.ZodOptional<z.ZodNumber>;
|
|
28
|
-
}, z.core.$strip>;
|
|
29
|
-
type StyleProperties = z.infer<typeof StylePropertiesSchema>;
|
|
30
|
-
interface ParsedProperties {
|
|
31
|
-
properties: Partial<StyleProperties>;
|
|
32
|
-
hasUnknown: boolean;
|
|
33
|
-
}
|
|
34
|
-
declare function formatPt(valuePt: number): string;
|
|
35
|
-
declare function formatPercentageMultiplier(multiplier: number): string;
|
|
36
|
-
declare function parseTextProperties(element: XmlElement): ParsedProperties;
|
|
37
|
-
declare function parseParagraphProperties(element: XmlElement): ParsedProperties;
|
|
38
|
-
declare function parseStyleElementProperties(styleElement: XmlElement): {
|
|
39
|
-
properties: StyleProperties;
|
|
40
|
-
hasUnknown: boolean;
|
|
41
|
-
};
|
|
42
|
-
declare function textPropertiesToAttributes(properties: StyleProperties): Attribute[];
|
|
43
|
-
declare function paragraphPropertiesToAttributes(properties: StyleProperties): Attribute[];
|
|
44
|
-
//#endregion
|
|
45
|
-
export { ParsedProperties, StyleProperties, StylePropertiesSchema, formatPercentageMultiplier, formatPt, paragraphPropertiesToAttributes, parseOdfLength as parseLength, parseParagraphProperties, parseStyleElementProperties, parseTextProperties, textPropertiesToAttributes };
|
|
1
|
+
import { a as formatPt, c as parseStyleElementProperties, i as formatPercentageMultiplier, l as parseTextProperties, n as StyleProperties, o as paragraphPropertiesToAttributes, r as StylePropertiesSchema, s as parseParagraphProperties, t as ParsedProperties, u as textPropertiesToAttributes } from "../properties-DjAIdPry.js";
|
|
2
|
+
export { ParsedProperties, StyleProperties, StylePropertiesSchema, formatPercentageMultiplier, formatPt, paragraphPropertiesToAttributes, parseParagraphProperties, parseStyleElementProperties, parseTextProperties, textPropertiesToAttributes };
|
|
@@ -274,4 +274,4 @@ function paragraphPropertiesToAttributes(properties) {
|
|
|
274
274
|
return attributes;
|
|
275
275
|
}
|
|
276
276
|
//#endregion
|
|
277
|
-
export { StylePropertiesSchema, formatPercentageMultiplier, formatPt, paragraphPropertiesToAttributes,
|
|
277
|
+
export { StylePropertiesSchema, formatPercentageMultiplier, formatPt, paragraphPropertiesToAttributes, parseParagraphProperties, parseStyleElementProperties, parseTextProperties, textPropertiesToAttributes };
|
|
@@ -1,37 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { StyleProperties } from "./properties.cjs";
|
|
3
|
-
//#region src/styles/registry.d.ts
|
|
4
|
-
declare const STYLE_FAMILIES: readonly ["paragraph", "text", "table", "table-column", "table-row", "table-cell", "graphic"];
|
|
5
|
-
type StyleFamily = (typeof STYLE_FAMILIES)[number];
|
|
6
|
-
declare function isStyleFamily(value: string): value is StyleFamily;
|
|
7
|
-
interface InternRequest {
|
|
8
|
-
properties: StyleProperties;
|
|
9
|
-
family: StyleFamily;
|
|
10
|
-
parentStyleName?: string;
|
|
11
|
-
}
|
|
12
|
-
interface OtherPartRef {
|
|
13
|
-
pkg: Package;
|
|
14
|
-
partPath: string;
|
|
15
|
-
}
|
|
16
|
-
interface StyleRegistryOptions {
|
|
17
|
-
otherPart?: OtherPartRef;
|
|
18
|
-
additionalReservedNames?: readonly string[];
|
|
19
|
-
}
|
|
20
|
-
declare class StyleRegistry {
|
|
21
|
-
private readonly automaticStyles;
|
|
22
|
-
private readonly prefixes;
|
|
23
|
-
private readonly reservedByFamily;
|
|
24
|
-
private readonly knownStyles;
|
|
25
|
-
private readonly fingerprintToName;
|
|
26
|
-
private readonly nameToFingerprint;
|
|
27
|
-
private readonly familyCounters;
|
|
28
|
-
private constructor();
|
|
29
|
-
static forPart(pkg: Package, partPath: string, options?: StyleRegistryOptions): StyleRegistry;
|
|
30
|
-
fingerprint(request: InternRequest): string;
|
|
31
|
-
intern(request: InternRequest): string;
|
|
32
|
-
private mintName;
|
|
33
|
-
names(): readonly string[];
|
|
34
|
-
gc(referenced: ReadonlySet<string>): number;
|
|
35
|
-
}
|
|
36
|
-
//#endregion
|
|
1
|
+
import { a as StyleRegistry, i as StyleFamily, n as OtherPartRef, o as StyleRegistryOptions, r as STYLE_FAMILIES, s as isStyleFamily, t as InternRequest } from "../registry-Dy6pjoh3.cjs";
|
|
37
2
|
export { InternRequest, OtherPartRef, STYLE_FAMILIES, StyleFamily, StyleRegistry, StyleRegistryOptions, isStyleFamily };
|
|
@@ -1,37 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { StyleProperties } from "./properties.js";
|
|
3
|
-
//#region src/styles/registry.d.ts
|
|
4
|
-
declare const STYLE_FAMILIES: readonly ["paragraph", "text", "table", "table-column", "table-row", "table-cell", "graphic"];
|
|
5
|
-
type StyleFamily = (typeof STYLE_FAMILIES)[number];
|
|
6
|
-
declare function isStyleFamily(value: string): value is StyleFamily;
|
|
7
|
-
interface InternRequest {
|
|
8
|
-
properties: StyleProperties;
|
|
9
|
-
family: StyleFamily;
|
|
10
|
-
parentStyleName?: string;
|
|
11
|
-
}
|
|
12
|
-
interface OtherPartRef {
|
|
13
|
-
pkg: Package;
|
|
14
|
-
partPath: string;
|
|
15
|
-
}
|
|
16
|
-
interface StyleRegistryOptions {
|
|
17
|
-
otherPart?: OtherPartRef;
|
|
18
|
-
additionalReservedNames?: readonly string[];
|
|
19
|
-
}
|
|
20
|
-
declare class StyleRegistry {
|
|
21
|
-
private readonly automaticStyles;
|
|
22
|
-
private readonly prefixes;
|
|
23
|
-
private readonly reservedByFamily;
|
|
24
|
-
private readonly knownStyles;
|
|
25
|
-
private readonly fingerprintToName;
|
|
26
|
-
private readonly nameToFingerprint;
|
|
27
|
-
private readonly familyCounters;
|
|
28
|
-
private constructor();
|
|
29
|
-
static forPart(pkg: Package, partPath: string, options?: StyleRegistryOptions): StyleRegistry;
|
|
30
|
-
fingerprint(request: InternRequest): string;
|
|
31
|
-
intern(request: InternRequest): string;
|
|
32
|
-
private mintName;
|
|
33
|
-
names(): readonly string[];
|
|
34
|
-
gc(referenced: ReadonlySet<string>): number;
|
|
35
|
-
}
|
|
36
|
-
//#endregion
|
|
1
|
+
import { a as StyleRegistry, i as StyleFamily, n as OtherPartRef, o as StyleRegistryOptions, r as STYLE_FAMILIES, s as isStyleFamily, t as InternRequest } from "../registry-R43n1hcL.js";
|
|
37
2
|
export { InternRequest, OtherPartRef, STYLE_FAMILIES, StyleFamily, StyleRegistry, StyleRegistryOptions, isStyleFamily };
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { StyleProperties } from "./properties.cjs";
|
|
3
|
-
//#region src/styles/serialize.d.ts
|
|
4
|
-
declare function buildStylePropertyElements(properties: StyleProperties): XmlElement[];
|
|
5
|
-
declare function canonicalPropertiesString(properties: StyleProperties): string;
|
|
6
|
-
//#endregion
|
|
1
|
+
import { n as canonicalPropertiesString, t as buildStylePropertyElements } from "../serialize-9xvti0FF.cjs";
|
|
7
2
|
export { buildStylePropertyElements, canonicalPropertiesString };
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { StyleProperties } from "./properties.js";
|
|
3
|
-
//#region src/styles/serialize.d.ts
|
|
4
|
-
declare function buildStylePropertyElements(properties: StyleProperties): XmlElement[];
|
|
5
|
-
declare function canonicalPropertiesString(properties: StyleProperties): string;
|
|
6
|
-
//#endregion
|
|
1
|
+
import { n as canonicalPropertiesString, t as buildStylePropertyElements } from "../serialize-DvaE_t5D.js";
|
|
7
2
|
export { buildStylePropertyElements, canonicalPropertiesString };
|
package/dist/styles/span.d.cts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region src/styles/span.d.ts
|
|
3
|
-
declare function ensureSpan(paragraph: XmlElement, start: number, end: number, styleName: string): XmlElement;
|
|
4
|
-
//#endregion
|
|
1
|
+
import { t as ensureSpan } from "../span-BtmvlqZH.cjs";
|
|
5
2
|
export { ensureSpan };
|
package/dist/styles/span.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region src/styles/span.d.ts
|
|
3
|
-
declare function ensureSpan(paragraph: XmlElement, start: number, end: number, styleName: string): XmlElement;
|
|
4
|
-
//#endregion
|
|
1
|
+
import { t as ensureSpan } from "../span-KXroEGuH.js";
|
|
5
2
|
export { ensureSpan };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Package } from "./model/package.cjs";
|
|
2
|
+
//#region src/typed/odb/subdocument.d.ts
|
|
3
|
+
interface SubDocumentPackageOptions {
|
|
4
|
+
allowMissingContent?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare function subDocumentPackage(pkg: Package, prefix: string, options?: SubDocumentPackageOptions): Package;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { subDocumentPackage as n, SubDocumentPackageOptions as t };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Package } from "./model/package.js";
|
|
2
|
+
//#region src/typed/odb/subdocument.d.ts
|
|
3
|
+
interface SubDocumentPackageOptions {
|
|
4
|
+
allowMissingContent?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare function subDocumentPackage(pkg: Package, prefix: string, options?: SubDocumentPackageOptions): Package;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { subDocumentPackage as n, SubDocumentPackageOptions as t };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { l as XmlElement } from "./node-CkBWRjNR.js";
|
|
2
|
+
import { Package } from "./model/package.js";
|
|
3
|
+
import { Alignment, Color, ContentCellBorders, ContentTable } from "document-schema.js";
|
|
4
|
+
//#region src/typed/shared/table.d.ts
|
|
5
|
+
interface CellStyleDecoration {
|
|
6
|
+
background?: Color;
|
|
7
|
+
borders?: ContentCellBorders;
|
|
8
|
+
alignment?: Alignment;
|
|
9
|
+
verticalAlignment?: 'top' | 'middle' | 'bottom';
|
|
10
|
+
}
|
|
11
|
+
declare function readCellStyleDecoration(elements: readonly XmlElement[]): CellStyleDecoration;
|
|
12
|
+
declare function readOdfTable(tableElement: XmlElement, pkg: Package): ContentTable;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { readCellStyleDecoration as n, readOdfTable as r, CellStyleDecoration as t };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { l as XmlElement } from "./node-CkBWRjNR.cjs";
|
|
2
|
+
import { Package } from "./model/package.cjs";
|
|
3
|
+
import { Alignment, Color, ContentCellBorders, ContentTable } from "document-schema.js";
|
|
4
|
+
//#region src/typed/shared/table.d.ts
|
|
5
|
+
interface CellStyleDecoration {
|
|
6
|
+
background?: Color;
|
|
7
|
+
borders?: ContentCellBorders;
|
|
8
|
+
alignment?: Alignment;
|
|
9
|
+
verticalAlignment?: 'top' | 'middle' | 'bottom';
|
|
10
|
+
}
|
|
11
|
+
declare function readCellStyleDecoration(elements: readonly XmlElement[]): CellStyleDecoration;
|
|
12
|
+
declare function readOdfTable(tableElement: XmlElement, pkg: Package): ContentTable;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { readCellStyleDecoration as n, readOdfTable as r, CellStyleDecoration as t };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { d as XmlNode, l as XmlElement } from "./node-CkBWRjNR.cjs";
|
|
2
|
+
//#region src/typed/shared/text.d.ts
|
|
3
|
+
declare function getOdfSpaceCount(element: XmlElement): number;
|
|
4
|
+
declare function measureOdfNodeLength(node: XmlNode): number;
|
|
5
|
+
declare function sumOdfNodeLength(nodes: readonly XmlNode[]): number;
|
|
6
|
+
declare function decodeOdfText(container: XmlElement): string;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sumOdfNodeLength as i, getOdfSpaceCount as n, measureOdfNodeLength as r, decodeOdfText as t };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { d as XmlNode, l as XmlElement } from "./node-CkBWRjNR.js";
|
|
2
|
+
//#region src/typed/shared/text.d.ts
|
|
3
|
+
declare function getOdfSpaceCount(element: XmlElement): number;
|
|
4
|
+
declare function measureOdfNodeLength(node: XmlNode): number;
|
|
5
|
+
declare function sumOdfNodeLength(nodes: readonly XmlNode[]): number;
|
|
6
|
+
declare function decodeOdfText(container: XmlElement): string;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sumOdfNodeLength as i, getOdfSpaceCount as n, measureOdfNodeLength as r, decodeOdfText as t };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { l as XmlElement } from "./node-CkBWRjNR.js";
|
|
2
|
+
import { Box } from "document-schema.js";
|
|
3
|
+
//#region src/typed/shared/transform.d.ts
|
|
4
|
+
type OdfTransformFunction = {
|
|
5
|
+
readonly kind: 'rotate';
|
|
6
|
+
readonly angleRad: number;
|
|
7
|
+
} | {
|
|
8
|
+
readonly kind: 'translate';
|
|
9
|
+
readonly xPt: number;
|
|
10
|
+
readonly yPt: number;
|
|
11
|
+
};
|
|
12
|
+
interface OdfPoint {
|
|
13
|
+
readonly xPt: number;
|
|
14
|
+
readonly yPt: number;
|
|
15
|
+
}
|
|
16
|
+
declare function parseOdfTransform(value: string): OdfTransformFunction[];
|
|
17
|
+
declare function applyOdfTransform(functions: readonly OdfTransformFunction[], point: OdfPoint): OdfPoint;
|
|
18
|
+
declare function netRotationDeg(functions: readonly OdfTransformFunction[]): number;
|
|
19
|
+
interface OdfShapeGeometry {
|
|
20
|
+
readonly frame: Box;
|
|
21
|
+
readonly rotationDeg: number | undefined;
|
|
22
|
+
}
|
|
23
|
+
declare function resolveOdfShapeGeometry(element: XmlElement): OdfShapeGeometry | undefined;
|
|
24
|
+
declare function composeOdfGroupTransform(groupFunctions: readonly OdfTransformFunction[], child: OdfShapeGeometry): OdfShapeGeometry;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { composeOdfGroupTransform as a, resolveOdfShapeGeometry as c, applyOdfTransform as i, OdfShapeGeometry as n, netRotationDeg as o, OdfTransformFunction as r, parseOdfTransform as s, OdfPoint as t };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { l as XmlElement } from "./node-CkBWRjNR.cjs";
|
|
2
|
+
import { Box } from "document-schema.js";
|
|
3
|
+
//#region src/typed/shared/transform.d.ts
|
|
4
|
+
type OdfTransformFunction = {
|
|
5
|
+
readonly kind: 'rotate';
|
|
6
|
+
readonly angleRad: number;
|
|
7
|
+
} | {
|
|
8
|
+
readonly kind: 'translate';
|
|
9
|
+
readonly xPt: number;
|
|
10
|
+
readonly yPt: number;
|
|
11
|
+
};
|
|
12
|
+
interface OdfPoint {
|
|
13
|
+
readonly xPt: number;
|
|
14
|
+
readonly yPt: number;
|
|
15
|
+
}
|
|
16
|
+
declare function parseOdfTransform(value: string): OdfTransformFunction[];
|
|
17
|
+
declare function applyOdfTransform(functions: readonly OdfTransformFunction[], point: OdfPoint): OdfPoint;
|
|
18
|
+
declare function netRotationDeg(functions: readonly OdfTransformFunction[]): number;
|
|
19
|
+
interface OdfShapeGeometry {
|
|
20
|
+
readonly frame: Box;
|
|
21
|
+
readonly rotationDeg: number | undefined;
|
|
22
|
+
}
|
|
23
|
+
declare function resolveOdfShapeGeometry(element: XmlElement): OdfShapeGeometry | undefined;
|
|
24
|
+
declare function composeOdfGroupTransform(groupFunctions: readonly OdfTransformFunction[], child: OdfShapeGeometry): OdfShapeGeometry;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { composeOdfGroupTransform as a, resolveOdfShapeGeometry as c, applyOdfTransform as i, OdfShapeGeometry as n, netRotationDeg as o, OdfTransformFunction as r, parseOdfTransform as s, OdfPoint as t };
|