odf.js 2.4.23 → 2.5.1
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 +12 -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 +2 -2
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { LayoutMetadata } from "document-schema.js";
|
|
3
|
-
//#region src/typed/shared/metadata.d.ts
|
|
4
|
-
declare const META_PART = "meta.xml";
|
|
5
|
-
declare function readOdfMetadata(pkg: Package): LayoutMetadata;
|
|
6
|
-
//#endregion
|
|
1
|
+
import { n as readOdfMetadata, t as META_PART } from "../../metadata-frJqeeSB.cjs";
|
|
7
2
|
export { META_PART, readOdfMetadata };
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { LayoutMetadata } from "document-schema.js";
|
|
3
|
-
//#region src/typed/shared/metadata.d.ts
|
|
4
|
-
declare const META_PART = "meta.xml";
|
|
5
|
-
declare function readOdfMetadata(pkg: Package): LayoutMetadata;
|
|
6
|
-
//#endregion
|
|
1
|
+
import { n as readOdfMetadata, t as META_PART } from "../../metadata-32LoP2TK.js";
|
|
7
2
|
export { META_PART, readOdfMetadata };
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Package } from "../../model/package.cjs";
|
|
3
|
-
import { ContentParagraph } from "document-schema.js";
|
|
4
|
-
//#region src/typed/shared/paragraph.d.ts
|
|
5
|
-
declare function readOdfParagraph(pElement: XmlElement, pkg: Package): ContentParagraph;
|
|
6
|
-
//#endregion
|
|
1
|
+
import { t as readOdfParagraph } from "../../paragraph-9ii2naJC.cjs";
|
|
7
2
|
export { readOdfParagraph };
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Package } from "../../model/package.js";
|
|
3
|
-
import { ContentParagraph } from "document-schema.js";
|
|
4
|
-
//#region src/typed/shared/paragraph.d.ts
|
|
5
|
-
declare function readOdfParagraph(pElement: XmlElement, pkg: Package): ContentParagraph;
|
|
6
|
-
//#endregion
|
|
1
|
+
import { t as readOdfParagraph } from "../../paragraph-DWNnedIE.js";
|
|
7
2
|
export { readOdfParagraph };
|
|
@@ -1,34 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region src/typed/shared/path.d.ts
|
|
3
|
-
interface OdfRawPoint {
|
|
4
|
-
readonly x: number;
|
|
5
|
-
readonly y: number;
|
|
6
|
-
}
|
|
7
|
-
type OdfRawSegment = {
|
|
8
|
-
readonly kind: 'line';
|
|
9
|
-
readonly to: OdfRawPoint;
|
|
10
|
-
} | {
|
|
11
|
-
readonly kind: 'cubic';
|
|
12
|
-
readonly control1: OdfRawPoint;
|
|
13
|
-
readonly control2: OdfRawPoint;
|
|
14
|
-
readonly to: OdfRawPoint;
|
|
15
|
-
};
|
|
16
|
-
interface OdfRawSubpath {
|
|
17
|
-
readonly start: OdfRawPoint;
|
|
18
|
-
readonly segments: readonly OdfRawSegment[];
|
|
19
|
-
readonly closed: boolean;
|
|
20
|
-
}
|
|
21
|
-
interface OdfViewBox {
|
|
22
|
-
readonly minX: number;
|
|
23
|
-
readonly minY: number;
|
|
24
|
-
readonly width: number;
|
|
25
|
-
readonly height: number;
|
|
26
|
-
}
|
|
27
|
-
declare function parseOdfViewBox(value: string): OdfViewBox | undefined;
|
|
28
|
-
declare function parseOdfPointsList(value: string): OdfRawPoint[];
|
|
29
|
-
declare function rawSubpathFromPoints(points: readonly OdfRawPoint[], closed: boolean): OdfRawSubpath | undefined;
|
|
30
|
-
declare function parseOdfPathData(d: string): OdfRawSubpath[];
|
|
31
|
-
declare function scaleOdfRawPoint(point: OdfRawPoint, viewBox: OdfViewBox, frame: Box): ContentPathPoint;
|
|
32
|
-
declare function buildOdfSubpaths(rawSubpaths: readonly OdfRawSubpath[], viewBox: OdfViewBox, frame: Box): ContentSubpath[];
|
|
33
|
-
//#endregion
|
|
1
|
+
import { a as buildOdfSubpaths, c as parseOdfViewBox, i as OdfViewBox, l as rawSubpathFromPoints, n as OdfRawSegment, o as parseOdfPathData, r as OdfRawSubpath, s as parseOdfPointsList, t as OdfRawPoint, u as scaleOdfRawPoint } from "../../path-DE7wkIcz.cjs";
|
|
34
2
|
export { OdfRawPoint, OdfRawSegment, OdfRawSubpath, OdfViewBox, buildOdfSubpaths, parseOdfPathData, parseOdfPointsList, parseOdfViewBox, rawSubpathFromPoints, scaleOdfRawPoint };
|
|
@@ -1,34 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region src/typed/shared/path.d.ts
|
|
3
|
-
interface OdfRawPoint {
|
|
4
|
-
readonly x: number;
|
|
5
|
-
readonly y: number;
|
|
6
|
-
}
|
|
7
|
-
type OdfRawSegment = {
|
|
8
|
-
readonly kind: 'line';
|
|
9
|
-
readonly to: OdfRawPoint;
|
|
10
|
-
} | {
|
|
11
|
-
readonly kind: 'cubic';
|
|
12
|
-
readonly control1: OdfRawPoint;
|
|
13
|
-
readonly control2: OdfRawPoint;
|
|
14
|
-
readonly to: OdfRawPoint;
|
|
15
|
-
};
|
|
16
|
-
interface OdfRawSubpath {
|
|
17
|
-
readonly start: OdfRawPoint;
|
|
18
|
-
readonly segments: readonly OdfRawSegment[];
|
|
19
|
-
readonly closed: boolean;
|
|
20
|
-
}
|
|
21
|
-
interface OdfViewBox {
|
|
22
|
-
readonly minX: number;
|
|
23
|
-
readonly minY: number;
|
|
24
|
-
readonly width: number;
|
|
25
|
-
readonly height: number;
|
|
26
|
-
}
|
|
27
|
-
declare function parseOdfViewBox(value: string): OdfViewBox | undefined;
|
|
28
|
-
declare function parseOdfPointsList(value: string): OdfRawPoint[];
|
|
29
|
-
declare function rawSubpathFromPoints(points: readonly OdfRawPoint[], closed: boolean): OdfRawSubpath | undefined;
|
|
30
|
-
declare function parseOdfPathData(d: string): OdfRawSubpath[];
|
|
31
|
-
declare function scaleOdfRawPoint(point: OdfRawPoint, viewBox: OdfViewBox, frame: Box): ContentPathPoint;
|
|
32
|
-
declare function buildOdfSubpaths(rawSubpaths: readonly OdfRawSubpath[], viewBox: OdfViewBox, frame: Box): ContentSubpath[];
|
|
33
|
-
//#endregion
|
|
1
|
+
import { a as buildOdfSubpaths, c as parseOdfViewBox, i as OdfViewBox, l as rawSubpathFromPoints, n as OdfRawSegment, o as parseOdfPathData, r as OdfRawSubpath, s as parseOdfPointsList, t as OdfRawPoint, u as scaleOdfRawPoint } from "../../path-DE7wkIcz.js";
|
|
34
2
|
export { OdfRawPoint, OdfRawSegment, OdfRawSubpath, OdfViewBox, buildOdfSubpaths, parseOdfPathData, parseOdfPointsList, parseOdfViewBox, rawSubpathFromPoints, scaleOdfRawPoint };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as AlignmentSchema, t as Alignment } from "../../style-CwuPFm34.cjs";
|
|
2
2
|
export { type Alignment, AlignmentSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as AlignmentSchema, t as Alignment } from "../../style-Jzwx2Q-Y.js";
|
|
2
2
|
export { type Alignment, AlignmentSchema };
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
import {
|
|
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
|
|
1
|
+
import { n as readCellStyleDecoration, r as readOdfTable, t as CellStyleDecoration } from "../../table-sweV3r9n.cjs";
|
|
14
2
|
export { CellStyleDecoration, readCellStyleDecoration, readOdfTable };
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
import {
|
|
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
|
|
1
|
+
import { n as readCellStyleDecoration, r as readOdfTable, t as CellStyleDecoration } from "../../table-D81TZyBn.js";
|
|
14
2
|
export { CellStyleDecoration, readCellStyleDecoration, readOdfTable };
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
import {
|
|
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
|
|
1
|
+
import { i as sumOdfNodeLength, n as getOdfSpaceCount, r as measureOdfNodeLength, t as decodeOdfText } from "../../text-Cal14ZaX.cjs";
|
|
8
2
|
export { decodeOdfText, getOdfSpaceCount, measureOdfNodeLength, sumOdfNodeLength };
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
import {
|
|
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
|
|
1
|
+
import { i as sumOdfNodeLength, n as getOdfSpaceCount, r as measureOdfNodeLength, t as decodeOdfText } from "../../text-CkNojpZm.js";
|
|
8
2
|
export { decodeOdfText, getOdfSpaceCount, measureOdfNodeLength, sumOdfNodeLength };
|
|
@@ -1,26 +1,2 @@
|
|
|
1
|
-
import {
|
|
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
|
|
1
|
+
import { a as composeOdfGroupTransform, c as resolveOdfShapeGeometry, i as applyOdfTransform, n as OdfShapeGeometry, o as netRotationDeg, r as OdfTransformFunction, s as parseOdfTransform, t as OdfPoint } from "../../transform-DKEjydnm.cjs";
|
|
26
2
|
export { OdfPoint, OdfShapeGeometry, OdfTransformFunction, applyOdfTransform, composeOdfGroupTransform, netRotationDeg, parseOdfTransform, resolveOdfShapeGeometry };
|
|
@@ -1,26 +1,2 @@
|
|
|
1
|
-
import {
|
|
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
|
|
1
|
+
import { a as composeOdfGroupTransform, c as resolveOdfShapeGeometry, i as applyOdfTransform, n as OdfShapeGeometry, o as netRotationDeg, r as OdfTransformFunction, s as parseOdfTransform, t as OdfPoint } from "../../transform-C7GrZZdR.js";
|
|
26
2
|
export { OdfPoint, OdfShapeGeometry, OdfTransformFunction, applyOdfTransform, composeOdfGroupTransform, netRotationDeg, parseOdfTransform, resolveOdfShapeGeometry };
|
package/dist/util/base64.d.cts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare function bytesToBase64(bytes: Uint8Array<ArrayBuffer>): string;
|
|
3
|
-
declare function base64ToBytes(b64: string): Uint8Array<ArrayBuffer>;
|
|
4
|
-
//#endregion
|
|
1
|
+
import { n as bytesToBase64, t as base64ToBytes } from "../base64--HuymRl_.cjs";
|
|
5
2
|
export { base64ToBytes, bytesToBase64 };
|
package/dist/util/base64.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare function bytesToBase64(bytes: Uint8Array<ArrayBuffer>): string;
|
|
3
|
-
declare function base64ToBytes(b64: string): Uint8Array<ArrayBuffer>;
|
|
4
|
-
//#endregion
|
|
1
|
+
import { n as bytesToBase64, t as base64ToBytes } from "../base64--HuymRl_.js";
|
|
5
2
|
export { base64ToBytes, bytesToBase64 };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Package } from "./model/package.js";
|
|
2
|
+
//#region src/package-io/write.d.ts
|
|
3
|
+
declare const MIMETYPE_PART = "mimetype";
|
|
4
|
+
declare const MANIFEST_PART = "META-INF/manifest.xml";
|
|
5
|
+
declare function serializePackage(pkg: Package): Uint8Array<ArrayBuffer>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { MIMETYPE_PART as n, serializePackage as r, MANIFEST_PART as t };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Package } from "./model/package.cjs";
|
|
2
|
+
//#region src/package-io/write.d.ts
|
|
3
|
+
declare const MIMETYPE_PART = "mimetype";
|
|
4
|
+
declare const MANIFEST_PART = "META-INF/manifest.xml";
|
|
5
|
+
declare function serializePackage(pkg: Package): Uint8Array<ArrayBuffer>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { MIMETYPE_PART as n, serializePackage as r, MANIFEST_PART as t };
|
package/dist/xml/build.d.cts
CHANGED
package/dist/xml/build.d.ts
CHANGED
package/dist/xml/entities.d.cts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare function encodeXmlText(value: string): string;
|
|
3
|
-
declare function decodeXmlText(value: string): string;
|
|
4
|
-
//#endregion
|
|
1
|
+
import { n as encodeXmlText, t as decodeXmlText } from "../entities-BZlXvHqu.cjs";
|
|
5
2
|
export { decodeXmlText, encodeXmlText };
|
package/dist/xml/entities.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare function encodeXmlText(value: string): string;
|
|
3
|
-
declare function decodeXmlText(value: string): string;
|
|
4
|
-
//#endregion
|
|
1
|
+
import { n as encodeXmlText, t as decodeXmlText } from "../entities-BZlXvHqu.js";
|
|
5
2
|
export { decodeXmlText, encodeXmlText };
|
package/dist/xml/fragment.d.cts
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region src/xml/fragment.d.ts
|
|
3
|
-
declare function el(tag: string, attrs?: Record<string, string>, children?: XmlNode[]): XmlElement;
|
|
4
|
-
declare function txt(value: string): XmlText;
|
|
5
|
-
//#endregion
|
|
1
|
+
import { n as txt, t as el } from "../fragment-B1og_8uA.cjs";
|
|
6
2
|
export { el, txt };
|
package/dist/xml/fragment.d.ts
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region src/xml/fragment.d.ts
|
|
3
|
-
declare function el(tag: string, attrs?: Record<string, string>, children?: XmlNode[]): XmlElement;
|
|
4
|
-
declare function txt(value: string): XmlText;
|
|
5
|
-
//#endregion
|
|
1
|
+
import { n as txt, t as el } from "../fragment-B1ZV7T5Z.js";
|
|
6
2
|
export { el, txt };
|
package/dist/xml/parse.d.cts
CHANGED
package/dist/xml/parse.d.ts
CHANGED
package/dist/xml/query.d.cts
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region src/xml/query.d.ts
|
|
3
|
-
declare function rootElement(nodes: readonly XmlNode[]): XmlElement | undefined;
|
|
4
|
-
declare function findChildElement(nodes: readonly XmlNode[], tag: string): XmlElement | undefined;
|
|
5
|
-
declare function childrenWithTag(element: XmlElement, tag: string): XmlElement[];
|
|
6
|
-
declare function elementsWithTag(nodes: readonly XmlNode[], tag: string): XmlElement[];
|
|
7
|
-
declare function attrValue(element: XmlElement, name: string): string | undefined;
|
|
8
|
-
//#endregion
|
|
1
|
+
import { a as rootElement, i as findChildElement, n as childrenWithTag, r as elementsWithTag, t as attrValue } from "../query-P-Y5DK0-.cjs";
|
|
9
2
|
export { attrValue, childrenWithTag, elementsWithTag, findChildElement, rootElement };
|
package/dist/xml/query.d.ts
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region src/xml/query.d.ts
|
|
3
|
-
declare function rootElement(nodes: readonly XmlNode[]): XmlElement | undefined;
|
|
4
|
-
declare function findChildElement(nodes: readonly XmlNode[], tag: string): XmlElement | undefined;
|
|
5
|
-
declare function childrenWithTag(element: XmlElement, tag: string): XmlElement[];
|
|
6
|
-
declare function elementsWithTag(nodes: readonly XmlNode[], tag: string): XmlElement[];
|
|
7
|
-
declare function attrValue(element: XmlElement, name: string): string | undefined;
|
|
8
|
-
//#endregion
|
|
1
|
+
import { a as rootElement, i as findChildElement, n as childrenWithTag, r as elementsWithTag, t as attrValue } from "../query-sECN-7vU.js";
|
|
9
2
|
export { attrValue, childrenWithTag, elementsWithTag, findChildElement, rootElement };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/zip.d.ts
|
|
2
|
+
interface ZipEntry {
|
|
3
|
+
readonly bytes: Uint8Array<ArrayBuffer>;
|
|
4
|
+
readonly stored?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare function unzipPackage(bytes: Uint8Array<ArrayBuffer>): Record<string, Uint8Array<ArrayBuffer>>;
|
|
7
|
+
declare function zipPackage(entries: readonly (readonly [string, ZipEntry])[]): Uint8Array<ArrayBuffer>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { unzipPackage as n, zipPackage as r, ZipEntry as t };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/zip.d.ts
|
|
2
|
+
interface ZipEntry {
|
|
3
|
+
readonly bytes: Uint8Array<ArrayBuffer>;
|
|
4
|
+
readonly stored?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare function unzipPackage(bytes: Uint8Array<ArrayBuffer>): Record<string, Uint8Array<ArrayBuffer>>;
|
|
7
|
+
declare function zipPackage(entries: readonly (readonly [string, ZipEntry])[]): Uint8Array<ArrayBuffer>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { unzipPackage as n, zipPackage as r, ZipEntry as t };
|
package/dist/zip.d.cts
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
interface ZipEntry {
|
|
3
|
-
readonly bytes: Uint8Array<ArrayBuffer>;
|
|
4
|
-
readonly stored?: boolean;
|
|
5
|
-
}
|
|
6
|
-
declare function unzipPackage(bytes: Uint8Array<ArrayBuffer>): Record<string, Uint8Array<ArrayBuffer>>;
|
|
7
|
-
declare function zipPackage(entries: readonly (readonly [string, ZipEntry])[]): Uint8Array<ArrayBuffer>;
|
|
8
|
-
//#endregion
|
|
1
|
+
import { n as unzipPackage, r as zipPackage, t as ZipEntry } from "./zip-ie17sOo5.cjs";
|
|
9
2
|
export { ZipEntry, unzipPackage, zipPackage };
|
package/dist/zip.d.ts
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
interface ZipEntry {
|
|
3
|
-
readonly bytes: Uint8Array<ArrayBuffer>;
|
|
4
|
-
readonly stored?: boolean;
|
|
5
|
-
}
|
|
6
|
-
declare function unzipPackage(bytes: Uint8Array<ArrayBuffer>): Record<string, Uint8Array<ArrayBuffer>>;
|
|
7
|
-
declare function zipPackage(entries: readonly (readonly [string, ZipEntry])[]): Uint8Array<ArrayBuffer>;
|
|
8
|
-
//#endregion
|
|
1
|
+
import { n as unzipPackage, r as zipPackage, t as ZipEntry } from "./zip-ie17sOo5.js";
|
|
9
2
|
export { ZipEntry, unzipPackage, zipPackage };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "odf.js",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"description": "Type-safe, lossless round-trip conversion between OpenDocument Format packages (odt, ods, odp) and JSON, hand-written and dependency-minimal, built on Zod 4 codecs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"license": "MIT",
|
|
78
78
|
"packageManager": "pnpm@11.6.0",
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"document-schema.js": "^2.
|
|
80
|
+
"document-schema.js": "^2.6.0",
|
|
81
81
|
"fast-xml-parser": "^5.10.1",
|
|
82
82
|
"fflate": "^0.8.3",
|
|
83
83
|
"zod": "^4.4.3"
|