odf.js 6.3.0 → 6.4.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 +172 -18
- package/dist/{codec-BnzBd5_I.d.cts → codec-CFdlbFLJ.d.cts} +16 -10
- package/dist/{codec-Dg_HWuH1.d.ts → codec-DTAgph2r.d.ts} +16 -10
- package/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/{embedded-BONPxvS3.js → embedded-BnavfkP-.js} +3 -3
- package/dist/{embedded-wrtHCJ68.cjs → embedded-Bxyss_ck.cjs} +14 -2
- package/dist/image/sniff.cjs +26 -0
- package/dist/image/sniff.d.cts +1 -1
- package/dist/image/sniff.d.ts +1 -1
- package/dist/image/sniff.js +26 -0
- package/dist/index.cjs +34 -1
- package/dist/index.d.cts +20 -14
- package/dist/index.d.ts +20 -14
- package/dist/index.js +12 -6
- package/dist/{list-vhXd0Jf6.d.ts → list-7FO0SDqZ.d.ts} +14 -1
- package/dist/{list-Bttwr1mk.d.cts → list-BorrTJBY.d.cts} +14 -1
- package/dist/manifest.cjs +2 -0
- package/dist/manifest.js +2 -0
- package/dist/{ns-C14w-Zhf.d.cts → ns-DrleaIZQ.d.cts} +3 -1
- package/dist/{ns-CTyKJZeF.d.ts → ns-E0TfX9tZ.d.ts} +3 -1
- package/dist/ooo1/ns.cjs +9 -0
- package/dist/ooo1/ns.d.cts +2 -2
- package/dist/ooo1/ns.d.ts +2 -2
- package/dist/ooo1/ns.js +8 -1
- package/dist/ooo1/properties.cjs +30 -0
- package/dist/ooo1/properties.d.cts +6 -2
- package/dist/ooo1/properties.d.ts +6 -2
- package/dist/ooo1/properties.js +30 -1
- package/dist/ooo1/read.cjs +1 -1
- package/dist/ooo1/read.d.cts +1 -1
- package/dist/ooo1/read.d.ts +1 -1
- package/dist/ooo1/read.js +1 -1
- package/dist/ooo1/transform.cjs +290 -0
- package/dist/ooo1/transform.d.cts +2 -2
- package/dist/ooo1/transform.d.ts +2 -2
- package/dist/ooo1/transform.js +293 -4
- package/dist/ooo1/write.cjs +40 -0
- package/dist/ooo1/write.d.cts +2 -0
- package/dist/ooo1/write.d.ts +2 -0
- package/dist/ooo1/write.js +32 -0
- package/dist/package-io/scaffold.cjs +2 -1
- package/dist/package-io/scaffold.js +2 -1
- package/dist/{paragraph-BdwsQisB.d.cts → paragraph-Bf6Iq5wC.d.cts} +1 -1
- package/dist/{paragraph-BoVy1LrN.d.ts → paragraph-DtC86tft.d.ts} +1 -1
- package/dist/{path-CK0dIPgx.d.cts → path-8HQS-J7y.d.cts} +3 -1
- package/dist/{path-CK0dIPgx.d.ts → path-8HQS-J7y.d.ts} +3 -1
- package/dist/{read-Bo1GBjSE.d.ts → read-A3CJkqVM.d.ts} +3 -1
- package/dist/{read-RFqq4ckj.d.cts → read-BgnLFuSi.d.cts} +1 -1
- package/dist/{read-3yy5EFV_.d.ts → read-CqaZ01kU.d.ts} +1 -1
- package/dist/{read-tpfiT_n4.d.cts → read-fphkvCpR.d.cts} +3 -1
- package/dist/{shapes-DUzrrf7b.d.ts → shapes-B6Ms7ibr.d.ts} +1 -1
- package/dist/{shapes-BQhXAk0D.d.cts → shapes-CbBc9t0y.d.cts} +1 -1
- package/dist/{sniff-DGOBHA0O.d.cts → sniff-eR8lObzF.d.cts} +1 -1
- package/dist/{sniff-DGOBHA0O.d.ts → sniff-eR8lObzF.d.ts} +1 -1
- package/dist/{table-ByhqRnSG.d.cts → table-CECMtPxZ.d.cts} +6 -2
- package/dist/{table-DElqGcT0.d.ts → table-XuniPr2I.d.ts} +6 -2
- package/dist/{transform-SDysw9wx.d.cts → transform-DFCPKX7e.d.cts} +2 -1
- package/dist/{transform-DRr76JEu.d.ts → transform-DPliWQuD.d.ts} +2 -1
- package/dist/typed/draw/embedded.cjs +1 -1
- package/dist/typed/draw/embedded.js +1 -1
- package/dist/typed/draw/shapes.cjs +7 -2
- package/dist/typed/draw/shapes.d.cts +1 -1
- package/dist/typed/draw/shapes.d.ts +1 -1
- package/dist/typed/draw/shapes.js +7 -2
- package/dist/typed/draw/write-shapes.cjs +211 -0
- package/dist/typed/draw/write-shapes.d.cts +2 -0
- package/dist/typed/draw/write-shapes.d.ts +2 -0
- package/dist/typed/draw/write-shapes.js +204 -0
- package/dist/typed/draw/write-vectors.cjs +132 -0
- package/dist/typed/draw/write-vectors.d.cts +2 -0
- package/dist/typed/draw/write-vectors.d.ts +2 -0
- package/dist/typed/draw/write-vectors.js +129 -0
- package/dist/typed/odb/form.cjs +1 -1
- package/dist/typed/odb/form.js +1 -1
- package/dist/typed/odg/write.cjs +80 -0
- package/dist/typed/odg/write.d.cts +2 -0
- package/dist/typed/odg/write.d.ts +2 -0
- package/dist/typed/odg/write.js +77 -0
- package/dist/typed/odp/write.cjs +108 -0
- package/dist/typed/odp/write.d.cts +2 -0
- package/dist/typed/odp/write.d.ts +2 -0
- package/dist/typed/odp/write.js +105 -0
- package/dist/typed/ods/read.cjs +3 -1
- package/dist/typed/ods/read.d.cts +2 -2
- package/dist/typed/ods/read.d.ts +2 -2
- package/dist/typed/ods/read.js +2 -2
- package/dist/typed/ods/write.cjs +579 -0
- package/dist/typed/ods/write.d.cts +2 -0
- package/dist/typed/ods/write.d.ts +2 -0
- package/dist/typed/ods/write.js +576 -0
- package/dist/typed/odt/read.cjs +1 -1
- package/dist/typed/odt/read.js +1 -1
- package/dist/typed/odt/write.cjs +11 -141
- package/dist/typed/odt/write.d.cts +1 -1
- package/dist/typed/odt/write.d.ts +1 -1
- package/dist/typed/odt/write.js +10 -140
- package/dist/typed/shared/canonicalise.cjs +126 -0
- package/dist/typed/shared/canonicalise.d.cts +10 -0
- package/dist/typed/shared/canonicalise.d.ts +10 -0
- package/dist/typed/shared/canonicalise.js +120 -0
- package/dist/typed/shared/image.cjs +12 -0
- package/dist/typed/shared/image.d.cts +5 -0
- package/dist/typed/shared/image.d.ts +5 -0
- package/dist/typed/shared/image.js +11 -0
- package/dist/typed/shared/list.cjs +32 -0
- package/dist/typed/shared/list.d.cts +2 -2
- package/dist/typed/shared/list.d.ts +2 -2
- package/dist/typed/shared/list.js +28 -1
- package/dist/typed/shared/paragraph.d.cts +1 -1
- package/dist/typed/shared/paragraph.d.ts +1 -1
- package/dist/typed/shared/path.cjs +19 -0
- package/dist/typed/shared/path.d.cts +2 -2
- package/dist/typed/shared/path.d.ts +2 -2
- package/dist/typed/shared/path.js +18 -1
- package/dist/typed/shared/table.cjs +3 -0
- package/dist/typed/shared/table.d.cts +2 -2
- package/dist/typed/shared/table.d.ts +2 -2
- package/dist/typed/shared/table.js +1 -1
- package/dist/typed/shared/units.cjs +16 -1
- package/dist/typed/shared/units.d.cts +2 -2
- package/dist/typed/shared/units.d.ts +2 -2
- package/dist/typed/shared/units.js +16 -2
- package/dist/{units-BQSNkTQZ.d.cts → units-DdyaQolR.d.cts} +2 -1
- package/dist/{units-BQSNkTQZ.d.ts → units-DdyaQolR.d.ts} +2 -1
- package/dist/write-4kMi-asu.d.ts +14 -0
- package/dist/write-BZXpT8F6.d.cts +17 -0
- package/dist/write-BhG3t3fJ.d.cts +14 -0
- package/dist/write-BuLQmwLD.d.cts +14 -0
- package/dist/write-C2c4xBXs.d.cts +14 -0
- package/dist/{write-7Uu_wlkL.d.cts → write-CPATqG4v.d.cts} +1 -0
- package/dist/write-CfTE2jY8.d.ts +14 -0
- package/dist/write-DttX1rTC.d.ts +14 -0
- package/dist/{write-DGcI9W7Z.d.ts → write-JERychL3.d.ts} +1 -0
- package/dist/write-SKnCTU4C.d.ts +17 -0
- package/dist/write-shapes-Co7BrmMZ.d.ts +36 -0
- package/dist/write-shapes-D4piGKf4.d.cts +36 -0
- package/dist/write-vectors-B-RVHAKI.d.cts +11 -0
- package/dist/write-vectors-CYjZoVBW.d.ts +11 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -35,19 +35,25 @@ const require_typed_shared_transform = require("./typed/shared/transform.cjs");
|
|
|
35
35
|
const require_typed_shared_masterpage = require("./typed/shared/masterpage.cjs");
|
|
36
36
|
const require_typed_shared_path = require("./typed/shared/path.cjs");
|
|
37
37
|
const require_typed_draw_shapes = require("./typed/draw/shapes.cjs");
|
|
38
|
+
const require_typed_draw_write_shapes = require("./typed/draw/write-shapes.cjs");
|
|
39
|
+
const require_typed_draw_write_vectors = require("./typed/draw/write-vectors.cjs");
|
|
38
40
|
const require_typed_formula_read = require("./typed/formula/read.cjs");
|
|
39
41
|
const require_typed_odb_subdocument = require("./typed/odb/subdocument.cjs");
|
|
40
42
|
const require_typed_odg_read = require("./typed/odg/read.cjs");
|
|
41
43
|
const require_typed_odp_read = require("./typed/odp/read.cjs");
|
|
42
|
-
const require_embedded = require("./embedded-
|
|
44
|
+
const require_embedded = require("./embedded-Bxyss_ck.cjs");
|
|
43
45
|
const require_typed_shared_forms = require("./typed/shared/forms.cjs");
|
|
46
|
+
const require_typed_odp_write = require("./typed/odp/write.cjs");
|
|
44
47
|
const require_typed_odt_write = require("./typed/odt/write.cjs");
|
|
48
|
+
const require_typed_odg_write = require("./typed/odg/write.cjs");
|
|
49
|
+
const require_typed_ods_write = require("./typed/ods/write.cjs");
|
|
45
50
|
const require_typed_odm_read = require("./typed/odm/read.cjs");
|
|
46
51
|
const require_typed_odb_read = require("./typed/odb/read.cjs");
|
|
47
52
|
const require_typed_odb_form = require("./typed/odb/form.cjs");
|
|
48
53
|
const require_ooo1_ns = require("./ooo1/ns.cjs");
|
|
49
54
|
const require_ooo1_transform = require("./ooo1/transform.cjs");
|
|
50
55
|
const require_ooo1_read = require("./ooo1/read.cjs");
|
|
56
|
+
const require_ooo1_write = require("./ooo1/write.cjs");
|
|
51
57
|
const require_typed_odb_report = require("./typed/odb/report.cjs");
|
|
52
58
|
let document_schema_js = require("document-schema.js");
|
|
53
59
|
Object.defineProperty(exports, "AlignmentSchema", {
|
|
@@ -113,9 +119,13 @@ exports.findChildElement = require_xml_query.findChildElement;
|
|
|
113
119
|
exports.findStyleElement = require_typed_shared_cascade.findStyleElement;
|
|
114
120
|
exports.formatOdfColor = require_typed_shared_color.formatOdfColor;
|
|
115
121
|
exports.formatOdfLength = require_typed_shared_units.formatOdfLength;
|
|
122
|
+
exports.formatOdfNumber = require_typed_shared_units.formatOdfNumber;
|
|
123
|
+
exports.formatOdfPathData = require_typed_shared_path.formatOdfPathData;
|
|
124
|
+
exports.formatOdfViewBox = require_typed_shared_path.formatOdfViewBox;
|
|
116
125
|
exports.formatPercentageMultiplier = require_styles_properties.formatPercentageMultiplier;
|
|
117
126
|
exports.formatPt = require_styles_properties.formatPt;
|
|
118
127
|
exports.getOdfSpaceCount = require_typed_shared_text.getOdfSpaceCount;
|
|
128
|
+
exports.isOoo1NamespacePrefix = require_ooo1_ns.isOoo1NamespacePrefix;
|
|
119
129
|
exports.isOoo1Package = require_ooo1_ns.isOoo1Package;
|
|
120
130
|
exports.isStyleFamily = require_styles_registry.isStyleFamily;
|
|
121
131
|
exports.isXmlNode = require_model_node.isXmlNode;
|
|
@@ -123,12 +133,16 @@ exports.measureOdfNodeLength = require_typed_shared_text.measureOdfNodeLength;
|
|
|
123
133
|
exports.mediaTypeForExtension = require_media_type.mediaTypeForExtension;
|
|
124
134
|
exports.mintOdfListNumId = require_typed_shared_list.mintOdfListNumId;
|
|
125
135
|
exports.netRotationDeg = require_typed_shared_transform.netRotationDeg;
|
|
136
|
+
exports.normaliseOdgContent = require_typed_odg_write.normaliseOdgContent;
|
|
137
|
+
exports.normaliseOdpContent = require_typed_odp_write.normaliseOdpContent;
|
|
138
|
+
exports.normaliseOdsContent = require_typed_ods_write.normaliseOdsContent;
|
|
126
139
|
exports.normaliseOdtContent = require_typed_odt_write.normaliseOdtContent;
|
|
127
140
|
exports.odfMediaTypeForOoo1MediaType = require_ooo1_ns.odfMediaTypeForOoo1MediaType;
|
|
128
141
|
exports.odfParagraphProperties = require_typed_shared_paragraph.odfParagraphProperties;
|
|
129
142
|
exports.odfPartContainer = require_package_io_scaffold.odfPartContainer;
|
|
130
143
|
exports.odfRunProperties = require_typed_shared_paragraph.odfRunProperties;
|
|
131
144
|
exports.ooo1MediaTypeForExtension = require_ooo1_ns.ooo1MediaTypeForExtension;
|
|
145
|
+
exports.ooo1MediaTypeForOdfMediaType = require_ooo1_ns.ooo1MediaTypeForOdfMediaType;
|
|
132
146
|
exports.packageCodec = require_codec.packageCodec;
|
|
133
147
|
exports.paragraphPropertiesToAttributes = require_styles_properties.paragraphPropertiesToAttributes;
|
|
134
148
|
exports.parseBox = require_typed_shared_geometry.parseBox;
|
|
@@ -203,18 +217,37 @@ exports.sumOdfNodeLength = require_typed_shared_text.sumOdfNodeLength;
|
|
|
203
217
|
exports.syncManifest = require_manifest.syncManifest;
|
|
204
218
|
exports.textPropertiesToAttributes = require_styles_properties.textPropertiesToAttributes;
|
|
205
219
|
exports.transformOoo1Package = require_ooo1_transform.transformOoo1Package;
|
|
220
|
+
exports.transformToOoo1Package = require_ooo1_transform.transformToOoo1Package;
|
|
206
221
|
exports.txt = require_xml_fragment.txt;
|
|
207
222
|
exports.unzipPackage = require_zip.unzipPackage;
|
|
208
223
|
exports.validateManifest = require_manifest.validateManifest;
|
|
209
224
|
exports.walkDrawShapes = require_typed_draw_shapes.walkDrawShapes;
|
|
225
|
+
exports.writeDrawFrame = require_typed_draw_write_shapes.writeDrawFrame;
|
|
226
|
+
exports.writeDrawShapes = require_typed_draw_write_shapes.writeDrawShapes;
|
|
227
|
+
exports.writeDrawVector = require_typed_draw_write_vectors.writeDrawVector;
|
|
228
|
+
exports.writeDrawVectors = require_typed_draw_write_vectors.writeDrawVectors;
|
|
210
229
|
exports.writeManifest = require_manifest.writeManifest;
|
|
211
230
|
exports.writeMimetype = require_mimetype.writeMimetype;
|
|
212
231
|
exports.writeOdfList = require_typed_shared_list.writeOdfList;
|
|
213
232
|
exports.writeOdfMetadata = require_typed_shared_metadata.writeOdfMetadata;
|
|
214
233
|
exports.writeOdfParagraph = require_typed_shared_paragraph.writeOdfParagraph;
|
|
215
234
|
exports.writeOdfTable = require_typed_shared_table.writeOdfTable;
|
|
235
|
+
exports.writeOdg = require_typed_odg_write.writeOdg;
|
|
236
|
+
exports.writeOdgContent = require_typed_odg_write.writeOdgContent;
|
|
237
|
+
exports.writeOdp = require_typed_odp_write.writeOdp;
|
|
238
|
+
exports.writeOdpContent = require_typed_odp_write.writeOdpContent;
|
|
239
|
+
exports.writeOds = require_typed_ods_write.writeOds;
|
|
240
|
+
exports.writeOdsContent = require_typed_ods_write.writeOdsContent;
|
|
216
241
|
exports.writeOdt = require_typed_odt_write.writeOdt;
|
|
217
242
|
exports.writeOdtContent = require_typed_odt_write.writeOdtContent;
|
|
243
|
+
exports.writeSxc = require_ooo1_write.writeSxc;
|
|
244
|
+
exports.writeSxcContent = require_ooo1_write.writeSxcContent;
|
|
245
|
+
exports.writeSxd = require_ooo1_write.writeSxd;
|
|
246
|
+
exports.writeSxdContent = require_ooo1_write.writeSxdContent;
|
|
247
|
+
exports.writeSxi = require_ooo1_write.writeSxi;
|
|
248
|
+
exports.writeSxiContent = require_ooo1_write.writeSxiContent;
|
|
249
|
+
exports.writeSxw = require_ooo1_write.writeSxw;
|
|
250
|
+
exports.writeSxwContent = require_ooo1_write.writeSxwContent;
|
|
218
251
|
exports.xmlCodec = require_codec.xmlCodec;
|
|
219
252
|
exports.xmlnsAttributes = require_ns.xmlnsAttributes;
|
|
220
253
|
exports.zipPackage = require_zip.zipPackage;
|
package/dist/index.d.cts
CHANGED
|
@@ -8,7 +8,7 @@ import { n as unzipPackage, r as zipPackage, t as ZipEntry } from "./zip-ie17sOo
|
|
|
8
8
|
import { n as bytesToBase64, t as base64ToBytes } from "./base64--HuymRl_.cjs";
|
|
9
9
|
import { n as OdfNamespacePrefix, r as xmlnsAttributes, t as ODF_NAMESPACES } from "./ns-Cihto3Fx.cjs";
|
|
10
10
|
import { n as OdfExtension, r as mediaTypeForExtension, t as ODF_MEDIA_TYPES } from "./media-type-BOLkcHkJ.cjs";
|
|
11
|
-
import { n as sniffImageFormat, t as ImageFormat } from "./sniff-
|
|
11
|
+
import { n as sniffImageFormat, t as ImageFormat } from "./sniff-eR8lObzF.cjs";
|
|
12
12
|
import { n as writeMimetype, t as readMimetype } from "./mimetype-1BaQzNiS.cjs";
|
|
13
13
|
import { n as txt, t as el } from "./fragment-9dNg-m46.cjs";
|
|
14
14
|
import { n as encodeXmlText, t as decodeXmlText } from "./entities-BZlXvHqu.cjs";
|
|
@@ -18,36 +18,42 @@ import { n as canonicalPropertiesString, t as buildStylePropertyElements } from
|
|
|
18
18
|
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-PoQIRgbY.cjs";
|
|
19
19
|
import { t as ensureSpan } from "./span-DSM1SnHI.cjs";
|
|
20
20
|
import { a as rootElement, i as findChildElement, n as childrenWithTag, r as elementsWithTag, t as attrValue } from "./query-C69wTkqg.cjs";
|
|
21
|
-
import { n as formatOdfLength, r as
|
|
21
|
+
import { i as parseOdfLength, n as formatOdfLength, r as formatOdfNumber, t as LengthUnit } from "./units-DdyaQolR.cjs";
|
|
22
22
|
import { a as parseCellReference, i as columnLettersToIndex, n as cellReference, r as columnIndexToLetters, t as TableCursor } from "./a1-5e9veCyu.cjs";
|
|
23
23
|
import { n as parseOdfColor, t as formatOdfColor } from "./color-CqXjt_to.cjs";
|
|
24
24
|
import { i as parsePageSize, n as parseLinePoints, r as parseMargins, t as parseBox } from "./geometry-B7FZHSyD.cjs";
|
|
25
25
|
import { a as decodeOdfText, c as measureOdfNodeLength, i as buildOdfInlineNodes, l as segmentOdfText, n as OdfTextSegment, o as getOdfSpaceCount, r as OdfTextSegmentKind, u as sumOdfNodeLength } from "./text-pmlTqzgi.cjs";
|
|
26
26
|
import { a as resolveStyle, i as findStyleElement, n as StyleCascadeResult, o as resolveStyleElementChain, r as StyleElementChainResult, t as CascadeDiagnostic } from "./cascade-BpMwrjkB.cjs";
|
|
27
27
|
import { i as writeOdfMetadata, n as buildOdfMetaNodes, r as readOdfMetadata, t as META_PART } from "./metadata-CYXgXL_h.cjs";
|
|
28
|
-
import { a as
|
|
29
|
-
import { c as segmentOdfParagraphRuns, i as odfRunProperties, l as writeOdfParagraph, n as OdfParagraphWriteOptions, o as readOdfParagraph, r as odfParagraphProperties } from "./paragraph-
|
|
30
|
-
import {
|
|
28
|
+
import { a as OdfListParagraphReader, f as readOdfListParagraphs, i as OdfListIdState, m as writeOdfList, o as buildOdfListStyle, p as resolveOdfListKind, r as OdfListEntry, u as mintOdfListNumId } from "./list-BorrTJBY.cjs";
|
|
29
|
+
import { c as segmentOdfParagraphRuns, i as odfRunProperties, l as writeOdfParagraph, n as OdfParagraphWriteOptions, o as readOdfParagraph, r as odfParagraphProperties } from "./paragraph-Bf6Iq5wC.cjs";
|
|
30
|
+
import { c as writeOdfTable, s as readOdfTable } from "./table-CECMtPxZ.cjs";
|
|
31
31
|
import { n as createOdfPackage, r as odfPartContainer, t as DEFAULT_ODF_VERSION } from "./scaffold-44EIMGll.cjs";
|
|
32
32
|
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-M1gbHp4j.cjs";
|
|
33
33
|
import { n as resolveDrawPageSize, r as resolvePageLayoutProperties } from "./masterpage-KqZshNGZ.cjs";
|
|
34
|
-
import { a as buildOdfSubpaths, c as
|
|
35
|
-
import { a as walkDrawShapes, i as readDrawPageContent, n as readDrawFrame, r as readDrawImageBlock, t as DrawPageContent } from "./shapes-
|
|
34
|
+
import { a as buildOdfSubpaths, c as parseOdfPathData, d as rawSubpathFromPoints, f as scaleOdfRawPoint, i as OdfViewBox, l as parseOdfPointsList, n as OdfRawSegment, o as formatOdfPathData, r as OdfRawSubpath, s as formatOdfViewBox, t as OdfRawPoint, u as parseOdfViewBox } from "./path-8HQS-J7y.cjs";
|
|
35
|
+
import { a as walkDrawShapes, i as readDrawPageContent, n as readDrawFrame, r as readDrawImageBlock, t as DrawPageContent } from "./shapes-CbBc9t0y.cjs";
|
|
36
|
+
import { c as writeDrawFrame, l as writeDrawShapes } from "./write-shapes-D4piGKf4.cjs";
|
|
37
|
+
import { n as writeDrawVector, r as writeDrawVectors } from "./write-vectors-B-RVHAKI.cjs";
|
|
36
38
|
import { i as readDrawObjectReference, r as EmbeddedDrawObject, t as EmbeddedDocumentKind } from "./embedded-tlaHMady.cjs";
|
|
37
39
|
import { n as readOdp, r as readOdpContent, t as OdpDocument } from "./read-DHOQqjOZ.cjs";
|
|
40
|
+
import { i as writeOdpContent, n as normaliseOdpContent, r as writeOdp, t as OdpWriteOptions } from "./write-BhG3t3fJ.cjs";
|
|
38
41
|
import { a as readOdt, i as OdtReadOptions, n as OdtHeaderFooterPart, o as readOdtContent, r as OdtHeaderFooterVariant, t as OdtDocument } from "./read-Dy5p1OMb.cjs";
|
|
39
|
-
import { i as writeOdtContent, n as normaliseOdtContent, r as writeOdt, t as OdtWriteOptions } from "./write-
|
|
42
|
+
import { i as writeOdtContent, n as normaliseOdtContent, r as writeOdt, t as OdtWriteOptions } from "./write-CPATqG4v.cjs";
|
|
40
43
|
import { n as readOdg, r as readOdgContent, t as OdgDocument } from "./read-DSyz0YLj.cjs";
|
|
41
|
-
import { n as
|
|
44
|
+
import { i as writeOdgContent, n as normaliseOdgContent, r as writeOdg, t as OdgWriteOptions } from "./write-C2c4xBXs.cjs";
|
|
45
|
+
import { a as readOdsContent, i as readOds, r as OdsDocument } from "./read-fphkvCpR.cjs";
|
|
46
|
+
import { i as writeOdsContent, n as normaliseOdsContent, r as writeOds, t as OdsWriteOptions } from "./write-BuLQmwLD.cjs";
|
|
42
47
|
import { a as readOdfFormulaMathMl, i as readOdfFormulaContent, r as readOdfFormula, t as OdfFormulaDocument } from "./read-j9o0IoMq.cjs";
|
|
43
48
|
import { n as OdmSection, r as readOdm, t as OdmDocument } from "./read-jVX8DHs3.cjs";
|
|
44
49
|
import { a as readOdbInventory, i as OdbQueryInfo, n as OdbConnectionInfo, o as resolveOdbComponent, r as OdbInventory, t as OdbComponentInfo } from "./read-D3V_MVAL.cjs";
|
|
45
50
|
import { n as subDocumentPackage, t as SubDocumentPackageOptions } from "./subdocument-CQptFIQK.cjs";
|
|
46
51
|
import { i as readOdfFormDefinitions, n as OdbFormDefinition, r as readOdfFormControlConstructs, t as OdbFormControl } from "./forms-Dc74fCtk.cjs";
|
|
47
52
|
import { n as readOdbForm, t as OdbForm } from "./form-coDwVdjG.cjs";
|
|
48
|
-
import { a as
|
|
49
|
-
import { t as transformOoo1Package } from "./transform-
|
|
50
|
-
import { a as readSxi, c as readSxwContent, i as readSxdContent, n as readSxcContent, o as readSxiContent, r as readSxd, s as readSxw, t as readSxc } from "./read-
|
|
53
|
+
import { a as isOoo1NamespacePrefix, c as ooo1MediaTypeForExtension, i as Ooo1NamespacePrefix, l as ooo1MediaTypeForOdfMediaType, n as OOO1_NAMESPACES, o as isOoo1Package, r as Ooo1Extension, s as odfMediaTypeForOoo1MediaType, t as OOO1_MEDIA_TYPES } from "./ns-DrleaIZQ.cjs";
|
|
54
|
+
import { n as transformToOoo1Package, t as transformOoo1Package } from "./transform-DFCPKX7e.cjs";
|
|
55
|
+
import { a as readSxi, c as readSxwContent, i as readSxdContent, n as readSxcContent, o as readSxiContent, r as readSxd, s as readSxw, t as readSxc } from "./read-BgnLFuSi.cjs";
|
|
56
|
+
import { a as writeSxi, c as writeSxwContent, i as writeSxdContent, n as writeSxcContent, o as writeSxiContent, r as writeSxd, s as writeSxw, t as writeSxc } from "./write-BZXpT8F6.cjs";
|
|
51
57
|
import { a as OdbReportGroup, i as OdbReportFunction, n as OdbReportBand, o as readOdbReport, r as OdbReportElement, t as OdbReport } from "./report-39DyUx5W.cjs";
|
|
52
|
-
import { a as Alignment, i as xmlCodec, n as encodePackage, o as AlignmentSchema, r as packageCodec, s as DocumentTree, t as decodePackage } from "./codec-
|
|
53
|
-
export { type Alignment, AlignmentSchema, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type BuildManifestOptions, type CascadeDiagnostic, DEFAULT_ODF_VERSION, type DocumentTree, type DrawPageContent, type EmbeddedDocumentKind, type EmbeddedDrawObject, type ImageFormat, type InternRequest, type LengthUnit, MANIFEST_PART, META_PART, MIMETYPE_PART, type Manifest, type ManifestEntry, ManifestEntrySchema, type ManifestProblem, ManifestProblemSchema, ManifestSchema, ODF_MEDIA_TYPES, ODF_NAMESPACES, OOO1_MEDIA_TYPES, OOO1_NAMESPACES, type OdbComponentInfo, type OdbConnectionInfo, type OdbForm, type OdbFormControl, type OdbFormDefinition, type OdbInventory, type OdbQueryInfo, type OdbReport, type OdbReportBand, type OdbReportElement, type OdbReportFunction, type OdbReportGroup, type OdfExtension, type OdfFormulaDocument, type OdfListEntry, type OdfListIdState, type OdfListParagraphReader, type OdfNamespacePrefix, type OdfParagraphWriteOptions, type OdfPoint, type OdfRawPoint, type OdfRawSegment, type OdfRawSubpath, type OdfShapeGeometry, type OdfTextSegment, type OdfTextSegmentKind, type OdfTransformFunction, type OdfViewBox, type OdgDocument, type OdmDocument, type OdmSection, type OdpDocument, type OdsDocument, type OdtDocument, type OdtHeaderFooterPart, type OdtHeaderFooterVariant, type OdtReadOptions, type OdtWriteOptions, type Ooo1Extension, type Ooo1NamespacePrefix, type OtherPartRef, type Package, PackageSchema, type ParsedProperties, type Part, PartSchema, STYLE_FAMILIES, type StyleCascadeResult, type StyleElementChainResult, type StyleFamily, type StyleProperties, StylePropertiesSchema, StyleRegistry, type StyleRegistryOptions, type SubDocumentPackageOptions, TableCursor, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, type ZipEntry, applyOdfTransform, attrValue, base64ToBytes, buildManifest, buildOdfInlineNodes, buildOdfListStyle, buildOdfMetaNodes, buildOdfSubpaths, buildStylePropertyElements, buildXml, bytesToBase64, canonicalPropertiesString, cellReference, childrenWithTag, columnIndexToLetters, columnLettersToIndex, composeOdfGroupTransform, createOdfPackage, decodeOdfText, decodePackage, decodeXmlText, el, elementsWithTag, encodePackage, encodeXmlText, ensureSpan, findChildElement, findStyleElement, formatOdfColor, formatOdfLength, formatPercentageMultiplier, formatPt, getOdfSpaceCount, isOoo1Package, isStyleFamily, isXmlNode, measureOdfNodeLength, mediaTypeForExtension, mintOdfListNumId, netRotationDeg, normaliseOdtContent, odfMediaTypeForOoo1MediaType, odfParagraphProperties, odfPartContainer, odfRunProperties, ooo1MediaTypeForExtension, packageCodec, paragraphPropertiesToAttributes, parseBox, parseCellReference, parseOdfLength as parseLength, parseOdfLength, parseLinePoints, parseMargins, parseOdfColor, parseOdfPathData, parseOdfPointsList, parseOdfTransform, parseOdfViewBox, parsePackage, parsePageSize, parseParagraphProperties, parseStyleElementProperties, parseTextProperties, parseXml, rawSubpathFromPoints, readDrawFrame, readDrawImageBlock, readDrawObjectReference, readDrawPageContent, readManifest, readMimetype, readOdbForm, readOdbInventory, readOdbReport, readOdfFormControlConstructs, readOdfFormDefinitions, readOdfFormula, readOdfFormulaContent, readOdfFormulaMathMl, readOdfListParagraphs, readOdfMetadata, readOdfParagraph, readOdfTable, readOdg, readOdgContent, readOdm, readOdp, readOdpContent, readOds, readOdsContent, readOdt, readOdtContent, readSxc, readSxcContent, readSxd, readSxdContent, readSxi, readSxiContent, readSxw, readSxwContent, resolveDrawPageSize, resolveOdbComponent, resolveOdfListKind, resolveOdfShapeGeometry, resolvePageLayoutProperties, resolveStyle, resolveStyleElementChain, rootElement, scaleOdfRawPoint, segmentOdfParagraphRuns, segmentOdfText, serializePackage, setDocumentMediaType, sniffImageFormat, subDocumentPackage, sumOdfNodeLength, syncManifest, textPropertiesToAttributes, transformOoo1Package, txt, unzipPackage, validateManifest, walkDrawShapes, writeManifest, writeMimetype, writeOdfList, writeOdfMetadata, writeOdfParagraph, writeOdfTable, writeOdt, writeOdtContent, xmlCodec, xmlnsAttributes, zipPackage };
|
|
58
|
+
import { a as Alignment, i as xmlCodec, n as encodePackage, o as AlignmentSchema, r as packageCodec, s as DocumentTree, t as decodePackage } from "./codec-CFdlbFLJ.cjs";
|
|
59
|
+
export { type Alignment, AlignmentSchema, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type BuildManifestOptions, type CascadeDiagnostic, DEFAULT_ODF_VERSION, type DocumentTree, type DrawPageContent, type EmbeddedDocumentKind, type EmbeddedDrawObject, type ImageFormat, type InternRequest, type LengthUnit, MANIFEST_PART, META_PART, MIMETYPE_PART, type Manifest, type ManifestEntry, ManifestEntrySchema, type ManifestProblem, ManifestProblemSchema, ManifestSchema, ODF_MEDIA_TYPES, ODF_NAMESPACES, OOO1_MEDIA_TYPES, OOO1_NAMESPACES, type OdbComponentInfo, type OdbConnectionInfo, type OdbForm, type OdbFormControl, type OdbFormDefinition, type OdbInventory, type OdbQueryInfo, type OdbReport, type OdbReportBand, type OdbReportElement, type OdbReportFunction, type OdbReportGroup, type OdfExtension, type OdfFormulaDocument, type OdfListEntry, type OdfListIdState, type OdfListParagraphReader, type OdfNamespacePrefix, type OdfParagraphWriteOptions, type OdfPoint, type OdfRawPoint, type OdfRawSegment, type OdfRawSubpath, type OdfShapeGeometry, type OdfTextSegment, type OdfTextSegmentKind, type OdfTransformFunction, type OdfViewBox, type OdgDocument, type OdgWriteOptions, type OdmDocument, type OdmSection, type OdpDocument, type OdpWriteOptions, type OdsDocument, type OdsWriteOptions, type OdtDocument, type OdtHeaderFooterPart, type OdtHeaderFooterVariant, type OdtReadOptions, type OdtWriteOptions, type Ooo1Extension, type Ooo1NamespacePrefix, type OtherPartRef, type Package, PackageSchema, type ParsedProperties, type Part, PartSchema, STYLE_FAMILIES, type StyleCascadeResult, type StyleElementChainResult, type StyleFamily, type StyleProperties, StylePropertiesSchema, StyleRegistry, type StyleRegistryOptions, type SubDocumentPackageOptions, TableCursor, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, type ZipEntry, applyOdfTransform, attrValue, base64ToBytes, buildManifest, buildOdfInlineNodes, buildOdfListStyle, buildOdfMetaNodes, buildOdfSubpaths, buildStylePropertyElements, buildXml, bytesToBase64, canonicalPropertiesString, cellReference, childrenWithTag, columnIndexToLetters, columnLettersToIndex, composeOdfGroupTransform, createOdfPackage, decodeOdfText, decodePackage, decodeXmlText, el, elementsWithTag, encodePackage, encodeXmlText, ensureSpan, findChildElement, findStyleElement, formatOdfColor, formatOdfLength, formatOdfNumber, formatOdfPathData, formatOdfViewBox, formatPercentageMultiplier, formatPt, getOdfSpaceCount, isOoo1NamespacePrefix, isOoo1Package, isStyleFamily, isXmlNode, measureOdfNodeLength, mediaTypeForExtension, mintOdfListNumId, netRotationDeg, normaliseOdgContent, normaliseOdpContent, normaliseOdsContent, normaliseOdtContent, odfMediaTypeForOoo1MediaType, odfParagraphProperties, odfPartContainer, odfRunProperties, ooo1MediaTypeForExtension, ooo1MediaTypeForOdfMediaType, packageCodec, paragraphPropertiesToAttributes, parseBox, parseCellReference, parseOdfLength as parseLength, parseOdfLength, parseLinePoints, parseMargins, parseOdfColor, parseOdfPathData, parseOdfPointsList, parseOdfTransform, parseOdfViewBox, parsePackage, parsePageSize, parseParagraphProperties, parseStyleElementProperties, parseTextProperties, parseXml, rawSubpathFromPoints, readDrawFrame, readDrawImageBlock, readDrawObjectReference, readDrawPageContent, readManifest, readMimetype, readOdbForm, readOdbInventory, readOdbReport, readOdfFormControlConstructs, readOdfFormDefinitions, readOdfFormula, readOdfFormulaContent, readOdfFormulaMathMl, readOdfListParagraphs, readOdfMetadata, readOdfParagraph, readOdfTable, readOdg, readOdgContent, readOdm, readOdp, readOdpContent, readOds, readOdsContent, readOdt, readOdtContent, readSxc, readSxcContent, readSxd, readSxdContent, readSxi, readSxiContent, readSxw, readSxwContent, resolveDrawPageSize, resolveOdbComponent, resolveOdfListKind, resolveOdfShapeGeometry, resolvePageLayoutProperties, resolveStyle, resolveStyleElementChain, rootElement, scaleOdfRawPoint, segmentOdfParagraphRuns, segmentOdfText, serializePackage, setDocumentMediaType, sniffImageFormat, subDocumentPackage, sumOdfNodeLength, syncManifest, textPropertiesToAttributes, transformOoo1Package, transformToOoo1Package, txt, unzipPackage, validateManifest, walkDrawShapes, writeDrawFrame, writeDrawShapes, writeDrawVector, writeDrawVectors, writeManifest, writeMimetype, writeOdfList, writeOdfMetadata, writeOdfParagraph, writeOdfTable, writeOdg, writeOdgContent, writeOdp, writeOdpContent, writeOds, writeOdsContent, writeOdt, writeOdtContent, writeSxc, writeSxcContent, writeSxd, writeSxdContent, writeSxi, writeSxiContent, writeSxw, writeSxwContent, xmlCodec, xmlnsAttributes, zipPackage };
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { n as unzipPackage, r as zipPackage, t as ZipEntry } from "./zip-ie17sOo
|
|
|
8
8
|
import { n as bytesToBase64, t as base64ToBytes } from "./base64--HuymRl_.js";
|
|
9
9
|
import { n as OdfNamespacePrefix, r as xmlnsAttributes, t as ODF_NAMESPACES } from "./ns-Cihto3Fx.js";
|
|
10
10
|
import { n as OdfExtension, r as mediaTypeForExtension, t as ODF_MEDIA_TYPES } from "./media-type-BOLkcHkJ.js";
|
|
11
|
-
import { n as sniffImageFormat, t as ImageFormat } from "./sniff-
|
|
11
|
+
import { n as sniffImageFormat, t as ImageFormat } from "./sniff-eR8lObzF.js";
|
|
12
12
|
import { n as writeMimetype, t as readMimetype } from "./mimetype-DvMCOzmu.js";
|
|
13
13
|
import { n as txt, t as el } from "./fragment-ClgCV_if.js";
|
|
14
14
|
import { n as encodeXmlText, t as decodeXmlText } from "./entities-BZlXvHqu.js";
|
|
@@ -18,36 +18,42 @@ import { n as canonicalPropertiesString, t as buildStylePropertyElements } from
|
|
|
18
18
|
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-C_16-N6i.js";
|
|
19
19
|
import { t as ensureSpan } from "./span-C3aJuEOM.js";
|
|
20
20
|
import { a as rootElement, i as findChildElement, n as childrenWithTag, r as elementsWithTag, t as attrValue } from "./query-CbxD-WiQ.js";
|
|
21
|
-
import { n as formatOdfLength, r as
|
|
21
|
+
import { i as parseOdfLength, n as formatOdfLength, r as formatOdfNumber, t as LengthUnit } from "./units-DdyaQolR.js";
|
|
22
22
|
import { a as parseCellReference, i as columnLettersToIndex, n as cellReference, r as columnIndexToLetters, t as TableCursor } from "./a1-5e9veCyu.js";
|
|
23
23
|
import { n as parseOdfColor, t as formatOdfColor } from "./color-CqXjt_to.js";
|
|
24
24
|
import { i as parsePageSize, n as parseLinePoints, r as parseMargins, t as parseBox } from "./geometry-BI33aJpv.js";
|
|
25
25
|
import { a as decodeOdfText, c as measureOdfNodeLength, i as buildOdfInlineNodes, l as segmentOdfText, n as OdfTextSegment, o as getOdfSpaceCount, r as OdfTextSegmentKind, u as sumOdfNodeLength } from "./text-B8350HA2.js";
|
|
26
26
|
import { a as resolveStyle, i as findStyleElement, n as StyleCascadeResult, o as resolveStyleElementChain, r as StyleElementChainResult, t as CascadeDiagnostic } from "./cascade-PDS3hgrP.js";
|
|
27
27
|
import { i as writeOdfMetadata, n as buildOdfMetaNodes, r as readOdfMetadata, t as META_PART } from "./metadata-BUzwE_-u.js";
|
|
28
|
-
import { a as
|
|
29
|
-
import { c as segmentOdfParagraphRuns, i as odfRunProperties, l as writeOdfParagraph, n as OdfParagraphWriteOptions, o as readOdfParagraph, r as odfParagraphProperties } from "./paragraph-
|
|
30
|
-
import {
|
|
28
|
+
import { a as OdfListParagraphReader, f as readOdfListParagraphs, i as OdfListIdState, m as writeOdfList, o as buildOdfListStyle, p as resolveOdfListKind, r as OdfListEntry, u as mintOdfListNumId } from "./list-7FO0SDqZ.js";
|
|
29
|
+
import { c as segmentOdfParagraphRuns, i as odfRunProperties, l as writeOdfParagraph, n as OdfParagraphWriteOptions, o as readOdfParagraph, r as odfParagraphProperties } from "./paragraph-DtC86tft.js";
|
|
30
|
+
import { c as writeOdfTable, s as readOdfTable } from "./table-XuniPr2I.js";
|
|
31
31
|
import { n as createOdfPackage, r as odfPartContainer, t as DEFAULT_ODF_VERSION } from "./scaffold-ehGsIpZ5.js";
|
|
32
32
|
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-BFNc16LQ.js";
|
|
33
33
|
import { n as resolveDrawPageSize, r as resolvePageLayoutProperties } from "./masterpage-BLK2OJ9q.js";
|
|
34
|
-
import { a as buildOdfSubpaths, c as
|
|
35
|
-
import { a as walkDrawShapes, i as readDrawPageContent, n as readDrawFrame, r as readDrawImageBlock, t as DrawPageContent } from "./shapes-
|
|
34
|
+
import { a as buildOdfSubpaths, c as parseOdfPathData, d as rawSubpathFromPoints, f as scaleOdfRawPoint, i as OdfViewBox, l as parseOdfPointsList, n as OdfRawSegment, o as formatOdfPathData, r as OdfRawSubpath, s as formatOdfViewBox, t as OdfRawPoint, u as parseOdfViewBox } from "./path-8HQS-J7y.js";
|
|
35
|
+
import { a as walkDrawShapes, i as readDrawPageContent, n as readDrawFrame, r as readDrawImageBlock, t as DrawPageContent } from "./shapes-B6Ms7ibr.js";
|
|
36
|
+
import { c as writeDrawFrame, l as writeDrawShapes } from "./write-shapes-Co7BrmMZ.js";
|
|
37
|
+
import { n as writeDrawVector, r as writeDrawVectors } from "./write-vectors-CYjZoVBW.js";
|
|
36
38
|
import { i as readDrawObjectReference, r as EmbeddedDrawObject, t as EmbeddedDocumentKind } from "./embedded-C8tiMCE_.js";
|
|
37
39
|
import { n as readOdp, r as readOdpContent, t as OdpDocument } from "./read-DUOJ-1hX.js";
|
|
40
|
+
import { i as writeOdpContent, n as normaliseOdpContent, r as writeOdp, t as OdpWriteOptions } from "./write-CfTE2jY8.js";
|
|
38
41
|
import { a as readOdt, i as OdtReadOptions, n as OdtHeaderFooterPart, o as readOdtContent, r as OdtHeaderFooterVariant, t as OdtDocument } from "./read-BcxAWBB5.js";
|
|
39
|
-
import { i as writeOdtContent, n as normaliseOdtContent, r as writeOdt, t as OdtWriteOptions } from "./write-
|
|
42
|
+
import { i as writeOdtContent, n as normaliseOdtContent, r as writeOdt, t as OdtWriteOptions } from "./write-JERychL3.js";
|
|
40
43
|
import { n as readOdg, r as readOdgContent, t as OdgDocument } from "./read-D3wLfr-7.js";
|
|
41
|
-
import { n as
|
|
44
|
+
import { i as writeOdgContent, n as normaliseOdgContent, r as writeOdg, t as OdgWriteOptions } from "./write-4kMi-asu.js";
|
|
45
|
+
import { a as readOdsContent, i as readOds, r as OdsDocument } from "./read-A3CJkqVM.js";
|
|
46
|
+
import { i as writeOdsContent, n as normaliseOdsContent, r as writeOds, t as OdsWriteOptions } from "./write-DttX1rTC.js";
|
|
42
47
|
import { a as readOdfFormulaMathMl, i as readOdfFormulaContent, r as readOdfFormula, t as OdfFormulaDocument } from "./read-C_oVZAnY.js";
|
|
43
48
|
import { n as OdmSection, r as readOdm, t as OdmDocument } from "./read-8s8AdaEd.js";
|
|
44
49
|
import { a as readOdbInventory, i as OdbQueryInfo, n as OdbConnectionInfo, o as resolveOdbComponent, r as OdbInventory, t as OdbComponentInfo } from "./read-B2jnd5eS.js";
|
|
45
50
|
import { n as subDocumentPackage, t as SubDocumentPackageOptions } from "./subdocument-BhabEY9P.js";
|
|
46
51
|
import { i as readOdfFormDefinitions, n as OdbFormDefinition, r as readOdfFormControlConstructs, t as OdbFormControl } from "./forms-Eq2p1ss3.js";
|
|
47
52
|
import { n as readOdbForm, t as OdbForm } from "./form-D6XHM5SR.js";
|
|
48
|
-
import { a as
|
|
49
|
-
import { t as transformOoo1Package } from "./transform-
|
|
50
|
-
import { a as readSxi, c as readSxwContent, i as readSxdContent, n as readSxcContent, o as readSxiContent, r as readSxd, s as readSxw, t as readSxc } from "./read-
|
|
53
|
+
import { a as isOoo1NamespacePrefix, c as ooo1MediaTypeForExtension, i as Ooo1NamespacePrefix, l as ooo1MediaTypeForOdfMediaType, n as OOO1_NAMESPACES, o as isOoo1Package, r as Ooo1Extension, s as odfMediaTypeForOoo1MediaType, t as OOO1_MEDIA_TYPES } from "./ns-E0TfX9tZ.js";
|
|
54
|
+
import { n as transformToOoo1Package, t as transformOoo1Package } from "./transform-DPliWQuD.js";
|
|
55
|
+
import { a as readSxi, c as readSxwContent, i as readSxdContent, n as readSxcContent, o as readSxiContent, r as readSxd, s as readSxw, t as readSxc } from "./read-CqaZ01kU.js";
|
|
56
|
+
import { a as writeSxi, c as writeSxwContent, i as writeSxdContent, n as writeSxcContent, o as writeSxiContent, r as writeSxd, s as writeSxw, t as writeSxc } from "./write-SKnCTU4C.js";
|
|
51
57
|
import { a as OdbReportGroup, i as OdbReportFunction, n as OdbReportBand, o as readOdbReport, r as OdbReportElement, t as OdbReport } from "./report-x9RuNwmr.js";
|
|
52
|
-
import { a as Alignment, i as xmlCodec, n as encodePackage, o as AlignmentSchema, r as packageCodec, s as DocumentTree, t as decodePackage } from "./codec-
|
|
53
|
-
export { type Alignment, AlignmentSchema, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type BuildManifestOptions, type CascadeDiagnostic, DEFAULT_ODF_VERSION, type DocumentTree, type DrawPageContent, type EmbeddedDocumentKind, type EmbeddedDrawObject, type ImageFormat, type InternRequest, type LengthUnit, MANIFEST_PART, META_PART, MIMETYPE_PART, type Manifest, type ManifestEntry, ManifestEntrySchema, type ManifestProblem, ManifestProblemSchema, ManifestSchema, ODF_MEDIA_TYPES, ODF_NAMESPACES, OOO1_MEDIA_TYPES, OOO1_NAMESPACES, type OdbComponentInfo, type OdbConnectionInfo, type OdbForm, type OdbFormControl, type OdbFormDefinition, type OdbInventory, type OdbQueryInfo, type OdbReport, type OdbReportBand, type OdbReportElement, type OdbReportFunction, type OdbReportGroup, type OdfExtension, type OdfFormulaDocument, type OdfListEntry, type OdfListIdState, type OdfListParagraphReader, type OdfNamespacePrefix, type OdfParagraphWriteOptions, type OdfPoint, type OdfRawPoint, type OdfRawSegment, type OdfRawSubpath, type OdfShapeGeometry, type OdfTextSegment, type OdfTextSegmentKind, type OdfTransformFunction, type OdfViewBox, type OdgDocument, type OdmDocument, type OdmSection, type OdpDocument, type OdsDocument, type OdtDocument, type OdtHeaderFooterPart, type OdtHeaderFooterVariant, type OdtReadOptions, type OdtWriteOptions, type Ooo1Extension, type Ooo1NamespacePrefix, type OtherPartRef, type Package, PackageSchema, type ParsedProperties, type Part, PartSchema, STYLE_FAMILIES, type StyleCascadeResult, type StyleElementChainResult, type StyleFamily, type StyleProperties, StylePropertiesSchema, StyleRegistry, type StyleRegistryOptions, type SubDocumentPackageOptions, TableCursor, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, type ZipEntry, applyOdfTransform, attrValue, base64ToBytes, buildManifest, buildOdfInlineNodes, buildOdfListStyle, buildOdfMetaNodes, buildOdfSubpaths, buildStylePropertyElements, buildXml, bytesToBase64, canonicalPropertiesString, cellReference, childrenWithTag, columnIndexToLetters, columnLettersToIndex, composeOdfGroupTransform, createOdfPackage, decodeOdfText, decodePackage, decodeXmlText, el, elementsWithTag, encodePackage, encodeXmlText, ensureSpan, findChildElement, findStyleElement, formatOdfColor, formatOdfLength, formatPercentageMultiplier, formatPt, getOdfSpaceCount, isOoo1Package, isStyleFamily, isXmlNode, measureOdfNodeLength, mediaTypeForExtension, mintOdfListNumId, netRotationDeg, normaliseOdtContent, odfMediaTypeForOoo1MediaType, odfParagraphProperties, odfPartContainer, odfRunProperties, ooo1MediaTypeForExtension, packageCodec, paragraphPropertiesToAttributes, parseBox, parseCellReference, parseOdfLength as parseLength, parseOdfLength, parseLinePoints, parseMargins, parseOdfColor, parseOdfPathData, parseOdfPointsList, parseOdfTransform, parseOdfViewBox, parsePackage, parsePageSize, parseParagraphProperties, parseStyleElementProperties, parseTextProperties, parseXml, rawSubpathFromPoints, readDrawFrame, readDrawImageBlock, readDrawObjectReference, readDrawPageContent, readManifest, readMimetype, readOdbForm, readOdbInventory, readOdbReport, readOdfFormControlConstructs, readOdfFormDefinitions, readOdfFormula, readOdfFormulaContent, readOdfFormulaMathMl, readOdfListParagraphs, readOdfMetadata, readOdfParagraph, readOdfTable, readOdg, readOdgContent, readOdm, readOdp, readOdpContent, readOds, readOdsContent, readOdt, readOdtContent, readSxc, readSxcContent, readSxd, readSxdContent, readSxi, readSxiContent, readSxw, readSxwContent, resolveDrawPageSize, resolveOdbComponent, resolveOdfListKind, resolveOdfShapeGeometry, resolvePageLayoutProperties, resolveStyle, resolveStyleElementChain, rootElement, scaleOdfRawPoint, segmentOdfParagraphRuns, segmentOdfText, serializePackage, setDocumentMediaType, sniffImageFormat, subDocumentPackage, sumOdfNodeLength, syncManifest, textPropertiesToAttributes, transformOoo1Package, txt, unzipPackage, validateManifest, walkDrawShapes, writeManifest, writeMimetype, writeOdfList, writeOdfMetadata, writeOdfParagraph, writeOdfTable, writeOdt, writeOdtContent, xmlCodec, xmlnsAttributes, zipPackage };
|
|
58
|
+
import { a as Alignment, i as xmlCodec, n as encodePackage, o as AlignmentSchema, r as packageCodec, s as DocumentTree, t as decodePackage } from "./codec-DTAgph2r.js";
|
|
59
|
+
export { type Alignment, AlignmentSchema, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type BuildManifestOptions, type CascadeDiagnostic, DEFAULT_ODF_VERSION, type DocumentTree, type DrawPageContent, type EmbeddedDocumentKind, type EmbeddedDrawObject, type ImageFormat, type InternRequest, type LengthUnit, MANIFEST_PART, META_PART, MIMETYPE_PART, type Manifest, type ManifestEntry, ManifestEntrySchema, type ManifestProblem, ManifestProblemSchema, ManifestSchema, ODF_MEDIA_TYPES, ODF_NAMESPACES, OOO1_MEDIA_TYPES, OOO1_NAMESPACES, type OdbComponentInfo, type OdbConnectionInfo, type OdbForm, type OdbFormControl, type OdbFormDefinition, type OdbInventory, type OdbQueryInfo, type OdbReport, type OdbReportBand, type OdbReportElement, type OdbReportFunction, type OdbReportGroup, type OdfExtension, type OdfFormulaDocument, type OdfListEntry, type OdfListIdState, type OdfListParagraphReader, type OdfNamespacePrefix, type OdfParagraphWriteOptions, type OdfPoint, type OdfRawPoint, type OdfRawSegment, type OdfRawSubpath, type OdfShapeGeometry, type OdfTextSegment, type OdfTextSegmentKind, type OdfTransformFunction, type OdfViewBox, type OdgDocument, type OdgWriteOptions, type OdmDocument, type OdmSection, type OdpDocument, type OdpWriteOptions, type OdsDocument, type OdsWriteOptions, type OdtDocument, type OdtHeaderFooterPart, type OdtHeaderFooterVariant, type OdtReadOptions, type OdtWriteOptions, type Ooo1Extension, type Ooo1NamespacePrefix, type OtherPartRef, type Package, PackageSchema, type ParsedProperties, type Part, PartSchema, STYLE_FAMILIES, type StyleCascadeResult, type StyleElementChainResult, type StyleFamily, type StyleProperties, StylePropertiesSchema, StyleRegistry, type StyleRegistryOptions, type SubDocumentPackageOptions, TableCursor, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, type ZipEntry, applyOdfTransform, attrValue, base64ToBytes, buildManifest, buildOdfInlineNodes, buildOdfListStyle, buildOdfMetaNodes, buildOdfSubpaths, buildStylePropertyElements, buildXml, bytesToBase64, canonicalPropertiesString, cellReference, childrenWithTag, columnIndexToLetters, columnLettersToIndex, composeOdfGroupTransform, createOdfPackage, decodeOdfText, decodePackage, decodeXmlText, el, elementsWithTag, encodePackage, encodeXmlText, ensureSpan, findChildElement, findStyleElement, formatOdfColor, formatOdfLength, formatOdfNumber, formatOdfPathData, formatOdfViewBox, formatPercentageMultiplier, formatPt, getOdfSpaceCount, isOoo1NamespacePrefix, isOoo1Package, isStyleFamily, isXmlNode, measureOdfNodeLength, mediaTypeForExtension, mintOdfListNumId, netRotationDeg, normaliseOdgContent, normaliseOdpContent, normaliseOdsContent, normaliseOdtContent, odfMediaTypeForOoo1MediaType, odfParagraphProperties, odfPartContainer, odfRunProperties, ooo1MediaTypeForExtension, ooo1MediaTypeForOdfMediaType, packageCodec, paragraphPropertiesToAttributes, parseBox, parseCellReference, parseOdfLength as parseLength, parseOdfLength, parseLinePoints, parseMargins, parseOdfColor, parseOdfPathData, parseOdfPointsList, parseOdfTransform, parseOdfViewBox, parsePackage, parsePageSize, parseParagraphProperties, parseStyleElementProperties, parseTextProperties, parseXml, rawSubpathFromPoints, readDrawFrame, readDrawImageBlock, readDrawObjectReference, readDrawPageContent, readManifest, readMimetype, readOdbForm, readOdbInventory, readOdbReport, readOdfFormControlConstructs, readOdfFormDefinitions, readOdfFormula, readOdfFormulaContent, readOdfFormulaMathMl, readOdfListParagraphs, readOdfMetadata, readOdfParagraph, readOdfTable, readOdg, readOdgContent, readOdm, readOdp, readOdpContent, readOds, readOdsContent, readOdt, readOdtContent, readSxc, readSxcContent, readSxd, readSxdContent, readSxi, readSxiContent, readSxw, readSxwContent, resolveDrawPageSize, resolveOdbComponent, resolveOdfListKind, resolveOdfShapeGeometry, resolvePageLayoutProperties, resolveStyle, resolveStyleElementChain, rootElement, scaleOdfRawPoint, segmentOdfParagraphRuns, segmentOdfText, serializePackage, setDocumentMediaType, sniffImageFormat, subDocumentPackage, sumOdfNodeLength, syncManifest, textPropertiesToAttributes, transformOoo1Package, transformToOoo1Package, txt, unzipPackage, validateManifest, walkDrawShapes, writeDrawFrame, writeDrawShapes, writeDrawVector, writeDrawVectors, writeManifest, writeMimetype, writeOdfList, writeOdfMetadata, writeOdfParagraph, writeOdfTable, writeOdg, writeOdgContent, writeOdp, writeOdpContent, writeOds, writeOdsContent, writeOdt, writeOdtContent, writeSxc, writeSxcContent, writeSxd, writeSxdContent, writeSxi, writeSxiContent, writeSxw, writeSxwContent, xmlCodec, xmlnsAttributes, zipPackage };
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { readMimetype, writeMimetype } from "./mimetype.js";
|
|
|
14
14
|
import { el, txt } from "./xml/fragment.js";
|
|
15
15
|
import { decodeXmlText, encodeXmlText } from "./xml/entities.js";
|
|
16
16
|
import { ManifestEntrySchema, ManifestProblemSchema, ManifestSchema, buildManifest, readManifest, setDocumentMediaType, syncManifest, validateManifest, writeManifest } from "./manifest.js";
|
|
17
|
-
import { formatOdfLength, parseOdfLength } from "./typed/shared/units.js";
|
|
17
|
+
import { formatOdfLength, formatOdfNumber, parseOdfLength } from "./typed/shared/units.js";
|
|
18
18
|
import { formatOdfColor, parseOdfColor } from "./typed/shared/color.js";
|
|
19
19
|
import { StylePropertiesSchema, formatPercentageMultiplier, formatPt, paragraphPropertiesToAttributes, parseParagraphProperties, parseStyleElementProperties, parseTextProperties, textPropertiesToAttributes } from "./styles/properties.js";
|
|
20
20
|
import { buildStylePropertyElements, canonicalPropertiesString } from "./styles/serialize.js";
|
|
@@ -32,21 +32,27 @@ import { readOdfTable, writeOdfTable } from "./typed/shared/table.js";
|
|
|
32
32
|
import { DEFAULT_ODF_VERSION, createOdfPackage, odfPartContainer } from "./package-io/scaffold.js";
|
|
33
33
|
import { applyOdfTransform, composeOdfGroupTransform, netRotationDeg, parseOdfTransform, resolveOdfShapeGeometry } from "./typed/shared/transform.js";
|
|
34
34
|
import { resolveDrawPageSize, resolvePageLayoutProperties } from "./typed/shared/masterpage.js";
|
|
35
|
-
import { buildOdfSubpaths, parseOdfPathData, parseOdfPointsList, parseOdfViewBox, rawSubpathFromPoints, scaleOdfRawPoint } from "./typed/shared/path.js";
|
|
35
|
+
import { buildOdfSubpaths, formatOdfPathData, formatOdfViewBox, parseOdfPathData, parseOdfPointsList, parseOdfViewBox, rawSubpathFromPoints, scaleOdfRawPoint } from "./typed/shared/path.js";
|
|
36
36
|
import { readDrawFrame, readDrawImageBlock, readDrawPageContent, walkDrawShapes } from "./typed/draw/shapes.js";
|
|
37
|
+
import { writeDrawFrame, writeDrawShapes } from "./typed/draw/write-shapes.js";
|
|
38
|
+
import { writeDrawVector, writeDrawVectors } from "./typed/draw/write-vectors.js";
|
|
37
39
|
import { readOdfFormula, readOdfFormulaContent, readOdfFormulaMathMl } from "./typed/formula/read.js";
|
|
38
40
|
import { subDocumentPackage } from "./typed/odb/subdocument.js";
|
|
39
41
|
import { readOdg, readOdgContent } from "./typed/odg/read.js";
|
|
40
42
|
import { readOdp, readOdpContent } from "./typed/odp/read.js";
|
|
41
|
-
import { a as readOdtContent,
|
|
43
|
+
import { a as readOdtContent, c as readOds, i as readOdt, l as readOdsContent, t as readDrawObjectReference } from "./embedded-BnavfkP-.js";
|
|
42
44
|
import { readOdfFormControlConstructs, readOdfFormDefinitions } from "./typed/shared/forms.js";
|
|
45
|
+
import { normaliseOdpContent, writeOdp, writeOdpContent } from "./typed/odp/write.js";
|
|
43
46
|
import { normaliseOdtContent, writeOdt, writeOdtContent } from "./typed/odt/write.js";
|
|
47
|
+
import { normaliseOdgContent, writeOdg, writeOdgContent } from "./typed/odg/write.js";
|
|
48
|
+
import { normaliseOdsContent, writeOds, writeOdsContent } from "./typed/ods/write.js";
|
|
44
49
|
import { readOdm } from "./typed/odm/read.js";
|
|
45
50
|
import { readOdbInventory, resolveOdbComponent } from "./typed/odb/read.js";
|
|
46
51
|
import { readOdbForm } from "./typed/odb/form.js";
|
|
47
|
-
import { OOO1_MEDIA_TYPES, OOO1_NAMESPACES, isOoo1Package, odfMediaTypeForOoo1MediaType, ooo1MediaTypeForExtension } from "./ooo1/ns.js";
|
|
48
|
-
import { transformOoo1Package } from "./ooo1/transform.js";
|
|
52
|
+
import { OOO1_MEDIA_TYPES, OOO1_NAMESPACES, isOoo1NamespacePrefix, isOoo1Package, odfMediaTypeForOoo1MediaType, ooo1MediaTypeForExtension, ooo1MediaTypeForOdfMediaType } from "./ooo1/ns.js";
|
|
53
|
+
import { transformOoo1Package, transformToOoo1Package } from "./ooo1/transform.js";
|
|
49
54
|
import { readSxc, readSxcContent, readSxd, readSxdContent, readSxi, readSxiContent, readSxw, readSxwContent } from "./ooo1/read.js";
|
|
55
|
+
import { writeSxc, writeSxcContent, writeSxd, writeSxdContent, writeSxi, writeSxiContent, writeSxw, writeSxwContent } from "./ooo1/write.js";
|
|
50
56
|
import { readOdbReport } from "./typed/odb/report.js";
|
|
51
57
|
import { AlignmentSchema } from "document-schema.js";
|
|
52
|
-
export { AlignmentSchema, AttributeSchema, BinaryPartSchema, DEFAULT_ODF_VERSION, MANIFEST_PART, META_PART, MIMETYPE_PART, ManifestEntrySchema, ManifestProblemSchema, ManifestSchema, ODF_MEDIA_TYPES, ODF_NAMESPACES, OOO1_MEDIA_TYPES, OOO1_NAMESPACES, PackageSchema, PartSchema, STYLE_FAMILIES, StylePropertiesSchema, StyleRegistry, TableCursor, XmlCdataSchema, XmlCommentSchema, XmlDeclarationSchema, XmlElementSchema, XmlNodeSchema, XmlPartSchema, XmlPiSchema, XmlTextSchema, applyOdfTransform, attrValue, base64ToBytes, buildManifest, buildOdfInlineNodes, buildOdfListStyle, buildOdfMetaNodes, buildOdfSubpaths, buildStylePropertyElements, buildXml, bytesToBase64, canonicalPropertiesString, cellReference, childrenWithTag, columnIndexToLetters, columnLettersToIndex, composeOdfGroupTransform, createOdfPackage, decodeOdfText, decodePackage, decodeXmlText, el, elementsWithTag, encodePackage, encodeXmlText, ensureSpan, findChildElement, findStyleElement, formatOdfColor, formatOdfLength, formatPercentageMultiplier, formatPt, getOdfSpaceCount, isOoo1Package, isStyleFamily, isXmlNode, measureOdfNodeLength, mediaTypeForExtension, mintOdfListNumId, netRotationDeg, normaliseOdtContent, odfMediaTypeForOoo1MediaType, odfParagraphProperties, odfPartContainer, odfRunProperties, ooo1MediaTypeForExtension, packageCodec, paragraphPropertiesToAttributes, parseBox, parseCellReference, parseOdfLength as parseLength, parseOdfLength, parseLinePoints, parseMargins, parseOdfColor, parseOdfPathData, parseOdfPointsList, parseOdfTransform, parseOdfViewBox, parsePackage, parsePageSize, parseParagraphProperties, parseStyleElementProperties, parseTextProperties, parseXml, rawSubpathFromPoints, readDrawFrame, readDrawImageBlock, readDrawObjectReference, readDrawPageContent, readManifest, readMimetype, readOdbForm, readOdbInventory, readOdbReport, readOdfFormControlConstructs, readOdfFormDefinitions, readOdfFormula, readOdfFormulaContent, readOdfFormulaMathMl, readOdfListParagraphs, readOdfMetadata, readOdfParagraph, readOdfTable, readOdg, readOdgContent, readOdm, readOdp, readOdpContent, readOds, readOdsContent, readOdt, readOdtContent, readSxc, readSxcContent, readSxd, readSxdContent, readSxi, readSxiContent, readSxw, readSxwContent, resolveDrawPageSize, resolveOdbComponent, resolveOdfListKind, resolveOdfShapeGeometry, resolvePageLayoutProperties, resolveStyle, resolveStyleElementChain, rootElement, scaleOdfRawPoint, segmentOdfParagraphRuns, segmentOdfText, serializePackage, setDocumentMediaType, sniffImageFormat, subDocumentPackage, sumOdfNodeLength, syncManifest, textPropertiesToAttributes, transformOoo1Package, txt, unzipPackage, validateManifest, walkDrawShapes, writeManifest, writeMimetype, writeOdfList, writeOdfMetadata, writeOdfParagraph, writeOdfTable, writeOdt, writeOdtContent, xmlCodec, xmlnsAttributes, zipPackage };
|
|
58
|
+
export { AlignmentSchema, AttributeSchema, BinaryPartSchema, DEFAULT_ODF_VERSION, MANIFEST_PART, META_PART, MIMETYPE_PART, ManifestEntrySchema, ManifestProblemSchema, ManifestSchema, ODF_MEDIA_TYPES, ODF_NAMESPACES, OOO1_MEDIA_TYPES, OOO1_NAMESPACES, PackageSchema, PartSchema, STYLE_FAMILIES, StylePropertiesSchema, StyleRegistry, TableCursor, XmlCdataSchema, XmlCommentSchema, XmlDeclarationSchema, XmlElementSchema, XmlNodeSchema, XmlPartSchema, XmlPiSchema, XmlTextSchema, applyOdfTransform, attrValue, base64ToBytes, buildManifest, buildOdfInlineNodes, buildOdfListStyle, buildOdfMetaNodes, buildOdfSubpaths, buildStylePropertyElements, buildXml, bytesToBase64, canonicalPropertiesString, cellReference, childrenWithTag, columnIndexToLetters, columnLettersToIndex, composeOdfGroupTransform, createOdfPackage, decodeOdfText, decodePackage, decodeXmlText, el, elementsWithTag, encodePackage, encodeXmlText, ensureSpan, findChildElement, findStyleElement, formatOdfColor, formatOdfLength, formatOdfNumber, formatOdfPathData, formatOdfViewBox, formatPercentageMultiplier, formatPt, getOdfSpaceCount, isOoo1NamespacePrefix, isOoo1Package, isStyleFamily, isXmlNode, measureOdfNodeLength, mediaTypeForExtension, mintOdfListNumId, netRotationDeg, normaliseOdgContent, normaliseOdpContent, normaliseOdsContent, normaliseOdtContent, odfMediaTypeForOoo1MediaType, odfParagraphProperties, odfPartContainer, odfRunProperties, ooo1MediaTypeForExtension, ooo1MediaTypeForOdfMediaType, packageCodec, paragraphPropertiesToAttributes, parseBox, parseCellReference, parseOdfLength as parseLength, parseOdfLength, parseLinePoints, parseMargins, parseOdfColor, parseOdfPathData, parseOdfPointsList, parseOdfTransform, parseOdfViewBox, parsePackage, parsePageSize, parseParagraphProperties, parseStyleElementProperties, parseTextProperties, parseXml, rawSubpathFromPoints, readDrawFrame, readDrawImageBlock, readDrawObjectReference, readDrawPageContent, readManifest, readMimetype, readOdbForm, readOdbInventory, readOdbReport, readOdfFormControlConstructs, readOdfFormDefinitions, readOdfFormula, readOdfFormulaContent, readOdfFormulaMathMl, readOdfListParagraphs, readOdfMetadata, readOdfParagraph, readOdfTable, readOdg, readOdgContent, readOdm, readOdp, readOdpContent, readOds, readOdsContent, readOdt, readOdtContent, readSxc, readSxcContent, readSxd, readSxdContent, readSxi, readSxiContent, readSxw, readSxwContent, resolveDrawPageSize, resolveOdbComponent, resolveOdfListKind, resolveOdfShapeGeometry, resolvePageLayoutProperties, resolveStyle, resolveStyleElementChain, rootElement, scaleOdfRawPoint, segmentOdfParagraphRuns, segmentOdfText, serializePackage, setDocumentMediaType, sniffImageFormat, subDocumentPackage, sumOdfNodeLength, syncManifest, textPropertiesToAttributes, transformOoo1Package, transformToOoo1Package, txt, unzipPackage, validateManifest, walkDrawShapes, writeDrawFrame, writeDrawShapes, writeDrawVector, writeDrawVectors, writeManifest, writeMimetype, writeOdfList, writeOdfMetadata, writeOdfParagraph, writeOdfTable, writeOdg, writeOdgContent, writeOdp, writeOdpContent, writeOds, writeOdsContent, writeOdt, writeOdtContent, writeSxc, writeSxcContent, writeSxd, writeSxdContent, writeSxi, writeSxiContent, writeSxw, writeSxwContent, xmlCodec, xmlnsAttributes, zipPackage };
|
|
@@ -14,6 +14,19 @@ interface OdfListEntry {
|
|
|
14
14
|
readonly element: XmlElement;
|
|
15
15
|
}
|
|
16
16
|
declare function writeOdfList(entries: readonly OdfListEntry[], styleName: string | undefined): XmlElement;
|
|
17
|
+
declare function listKindOf(numId: string | undefined): "ordered" | "bullet" | undefined;
|
|
18
|
+
declare const NO_NUM_ID_KEY = "\0";
|
|
19
|
+
declare function canonicalNumId(incoming: string | undefined, ordinal: number): string;
|
|
20
|
+
interface ListPlanState {
|
|
21
|
+
next: number;
|
|
22
|
+
openNumId?: string;
|
|
23
|
+
openCanonicalNumId?: string;
|
|
24
|
+
}
|
|
25
|
+
declare function planListMembership(membership: {
|
|
26
|
+
numId?: string;
|
|
27
|
+
level: number;
|
|
28
|
+
} | undefined, listState: ListPlanState): string | undefined;
|
|
29
|
+
declare function closeListPlan(listState: ListPlanState): void;
|
|
17
30
|
declare function readOdfListParagraphs(listElement: XmlElement, membership: ContentListMembership, readParagraph: OdfListParagraphReader): ContentParagraph[];
|
|
18
31
|
//#endregion
|
|
19
|
-
export {
|
|
32
|
+
export { OdfListParagraphReader as a, closeListPlan as c, planListMembership as d, readOdfListParagraphs as f, OdfListIdState as i, listKindOf as l, writeOdfList as m, NO_NUM_ID_KEY as n, buildOdfListStyle as o, resolveOdfListKind as p, OdfListEntry as r, canonicalNumId as s, ListPlanState as t, mintOdfListNumId as u };
|
|
@@ -14,6 +14,19 @@ interface OdfListEntry {
|
|
|
14
14
|
readonly element: XmlElement;
|
|
15
15
|
}
|
|
16
16
|
declare function writeOdfList(entries: readonly OdfListEntry[], styleName: string | undefined): XmlElement;
|
|
17
|
+
declare function listKindOf(numId: string | undefined): "ordered" | "bullet" | undefined;
|
|
18
|
+
declare const NO_NUM_ID_KEY = "\0";
|
|
19
|
+
declare function canonicalNumId(incoming: string | undefined, ordinal: number): string;
|
|
20
|
+
interface ListPlanState {
|
|
21
|
+
next: number;
|
|
22
|
+
openNumId?: string;
|
|
23
|
+
openCanonicalNumId?: string;
|
|
24
|
+
}
|
|
25
|
+
declare function planListMembership(membership: {
|
|
26
|
+
numId?: string;
|
|
27
|
+
level: number;
|
|
28
|
+
} | undefined, listState: ListPlanState): string | undefined;
|
|
29
|
+
declare function closeListPlan(listState: ListPlanState): void;
|
|
17
30
|
declare function readOdfListParagraphs(listElement: XmlElement, membership: ContentListMembership, readParagraph: OdfListParagraphReader): ContentParagraph[];
|
|
18
31
|
//#endregion
|
|
19
|
-
export {
|
|
32
|
+
export { OdfListParagraphReader as a, closeListPlan as c, planListMembership as d, readOdfListParagraphs as f, OdfListIdState as i, listKindOf as l, writeOdfList as m, NO_NUM_ID_KEY as n, buildOdfListStyle as o, resolveOdfListKind as p, OdfListEntry as r, canonicalNumId as s, ListPlanState as t, mintOdfListNumId as u };
|
package/dist/manifest.cjs
CHANGED
|
@@ -82,6 +82,8 @@ function resolvePartMediaType(path, bytes, overrides) {
|
|
|
82
82
|
const sniffed = require_image_sniff.sniffImageFormat(bytes);
|
|
83
83
|
if (sniffed === "png") return "image/png";
|
|
84
84
|
if (sniffed === "jpeg") return "image/jpeg";
|
|
85
|
+
if (sniffed === "gif") return "image/gif";
|
|
86
|
+
if (sniffed === "svg") return "image/svg+xml";
|
|
85
87
|
}
|
|
86
88
|
return "";
|
|
87
89
|
}
|
package/dist/manifest.js
CHANGED
|
@@ -81,6 +81,8 @@ function resolvePartMediaType(path, bytes, overrides) {
|
|
|
81
81
|
const sniffed = sniffImageFormat(bytes);
|
|
82
82
|
if (sniffed === "png") return "image/png";
|
|
83
83
|
if (sniffed === "jpeg") return "image/jpeg";
|
|
84
|
+
if (sniffed === "gif") return "image/gif";
|
|
85
|
+
if (sniffed === "svg") return "image/svg+xml";
|
|
84
86
|
}
|
|
85
87
|
return "";
|
|
86
88
|
}
|
|
@@ -22,6 +22,7 @@ declare const OOO1_NAMESPACES: Readonly<{
|
|
|
22
22
|
math: "http://www.w3.org/1998/Math/MathML";
|
|
23
23
|
}>;
|
|
24
24
|
type Ooo1NamespacePrefix = keyof typeof OOO1_NAMESPACES;
|
|
25
|
+
declare function isOoo1NamespacePrefix(prefix: string): prefix is Ooo1NamespacePrefix;
|
|
25
26
|
declare const OOO1_MEDIA_TYPES: Readonly<{
|
|
26
27
|
sxw: "application/vnd.sun.xml.writer";
|
|
27
28
|
stw: "application/vnd.sun.xml.writer.template";
|
|
@@ -37,6 +38,7 @@ declare const OOO1_MEDIA_TYPES: Readonly<{
|
|
|
37
38
|
type Ooo1Extension = keyof typeof OOO1_MEDIA_TYPES;
|
|
38
39
|
declare function ooo1MediaTypeForExtension(extension: string): string | undefined;
|
|
39
40
|
declare function odfMediaTypeForOoo1MediaType(mediaType: string): string | undefined;
|
|
41
|
+
declare function ooo1MediaTypeForOdfMediaType(mediaType: string): string | undefined;
|
|
40
42
|
declare function isOoo1Package(pkg: Package): boolean;
|
|
41
43
|
//#endregion
|
|
42
|
-
export {
|
|
44
|
+
export { isOoo1NamespacePrefix as a, ooo1MediaTypeForExtension as c, Ooo1NamespacePrefix as i, ooo1MediaTypeForOdfMediaType as l, OOO1_NAMESPACES as n, isOoo1Package as o, Ooo1Extension as r, odfMediaTypeForOoo1MediaType as s, OOO1_MEDIA_TYPES as t };
|
|
@@ -22,6 +22,7 @@ declare const OOO1_NAMESPACES: Readonly<{
|
|
|
22
22
|
math: "http://www.w3.org/1998/Math/MathML";
|
|
23
23
|
}>;
|
|
24
24
|
type Ooo1NamespacePrefix = keyof typeof OOO1_NAMESPACES;
|
|
25
|
+
declare function isOoo1NamespacePrefix(prefix: string): prefix is Ooo1NamespacePrefix;
|
|
25
26
|
declare const OOO1_MEDIA_TYPES: Readonly<{
|
|
26
27
|
sxw: "application/vnd.sun.xml.writer";
|
|
27
28
|
stw: "application/vnd.sun.xml.writer.template";
|
|
@@ -37,6 +38,7 @@ declare const OOO1_MEDIA_TYPES: Readonly<{
|
|
|
37
38
|
type Ooo1Extension = keyof typeof OOO1_MEDIA_TYPES;
|
|
38
39
|
declare function ooo1MediaTypeForExtension(extension: string): string | undefined;
|
|
39
40
|
declare function odfMediaTypeForOoo1MediaType(mediaType: string): string | undefined;
|
|
41
|
+
declare function ooo1MediaTypeForOdfMediaType(mediaType: string): string | undefined;
|
|
40
42
|
declare function isOoo1Package(pkg: Package): boolean;
|
|
41
43
|
//#endregion
|
|
42
|
-
export {
|
|
44
|
+
export { isOoo1NamespacePrefix as a, ooo1MediaTypeForExtension as c, Ooo1NamespacePrefix as i, ooo1MediaTypeForOdfMediaType as l, OOO1_NAMESPACES as n, isOoo1Package as o, Ooo1Extension as r, odfMediaTypeForOoo1MediaType as s, OOO1_MEDIA_TYPES as t };
|
package/dist/ooo1/ns.cjs
CHANGED
|
@@ -22,6 +22,9 @@ const OOO1_NAMESPACES = Object.freeze({
|
|
|
22
22
|
dc: "http://purl.org/dc/elements/1.1/",
|
|
23
23
|
math: "http://www.w3.org/1998/Math/MathML"
|
|
24
24
|
});
|
|
25
|
+
function isOoo1NamespacePrefix(prefix) {
|
|
26
|
+
return Object.hasOwn(OOO1_NAMESPACES, prefix);
|
|
27
|
+
}
|
|
25
28
|
const OOO1_ONLY_NAMESPACE_URIS = new Set(Object.values(OOO1_NAMESPACES).filter((uri) => uri.startsWith("http://openoffice.org/")));
|
|
26
29
|
const OOO1_MEDIA_TYPES = Object.freeze({
|
|
27
30
|
sxw: "application/vnd.sun.xml.writer",
|
|
@@ -57,6 +60,10 @@ const ODF_MEDIA_TYPE_BY_OOO1_MEDIA_TYPE = /* @__PURE__ */ new Map([
|
|
|
57
60
|
function odfMediaTypeForOoo1MediaType(mediaType) {
|
|
58
61
|
return ODF_MEDIA_TYPE_BY_OOO1_MEDIA_TYPE.get(mediaType);
|
|
59
62
|
}
|
|
63
|
+
const OOO1_MEDIA_TYPE_BY_ODF_MEDIA_TYPE = new Map([...ODF_MEDIA_TYPE_BY_OOO1_MEDIA_TYPE.entries()].map(([ooo1MediaType, odfMediaType]) => [odfMediaType, ooo1MediaType]));
|
|
64
|
+
function ooo1MediaTypeForOdfMediaType(mediaType) {
|
|
65
|
+
return OOO1_MEDIA_TYPE_BY_ODF_MEDIA_TYPE.get(mediaType);
|
|
66
|
+
}
|
|
60
67
|
function isOoo1Package(pkg) {
|
|
61
68
|
for (const part of Object.values(pkg.parts)) {
|
|
62
69
|
if (part.kind !== "xml") continue;
|
|
@@ -69,6 +76,8 @@ function isOoo1Package(pkg) {
|
|
|
69
76
|
//#endregion
|
|
70
77
|
exports.OOO1_MEDIA_TYPES = OOO1_MEDIA_TYPES;
|
|
71
78
|
exports.OOO1_NAMESPACES = OOO1_NAMESPACES;
|
|
79
|
+
exports.isOoo1NamespacePrefix = isOoo1NamespacePrefix;
|
|
72
80
|
exports.isOoo1Package = isOoo1Package;
|
|
73
81
|
exports.odfMediaTypeForOoo1MediaType = odfMediaTypeForOoo1MediaType;
|
|
74
82
|
exports.ooo1MediaTypeForExtension = ooo1MediaTypeForExtension;
|
|
83
|
+
exports.ooo1MediaTypeForOdfMediaType = ooo1MediaTypeForOdfMediaType;
|
package/dist/ooo1/ns.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { OOO1_MEDIA_TYPES, OOO1_NAMESPACES, Ooo1Extension, Ooo1NamespacePrefix, isOoo1Package, odfMediaTypeForOoo1MediaType, ooo1MediaTypeForExtension };
|
|
1
|
+
import { a as isOoo1NamespacePrefix, c as ooo1MediaTypeForExtension, i as Ooo1NamespacePrefix, l as ooo1MediaTypeForOdfMediaType, n as OOO1_NAMESPACES, o as isOoo1Package, r as Ooo1Extension, s as odfMediaTypeForOoo1MediaType, t as OOO1_MEDIA_TYPES } from "../ns-DrleaIZQ.cjs";
|
|
2
|
+
export { OOO1_MEDIA_TYPES, OOO1_NAMESPACES, Ooo1Extension, Ooo1NamespacePrefix, isOoo1NamespacePrefix, isOoo1Package, odfMediaTypeForOoo1MediaType, ooo1MediaTypeForExtension, ooo1MediaTypeForOdfMediaType };
|
package/dist/ooo1/ns.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { OOO1_MEDIA_TYPES, OOO1_NAMESPACES, Ooo1Extension, Ooo1NamespacePrefix, isOoo1Package, odfMediaTypeForOoo1MediaType, ooo1MediaTypeForExtension };
|
|
1
|
+
import { a as isOoo1NamespacePrefix, c as ooo1MediaTypeForExtension, i as Ooo1NamespacePrefix, l as ooo1MediaTypeForOdfMediaType, n as OOO1_NAMESPACES, o as isOoo1Package, r as Ooo1Extension, s as odfMediaTypeForOoo1MediaType, t as OOO1_MEDIA_TYPES } from "../ns-E0TfX9tZ.js";
|
|
2
|
+
export { OOO1_MEDIA_TYPES, OOO1_NAMESPACES, Ooo1Extension, Ooo1NamespacePrefix, isOoo1NamespacePrefix, isOoo1Package, odfMediaTypeForOoo1MediaType, ooo1MediaTypeForExtension, ooo1MediaTypeForOdfMediaType };
|
package/dist/ooo1/ns.js
CHANGED
|
@@ -21,6 +21,9 @@ const OOO1_NAMESPACES = Object.freeze({
|
|
|
21
21
|
dc: "http://purl.org/dc/elements/1.1/",
|
|
22
22
|
math: "http://www.w3.org/1998/Math/MathML"
|
|
23
23
|
});
|
|
24
|
+
function isOoo1NamespacePrefix(prefix) {
|
|
25
|
+
return Object.hasOwn(OOO1_NAMESPACES, prefix);
|
|
26
|
+
}
|
|
24
27
|
const OOO1_ONLY_NAMESPACE_URIS = new Set(Object.values(OOO1_NAMESPACES).filter((uri) => uri.startsWith("http://openoffice.org/")));
|
|
25
28
|
const OOO1_MEDIA_TYPES = Object.freeze({
|
|
26
29
|
sxw: "application/vnd.sun.xml.writer",
|
|
@@ -56,6 +59,10 @@ const ODF_MEDIA_TYPE_BY_OOO1_MEDIA_TYPE = /* @__PURE__ */ new Map([
|
|
|
56
59
|
function odfMediaTypeForOoo1MediaType(mediaType) {
|
|
57
60
|
return ODF_MEDIA_TYPE_BY_OOO1_MEDIA_TYPE.get(mediaType);
|
|
58
61
|
}
|
|
62
|
+
const OOO1_MEDIA_TYPE_BY_ODF_MEDIA_TYPE = new Map([...ODF_MEDIA_TYPE_BY_OOO1_MEDIA_TYPE.entries()].map(([ooo1MediaType, odfMediaType]) => [odfMediaType, ooo1MediaType]));
|
|
63
|
+
function ooo1MediaTypeForOdfMediaType(mediaType) {
|
|
64
|
+
return OOO1_MEDIA_TYPE_BY_ODF_MEDIA_TYPE.get(mediaType);
|
|
65
|
+
}
|
|
59
66
|
function isOoo1Package(pkg) {
|
|
60
67
|
for (const part of Object.values(pkg.parts)) {
|
|
61
68
|
if (part.kind !== "xml") continue;
|
|
@@ -66,4 +73,4 @@ function isOoo1Package(pkg) {
|
|
|
66
73
|
return false;
|
|
67
74
|
}
|
|
68
75
|
//#endregion
|
|
69
|
-
export { OOO1_MEDIA_TYPES, OOO1_NAMESPACES, isOoo1Package, odfMediaTypeForOoo1MediaType, ooo1MediaTypeForExtension };
|
|
76
|
+
export { OOO1_MEDIA_TYPES, OOO1_NAMESPACES, isOoo1NamespacePrefix, isOoo1Package, odfMediaTypeForOoo1MediaType, ooo1MediaTypeForExtension, ooo1MediaTypeForOdfMediaType };
|
package/dist/ooo1/properties.cjs
CHANGED
|
@@ -16,6 +16,7 @@ const PROPERTIES_ELEMENT_TAG = {
|
|
|
16
16
|
"list-level": "style:list-level-properties",
|
|
17
17
|
chart: "style:chart-properties"
|
|
18
18
|
};
|
|
19
|
+
const ALL_PROPERTIES_ELEMENT_TAGS = new Set(Object.values(PROPERTIES_ELEMENT_TAG));
|
|
19
20
|
const PROPERTY_TYPES_BY_FAMILY = /* @__PURE__ */ new Map([
|
|
20
21
|
["graphic", [
|
|
21
22
|
"graphic",
|
|
@@ -400,6 +401,35 @@ function splitStyleProperties(properties, candidates) {
|
|
|
400
401
|
}
|
|
401
402
|
return out;
|
|
402
403
|
}
|
|
404
|
+
function mergeStyleProperties(children) {
|
|
405
|
+
const attributes = [];
|
|
406
|
+
const propertyChildren = [];
|
|
407
|
+
const rest = [];
|
|
408
|
+
let found = false;
|
|
409
|
+
for (const child of children) {
|
|
410
|
+
if (child.type === "element" && ALL_PROPERTIES_ELEMENT_TAGS.has(child.tag)) {
|
|
411
|
+
found = true;
|
|
412
|
+
attributes.push(...child.attributes);
|
|
413
|
+
propertyChildren.push(...child.children);
|
|
414
|
+
continue;
|
|
415
|
+
}
|
|
416
|
+
rest.push(child);
|
|
417
|
+
}
|
|
418
|
+
if (!found) return {
|
|
419
|
+
merged: void 0,
|
|
420
|
+
rest: [...children]
|
|
421
|
+
};
|
|
422
|
+
return {
|
|
423
|
+
merged: {
|
|
424
|
+
type: "element",
|
|
425
|
+
tag: "style:properties",
|
|
426
|
+
attributes,
|
|
427
|
+
children: propertyChildren
|
|
428
|
+
},
|
|
429
|
+
rest
|
|
430
|
+
};
|
|
431
|
+
}
|
|
403
432
|
//#endregion
|
|
433
|
+
exports.mergeStyleProperties = mergeStyleProperties;
|
|
404
434
|
exports.propertyTypesForContainer = propertyTypesForContainer;
|
|
405
435
|
exports.splitStyleProperties = splitStyleProperties;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { l as XmlElement } from "../node-B6JX5CRX.cjs";
|
|
1
|
+
import { d as XmlNode, l as XmlElement } from "../node-B6JX5CRX.cjs";
|
|
2
2
|
//#region src/ooo1/properties.d.ts
|
|
3
3
|
type Ooo1PropertyType = "graphic" | "drawing-page" | "page-layout" | "header-footer" | "text" | "paragraph" | "ruby" | "section" | "table" | "table-column" | "table-row" | "table-cell" | "list-level" | "chart";
|
|
4
4
|
declare function propertyTypesForContainer(container: XmlElement): readonly Ooo1PropertyType[] | undefined;
|
|
5
5
|
declare function splitStyleProperties(properties: XmlElement, candidates: readonly Ooo1PropertyType[]): XmlElement[];
|
|
6
|
+
declare function mergeStyleProperties(children: readonly XmlNode[]): {
|
|
7
|
+
readonly merged: XmlElement | undefined;
|
|
8
|
+
readonly rest: XmlNode[];
|
|
9
|
+
};
|
|
6
10
|
//#endregion
|
|
7
|
-
export { Ooo1PropertyType, propertyTypesForContainer, splitStyleProperties };
|
|
11
|
+
export { Ooo1PropertyType, mergeStyleProperties, propertyTypesForContainer, splitStyleProperties };
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { l as XmlElement } from "../node-B6JX5CRX.js";
|
|
1
|
+
import { d as XmlNode, l as XmlElement } from "../node-B6JX5CRX.js";
|
|
2
2
|
//#region src/ooo1/properties.d.ts
|
|
3
3
|
type Ooo1PropertyType = "graphic" | "drawing-page" | "page-layout" | "header-footer" | "text" | "paragraph" | "ruby" | "section" | "table" | "table-column" | "table-row" | "table-cell" | "list-level" | "chart";
|
|
4
4
|
declare function propertyTypesForContainer(container: XmlElement): readonly Ooo1PropertyType[] | undefined;
|
|
5
5
|
declare function splitStyleProperties(properties: XmlElement, candidates: readonly Ooo1PropertyType[]): XmlElement[];
|
|
6
|
+
declare function mergeStyleProperties(children: readonly XmlNode[]): {
|
|
7
|
+
readonly merged: XmlElement | undefined;
|
|
8
|
+
readonly rest: XmlNode[];
|
|
9
|
+
};
|
|
6
10
|
//#endregion
|
|
7
|
-
export { Ooo1PropertyType, propertyTypesForContainer, splitStyleProperties };
|
|
11
|
+
export { Ooo1PropertyType, mergeStyleProperties, propertyTypesForContainer, splitStyleProperties };
|