documents.js 1.97.7 → 1.97.8

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 (127) hide show
  1. package/dist/convert/convert.js +6 -6
  2. package/dist/edit/docx/paragraph.d.cts +1 -1
  3. package/dist/edit/docx/paragraph.d.ts +1 -1
  4. package/dist/edit/docx/props.d.cts +3 -3
  5. package/dist/edit/docx/props.d.ts +3 -3
  6. package/dist/edit/docx/props.js +1 -1
  7. package/dist/edit/docx/run.d.cts +1 -1
  8. package/dist/edit/docx/run.d.ts +1 -1
  9. package/dist/edit/docx/run.js +1 -1
  10. package/dist/edit/docx/table.js +1 -1
  11. package/dist/edit/geometry.d.cts +1 -1
  12. package/dist/edit/geometry.d.ts +1 -1
  13. package/dist/edit/markdown/editor.d.cts +2 -3
  14. package/dist/edit/markdown/editor.d.ts +2 -3
  15. package/dist/edit/odg/editor.d.cts +1 -1
  16. package/dist/edit/odg/editor.d.ts +1 -1
  17. package/dist/edit/odg/page.d.cts +2 -2
  18. package/dist/edit/odg/page.d.ts +2 -2
  19. package/dist/edit/odg/scaffold.cjs +1 -1
  20. package/dist/edit/odg/scaffold.js +1 -1
  21. package/dist/edit/odp/editor.d.cts +1 -1
  22. package/dist/edit/odp/editor.d.ts +1 -1
  23. package/dist/edit/odp/image.d.cts +1 -1
  24. package/dist/edit/odp/image.d.ts +1 -1
  25. package/dist/edit/odp/scaffold.cjs +1 -1
  26. package/dist/edit/odp/scaffold.js +1 -1
  27. package/dist/edit/odp/shape.d.cts +1 -1
  28. package/dist/edit/odp/shape.d.ts +1 -1
  29. package/dist/edit/odp/slide.d.cts +7 -8
  30. package/dist/edit/odp/slide.d.ts +7 -8
  31. package/dist/edit/ods/print-settings.js +2 -3
  32. package/dist/edit/ods/scaffold.cjs +1 -1
  33. package/dist/edit/ods/scaffold.js +1 -1
  34. package/dist/edit/odt/content.d.cts +2 -2
  35. package/dist/edit/odt/content.d.ts +2 -2
  36. package/dist/edit/odt/editor.d.cts +5 -6
  37. package/dist/edit/odt/editor.d.ts +5 -6
  38. package/dist/edit/odt/formula.d.cts +3 -4
  39. package/dist/edit/odt/formula.d.ts +3 -4
  40. package/dist/edit/odt/image.d.cts +1 -1
  41. package/dist/edit/odt/image.d.ts +1 -1
  42. package/dist/edit/odt/list.d.cts +1 -1
  43. package/dist/edit/odt/list.d.ts +1 -1
  44. package/dist/edit/odt/paragraph.d.cts +1 -1
  45. package/dist/edit/odt/paragraph.d.ts +1 -1
  46. package/dist/edit/odt/run.d.cts +1 -1
  47. package/dist/edit/odt/run.d.ts +1 -1
  48. package/dist/edit/odt/scaffold.cjs +1 -1
  49. package/dist/edit/odt/scaffold.js +1 -1
  50. package/dist/edit/odt/table.d.cts +1 -1
  51. package/dist/edit/odt/table.d.ts +1 -1
  52. package/dist/edit/pdf/item.d.cts +1 -1
  53. package/dist/edit/pdf/item.d.ts +1 -1
  54. package/dist/edit/pdf/page.d.cts +1 -1
  55. package/dist/edit/pdf/page.d.ts +1 -1
  56. package/dist/edit/pptx/editor.d.cts +1 -1
  57. package/dist/edit/pptx/editor.d.ts +1 -1
  58. package/dist/edit/pptx/image.d.cts +1 -1
  59. package/dist/edit/pptx/image.d.ts +1 -1
  60. package/dist/edit/pptx/shape.d.cts +1 -1
  61. package/dist/edit/pptx/shape.d.ts +1 -1
  62. package/dist/edit/pptx/slide.d.cts +7 -8
  63. package/dist/edit/pptx/slide.d.ts +7 -8
  64. package/dist/edit/pptx/table.d.cts +1 -1
  65. package/dist/edit/pptx/table.d.ts +1 -1
  66. package/dist/{image-hTGo7C8g.d.ts → image-3ql9_z1y.d.cts} +1 -1
  67. package/dist/{image-C6lKT9ZH.d.cts → image-3ql9_z1y.d.ts} +1 -1
  68. package/dist/{image-CsyoXX7d.d.ts → image-Biwtr667.d.cts} +1 -1
  69. package/dist/{image-K3MAhLJc.d.cts → image-Biwtr667.d.ts} +1 -1
  70. package/dist/{image-CE7nO8YY.d.ts → image-CRgc_j2Q.d.cts} +1 -1
  71. package/dist/{image-DK0YCpYO.d.cts → image-CyYr22TE.d.ts} +1 -1
  72. package/dist/index.d.cts +11 -13
  73. package/dist/index.d.ts +11 -13
  74. package/dist/index.js +2 -4
  75. package/dist/{item-CNEgqooo.d.ts → item-Dj6f1VTE.d.cts} +25 -27
  76. package/dist/{item-DhYRoAvM.d.cts → item-Dj6f1VTE.d.ts} +25 -27
  77. package/dist/layout/shared.cjs +1 -1
  78. package/dist/layout/shared.d.cts +1 -2
  79. package/dist/layout/shared.d.ts +1 -2
  80. package/dist/layout/shared.js +1 -2
  81. package/dist/layout/sheets.js +5 -7
  82. package/dist/{list-MCxkKpI7.d.cts → list-BT1Zb3PV.d.cts} +1 -1
  83. package/dist/{list-BrAIR4Sv.d.ts → list-D9MtQtjK.d.ts} +1 -1
  84. package/dist/model/geometry.cjs +0 -43
  85. package/dist/model/geometry.d.cts +6 -2
  86. package/dist/model/geometry.d.ts +6 -2
  87. package/dist/model/geometry.js +1 -2
  88. package/dist/odb/read.js +1 -2
  89. package/dist/odb/report/render.js +3 -4
  90. package/dist/odb/spreadsheet.js +2 -3
  91. package/dist/odf/formula/detect.d.cts +2 -3
  92. package/dist/odf/formula/detect.d.ts +2 -3
  93. package/dist/odf/shared/flow-anchor.d.cts +1 -1
  94. package/dist/odf/shared/flow-anchor.d.ts +1 -1
  95. package/dist/odf-package/manifest.cjs +0 -60
  96. package/dist/odf-package/manifest.d.cts +2 -2
  97. package/dist/odf-package/manifest.d.ts +2 -2
  98. package/dist/odf-package/manifest.js +3 -3
  99. package/dist/{paragraph-DZyHl2e4.d.ts → paragraph-BPRc-VVV.d.ts} +3 -3
  100. package/dist/{paragraph-D7324S0j.d.cts → paragraph-CdGRPSYA.d.cts} +3 -3
  101. package/dist/{run-BYJGK31k.d.ts → run-Bv6gpAMj.d.ts} +4 -4
  102. package/dist/{run-SLSPO-4y.d.ts → run-mzBHuFWz.d.cts} +4 -4
  103. package/dist/{run-DQtEGilU.d.cts → run-mzBHuFWz.d.ts} +4 -4
  104. package/dist/{run-DEPVf5ZJ.d.cts → run-swnb_wQO.d.cts} +4 -4
  105. package/dist/{shape-D4xELCZY.d.ts → shape-C5istyRr.d.cts} +2 -4
  106. package/dist/{shape-DGlNMY73.d.ts → shape-CCPBGhbV.d.ts} +3 -3
  107. package/dist/{shape-B0yAqgxZ.d.cts → shape-Cuk0RTZn.d.cts} +3 -3
  108. package/dist/{shape-De9583Kz.d.cts → shape-D-gBLpxJ.d.ts} +2 -4
  109. package/dist/{table-DQksyfnT.d.ts → table-BavK-2uP.d.ts} +3 -4
  110. package/dist/{table-fnUiKudF.d.cts → table-DWY7P_sA.d.cts} +3 -4
  111. package/dist/{table-qaDB5iJO.d.ts → table-Dtml8NyR.d.ts} +1 -1
  112. package/dist/{table-u6fXNuDO.d.cts → table-b9-ipGtZ.d.cts} +1 -1
  113. package/package.json +1 -1
  114. package/dist/color-71eoF1Up.d.cts +0 -2
  115. package/dist/color-BHhGSqAh.d.ts +0 -2
  116. package/dist/geometry-BG4fX9Rw.d.ts +0 -6
  117. package/dist/geometry-DUF273hM.d.cts +0 -6
  118. package/dist/model/color.cjs +0 -26
  119. package/dist/model/color.d.cts +0 -2
  120. package/dist/model/color.d.ts +0 -2
  121. package/dist/model/color.js +0 -2
  122. package/dist/model/style.cjs +0 -20
  123. package/dist/model/style.d.cts +0 -2
  124. package/dist/model/style.d.ts +0 -2
  125. package/dist/model/style.js +0 -2
  126. package/dist/style-DkamR3aY.d.cts +0 -2
  127. package/dist/style-DkamR3aY.d.ts +0 -2
