documents.js 1.61.0 → 1.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +120 -47
- package/dist/{blr-types-CYYC3yYU.d.cts → blr-types-DVgO1DQ9.d.cts} +1 -1
- package/dist/{blr-types-CYYC3yYU.d.ts → blr-types-DVgO1DQ9.d.ts} +1 -1
- package/dist/convert/capability.cjs +1 -0
- package/dist/convert/capability.d.cts +1 -1
- package/dist/convert/capability.d.ts +1 -1
- package/dist/convert/capability.js +1 -0
- package/dist/convert/convert.cjs +92 -38
- package/dist/convert/convert.d.cts +11 -4
- package/dist/convert/convert.d.ts +11 -4
- package/dist/convert/convert.js +93 -39
- package/dist/convert/local.cjs +15 -2
- package/dist/convert/local.js +15 -2
- package/dist/convert/port.d.cts +8 -4
- package/dist/convert/port.d.ts +8 -4
- package/dist/edit/docx/content.cjs +75 -13
- package/dist/edit/docx/content.d.cts +8 -2
- package/dist/edit/docx/content.d.ts +8 -2
- package/dist/edit/docx/content.js +75 -13
- package/dist/edit/docx/paragraph.cjs +14 -0
- package/dist/edit/docx/paragraph.d.cts +5 -0
- package/dist/edit/docx/paragraph.d.ts +5 -0
- package/dist/edit/docx/paragraph.js +14 -0
- package/dist/edit/docx/run.cjs +1 -1
- package/dist/edit/docx/run.js +1 -1
- package/dist/edit/docx/table.cjs +41 -0
- package/dist/edit/docx/table.d.cts +7 -1
- package/dist/edit/docx/table.d.ts +7 -1
- package/dist/edit/docx/table.js +42 -1
- package/dist/edit/geometry.cjs +38 -0
- package/dist/edit/geometry.d.cts +7 -0
- package/dist/edit/geometry.d.ts +7 -0
- package/dist/edit/geometry.js +36 -0
- package/dist/edit/odg/content.cjs +15 -12
- package/dist/edit/odg/content.js +15 -12
- package/dist/edit/odg/editor.d.cts +1 -1
- package/dist/edit/odg/editor.d.ts +1 -1
- package/dist/edit/odg/page.d.cts +3 -3
- package/dist/edit/odg/page.d.ts +3 -3
- package/dist/edit/odg/vector.cjs +22 -13
- package/dist/edit/odg/vector.d.cts +1 -1
- package/dist/edit/odg/vector.d.ts +1 -1
- package/dist/edit/odg/vector.js +23 -14
- package/dist/edit/odp/content.cjs +15 -0
- package/dist/edit/odp/content.js +16 -1
- package/dist/edit/odp/editor.d.cts +1 -1
- package/dist/edit/odp/editor.d.ts +1 -1
- package/dist/edit/odp/image.d.cts +1 -1
- package/dist/edit/odp/image.d.ts +1 -1
- package/dist/edit/odp/shape.cjs +11 -30
- package/dist/edit/odp/shape.d.cts +2 -2
- package/dist/edit/odp/shape.d.ts +2 -2
- package/dist/edit/odp/shape.js +13 -33
- package/dist/edit/odp/slide.cjs +11 -0
- package/dist/edit/odp/slide.d.cts +14 -4
- package/dist/edit/odp/slide.d.ts +14 -4
- package/dist/edit/odp/slide.js +12 -1
- package/dist/edit/odt/content.cjs +56 -16
- package/dist/edit/odt/content.d.cts +4 -2
- package/dist/edit/odt/content.d.ts +4 -2
- package/dist/edit/odt/content.js +56 -17
- package/dist/edit/odt/editor.d.cts +1 -1
- package/dist/edit/odt/editor.d.ts +1 -1
- package/dist/edit/odt/table.cjs +36 -0
- package/dist/edit/odt/table.d.cts +1 -36
- package/dist/edit/odt/table.d.ts +1 -36
- package/dist/edit/odt/table.js +37 -1
- package/dist/edit/pptx/content.cjs +71 -3
- package/dist/edit/pptx/content.js +71 -3
- package/dist/edit/pptx/editor.d.cts +1 -1
- package/dist/edit/pptx/editor.d.ts +1 -1
- package/dist/edit/pptx/image.d.cts +1 -1
- package/dist/edit/pptx/image.d.ts +1 -1
- package/dist/edit/pptx/shape.cjs +23 -1
- package/dist/edit/pptx/shape.d.cts +2 -2
- package/dist/edit/pptx/shape.d.ts +2 -2
- package/dist/edit/pptx/shape.js +23 -3
- package/dist/edit/pptx/slide.cjs +10 -1
- package/dist/edit/pptx/slide.d.cts +11 -4
- package/dist/edit/pptx/slide.d.ts +11 -4
- package/dist/edit/pptx/slide.js +10 -1
- package/dist/edit/pptx/table.cjs +136 -0
- package/dist/edit/pptx/table.d.cts +2 -0
- package/dist/edit/pptx/table.d.ts +2 -0
- package/dist/edit/pptx/table.js +131 -0
- package/dist/firebird/backup.d.cts +1 -1
- package/dist/firebird/backup.d.ts +1 -1
- package/dist/firebird/blr-types.cjs +2 -2
- package/dist/firebird/blr-types.d.cts +1 -1
- package/dist/firebird/blr-types.d.ts +1 -1
- package/dist/firebird/blr-types.js +2 -2
- package/dist/firebird/data.cjs +68 -14
- package/dist/firebird/data.d.cts +1 -1
- package/dist/firebird/data.d.ts +1 -1
- package/dist/firebird/data.js +68 -14
- package/dist/firebird/schema.cjs +13 -1
- package/dist/firebird/schema.d.cts +1 -1
- package/dist/firebird/schema.d.ts +1 -1
- package/dist/firebird/schema.js +13 -1
- package/dist/fonts/obfuscation.cjs +50 -0
- package/dist/fonts/obfuscation.d.cts +9 -0
- package/dist/fonts/obfuscation.d.ts +9 -0
- package/dist/fonts/obfuscation.js +46 -0
- package/dist/fonts/odf.cjs +86 -0
- package/dist/fonts/odf.d.cts +9 -0
- package/dist/fonts/odf.d.ts +9 -0
- package/dist/fonts/odf.js +84 -0
- package/dist/fonts/ooxml.cjs +129 -0
- package/dist/fonts/ooxml.d.cts +9 -0
- package/dist/fonts/ooxml.d.ts +9 -0
- package/dist/fonts/ooxml.js +127 -0
- package/dist/fonts/registry.cjs +18 -0
- package/dist/fonts/registry.d.cts +2 -0
- package/dist/fonts/registry.d.ts +2 -0
- package/dist/fonts/registry.js +16 -0
- package/dist/{geometry-DvwdrIij.d.cts → geometry-DaJr8yQW.d.cts} +2 -2
- package/dist/{geometry-DvwdrIij.d.ts → geometry-DaJr8yQW.d.ts} +2 -2
- package/dist/hsqldb/binary-script.cjs +154 -0
- package/dist/hsqldb/binary-script.d.cts +15 -0
- package/dist/hsqldb/binary-script.d.ts +15 -0
- package/dist/hsqldb/binary-script.js +151 -0
- package/dist/hsqldb/cache.cjs +18 -11
- package/dist/hsqldb/cache.d.cts +9 -4
- package/dist/hsqldb/cache.d.ts +9 -4
- package/dist/hsqldb/cache.js +18 -11
- package/dist/hsqldb/rowformat.cjs +60 -16
- package/dist/hsqldb/rowformat.d.cts +2 -21
- package/dist/hsqldb/rowformat.d.ts +2 -21
- package/dist/hsqldb/rowformat.js +60 -17
- package/dist/{image-BZDy72Jb.d.cts → image-7snmKIxn.d.cts} +1 -1
- package/dist/{image-B-xQWYYS.d.ts → image-Cs8xF753.d.ts} +1 -1
- package/dist/{image-CeqwL-Qs.d.ts → image-DHcA9kaK.d.ts} +1 -1
- package/dist/{image-DWX6cNOD.d.cts → image-M5SezZVI.d.cts} +1 -1
- package/dist/index.cjs +86 -3
- package/dist/index.d.cts +33 -21
- package/dist/index.d.ts +33 -21
- package/dist/index.js +18 -5
- package/dist/layout/cell-typing.cjs +209 -0
- package/dist/layout/cell-typing.d.cts +22 -0
- package/dist/layout/cell-typing.d.ts +22 -0
- package/dist/layout/cell-typing.js +208 -0
- package/dist/layout/drawing.cjs +193 -17
- package/dist/layout/drawing.js +193 -17
- package/dist/layout/engine.cjs +46 -29
- package/dist/layout/engine.d.cts +0 -2
- package/dist/layout/engine.d.ts +0 -2
- package/dist/layout/engine.js +47 -30
- package/dist/layout/lattice.cjs +139 -0
- package/dist/layout/lattice.d.cts +20 -0
- package/dist/layout/lattice.d.ts +20 -0
- package/dist/layout/lattice.js +135 -0
- package/dist/layout/reconstruct.cjs +176 -113
- package/dist/layout/reconstruct.d.cts +2 -0
- package/dist/layout/reconstruct.d.ts +2 -0
- package/dist/layout/reconstruct.js +173 -110
- package/dist/layout/shared.cjs +52 -0
- package/dist/layout/shared.d.cts +4 -2
- package/dist/layout/shared.d.ts +4 -2
- package/dist/layout/shared.js +51 -1
- package/dist/layout/sheets.cjs +45 -11
- package/dist/layout/sheets.js +46 -12
- package/dist/layout/slides.cjs +7 -7
- package/dist/layout/slides.d.cts +0 -3
- package/dist/layout/slides.d.ts +0 -3
- package/dist/layout/slides.js +7 -7
- package/dist/markdown/write.cjs +19 -6
- package/dist/markdown/write.js +19 -6
- package/dist/mathml/layout.cjs +2 -2
- package/dist/mathml/layout.d.cts +1 -1
- package/dist/mathml/layout.d.ts +1 -1
- package/dist/mathml/layout.js +2 -2
- package/dist/model/embedded-drawing.cjs +32 -0
- package/dist/model/embedded-drawing.d.cts +8 -0
- package/dist/model/embedded-drawing.d.ts +8 -0
- package/dist/model/embedded-drawing.js +30 -0
- package/dist/model/formula.cjs +31 -0
- package/dist/model/formula.d.cts +6 -6
- package/dist/model/formula.d.ts +6 -6
- package/dist/model/formula.js +27 -0
- package/dist/model/geometry.d.cts +1 -1
- package/dist/model/geometry.d.ts +1 -1
- package/dist/model/paint-order.cjs +15 -0
- package/dist/model/paint-order.d.cts +14 -0
- package/dist/model/paint-order.d.ts +14 -0
- package/dist/model/paint-order.js +14 -0
- package/dist/odb/components.cjs +12 -0
- package/dist/odb/components.d.cts +6 -0
- package/dist/odb/components.d.ts +6 -0
- package/dist/odb/components.js +10 -0
- package/dist/odb/read.cjs +11 -7
- package/dist/odb/read.d.cts +3 -2
- package/dist/odb/read.d.ts +3 -2
- package/dist/odb/read.js +11 -7
- package/dist/odf/formula/detect.cjs +86 -18
- package/dist/odf/formula/detect.d.cts +10 -6
- package/dist/odf/formula/detect.d.ts +10 -6
- package/dist/odf/formula/detect.js +86 -19
- package/dist/odf/formula/read.cjs +4 -16
- package/dist/odf/formula/read.d.cts +4 -8
- package/dist/odf/formula/read.d.ts +4 -8
- package/dist/odf/formula/read.js +5 -17
- package/dist/odf/odp/read.cjs +9 -19
- package/dist/odf/odp/read.d.cts +2 -7
- package/dist/odf/odp/read.d.ts +2 -7
- package/dist/odf/odp/read.js +10 -20
- package/dist/odf/odt/read.cjs +63 -23
- package/dist/odf/odt/read.d.cts +2 -7
- package/dist/odf/odt/read.d.ts +2 -7
- package/dist/odf/odt/read.js +64 -24
- package/dist/omml/write.cjs +258 -0
- package/dist/omml/write.d.cts +2 -0
- package/dist/omml/write.d.ts +2 -0
- package/dist/omml/write.js +256 -0
- package/dist/registry-CrSqLIcn.d.ts +19 -0
- package/dist/registry-CtPhMD0f.d.cts +19 -0
- package/dist/rowformat-Cl2exlEh.d.cts +25 -0
- package/dist/rowformat-Cl2exlEh.d.ts +25 -0
- package/dist/{schema-Acco3Ezi.d.cts → schema-BeR_KJ0X.d.cts} +3 -1
- package/dist/{schema-VkAA6pF5.d.ts → schema-CSKwSb_v.d.ts} +3 -1
- package/dist/{shape-BUfjw5eZ.d.cts → shape-BhkP6HB8.d.cts} +6 -2
- package/dist/{shape-CTkl6kt8.d.ts → shape-BkVcwPcf.d.ts} +6 -2
- package/dist/{shape-BfN3m52m.d.ts → shape-CVXedeL7.d.ts} +3 -2
- package/dist/{shape-CN2ycxOo.d.cts → shape-CXZ6fejV.d.cts} +3 -2
- package/dist/table-C3CPZ--2.d.cts +35 -0
- package/dist/table-DjYcNOFm.d.cts +44 -0
- package/dist/table-DqfqMkVq.d.ts +44 -0
- package/dist/table-DvS_7UQS.d.ts +35 -0
- package/dist/{vector-ClohqsOe.d.cts → vector-Puuqu_IT.d.cts} +4 -0
- package/dist/{vector-ClohqsOe.d.ts → vector-Puuqu_IT.d.ts} +4 -0
- package/dist/write-DuyfnbL_.d.cts +16 -0
- package/dist/write-Zqwx6pka.d.ts +16 -0
- package/package.json +4 -4
- package/dist/odf/formula/placeholder.cjs +0 -36
- package/dist/odf/formula/placeholder.d.cts +0 -14
- package/dist/odf/formula/placeholder.d.ts +0 -14
- package/dist/odf/formula/placeholder.js +0 -36
package/dist/hsqldb/cache.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { n as HsqldbDecodeOptions } from "../rowformat-Cl2exlEh.js";
|
|
1
2
|
import { HsqldbColumn, HsqldbTable } from "./script.js";
|
|
2
3
|
import { ContentCellValue } from "document-schema.js";
|
|
3
4
|
//#region src/hsqldb/cache.d.ts
|
|
@@ -6,8 +7,12 @@ interface HsqldbCacheFileInfo {
|
|
|
6
7
|
readonly compatibleVersion: string | undefined;
|
|
7
8
|
}
|
|
8
9
|
declare function parseHsqldbProperties(text: string): HsqldbCacheFileInfo;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
interface HsqldbTableIndexRoots {
|
|
11
|
+
readonly rootPosition: number;
|
|
12
|
+
readonly indexCount: number;
|
|
13
|
+
}
|
|
14
|
+
declare function parseHsqldbIndexRoots(scriptText: string): ReadonlyMap<string, HsqldbTableIndexRoots>;
|
|
15
|
+
declare function readHsqldbCachedTableRows(dataBytes: Uint8Array<ArrayBuffer>, roots: HsqldbTableIndexRoots, cacheFileScale: number, columns: readonly HsqldbColumn[], options?: HsqldbDecodeOptions): (readonly ContentCellValue[])[];
|
|
16
|
+
declare function decodeHsqldbCachedTables(tables: readonly HsqldbTable[], scriptText: string, dataBytes: Uint8Array<ArrayBuffer>, propertiesText: string, options?: HsqldbDecodeOptions): readonly HsqldbTable[];
|
|
12
17
|
//#endregion
|
|
13
|
-
export { HsqldbCacheFileInfo, decodeHsqldbCachedTables, parseHsqldbIndexRoots, parseHsqldbProperties, readHsqldbCachedTableRows };
|
|
18
|
+
export { HsqldbCacheFileInfo, HsqldbTableIndexRoots, decodeHsqldbCachedTables, parseHsqldbIndexRoots, parseHsqldbProperties, readHsqldbCachedTableRows };
|
package/dist/hsqldb/cache.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HsqldbDataCursor, HsqldbRowFormatError, readHsqldbColumnValue, resolveHsqldbTypeCode } from "./rowformat.js";
|
|
2
2
|
//#region src/hsqldb/cache.ts
|
|
3
3
|
const SUPPORTED_COMPATIBLE_VERSION_PREFIXES = ["1.7.", "1.8."];
|
|
4
|
+
const DISK_NODE_SIZE_BYTES = 16;
|
|
4
5
|
function parseHsqldbProperties(text) {
|
|
5
6
|
const props = /* @__PURE__ */ new Map();
|
|
6
7
|
for (const rawLine of text.split("\n")) {
|
|
@@ -31,17 +32,22 @@ function parseHsqldbIndexRoots(scriptText) {
|
|
|
31
32
|
const tokensText = match[2] ?? "";
|
|
32
33
|
const tableName = unquoteIdentifier(rawName).toUpperCase();
|
|
33
34
|
const tokens = tokensText.trim().length === 0 ? [] : tokensText.trim().split(/\s+/);
|
|
34
|
-
if (tokens.length
|
|
35
|
+
if (tokens.length < 2) throw new HsqldbRowFormatError(`table "${tableName}"'s SET TABLE...INDEX line has ${tokens.length} token(s) -- every such line carries at least one index root position followed by the table's own identity-sequence value`);
|
|
36
|
+
const indexCount = tokens.length - 1;
|
|
35
37
|
const rootToken = tokens[0] ?? "";
|
|
36
|
-
const
|
|
37
|
-
if (!Number.isInteger(
|
|
38
|
-
roots.set(tableName,
|
|
38
|
+
const rootPosition = Number(rootToken);
|
|
39
|
+
if (!Number.isInteger(rootPosition)) throw new HsqldbRowFormatError(`table "${tableName}"'s SET TABLE...INDEX line has a non-integer root position "${rootToken}"`);
|
|
40
|
+
roots.set(tableName, {
|
|
41
|
+
rootPosition,
|
|
42
|
+
indexCount
|
|
43
|
+
});
|
|
39
44
|
}
|
|
40
45
|
return roots;
|
|
41
46
|
}
|
|
42
|
-
function readHsqldbCachedTableRows(dataBytes,
|
|
47
|
+
function readHsqldbCachedTableRows(dataBytes, roots, cacheFileScale, columns, options) {
|
|
43
48
|
const typeCodes = columns.map((column) => resolveHsqldbTypeCode(column.type));
|
|
44
49
|
const results = [];
|
|
50
|
+
const trailingNodeBytes = (roots.indexCount - 1) * DISK_NODE_SIZE_BYTES;
|
|
45
51
|
function visit(pos) {
|
|
46
52
|
if (pos <= 0) return;
|
|
47
53
|
const byteOffset = pos * cacheFileScale;
|
|
@@ -54,26 +60,27 @@ function readHsqldbCachedTableRows(dataBytes, rootPos, cacheFileScale, columns)
|
|
|
54
60
|
const iLeft = cursor.readInt32();
|
|
55
61
|
const iRight = cursor.readInt32();
|
|
56
62
|
cursor.readInt32();
|
|
63
|
+
cursor.position += trailingNodeBytes;
|
|
57
64
|
const values = columns.map((_column, index) => {
|
|
58
65
|
const typeCode = typeCodes[index];
|
|
59
66
|
if (typeCode === void 0) throw new HsqldbRowFormatError("internal error: column/type-code alignment failure");
|
|
60
|
-
return readHsqldbColumnValue(cursor, typeCode);
|
|
67
|
+
return readHsqldbColumnValue(cursor, typeCode, options);
|
|
61
68
|
});
|
|
62
69
|
if (cursor.position > rowEnd) throw new HsqldbRowFormatError(`row at position ${pos} overran its own declared storage size (consumed ${cursor.position - byteOffset} bytes, declared ${storageSize})`);
|
|
63
70
|
visit(iLeft);
|
|
64
71
|
results.push(values);
|
|
65
72
|
visit(iRight);
|
|
66
73
|
}
|
|
67
|
-
visit(
|
|
74
|
+
visit(roots.rootPosition);
|
|
68
75
|
return results;
|
|
69
76
|
}
|
|
70
|
-
function decodeHsqldbCachedTables(tables, scriptText, dataBytes, propertiesText) {
|
|
77
|
+
function decodeHsqldbCachedTables(tables, scriptText, dataBytes, propertiesText, options) {
|
|
71
78
|
const { cacheFileScale } = parseHsqldbProperties(propertiesText);
|
|
72
79
|
const roots = parseHsqldbIndexRoots(scriptText);
|
|
73
80
|
return tables.map((table) => {
|
|
74
|
-
const
|
|
75
|
-
if (
|
|
76
|
-
const rows = readHsqldbCachedTableRows(dataBytes,
|
|
81
|
+
const tableRoots = roots.get(table.tableName.toUpperCase());
|
|
82
|
+
if (tableRoots === void 0) return table;
|
|
83
|
+
const rows = readHsqldbCachedTableRows(dataBytes, tableRoots, cacheFileScale, table.columns, options);
|
|
77
84
|
return {
|
|
78
85
|
...table,
|
|
79
86
|
rows
|
|
@@ -137,24 +137,67 @@ function decimalNumberFromUnscaled(unscaled, scale) {
|
|
|
137
137
|
function pad2(n) {
|
|
138
138
|
return String(n).padStart(2, "0");
|
|
139
139
|
}
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
const ZONED_FORMATTERS = /* @__PURE__ */ new Map();
|
|
141
|
+
function zonedFormatter(timeZone) {
|
|
142
|
+
const cached = ZONED_FORMATTERS.get(timeZone);
|
|
143
|
+
if (cached !== void 0) return cached;
|
|
144
|
+
const formatter = new Intl.DateTimeFormat("en-US-u-ca-iso8601", {
|
|
145
|
+
timeZone,
|
|
146
|
+
hourCycle: "h23",
|
|
147
|
+
year: "numeric",
|
|
148
|
+
month: "2-digit",
|
|
149
|
+
day: "2-digit",
|
|
150
|
+
hour: "2-digit",
|
|
151
|
+
minute: "2-digit",
|
|
152
|
+
second: "2-digit"
|
|
153
|
+
});
|
|
154
|
+
ZONED_FORMATTERS.set(timeZone, formatter);
|
|
155
|
+
return formatter;
|
|
142
156
|
}
|
|
143
|
-
function
|
|
144
|
-
const
|
|
145
|
-
|
|
157
|
+
function requiredPart(parts, type, timeZone) {
|
|
158
|
+
const raw = parts.get(type);
|
|
159
|
+
if (raw === void 0) throw new HsqldbRowFormatError(`Intl.DateTimeFormat produced no "${type}" part for time zone "${timeZone}"`);
|
|
160
|
+
return Number(raw);
|
|
146
161
|
}
|
|
147
|
-
function
|
|
148
|
-
const date =
|
|
149
|
-
|
|
150
|
-
|
|
162
|
+
function calendarFieldsAt(epochMillis, timeZone) {
|
|
163
|
+
const date = new Date(Number(epochMillis));
|
|
164
|
+
if (timeZone === void 0) return {
|
|
165
|
+
year: date.getFullYear(),
|
|
166
|
+
month: date.getMonth() + 1,
|
|
167
|
+
day: date.getDate(),
|
|
168
|
+
hours: date.getHours(),
|
|
169
|
+
minutes: date.getMinutes(),
|
|
170
|
+
seconds: date.getSeconds()
|
|
171
|
+
};
|
|
172
|
+
const parts = new Map(zonedFormatter(timeZone).formatToParts(date).map((part) => [part.type, part.value]));
|
|
173
|
+
return {
|
|
174
|
+
year: requiredPart(parts, "year", timeZone),
|
|
175
|
+
month: requiredPart(parts, "month", timeZone),
|
|
176
|
+
day: requiredPart(parts, "day", timeZone),
|
|
177
|
+
hours: requiredPart(parts, "hour", timeZone),
|
|
178
|
+
minutes: requiredPart(parts, "minute", timeZone),
|
|
179
|
+
seconds: requiredPart(parts, "second", timeZone)
|
|
180
|
+
};
|
|
151
181
|
}
|
|
152
|
-
function
|
|
153
|
-
|
|
154
|
-
|
|
182
|
+
function millisOfSecond(epochMillis) {
|
|
183
|
+
return Number((epochMillis % 1000n + 1000n) % 1000n);
|
|
184
|
+
}
|
|
185
|
+
function formatDate(epochMillis, timeZone) {
|
|
186
|
+
const { year, month, day } = calendarFieldsAt(epochMillis, timeZone);
|
|
187
|
+
return `${year}-${pad2(month)}-${pad2(day)}`;
|
|
188
|
+
}
|
|
189
|
+
function formatTime(epochMillis, timeZone) {
|
|
190
|
+
const { hours, minutes, seconds } = calendarFieldsAt(epochMillis, timeZone);
|
|
191
|
+
const base = `${pad2(hours)}:${pad2(minutes)}:${pad2(seconds)}`;
|
|
192
|
+
const millis = millisOfSecond(epochMillis);
|
|
193
|
+
return millis === 0 ? base : `${base}.${String(millis).padStart(3, "0")}`;
|
|
194
|
+
}
|
|
195
|
+
function formatTimestamp(epochMillis, nanos, timeZone) {
|
|
196
|
+
const { year, month, day, hours, minutes, seconds } = calendarFieldsAt(epochMillis, timeZone);
|
|
197
|
+
const base = `${year}-${pad2(month)}-${pad2(day)} ${pad2(hours)}:${pad2(minutes)}:${pad2(seconds)}`;
|
|
155
198
|
return nanos === 0 ? base : `${base}.${String(nanos).padStart(9, "0")}`;
|
|
156
199
|
}
|
|
157
|
-
function readHsqldbColumnValue(cursor, typeCode) {
|
|
200
|
+
function readHsqldbColumnValue(cursor, typeCode, options) {
|
|
158
201
|
if (cursor.readUint8() === 0) return { kind: "empty" };
|
|
159
202
|
switch (typeCode) {
|
|
160
203
|
case 1:
|
|
@@ -202,15 +245,15 @@ function readHsqldbColumnValue(cursor, typeCode) {
|
|
|
202
245
|
};
|
|
203
246
|
case 91: return {
|
|
204
247
|
kind: "date",
|
|
205
|
-
value:
|
|
248
|
+
value: formatDate(cursor.readBigInt64(), options?.timeZone)
|
|
206
249
|
};
|
|
207
250
|
case 92: return {
|
|
208
251
|
kind: "time",
|
|
209
|
-
value:
|
|
252
|
+
value: formatTime(cursor.readBigInt64(), options?.timeZone)
|
|
210
253
|
};
|
|
211
254
|
case 93: return {
|
|
212
255
|
kind: "date",
|
|
213
|
-
value:
|
|
256
|
+
value: formatTimestamp(cursor.readBigInt64(), cursor.readInt32(), options?.timeZone)
|
|
214
257
|
};
|
|
215
258
|
default: throw new HsqldbRowFormatError(`unsupported SQL type code ${typeCode} while decoding a row value`);
|
|
216
259
|
}
|
|
@@ -219,4 +262,5 @@ function readHsqldbColumnValue(cursor, typeCode) {
|
|
|
219
262
|
exports.HsqldbDataCursor = HsqldbDataCursor;
|
|
220
263
|
exports.HsqldbRowFormatError = HsqldbRowFormatError;
|
|
221
264
|
exports.readHsqldbColumnValue = readHsqldbColumnValue;
|
|
265
|
+
exports.readModifiedUtf8 = readModifiedUtf8;
|
|
222
266
|
exports.resolveHsqldbTypeCode = resolveHsqldbTypeCode;
|
|
@@ -1,21 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare class HsqldbRowFormatError extends Error {
|
|
4
|
-
constructor(message: string);
|
|
5
|
-
}
|
|
6
|
-
declare function resolveHsqldbTypeCode(declaredType: string): number;
|
|
7
|
-
declare class HsqldbDataCursor {
|
|
8
|
-
private readonly bytes;
|
|
9
|
-
private readonly view;
|
|
10
|
-
position: number;
|
|
11
|
-
constructor(bytes: Uint8Array<ArrayBuffer>, offset?: number);
|
|
12
|
-
readUint8(): number;
|
|
13
|
-
readInt16(): number;
|
|
14
|
-
readInt32(): number;
|
|
15
|
-
readBigInt64(): bigint;
|
|
16
|
-
readFloat64(): number;
|
|
17
|
-
readBytes(length: number): Uint8Array<ArrayBuffer>;
|
|
18
|
-
}
|
|
19
|
-
declare function readHsqldbColumnValue(cursor: HsqldbDataCursor, typeCode: number): ContentCellValue;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { HsqldbDataCursor, HsqldbRowFormatError, readHsqldbColumnValue, resolveHsqldbTypeCode };
|
|
1
|
+
import { a as readModifiedUtf8, i as readHsqldbColumnValue, n as HsqldbDecodeOptions, o as resolveHsqldbTypeCode, r as HsqldbRowFormatError, t as HsqldbDataCursor } from "../rowformat-Cl2exlEh.cjs";
|
|
2
|
+
export { HsqldbDataCursor, HsqldbDecodeOptions, HsqldbRowFormatError, readHsqldbColumnValue, readModifiedUtf8, resolveHsqldbTypeCode };
|
|
@@ -1,21 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare class HsqldbRowFormatError extends Error {
|
|
4
|
-
constructor(message: string);
|
|
5
|
-
}
|
|
6
|
-
declare function resolveHsqldbTypeCode(declaredType: string): number;
|
|
7
|
-
declare class HsqldbDataCursor {
|
|
8
|
-
private readonly bytes;
|
|
9
|
-
private readonly view;
|
|
10
|
-
position: number;
|
|
11
|
-
constructor(bytes: Uint8Array<ArrayBuffer>, offset?: number);
|
|
12
|
-
readUint8(): number;
|
|
13
|
-
readInt16(): number;
|
|
14
|
-
readInt32(): number;
|
|
15
|
-
readBigInt64(): bigint;
|
|
16
|
-
readFloat64(): number;
|
|
17
|
-
readBytes(length: number): Uint8Array<ArrayBuffer>;
|
|
18
|
-
}
|
|
19
|
-
declare function readHsqldbColumnValue(cursor: HsqldbDataCursor, typeCode: number): ContentCellValue;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { HsqldbDataCursor, HsqldbRowFormatError, readHsqldbColumnValue, resolveHsqldbTypeCode };
|
|
1
|
+
import { a as readModifiedUtf8, i as readHsqldbColumnValue, n as HsqldbDecodeOptions, o as resolveHsqldbTypeCode, r as HsqldbRowFormatError, t as HsqldbDataCursor } from "../rowformat-Cl2exlEh.js";
|
|
2
|
+
export { HsqldbDataCursor, HsqldbDecodeOptions, HsqldbRowFormatError, readHsqldbColumnValue, readModifiedUtf8, resolveHsqldbTypeCode };
|
package/dist/hsqldb/rowformat.js
CHANGED
|
@@ -136,24 +136,67 @@ function decimalNumberFromUnscaled(unscaled, scale) {
|
|
|
136
136
|
function pad2(n) {
|
|
137
137
|
return String(n).padStart(2, "0");
|
|
138
138
|
}
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
const ZONED_FORMATTERS = /* @__PURE__ */ new Map();
|
|
140
|
+
function zonedFormatter(timeZone) {
|
|
141
|
+
const cached = ZONED_FORMATTERS.get(timeZone);
|
|
142
|
+
if (cached !== void 0) return cached;
|
|
143
|
+
const formatter = new Intl.DateTimeFormat("en-US-u-ca-iso8601", {
|
|
144
|
+
timeZone,
|
|
145
|
+
hourCycle: "h23",
|
|
146
|
+
year: "numeric",
|
|
147
|
+
month: "2-digit",
|
|
148
|
+
day: "2-digit",
|
|
149
|
+
hour: "2-digit",
|
|
150
|
+
minute: "2-digit",
|
|
151
|
+
second: "2-digit"
|
|
152
|
+
});
|
|
153
|
+
ZONED_FORMATTERS.set(timeZone, formatter);
|
|
154
|
+
return formatter;
|
|
141
155
|
}
|
|
142
|
-
function
|
|
143
|
-
const
|
|
144
|
-
|
|
156
|
+
function requiredPart(parts, type, timeZone) {
|
|
157
|
+
const raw = parts.get(type);
|
|
158
|
+
if (raw === void 0) throw new HsqldbRowFormatError(`Intl.DateTimeFormat produced no "${type}" part for time zone "${timeZone}"`);
|
|
159
|
+
return Number(raw);
|
|
145
160
|
}
|
|
146
|
-
function
|
|
147
|
-
const date =
|
|
148
|
-
|
|
149
|
-
|
|
161
|
+
function calendarFieldsAt(epochMillis, timeZone) {
|
|
162
|
+
const date = new Date(Number(epochMillis));
|
|
163
|
+
if (timeZone === void 0) return {
|
|
164
|
+
year: date.getFullYear(),
|
|
165
|
+
month: date.getMonth() + 1,
|
|
166
|
+
day: date.getDate(),
|
|
167
|
+
hours: date.getHours(),
|
|
168
|
+
minutes: date.getMinutes(),
|
|
169
|
+
seconds: date.getSeconds()
|
|
170
|
+
};
|
|
171
|
+
const parts = new Map(zonedFormatter(timeZone).formatToParts(date).map((part) => [part.type, part.value]));
|
|
172
|
+
return {
|
|
173
|
+
year: requiredPart(parts, "year", timeZone),
|
|
174
|
+
month: requiredPart(parts, "month", timeZone),
|
|
175
|
+
day: requiredPart(parts, "day", timeZone),
|
|
176
|
+
hours: requiredPart(parts, "hour", timeZone),
|
|
177
|
+
minutes: requiredPart(parts, "minute", timeZone),
|
|
178
|
+
seconds: requiredPart(parts, "second", timeZone)
|
|
179
|
+
};
|
|
150
180
|
}
|
|
151
|
-
function
|
|
152
|
-
|
|
153
|
-
|
|
181
|
+
function millisOfSecond(epochMillis) {
|
|
182
|
+
return Number((epochMillis % 1000n + 1000n) % 1000n);
|
|
183
|
+
}
|
|
184
|
+
function formatDate(epochMillis, timeZone) {
|
|
185
|
+
const { year, month, day } = calendarFieldsAt(epochMillis, timeZone);
|
|
186
|
+
return `${year}-${pad2(month)}-${pad2(day)}`;
|
|
187
|
+
}
|
|
188
|
+
function formatTime(epochMillis, timeZone) {
|
|
189
|
+
const { hours, minutes, seconds } = calendarFieldsAt(epochMillis, timeZone);
|
|
190
|
+
const base = `${pad2(hours)}:${pad2(minutes)}:${pad2(seconds)}`;
|
|
191
|
+
const millis = millisOfSecond(epochMillis);
|
|
192
|
+
return millis === 0 ? base : `${base}.${String(millis).padStart(3, "0")}`;
|
|
193
|
+
}
|
|
194
|
+
function formatTimestamp(epochMillis, nanos, timeZone) {
|
|
195
|
+
const { year, month, day, hours, minutes, seconds } = calendarFieldsAt(epochMillis, timeZone);
|
|
196
|
+
const base = `${year}-${pad2(month)}-${pad2(day)} ${pad2(hours)}:${pad2(minutes)}:${pad2(seconds)}`;
|
|
154
197
|
return nanos === 0 ? base : `${base}.${String(nanos).padStart(9, "0")}`;
|
|
155
198
|
}
|
|
156
|
-
function readHsqldbColumnValue(cursor, typeCode) {
|
|
199
|
+
function readHsqldbColumnValue(cursor, typeCode, options) {
|
|
157
200
|
if (cursor.readUint8() === 0) return { kind: "empty" };
|
|
158
201
|
switch (typeCode) {
|
|
159
202
|
case 1:
|
|
@@ -201,18 +244,18 @@ function readHsqldbColumnValue(cursor, typeCode) {
|
|
|
201
244
|
};
|
|
202
245
|
case 91: return {
|
|
203
246
|
kind: "date",
|
|
204
|
-
value:
|
|
247
|
+
value: formatDate(cursor.readBigInt64(), options?.timeZone)
|
|
205
248
|
};
|
|
206
249
|
case 92: return {
|
|
207
250
|
kind: "time",
|
|
208
|
-
value:
|
|
251
|
+
value: formatTime(cursor.readBigInt64(), options?.timeZone)
|
|
209
252
|
};
|
|
210
253
|
case 93: return {
|
|
211
254
|
kind: "date",
|
|
212
|
-
value:
|
|
255
|
+
value: formatTimestamp(cursor.readBigInt64(), cursor.readInt32(), options?.timeZone)
|
|
213
256
|
};
|
|
214
257
|
default: throw new HsqldbRowFormatError(`unsupported SQL type code ${typeCode} while decoding a row value`);
|
|
215
258
|
}
|
|
216
259
|
}
|
|
217
260
|
//#endregion
|
|
218
|
-
export { HsqldbDataCursor, HsqldbRowFormatError, readHsqldbColumnValue, resolveHsqldbTypeCode };
|
|
261
|
+
export { HsqldbDataCursor, HsqldbRowFormatError, readHsqldbColumnValue, readModifiedUtf8, resolveHsqldbTypeCode };
|
package/dist/index.cjs
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_model_geometry = require("./model/geometry.cjs");
|
|
3
3
|
const require_model_bytes = require("./model/bytes.cjs");
|
|
4
|
+
const require_mathml_nodes = require("./mathml/nodes.cjs");
|
|
5
|
+
const require_mathml_operators = require("./mathml/operators.cjs");
|
|
6
|
+
const require_mathml_variant = require("./mathml/variant.cjs");
|
|
7
|
+
const require_omml_write = require("./omml/write.cjs");
|
|
4
8
|
const require_edit_docx_run = require("./edit/docx/run.cjs");
|
|
5
9
|
const require_edit_docx_paragraph = require("./edit/docx/paragraph.cjs");
|
|
6
10
|
const require_edit_docx_table = require("./edit/docx/table.cjs");
|
|
7
11
|
const require_edit_docx_editor = require("./edit/docx/editor.cjs");
|
|
12
|
+
const require_model_formula = require("./model/formula.cjs");
|
|
8
13
|
const require_edit_docx_content = require("./edit/docx/content.cjs");
|
|
9
14
|
const require_edit_pptx_shape = require("./edit/pptx/shape.cjs");
|
|
15
|
+
const require_edit_pptx_table = require("./edit/pptx/table.cjs");
|
|
10
16
|
const require_edit_pptx_slide = require("./edit/pptx/slide.cjs");
|
|
11
17
|
const require_edit_pptx_editor = require("./edit/pptx/editor.cjs");
|
|
18
|
+
const require_model_embedded_drawing = require("./model/embedded-drawing.cjs");
|
|
12
19
|
const require_edit_pptx_content = require("./edit/pptx/content.cjs");
|
|
13
20
|
const require_edit_odt_run = require("./edit/odt/run.cjs");
|
|
14
21
|
const require_edit_odt_paragraph = require("./edit/odt/paragraph.cjs");
|
|
@@ -28,9 +35,10 @@ const require_edit_odg_vector = require("./edit/odg/vector.cjs");
|
|
|
28
35
|
const require_edit_odg_page = require("./edit/odg/page.cjs");
|
|
29
36
|
const require_edit_odg_editor = require("./edit/odg/editor.cjs");
|
|
30
37
|
const require_edit_odg_content = require("./edit/odg/content.cjs");
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
38
|
+
const require_fonts_obfuscation = require("./fonts/obfuscation.cjs");
|
|
39
|
+
const require_fonts_odf = require("./fonts/odf.cjs");
|
|
40
|
+
const require_fonts_ooxml = require("./fonts/ooxml.cjs");
|
|
41
|
+
const require_fonts_registry = require("./fonts/registry.cjs");
|
|
34
42
|
const require_mathml_layout = require("./mathml/layout.cjs");
|
|
35
43
|
const require_ooxml_docx_read = require("./ooxml/docx/read.cjs");
|
|
36
44
|
const require_ooxml_pptx_read = require("./ooxml/pptx/read.cjs");
|
|
@@ -47,10 +55,13 @@ const require_layout_slides = require("./layout/slides.cjs");
|
|
|
47
55
|
const require_ports_abort = require("./ports/abort.cjs");
|
|
48
56
|
const require_layout_sheets = require("./layout/sheets.cjs");
|
|
49
57
|
const require_layout_drawing = require("./layout/drawing.cjs");
|
|
58
|
+
const require_layout_cell_typing = require("./layout/cell-typing.cjs");
|
|
59
|
+
const require_layout_lattice = require("./layout/lattice.cjs");
|
|
50
60
|
const require_layout_reconstruct = require("./layout/reconstruct.cjs");
|
|
51
61
|
const require_hsqldb_script = require("./hsqldb/script.cjs");
|
|
52
62
|
const require_odb_csv = require("./odb/csv.cjs");
|
|
53
63
|
const require_hsqldb_rowformat = require("./hsqldb/rowformat.cjs");
|
|
64
|
+
const require_hsqldb_binary_script = require("./hsqldb/binary-script.cjs");
|
|
54
65
|
const require_hsqldb_cache = require("./hsqldb/cache.cjs");
|
|
55
66
|
const require_firebird_reader = require("./firebird/reader.cjs");
|
|
56
67
|
const require_firebird_blr_types = require("./firebird/blr-types.cjs");
|
|
@@ -61,10 +72,12 @@ const require_odb_read = require("./odb/read.cjs");
|
|
|
61
72
|
const require_odb_spreadsheet = require("./odb/spreadsheet.cjs");
|
|
62
73
|
const require_convert_convert = require("./convert/convert.cjs");
|
|
63
74
|
const require_convert_codec = require("./convert/codec.cjs");
|
|
75
|
+
const require_odb_components = require("./odb/components.cjs");
|
|
64
76
|
const require_convert_local = require("./convert/local.cjs");
|
|
65
77
|
const require_ports_clock = require("./ports/clock.cjs");
|
|
66
78
|
let ooxml_js = require("ooxml.js");
|
|
67
79
|
let document_schema_js = require("document-schema.js");
|
|
80
|
+
let odf_js = require("odf.js");
|
|
68
81
|
let pdf_codec = require("pdf-codec");
|
|
69
82
|
Object.defineProperty(exports, "AttributeSchema", {
|
|
70
83
|
enumerable: true,
|
|
@@ -302,6 +315,8 @@ exports.FirebirdCompositeRecordUnsupportedError = require_firebird_data.Firebird
|
|
|
302
315
|
exports.FirebirdDataParseError = require_firebird_data.FirebirdDataParseError;
|
|
303
316
|
exports.FirebirdSchemaParseError = require_firebird_schema.FirebirdSchemaParseError;
|
|
304
317
|
exports.FirebirdUnsupportedFieldTypeError = require_firebird_blr_types.FirebirdUnsupportedFieldTypeError;
|
|
318
|
+
exports.FontDeobfuscationError = require_fonts_obfuscation.FontDeobfuscationError;
|
|
319
|
+
exports.HsqldbBinaryScriptParseError = require_hsqldb_binary_script.HsqldbBinaryScriptParseError;
|
|
305
320
|
exports.HsqldbRowFormatError = require_hsqldb_rowformat.HsqldbRowFormatError;
|
|
306
321
|
exports.HsqldbScriptParseError = require_hsqldb_script.HsqldbScriptParseError;
|
|
307
322
|
Object.defineProperty(exports, "LAYOUT_FORMAT_VERSION", {
|
|
@@ -327,6 +342,7 @@ exports.OdbNoEmbeddedDataSourceError = require_odb_read.OdbNoEmbeddedDataSourceE
|
|
|
327
342
|
exports.OdbTableNotFoundError = require_odb_csv.OdbTableNotFoundError;
|
|
328
343
|
exports.OdbTableNotSpecifiedError = require_odb_csv.OdbTableNotSpecifiedError;
|
|
329
344
|
exports.OdbUnsupportedFormatError = require_odb_read.OdbUnsupportedFormatError;
|
|
345
|
+
exports.OdfEmbeddedFontError = require_fonts_odf.OdfEmbeddedFontError;
|
|
330
346
|
exports.OdgBoxVector = require_edit_odg_vector.OdgBoxVector;
|
|
331
347
|
exports.OdgBytesSchema = require_model_bytes.OdgBytesSchema;
|
|
332
348
|
exports.OdgEditor = require_edit_odg_editor.OdgEditor;
|
|
@@ -351,6 +367,7 @@ exports.OdtRun = require_edit_odt_run.OdtRun;
|
|
|
351
367
|
exports.OdtTable = require_edit_odt_table.OdtTable;
|
|
352
368
|
exports.OdtTableCell = require_edit_odt_table.OdtTableCell;
|
|
353
369
|
exports.OdtTableRow = require_edit_odt_table.OdtTableRow;
|
|
370
|
+
exports.OoxmlEmbeddedFontError = require_fonts_ooxml.OoxmlEmbeddedFontError;
|
|
354
371
|
Object.defineProperty(exports, "PAGE_SIZE_A4", {
|
|
355
372
|
enumerable: true,
|
|
356
373
|
get: function() {
|
|
@@ -392,6 +409,9 @@ exports.PptxBytesSchema = require_model_bytes.PptxBytesSchema;
|
|
|
392
409
|
exports.PptxEditor = require_edit_pptx_editor.PptxEditor;
|
|
393
410
|
exports.PptxShape = require_edit_pptx_shape.PptxShape;
|
|
394
411
|
exports.PptxSlide = require_edit_pptx_slide.PptxSlide;
|
|
412
|
+
exports.PptxTable = require_edit_pptx_table.PptxTable;
|
|
413
|
+
exports.PptxTableCell = require_edit_pptx_table.PptxTableCell;
|
|
414
|
+
exports.PptxTableRow = require_edit_pptx_table.PptxTableRow;
|
|
395
415
|
Object.defineProperty(exports, "SLIDE_SIZE_STANDARD", {
|
|
396
416
|
enumerable: true,
|
|
397
417
|
get: function() {
|
|
@@ -473,11 +493,15 @@ Object.defineProperty(exports, "base64ToBytes", {
|
|
|
473
493
|
}
|
|
474
494
|
});
|
|
475
495
|
exports.buildDocxPackage = require_edit_docx_content.buildDocxPackage;
|
|
496
|
+
exports.buildDrawingBlock = require_model_embedded_drawing.buildDrawingBlock;
|
|
497
|
+
exports.buildFormulaBlock = require_model_formula.buildFormulaBlock;
|
|
476
498
|
exports.buildMarkdownText = require_markdown_write.buildMarkdownText;
|
|
477
499
|
exports.buildOdgPackage = require_edit_odg_content.buildOdgPackage;
|
|
478
500
|
exports.buildOdpPackage = require_edit_odp_content.buildOdpPackage;
|
|
479
501
|
exports.buildOdsPackage = require_edit_ods_content.buildOdsPackage;
|
|
480
502
|
exports.buildOdtPackage = require_edit_odt_content.buildOdtPackage;
|
|
503
|
+
exports.buildOfficeMath = require_omml_write.buildOfficeMath;
|
|
504
|
+
exports.buildOfficeMathParagraph = require_omml_write.buildOfficeMathParagraph;
|
|
481
505
|
exports.buildPptxPackage = require_edit_pptx_content.buildPptxPackage;
|
|
482
506
|
Object.defineProperty(exports, "buildXml", {
|
|
483
507
|
enumerable: true,
|
|
@@ -519,13 +543,32 @@ exports.convertDrawingToLayout = require_layout_drawing.convertDrawingToLayout;
|
|
|
519
543
|
exports.convertPresentationToLayout = require_layout_slides.convertPresentationToLayout;
|
|
520
544
|
exports.convertSpreadsheetToLayout = require_layout_sheets.convertSpreadsheetToLayout;
|
|
521
545
|
exports.convertWordprocessingToLayout = require_layout_engine.convertWordprocessingToLayout;
|
|
546
|
+
exports.createDocumentFontRegistry = require_fonts_registry.createDocumentFontRegistry;
|
|
522
547
|
exports.createDocx = require_edit_docx_editor.createDocx;
|
|
548
|
+
Object.defineProperty(exports, "createFontMeasurer", {
|
|
549
|
+
enumerable: true,
|
|
550
|
+
get: function() {
|
|
551
|
+
return pdf_codec.createFontMeasurer;
|
|
552
|
+
}
|
|
553
|
+
});
|
|
554
|
+
Object.defineProperty(exports, "createFontRegistry", {
|
|
555
|
+
enumerable: true,
|
|
556
|
+
get: function() {
|
|
557
|
+
return pdf_codec.createFontRegistry;
|
|
558
|
+
}
|
|
559
|
+
});
|
|
523
560
|
exports.createLocalDocumentConverter = require_convert_local.createLocalDocumentConverter;
|
|
524
561
|
exports.createOdg = require_edit_odg_editor.createOdg;
|
|
525
562
|
exports.createOdp = require_edit_odp_editor.createOdp;
|
|
526
563
|
exports.createOds = require_edit_ods_editor.createOds;
|
|
527
564
|
exports.createOdt = require_edit_odt_editor.createOdt;
|
|
528
565
|
exports.createPptx = require_edit_pptx_editor.createPptx;
|
|
566
|
+
Object.defineProperty(exports, "createStandardFontMeasurer", {
|
|
567
|
+
enumerable: true,
|
|
568
|
+
get: function() {
|
|
569
|
+
return pdf_codec.createStandardFontMeasurer;
|
|
570
|
+
}
|
|
571
|
+
});
|
|
529
572
|
Object.defineProperty(exports, "decodeCompactPackage", {
|
|
530
573
|
enumerable: true,
|
|
531
574
|
get: function() {
|
|
@@ -546,6 +589,9 @@ Object.defineProperty(exports, "decodePackage", {
|
|
|
546
589
|
return ooxml_js.decodePackage;
|
|
547
590
|
}
|
|
548
591
|
});
|
|
592
|
+
exports.deobfuscateEmbeddedFont = require_fonts_obfuscation.deobfuscateEmbeddedFont;
|
|
593
|
+
exports.deriveFontKey = require_fonts_obfuscation.deriveFontKey;
|
|
594
|
+
exports.detectGridLattice = require_layout_lattice.detectGridLattice;
|
|
549
595
|
Object.defineProperty(exports, "documentFromJson", {
|
|
550
596
|
enumerable: true,
|
|
551
597
|
get: function() {
|
|
@@ -568,6 +614,7 @@ exports.docxPdfCodec = require_convert_codec.docxPdfCodec;
|
|
|
568
614
|
exports.docxToMarkdown = require_convert_convert.docxToMarkdown;
|
|
569
615
|
exports.docxToOdt = require_convert_convert.docxToOdt;
|
|
570
616
|
exports.docxToPdf = require_convert_convert.docxToPdf;
|
|
617
|
+
exports.drawingOfBlock = require_model_embedded_drawing.drawingOfBlock;
|
|
571
618
|
exports.elementChildren = require_mathml_nodes.elementChildren;
|
|
572
619
|
exports.elementLocalName = require_mathml_nodes.elementLocalName;
|
|
573
620
|
Object.defineProperty(exports, "elementsWithTag", {
|
|
@@ -589,9 +636,15 @@ Object.defineProperty(exports, "encodePackage", {
|
|
|
589
636
|
return ooxml_js.encodePackage;
|
|
590
637
|
}
|
|
591
638
|
});
|
|
639
|
+
exports.extractOdfEmbeddedFonts = require_fonts_odf.extractOdfEmbeddedFonts;
|
|
640
|
+
exports.extractOoxmlEmbeddedFonts = require_fonts_ooxml.extractOoxmlEmbeddedFonts;
|
|
641
|
+
exports.extractSourceFonts = require_fonts_registry.extractSourceFonts;
|
|
592
642
|
exports.firstChildByLocalName = require_mathml_nodes.firstChildByLocalName;
|
|
593
643
|
exports.fixedClock = require_ports_clock.fixedClock;
|
|
594
644
|
exports.flipY = require_model_geometry.flipY;
|
|
645
|
+
exports.formulaDocument = require_model_formula.formulaDocument;
|
|
646
|
+
exports.formulaOfBlock = require_model_formula.formulaOfBlock;
|
|
647
|
+
exports.formulaPlaceholderText = require_model_formula.formulaPlaceholderText;
|
|
595
648
|
Object.defineProperty(exports, "fromCompact", {
|
|
596
649
|
enumerable: true,
|
|
597
650
|
get: function() {
|
|
@@ -599,6 +652,8 @@ Object.defineProperty(exports, "fromCompact", {
|
|
|
599
652
|
}
|
|
600
653
|
});
|
|
601
654
|
exports.hsqldbCellDisplayText = require_hsqldb_script.displayTextFor;
|
|
655
|
+
exports.inferCellValue = require_layout_cell_typing.inferCellValue;
|
|
656
|
+
exports.inflateHsqldbCompressedScript = require_hsqldb_binary_script.inflateHsqldbCompressedScript;
|
|
602
657
|
Object.defineProperty(exports, "isCompactXmlNode", {
|
|
603
658
|
enumerable: true,
|
|
604
659
|
get: function() {
|
|
@@ -633,6 +688,7 @@ Object.defineProperty(exports, "loadMathFont", {
|
|
|
633
688
|
}
|
|
634
689
|
});
|
|
635
690
|
exports.localName = require_mathml_nodes.localName;
|
|
691
|
+
exports.looksLikeSfnt = require_fonts_obfuscation.looksLikeSfnt;
|
|
636
692
|
exports.mapMathVariant = require_mathml_variant.mapMathVariant;
|
|
637
693
|
exports.markdownDocxCodec = require_convert_codec.markdownDocxCodec;
|
|
638
694
|
exports.markdownOdtCodec = require_convert_codec.markdownOdtCodec;
|
|
@@ -674,6 +730,7 @@ Object.defineProperty(exports, "packageCodec", {
|
|
|
674
730
|
return ooxml_js.packageCodec;
|
|
675
731
|
}
|
|
676
732
|
});
|
|
733
|
+
exports.parseHsqldbBinaryScript = require_hsqldb_binary_script.parseHsqldbBinaryScript;
|
|
677
734
|
exports.parseHsqldbScript = require_hsqldb_script.parseHsqldbScript;
|
|
678
735
|
Object.defineProperty(exports, "parsePackage", {
|
|
679
736
|
enumerable: true,
|
|
@@ -707,6 +764,26 @@ exports.pptxToPdf = require_convert_convert.pptxToPdf;
|
|
|
707
764
|
exports.readDocxContent = require_ooxml_docx_read.readDocxContent;
|
|
708
765
|
exports.readFirebirdBackup = require_firebird_backup.readFirebirdBackup;
|
|
709
766
|
exports.readMarkdownContent = require_markdown_read.readMarkdownContent;
|
|
767
|
+
Object.defineProperty(exports, "readOdbForm", {
|
|
768
|
+
enumerable: true,
|
|
769
|
+
get: function() {
|
|
770
|
+
return odf_js.readOdbForm;
|
|
771
|
+
}
|
|
772
|
+
});
|
|
773
|
+
exports.readOdbForms = require_odb_components.readOdbForms;
|
|
774
|
+
Object.defineProperty(exports, "readOdbInventory", {
|
|
775
|
+
enumerable: true,
|
|
776
|
+
get: function() {
|
|
777
|
+
return odf_js.readOdbInventory;
|
|
778
|
+
}
|
|
779
|
+
});
|
|
780
|
+
Object.defineProperty(exports, "readOdbReport", {
|
|
781
|
+
enumerable: true,
|
|
782
|
+
get: function() {
|
|
783
|
+
return odf_js.readOdbReport;
|
|
784
|
+
}
|
|
785
|
+
});
|
|
786
|
+
exports.readOdbReports = require_odb_components.readOdbReports;
|
|
710
787
|
exports.readOdbTables = require_odb_read.readOdbTables;
|
|
711
788
|
exports.readOdfEmbeddedFormula = require_odf_formula_read.readOdfEmbeddedFormula;
|
|
712
789
|
exports.readOdfFormulaContent = require_odf_formula_read.readOdfFormulaContent;
|
|
@@ -725,6 +802,12 @@ exports.reconstructDrawing = require_layout_reconstruct.reconstructDrawing;
|
|
|
725
802
|
exports.reconstructPresentation = require_layout_reconstruct.reconstructPresentation;
|
|
726
803
|
exports.reconstructSpreadsheet = require_layout_reconstruct.reconstructSpreadsheet;
|
|
727
804
|
exports.reconstructWordprocessing = require_layout_reconstruct.reconstructWordprocessing;
|
|
805
|
+
Object.defineProperty(exports, "resolveOdbComponent", {
|
|
806
|
+
enumerable: true,
|
|
807
|
+
get: function() {
|
|
808
|
+
return odf_js.resolveOdbComponent;
|
|
809
|
+
}
|
|
810
|
+
});
|
|
728
811
|
Object.defineProperty(exports, "resolveRelationships", {
|
|
729
812
|
enumerable: true,
|
|
730
813
|
get: function() {
|