documents.js 1.97.7 → 1.97.9
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/dist/convert/convert.js +6 -6
- package/dist/edit/docx/paragraph.d.cts +1 -1
- package/dist/edit/docx/paragraph.d.ts +1 -1
- package/dist/edit/docx/props.d.cts +3 -3
- package/dist/edit/docx/props.d.ts +3 -3
- package/dist/edit/docx/props.js +1 -1
- package/dist/edit/docx/run.d.cts +1 -1
- package/dist/edit/docx/run.d.ts +1 -1
- package/dist/edit/docx/run.js +1 -1
- package/dist/edit/docx/table.js +1 -1
- package/dist/edit/geometry.d.cts +1 -1
- package/dist/edit/geometry.d.ts +1 -1
- package/dist/edit/markdown/editor.d.cts +2 -3
- package/dist/edit/markdown/editor.d.ts +2 -3
- 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 +2 -2
- package/dist/edit/odg/page.d.ts +2 -2
- package/dist/edit/odg/scaffold.cjs +1 -1
- package/dist/edit/odg/scaffold.js +1 -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/scaffold.cjs +1 -1
- package/dist/edit/odp/scaffold.js +1 -1
- package/dist/edit/odp/shape.d.cts +1 -1
- package/dist/edit/odp/shape.d.ts +1 -1
- package/dist/edit/odp/slide.d.cts +7 -8
- package/dist/edit/odp/slide.d.ts +7 -8
- package/dist/edit/ods/print-settings.js +2 -3
- package/dist/edit/ods/scaffold.cjs +1 -1
- package/dist/edit/ods/scaffold.js +1 -1
- package/dist/edit/odt/content.d.cts +2 -2
- package/dist/edit/odt/content.d.ts +2 -2
- package/dist/edit/odt/editor.d.cts +5 -6
- package/dist/edit/odt/editor.d.ts +5 -6
- package/dist/edit/odt/formula.d.cts +3 -4
- package/dist/edit/odt/formula.d.ts +3 -4
- package/dist/edit/odt/image.d.cts +1 -1
- package/dist/edit/odt/image.d.ts +1 -1
- package/dist/edit/odt/list.d.cts +1 -1
- package/dist/edit/odt/list.d.ts +1 -1
- package/dist/edit/odt/paragraph.d.cts +1 -1
- package/dist/edit/odt/paragraph.d.ts +1 -1
- package/dist/edit/odt/run.d.cts +1 -1
- package/dist/edit/odt/run.d.ts +1 -1
- package/dist/edit/odt/scaffold.cjs +1 -1
- package/dist/edit/odt/scaffold.js +1 -1
- package/dist/edit/odt/table.d.cts +1 -1
- package/dist/edit/odt/table.d.ts +1 -1
- package/dist/edit/pdf/item.d.cts +1 -1
- package/dist/edit/pdf/item.d.ts +1 -1
- package/dist/edit/pdf/page.d.cts +1 -1
- package/dist/edit/pdf/page.d.ts +1 -1
- 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.d.cts +1 -1
- package/dist/edit/pptx/shape.d.ts +1 -1
- package/dist/edit/pptx/slide.d.cts +7 -8
- package/dist/edit/pptx/slide.d.ts +7 -8
- package/dist/edit/pptx/table.d.cts +1 -1
- package/dist/edit/pptx/table.d.ts +1 -1
- package/dist/{image-hTGo7C8g.d.ts → image-3ql9_z1y.d.cts} +1 -1
- package/dist/{image-C6lKT9ZH.d.cts → image-3ql9_z1y.d.ts} +1 -1
- package/dist/{image-CsyoXX7d.d.ts → image-Biwtr667.d.cts} +1 -1
- package/dist/{image-K3MAhLJc.d.cts → image-Biwtr667.d.ts} +1 -1
- package/dist/{image-CE7nO8YY.d.ts → image-CRgc_j2Q.d.cts} +1 -1
- package/dist/{image-DK0YCpYO.d.cts → image-CyYr22TE.d.ts} +1 -1
- package/dist/index.d.cts +11 -13
- package/dist/index.d.ts +11 -13
- package/dist/index.js +2 -4
- package/dist/{item-CNEgqooo.d.ts → item-Dj6f1VTE.d.cts} +25 -27
- package/dist/{item-DhYRoAvM.d.cts → item-Dj6f1VTE.d.ts} +25 -27
- package/dist/layout/shared.cjs +1 -1
- package/dist/layout/shared.d.cts +1 -2
- package/dist/layout/shared.d.ts +1 -2
- package/dist/layout/shared.js +1 -2
- package/dist/layout/sheets.js +5 -7
- package/dist/{list-MCxkKpI7.d.cts → list-BT1Zb3PV.d.cts} +1 -1
- package/dist/{list-BrAIR4Sv.d.ts → list-D9MtQtjK.d.ts} +1 -1
- package/dist/model/geometry.cjs +0 -43
- package/dist/model/geometry.d.cts +6 -2
- package/dist/model/geometry.d.ts +6 -2
- package/dist/model/geometry.js +1 -2
- package/dist/odb/read.js +1 -2
- package/dist/odb/report/render.js +3 -4
- package/dist/odb/spreadsheet.js +2 -3
- package/dist/odf/formula/detect.d.cts +2 -3
- package/dist/odf/formula/detect.d.ts +2 -3
- package/dist/odf/shared/flow-anchor.d.cts +1 -1
- package/dist/odf/shared/flow-anchor.d.ts +1 -1
- package/dist/odf-package/manifest.cjs +0 -60
- package/dist/odf-package/manifest.d.cts +2 -2
- package/dist/odf-package/manifest.d.ts +2 -2
- package/dist/odf-package/manifest.js +3 -3
- package/dist/{paragraph-DZyHl2e4.d.ts → paragraph-BPRc-VVV.d.ts} +3 -3
- package/dist/{paragraph-D7324S0j.d.cts → paragraph-CdGRPSYA.d.cts} +3 -3
- package/dist/{run-BYJGK31k.d.ts → run-Bv6gpAMj.d.ts} +4 -4
- package/dist/{run-SLSPO-4y.d.ts → run-mzBHuFWz.d.cts} +4 -4
- package/dist/{run-DQtEGilU.d.cts → run-mzBHuFWz.d.ts} +4 -4
- package/dist/{run-DEPVf5ZJ.d.cts → run-swnb_wQO.d.cts} +4 -4
- package/dist/{shape-D4xELCZY.d.ts → shape-C5istyRr.d.cts} +2 -4
- package/dist/{shape-DGlNMY73.d.ts → shape-CCPBGhbV.d.ts} +3 -3
- package/dist/{shape-B0yAqgxZ.d.cts → shape-Cuk0RTZn.d.cts} +3 -3
- package/dist/{shape-De9583Kz.d.cts → shape-D-gBLpxJ.d.ts} +2 -4
- package/dist/{table-DQksyfnT.d.ts → table-BavK-2uP.d.ts} +3 -4
- package/dist/{table-fnUiKudF.d.cts → table-DWY7P_sA.d.cts} +3 -4
- package/dist/{table-qaDB5iJO.d.ts → table-Dtml8NyR.d.ts} +1 -1
- package/dist/{table-u6fXNuDO.d.cts → table-b9-ipGtZ.d.cts} +1 -1
- package/package.json +2 -2
- package/dist/color-71eoF1Up.d.cts +0 -2
- package/dist/color-BHhGSqAh.d.ts +0 -2
- package/dist/geometry-BG4fX9Rw.d.ts +0 -6
- package/dist/geometry-DUF273hM.d.cts +0 -6
- package/dist/model/color.cjs +0 -26
- package/dist/model/color.d.cts +0 -2
- package/dist/model/color.d.ts +0 -2
- package/dist/model/color.js +0 -2
- package/dist/model/style.cjs +0 -20
- package/dist/model/style.d.cts +0 -2
- package/dist/model/style.d.ts +0 -2
- package/dist/model/style.js +0 -2
- package/dist/style-DkamR3aY.d.cts +0 -2
- package/dist/style-DkamR3aY.d.ts +0 -2
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as Box } from "./geometry-BG4fX9Rw.js";
|
|
3
|
-
import { t as Alignment } from "./style-DkamR3aY.js";
|
|
1
|
+
import { Alignment, Box, Color } from "document-schema.js";
|
|
4
2
|
import { XmlElement, XmlNode } from "ooxml.js";
|
|
5
3
|
//#region src/edit/pptx/shape.d.ts
|
|
6
4
|
declare const ROTATION_UNITS_PER_DEGREE = 60000;
|
|
@@ -42,7 +40,7 @@ interface DrawingRunInit {
|
|
|
42
40
|
readonly strike?: boolean;
|
|
43
41
|
readonly fontFamily?: string;
|
|
44
42
|
readonly sizePt?: number;
|
|
45
|
-
readonly color?:
|
|
43
|
+
readonly color?: Color;
|
|
46
44
|
readonly hyperlinkRId?: string;
|
|
47
45
|
}
|
|
48
46
|
interface DrawingParagraphInit {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-BPRc-VVV.js";
|
|
2
|
+
import { t as OdtList } from "./list-D9MtQtjK.js";
|
|
3
|
+
import { Box } from "document-schema.js";
|
|
4
4
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
5
5
|
//#region src/edit/odp/shape.d.ts
|
|
6
6
|
declare class OdpShape {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-CdGRPSYA.cjs";
|
|
2
|
+
import { t as OdtList } from "./list-BT1Zb3PV.cjs";
|
|
3
|
+
import { Box } from "document-schema.js";
|
|
4
4
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
5
5
|
//#region src/edit/odp/shape.d.ts
|
|
6
6
|
declare class OdpShape {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { n as LayoutColor } from "./color-71eoF1Up.cjs";
|
|
2
|
-
import { t as Box } from "./geometry-DUF273hM.cjs";
|
|
3
|
-
import { t as Alignment } from "./style-DkamR3aY.cjs";
|
|
4
1
|
import { XmlElement, XmlNode } from "ooxml.js";
|
|
2
|
+
import { Alignment, Box, Color } from "document-schema.js";
|
|
5
3
|
//#region src/edit/pptx/shape.d.ts
|
|
6
4
|
declare const ROTATION_UNITS_PER_DEGREE = 60000;
|
|
7
5
|
declare class PptxShape {
|
|
@@ -42,7 +40,7 @@ interface DrawingRunInit {
|
|
|
42
40
|
readonly strike?: boolean;
|
|
43
41
|
readonly fontFamily?: string;
|
|
44
42
|
readonly sizePt?: number;
|
|
45
|
-
readonly color?:
|
|
43
|
+
readonly color?: Color;
|
|
46
44
|
readonly hyperlinkRId?: string;
|
|
47
45
|
}
|
|
48
46
|
interface DrawingParagraphInit {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t as DrawingParagraphInit } from "./shape-D4xELCZY.js";
|
|
1
|
+
import { t as DrawingParagraphInit } from "./shape-D-gBLpxJ.js";
|
|
3
2
|
import { XmlElement } from "ooxml.js";
|
|
4
|
-
import { Color, ContentCellBorders } from "document-schema.js";
|
|
3
|
+
import { Box, Color, ContentCellBorders } from "document-schema.js";
|
|
5
4
|
//#region src/edit/pptx/table.d.ts
|
|
6
5
|
interface PptxTableInit {
|
|
7
6
|
readonly rows: number;
|
|
@@ -38,7 +37,7 @@ declare class PptxTable {
|
|
|
38
37
|
cell(rowIndex: number, columnIndex: number): PptxTableCell;
|
|
39
38
|
}
|
|
40
39
|
declare function buildDrawingTable(init: PptxTableInit): XmlElement;
|
|
41
|
-
declare function buildTableGraphicFrame(frame: Box
|
|
40
|
+
declare function buildTableGraphicFrame(frame: Box, tableElement: XmlElement, shapeId: number, rotationDeg: number | undefined): XmlElement;
|
|
42
41
|
declare function findGraphicFrameTable(graphicFrame: XmlElement): XmlElement | undefined;
|
|
43
42
|
//#endregion
|
|
44
43
|
export { buildDrawingTable as a, PptxTableRow as i, PptxTableCell as n, buildTableGraphicFrame as o, PptxTableInit as r, findGraphicFrameTable as s, PptxTable as t };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
3
|
-
import { Color, ContentCellBorders } from "document-schema.js";
|
|
1
|
+
import { t as DrawingParagraphInit } from "./shape-C5istyRr.cjs";
|
|
2
|
+
import { Box, Color, ContentCellBorders } from "document-schema.js";
|
|
4
3
|
import { XmlElement } from "ooxml.js";
|
|
5
4
|
//#region src/edit/pptx/table.d.ts
|
|
6
5
|
interface PptxTableInit {
|
|
@@ -38,7 +37,7 @@ declare class PptxTable {
|
|
|
38
37
|
cell(rowIndex: number, columnIndex: number): PptxTableCell;
|
|
39
38
|
}
|
|
40
39
|
declare function buildDrawingTable(init: PptxTableInit): XmlElement;
|
|
41
|
-
declare function buildTableGraphicFrame(frame: Box
|
|
40
|
+
declare function buildTableGraphicFrame(frame: Box, tableElement: XmlElement, shapeId: number, rotationDeg: number | undefined): XmlElement;
|
|
42
41
|
declare function findGraphicFrameTable(graphicFrame: XmlElement): XmlElement | undefined;
|
|
43
42
|
//#endregion
|
|
44
43
|
export { buildDrawingTable as a, PptxTableRow as i, PptxTableCell as n, buildTableGraphicFrame as o, PptxTableInit as r, findGraphicFrameTable as s, PptxTable as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-
|
|
1
|
+
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-BPRc-VVV.js";
|
|
2
2
|
import { Color, ContentCellBorders } from "document-schema.js";
|
|
3
3
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
4
4
|
//#region src/edit/odt/table.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-
|
|
1
|
+
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-CdGRPSYA.cjs";
|
|
2
2
|
import { Color, ContentCellBorders } from "document-schema.js";
|
|
3
3
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
4
4
|
//#region src/edit/odt/table.d.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "documents.js",
|
|
3
|
-
"version": "1.97.
|
|
3
|
+
"version": "1.97.9",
|
|
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": {
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"fflate": "^0.8.3",
|
|
89
89
|
"markdown-codec": "^1.3.6",
|
|
90
90
|
"odf.js": "^2.6.7",
|
|
91
|
-
"ooxml.js": "^2.11.
|
|
91
|
+
"ooxml.js": "^2.11.8",
|
|
92
92
|
"pdf-codec": "^2.2.6",
|
|
93
93
|
"zod": "^4.4.3"
|
|
94
94
|
},
|
package/dist/color-BHhGSqAh.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { COLOR_BLACK as COLOR_BLACK$1, Color as LayoutColor, ColorSchema as LayoutColorSchema, colorToRgbHex as colorToRgbHex$1, rgbHexToColor as rgbHexToColor$1 } from "document-schema.js";
|
|
2
|
-
export { rgbHexToColor$1 as a, colorToRgbHex$1 as i, LayoutColor as n, LayoutColorSchema as r, COLOR_BLACK$1 as t };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Box, Box as Box$1, BoxSchema, Margins, MarginsSchema, PAGE_SIZE_A4 as PAGE_SIZE_A4$1, PAGE_SIZE_LETTER, PageSize as PageSize$1, PageSizeSchema, Point, Point as Point$1, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN as SLIDE_SIZE_WIDESCREEN$1 } from "document-schema.js";
|
|
2
|
-
//#region src/model/geometry.d.ts
|
|
3
|
-
declare function flipY(box: Box, containerHeightPt: number): Box;
|
|
4
|
-
declare function rotatePointAboutCenter(point: Point, center: Point, degrees: number): Point;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { PAGE_SIZE_A4$1 as a, PageSizeSchema as c, SLIDE_SIZE_WIDESCREEN$1 as d, flipY as f, MarginsSchema as i, Point$1 as l, BoxSchema as n, PAGE_SIZE_LETTER as o, rotatePointAboutCenter as p, Margins as r, PageSize$1 as s, Box$1 as t, SLIDE_SIZE_STANDARD as u };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Box, Box as Box$1, BoxSchema, Margins, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSize as PageSize$1, PageSizeSchema, Point, Point as Point$1, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN } from "document-schema.js";
|
|
2
|
-
//#region src/model/geometry.d.ts
|
|
3
|
-
declare function flipY(box: Box, containerHeightPt: number): Box;
|
|
4
|
-
declare function rotatePointAboutCenter(point: Point, center: Point, degrees: number): Point;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { PAGE_SIZE_A4 as a, PageSizeSchema as c, SLIDE_SIZE_WIDESCREEN as d, flipY as f, MarginsSchema as i, Point$1 as l, BoxSchema as n, PAGE_SIZE_LETTER as o, rotatePointAboutCenter as p, Margins as r, PageSize$1 as s, Box$1 as t, SLIDE_SIZE_STANDARD as u };
|
package/dist/model/color.cjs
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
let document_schema_js = require("document-schema.js");
|
|
3
|
-
Object.defineProperty(exports, "COLOR_BLACK", {
|
|
4
|
-
enumerable: true,
|
|
5
|
-
get: function() {
|
|
6
|
-
return document_schema_js.COLOR_BLACK;
|
|
7
|
-
}
|
|
8
|
-
});
|
|
9
|
-
Object.defineProperty(exports, "LayoutColorSchema", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function() {
|
|
12
|
-
return document_schema_js.ColorSchema;
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
Object.defineProperty(exports, "colorToRgbHex", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function() {
|
|
18
|
-
return document_schema_js.colorToRgbHex;
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
Object.defineProperty(exports, "rgbHexToColor", {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function() {
|
|
24
|
-
return document_schema_js.rgbHexToColor;
|
|
25
|
-
}
|
|
26
|
-
});
|
package/dist/model/color.d.cts
DELETED
package/dist/model/color.d.ts
DELETED
package/dist/model/color.js
DELETED
package/dist/model/style.cjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
let document_schema_js = require("document-schema.js");
|
|
3
|
-
Object.defineProperty(exports, "AlignmentSchema", {
|
|
4
|
-
enumerable: true,
|
|
5
|
-
get: function() {
|
|
6
|
-
return document_schema_js.AlignmentSchema;
|
|
7
|
-
}
|
|
8
|
-
});
|
|
9
|
-
Object.defineProperty(exports, "DEFAULT_LAYOUT_FONT", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function() {
|
|
12
|
-
return document_schema_js.DEFAULT_LAYOUT_FONT;
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
Object.defineProperty(exports, "LayoutFontSchema", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function() {
|
|
18
|
-
return document_schema_js.LayoutFontSchema;
|
|
19
|
-
}
|
|
20
|
-
});
|
package/dist/model/style.d.cts
DELETED
package/dist/model/style.d.ts
DELETED
package/dist/model/style.js
DELETED
package/dist/style-DkamR3aY.d.ts
DELETED