js.documents 6.5.0 → 6.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/edit/odg/page.d.cts +1 -1
- package/dist/edit/odg/page.d.ts +1 -1
- package/dist/edit/odp/image.cjs +1 -1
- package/dist/edit/odp/image.js +1 -1
- package/dist/edit/odp/shape.cjs +5 -2
- package/dist/edit/odp/shape.d.cts +1 -1
- package/dist/edit/odp/shape.d.ts +1 -1
- package/dist/edit/odp/shape.js +6 -3
- package/dist/edit/odp/slide.d.cts +1 -1
- package/dist/edit/odp/slide.d.ts +1 -1
- package/dist/edit/pptx/image.cjs +1 -1
- package/dist/edit/pptx/image.js +1 -1
- package/dist/edit/pptx/shape.cjs +7 -5
- package/dist/edit/pptx/shape.d.cts +1 -1
- package/dist/edit/pptx/shape.d.ts +1 -1
- package/dist/edit/pptx/shape.js +7 -5
- package/dist/edit/pptx/slide.d.cts +2 -2
- package/dist/edit/pptx/slide.d.ts +2 -2
- package/dist/edit/pptx/table.d.cts +1 -1
- package/dist/edit/pptx/table.d.ts +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/{shape-xpgICOEx.d.ts → shape-B_vI18gH.d.ts} +1 -1
- package/dist/{shape-Ca-xsrde.d.cts → shape-C2ef6uwC.d.cts} +1 -1
- package/dist/{shape-DqkYq1OL.d.cts → shape-CQa4zif9.d.cts} +1 -1
- package/dist/{shape-BY5P8kDn.d.ts → shape-DwZouh8R.d.ts} +1 -1
- package/dist/{table-C_KDsX5R.d.cts → table-CtbzOK8s.d.cts} +1 -1
- package/dist/{table-C3VWWdjr.d.ts → table-D2CgT0Gf.d.ts} +1 -1
- package/package.json +2 -2
package/dist/edit/odg/page.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as ImageInit } from "../../image-DzqEWMDw.cjs";
|
|
2
|
-
import { t as OdpShape } from "../../shape-
|
|
2
|
+
import { t as OdpShape } from "../../shape-CQa4zif9.cjs";
|
|
3
3
|
import { a as OdgLineVector, l as PathVectorInit, n as LineVectorInit, o as OdgPathVector, r as OdgBoxVector, s as OdgVector, t as BoxVectorInit } from "../../vector-DDP7hgvm.cjs";
|
|
4
4
|
import { Box, ContentVector } from "document-schema.js";
|
|
5
5
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
package/dist/edit/odg/page.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as ImageInit } from "../../image-DzqEWMDw.js";
|
|
2
|
-
import { t as OdpShape } from "../../shape-
|
|
2
|
+
import { t as OdpShape } from "../../shape-B_vI18gH.js";
|
|
3
3
|
import { a as OdgLineVector, l as PathVectorInit, n as LineVectorInit, o as OdgPathVector, r as OdgBoxVector, s as OdgVector, t as BoxVectorInit } from "../../vector-DDP7hgvm.js";
|
|
4
4
|
import { Box, ContentVector } from "document-schema.js";
|
|
5
5
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
package/dist/edit/odp/image.cjs
CHANGED
|
@@ -4,7 +4,7 @@ const require_edit_odp_shape = require("./shape.cjs");
|
|
|
4
4
|
//#region src/edit/odp/image.ts
|
|
5
5
|
function insertImageFrameMedia(context, frame, image) {
|
|
6
6
|
const { partPath } = require_odf_package_media.addImageMedia(context.pkg, image.bytes, image.format);
|
|
7
|
-
return require_edit_odp_shape.buildImageFrame(partPath, frame);
|
|
7
|
+
return require_edit_odp_shape.buildImageFrame(partPath, frame, image.altText);
|
|
8
8
|
}
|
|
9
9
|
//#endregion
|
|
10
10
|
exports.insertImageFrameMedia = insertImageFrameMedia;
|
package/dist/edit/odp/image.js
CHANGED
|
@@ -3,7 +3,7 @@ import { buildImageFrame } from "./shape.js";
|
|
|
3
3
|
//#region src/edit/odp/image.ts
|
|
4
4
|
function insertImageFrameMedia(context, frame, image) {
|
|
5
5
|
const { partPath } = addImageMedia(context.pkg, image.bytes, image.format);
|
|
6
|
-
return buildImageFrame(partPath, frame);
|
|
6
|
+
return buildImageFrame(partPath, frame, image.altText);
|
|
7
7
|
}
|
|
8
8
|
//#endregion
|
|
9
9
|
export { insertImageFrameMedia };
|
package/dist/edit/odp/shape.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_xml_fragment = require("../../xml/fragment.cjs");
|
|
3
|
+
const require_xml_entities = require("../../xml/entities.cjs");
|
|
3
4
|
const require_xml_edit = require("../../xml/edit.cjs");
|
|
4
5
|
const require_edit_geometry = require("../geometry.cjs");
|
|
5
6
|
const require_edit_odt_paragraph = require("../odt/paragraph.cjs");
|
|
@@ -91,13 +92,15 @@ function buildTextBoxFrame(pkg, frame, text) {
|
|
|
91
92
|
"svg:height": (0, odf_js.formatOdfLength)(frame.heightPt)
|
|
92
93
|
}, [require_xml_fragment.el("draw:text-box", {}, [require_edit_odt_paragraph.buildParagraph(pkg, { text })])]);
|
|
93
94
|
}
|
|
94
|
-
function buildImageFrame(partPath, frame) {
|
|
95
|
+
function buildImageFrame(partPath, frame, altText) {
|
|
96
|
+
const children = [require_xml_fragment.el("draw:image", { "xlink:href": partPath })];
|
|
97
|
+
if (altText !== void 0) children.push(require_xml_fragment.el("svg:title", {}, [require_xml_fragment.txt(require_xml_entities.encodeXmlText(altText))]));
|
|
95
98
|
return require_xml_fragment.el("draw:frame", {
|
|
96
99
|
"svg:x": (0, odf_js.formatOdfLength)(frame.xPt),
|
|
97
100
|
"svg:y": (0, odf_js.formatOdfLength)(frame.yPt),
|
|
98
101
|
"svg:width": (0, odf_js.formatOdfLength)(frame.widthPt),
|
|
99
102
|
"svg:height": (0, odf_js.formatOdfLength)(frame.heightPt)
|
|
100
|
-
},
|
|
103
|
+
}, children);
|
|
101
104
|
}
|
|
102
105
|
function buildTableFrame(frame, tableElement) {
|
|
103
106
|
return require_xml_fragment.el("draw:frame", {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as buildTextBoxFrame, n as buildImageFrame, r as buildTableFrame, t as OdpShape } from "../../shape-
|
|
1
|
+
import { i as buildTextBoxFrame, n as buildImageFrame, r as buildTableFrame, t as OdpShape } from "../../shape-CQa4zif9.cjs";
|
|
2
2
|
export { OdpShape, buildImageFrame, buildTableFrame, buildTextBoxFrame };
|
package/dist/edit/odp/shape.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as buildTextBoxFrame, n as buildImageFrame, r as buildTableFrame, t as OdpShape } from "../../shape-
|
|
1
|
+
import { i as buildTextBoxFrame, n as buildImageFrame, r as buildTableFrame, t as OdpShape } from "../../shape-B_vI18gH.js";
|
|
2
2
|
export { OdpShape, buildImageFrame, buildTableFrame, buildTextBoxFrame };
|
package/dist/edit/odp/shape.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { el } from "../../xml/fragment.js";
|
|
1
|
+
import { el, txt } from "../../xml/fragment.js";
|
|
2
|
+
import { encodeXmlText as encodeXmlText$1 } from "../../xml/entities.js";
|
|
2
3
|
import { removeChild } from "../../xml/edit.js";
|
|
3
4
|
import { applyOdfGeometry } from "../geometry.js";
|
|
4
5
|
import { OdtParagraph, buildParagraph } from "../odt/paragraph.js";
|
|
@@ -90,13 +91,15 @@ function buildTextBoxFrame(pkg, frame, text) {
|
|
|
90
91
|
"svg:height": formatOdfLength(frame.heightPt)
|
|
91
92
|
}, [el("draw:text-box", {}, [buildParagraph(pkg, { text })])]);
|
|
92
93
|
}
|
|
93
|
-
function buildImageFrame(partPath, frame) {
|
|
94
|
+
function buildImageFrame(partPath, frame, altText) {
|
|
95
|
+
const children = [el("draw:image", { "xlink:href": partPath })];
|
|
96
|
+
if (altText !== void 0) children.push(el("svg:title", {}, [txt(encodeXmlText$1(altText))]));
|
|
94
97
|
return el("draw:frame", {
|
|
95
98
|
"svg:x": formatOdfLength(frame.xPt),
|
|
96
99
|
"svg:y": formatOdfLength(frame.yPt),
|
|
97
100
|
"svg:width": formatOdfLength(frame.widthPt),
|
|
98
101
|
"svg:height": formatOdfLength(frame.heightPt)
|
|
99
|
-
},
|
|
102
|
+
}, children);
|
|
100
103
|
}
|
|
101
104
|
function buildTableFrame(frame, tableElement) {
|
|
102
105
|
return el("draw:frame", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as ImageInit } from "../../image-DzqEWMDw.cjs";
|
|
2
|
-
import { t as OdpShape } from "../../shape-
|
|
2
|
+
import { t as OdpShape } from "../../shape-CQa4zif9.cjs";
|
|
3
3
|
import { s as OdgVector } from "../../vector-DDP7hgvm.cjs";
|
|
4
4
|
import { a as TableInit, n as OdtTable } from "../../table-CpEmblWG.cjs";
|
|
5
5
|
import { Box, ContentFormula, ContentVector } from "document-schema.js";
|
package/dist/edit/odp/slide.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as ImageInit } from "../../image-DzqEWMDw.js";
|
|
2
|
-
import { t as OdpShape } from "../../shape-
|
|
2
|
+
import { t as OdpShape } from "../../shape-B_vI18gH.js";
|
|
3
3
|
import { s as OdgVector } from "../../vector-DDP7hgvm.js";
|
|
4
4
|
import { a as TableInit, n as OdtTable } from "../../table-Ck0fyr8d.js";
|
|
5
5
|
import { Box, ContentFormula, ContentVector } from "document-schema.js";
|
package/dist/edit/pptx/image.cjs
CHANGED
|
@@ -21,7 +21,7 @@ function nextShapeId(slideRoot) {
|
|
|
21
21
|
function insertPictureShapeMedia(context, slideRoot, frame, image) {
|
|
22
22
|
const { relationshipId } = require_opc_media.addImageMedia(context.pkg, context.partPath, context.mediaDir, image.format, image.bytes);
|
|
23
23
|
const id = nextShapeId(slideRoot);
|
|
24
|
-
return require_edit_pptx_shape.buildPictureShape(frame, relationshipId, id);
|
|
24
|
+
return require_edit_pptx_shape.buildPictureShape(frame, relationshipId, id, image.altText);
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
|
27
27
|
exports.insertPictureShapeMedia = insertPictureShapeMedia;
|
package/dist/edit/pptx/image.js
CHANGED
|
@@ -20,7 +20,7 @@ function nextShapeId(slideRoot) {
|
|
|
20
20
|
function insertPictureShapeMedia(context, slideRoot, frame, image) {
|
|
21
21
|
const { relationshipId } = addImageMedia(context.pkg, context.partPath, context.mediaDir, image.format, image.bytes);
|
|
22
22
|
const id = nextShapeId(slideRoot);
|
|
23
|
-
return buildPictureShape(frame, relationshipId, id);
|
|
23
|
+
return buildPictureShape(frame, relationshipId, id, image.altText);
|
|
24
24
|
}
|
|
25
25
|
//#endregion
|
|
26
26
|
export { insertPictureShapeMedia };
|
package/dist/edit/pptx/shape.cjs
CHANGED
|
@@ -285,12 +285,14 @@ function buildTextBoxShape(frame, text, shapeId) {
|
|
|
285
285
|
txBody
|
|
286
286
|
]);
|
|
287
287
|
}
|
|
288
|
-
function buildPictureShape(frame, relationshipId, shapeId) {
|
|
288
|
+
function buildPictureShape(frame, relationshipId, shapeId, altText) {
|
|
289
|
+
const cNvPrAttrs = {
|
|
290
|
+
id: String(shapeId),
|
|
291
|
+
name: `Picture ${shapeId}`
|
|
292
|
+
};
|
|
293
|
+
if (altText !== void 0) cNvPrAttrs.descr = require_xml_entities.encodeXmlText(altText);
|
|
289
294
|
const nvPicPr = require_xml_fragment.el("p:nvPicPr", {}, [
|
|
290
|
-
require_xml_fragment.el("p:cNvPr",
|
|
291
|
-
id: String(shapeId),
|
|
292
|
-
name: `Picture ${shapeId}`
|
|
293
|
-
}),
|
|
295
|
+
require_xml_fragment.el("p:cNvPr", cNvPrAttrs),
|
|
294
296
|
require_xml_fragment.el("p:cNvPicPr"),
|
|
295
297
|
require_xml_fragment.el("p:nvPr")
|
|
296
298
|
]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as buildDrawingParagraph, i as ROTATION_UNITS_PER_DEGREE, n as DrawingRunInit, o as buildPictureShape, r as PptxShape, s as buildTextBoxShape, t as DrawingParagraphInit } from "../../shape-
|
|
1
|
+
import { a as buildDrawingParagraph, i as ROTATION_UNITS_PER_DEGREE, n as DrawingRunInit, o as buildPictureShape, r as PptxShape, s as buildTextBoxShape, t as DrawingParagraphInit } from "../../shape-C2ef6uwC.cjs";
|
|
2
2
|
export { DrawingParagraphInit, DrawingRunInit, PptxShape, ROTATION_UNITS_PER_DEGREE, buildDrawingParagraph, buildPictureShape, buildTextBoxShape };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as buildDrawingParagraph, i as ROTATION_UNITS_PER_DEGREE, n as DrawingRunInit, o as buildPictureShape, r as PptxShape, s as buildTextBoxShape, t as DrawingParagraphInit } from "../../shape-
|
|
1
|
+
import { a as buildDrawingParagraph, i as ROTATION_UNITS_PER_DEGREE, n as DrawingRunInit, o as buildPictureShape, r as PptxShape, s as buildTextBoxShape, t as DrawingParagraphInit } from "../../shape-DwZouh8R.js";
|
|
2
2
|
export { DrawingParagraphInit, DrawingRunInit, PptxShape, ROTATION_UNITS_PER_DEGREE, buildDrawingParagraph, buildPictureShape, buildTextBoxShape };
|
package/dist/edit/pptx/shape.js
CHANGED
|
@@ -284,12 +284,14 @@ function buildTextBoxShape(frame, text, shapeId) {
|
|
|
284
284
|
txBody
|
|
285
285
|
]);
|
|
286
286
|
}
|
|
287
|
-
function buildPictureShape(frame, relationshipId, shapeId) {
|
|
287
|
+
function buildPictureShape(frame, relationshipId, shapeId, altText) {
|
|
288
|
+
const cNvPrAttrs = {
|
|
289
|
+
id: String(shapeId),
|
|
290
|
+
name: `Picture ${shapeId}`
|
|
291
|
+
};
|
|
292
|
+
if (altText !== void 0) cNvPrAttrs.descr = encodeXmlText(altText);
|
|
288
293
|
const nvPicPr = el("p:nvPicPr", {}, [
|
|
289
|
-
el("p:cNvPr",
|
|
290
|
-
id: String(shapeId),
|
|
291
|
-
name: `Picture ${shapeId}`
|
|
292
|
-
}),
|
|
294
|
+
el("p:cNvPr", cNvPrAttrs),
|
|
293
295
|
el("p:cNvPicPr"),
|
|
294
296
|
el("p:nvPr")
|
|
295
297
|
]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as ImageInit } from "../../image-fah3VkZg.cjs";
|
|
2
|
-
import { r as PptxShape } from "../../shape-
|
|
3
|
-
import { r as PptxTableInit, t as PptxTable } from "../../table-
|
|
2
|
+
import { r as PptxShape } from "../../shape-C2ef6uwC.cjs";
|
|
3
|
+
import { r as PptxTableInit, t as PptxTable } from "../../table-CtbzOK8s.cjs";
|
|
4
4
|
import { Box, ContentVector } from "document-schema.js";
|
|
5
5
|
import { Package, XmlElement, XmlNode } from "ooxml.js";
|
|
6
6
|
//#region src/edit/pptx/slide.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as ImageInit } from "../../image-CwbCQ49u.js";
|
|
2
|
-
import { r as PptxShape } from "../../shape-
|
|
3
|
-
import { r as PptxTableInit, t as PptxTable } from "../../table-
|
|
2
|
+
import { r as PptxShape } from "../../shape-DwZouh8R.js";
|
|
3
|
+
import { r as PptxTableInit, t as PptxTable } from "../../table-D2CgT0Gf.js";
|
|
4
4
|
import { Package, XmlElement, XmlNode } from "ooxml.js";
|
|
5
5
|
import { Box, ContentVector } from "document-schema.js";
|
|
6
6
|
//#region src/edit/pptx/slide.d.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as buildDrawingTable, i as PptxTableRow, n as PptxTableCell, o as buildTableGraphicFrame, r as PptxTableInit, s as findGraphicFrameTable, t as PptxTable } from "../../table-
|
|
1
|
+
import { a as buildDrawingTable, i as PptxTableRow, n as PptxTableCell, o as buildTableGraphicFrame, r as PptxTableInit, s as findGraphicFrameTable, t as PptxTable } from "../../table-CtbzOK8s.cjs";
|
|
2
2
|
export { PptxTable, PptxTableCell, PptxTableInit, PptxTableRow, buildDrawingTable, buildTableGraphicFrame, findGraphicFrameTable };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as buildDrawingTable, i as PptxTableRow, n as PptxTableCell, o as buildTableGraphicFrame, r as PptxTableInit, s as findGraphicFrameTable, t as PptxTable } from "../../table-
|
|
1
|
+
import { a as buildDrawingTable, i as PptxTableRow, n as PptxTableCell, o as buildTableGraphicFrame, r as PptxTableInit, s as findGraphicFrameTable, t as PptxTable } from "../../table-D2CgT0Gf.js";
|
|
2
2
|
export { PptxTable, PptxTableCell, PptxTableInit, PptxTableRow, buildDrawingTable, buildTableGraphicFrame, findGraphicFrameTable };
|
package/dist/index.d.cts
CHANGED
|
@@ -35,7 +35,7 @@ import { BuildOdgPackageOptions, buildOdgPackage } from "./edit/odg/content.cjs"
|
|
|
35
35
|
import { n as RunInit$1, t as OdtRun } from "./run-mzBHuFWz.cjs";
|
|
36
36
|
import { n as ParagraphInit$1, t as OdtParagraph } from "./paragraph-BBmkECjw.cjs";
|
|
37
37
|
import { n as OdtListItem, t as OdtList } from "./list-BiTN6oop.cjs";
|
|
38
|
-
import { t as OdpShape } from "./shape-
|
|
38
|
+
import { t as OdpShape } from "./shape-CQa4zif9.cjs";
|
|
39
39
|
import { a as OdgLineVector, c as OdgVectorKind, l as PathVectorInit, n as LineVectorInit, o as OdgPathVector, r as OdgBoxVector, s as OdgVector, t as BoxVectorInit } from "./vector-DDP7hgvm.cjs";
|
|
40
40
|
import { OdgPage, PageImageInit, TextBoxInit } from "./edit/odg/page.cjs";
|
|
41
41
|
import { CreateOdgOptions, OdgEditor, createOdg, openOdg } from "./edit/odg/editor.cjs";
|
|
@@ -57,8 +57,8 @@ import { a as PdfInternalLinkItem, c as PdfLineItem, d as PdfPathInit, f as PdfP
|
|
|
57
57
|
import { PageInit, PdfPage } from "./edit/pdf/page.cjs";
|
|
58
58
|
import { CreatePdfOptions, PdfEditor, createPdf, openPdf } from "./edit/pdf/editor.cjs";
|
|
59
59
|
import { BuildPptxPackageOptions, buildPptxPackage, embeddedPresentationSerialiser } from "./edit/pptx/content.cjs";
|
|
60
|
-
import { n as DrawingRunInit, r as PptxShape, t as DrawingParagraphInit } from "./shape-
|
|
61
|
-
import { i as PptxTableRow, n as PptxTableCell, r as PptxTableInit, t as PptxTable } from "./table-
|
|
60
|
+
import { n as DrawingRunInit, r as PptxShape, t as DrawingParagraphInit } from "./shape-C2ef6uwC.cjs";
|
|
61
|
+
import { i as PptxTableRow, n as PptxTableCell, r as PptxTableInit, t as PptxTable } from "./table-CtbzOK8s.cjs";
|
|
62
62
|
import { PptxSlide, SlideImageInit as SlideImageInit$1, SlideTableInit as SlideTableInit$1, TextBoxInit as TextBoxInit$2 } from "./edit/pptx/slide.cjs";
|
|
63
63
|
import { CreatePptxOptions, PptxEditor, createPptx, openPptx } from "./edit/pptx/editor.cjs";
|
|
64
64
|
import { CreateEmptyPptxPackageOptions } from "./edit/pptx/scaffold.cjs";
|
package/dist/index.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ import { BuildOdgPackageOptions, buildOdgPackage } from "./edit/odg/content.js";
|
|
|
35
35
|
import { n as RunInit$1, t as OdtRun } from "./run-mzBHuFWz.js";
|
|
36
36
|
import { n as ParagraphInit$1, t as OdtParagraph } from "./paragraph-D_fDin5K.js";
|
|
37
37
|
import { n as OdtListItem, t as OdtList } from "./list-B_Sy668f.js";
|
|
38
|
-
import { t as OdpShape } from "./shape-
|
|
38
|
+
import { t as OdpShape } from "./shape-B_vI18gH.js";
|
|
39
39
|
import { a as OdgLineVector, c as OdgVectorKind, l as PathVectorInit, n as LineVectorInit, o as OdgPathVector, r as OdgBoxVector, s as OdgVector, t as BoxVectorInit } from "./vector-DDP7hgvm.js";
|
|
40
40
|
import { OdgPage, PageImageInit, TextBoxInit } from "./edit/odg/page.js";
|
|
41
41
|
import { CreateOdgOptions, OdgEditor, createOdg, openOdg } from "./edit/odg/editor.js";
|
|
@@ -57,8 +57,8 @@ import { a as PdfInternalLinkItem, c as PdfLineItem, d as PdfPathInit, f as PdfP
|
|
|
57
57
|
import { PageInit, PdfPage } from "./edit/pdf/page.js";
|
|
58
58
|
import { CreatePdfOptions, PdfEditor, createPdf, openPdf } from "./edit/pdf/editor.js";
|
|
59
59
|
import { BuildPptxPackageOptions, buildPptxPackage, embeddedPresentationSerialiser } from "./edit/pptx/content.js";
|
|
60
|
-
import { n as DrawingRunInit, r as PptxShape, t as DrawingParagraphInit } from "./shape-
|
|
61
|
-
import { i as PptxTableRow, n as PptxTableCell, r as PptxTableInit, t as PptxTable } from "./table-
|
|
60
|
+
import { n as DrawingRunInit, r as PptxShape, t as DrawingParagraphInit } from "./shape-DwZouh8R.js";
|
|
61
|
+
import { i as PptxTableRow, n as PptxTableCell, r as PptxTableInit, t as PptxTable } from "./table-D2CgT0Gf.js";
|
|
62
62
|
import { PptxSlide, SlideImageInit as SlideImageInit$1, SlideTableInit as SlideTableInit$1, TextBoxInit as TextBoxInit$2 } from "./edit/pptx/slide.js";
|
|
63
63
|
import { CreatePptxOptions, PptxEditor, createPptx, openPptx } from "./edit/pptx/editor.js";
|
|
64
64
|
import { CreateEmptyPptxPackageOptions } from "./edit/pptx/scaffold.js";
|
|
@@ -25,7 +25,7 @@ declare class OdpShape {
|
|
|
25
25
|
remove(): void;
|
|
26
26
|
}
|
|
27
27
|
declare function buildTextBoxFrame(pkg: Package, frame: Box, text: string): XmlElement;
|
|
28
|
-
declare function buildImageFrame(partPath: string, frame: Box): XmlElement;
|
|
28
|
+
declare function buildImageFrame(partPath: string, frame: Box, altText?: string): XmlElement;
|
|
29
29
|
declare function buildTableFrame(frame: Box, tableElement: XmlElement): XmlElement;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { buildTextBoxFrame as i, buildImageFrame as n, buildTableFrame as r, OdpShape as t };
|
|
@@ -59,6 +59,6 @@ interface DrawingParagraphInit {
|
|
|
59
59
|
}
|
|
60
60
|
declare function buildDrawingParagraph(init: DrawingParagraphInit): XmlElement;
|
|
61
61
|
declare function buildTextBoxShape(frame: Box, text: string, shapeId: number): XmlElement;
|
|
62
|
-
declare function buildPictureShape(frame: Box, relationshipId: string, shapeId: number): XmlElement;
|
|
62
|
+
declare function buildPictureShape(frame: Box, relationshipId: string, shapeId: number, altText?: string): XmlElement;
|
|
63
63
|
//#endregion
|
|
64
64
|
export { buildDrawingParagraph as a, ROTATION_UNITS_PER_DEGREE as i, DrawingRunInit as n, buildPictureShape as o, PptxShape as r, buildTextBoxShape as s, DrawingParagraphInit as t };
|
|
@@ -25,7 +25,7 @@ declare class OdpShape {
|
|
|
25
25
|
remove(): void;
|
|
26
26
|
}
|
|
27
27
|
declare function buildTextBoxFrame(pkg: Package, frame: Box, text: string): XmlElement;
|
|
28
|
-
declare function buildImageFrame(partPath: string, frame: Box): XmlElement;
|
|
28
|
+
declare function buildImageFrame(partPath: string, frame: Box, altText?: string): XmlElement;
|
|
29
29
|
declare function buildTableFrame(frame: Box, tableElement: XmlElement): XmlElement;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { buildTextBoxFrame as i, buildImageFrame as n, buildTableFrame as r, OdpShape as t };
|
|
@@ -59,6 +59,6 @@ interface DrawingParagraphInit {
|
|
|
59
59
|
}
|
|
60
60
|
declare function buildDrawingParagraph(init: DrawingParagraphInit): XmlElement;
|
|
61
61
|
declare function buildTextBoxShape(frame: Box, text: string, shapeId: number): XmlElement;
|
|
62
|
-
declare function buildPictureShape(frame: Box, relationshipId: string, shapeId: number): XmlElement;
|
|
62
|
+
declare function buildPictureShape(frame: Box, relationshipId: string, shapeId: number, altText?: string): XmlElement;
|
|
63
63
|
//#endregion
|
|
64
64
|
export { buildDrawingParagraph as a, ROTATION_UNITS_PER_DEGREE as i, DrawingRunInit as n, buildPictureShape as o, PptxShape as r, buildTextBoxShape as s, DrawingParagraphInit as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as DrawingParagraphInit } from "./shape-
|
|
1
|
+
import { t as DrawingParagraphInit } from "./shape-C2ef6uwC.cjs";
|
|
2
2
|
import { Box, Color, ContentCellBorders } from "document-schema.js";
|
|
3
3
|
import { XmlElement } from "ooxml.js";
|
|
4
4
|
//#region src/edit/pptx/table.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as DrawingParagraphInit } from "./shape-
|
|
1
|
+
import { t as DrawingParagraphInit } from "./shape-DwZouh8R.js";
|
|
2
2
|
import { XmlElement } from "ooxml.js";
|
|
3
3
|
import { Box, Color, ContentCellBorders } from "document-schema.js";
|
|
4
4
|
//#region src/edit/pptx/table.d.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "js.documents",
|
|
3
|
-
"version": "6.5.
|
|
3
|
+
"version": "6.5.1",
|
|
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": {
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"fflate": "^0.8.3",
|
|
85
85
|
"markdown-codec": "^6.1.5",
|
|
86
86
|
"odf.js": "^6.4.0",
|
|
87
|
-
"ooxml.js": "^6.3.
|
|
87
|
+
"ooxml.js": "^6.3.5",
|
|
88
88
|
"pdf-codec": "^3.6.3",
|
|
89
89
|
"ppt-codec": "^1.1.0",
|
|
90
90
|
"rtf-codec": "^1.1.1",
|