documents.js 1.60.3 → 1.62.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 +84 -44
- 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 +29 -27
- package/dist/convert/convert.d.cts +9 -3
- package/dist/convert/convert.d.ts +9 -3
- package/dist/convert/convert.js +29 -27
- 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/{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 +54 -3
- package/dist/index.d.cts +28 -20
- package/dist/index.d.ts +27 -19
- package/dist/index.js +13 -4
- 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 +43 -9
- package/dist/mathml/layout.d.cts +1 -1
- package/dist/mathml/layout.d.ts +1 -1
- package/dist/mathml/layout.js +43 -9
- package/dist/mathml/variant.cjs +48 -5
- package/dist/mathml/variant.js +48 -5
- 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/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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as Box } from "./geometry-
|
|
1
|
+
import { t as Box } from "./geometry-DaJr8yQW.js";
|
|
2
2
|
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-CoUi_88j.js";
|
|
3
3
|
import { t as OdtList } from "./list-CvKxhy3y.js";
|
|
4
4
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
@@ -26,5 +26,6 @@ declare class OdpShape {
|
|
|
26
26
|
}
|
|
27
27
|
declare function buildTextBoxFrame(pkg: Package, frame: Box, text: string): XmlElement;
|
|
28
28
|
declare function buildImageFrame(partPath: string, frame: Box): XmlElement;
|
|
29
|
+
declare function buildTableFrame(frame: Box, tableElement: XmlElement): XmlElement;
|
|
29
30
|
//#endregion
|
|
30
|
-
export { buildImageFrame as n,
|
|
31
|
+
export { buildTextBoxFrame as i, buildImageFrame as n, buildTableFrame as r, OdpShape as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as Box } from "./geometry-
|
|
1
|
+
import { t as Box } from "./geometry-DaJr8yQW.cjs";
|
|
2
2
|
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-BXbXKPy3.cjs";
|
|
3
3
|
import { t as OdtList } from "./list-BuBM9rwQ.cjs";
|
|
4
4
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
@@ -26,5 +26,6 @@ declare class OdpShape {
|
|
|
26
26
|
}
|
|
27
27
|
declare function buildTextBoxFrame(pkg: Package, frame: Box, text: string): XmlElement;
|
|
28
28
|
declare function buildImageFrame(partPath: string, frame: Box): XmlElement;
|
|
29
|
+
declare function buildTableFrame(frame: Box, tableElement: XmlElement): XmlElement;
|
|
29
30
|
//#endregion
|
|
30
|
-
export { buildImageFrame as n,
|
|
31
|
+
export { buildTextBoxFrame as i, buildImageFrame as n, buildTableFrame as r, OdpShape as t };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { t as Box } from "./geometry-DaJr8yQW.cjs";
|
|
2
|
+
import { t as DrawingParagraphInit } from "./shape-BhkP6HB8.cjs";
|
|
3
|
+
import { XmlElement } from "ooxml.js";
|
|
4
|
+
//#region src/edit/pptx/table.d.ts
|
|
5
|
+
interface PptxTableInit {
|
|
6
|
+
readonly rows: number;
|
|
7
|
+
readonly columns: number;
|
|
8
|
+
readonly columnWidthsPt?: readonly number[];
|
|
9
|
+
}
|
|
10
|
+
declare class PptxTableCell {
|
|
11
|
+
private readonly node;
|
|
12
|
+
constructor(node: XmlElement);
|
|
13
|
+
get colSpan(): number | undefined;
|
|
14
|
+
set colSpan(value: number | undefined);
|
|
15
|
+
get rowSpan(): number | undefined;
|
|
16
|
+
set rowSpan(value: number | undefined);
|
|
17
|
+
set horizontalMerge(value: boolean);
|
|
18
|
+
set verticalMerge(value: boolean);
|
|
19
|
+
setParagraphs(paragraphs: readonly DrawingParagraphInit[]): void;
|
|
20
|
+
}
|
|
21
|
+
declare class PptxTableRow {
|
|
22
|
+
private readonly node;
|
|
23
|
+
constructor(node: XmlElement);
|
|
24
|
+
cells(): PptxTableCell[];
|
|
25
|
+
}
|
|
26
|
+
declare class PptxTable {
|
|
27
|
+
private readonly node;
|
|
28
|
+
constructor(node: XmlElement);
|
|
29
|
+
rows(): PptxTableRow[];
|
|
30
|
+
cell(rowIndex: number, columnIndex: number): PptxTableCell;
|
|
31
|
+
}
|
|
32
|
+
declare function buildDrawingTable(init: PptxTableInit): XmlElement;
|
|
33
|
+
declare function buildTableGraphicFrame(frame: Box, tableElement: XmlElement, shapeId: number, rotationDeg: number | undefined): XmlElement;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { buildDrawingTable as a, PptxTableRow as i, PptxTableCell as n, buildTableGraphicFrame as o, PptxTableInit as r, PptxTable as t };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-BXbXKPy3.cjs";
|
|
2
|
+
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
3
|
+
//#region src/edit/odt/table.d.ts
|
|
4
|
+
interface TableInit {
|
|
5
|
+
readonly rows: number;
|
|
6
|
+
readonly columns: number;
|
|
7
|
+
readonly columnWidthsPt?: readonly number[];
|
|
8
|
+
}
|
|
9
|
+
declare class OdtTableCell {
|
|
10
|
+
private readonly node;
|
|
11
|
+
private readonly pkg;
|
|
12
|
+
constructor(node: XmlElement, pkg: Package);
|
|
13
|
+
paragraphs(): OdtParagraph[];
|
|
14
|
+
appendParagraph(init?: ParagraphInit): OdtParagraph;
|
|
15
|
+
get text(): string;
|
|
16
|
+
get colSpan(): number | undefined;
|
|
17
|
+
set colSpan(value: number | undefined);
|
|
18
|
+
get rowSpan(): number | undefined;
|
|
19
|
+
set rowSpan(value: number | undefined);
|
|
20
|
+
}
|
|
21
|
+
declare class OdtTableRow {
|
|
22
|
+
private readonly node;
|
|
23
|
+
private readonly pkg;
|
|
24
|
+
constructor(node: XmlElement, pkg: Package);
|
|
25
|
+
cells(): OdtTableCell[];
|
|
26
|
+
appendCell(): OdtTableCell;
|
|
27
|
+
appendCoveredCell(): void;
|
|
28
|
+
}
|
|
29
|
+
declare class OdtTable {
|
|
30
|
+
private readonly container;
|
|
31
|
+
private readonly node;
|
|
32
|
+
private readonly pkg;
|
|
33
|
+
private removed;
|
|
34
|
+
constructor(container: XmlNode[], node: XmlElement, pkg: Package);
|
|
35
|
+
private live;
|
|
36
|
+
rows(): OdtTableRow[];
|
|
37
|
+
cell(rowIndex: number, columnIndex: number): OdtTableCell;
|
|
38
|
+
appendRow(columnCount: number): OdtTableRow;
|
|
39
|
+
appendEmptyRow(): OdtTableRow;
|
|
40
|
+
remove(): void;
|
|
41
|
+
}
|
|
42
|
+
declare function buildTable(pkg: Package, init: TableInit): XmlElement;
|
|
43
|
+
//#endregion
|
|
44
|
+
export { buildTable as a, TableInit as i, OdtTableCell as n, OdtTableRow as r, OdtTable as t };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-CoUi_88j.js";
|
|
2
|
+
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
3
|
+
//#region src/edit/odt/table.d.ts
|
|
4
|
+
interface TableInit {
|
|
5
|
+
readonly rows: number;
|
|
6
|
+
readonly columns: number;
|
|
7
|
+
readonly columnWidthsPt?: readonly number[];
|
|
8
|
+
}
|
|
9
|
+
declare class OdtTableCell {
|
|
10
|
+
private readonly node;
|
|
11
|
+
private readonly pkg;
|
|
12
|
+
constructor(node: XmlElement, pkg: Package);
|
|
13
|
+
paragraphs(): OdtParagraph[];
|
|
14
|
+
appendParagraph(init?: ParagraphInit): OdtParagraph;
|
|
15
|
+
get text(): string;
|
|
16
|
+
get colSpan(): number | undefined;
|
|
17
|
+
set colSpan(value: number | undefined);
|
|
18
|
+
get rowSpan(): number | undefined;
|
|
19
|
+
set rowSpan(value: number | undefined);
|
|
20
|
+
}
|
|
21
|
+
declare class OdtTableRow {
|
|
22
|
+
private readonly node;
|
|
23
|
+
private readonly pkg;
|
|
24
|
+
constructor(node: XmlElement, pkg: Package);
|
|
25
|
+
cells(): OdtTableCell[];
|
|
26
|
+
appendCell(): OdtTableCell;
|
|
27
|
+
appendCoveredCell(): void;
|
|
28
|
+
}
|
|
29
|
+
declare class OdtTable {
|
|
30
|
+
private readonly container;
|
|
31
|
+
private readonly node;
|
|
32
|
+
private readonly pkg;
|
|
33
|
+
private removed;
|
|
34
|
+
constructor(container: XmlNode[], node: XmlElement, pkg: Package);
|
|
35
|
+
private live;
|
|
36
|
+
rows(): OdtTableRow[];
|
|
37
|
+
cell(rowIndex: number, columnIndex: number): OdtTableCell;
|
|
38
|
+
appendRow(columnCount: number): OdtTableRow;
|
|
39
|
+
appendEmptyRow(): OdtTableRow;
|
|
40
|
+
remove(): void;
|
|
41
|
+
}
|
|
42
|
+
declare function buildTable(pkg: Package, init: TableInit): XmlElement;
|
|
43
|
+
//#endregion
|
|
44
|
+
export { buildTable as a, TableInit as i, OdtTableCell as n, OdtTableRow as r, OdtTable as t };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { t as Box } from "./geometry-DaJr8yQW.js";
|
|
2
|
+
import { t as DrawingParagraphInit } from "./shape-BkVcwPcf.js";
|
|
3
|
+
import { XmlElement } from "ooxml.js";
|
|
4
|
+
//#region src/edit/pptx/table.d.ts
|
|
5
|
+
interface PptxTableInit {
|
|
6
|
+
readonly rows: number;
|
|
7
|
+
readonly columns: number;
|
|
8
|
+
readonly columnWidthsPt?: readonly number[];
|
|
9
|
+
}
|
|
10
|
+
declare class PptxTableCell {
|
|
11
|
+
private readonly node;
|
|
12
|
+
constructor(node: XmlElement);
|
|
13
|
+
get colSpan(): number | undefined;
|
|
14
|
+
set colSpan(value: number | undefined);
|
|
15
|
+
get rowSpan(): number | undefined;
|
|
16
|
+
set rowSpan(value: number | undefined);
|
|
17
|
+
set horizontalMerge(value: boolean);
|
|
18
|
+
set verticalMerge(value: boolean);
|
|
19
|
+
setParagraphs(paragraphs: readonly DrawingParagraphInit[]): void;
|
|
20
|
+
}
|
|
21
|
+
declare class PptxTableRow {
|
|
22
|
+
private readonly node;
|
|
23
|
+
constructor(node: XmlElement);
|
|
24
|
+
cells(): PptxTableCell[];
|
|
25
|
+
}
|
|
26
|
+
declare class PptxTable {
|
|
27
|
+
private readonly node;
|
|
28
|
+
constructor(node: XmlElement);
|
|
29
|
+
rows(): PptxTableRow[];
|
|
30
|
+
cell(rowIndex: number, columnIndex: number): PptxTableCell;
|
|
31
|
+
}
|
|
32
|
+
declare function buildDrawingTable(init: PptxTableInit): XmlElement;
|
|
33
|
+
declare function buildTableGraphicFrame(frame: Box, tableElement: XmlElement, shapeId: number, rotationDeg: number | undefined): XmlElement;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { buildDrawingTable as a, PptxTableRow as i, PptxTableCell as n, buildTableGraphicFrame as o, PptxTableInit as r, PptxTable as t };
|
|
@@ -20,6 +20,8 @@ declare class OdgBoxVector {
|
|
|
20
20
|
get name(): string | undefined;
|
|
21
21
|
get frame(): Box | undefined;
|
|
22
22
|
set frame(value: Box);
|
|
23
|
+
get rotationDeg(): number | undefined;
|
|
24
|
+
set rotationDeg(value: number | undefined);
|
|
23
25
|
get fill(): Color | undefined;
|
|
24
26
|
set fill(value: Color | undefined);
|
|
25
27
|
get stroke(): ContentStroke | undefined;
|
|
@@ -65,6 +67,8 @@ declare class OdgPathVector {
|
|
|
65
67
|
get name(): string | undefined;
|
|
66
68
|
get frame(): Box | undefined;
|
|
67
69
|
set frame(value: Box);
|
|
70
|
+
get rotationDeg(): number | undefined;
|
|
71
|
+
set rotationDeg(value: number | undefined);
|
|
68
72
|
get fill(): Color | undefined;
|
|
69
73
|
set fill(value: Color | undefined);
|
|
70
74
|
get stroke(): ContentStroke | undefined;
|
|
@@ -20,6 +20,8 @@ declare class OdgBoxVector {
|
|
|
20
20
|
get name(): string | undefined;
|
|
21
21
|
get frame(): Box | undefined;
|
|
22
22
|
set frame(value: Box);
|
|
23
|
+
get rotationDeg(): number | undefined;
|
|
24
|
+
set rotationDeg(value: number | undefined);
|
|
23
25
|
get fill(): Color | undefined;
|
|
24
26
|
set fill(value: Color | undefined);
|
|
25
27
|
get stroke(): ContentStroke | undefined;
|
|
@@ -65,6 +67,8 @@ declare class OdgPathVector {
|
|
|
65
67
|
get name(): string | undefined;
|
|
66
68
|
get frame(): Box | undefined;
|
|
67
69
|
set frame(value: Box);
|
|
70
|
+
get rotationDeg(): number | undefined;
|
|
71
|
+
set rotationDeg(value: number | undefined);
|
|
68
72
|
get fill(): Color | undefined;
|
|
69
73
|
set fill(value: Color | undefined);
|
|
70
74
|
get stroke(): ContentStroke | undefined;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { r as MathMlNode } from "./nodes-pArN9ilm.cjs";
|
|
2
|
+
import { XmlElement } from "ooxml.js";
|
|
3
|
+
//#region src/omml/write.d.ts
|
|
4
|
+
type OmmlDiagnosticKind = 'unsupported-element' | 'approximated-element';
|
|
5
|
+
interface OmmlDiagnostic {
|
|
6
|
+
readonly kind: OmmlDiagnosticKind;
|
|
7
|
+
readonly detail: string;
|
|
8
|
+
}
|
|
9
|
+
interface OmmlWriteResult {
|
|
10
|
+
readonly element: XmlElement | undefined;
|
|
11
|
+
readonly diagnostics: readonly OmmlDiagnostic[];
|
|
12
|
+
}
|
|
13
|
+
declare function buildOfficeMath(mathml: readonly MathMlNode[]): OmmlWriteResult;
|
|
14
|
+
declare function buildOfficeMathParagraph(mathml: readonly MathMlNode[]): OmmlWriteResult;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { buildOfficeMathParagraph as a, buildOfficeMath as i, OmmlDiagnosticKind as n, OmmlWriteResult as r, OmmlDiagnostic as t };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { r as MathMlNode } from "./nodes-pArN9ilm.js";
|
|
2
|
+
import { XmlElement } from "ooxml.js";
|
|
3
|
+
//#region src/omml/write.d.ts
|
|
4
|
+
type OmmlDiagnosticKind = 'unsupported-element' | 'approximated-element';
|
|
5
|
+
interface OmmlDiagnostic {
|
|
6
|
+
readonly kind: OmmlDiagnosticKind;
|
|
7
|
+
readonly detail: string;
|
|
8
|
+
}
|
|
9
|
+
interface OmmlWriteResult {
|
|
10
|
+
readonly element: XmlElement | undefined;
|
|
11
|
+
readonly diagnostics: readonly OmmlDiagnostic[];
|
|
12
|
+
}
|
|
13
|
+
declare function buildOfficeMath(mathml: readonly MathMlNode[]): OmmlWriteResult;
|
|
14
|
+
declare function buildOfficeMathParagraph(mathml: readonly MathMlNode[]): OmmlWriteResult;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { buildOfficeMathParagraph as a, buildOfficeMath as i, OmmlDiagnosticKind as n, OmmlWriteResult as r, OmmlDiagnostic as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "documents.js",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.62.0",
|
|
4
4
|
"description": "Bidirectional docx/pptx <-> PDF conversion and a read+write editable OOXML document model, built on ooxml.js and Zod 4 codecs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
"document-schema.js": "^2.0.0",
|
|
75
75
|
"fflate": "^0.8.3",
|
|
76
76
|
"markdown-codec": "github:ExaDev/markdown-codec#beda0a89d92fffd153d5dcd05d767b404b721cda",
|
|
77
|
-
"odf.js": "^
|
|
78
|
-
"ooxml.js": "^2.
|
|
79
|
-
"pdf-codec": "^1.
|
|
77
|
+
"odf.js": "^2.0.0",
|
|
78
|
+
"ooxml.js": "^2.6.1",
|
|
79
|
+
"pdf-codec": "^1.6.0",
|
|
80
80
|
"zod": "^4.4.3"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
let document_schema_js = require("document-schema.js");
|
|
3
|
-
//#region src/odf/formula/placeholder.ts
|
|
4
|
-
const ZERO_MARGINS = {
|
|
5
|
-
topPt: 0,
|
|
6
|
-
rightPt: 0,
|
|
7
|
-
bottomPt: 0,
|
|
8
|
-
leftPt: 0
|
|
9
|
-
};
|
|
10
|
-
function placeholderFormulaDocument(formula) {
|
|
11
|
-
const text = formula.starMath ?? "[formula]";
|
|
12
|
-
return {
|
|
13
|
-
kind: "wordprocessing",
|
|
14
|
-
formatVersion: document_schema_js.CONTENT_FORMAT_VERSION,
|
|
15
|
-
metadata: {},
|
|
16
|
-
sections: [{
|
|
17
|
-
pageSize: document_schema_js.PAGE_SIZE_A4,
|
|
18
|
-
margins: ZERO_MARGINS,
|
|
19
|
-
blocks: [{
|
|
20
|
-
kind: "paragraph",
|
|
21
|
-
runs: [{ text }]
|
|
22
|
-
}]
|
|
23
|
-
}]
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
function buildFormulaPlaceholderBlock(formula, frame, sourcePath) {
|
|
27
|
-
return {
|
|
28
|
-
kind: "embeddedObject",
|
|
29
|
-
objectKind: "formula",
|
|
30
|
-
document: placeholderFormulaDocument(formula),
|
|
31
|
-
frame,
|
|
32
|
-
sourcePath
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
//#endregion
|
|
36
|
-
exports.buildFormulaPlaceholderBlock = buildFormulaPlaceholderBlock;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { t as Box$1 } from "../../geometry-DvwdrIij.cjs";
|
|
2
|
-
import { EmbeddedFormula } from "../../model/formula.cjs";
|
|
3
|
-
import { ContentDocument } from "document-schema.js";
|
|
4
|
-
//#region src/odf/formula/placeholder.d.ts
|
|
5
|
-
interface FormulaPlaceholderBlock {
|
|
6
|
-
readonly kind: 'embeddedObject';
|
|
7
|
-
readonly objectKind: 'formula';
|
|
8
|
-
readonly document: ContentDocument;
|
|
9
|
-
readonly frame: Box$1;
|
|
10
|
-
readonly sourcePath: string;
|
|
11
|
-
}
|
|
12
|
-
declare function buildFormulaPlaceholderBlock(formula: EmbeddedFormula, frame: Box$1, sourcePath: string): FormulaPlaceholderBlock;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { FormulaPlaceholderBlock, buildFormulaPlaceholderBlock };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { t as Box$1 } from "../../geometry-DvwdrIij.js";
|
|
2
|
-
import { EmbeddedFormula } from "../../model/formula.js";
|
|
3
|
-
import { ContentDocument } from "document-schema.js";
|
|
4
|
-
//#region src/odf/formula/placeholder.d.ts
|
|
5
|
-
interface FormulaPlaceholderBlock {
|
|
6
|
-
readonly kind: 'embeddedObject';
|
|
7
|
-
readonly objectKind: 'formula';
|
|
8
|
-
readonly document: ContentDocument;
|
|
9
|
-
readonly frame: Box$1;
|
|
10
|
-
readonly sourcePath: string;
|
|
11
|
-
}
|
|
12
|
-
declare function buildFormulaPlaceholderBlock(formula: EmbeddedFormula, frame: Box$1, sourcePath: string): FormulaPlaceholderBlock;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { FormulaPlaceholderBlock, buildFormulaPlaceholderBlock };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { PAGE_SIZE_A4 } from "../../model/geometry.js";
|
|
2
|
-
import { CONTENT_FORMAT_VERSION } from "document-schema.js";
|
|
3
|
-
//#region src/odf/formula/placeholder.ts
|
|
4
|
-
const ZERO_MARGINS = {
|
|
5
|
-
topPt: 0,
|
|
6
|
-
rightPt: 0,
|
|
7
|
-
bottomPt: 0,
|
|
8
|
-
leftPt: 0
|
|
9
|
-
};
|
|
10
|
-
function placeholderFormulaDocument(formula) {
|
|
11
|
-
const text = formula.starMath ?? "[formula]";
|
|
12
|
-
return {
|
|
13
|
-
kind: "wordprocessing",
|
|
14
|
-
formatVersion: CONTENT_FORMAT_VERSION,
|
|
15
|
-
metadata: {},
|
|
16
|
-
sections: [{
|
|
17
|
-
pageSize: PAGE_SIZE_A4,
|
|
18
|
-
margins: ZERO_MARGINS,
|
|
19
|
-
blocks: [{
|
|
20
|
-
kind: "paragraph",
|
|
21
|
-
runs: [{ text }]
|
|
22
|
-
}]
|
|
23
|
-
}]
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
function buildFormulaPlaceholderBlock(formula, frame, sourcePath) {
|
|
27
|
-
return {
|
|
28
|
-
kind: "embeddedObject",
|
|
29
|
-
objectKind: "formula",
|
|
30
|
-
document: placeholderFormulaDocument(formula),
|
|
31
|
-
frame,
|
|
32
|
-
sourcePath
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
//#endregion
|
|
36
|
-
export { buildFormulaPlaceholderBlock };
|