@@ -1,4 +1,4 @@
1
- import { a as PdfItem, c as PdfLinkInit, d as PdfPathItem, f as PdfRectInit, h as PdfTextItem, i as PdfImageItem, l as PdfLinkItem, m as PdfTextInit, n as PdfEllipseItem, o as PdfLineInit, p as PdfRectItem, r as PdfImageInit, s as PdfLineItem, t as PdfEllipseInit, u as PdfPathInit } from "../../item-DhYRoAvM.cjs";
1
+ import { a as PdfItem, c as PdfLinkInit, d as PdfPathItem, f as PdfRectInit, h as PdfTextItem, i as PdfImageItem, l as PdfLinkItem, m as PdfTextInit, n as PdfEllipseItem, o as PdfLineInit, p as PdfRectItem, r as PdfImageInit, s as PdfLineItem, t as PdfEllipseInit, u as PdfPathInit } from "../../item-Dj6f1VTE.cjs";
2
2
  import { LayoutImageAsset, LayoutPage } from "document-schema.js";
3
3
  //#region src/edit/pdf/page.d.ts
4
4
  interface PageInit {
@@ -1,4 +1,4 @@
1
- import { a as PdfItem, c as PdfLinkInit, d as PdfPathItem, f as PdfRectInit, h as PdfTextItem, i as PdfImageItem, l as PdfLinkItem, m as PdfTextInit, n as PdfEllipseItem, o as PdfLineInit, p as PdfRectItem, r as PdfImageInit, s as PdfLineItem, t as PdfEllipseInit, u as PdfPathInit } from "../../item-CNEgqooo.js";
1
+ import { a as PdfItem, c as PdfLinkInit, d as PdfPathItem, f as PdfRectInit, h as PdfTextItem, i as PdfImageItem, l as PdfLinkItem, m as PdfTextInit, n as PdfEllipseItem, o as PdfLineInit, p as PdfRectItem, r as PdfImageInit, s as PdfLineItem, t as PdfEllipseInit, u as PdfPathInit } from "../../item-Dj6f1VTE.js";
2
2
  import { LayoutImageAsset, LayoutPage } from "document-schema.js";
3
3
  //#region src/edit/pdf/page.d.ts
4
4
  interface PageInit {
@@ -1,6 +1,6 @@
1
1
  import { t as ClockPort } from "../../clock-C7SUuYN0.cjs";
2
- import { s as PageSize } from "../../geometry-DUF273hM.cjs";
3
2
  import { PptxSlide } from "./slide.cjs";
3
+ import { PageSize } from "document-schema.js";
4
4
  import { Package } from "ooxml.js";
5
5
  //#region src/edit/pptx/editor.d.ts
6
6
  declare class PptxEditor {
@@ -1,7 +1,7 @@
1
1
  import { t as ClockPort } from "../../clock-C7SUuYN0.js";
2
- import { s as PageSize } from "../../geometry-BG4fX9Rw.js";
3
2
  import { PptxSlide } from "./slide.js";
4
3
  import { Package } from "ooxml.js";
4
+ import { PageSize } from "document-schema.js";
5
5
  //#region src/edit/pptx/editor.d.ts
6
6
  declare class PptxEditor {
7
7
  private readonly pkg;
@@ -1,2 +1,2 @@
1
- import { n as MediaContext, r as insertPictureShapeMedia, t as ImageInit } from "../../image-DK0YCpYO.cjs";
1
+ import { n as MediaContext, r as insertPictureShapeMedia, t as ImageInit } from "../../image-CRgc_j2Q.cjs";
2
2
  export { ImageInit, MediaContext, insertPictureShapeMedia };
@@ -1,2 +1,2 @@
1
- import { n as MediaContext, r as insertPictureShapeMedia, t as ImageInit } from "../../image-CE7nO8YY.js";
1
+ import { n as MediaContext, r as insertPictureShapeMedia, t as ImageInit } from "../../image-CyYr22TE.js";
2
2
  export { ImageInit, MediaContext, insertPictureShapeMedia };
@@ -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-De9583Kz.cjs";
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-C5istyRr.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-D4xELCZY.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-D-gBLpxJ.js";
2
2
  export { DrawingParagraphInit, DrawingRunInit, PptxShape, ROTATION_UNITS_PER_DEGREE, buildDrawingParagraph, buildPictureShape, buildTextBoxShape };
@@ -1,19 +1,18 @@
1
- import { t as Box$1 } from "../../geometry-DUF273hM.cjs";
2
- import { t as ImageInit } from "../../image-DK0YCpYO.cjs";
3
- import { r as PptxShape } from "../../shape-De9583Kz.cjs";
4
- import { r as PptxTableInit, t as PptxTable } from "../../table-fnUiKudF.cjs";
5
- import { ContentVector } from "document-schema.js";
1
+ import { t as ImageInit } from "../../image-CRgc_j2Q.cjs";
2
+ import { r as PptxShape } from "../../shape-C5istyRr.cjs";
3
+ import { r as PptxTableInit, t as PptxTable } from "../../table-DWY7P_sA.cjs";
4
+ import { Box, ContentVector } from "document-schema.js";
6
5
  import { Package, XmlElement, XmlNode } from "ooxml.js";
7
6
  //#region src/edit/pptx/slide.d.ts
8
7
  interface TextBoxInit {
9
- readonly frame: Box$1;
8
+ readonly frame: Box;
10
9
  readonly text: string;
11
10
  }
12
11
  interface SlideImageInit extends ImageInit {
13
- readonly frame: Box$1;
12
+ readonly frame: Box;
14
13
  }
15
14
  interface SlideTableInit {
16
- readonly frame: Box$1;
15
+ readonly frame: Box;
17
16
  readonly table: PptxTableInit;
18
17
  readonly rotationDeg?: number;
19
18
  }
@@ -1,19 +1,18 @@
1
- import { t as Box$1 } from "../../geometry-BG4fX9Rw.js";
2
- import { t as ImageInit } from "../../image-CE7nO8YY.js";
3
- import { r as PptxShape } from "../../shape-D4xELCZY.js";
4
- import { r as PptxTableInit, t as PptxTable } from "../../table-DQksyfnT.js";
1
+ import { t as ImageInit } from "../../image-CyYr22TE.js";
2
+ import { r as PptxShape } from "../../shape-D-gBLpxJ.js";
3
+ import { r as PptxTableInit, t as PptxTable } from "../../table-BavK-2uP.js";
5
4
  import { Package, XmlElement, XmlNode } from "ooxml.js";
6
- import { ContentVector } from "document-schema.js";
5
+ import { Box, ContentVector } from "document-schema.js";
7
6
  //#region src/edit/pptx/slide.d.ts
8
7
  interface TextBoxInit {
9
- readonly frame: Box$1;
8
+ readonly frame: Box;
10
9
  readonly text: string;
11
10
  }
12
11
  interface SlideImageInit extends ImageInit {
13
- readonly frame: Box$1;
12
+ readonly frame: Box;
14
13
  }
15
14
  interface SlideTableInit {
16
- readonly frame: Box$1;
15
+ readonly frame: Box;
17
16
  readonly table: PptxTableInit;
18
17
  readonly rotationDeg?: number;
19
18
  }
@@ -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-fnUiKudF.cjs";
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-DWY7P_sA.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-DQksyfnT.js";
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-BavK-2uP.js";
2
2
  export { PptxTable, PptxTableCell, PptxTableInit, PptxTableRow, buildDrawingTable, buildTableGraphicFrame, findGraphicFrameTable };
@@ -1,4 +1,4 @@
1
- import { t as Box } from "./geometry-BG4fX9Rw.js";
1
+ import { Box } from "document-schema.js";
2
2
  import { Package, XmlElement } from "odf.js";
3
3
  //#region src/edit/odp/image.d.ts
4
4
  interface ImageInit {
@@ -1,4 +1,4 @@
1
- import { t as Box } from "./geometry-DUF273hM.cjs";
1
+ import { Box } from "document-schema.js";
2
2
  import { Package, XmlElement } from "odf.js";
3
3
  //#region src/edit/odp/image.d.ts
4
4
  interface ImageInit {
@@ -1,4 +1,4 @@
1
- import { t as Box } from "./geometry-BG4fX9Rw.js";
1
+ import { Box } from "document-schema.js";
2
2
  import { Package, XmlElement } from "odf.js";
3
3
  //#region src/edit/odt/image.d.ts
4
4
  interface ImageInit {
@@ -1,4 +1,4 @@
1
- import { t as Box } from "./geometry-DUF273hM.cjs";
1
+ import { Box } from "document-schema.js";
2
2
  import { Package, XmlElement } from "odf.js";
3
3
  //#region src/edit/odt/image.d.ts
4
4
  interface ImageInit {
@@ -1,4 +1,4 @@
1
- import { t as Box } from "./geometry-BG4fX9Rw.js";
1
+ import { Box } from "document-schema.js";
2
2
  import { Package, XmlElement } from "ooxml.js";
3
3
  //#region src/edit/pptx/image.d.ts
4
4
  interface ImageInit {
@@ -1,5 +1,5 @@
1
- import { t as Box } from "./geometry-DUF273hM.cjs";
2
1
  import { Package, XmlElement } from "ooxml.js";
2
+ import { Box } from "document-schema.js";
3
3
  //#region src/edit/pptx/image.d.ts
4
4
  interface ImageInit {
5
5
  readonly format: 'png' | 'jpeg';
package/dist/index.d.cts CHANGED
@@ -12,30 +12,27 @@ import { createLocalDocumentConverter } from "./convert/local.cjs";
12
12
  import { BuildDocxPackageOptions, buildDocxPackage } from "./edit/docx/content.cjs";
13
13
  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";
14
14
  import { n as buildOfficeMath, r as buildOfficeMathParagraph, t as OmmlWriteResult } from "./write-BQ6SK8r8.cjs";
15
- import { a as rgbHexToColor, n as LayoutColor, t as COLOR_BLACK } from "./color-71eoF1Up.cjs";
16
- import { t as DocxRun } from "./run-DEPVf5ZJ.cjs";
15
+ import { t as DocxRun } from "./run-swnb_wQO.cjs";
17
16
  import { DocxParagraph } from "./edit/docx/paragraph.cjs";
18
17
  import { DocxTable, DocxTableCell, DocxTableRow, DocxVerticalMerge } from "./edit/docx/table.cjs";
19
18
  import { CreateDocxOptions, DocxBody, DocxEditor, createDocx, openDocx } from "./edit/docx/editor.cjs";
20
19
  import { CreateEmptyDocxPackageOptions } from "./edit/docx/scaffold.cjs";
21
- import { a as PAGE_SIZE_A4, d as SLIDE_SIZE_WIDESCREEN, f as flipY, o as PAGE_SIZE_LETTER, r as Margins, s as PageSize, t as Box, u as SLIDE_SIZE_STANDARD } from "./geometry-DUF273hM.cjs";
22
20
  import { n as RunInit, t as MarkdownRun } from "./run-DpQRXEGp.cjs";
23
21
  import { MarkdownParagraph, ParagraphInit } from "./edit/markdown/paragraph.cjs";
24
22
  import { MarkdownList, MarkdownListInit } from "./edit/markdown/list.cjs";
25
23
  import { MarkdownTable, MarkdownTableCell, MarkdownTableRow, TableInit } from "./edit/markdown/table.cjs";
26
24
  import { CreateMarkdownEditorOptions, MarkdownBody, MarkdownEditor, createMarkdownEditor, openMarkdown } from "./edit/markdown/editor.cjs";
27
25
  import { BuildOdgPackageOptions, buildOdgPackage } from "./edit/odg/content.cjs";
28
- import { i as LayoutFont, r as DEFAULT_LAYOUT_FONT, t as Alignment } from "./style-DkamR3aY.cjs";
29
- import { n as RunInit$1, t as OdtRun } from "./run-DQtEGilU.cjs";
30
- import { n as ParagraphInit$1, t as OdtParagraph } from "./paragraph-D7324S0j.cjs";
31
- import { n as OdtListItem, t as OdtList } from "./list-MCxkKpI7.cjs";
32
- import { t as OdpShape } from "./shape-B0yAqgxZ.cjs";
26
+ import { n as RunInit$1, t as OdtRun } from "./run-mzBHuFWz.cjs";
27
+ import { n as ParagraphInit$1, t as OdtParagraph } from "./paragraph-CdGRPSYA.cjs";
28
+ import { n as OdtListItem, t as OdtList } from "./list-BT1Zb3PV.cjs";
29
+ import { t as OdpShape } from "./shape-Cuk0RTZn.cjs";
33
30
  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";
34
31
  import { OdgPage, PageImageInit, TextBoxInit } from "./edit/odg/page.cjs";
35
32
  import { CreateOdgOptions, OdgEditor, createOdg, openOdg } from "./edit/odg/editor.cjs";
36
33
  import { CreateEmptyOdgPackageOptions } from "./edit/odg/scaffold.cjs";
37
34
  import { BuildOdpPackageOptions, buildOdpPackage } from "./edit/odp/content.cjs";
38
- import { a as TableInit$1, i as OdtTableRow, n as OdtTable, r as OdtTableCell } from "./table-u6fXNuDO.cjs";
35
+ import { a as TableInit$1, i as OdtTableRow, n as OdtTable, r as OdtTableCell } from "./table-b9-ipGtZ.cjs";
39
36
  import { OdpSlide, SlideImageInit, SlideTableInit, TextBoxInit as TextBoxInit$1 } from "./edit/odp/slide.cjs";
40
37
  import { CreateOdpOptions, OdpEditor, createOdp, openOdp } from "./edit/odp/editor.cjs";
41
38
  import { CreateEmptyOdpPackageOptions } from "./edit/odp/scaffold.cjs";
@@ -47,12 +44,12 @@ import { CreateEmptyOdsPackageOptions } from "./edit/ods/scaffold.cjs";
47
44
  import { BuildOdtPackageOptions, buildOdtPackage } from "./edit/odt/content.cjs";
48
45
  import { CreateOdtOptions, OdtBody, OdtEditor, createOdt, openOdt } from "./edit/odt/editor.cjs";
49
46
  import { CreateEmptyOdtPackageOptions } from "./edit/odt/scaffold.cjs";
50
- import { a as PdfItem, c as PdfLinkInit, d as PdfPathItem, f as PdfRectInit, h as PdfTextItem, i as PdfImageItem, l as PdfLinkItem, m as PdfTextInit, n as PdfEllipseItem, o as PdfLineInit, p as PdfRectItem, r as PdfImageInit, s as PdfLineItem, t as PdfEllipseInit, u as PdfPathInit } from "./item-DhYRoAvM.cjs";
47
+ import { a as PdfItem, c as PdfLinkInit, d as PdfPathItem, f as PdfRectInit, h as PdfTextItem, i as PdfImageItem, l as PdfLinkItem, m as PdfTextInit, n as PdfEllipseItem, o as PdfLineInit, p as PdfRectItem, r as PdfImageInit, s as PdfLineItem, t as PdfEllipseInit, u as PdfPathInit } from "./item-Dj6f1VTE.cjs";
51
48
  import { PageInit, PdfPage } from "./edit/pdf/page.cjs";
52
49
  import { CreatePdfOptions, PdfEditor, createPdf, openPdf } from "./edit/pdf/editor.cjs";
53
50
  import { BuildPptxPackageOptions, buildPptxPackage } from "./edit/pptx/content.cjs";
54
- import { n as DrawingRunInit, r as PptxShape, t as DrawingParagraphInit } from "./shape-De9583Kz.cjs";
55
- import { i as PptxTableRow, n as PptxTableCell, r as PptxTableInit, t as PptxTable } from "./table-fnUiKudF.cjs";
51
+ import { n as DrawingRunInit, r as PptxShape, t as DrawingParagraphInit } from "./shape-C5istyRr.cjs";
52
+ import { i as PptxTableRow, n as PptxTableCell, r as PptxTableInit, t as PptxTable } from "./table-DWY7P_sA.cjs";
56
53
  import { PptxSlide, SlideImageInit as SlideImageInit$1, SlideTableInit as SlideTableInit$1, TextBoxInit as TextBoxInit$2 } from "./edit/pptx/slide.cjs";
57
54
  import { CreatePptxOptions, PptxEditor, createPptx, openPptx } from "./edit/pptx/editor.cjs";
58
55
  import { CreateEmptyPptxPackageOptions } from "./edit/pptx/scaffold.cjs";
@@ -67,6 +64,7 @@ import { OdfEmbeddedFontError, extractOdfEmbeddedFonts } from "./fonts/odf.cjs";
67
64
  import { OoxmlEmbeddedFontError, extractOoxmlEmbeddedFonts } from "./fonts/ooxml.cjs";
68
65
  import { HsqldbBinaryScript, HsqldbBinaryScriptParseError, inflateHsqldbCompressedScript, parseHsqldbBinaryScript } from "./hsqldb/binary-script.cjs";
69
66
  import { decodeHsqldbCachedTables } from "./hsqldb/cache.cjs";
67
+ import { flipY } from "./model/geometry.cjs";
70
68
  import { DocxBytesSchema, MarkdownBytesSchema, OdgBytesSchema, OdpBytesSchema, OdsBytesSchema, OdtBytesSchema, PdfBytesSchema, PptxBytesSchema, XlsxBytesSchema } from "./model/bytes.cjs";
71
69
  import { MathDiagnostic, MathDiagnosticKind, MathLayoutResult } from "./mathml/layout-types.cjs";
72
70
  import { LayoutFormulaOptions, layoutFormula } from "./mathml/layout.cjs";
@@ -112,7 +110,7 @@ import { UnsupportedPackageFormatError, decodeDocumentPackage, decodeOdbPackage,
112
110
  import { ReadDocumentMetadataOptions, readDocumentMetadata } from "./metadata/read.cjs";
113
111
  import { MetadataOverrides, SetDocumentMetadataOptions, setDocumentMetadata } from "./metadata/write.cjs";
114
112
  import { throwIfAborted } from "./ports/abort.cjs";
115
- import { CONTENT_FORMAT_VERSION, CellPosition, CellRange, ContentBlock, ContentBlockSchema, ContentCellValue, ContentCellValueSchema, ContentDocument, ContentDocumentJson, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DocumentJsonResult, DocumentPackage, DocumentPackageJson, DocumentPackageSchema, DocumentSchemaKind, FontFace, LAYOUT_FORMAT_VERSION, LayoutDocument, LayoutDocumentJson, LayoutDocumentSchema, LayoutEllipse, LayoutImage, LayoutImageAsset, LayoutItem, LayoutLine, LayoutLink, LayoutMetadata, LayoutPage, LayoutPath, LayoutPathSegment, LayoutRect, LayoutSubpath, LayoutText, MathAssembledGlyphs, MathBox, MathColor, MathFontMetrics, MathGlyphMetrics, MathGlyphPlacement, MathGlyphRun, MathLayoutItem, MathRule, MathStretchAxis, MathStretchGlyph, MathStretchResult, MathStroke, PositionedFormula, UnrecognizedDocumentSchemaError, cellReference, columnIndexToLetters, columnLettersToIndex, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, isContentBlock, layoutDocumentWithSchema, parseCellReference, parseRangeReference, rangeReference, schemaUriFor } from "document-schema.js";
113
+ import { Alignment, Box, COLOR_BLACK, CONTENT_FORMAT_VERSION, CellPosition, CellRange, Color as LayoutColor, ContentBlock, ContentBlockSchema, ContentCellValue, ContentCellValueSchema, ContentDocument, ContentDocumentJson, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DocumentJsonResult, DocumentPackage, DocumentPackageJson, DocumentPackageSchema, DocumentSchemaKind, FontFace, LAYOUT_FORMAT_VERSION, LayoutDocument, LayoutDocumentJson, LayoutDocumentSchema, LayoutEllipse, LayoutFont, LayoutImage, LayoutImageAsset, LayoutItem, LayoutLine, LayoutLink, LayoutMetadata, LayoutPage, LayoutPath, LayoutPathSegment, LayoutRect, LayoutSubpath, LayoutText, Margins, MathAssembledGlyphs, MathBox, MathColor, MathFontMetrics, MathGlyphMetrics, MathGlyphPlacement, MathGlyphRun, MathLayoutItem, MathRule, MathStretchAxis, MathStretchGlyph, MathStretchResult, MathStroke, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSize, PositionedFormula, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, UnrecognizedDocumentSchemaError, cellReference, columnIndexToLetters, columnLettersToIndex, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, isContentBlock, layoutDocumentWithSchema, parseCellReference, parseRangeReference, rangeReference, rgbHexToColor, schemaUriFor } from "document-schema.js";
116
114
  import { OdbComponentInfo, OdbConnectionInfo, OdbForm, OdbFormControl, OdbFormDefinition, OdbInventory, OdbQueryInfo, OdbReport, OdbReportBand, OdbReportElement, OdbReportFunction, OdbReportGroup, readOdbForm, readOdbInventory, readOdbReport, resolveOdbComponent } from "odf.js";
117
115
  import { FontFaceParseError, FontRegistry, FontRegistryOptions, FontSubstitution, LoadedMathFont, MathFont, MathFontDescriptorMetrics, NOOP_DIAGNOSTIC_SINK, PdfDiagnostic, PdfDiagnosticSeverity, PdfDiagnosticSink, PdfEncryptedError, PdfParseError, ProvidedFont, ReadPdfOptions, ResolvedFace, WinAnsiSubstitution, WritePdfOptions, createFontMeasurer, createFontRegistry, createStandardFontMeasurer, loadMathFont, pdfCodec, readFontFace as describeFontFace, readPdf, writePdf } from "pdf-codec";
118
116
  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";
package/dist/index.d.ts CHANGED
@@ -12,30 +12,27 @@ import { createLocalDocumentConverter } from "./convert/local.js";
12
12
  import { BuildDocxPackageOptions, buildDocxPackage } from "./edit/docx/content.js";
13
13
  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.js";
14
14
  import { n as buildOfficeMath, r as buildOfficeMathParagraph, t as OmmlWriteResult } from "./write-THs7ipBq.js";
15
- import { a as rgbHexToColor, n as LayoutColor, t as COLOR_BLACK } from "./color-BHhGSqAh.js";
16
- import { t as DocxRun } from "./run-BYJGK31k.js";
15
+ import { t as DocxRun } from "./run-Bv6gpAMj.js";
17
16
  import { DocxParagraph } from "./edit/docx/paragraph.js";
18
17
  import { DocxTable, DocxTableCell, DocxTableRow, DocxVerticalMerge } from "./edit/docx/table.js";
19
18
  import { CreateDocxOptions, DocxBody, DocxEditor, createDocx, openDocx } from "./edit/docx/editor.js";
20
19
  import { CreateEmptyDocxPackageOptions } from "./edit/docx/scaffold.js";
21
- import { a as PAGE_SIZE_A4, d as SLIDE_SIZE_WIDESCREEN, f as flipY, o as PAGE_SIZE_LETTER, r as Margins, s as PageSize, t as Box, u as SLIDE_SIZE_STANDARD } from "./geometry-BG4fX9Rw.js";
22
20
  import { n as RunInit, t as MarkdownRun } from "./run-DpQRXEGp.js";
23
21
  import { MarkdownParagraph, ParagraphInit } from "./edit/markdown/paragraph.js";
24
22
  import { MarkdownList, MarkdownListInit } from "./edit/markdown/list.js";
25
23
  import { MarkdownTable, MarkdownTableCell, MarkdownTableRow, TableInit } from "./edit/markdown/table.js";
26
24
  import { CreateMarkdownEditorOptions, MarkdownBody, MarkdownEditor, createMarkdownEditor, openMarkdown } from "./edit/markdown/editor.js";
27
25
  import { BuildOdgPackageOptions, buildOdgPackage } from "./edit/odg/content.js";
28
- import { i as LayoutFont, r as DEFAULT_LAYOUT_FONT, t as Alignment } from "./style-DkamR3aY.js";
29
- import { n as RunInit$1, t as OdtRun } from "./run-SLSPO-4y.js";
30
- import { n as ParagraphInit$1, t as OdtParagraph } from "./paragraph-DZyHl2e4.js";
31
- import { n as OdtListItem, t as OdtList } from "./list-BrAIR4Sv.js";
32
- import { t as OdpShape } from "./shape-DGlNMY73.js";
26
+ import { n as RunInit$1, t as OdtRun } from "./run-mzBHuFWz.js";
27
+ import { n as ParagraphInit$1, t as OdtParagraph } from "./paragraph-BPRc-VVV.js";
28
+ import { n as OdtListItem, t as OdtList } from "./list-D9MtQtjK.js";
29
+ import { t as OdpShape } from "./shape-CCPBGhbV.js";
33
30
  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.js";
34
31
  import { OdgPage, PageImageInit, TextBoxInit } from "./edit/odg/page.js";
35
32
  import { CreateOdgOptions, OdgEditor, createOdg, openOdg } from "./edit/odg/editor.js";
36
33
  import { CreateEmptyOdgPackageOptions } from "./edit/odg/scaffold.js";
37
34
  import { BuildOdpPackageOptions, buildOdpPackage } from "./edit/odp/content.js";
38
- import { a as TableInit$1, i as OdtTableRow, n as OdtTable, r as OdtTableCell } from "./table-qaDB5iJO.js";
35
+ import { a as TableInit$1, i as OdtTableRow, n as OdtTable, r as OdtTableCell } from "./table-Dtml8NyR.js";
39
36
  import { OdpSlide, SlideImageInit, SlideTableInit, TextBoxInit as TextBoxInit$1 } from "./edit/odp/slide.js";
40
37
  import { CreateOdpOptions, OdpEditor, createOdp, openOdp } from "./edit/odp/editor.js";
41
38
  import { CreateEmptyOdpPackageOptions } from "./edit/odp/scaffold.js";
@@ -47,12 +44,12 @@ import { CreateEmptyOdsPackageOptions } from "./edit/ods/scaffold.js";
47
44
  import { BuildOdtPackageOptions, buildOdtPackage } from "./edit/odt/content.js";
48
45
  import { CreateOdtOptions, OdtBody, OdtEditor, createOdt, openOdt } from "./edit/odt/editor.js";
49
46
  import { CreateEmptyOdtPackageOptions } from "./edit/odt/scaffold.js";
50
- import { a as PdfItem, c as PdfLinkInit, d as PdfPathItem, f as PdfRectInit, h as PdfTextItem, i as PdfImageItem, l as PdfLinkItem, m as PdfTextInit, n as PdfEllipseItem, o as PdfLineInit, p as PdfRectItem, r as PdfImageInit, s as PdfLineItem, t as PdfEllipseInit, u as PdfPathInit } from "./item-CNEgqooo.js";
47
+ import { a as PdfItem, c as PdfLinkInit, d as PdfPathItem, f as PdfRectInit, h as PdfTextItem, i as PdfImageItem, l as PdfLinkItem, m as PdfTextInit, n as PdfEllipseItem, o as PdfLineInit, p as PdfRectItem, r as PdfImageInit, s as PdfLineItem, t as PdfEllipseInit, u as PdfPathInit } from "./item-Dj6f1VTE.js";
51
48
  import { PageInit, PdfPage } from "./edit/pdf/page.js";
52
49
  import { CreatePdfOptions, PdfEditor, createPdf, openPdf } from "./edit/pdf/editor.js";
53
50
  import { BuildPptxPackageOptions, buildPptxPackage } from "./edit/pptx/content.js";
54
- import { n as DrawingRunInit, r as PptxShape, t as DrawingParagraphInit } from "./shape-D4xELCZY.js";
55
- import { i as PptxTableRow, n as PptxTableCell, r as PptxTableInit, t as PptxTable } from "./table-DQksyfnT.js";
51
+ import { n as DrawingRunInit, r as PptxShape, t as DrawingParagraphInit } from "./shape-D-gBLpxJ.js";
52
+ import { i as PptxTableRow, n as PptxTableCell, r as PptxTableInit, t as PptxTable } from "./table-BavK-2uP.js";
56
53
  import { PptxSlide, SlideImageInit as SlideImageInit$1, SlideTableInit as SlideTableInit$1, TextBoxInit as TextBoxInit$2 } from "./edit/pptx/slide.js";
57
54
  import { CreatePptxOptions, PptxEditor, createPptx, openPptx } from "./edit/pptx/editor.js";
58
55
  import { CreateEmptyPptxPackageOptions } from "./edit/pptx/scaffold.js";
@@ -67,6 +64,7 @@ import { OdfEmbeddedFontError, extractOdfEmbeddedFonts } from "./fonts/odf.js";
67
64
  import { OoxmlEmbeddedFontError, extractOoxmlEmbeddedFonts } from "./fonts/ooxml.js";
68
65
  import { HsqldbBinaryScript, HsqldbBinaryScriptParseError, inflateHsqldbCompressedScript, parseHsqldbBinaryScript } from "./hsqldb/binary-script.js";
69
66
  import { decodeHsqldbCachedTables } from "./hsqldb/cache.js";
67
+ import { flipY } from "./model/geometry.js";
70
68
  import { DocxBytesSchema, MarkdownBytesSchema, OdgBytesSchema, OdpBytesSchema, OdsBytesSchema, OdtBytesSchema, PdfBytesSchema, PptxBytesSchema, XlsxBytesSchema } from "./model/bytes.js";
71
69
  import { MathDiagnostic, MathDiagnosticKind, MathLayoutResult } from "./mathml/layout-types.js";
72
70
  import { LayoutFormulaOptions, layoutFormula } from "./mathml/layout.js";
@@ -113,7 +111,7 @@ import { ReadDocumentMetadataOptions, readDocumentMetadata } from "./metadata/re
113
111
  import { MetadataOverrides, SetDocumentMetadataOptions, setDocumentMetadata } from "./metadata/write.js";
114
112
  import { throwIfAborted } from "./ports/abort.js";
115
113
  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";
116
- import { CONTENT_FORMAT_VERSION, CellPosition, CellRange, ContentBlock, ContentBlockSchema, ContentCellValue, ContentCellValueSchema, ContentDocument, ContentDocumentJson, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DocumentJsonResult, DocumentPackage, DocumentPackageJson, DocumentPackageSchema, DocumentSchemaKind, FontFace, LAYOUT_FORMAT_VERSION, LayoutDocument, LayoutDocumentJson, LayoutDocumentSchema, LayoutEllipse, LayoutImage, LayoutImageAsset, LayoutItem, LayoutLine, LayoutLink, LayoutMetadata, LayoutPage, LayoutPath, LayoutPathSegment, LayoutRect, LayoutSubpath, LayoutText, MathAssembledGlyphs, MathBox, MathColor, MathFontMetrics, MathGlyphMetrics, MathGlyphPlacement, MathGlyphRun, MathLayoutItem, MathRule, MathStretchAxis, MathStretchGlyph, MathStretchResult, MathStroke, PositionedFormula, UnrecognizedDocumentSchemaError, cellReference, columnIndexToLetters, columnLettersToIndex, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, isContentBlock, layoutDocumentWithSchema, parseCellReference, parseRangeReference, rangeReference, schemaUriFor } from "document-schema.js";
114
+ import { Alignment, Box, COLOR_BLACK, CONTENT_FORMAT_VERSION, CellPosition, CellRange, Color as LayoutColor, ContentBlock, ContentBlockSchema, ContentCellValue, ContentCellValueSchema, ContentDocument, ContentDocumentJson, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DocumentJsonResult, DocumentPackage, DocumentPackageJson, DocumentPackageSchema, DocumentSchemaKind, FontFace, LAYOUT_FORMAT_VERSION, LayoutDocument, LayoutDocumentJson, LayoutDocumentSchema, LayoutEllipse, LayoutFont, LayoutImage, LayoutImageAsset, LayoutItem, LayoutLine, LayoutLink, LayoutMetadata, LayoutPage, LayoutPath, LayoutPathSegment, LayoutRect, LayoutSubpath, LayoutText, Margins, MathAssembledGlyphs, MathBox, MathColor, MathFontMetrics, MathGlyphMetrics, MathGlyphPlacement, MathGlyphRun, MathLayoutItem, MathRule, MathStretchAxis, MathStretchGlyph, MathStretchResult, MathStroke, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSize, PositionedFormula, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, UnrecognizedDocumentSchemaError, cellReference, columnIndexToLetters, columnLettersToIndex, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, isContentBlock, layoutDocumentWithSchema, parseCellReference, parseRangeReference, rangeReference, rgbHexToColor, schemaUriFor } from "document-schema.js";
117
115
  import { OdbComponentInfo, OdbConnectionInfo, OdbForm, OdbFormControl, OdbFormDefinition, OdbInventory, OdbQueryInfo, OdbReport, OdbReportBand, OdbReportElement, OdbReportFunction, OdbReportGroup, readOdbForm, readOdbInventory, readOdbReport, resolveOdbComponent } from "odf.js";
118
116
  import { FontFaceParseError, FontRegistry, FontRegistryOptions, FontSubstitution, LoadedMathFont, MathFont, MathFontDescriptorMetrics, NOOP_DIAGNOSTIC_SINK, PdfDiagnostic, PdfDiagnosticSeverity, PdfDiagnosticSink, PdfEncryptedError, PdfParseError, ProvidedFont, ReadPdfOptions, ResolvedFace, WinAnsiSubstitution, WritePdfOptions, createFontMeasurer, createFontRegistry, createStandardFontMeasurer, loadMathFont, pdfCodec, readFontFace as describeFontFace, readPdf, writePdf } from "pdf-codec";
119
117
  export { type Alignment, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, type BuildDocxPackageOptions, type BuildOdgPackageOptions, type BuildOdpPackageOptions, type BuildOdsPackageOptions, type BuildOdtPackageOptions, type BuildPptxPackageOptions, COLOR_BLACK, CONTENT_FORMAT_VERSION, type CellPosition, type CellRange, 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, type CreateDocxOptions, type CreateEmptyDocxPackageOptions, type CreateEmptyOdgPackageOptions, type CreateEmptyOdpPackageOptions, type CreateEmptyOdsPackageOptions, type CreateEmptyOdtPackageOptions, type CreateEmptyPptxPackageOptions, type CreateMarkdownEditorOptions, type CreateOdgOptions, type CreateOdpOptions, type CreateOdsOptions, type CreateOdtOptions, type CreatePdfOptions, type CreatePptxOptions, DEFAULT_LAYOUT_FONT, DOCUMENT_FORMATS, type DefinedName, DefinedNameSchema, type Diagnostic, type DocumentBridgeOptions, type DocumentConverter, type DocumentFontRegistryOptions, type DocumentFormat, DocumentFormatSchema, 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 FontFace, FontFaceParseError, 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, type MarkdownBody, MarkdownBytesSchema, MarkdownEditor, MarkdownList, type MarkdownListInit, MarkdownParagraph, type ParagraphInit as MarkdownParagraphInit, MarkdownRun, type RunInit as MarkdownRunInit, MarkdownTable, MarkdownTableCell, type TableInit as MarkdownTableInit, MarkdownTableRow, 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, type MetadataOverrides, 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, type OdbReportToDocxOptions, type OdbReportToOdtOptions, 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$1 as OdtParagraphInit, OdtRun, type RunInit$1 as OdtRunInit, OdtTable, OdtTableCell, type TableInit$1 as OdtTableInit, OdtTableRow, type OmmlDiagnostic, type OmmlDiagnosticKind, type OmmlReadResult, type OmmlWriteResult, OoxmlEmbeddedFontError, type OperatorProperties, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageInit, type PageSize, type Part, PartSchema, PdfBytesSchema, type PdfDiagnostic, type PdfDiagnosticSeverity, type PdfDiagnosticSink, PdfEditor, type PdfEllipseInit, PdfEllipseItem, PdfEncryptedError, type PdfImageInit, PdfImageItem, type PdfItem, type PdfLineInit, PdfLineItem, type PdfLinkInit, PdfLinkItem, PdfPage, PdfParseError, type PdfPathInit, PdfPathItem, type PdfRectInit, PdfRectItem, type PdfTextInit, PdfTextItem, type PdfToDocumentOptions, type PositionedFormula, PptxBytesSchema, PptxEditor, PptxShape, PptxSlide, PptxTable, PptxTableCell, type PptxTableInit, PptxTableRow, type PresentationLayoutResult, type ProvidedFont, type ReadDocumentMetadataOptions, 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 SetDocumentMetadataOptions, 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, UnsupportedFontSourceFormatError, UnsupportedPackageFormatError, 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, buildDocumentBytes, buildDocxPackage, buildDrawingBlock, buildFormulaBlock, buildMarkdownText, buildOdgPackage, buildOdpPackage, buildOdsPackage, buildOdtPackage, buildOfficeMath, buildOfficeMathParagraph, buildPptxPackage, buildXml, bytesToBase64, cellReference, childrenWithTag, collectOfficeMathElements, columnIndexToLetters, columnLettersToIndex, compactCodec, compactPackageCodec, contentDocumentWithSchema, convertDrawingToLayout, convertPresentationToLayout, convertSpreadsheetToLayout, convertWordprocessingToLayout, createDocumentFontRegistry, createDocx, createFontMeasurer, createFontRegistry, createLocalDocumentConverter, createMarkdownEditor, createOdg, createOdp, createOds, createOdt, createPdf, createPptx, createStandardFontMeasurer, decodeCompactPackage, decodeDocumentPackage, decodeEntities, decodeHsqldbCachedTables, decodeMarkdownText, decodeOdbPackage, decodePackage, deobfuscateEmbeddedFont, deriveFontKey, describeFontFace, detectGridLattice, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, docxPdfCodec, docxToMarkdown, docxToOdt, docxToPdf, docxToPptx, drawingOfBlock, elementChildren, elementLocalName, elementsWithTag, encodeCompactPackage, encodeDocumentPackage, encodeMarkdownText, encodePackage, evaluateRptBandOutsideData, evaluateSelect, extractOdfEmbeddedFonts, extractOoxmlEmbeddedFonts, extractSourceFonts, extractSourceFontsForFormat, 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, markdownToXlsx, textContent as mathMlTextContent, odbReportCommandSql, odbReportGroupChain, odbReportToDocx, odbReportToOdt, odbReportToPdf, odbTablesToSpreadsheetDocument, odbToCsv, odbToXlsx, odfToPdf, odgPdfCodec, odgToPdf, odmToPdf, odpPdfCodec, odpPptxCodec, odpToOdt, odpToPdf, odpToPptx, odsPdfCodec, odsToPdf, odsToXlsx, odsXlsxCodec, odtDocxCodec, odtPdfCodec, odtToDocx, odtToMarkdown, odtToOdp, odtToPdf, openDocx, openMarkdown, openOdg, openOdp, openOds, openOdt, openPdf, openPptx, operatorProperties, packageCodec, parseCellReference, parseHsqldbBinaryScript, parseHsqldbScript, parsePackage, parseRangeReference, parseRptFormula, parseSelect, parseXml, pdfCodec, pdfToDocx, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPptx, pdfToXlsx, pptxPdfCodec, pptxToDocx, pptxToOdp, pptxToPdf, rangeReference, readDocumentMetadata, 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, resolveMetadataTimestamps, resolveOdbComponent, resolveOdbReportRows, resolveRelationships, rgbHexToColor, rootElement, rptBandDefinition, rptDefinitionFromReport, runRptReport, schemaUriFor, serializePackage, setDocumentMetadata, systemClock, textContent$1 as textContent, throwIfAborted, toCompact, tokenizeSql, unzipPackage, walk, writePdf, xlsxMarkdownCodec, xlsxPdfCodec, xlsxToMarkdown, xlsxToOds, xlsxToPdf, xmlCodec, zipPackage };
package/dist/index.js CHANGED
@@ -1,6 +1,4 @@
1
- import { PAGE_SIZE_A4, PAGE_SIZE_LETTER, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, flipY } from "./model/geometry.js";
2
- import { COLOR_BLACK, rgbHexToColor } from "./model/color.js";
3
- import { DEFAULT_LAYOUT_FONT } from "./model/style.js";
1
+ import { flipY } from "./model/geometry.js";
4
2
  import { DocxBytesSchema, MarkdownBytesSchema, OdgBytesSchema, OdpBytesSchema, OdsBytesSchema, OdtBytesSchema, PdfBytesSchema, PptxBytesSchema, XlsxBytesSchema } from "./model/bytes.js";
5
3
  import { resolveMetadataTimestamps } from "./model/metadata.js";
6
4
  import { fixedClock, systemClock } from "./ports/clock.js";
@@ -105,7 +103,7 @@ import { UnsupportedFontSourceFormatError, extractSourceFontsForFormat } from ".
105
103
  import { readDocumentMetadata } from "./metadata/read.js";
106
104
  import { setDocumentMetadata } from "./metadata/write.js";
107
105
  import { AttributeSchema, BinaryPartSchema, CommentSchema, CompactPackageSchema, CompactPartSchema, CompactXmlNodeSchema, DefinedNameSchema, FootnoteSchema, NumberingDefinitionSchema, NumberingLevelSchema, PackageSchema, PartSchema, XmlCdataSchema, XmlCommentSchema, XmlDeclarationSchema, XmlElementSchema, XmlNodeSchema, XmlPartSchema, XmlPiSchema, 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";
108
- import { CONTENT_FORMAT_VERSION, ContentBlockSchema, ContentCellValueSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentImageBlockSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, ContentVectorSchema, DocumentPackageSchema, LAYOUT_FORMAT_VERSION, LayoutDocumentSchema, UnrecognizedDocumentSchemaError, cellReference, columnIndexToLetters, columnLettersToIndex, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, isContentBlock, layoutDocumentWithSchema, parseCellReference, parseRangeReference, rangeReference, schemaUriFor } from "document-schema.js";
106
+ import { COLOR_BLACK, CONTENT_FORMAT_VERSION, ContentBlockSchema, ContentCellValueSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentImageBlockSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DocumentPackageSchema, LAYOUT_FORMAT_VERSION, LayoutDocumentSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, UnrecognizedDocumentSchemaError, cellReference, columnIndexToLetters, columnLettersToIndex, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, isContentBlock, layoutDocumentWithSchema, parseCellReference, parseRangeReference, rangeReference, rgbHexToColor, schemaUriFor } from "document-schema.js";
109
107
  import { readOdbForm, readOdbInventory, readOdbReport, resolveOdbComponent } from "odf.js";
110
108
  import { FontFaceParseError, NOOP_DIAGNOSTIC_SINK, PdfEncryptedError, PdfParseError, createFontMeasurer, createFontRegistry, createStandardFontMeasurer, loadMathFont, pdfCodec, readFontFace as describeFontFace, readPdf, writePdf } from "pdf-codec";
111
109
  export { AttributeSchema, BinaryPartSchema, COLOR_BLACK, CONTENT_FORMAT_VERSION, CommentSchema, CompactPackageSchema, CompactPartSchema, CompactXmlNodeSchema, ContentBlockSchema, ContentCellValueSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentImageBlockSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DOCUMENT_FORMATS, DefinedNameSchema, DocumentFormatSchema, DocumentPackageSchema, DocxBytesSchema, DocxEditor, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, SUPPORTED_BACKUP_FORMAT_VERSION as FIREBIRD_SUPPORTED_BACKUP_FORMAT_VERSION, FirebirdBackupFormatError, FirebirdBackupParseError, FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError, FirebirdSchemaParseError, FirebirdUnsupportedFieldTypeError, FontDeobfuscationError, FontFaceParseError, FootnoteSchema, HsqldbBinaryScriptParseError, HsqldbRowFormatError, HsqldbScriptParseError, HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError, LAYOUT_FORMAT_VERSION, LayoutDocumentSchema, MarkdownBytesSchema, MarkdownEditor, MarkdownList, MarkdownParagraph, MarkdownRun, MarkdownTable, MarkdownTableCell, MarkdownTableRow, NOOP_DIAGNOSTIC_SINK, NumberingDefinitionSchema, NumberingLevelSchema, OdbNoEmbeddedDataSourceError, OdbReportDataSourceError, OdbReportNotSpecifiedError, OdbTableNotFoundError, OdbTableNotSpecifiedError, OdbUnsupportedFormatError, OdfEmbeddedFontError, OdgBoxVector, OdgBytesSchema, OdgEditor, OdgLineVector, OdgPage, OdgPathVector, OdmUnresolvedSectionError, OdpBytesSchema, OdpEditor, OdpShape, OdpSlide, OdsBytesSchema, OdsCell, OdsEditor, OdsSheet, OdtBytesSchema, OdtEditor, OdtList, OdtListItem, OdtParagraph, OdtRun, OdtTable, OdtTableCell, OdtTableRow, OoxmlEmbeddedFontError, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PackageSchema, PartSchema, PdfBytesSchema, PdfEditor, PdfEllipseItem, PdfEncryptedError, PdfImageItem, PdfLineItem, PdfLinkItem, PdfPage, PdfParseError, PdfPathItem, PdfRectItem, PdfTextItem, PptxBytesSchema, PptxEditor, PptxShape, PptxSlide, PptxTable, PptxTableCell, PptxTableRow, RptFormulaEvaluationError, RptFormulaParseError, RptFormulaUnsupportedError, RptReportStructureError, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, UnrecognizedDocumentSchemaError, UnsupportedFontSourceFormatError, UnsupportedPackageFormatError, XlsxBytesSchema, XmlCdataSchema, XmlCommentSchema, XmlDeclarationSchema, XmlElementSchema, XmlNodeSchema, XmlPartSchema, XmlPiSchema, XmlTextSchema, applyMathVariant, attr, base64ToBytes, buildDocumentBytes, buildDocxPackage, buildDrawingBlock, buildFormulaBlock, buildMarkdownText, buildOdgPackage, buildOdpPackage, buildOdsPackage, buildOdtPackage, buildOfficeMath, buildOfficeMathParagraph, buildPptxPackage, buildXml, bytesToBase64, cellReference, childrenWithTag, collectOfficeMathElements, columnIndexToLetters, columnLettersToIndex, compactCodec, compactPackageCodec, contentDocumentWithSchema, convertDrawingToLayout, convertPresentationToLayout, convertSpreadsheetToLayout, convertWordprocessingToLayout, createDocumentFontRegistry, createDocx, createFontMeasurer, createFontRegistry, createLocalDocumentConverter, createMarkdownEditor, createOdg, createOdp, createOds, createOdt, createPdf, createPptx, createStandardFontMeasurer, decodeCompactPackage, decodeDocumentPackage, decodeEntities, decodeHsqldbCachedTables, decodeMarkdownText, decodeOdbPackage, decodePackage, deobfuscateEmbeddedFont, deriveFontKey, describeFontFace, detectGridLattice, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, docxPdfCodec, docxToMarkdown, docxToOdt, docxToPdf, docxToPptx, drawingOfBlock, elementChildren, elementLocalName, elementsWithTag, encodeCompactPackage, encodeDocumentPackage, encodeMarkdownText, encodePackage, evaluateRptBandOutsideData, evaluateSelect, extractOdfEmbeddedFonts, extractOoxmlEmbeddedFonts, extractSourceFonts, extractSourceFontsForFormat, 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, markdownToXlsx, textContent as mathMlTextContent, odbReportCommandSql, odbReportGroupChain, odbReportToDocx, odbReportToOdt, odbReportToPdf, odbTablesToSpreadsheetDocument, odbToCsv, odbToXlsx, odfToPdf, odgPdfCodec, odgToPdf, odmToPdf, odpPdfCodec, odpPptxCodec, odpToOdt, odpToPdf, odpToPptx, odsPdfCodec, odsToPdf, odsToXlsx, odsXlsxCodec, odtDocxCodec, odtPdfCodec, odtToDocx, odtToMarkdown, odtToOdp, odtToPdf, openDocx, openMarkdown, openOdg, openOdp, openOds, openOdt, openPdf, openPptx, operatorProperties, packageCodec, parseCellReference, parseHsqldbBinaryScript, parseHsqldbScript, parsePackage, parseRangeReference, parseRptFormula, parseSelect, parseXml, pdfCodec, pdfToDocx, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPptx, pdfToXlsx, pptxPdfCodec, pptxToDocx, pptxToOdp, pptxToPdf, rangeReference, readDocumentMetadata, 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, resolveMetadataTimestamps, resolveOdbComponent, resolveOdbReportRows, resolveRelationships, rgbHexToColor, rootElement, rptBandDefinition, rptDefinitionFromReport, runRptReport, schemaUriFor, serializePackage, setDocumentMetadata, systemClock, textContent$1 as textContent, throwIfAborted, toCompact, tokenizeSql, unzipPackage, walk, writePdf, xlsxMarkdownCodec, xlsxPdfCodec, xlsxToMarkdown, xlsxToOds, xlsxToPdf, xmlCodec, zipPackage };
@@ -1,6 +1,4 @@
1
- import { n as LayoutColor } from "./color-BHhGSqAh.js";
2
- import { i as LayoutFont } from "./style-DkamR3aY.js";
3
- import { ContentStrokeStyle, LayoutEllipse, LayoutImage, LayoutImageAsset, LayoutItem, LayoutLine, LayoutLink, LayoutPath, LayoutRect, LayoutSubpath, LayoutText } from "document-schema.js";
1
+ import { Color, ContentStrokeStyle, LayoutEllipse, LayoutFont, LayoutImage, LayoutImageAsset, LayoutItem, LayoutLine, LayoutLink, LayoutPath, LayoutRect, LayoutSubpath, LayoutText } from "document-schema.js";
4
2
  //#region src/edit/pdf/item.d.ts
5
3
  declare abstract class PdfItemBase<T extends LayoutItem> {
6
4
  protected readonly container: LayoutItem[];
@@ -18,7 +16,7 @@ interface PdfTextInit {
18
16
  readonly text: string;
19
17
  readonly font: LayoutFont;
20
18
  readonly sizePt: number;
21
- readonly color: LayoutColor;
19
+ readonly color: Color;
22
20
  readonly rotationDeg?: number;
23
21
  readonly underline?: boolean;
24
22
  }
@@ -36,8 +34,8 @@ declare class PdfTextItem extends PdfItemBase<LayoutText> {
36
34
  set font(value: LayoutFont);
37
35
  get sizePt(): number;
38
36
  set sizePt(value: number);
39
- get color(): LayoutColor;
40
- set color(value: LayoutColor);
37
+ get color(): Color;
38
+ set color(value: Color);
41
39
  get widthPt(): number | undefined;
42
40
  set widthPt(value: number | undefined);
43
41
  get rotationDeg(): number | undefined;
@@ -50,9 +48,9 @@ interface PdfRectInit {
50
48
  readonly yPt: number;
51
49
  readonly widthPt: number;
52
50
  readonly heightPt: number;
53
- readonly fill?: LayoutColor;
51
+ readonly fill?: Color;
54
52
  readonly stroke?: {
55
- readonly color: LayoutColor;
53
+ readonly color: Color;
56
54
  readonly widthPt: number;
57
55
  };
58
56
  }
@@ -61,9 +59,9 @@ interface PdfEllipseInit {
61
59
  readonly yPt: number;
62
60
  readonly widthPt: number;
63
61
  readonly heightPt: number;
64
- readonly fill?: LayoutColor;
62
+ readonly fill?: Color;
65
63
  readonly stroke?: {
66
- readonly color: LayoutColor;
64
+ readonly color: Color;
67
65
  readonly widthPt: number;
68
66
  };
69
67
  }
@@ -80,14 +78,14 @@ declare class PdfRectItem extends PdfItemBase<LayoutRect> {
80
78
  set widthPt(value: number);
81
79
  get heightPt(): number;
82
80
  set heightPt(value: number);
83
- get fill(): LayoutColor | undefined;
84
- set fill(value: LayoutColor | undefined);
81
+ get fill(): Color | undefined;
82
+ set fill(value: Color | undefined);
85
83
  get stroke(): {
86
- readonly color: LayoutColor;
84
+ readonly color: Color;
87
85
  readonly widthPt: number;
88
86
  } | undefined;
89
87
  set stroke(value: {
90
- readonly color: LayoutColor;
88
+ readonly color: Color;
91
89
  readonly widthPt: number;
92
90
  } | undefined);
93
91
  }
@@ -102,14 +100,14 @@ declare class PdfEllipseItem extends PdfItemBase<LayoutEllipse> {
102
100
  set widthPt(value: number);
103
101
  get heightPt(): number;
104
102
  set heightPt(value: number);
105
- get fill(): LayoutColor | undefined;
106
- set fill(value: LayoutColor | undefined);
103
+ get fill(): Color | undefined;
104
+ set fill(value: Color | undefined);
107
105
  get stroke(): {
108
- readonly color: LayoutColor;
106
+ readonly color: Color;
109
107
  readonly widthPt: number;
110
108
  } | undefined;
111
109
  set stroke(value: {
112
- readonly color: LayoutColor;
110
+ readonly color: Color;
113
111
  readonly widthPt: number;
114
112
  } | undefined);
115
113
  }
@@ -118,7 +116,7 @@ interface PdfLineInit {
118
116
  readonly y1Pt: number;
119
117
  readonly x2Pt: number;
120
118
  readonly y2Pt: number;
121
- readonly color: LayoutColor;
119
+ readonly color: Color;
122
120
  readonly widthPt: number;
123
121
  readonly style?: ContentStrokeStyle;
124
122
  }
@@ -134,8 +132,8 @@ declare class PdfLineItem extends PdfItemBase<LayoutLine> {
134
132
  set x2Pt(value: number);
135
133
  get y2Pt(): number;
136
134
  set y2Pt(value: number);
137
- get color(): LayoutColor;
138
- set color(value: LayoutColor);
135
+ get color(): Color;
136
+ set color(value: Color);
139
137
  get widthPt(): number;
140
138
  set widthPt(value: number);
141
139
  get style(): ContentStrokeStyle | undefined;
@@ -143,10 +141,10 @@ declare class PdfLineItem extends PdfItemBase<LayoutLine> {
143
141
  }
144
142
  interface PdfPathInit {
145
143
  readonly subpaths: readonly LayoutSubpath[];
146
- readonly fill?: LayoutColor;
144
+ readonly fill?: Color;
147
145
  readonly fillRule?: 'nonzero' | 'evenodd';
148
146
  readonly stroke?: {
149
- readonly color: LayoutColor;
147
+ readonly color: Color;
150
148
  readonly widthPt: number;
151
149
  };
152
150
  readonly style?: ContentStrokeStyle;
@@ -157,16 +155,16 @@ declare class PdfPathItem extends PdfItemBase<LayoutPath> {
157
155
  constructor(container: LayoutItem[], node: LayoutPath);
158
156
  get subpaths(): readonly LayoutSubpath[];
159
157
  set subpaths(value: readonly LayoutSubpath[]);
160
- get fill(): LayoutColor | undefined;
161
- set fill(value: LayoutColor | undefined);
158
+ get fill(): Color | undefined;
159
+ set fill(value: Color | undefined);
162
160
  get fillRule(): 'nonzero' | 'evenodd' | undefined;
163
161
  set fillRule(value: 'nonzero' | 'evenodd' | undefined);
164
162
  get stroke(): {
165
- readonly color: LayoutColor;
163
+ readonly color: Color;
166
164
  readonly widthPt: number;
167
165
  } | undefined;
168
166
  set stroke(value: {
169
- readonly color: LayoutColor;
167
+ readonly color: Color;
170
168
  readonly widthPt: number;
171
169
  } | undefined);
172
170
  get style(): ContentStrokeStyle | undefined;