documents.js 1.65.0 → 1.67.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.
Files changed (119) hide show
  1. package/README.md +18 -11
  2. package/dist/color-C98dn-pT.d.ts +2 -0
  3. package/dist/convert/convert.cjs +2 -1
  4. package/dist/convert/convert.js +2 -1
  5. package/dist/edit/docx/content.cjs +5 -0
  6. package/dist/edit/docx/content.js +5 -0
  7. package/dist/edit/docx/image.cjs +1 -0
  8. package/dist/edit/docx/image.d.cts +2 -2
  9. package/dist/edit/docx/image.d.ts +2 -2
  10. package/dist/edit/docx/image.js +1 -1
  11. package/dist/edit/docx/paragraph.cjs +10 -1
  12. package/dist/edit/docx/paragraph.d.cts +4 -3
  13. package/dist/edit/docx/paragraph.d.ts +4 -3
  14. package/dist/edit/docx/paragraph.js +13 -4
  15. package/dist/edit/docx/props.d.ts +1 -1
  16. package/dist/edit/docx/run.cjs +8 -1
  17. package/dist/edit/docx/run.d.cts +2 -2
  18. package/dist/edit/docx/run.d.ts +2 -2
  19. package/dist/edit/docx/run.js +8 -2
  20. package/dist/edit/docx/vector.cjs +69 -0
  21. package/dist/edit/docx/vector.d.cts +6 -0
  22. package/dist/edit/docx/vector.d.ts +6 -0
  23. package/dist/edit/docx/vector.js +68 -0
  24. package/dist/edit/drawingml/vector.cjs +113 -0
  25. package/dist/edit/drawingml/vector.d.cts +9 -0
  26. package/dist/edit/drawingml/vector.d.ts +9 -0
  27. package/dist/edit/drawingml/vector.js +109 -0
  28. package/dist/edit/odg/content.cjs +1 -26
  29. package/dist/edit/odg/content.js +1 -26
  30. package/dist/edit/odg/page.cjs +14 -1
  31. package/dist/edit/odg/page.d.cts +5 -3
  32. package/dist/edit/odg/page.d.ts +5 -3
  33. package/dist/edit/odg/page.js +14 -1
  34. package/dist/edit/odg/style.cjs +17 -3
  35. package/dist/edit/odg/style.d.cts +1 -0
  36. package/dist/edit/odg/style.d.ts +1 -0
  37. package/dist/edit/odg/style.js +17 -3
  38. package/dist/edit/odg/vector.cjs +65 -3
  39. package/dist/edit/odg/vector.d.cts +2 -2
  40. package/dist/edit/odg/vector.d.ts +2 -2
  41. package/dist/edit/odg/vector.js +63 -4
  42. package/dist/edit/odp/content.cjs +4 -1
  43. package/dist/edit/odp/content.js +5 -2
  44. package/dist/edit/odp/shape.cjs +1 -1
  45. package/dist/edit/odp/shape.d.cts +1 -1
  46. package/dist/edit/odp/shape.d.ts +1 -1
  47. package/dist/edit/odp/shape.js +1 -1
  48. package/dist/edit/odp/slide.cjs +4 -0
  49. package/dist/edit/odp/slide.d.cts +8 -5
  50. package/dist/edit/odp/slide.d.ts +9 -6
  51. package/dist/edit/odp/slide.js +4 -0
  52. package/dist/edit/odt/content.cjs +5 -0
  53. package/dist/edit/odt/content.d.ts +2 -2
  54. package/dist/edit/odt/content.js +5 -0
  55. package/dist/edit/odt/editor.cjs +7 -0
  56. package/dist/edit/odt/editor.d.cts +3 -2
  57. package/dist/edit/odt/editor.d.ts +5 -4
  58. package/dist/edit/odt/editor.js +7 -0
  59. package/dist/edit/odt/list.cjs +13 -0
  60. package/dist/edit/odt/list.d.cts +1 -1
  61. package/dist/edit/odt/list.d.ts +1 -1
  62. package/dist/edit/odt/list.js +13 -0
  63. package/dist/edit/odt/paragraph.d.ts +1 -1
  64. package/dist/edit/odt/run.d.ts +1 -1
  65. package/dist/edit/odt/table.d.ts +1 -1
  66. package/dist/edit/pptx/content.cjs +5 -2
  67. package/dist/edit/pptx/content.js +5 -2
  68. package/dist/edit/pptx/shape.cjs +2 -5
  69. package/dist/edit/pptx/shape.d.ts +1 -1
  70. package/dist/edit/pptx/shape.js +2 -5
  71. package/dist/edit/pptx/slide.cjs +7 -0
  72. package/dist/edit/pptx/slide.d.cts +6 -4
  73. package/dist/edit/pptx/slide.d.ts +8 -6
  74. package/dist/edit/pptx/slide.js +7 -0
  75. package/dist/edit/pptx/table.d.ts +1 -1
  76. package/dist/edit/pptx/vector.cjs +17 -0
  77. package/dist/edit/pptx/vector.d.cts +6 -0
  78. package/dist/edit/pptx/vector.d.ts +6 -0
  79. package/dist/edit/pptx/vector.js +16 -0
  80. package/dist/{image-BfRLAD9B.d.cts → image-DRqXQmEg.d.cts} +2 -1
  81. package/dist/{image-BfRLAD9B.d.ts → image-DRqXQmEg.d.ts} +2 -1
  82. package/dist/index.cjs +2 -2
  83. package/dist/index.d.cts +6 -6
  84. package/dist/index.d.ts +12 -12
  85. package/dist/index.js +2 -2
  86. package/dist/layout/engine.cjs +1 -5
  87. package/dist/layout/engine.js +1 -5
  88. package/dist/layout/shared.cjs +6 -0
  89. package/dist/layout/shared.d.cts +2 -1
  90. package/dist/layout/shared.d.ts +2 -1
  91. package/dist/layout/shared.js +6 -1
  92. package/dist/layout/sheets.cjs +70 -9
  93. package/dist/layout/sheets.d.cts +7 -3
  94. package/dist/layout/sheets.d.ts +7 -3
  95. package/dist/layout/sheets.js +72 -11
  96. package/dist/layout/slides.cjs +1 -5
  97. package/dist/layout/slides.js +1 -5
  98. package/dist/{list-BuBM9rwQ.d.cts → list-BzcN-LTJ.d.cts} +3 -0
  99. package/dist/{list-CvKxhy3y.d.ts → list-nlhN5bat.d.ts} +4 -1
  100. package/dist/markdown/write.cjs +1 -1
  101. package/dist/markdown/write.js +1 -1
  102. package/dist/model/color.d.ts +1 -1
  103. package/dist/model/embedded-drawing.cjs +47 -0
  104. package/dist/model/embedded-drawing.d.cts +4 -2
  105. package/dist/model/embedded-drawing.d.ts +4 -2
  106. package/dist/model/embedded-drawing.js +46 -1
  107. package/dist/{paragraph-CoUi_88j.d.ts → paragraph-DndYbWuT.d.ts} +1 -1
  108. package/dist/{run-D2rTWHbt.d.ts → run-BhYv2wJf.d.ts} +3 -2
  109. package/dist/{run-CJfh8rv3.d.ts → run-DtrwZwN6.d.ts} +1 -1
  110. package/dist/{run-B3GNScJH.d.cts → run-P0b2pDdX.d.cts} +2 -1
  111. package/dist/{shape-BkVcwPcf.d.ts → shape-B-TjU_Ej.d.ts} +1 -1
  112. package/dist/{shape-CXZ6fejV.d.cts → shape-C8qDhn0l.d.cts} +1 -1
  113. package/dist/{shape-CVXedeL7.d.ts → shape-XGp__l-J.d.ts} +2 -2
  114. package/dist/{table-DqfqMkVq.d.ts → table-BHeUmLzZ.d.ts} +1 -1
  115. package/dist/{table-DvS_7UQS.d.ts → table-DQpKafyl.d.ts} +1 -1
  116. package/dist/{vector-Puuqu_IT.d.cts → vector-D03KX8Ux.d.cts} +15 -2
  117. package/dist/{vector-Puuqu_IT.d.ts → vector-D03KX8Ux.d.ts} +15 -2
  118. package/package.json +3 -3
  119. package/dist/color-Bo228AY2.d.ts +0 -2
@@ -1,5 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_edit_odt_automatic_styles = require("./automatic-styles.cjs");
3
+ const require_edit_odg_vector = require("../odg/vector.cjs");
3
4
  const require_edit_odt_formula = require("./formula.cjs");
4
5
  const require_edit_odt_paragraph = require("./paragraph.cjs");
5
6
  const require_edit_odt_list = require("./list.cjs");
@@ -51,6 +52,12 @@ var OdtBodyImpl = class {
51
52
  this.officeText.children.push(paragraphElement);
52
53
  return new require_edit_odt_paragraph.OdtParagraph(this.officeText.children, paragraphElement, this.pkg);
53
54
  }
55
+ appendVectors(vectors) {
56
+ const paragraphElement = require_edit_odt_paragraph.buildParagraph(this.pkg);
57
+ for (const vector of vectors) paragraphElement.children.push(require_edit_odg_vector.buildVectorElement(this.pkg, vector, { textFlowAnchored: true }));
58
+ this.officeText.children.push(paragraphElement);
59
+ return new require_edit_odt_paragraph.OdtParagraph(this.officeText.children, paragraphElement, this.pkg);
60
+ }
54
61
  appendPageBreak() {
55
62
  const paragraphElement = require_edit_odt_paragraph.buildParagraph(this.pkg);
56
63
  paragraphElement.attributes.push({
@@ -1,8 +1,8 @@
1
1
  import { t as Box$1 } from "../../geometry-DaJr8yQW.cjs";
2
2
  import { n as ParagraphInit, t as OdtParagraph } from "../../paragraph-BXbXKPy3.cjs";
3
- import { t as OdtList } from "../../list-BuBM9rwQ.cjs";
3
+ import { t as OdtList } from "../../list-BzcN-LTJ.cjs";
4
4
  import { i as TableInit, t as OdtTable } from "../../table-DjYcNOFm.cjs";
5
- import { ContentFormula } from "document-schema.js";
5
+ import { ContentFormula, ContentVector } from "document-schema.js";
6
6
  import { Package } from "odf.js";
7
7
  //#region src/edit/odt/editor.d.ts
8
8
  interface OdtBody {
@@ -11,6 +11,7 @@ interface OdtBody {
11
11
  appendList(): OdtList;
12
12
  appendPageBreak(): void;
13
13
  appendFormula(formula: ContentFormula, frame: Box$1): OdtParagraph;
14
+ appendVectors(vectors: readonly ContentVector[]): OdtParagraph;
14
15
  }
15
16
  declare class OdtEditor {
16
17
  readonly body: OdtBody;
@@ -1,8 +1,8 @@
1
1
  import { t as Box$1 } from "../../geometry-DaJr8yQW.js";
2
- import { n as ParagraphInit, t as OdtParagraph } from "../../paragraph-CoUi_88j.js";
3
- import { t as OdtList } from "../../list-CvKxhy3y.js";
4
- import { i as TableInit, t as OdtTable } from "../../table-DqfqMkVq.js";
5
- import { ContentFormula } from "document-schema.js";
2
+ import { n as ParagraphInit, t as OdtParagraph } from "../../paragraph-DndYbWuT.js";
3
+ import { t as OdtList } from "../../list-nlhN5bat.js";
4
+ import { i as TableInit, t as OdtTable } from "../../table-BHeUmLzZ.js";
5
+ import { ContentFormula, ContentVector } from "document-schema.js";
6
6
  import { Package } from "odf.js";
7
7
  //#region src/edit/odt/editor.d.ts
8
8
  interface OdtBody {
@@ -11,6 +11,7 @@ interface OdtBody {
11
11
  appendList(): OdtList;
12
12
  appendPageBreak(): void;
13
13
  appendFormula(formula: ContentFormula, frame: Box$1): OdtParagraph;
14
+ appendVectors(vectors: readonly ContentVector[]): OdtParagraph;
14
15
  }
15
16
  declare class OdtEditor {
16
17
  readonly body: OdtBody;
@@ -1,4 +1,5 @@
1
1
  import { ensurePageBreakStyleName } from "./automatic-styles.js";
2
+ import { buildVectorElement } from "../odg/vector.js";
2
3
  import { insertFormulaFrameMedia } from "./formula.js";
3
4
  import { OdtParagraph, buildParagraph } from "./paragraph.js";
4
5
  import { OdtList, buildList } from "./list.js";
@@ -50,6 +51,12 @@ var OdtBodyImpl = class {
50
51
  this.officeText.children.push(paragraphElement);
51
52
  return new OdtParagraph(this.officeText.children, paragraphElement, this.pkg);
52
53
  }
54
+ appendVectors(vectors) {
55
+ const paragraphElement = buildParagraph(this.pkg);
56
+ for (const vector of vectors) paragraphElement.children.push(buildVectorElement(this.pkg, vector, { textFlowAnchored: true }));
57
+ this.officeText.children.push(paragraphElement);
58
+ return new OdtParagraph(this.officeText.children, paragraphElement, this.pkg);
59
+ }
53
60
  appendPageBreak() {
54
61
  const paragraphElement = buildParagraph(this.pkg);
55
62
  paragraphElement.attributes.push({
@@ -33,6 +33,19 @@ var OdtListItem = class {
33
33
  this.node = node;
34
34
  this.pkg = pkg;
35
35
  }
36
+ paragraphs() {
37
+ const out = [];
38
+ for (const child of this.node.children) if (child.type === "element" && child.tag === "text:p") out.push(new require_edit_odt_paragraph.OdtParagraph(this.node.children, child, this.pkg));
39
+ return out;
40
+ }
41
+ get text() {
42
+ return this.paragraphs().map((p) => p.text).join("\n");
43
+ }
44
+ nestedLists() {
45
+ const out = [];
46
+ for (const child of this.node.children) if (child.type === "element" && child.tag === "text:list") out.push(new OdtList(this.node.children, child, this.pkg));
47
+ return out;
48
+ }
36
49
  appendParagraph(init) {
37
50
  const paragraphElement = require_edit_odt_paragraph.buildParagraph(this.pkg, init);
38
51
  this.node.children.push(paragraphElement);
@@ -1,2 +1,2 @@
1
- import { n as OdtListItem, r as buildList, t as OdtList } from "../../list-BuBM9rwQ.cjs";
1
+ import { n as OdtListItem, r as buildList, t as OdtList } from "../../list-BzcN-LTJ.cjs";
2
2
  export { OdtList, OdtListItem, buildList };
@@ -1,2 +1,2 @@
1
- import { n as OdtListItem, r as buildList, t as OdtList } from "../../list-CvKxhy3y.js";
1
+ import { n as OdtListItem, r as buildList, t as OdtList } from "../../list-nlhN5bat.js";
2
2
  export { OdtList, OdtListItem, buildList };
@@ -32,6 +32,19 @@ var OdtListItem = class {
32
32
  this.node = node;
33
33
  this.pkg = pkg;
34
34
  }
35
+ paragraphs() {
36
+ const out = [];
37
+ for (const child of this.node.children) if (child.type === "element" && child.tag === "text:p") out.push(new OdtParagraph(this.node.children, child, this.pkg));
38
+ return out;
39
+ }
40
+ get text() {
41
+ return this.paragraphs().map((p) => p.text).join("\n");
42
+ }
43
+ nestedLists() {
44
+ const out = [];
45
+ for (const child of this.node.children) if (child.type === "element" && child.tag === "text:list") out.push(new OdtList(this.node.children, child, this.pkg));
46
+ return out;
47
+ }
35
48
  appendParagraph(init) {
36
49
  const paragraphElement = buildParagraph(this.pkg, init);
37
50
  this.node.children.push(paragraphElement);
@@ -1,2 +1,2 @@
1
- import { n as ParagraphInit, r as buildParagraph, t as OdtParagraph } from "../../paragraph-CoUi_88j.js";
1
+ import { n as ParagraphInit, r as buildParagraph, t as OdtParagraph } from "../../paragraph-DndYbWuT.js";
2
2
  export { OdtParagraph, ParagraphInit, buildParagraph };
@@ -1,2 +1,2 @@
1
- import { n as RunInit, r as buildRun, t as OdtRun } from "../../run-CJfh8rv3.js";
1
+ import { n as RunInit, r as buildRun, t as OdtRun } from "../../run-DtrwZwN6.js";
2
2
  export { OdtRun, RunInit, buildRun };
@@ -1,2 +1,2 @@
1
- import { a as buildTable, i as TableInit, n as OdtTableCell, r as OdtTableRow, t as OdtTable } from "../../table-DqfqMkVq.js";
1
+ import { a as buildTable, i as TableInit, n as OdtTableCell, r as OdtTableRow, t as OdtTable } from "../../table-BHeUmLzZ.js";
2
2
  export { OdtTable, OdtTableCell, OdtTableRow, TableInit, buildTable };
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_edit_pptx_editor = require("./editor.cjs");
3
2
  const require_model_embedded_drawing = require("../../model/embedded-drawing.cjs");
3
+ const require_edit_pptx_editor = require("./editor.cjs");
4
4
  let ooxml_js = require("ooxml.js");
5
5
  //#region src/edit/pptx/content.ts
6
6
  function buildPptxPackage(content) {
@@ -17,7 +17,10 @@ function buildPptxPackage(content) {
17
17
  }
18
18
  function appendShape(slide, shape) {
19
19
  const [onlyBlock] = shape.blocks;
20
- if (shape.blocks.length === 1 && onlyBlock?.kind === "embeddedObject" && require_model_embedded_drawing.drawingOfBlock(onlyBlock) !== void 0) return;
20
+ if (shape.blocks.length === 1 && onlyBlock?.kind === "embeddedObject" && require_model_embedded_drawing.drawingOfBlock(onlyBlock) !== void 0) {
21
+ for (const vector of require_model_embedded_drawing.embeddedDrawingVectors(onlyBlock, shape.frame)) slide.addVector(vector);
22
+ return;
23
+ }
21
24
  if (shape.blocks.length === 1 && onlyBlock?.kind === "image") {
22
25
  const imageShape = slide.addImage({
23
26
  frame: shape.frame,
@@ -1,5 +1,5 @@
1
+ import { drawingOfBlock, embeddedDrawingVectors } from "../../model/embedded-drawing.js";
1
2
  import { createPptx } from "./editor.js";
2
- import { drawingOfBlock } from "../../model/embedded-drawing.js";
3
3
  import { base64ToBytes } from "ooxml.js";
4
4
  //#region src/edit/pptx/content.ts
5
5
  function buildPptxPackage(content) {
@@ -16,7 +16,10 @@ function buildPptxPackage(content) {
16
16
  }
17
17
  function appendShape(slide, shape) {
18
18
  const [onlyBlock] = shape.blocks;
19
- if (shape.blocks.length === 1 && onlyBlock?.kind === "embeddedObject" && drawingOfBlock(onlyBlock) !== void 0) return;
19
+ if (shape.blocks.length === 1 && onlyBlock?.kind === "embeddedObject" && drawingOfBlock(onlyBlock) !== void 0) {
20
+ for (const vector of embeddedDrawingVectors(onlyBlock, shape.frame)) slide.addVector(vector);
21
+ return;
22
+ }
20
23
  if (shape.blocks.length === 1 && onlyBlock?.kind === "image") {
21
24
  const imageShape = slide.addImage({
22
25
  frame: shape.frame,
@@ -3,6 +3,7 @@ const require_xml_fragment = require("../../xml/fragment.cjs");
3
3
  const require_xml_entities = require("../../xml/entities.cjs");
4
4
  const require_xml_edit = require("../../xml/edit.cjs");
5
5
  const require_model_units = require("../../model/units.cjs");
6
+ const require_edit_drawingml_vector = require("../drawingml/vector.cjs");
6
7
  let ooxml_js = require("ooxml.js");
7
8
  //#region src/edit/pptx/shape.ts
8
9
  function directChild(parent, tag) {
@@ -123,17 +124,13 @@ const ALIGNMENT_TO_ALGN = {
123
124
  justify: "just"
124
125
  };
125
126
  const HUNDREDTHS_POINT_PER_POINT = 100;
126
- function colorToHex(color) {
127
- const toByte = (c) => Math.round(c * 255).toString(16).padStart(2, "0");
128
- return `${toByte(color.r)}${toByte(color.g)}${toByte(color.b)}`.toUpperCase();
129
- }
130
127
  function buildDrawingRun(init) {
131
128
  const rPrAttrs = {};
132
129
  if (init.bold === true) rPrAttrs.b = "1";
133
130
  if (init.italic === true) rPrAttrs.i = "1";
134
131
  if (init.sizePt !== void 0) rPrAttrs.sz = String(Math.round(init.sizePt * HUNDREDTHS_POINT_PER_POINT));
135
132
  const rPrChildren = [];
136
- if (init.color !== void 0) rPrChildren.push(require_xml_fragment.el("a:solidFill", {}, [require_xml_fragment.el("a:srgbClr", { val: colorToHex(init.color) })]));
133
+ if (init.color !== void 0) rPrChildren.push(require_xml_fragment.el("a:solidFill", {}, [require_xml_fragment.el("a:srgbClr", { val: require_edit_drawingml_vector.drawingMlColorHex(init.color) })]));
137
134
  if (init.fontFamily !== void 0) rPrChildren.push(require_xml_fragment.el("a:latin", { typeface: init.fontFamily }));
138
135
  const rPr = Object.keys(rPrAttrs).length > 0 || rPrChildren.length > 0 ? [require_xml_fragment.el("a:rPr", rPrAttrs, rPrChildren)] : [];
139
136
  const tAttrs = require_xml_entities.needsSpacePreserve(init.text) ? { "xml:space": "preserve" } : {};
@@ -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-BkVcwPcf.js";
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-B-TjU_Ej.js";
2
2
  export { DrawingParagraphInit, DrawingRunInit, PptxShape, ROTATION_UNITS_PER_DEGREE, buildDrawingParagraph, buildPictureShape, buildTextBoxShape };
@@ -2,6 +2,7 @@ import { el, txt } from "../../xml/fragment.js";
2
2
  import { encodeXmlText, needsSpacePreserve } from "../../xml/entities.js";
3
3
  import { removeAttr, removeChild, setAttr } from "../../xml/edit.js";
4
4
  import { emuToPt, ptToEmu } from "../../model/units.js";
5
+ import { drawingMlColorHex } from "../drawingml/vector.js";
5
6
  import { attr, textContent } from "ooxml.js";
6
7
  //#region src/edit/pptx/shape.ts
7
8
  function directChild(parent, tag) {
@@ -122,17 +123,13 @@ const ALIGNMENT_TO_ALGN = {
122
123
  justify: "just"
123
124
  };
124
125
  const HUNDREDTHS_POINT_PER_POINT = 100;
125
- function colorToHex(color) {
126
- const toByte = (c) => Math.round(c * 255).toString(16).padStart(2, "0");
127
- return `${toByte(color.r)}${toByte(color.g)}${toByte(color.b)}`.toUpperCase();
128
- }
129
126
  function buildDrawingRun(init) {
130
127
  const rPrAttrs = {};
131
128
  if (init.bold === true) rPrAttrs.b = "1";
132
129
  if (init.italic === true) rPrAttrs.i = "1";
133
130
  if (init.sizePt !== void 0) rPrAttrs.sz = String(Math.round(init.sizePt * HUNDREDTHS_POINT_PER_POINT));
134
131
  const rPrChildren = [];
135
- if (init.color !== void 0) rPrChildren.push(el("a:solidFill", {}, [el("a:srgbClr", { val: colorToHex(init.color) })]));
132
+ if (init.color !== void 0) rPrChildren.push(el("a:solidFill", {}, [el("a:srgbClr", { val: drawingMlColorHex(init.color) })]));
136
133
  if (init.fontFamily !== void 0) rPrChildren.push(el("a:latin", { typeface: init.fontFamily }));
137
134
  const rPr = Object.keys(rPrAttrs).length > 0 || rPrChildren.length > 0 ? [el("a:rPr", rPrAttrs, rPrChildren)] : [];
138
135
  const tAttrs = needsSpacePreserve(init.text) ? { "xml:space": "preserve" } : {};
@@ -9,6 +9,7 @@ const require_edit_pptx_scaffold = require("./scaffold.cjs");
9
9
  const require_edit_pptx_shape = require("./shape.cjs");
10
10
  const require_edit_pptx_image = require("./image.cjs");
11
11
  const require_edit_pptx_table = require("./table.cjs");
12
+ const require_edit_pptx_vector = require("./vector.cjs");
12
13
  let ooxml_js = require("ooxml.js");
13
14
  //#region src/edit/pptx/slide.ts
14
15
  function directChild(parent, tag) {
@@ -98,6 +99,12 @@ var PptxSlide = class {
98
99
  spTree.children.push(shapeElement);
99
100
  return new require_edit_pptx_shape.PptxShape(spTree.children, shapeElement);
100
101
  }
102
+ addVector(vector) {
103
+ const spTree = findSpTree(this.live());
104
+ const shapeElement = require_edit_pptx_vector.buildVectorShape(vector, nextIdIn(spTree));
105
+ spTree.children.push(shapeElement);
106
+ return new require_edit_pptx_shape.PptxShape(spTree.children, shapeElement);
107
+ }
101
108
  addImage(init) {
102
109
  const slideRoot = this.live();
103
110
  const spTree = findSpTree(slideRoot);
@@ -1,18 +1,19 @@
1
- import { t as Box } from "../../geometry-DaJr8yQW.cjs";
1
+ import { t as Box$1 } from "../../geometry-DaJr8yQW.cjs";
2
2
  import { t as ImageInit } from "../../image-7snmKIxn.cjs";
3
3
  import { r as PptxShape } from "../../shape-BhkP6HB8.cjs";
4
4
  import { r as PptxTableInit, t as PptxTable } from "../../table-C3CPZ--2.cjs";
5
+ import { ContentVector } from "document-schema.js";
5
6
  import { Package, XmlElement, XmlNode } from "ooxml.js";
6
7
  //#region src/edit/pptx/slide.d.ts
7
8
  interface TextBoxInit {
8
- readonly frame: Box;
9
+ readonly frame: Box$1;
9
10
  readonly text: string;
10
11
  }
11
12
  interface SlideImageInit extends ImageInit {
12
- readonly frame: Box;
13
+ readonly frame: Box$1;
13
14
  }
14
15
  interface SlideTableInit {
15
- readonly frame: Box;
16
+ readonly frame: Box$1;
16
17
  readonly table: PptxTableInit;
17
18
  readonly rotationDeg?: number;
18
19
  }
@@ -30,6 +31,7 @@ declare class PptxSlide {
30
31
  private live;
31
32
  shapes(): PptxShape[];
32
33
  addTextBox(init: TextBoxInit): PptxShape;
34
+ addVector(vector: ContentVector): PptxShape;
33
35
  addImage(init: SlideImageInit): PptxShape;
34
36
  addTable(init: SlideTableInit): PptxTable;
35
37
  get notes(): string;
@@ -1,18 +1,19 @@
1
- import { t as Box } from "../../geometry-DaJr8yQW.js";
1
+ import { t as Box$1 } from "../../geometry-DaJr8yQW.js";
2
2
  import { t as ImageInit } from "../../image-Cs8xF753.js";
3
- import { r as PptxShape } from "../../shape-BkVcwPcf.js";
4
- import { r as PptxTableInit, t as PptxTable } from "../../table-DvS_7UQS.js";
3
+ import { r as PptxShape } from "../../shape-B-TjU_Ej.js";
4
+ import { r as PptxTableInit, t as PptxTable } from "../../table-DQpKafyl.js";
5
5
  import { Package, XmlElement, XmlNode } from "ooxml.js";
6
+ import { ContentVector } from "document-schema.js";
6
7
  //#region src/edit/pptx/slide.d.ts
7
8
  interface TextBoxInit {
8
- readonly frame: Box;
9
+ readonly frame: Box$1;
9
10
  readonly text: string;
10
11
  }
11
12
  interface SlideImageInit extends ImageInit {
12
- readonly frame: Box;
13
+ readonly frame: Box$1;
13
14
  }
14
15
  interface SlideTableInit {
15
- readonly frame: Box;
16
+ readonly frame: Box$1;
16
17
  readonly table: PptxTableInit;
17
18
  readonly rotationDeg?: number;
18
19
  }
@@ -30,6 +31,7 @@ declare class PptxSlide {
30
31
  private live;
31
32
  shapes(): PptxShape[];
32
33
  addTextBox(init: TextBoxInit): PptxShape;
34
+ addVector(vector: ContentVector): PptxShape;
33
35
  addImage(init: SlideImageInit): PptxShape;
34
36
  addTable(init: SlideTableInit): PptxTable;
35
37
  get notes(): string;
@@ -8,6 +8,7 @@ import { DML_NS, NOTES_MASTER_REL_TYPE, PML_NS, buildEmptyGroupSpTree, ensureNot
8
8
  import { PptxShape, buildTextBoxShape } from "./shape.js";
9
9
  import { insertPictureShapeMedia } from "./image.js";
10
10
  import { PptxTable, buildDrawingTable, buildTableGraphicFrame } from "./table.js";
11
+ import { buildVectorShape } from "./vector.js";
11
12
  import { resolveRelationships, rootElement, textContent } from "ooxml.js";
12
13
  //#region src/edit/pptx/slide.ts
13
14
  function directChild(parent, tag) {
@@ -97,6 +98,12 @@ var PptxSlide = class {
97
98
  spTree.children.push(shapeElement);
98
99
  return new PptxShape(spTree.children, shapeElement);
99
100
  }
101
+ addVector(vector) {
102
+ const spTree = findSpTree(this.live());
103
+ const shapeElement = buildVectorShape(vector, nextIdIn(spTree));
104
+ spTree.children.push(shapeElement);
105
+ return new PptxShape(spTree.children, shapeElement);
106
+ }
100
107
  addImage(init) {
101
108
  const slideRoot = this.live();
102
109
  const spTree = findSpTree(slideRoot);
@@ -1,2 +1,2 @@
1
- import { a as buildDrawingTable, i as PptxTableRow, n as PptxTableCell, o as buildTableGraphicFrame, r as PptxTableInit, t as PptxTable } from "../../table-DvS_7UQS.js";
1
+ import { a as buildDrawingTable, i as PptxTableRow, n as PptxTableCell, o as buildTableGraphicFrame, r as PptxTableInit, t as PptxTable } from "../../table-DQpKafyl.js";
2
2
  export { PptxTable, PptxTableCell, PptxTableInit, PptxTableRow, buildDrawingTable, buildTableGraphicFrame };
@@ -0,0 +1,17 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_xml_fragment = require("../../xml/fragment.cjs");
3
+ const require_edit_drawingml_vector = require("../drawingml/vector.cjs");
4
+ //#region src/edit/pptx/vector.ts
5
+ function buildVectorShape(vector, shapeId) {
6
+ const nvSpPr = require_xml_fragment.el("p:nvSpPr", {}, [
7
+ require_xml_fragment.el("p:cNvPr", {
8
+ id: String(shapeId),
9
+ name: require_edit_drawingml_vector.vectorShapeName(vector, shapeId)
10
+ }),
11
+ require_xml_fragment.el("p:cNvSpPr"),
12
+ require_xml_fragment.el("p:nvPr")
13
+ ]);
14
+ return require_xml_fragment.el("p:sp", {}, [nvSpPr, require_xml_fragment.el("p:spPr", {}, require_edit_drawingml_vector.buildVectorShapeProperties(vector))]);
15
+ }
16
+ //#endregion
17
+ exports.buildVectorShape = buildVectorShape;
@@ -0,0 +1,6 @@
1
+ import { ContentVector } from "document-schema.js";
2
+ import { XmlElement } from "ooxml.js";
3
+ //#region src/edit/pptx/vector.d.ts
4
+ declare function buildVectorShape(vector: ContentVector, shapeId: number): XmlElement;
5
+ //#endregion
6
+ export { buildVectorShape };
@@ -0,0 +1,6 @@
1
+ import { XmlElement } from "ooxml.js";
2
+ import { ContentVector } from "document-schema.js";
3
+ //#region src/edit/pptx/vector.d.ts
4
+ declare function buildVectorShape(vector: ContentVector, shapeId: number): XmlElement;
5
+ //#endregion
6
+ export { buildVectorShape };
@@ -0,0 +1,16 @@
1
+ import { el } from "../../xml/fragment.js";
2
+ import { buildVectorShapeProperties, vectorShapeName } from "../drawingml/vector.js";
3
+ //#region src/edit/pptx/vector.ts
4
+ function buildVectorShape(vector, shapeId) {
5
+ const nvSpPr = el("p:nvSpPr", {}, [
6
+ el("p:cNvPr", {
7
+ id: String(shapeId),
8
+ name: vectorShapeName(vector, shapeId)
9
+ }),
10
+ el("p:cNvSpPr"),
11
+ el("p:nvPr")
12
+ ]);
13
+ return el("p:sp", {}, [nvSpPr, el("p:spPr", {}, buildVectorShapeProperties(vector))]);
14
+ }
15
+ //#endregion
16
+ export { buildVectorShape };
@@ -7,6 +7,7 @@ interface ImageInit {
7
7
  readonly heightPt: number;
8
8
  readonly altText?: string;
9
9
  }
10
+ declare function nextDrawingId(documentRoot: XmlElement): number;
10
11
  declare function buildInlineDrawing(relationshipId: string, widthPt: number, heightPt: number, id: number, altText: string | undefined): XmlElement;
11
12
  interface MediaContext {
12
13
  readonly pkg: Package;
@@ -15,4 +16,4 @@ interface MediaContext {
15
16
  }
16
17
  declare function insertImageMedia(context: MediaContext, documentRoot: XmlElement, image: ImageInit): XmlNode;
17
18
  //#endregion
18
- export { insertImageMedia as i, MediaContext as n, buildInlineDrawing as r, ImageInit as t };
19
+ export { nextDrawingId as a, insertImageMedia as i, MediaContext as n, buildInlineDrawing as r, ImageInit as t };
@@ -7,6 +7,7 @@ interface ImageInit {
7
7
  readonly heightPt: number;
8
8
  readonly altText?: string;
9
9
  }
10
+ declare function nextDrawingId(documentRoot: XmlElement): number;
10
11
  declare function buildInlineDrawing(relationshipId: string, widthPt: number, heightPt: number, id: number, altText: string | undefined): XmlElement;
11
12
  interface MediaContext {
12
13
  readonly pkg: Package;
@@ -15,4 +16,4 @@ interface MediaContext {
15
16
  }
16
17
  declare function insertImageMedia(context: MediaContext, documentRoot: XmlElement, image: ImageInit): XmlNode;
17
18
  //#endregion
18
- export { insertImageMedia as i, MediaContext as n, buildInlineDrawing as r, ImageInit as t };
19
+ export { nextDrawingId as a, insertImageMedia as i, MediaContext as n, buildInlineDrawing as r, ImageInit as t };
package/dist/index.cjs CHANGED
@@ -9,14 +9,15 @@ const require_edit_docx_run = require("./edit/docx/run.cjs");
9
9
  const require_edit_docx_paragraph = require("./edit/docx/paragraph.cjs");
10
10
  const require_edit_docx_table = require("./edit/docx/table.cjs");
11
11
  const require_edit_docx_editor = require("./edit/docx/editor.cjs");
12
+ const require_model_embedded_drawing = require("./model/embedded-drawing.cjs");
12
13
  const require_model_formula = require("./model/formula.cjs");
13
14
  const require_edit_docx_content = require("./edit/docx/content.cjs");
14
15
  const require_edit_pptx_shape = require("./edit/pptx/shape.cjs");
15
16
  const require_edit_pptx_table = require("./edit/pptx/table.cjs");
16
17
  const require_edit_pptx_slide = require("./edit/pptx/slide.cjs");
17
18
  const require_edit_pptx_editor = require("./edit/pptx/editor.cjs");
18
- const require_model_embedded_drawing = require("./model/embedded-drawing.cjs");
19
19
  const require_edit_pptx_content = require("./edit/pptx/content.cjs");
20
+ const require_edit_odg_vector = require("./edit/odg/vector.cjs");
20
21
  const require_edit_odt_run = require("./edit/odt/run.cjs");
21
22
  const require_edit_odt_paragraph = require("./edit/odt/paragraph.cjs");
22
23
  const require_edit_odt_list = require("./edit/odt/list.cjs");
@@ -31,7 +32,6 @@ const require_edit_ods_cell = require("./edit/ods/cell.cjs");
31
32
  const require_edit_ods_sheet = require("./edit/ods/sheet.cjs");
32
33
  const require_edit_ods_editor = require("./edit/ods/editor.cjs");
33
34
  const require_edit_ods_content = require("./edit/ods/content.cjs");
34
- const require_edit_odg_vector = require("./edit/odg/vector.cjs");
35
35
  const require_edit_odg_page = require("./edit/odg/page.cjs");
36
36
  const require_edit_odg_editor = require("./edit/odg/editor.cjs");
37
37
  const require_edit_odg_content = require("./edit/odg/content.cjs");
package/dist/index.d.cts CHANGED
@@ -10,7 +10,7 @@ import { BuildDocxPackageOptions, buildDocxPackage } from "./edit/docx/content.c
10
10
  import { c as firstChildByLocalName, d as textContent, i as MathMlText, l as isMathMlElement, n as MathMlElement, o as elementChildren, r as MathMlNode, s as elementLocalName, t as MathMlAttribute, u as localName } from "./nodes-pArN9ilm.cjs";
11
11
  import { n as buildOfficeMath, r as buildOfficeMathParagraph, t as OmmlWriteResult } from "./write-BQ6SK8r8.cjs";
12
12
  import { a as rgbHexToColor, n as LayoutColor, t as COLOR_BLACK } from "./color-71eoF1Up.cjs";
13
- import { t as DocxRun } from "./run-B3GNScJH.cjs";
13
+ import { t as DocxRun } from "./run-P0b2pDdX.cjs";
14
14
  import { DocxParagraph } from "./edit/docx/paragraph.cjs";
15
15
  import { DocxTable, DocxTableCell, DocxTableRow, DocxVerticalMerge } from "./edit/docx/table.cjs";
16
16
  import { DocxBody, DocxEditor, createDocx, openDocx } from "./edit/docx/editor.cjs";
@@ -19,9 +19,9 @@ import { buildOdgPackage } from "./edit/odg/content.cjs";
19
19
  import { i as LayoutFont, r as DEFAULT_LAYOUT_FONT, t as Alignment } from "./style-DkamR3aY.cjs";
20
20
  import { n as RunInit, t as OdtRun } from "./run-F8JN7Vy4.cjs";
21
21
  import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-BXbXKPy3.cjs";
22
- import { n as OdtListItem, t as OdtList } from "./list-BuBM9rwQ.cjs";
23
- import { t as OdpShape } from "./shape-CXZ6fejV.cjs";
24
- import { a as OdgLineVector, n as LineVectorInit, o as OdgPathVector, r as OdgBoxVector, s as PathVectorInit, t as BoxVectorInit } from "./vector-Puuqu_IT.cjs";
22
+ import { n as OdtListItem, t as OdtList } from "./list-BzcN-LTJ.cjs";
23
+ import { t as OdpShape } from "./shape-C8qDhn0l.cjs";
24
+ 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-D03KX8Ux.cjs";
25
25
  import { OdgPage, PageImageInit, TextBoxInit } from "./edit/odg/page.cjs";
26
26
  import { OdgEditor, createOdg, openOdg } from "./edit/odg/editor.cjs";
27
27
  import { buildOdpPackage } from "./edit/odp/content.cjs";
@@ -71,7 +71,7 @@ import { buildFormulaBlock, formulaDocument, formulaOfBlock, formulaPlaceholderT
71
71
  import { buildDrawingBlock, drawingOfBlock } from "./model/embedded-drawing.cjs";
72
72
  import { EngineLayoutOptions, WordprocessingLayoutResult, convertWordprocessingToLayout } from "./layout/engine.cjs";
73
73
  import { PresentationLayoutResult, SlidesLayoutOptions, convertPresentationToLayout } from "./layout/slides.cjs";
74
- import { SheetsLayoutOptions, convertSpreadsheetToLayout } from "./layout/sheets.cjs";
74
+ import { SheetsLayoutOptions, SpreadsheetLayoutResult, convertSpreadsheetToLayout } from "./layout/sheets.cjs";
75
75
  import { DrawingLayoutOptions, convertDrawingToLayout } from "./layout/drawing.cjs";
76
76
  import { CellTypeDeclineReason, CellTypeInference, CellTypeInferenceResult, CellTypeInferenceSink, CellTypeRule, inferCellValue } from "./layout/cell-typing.cjs";
77
77
  import { ReconstructOptions, reconstructDrawing, reconstructPresentation, reconstructSpreadsheet, reconstructWordprocessing } from "./layout/reconstruct.cjs";
@@ -97,4 +97,4 @@ import { CONTENT_FORMAT_VERSION, ContentBlock, ContentBlockSchema, ContentCellVa
97
97
  import { OdbComponentInfo, OdbConnectionInfo, OdbForm, OdbFormControl, OdbFormDefinition, OdbInventory, OdbQueryInfo, OdbReport, OdbReportBand, OdbReportElement, OdbReportFunction, OdbReportGroup, readOdbForm, readOdbInventory, readOdbReport, resolveOdbComponent } from "odf.js";
98
98
  import { FontRegistry, FontRegistryOptions, FontSubstitution, LoadedMathFont, MathFont, MathFontDescriptorMetrics, NOOP_DIAGNOSTIC_SINK, PdfDiagnostic, PdfDiagnosticSeverity, PdfDiagnosticSink, PdfEncryptedError, PdfParseError, PositionedFormula, ProvidedFont, ReadPdfOptions, ResolvedFace, WinAnsiSubstitution, WritePdfOptions, createFontMeasurer, createFontRegistry, createStandardFontMeasurer, loadMathFont, pdfCodec, readPdf, writePdf } from "pdf-codec";
99
99
  import { Attribute, AttributeSchema, BinaryPart, BinaryPartSchema, Comment, CommentSchema, CompactAttrPairs, CompactPackage, CompactPackageSchema, CompactPart, CompactPartSchema, CompactXmlNode, CompactXmlNodeSchema, DefinedName, DefinedNameSchema, Footnote, FootnoteSchema, NumberingDefinition, NumberingDefinitionSchema, NumberingDefinitions, NumberingLevel, NumberingLevelSchema, Package, PackageSchema, Part, PartSchema, Relationship, XmlCdata, XmlCdataSchema, XmlComment, XmlCommentSchema, XmlDeclaration, XmlDeclarationSchema, XmlElement, XmlElementSchema, XmlNode, XmlNodeSchema, XmlPart, XmlPartSchema, XmlPi, XmlPiSchema, XmlText, XmlTextSchema, attr, base64ToBytes, buildXml, bytesToBase64, childrenWithTag, compactCodec, compactPackageCodec, decodeCompactPackage, decodeEntities, decodePackage, elementsWithTag, encodeCompactPackage, encodePackage, fromCompact, isCompactXmlNode, isXmlNode, packageCodec, parsePackage, parseXml, resolveRelationships, rootElement, serializePackage, textContent as textContent$1, toCompact, unzipPackage, walk, xmlCodec, zipPackage } from "ooxml.js";
100
- export { type Alignment, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, type BuildDocxPackageOptions, COLOR_BLACK, CONTENT_FORMAT_VERSION, type CellTypeDeclineReason, type CellTypeInference, type CellTypeInferenceResult, type CellTypeInferenceSink, type CellTypeRule, type ClockPort, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type ContentBlock, ContentBlockSchema, type ContentCellValue, ContentCellValueSchema, type ContentDocument, type ContentDocumentJson, ContentDocumentSchema, type ContentDrawPage, ContentDrawPageSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentPathPoint, ContentPathPointSchema, type ContentPathSegment, ContentPathSegmentSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSheet, type ContentSheetCell, ContentSheetCellSchema, type ContentSheetColumn, ContentSheetColumnSchema, type ContentSheetImage, type ContentSheetPrintRange, ContentSheetPrintRangeSchema, type ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, type ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, type ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, type ContentSlide, ContentSlideSchema, type ContentStroke, ContentStrokeSchema, type ContentSubpath, ContentSubpathSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type ContentVector, ContentVectorSchema, type ConversionOptions, type ConversionRequest, type ConversionResult, DEFAULT_LAYOUT_FONT, type DefinedName, DefinedNameSchema, type Diagnostic, type DocumentBridgeOptions, type DocumentConverter, type DocumentFontRegistryOptions, type DocumentFormat, type DocumentJsonResult, type DocumentPackage, type DocumentPackageJson, DocumentPackageSchema, type DocumentPayload, type DocumentSchemaKind, type DocumentToPdfOptions, type DocxBody, DocxBytesSchema, DocxEditor, type DocxExtras, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, type DocxVerticalMerge, type DrawingLayoutOptions, type DrawingParagraphInit, type DrawingRunInit, type EngineLayoutOptions, SUPPORTED_BACKUP_FORMAT_VERSION as FIREBIRD_SUPPORTED_BACKUP_FORMAT_VERSION, FirebirdBackupFormatError, FirebirdBackupParseError, type FirebirdBackupSummary, FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError, FirebirdSchemaParseError, FirebirdUnsupportedFieldTypeError, FontDeobfuscationError, type FontRegistry, type FontRegistryOptions, type FontSourcePackage, type FontSubstitution, type Footnote, FootnoteSchema, type GridLattice, type HsqldbBinaryScript, HsqldbBinaryScriptParseError, type HsqldbColumn, type HsqldbDecodeOptions, HsqldbRowFormatError, HsqldbScriptParseError, HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError, type HsqldbTable, LAYOUT_FORMAT_VERSION, type LayoutColor, type LayoutDocument, type LayoutDocumentJson, LayoutDocumentSchema, type LayoutEllipse, type LayoutFont, type LayoutFormulaOptions, type LayoutImage, type LayoutImageAsset, type LayoutItem, type LayoutLine, type LayoutLink, type LayoutMetadata, type LayoutPage, type LayoutPath, type LayoutPathSegment, type LayoutRect, type LayoutSubpath, type LayoutText, type LoadedMathFont, type Margins, MarkdownBytesSchema, type MathAssembledGlyphs, type MathBox, type MathColor, type MathDiagnostic, type MathDiagnosticKind, type MathFont, type MathFontDescriptorMetrics, type MathFontMetrics, type MathGlyphMetrics, type MathGlyphPlacement, type MathGlyphRun, type MathLayoutItem, type MathLayoutResult, type MathMlAttribute, type MathMlElement, type MathMlNode, type MathMlText, type MathRule, type MathStretchAxis, type MathStretchGlyph, type MathStretchResult, type MathStroke, type MathVariant, NOOP_DIAGNOSTIC_SINK, type NumberingDefinition, NumberingDefinitionSchema, type NumberingDefinitions, type NumberingLevel, NumberingLevelSchema, type OdbComponentInfo, type OdbConnectionInfo, type OdbConversionOptions, type OdbForm, type OdbFormControl, type OdbFormDefinition, type OdbInventory, OdbNoEmbeddedDataSourceError, type OdbQueryInfo, type OdbReport, type OdbReportBand, type OdbReportContentOptions, OdbReportDataSourceError, type OdbReportElement, type OdbReportFunction, type OdbReportGroup, OdbReportNotSpecifiedError, OdbTableNotFoundError, OdbTableNotSpecifiedError, type OdbToCsvOptions, type OdbUnsupportedFormat, OdbUnsupportedFormatError, OdfEmbeddedFontError, OdgBoxVector, type BoxVectorInit as OdgBoxVectorInit, OdgBytesSchema, OdgEditor, OdgLineVector, type LineVectorInit as OdgLineVectorInit, OdgPage, type PageImageInit as OdgPageImageInit, OdgPathVector, type PathVectorInit as OdgPathVectorInit, type TextBoxInit as OdgTextBoxInit, type OdmToPdfOptions, OdmUnresolvedSectionError, OdpBytesSchema, OdpEditor, OdpShape, OdpSlide, type SlideImageInit as OdpSlideImageInit, type SlideTableInit as OdpSlideTableInit, type TextBoxInit$1 as OdpTextBoxInit, OdsBytesSchema, OdsCell, OdsEditor, OdsSheet, type OdtBody, OdtBytesSchema, OdtEditor, OdtList, OdtListItem, OdtParagraph, type ParagraphInit as OdtParagraphInit, OdtRun, type RunInit as OdtRunInit, OdtTable, OdtTableCell, type TableInit as OdtTableInit, OdtTableRow, type OmmlDiagnostic, type OmmlDiagnosticKind, type OmmlReadResult, type OmmlWriteResult, OoxmlEmbeddedFontError, type OperatorProperties, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageSize, type Part, PartSchema, PdfBytesSchema, type PdfDiagnostic, type PdfDiagnosticSeverity, type PdfDiagnosticSink, PdfEncryptedError, PdfParseError, type PdfToDocumentOptions, type PositionedFormula, PptxBytesSchema, PptxEditor, PptxShape, PptxSlide, PptxTable, PptxTableCell, type PptxTableInit, PptxTableRow, type PresentationLayoutResult, type ProvidedFont, type ReadDocxContentOptions, type ReadFirebirdBackupResult, type ReadPdfOptions, type ReconstructOptions, type Relationship, type ResolvedFace, type RptAggregateFunction, type RptBandDefinition, type RptBandInstance, type RptBandKind, type RptFormula, RptFormulaEvaluationError, RptFormulaParseError, RptFormulaUnsupportedError, type RptGroupDefinition, type RptNamedFunctionDefinition, type RptReference, type RptReportDefinition, type RptReportRun, RptReportStructureError, type RptScope, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, type SheetsLayoutOptions, type SlideImageInit$1 as SlideImageInit, type SlideTableInit$1 as SlideTableInit, type SlidesLayoutOptions, type SqlAggregateArgument, type SqlAggregateFunction, type SqlColumnRef, type SqlComparisonOperator, type SqlLiteral, type SqlNameRef, type SqlOperand, type SqlOrderByTerm, type SqlPredicate, type SqlPunctuation, type SqlResultSet, type SqlSelectItem, type SqlSelectStatement, type SqlSortDirection, type SqlToken, type TextBoxInit$2 as TextBoxInit, UnrecognizedDocumentSchemaError, type WinAnsiSubstitution, type WordprocessingLayoutResult, type WritePdfOptions, XlsxBytesSchema, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, applyMathVariant, attr, base64ToBytes, buildDocxPackage, buildDrawingBlock, buildFormulaBlock, buildMarkdownText, buildOdgPackage, buildOdpPackage, buildOdsPackage, buildOdtPackage, buildOfficeMath, buildOfficeMathParagraph, buildPptxPackage, buildXml, bytesToBase64, childrenWithTag, collectOfficeMathElements, compactCodec, compactPackageCodec, contentDocumentWithSchema, convertDrawingToLayout, convertPresentationToLayout, convertSpreadsheetToLayout, convertWordprocessingToLayout, createDocumentFontRegistry, createDocx, createFontMeasurer, createFontRegistry, createLocalDocumentConverter, createOdg, createOdp, createOds, createOdt, createPptx, createStandardFontMeasurer, decodeCompactPackage, decodeEntities, decodeHsqldbCachedTables, decodeMarkdownText, decodePackage, deobfuscateEmbeddedFont, deriveFontKey, detectGridLattice, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, docxPdfCodec, docxToMarkdown, docxToOdt, docxToPdf, drawingOfBlock, elementChildren, elementLocalName, elementsWithTag, encodeCompactPackage, encodeMarkdownText, encodePackage, evaluateRptBandOutsideData, evaluateSelect, extractOdfEmbeddedFonts, extractOoxmlEmbeddedFonts, extractSourceFonts, firstChildByLocalName, fixedClock, flipY, formulaDocument, formulaOfBlock, formulaPlaceholderText, fromCompact, displayTextFor as hsqldbCellDisplayText, inferCellValue, inflateHsqldbCompressedScript, isCompactXmlNode, isContentBlock, isMathMlElement, isMathVariant, isXmlNode, layoutDocumentWithSchema, layoutFormula, loadMathFont, localName, looksLikeSfnt, mapMathVariant, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, markdownToDocx, markdownToOdt, markdownToPdf, textContent as mathMlTextContent, odbReportCommandSql, odbReportGroupChain, odbTablesToSpreadsheetDocument, odbToCsv, odbToXlsx, odfToPdf, odgPdfCodec, odgToPdf, odmToPdf, odpPdfCodec, odpPptxCodec, odpToPdf, odpToPptx, odsPdfCodec, odsToPdf, odsToXlsx, odsXlsxCodec, odtDocxCodec, odtPdfCodec, odtToDocx, odtToMarkdown, odtToPdf, openDocx, openOdg, openOdp, openOds, openOdt, openPptx, operatorProperties, packageCodec, parseHsqldbBinaryScript, parseHsqldbScript, parsePackage, parseRptFormula, parseSelect, parseXml, pdfCodec, pdfToDocx, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPptx, pdfToXlsx, pptxPdfCodec, pptxToOdp, pptxToPdf, readDocxContent, readDocxExtras, readFirebirdBackup, readMarkdownContent, readOdbForm, readOdbForms, readOdbInventory, readOdbReport, readOdbReportContent, readOdbReports, readOdbTables, readOdfEmbeddedFormula, readOdfFormulaContent, readOdgContent, readOdpContent, readOdsContent, readOdtContent, readOfficeMath, readPdf, readPptxContent, reconstructDrawing, reconstructPresentation, reconstructSpreadsheet, reconstructWordprocessing, renderOdbReportContent, resolveOdbComponent, resolveOdbReportRows, resolveRelationships, rgbHexToColor, rootElement, rptBandDefinition, rptDefinitionFromReport, runRptReport, schemaUriFor, serializePackage, systemClock, textContent$1 as textContent, throwIfAborted, toCompact, tokenizeSql, unzipPackage, walk, writePdf, xlsxPdfCodec, xlsxToOds, xlsxToPdf, xmlCodec, zipPackage };
100
+ export { type Alignment, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, type BuildDocxPackageOptions, COLOR_BLACK, CONTENT_FORMAT_VERSION, type CellTypeDeclineReason, type CellTypeInference, type CellTypeInferenceResult, type CellTypeInferenceSink, type CellTypeRule, type ClockPort, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type ContentBlock, ContentBlockSchema, type ContentCellValue, ContentCellValueSchema, type ContentDocument, type ContentDocumentJson, ContentDocumentSchema, type ContentDrawPage, ContentDrawPageSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentPathPoint, ContentPathPointSchema, type ContentPathSegment, ContentPathSegmentSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSheet, type ContentSheetCell, ContentSheetCellSchema, type ContentSheetColumn, ContentSheetColumnSchema, type ContentSheetImage, type ContentSheetPrintRange, ContentSheetPrintRangeSchema, type ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, type ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, type ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, type ContentSlide, ContentSlideSchema, type ContentStroke, ContentStrokeSchema, type ContentSubpath, ContentSubpathSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type ContentVector, ContentVectorSchema, type ConversionOptions, type ConversionRequest, type ConversionResult, DEFAULT_LAYOUT_FONT, type DefinedName, DefinedNameSchema, type Diagnostic, type DocumentBridgeOptions, type DocumentConverter, type DocumentFontRegistryOptions, type DocumentFormat, type DocumentJsonResult, type DocumentPackage, type DocumentPackageJson, DocumentPackageSchema, type DocumentPayload, type DocumentSchemaKind, type DocumentToPdfOptions, type DocxBody, DocxBytesSchema, DocxEditor, type DocxExtras, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, type DocxVerticalMerge, type DrawingLayoutOptions, type DrawingParagraphInit, type DrawingRunInit, type EngineLayoutOptions, SUPPORTED_BACKUP_FORMAT_VERSION as FIREBIRD_SUPPORTED_BACKUP_FORMAT_VERSION, FirebirdBackupFormatError, FirebirdBackupParseError, type FirebirdBackupSummary, FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError, FirebirdSchemaParseError, FirebirdUnsupportedFieldTypeError, FontDeobfuscationError, type FontRegistry, type FontRegistryOptions, type FontSourcePackage, type FontSubstitution, type Footnote, FootnoteSchema, type GridLattice, type HsqldbBinaryScript, HsqldbBinaryScriptParseError, type HsqldbColumn, type HsqldbDecodeOptions, HsqldbRowFormatError, HsqldbScriptParseError, HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError, type HsqldbTable, LAYOUT_FORMAT_VERSION, type LayoutColor, type LayoutDocument, type LayoutDocumentJson, LayoutDocumentSchema, type LayoutEllipse, type LayoutFont, type LayoutFormulaOptions, type LayoutImage, type LayoutImageAsset, type LayoutItem, type LayoutLine, type LayoutLink, type LayoutMetadata, type LayoutPage, type LayoutPath, type LayoutPathSegment, type LayoutRect, type LayoutSubpath, type LayoutText, type LoadedMathFont, type Margins, MarkdownBytesSchema, type MathAssembledGlyphs, type MathBox, type MathColor, type MathDiagnostic, type MathDiagnosticKind, type MathFont, type MathFontDescriptorMetrics, type MathFontMetrics, type MathGlyphMetrics, type MathGlyphPlacement, type MathGlyphRun, type MathLayoutItem, type MathLayoutResult, type MathMlAttribute, type MathMlElement, type MathMlNode, type MathMlText, type MathRule, type MathStretchAxis, type MathStretchGlyph, type MathStretchResult, type MathStroke, type MathVariant, NOOP_DIAGNOSTIC_SINK, type NumberingDefinition, NumberingDefinitionSchema, type NumberingDefinitions, type NumberingLevel, NumberingLevelSchema, type OdbComponentInfo, type OdbConnectionInfo, type OdbConversionOptions, type OdbForm, type OdbFormControl, type OdbFormDefinition, type OdbInventory, OdbNoEmbeddedDataSourceError, type OdbQueryInfo, type OdbReport, type OdbReportBand, type OdbReportContentOptions, OdbReportDataSourceError, type OdbReportElement, type OdbReportFunction, type OdbReportGroup, OdbReportNotSpecifiedError, OdbTableNotFoundError, OdbTableNotSpecifiedError, type OdbToCsvOptions, type OdbUnsupportedFormat, OdbUnsupportedFormatError, OdfEmbeddedFontError, OdgBoxVector, type BoxVectorInit as OdgBoxVectorInit, OdgBytesSchema, OdgEditor, OdgLineVector, type LineVectorInit as OdgLineVectorInit, OdgPage, type PageImageInit as OdgPageImageInit, OdgPathVector, type PathVectorInit as OdgPathVectorInit, type TextBoxInit as OdgTextBoxInit, type OdgVector, type OdgVectorKind, type OdmToPdfOptions, OdmUnresolvedSectionError, OdpBytesSchema, OdpEditor, OdpShape, OdpSlide, type SlideImageInit as OdpSlideImageInit, type SlideTableInit as OdpSlideTableInit, type TextBoxInit$1 as OdpTextBoxInit, OdsBytesSchema, OdsCell, OdsEditor, OdsSheet, type OdtBody, OdtBytesSchema, OdtEditor, OdtList, OdtListItem, OdtParagraph, type ParagraphInit as OdtParagraphInit, OdtRun, type RunInit as OdtRunInit, OdtTable, OdtTableCell, type TableInit as OdtTableInit, OdtTableRow, type OmmlDiagnostic, type OmmlDiagnosticKind, type OmmlReadResult, type OmmlWriteResult, OoxmlEmbeddedFontError, type OperatorProperties, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageSize, type Part, PartSchema, PdfBytesSchema, type PdfDiagnostic, type PdfDiagnosticSeverity, type PdfDiagnosticSink, PdfEncryptedError, PdfParseError, type PdfToDocumentOptions, type PositionedFormula, PptxBytesSchema, PptxEditor, PptxShape, PptxSlide, PptxTable, PptxTableCell, type PptxTableInit, PptxTableRow, type PresentationLayoutResult, type ProvidedFont, type ReadDocxContentOptions, type ReadFirebirdBackupResult, type ReadPdfOptions, type ReconstructOptions, type Relationship, type ResolvedFace, type RptAggregateFunction, type RptBandDefinition, type RptBandInstance, type RptBandKind, type RptFormula, RptFormulaEvaluationError, RptFormulaParseError, RptFormulaUnsupportedError, type RptGroupDefinition, type RptNamedFunctionDefinition, type RptReference, type RptReportDefinition, type RptReportRun, RptReportStructureError, type RptScope, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, type SheetsLayoutOptions, type SlideImageInit$1 as SlideImageInit, type SlideTableInit$1 as SlideTableInit, type SlidesLayoutOptions, type SpreadsheetLayoutResult, type SqlAggregateArgument, type SqlAggregateFunction, type SqlColumnRef, type SqlComparisonOperator, type SqlLiteral, type SqlNameRef, type SqlOperand, type SqlOrderByTerm, type SqlPredicate, type SqlPunctuation, type SqlResultSet, type SqlSelectItem, type SqlSelectStatement, type SqlSortDirection, type SqlToken, type TextBoxInit$2 as TextBoxInit, UnrecognizedDocumentSchemaError, type WinAnsiSubstitution, type WordprocessingLayoutResult, type WritePdfOptions, XlsxBytesSchema, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, applyMathVariant, attr, base64ToBytes, buildDocxPackage, buildDrawingBlock, buildFormulaBlock, buildMarkdownText, buildOdgPackage, buildOdpPackage, buildOdsPackage, buildOdtPackage, buildOfficeMath, buildOfficeMathParagraph, buildPptxPackage, buildXml, bytesToBase64, childrenWithTag, collectOfficeMathElements, compactCodec, compactPackageCodec, contentDocumentWithSchema, convertDrawingToLayout, convertPresentationToLayout, convertSpreadsheetToLayout, convertWordprocessingToLayout, createDocumentFontRegistry, createDocx, createFontMeasurer, createFontRegistry, createLocalDocumentConverter, createOdg, createOdp, createOds, createOdt, createPptx, createStandardFontMeasurer, decodeCompactPackage, decodeEntities, decodeHsqldbCachedTables, decodeMarkdownText, decodePackage, deobfuscateEmbeddedFont, deriveFontKey, detectGridLattice, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, docxPdfCodec, docxToMarkdown, docxToOdt, docxToPdf, drawingOfBlock, elementChildren, elementLocalName, elementsWithTag, encodeCompactPackage, encodeMarkdownText, encodePackage, evaluateRptBandOutsideData, evaluateSelect, extractOdfEmbeddedFonts, extractOoxmlEmbeddedFonts, extractSourceFonts, firstChildByLocalName, fixedClock, flipY, formulaDocument, formulaOfBlock, formulaPlaceholderText, fromCompact, displayTextFor as hsqldbCellDisplayText, inferCellValue, inflateHsqldbCompressedScript, isCompactXmlNode, isContentBlock, isMathMlElement, isMathVariant, isXmlNode, layoutDocumentWithSchema, layoutFormula, loadMathFont, localName, looksLikeSfnt, mapMathVariant, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, markdownToDocx, markdownToOdt, markdownToPdf, textContent as mathMlTextContent, odbReportCommandSql, odbReportGroupChain, odbTablesToSpreadsheetDocument, odbToCsv, odbToXlsx, odfToPdf, odgPdfCodec, odgToPdf, odmToPdf, odpPdfCodec, odpPptxCodec, odpToPdf, odpToPptx, odsPdfCodec, odsToPdf, odsToXlsx, odsXlsxCodec, odtDocxCodec, odtPdfCodec, odtToDocx, odtToMarkdown, odtToPdf, openDocx, openOdg, openOdp, openOds, openOdt, openPptx, operatorProperties, packageCodec, parseHsqldbBinaryScript, parseHsqldbScript, parsePackage, parseRptFormula, parseSelect, parseXml, pdfCodec, pdfToDocx, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPptx, pdfToXlsx, pptxPdfCodec, pptxToOdp, pptxToPdf, readDocxContent, readDocxExtras, readFirebirdBackup, readMarkdownContent, readOdbForm, readOdbForms, readOdbInventory, readOdbReport, readOdbReportContent, readOdbReports, readOdbTables, readOdfEmbeddedFormula, readOdfFormulaContent, readOdgContent, readOdpContent, readOdsContent, readOdtContent, readOfficeMath, readPdf, readPptxContent, reconstructDrawing, reconstructPresentation, reconstructSpreadsheet, reconstructWordprocessing, renderOdbReportContent, resolveOdbComponent, resolveOdbReportRows, resolveRelationships, rgbHexToColor, rootElement, rptBandDefinition, rptDefinitionFromReport, runRptReport, schemaUriFor, serializePackage, systemClock, textContent$1 as textContent, throwIfAborted, toCompact, tokenizeSql, unzipPackage, walk, writePdf, xlsxPdfCodec, xlsxToOds, xlsxToPdf, xmlCodec, zipPackage };