js.documents 1.91.4 → 1.91.5

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 (87) hide show
  1. package/dist/edit/geometry.d.cts +1 -1
  2. package/dist/edit/geometry.d.ts +1 -1
  3. package/dist/edit/markdown/editor.d.cts +1 -1
  4. package/dist/edit/markdown/editor.d.ts +1 -1
  5. package/dist/edit/odg/editor.d.cts +1 -1
  6. package/dist/edit/odg/editor.d.ts +1 -1
  7. package/dist/edit/odg/page.d.cts +2 -2
  8. package/dist/edit/odg/page.d.ts +2 -2
  9. package/dist/edit/odp/editor.d.cts +1 -1
  10. package/dist/edit/odp/editor.d.ts +1 -1
  11. package/dist/edit/odp/image.d.cts +1 -1
  12. package/dist/edit/odp/image.d.ts +1 -1
  13. package/dist/edit/odp/shape.d.cts +1 -1
  14. package/dist/edit/odp/shape.d.ts +1 -1
  15. package/dist/edit/odp/slide.d.cts +4 -4
  16. package/dist/edit/odp/slide.d.ts +4 -4
  17. package/dist/edit/odt/content.d.cts +2 -2
  18. package/dist/edit/odt/content.d.ts +2 -2
  19. package/dist/edit/odt/editor.d.cts +4 -4
  20. package/dist/edit/odt/editor.d.ts +4 -4
  21. package/dist/edit/odt/formula.d.cts +1 -1
  22. package/dist/edit/odt/formula.d.ts +1 -1
  23. package/dist/edit/odt/image.d.cts +1 -1
  24. package/dist/edit/odt/image.d.ts +1 -1
  25. package/dist/edit/odt/list.d.cts +1 -1
  26. package/dist/edit/odt/list.d.ts +1 -1
  27. package/dist/edit/odt/paragraph.d.cts +1 -1
  28. package/dist/edit/odt/paragraph.d.ts +1 -1
  29. package/dist/edit/odt/table.d.cts +1 -1
  30. package/dist/edit/odt/table.d.ts +1 -1
  31. package/dist/edit/pptx/editor.d.cts +1 -1
  32. package/dist/edit/pptx/editor.d.ts +1 -1
  33. package/dist/edit/pptx/image.d.cts +1 -1
  34. package/dist/edit/pptx/image.d.ts +1 -1
  35. package/dist/edit/pptx/shape.d.cts +1 -1
  36. package/dist/edit/pptx/shape.d.ts +1 -1
  37. package/dist/edit/pptx/slide.d.cts +4 -4
  38. package/dist/edit/pptx/slide.d.ts +4 -4
  39. package/dist/edit/pptx/table.d.cts +1 -1
  40. package/dist/edit/pptx/table.d.ts +1 -1
  41. package/dist/geometry-DUF273hM.d.cts +6 -0
  42. package/dist/geometry-DUF273hM.d.ts +6 -0
  43. package/dist/{image-DwrOnL_Z.d.ts → image-BFn8Rm6P.d.ts} +1 -1
  44. package/dist/{image-Cs8xF753.d.ts → image-BgN3j3ly.d.ts} +1 -1
  45. package/dist/{image-M5SezZVI.d.cts → image-C6lKT9ZH.d.cts} +1 -1
  46. package/dist/{image-DHcA9kaK.d.ts → image-CNuBLN5L.d.ts} +1 -1
  47. package/dist/{image-7snmKIxn.d.cts → image-DK0YCpYO.d.cts} +1 -1
  48. package/dist/{image-m_rfpuY8.d.cts → image-K3MAhLJc.d.cts} +1 -1
  49. package/dist/index.d.cts +7 -7
  50. package/dist/index.d.ts +7 -7
  51. package/dist/layout/drawing.cjs +1 -2
  52. package/dist/layout/drawing.js +1 -2
  53. package/dist/layout/engine.cjs +3 -2
  54. package/dist/layout/engine.js +2 -1
  55. package/dist/layout/shared.cjs +2 -1
  56. package/dist/layout/shared.js +2 -1
  57. package/dist/layout/sheets.cjs +3 -2
  58. package/dist/layout/sheets.js +2 -1
  59. package/dist/layout/slides.cjs +3 -2
  60. package/dist/layout/slides.js +3 -2
  61. package/dist/layout/text-layout.cjs +215 -0
  62. package/dist/layout/text-layout.d.cts +5 -0
  63. package/dist/layout/text-layout.d.ts +5 -0
  64. package/dist/layout/text-layout.js +214 -0
  65. package/dist/{list-4lN_90Pt.d.ts → list-CSIIzXAV.d.ts} +1 -1
  66. package/dist/{list-fKlr6jWd.d.cts → list-MCxkKpI7.d.cts} +1 -1
  67. package/dist/model/geometry.cjs +12 -0
  68. package/dist/model/geometry.d.cts +2 -2
  69. package/dist/model/geometry.d.ts +2 -2
  70. package/dist/model/geometry.js +12 -1
  71. package/dist/odf/formula/detect.d.cts +1 -1
  72. package/dist/odf/formula/detect.d.ts +1 -1
  73. package/dist/odf/shared/flow-anchor.d.cts +1 -1
  74. package/dist/odf/shared/flow-anchor.d.ts +1 -1
  75. package/dist/{paragraph-Bz20facN.d.ts → paragraph--0f7PjzJ.d.ts} +1 -1
  76. package/dist/{paragraph-BlN-ErQS.d.cts → paragraph-D7324S0j.d.cts} +1 -1
  77. package/dist/{shape-lA-bEGqk.d.cts → shape-B0yAqgxZ.d.cts} +3 -3
  78. package/dist/{shape-C3NECkae.d.ts → shape-CnYhKn5U.d.ts} +1 -1
  79. package/dist/{shape-CoiqTTA-.d.cts → shape-De9583Kz.d.cts} +1 -1
  80. package/dist/{shape-DFO5259y.d.ts → shape-tOOiQ2UZ.d.ts} +3 -3
  81. package/dist/{table-BRXbauz6.d.ts → table-DUM0vvIO.d.ts} +1 -1
  82. package/dist/{table-DV-Glhx_.d.ts → table-ce9uQfqn.d.ts} +2 -2
  83. package/dist/{table-CjUjLcsE.d.cts → table-fnUiKudF.d.cts} +2 -2
  84. package/dist/{table-CNrk1jGM.d.cts → table-u6fXNuDO.d.cts} +1 -1
  85. package/package.json +1 -1
  86. package/dist/geometry-DaJr8yQW.d.cts +0 -5
  87. package/dist/geometry-DaJr8yQW.d.ts +0 -5
@@ -1,4 +1,4 @@
1
- import { t as Box } from "../geometry-DaJr8yQW.cjs";
1
+ import { t as Box } from "../geometry-DUF273hM.cjs";
2
2
  import { XmlElement } from "odf.js";
3
3
  //#region src/edit/geometry.d.ts
4
4
  declare function buildTransformAttr(frame: Box, rotationDeg: number): string;
@@ -1,4 +1,4 @@
1
- import { t as Box } from "../geometry-DaJr8yQW.js";
1
+ import { t as Box } from "../geometry-DUF273hM.js";
2
2
  import { XmlElement } from "odf.js";
3
3
  //#region src/edit/geometry.d.ts
4
4
  declare function buildTransformAttr(frame: Box, rotationDeg: number): string;
@@ -1,5 +1,5 @@
1
1
  import { ClockPort } from "../../ports/clock.cjs";
2
- import { r as Margins, s as PageSize$1 } from "../../geometry-DaJr8yQW.cjs";
2
+ import { r as Margins, s as PageSize$1 } from "../../geometry-DUF273hM.cjs";
3
3
  import { MarkdownParagraph, ParagraphInit } from "./paragraph.cjs";
4
4
  import { MarkdownList, MarkdownListInit } from "./list.cjs";
5
5
  import { MarkdownTable, TableInit } from "./table.cjs";
@@ -1,5 +1,5 @@
1
1
  import { ClockPort } from "../../ports/clock.js";
2
- import { r as Margins, s as PageSize$1 } from "../../geometry-DaJr8yQW.js";
2
+ import { r as Margins, s as PageSize$1 } from "../../geometry-DUF273hM.js";
3
3
  import { MarkdownParagraph, ParagraphInit } from "./paragraph.js";
4
4
  import { MarkdownList, MarkdownListInit } from "./list.js";
5
5
  import { MarkdownTable, TableInit } from "./table.js";
@@ -1,5 +1,5 @@
1
1
  import { ClockPort } from "../../ports/clock.cjs";
2
- import { s as PageSize } from "../../geometry-DaJr8yQW.cjs";
2
+ import { s as PageSize } from "../../geometry-DUF273hM.cjs";
3
3
  import { OdgPage } from "./page.cjs";
4
4
  import { Package } from "odf.js";
5
5
  //#region src/edit/odg/editor.d.ts
@@ -1,5 +1,5 @@
1
1
  import { ClockPort } from "../../ports/clock.js";
2
- import { s as PageSize } from "../../geometry-DaJr8yQW.js";
2
+ import { s as PageSize } from "../../geometry-DUF273hM.js";
3
3
  import { OdgPage } from "./page.js";
4
4
  import { Package } from "odf.js";
5
5
  //#region src/edit/odg/editor.d.ts
@@ -1,5 +1,5 @@
1
- import { t as ImageInit } from "../../image-M5SezZVI.cjs";
2
- import { t as OdpShape } from "../../shape-lA-bEGqk.cjs";
1
+ import { t as ImageInit } from "../../image-C6lKT9ZH.cjs";
2
+ import { t as OdpShape } from "../../shape-B0yAqgxZ.cjs";
3
3
  import { a as OdgLineVector, l as PathVectorInit, n as LineVectorInit, o as OdgPathVector, r as OdgBoxVector, s as OdgVector, t as BoxVectorInit } from "../../vector-D03KX8Ux.cjs";
4
4
  import { Box, ContentVector } from "document-schema.js";
5
5
  import { Package, XmlElement, XmlNode } from "odf.js";
@@ -1,5 +1,5 @@
1
- import { t as ImageInit } from "../../image-DHcA9kaK.js";
2
- import { t as OdpShape } from "../../shape-DFO5259y.js";
1
+ import { t as ImageInit } from "../../image-CNuBLN5L.js";
2
+ import { t as OdpShape } from "../../shape-tOOiQ2UZ.js";
3
3
  import { a as OdgLineVector, l as PathVectorInit, n as LineVectorInit, o as OdgPathVector, r as OdgBoxVector, s as OdgVector, t as BoxVectorInit } from "../../vector-D03KX8Ux.js";
4
4
  import { Box, ContentVector } from "document-schema.js";
5
5
  import { Package, XmlElement, XmlNode } from "odf.js";
@@ -1,5 +1,5 @@
1
1
  import { ClockPort } from "../../ports/clock.cjs";
2
- import { s as PageSize } from "../../geometry-DaJr8yQW.cjs";
2
+ import { s as PageSize } from "../../geometry-DUF273hM.cjs";
3
3
  import { OdpSlide } from "./slide.cjs";
4
4
  import { Package } from "odf.js";
5
5
  //#region src/edit/odp/editor.d.ts
@@ -1,5 +1,5 @@
1
1
  import { ClockPort } from "../../ports/clock.js";
2
- import { s as PageSize } from "../../geometry-DaJr8yQW.js";
2
+ import { s as PageSize } from "../../geometry-DUF273hM.js";
3
3
  import { OdpSlide } from "./slide.js";
4
4
  import { Package } from "odf.js";
5
5
  //#region src/edit/odp/editor.d.ts
@@ -1,2 +1,2 @@
1
- import { n as MediaContext, r as insertImageFrameMedia, t as ImageInit } from "../../image-M5SezZVI.cjs";
1
+ import { n as MediaContext, r as insertImageFrameMedia, t as ImageInit } from "../../image-C6lKT9ZH.cjs";
2
2
  export { ImageInit, MediaContext, insertImageFrameMedia };
@@ -1,2 +1,2 @@
1
- import { n as MediaContext, r as insertImageFrameMedia, t as ImageInit } from "../../image-DHcA9kaK.js";
1
+ import { n as MediaContext, r as insertImageFrameMedia, t as ImageInit } from "../../image-CNuBLN5L.js";
2
2
  export { ImageInit, MediaContext, insertImageFrameMedia };
@@ -1,2 +1,2 @@
1
- import { i as buildTextBoxFrame, n as buildImageFrame, r as buildTableFrame, t as OdpShape } from "../../shape-lA-bEGqk.cjs";
1
+ import { i as buildTextBoxFrame, n as buildImageFrame, r as buildTableFrame, t as OdpShape } from "../../shape-B0yAqgxZ.cjs";
2
2
  export { OdpShape, buildImageFrame, buildTableFrame, buildTextBoxFrame };
@@ -1,2 +1,2 @@
1
- import { i as buildTextBoxFrame, n as buildImageFrame, r as buildTableFrame, t as OdpShape } from "../../shape-DFO5259y.js";
1
+ import { i as buildTextBoxFrame, n as buildImageFrame, r as buildTableFrame, t as OdpShape } from "../../shape-tOOiQ2UZ.js";
2
2
  export { OdpShape, buildImageFrame, buildTableFrame, buildTextBoxFrame };
@@ -1,8 +1,8 @@
1
- import { t as Box$1 } from "../../geometry-DaJr8yQW.cjs";
2
- import { t as ImageInit } from "../../image-M5SezZVI.cjs";
3
- import { t as OdpShape } from "../../shape-lA-bEGqk.cjs";
1
+ import { t as Box$1 } from "../../geometry-DUF273hM.cjs";
2
+ import { t as ImageInit } from "../../image-C6lKT9ZH.cjs";
3
+ import { t as OdpShape } from "../../shape-B0yAqgxZ.cjs";
4
4
  import { s as OdgVector } from "../../vector-D03KX8Ux.cjs";
5
- import { a as TableInit, n as OdtTable } from "../../table-CNrk1jGM.cjs";
5
+ import { a as TableInit, n as OdtTable } from "../../table-u6fXNuDO.cjs";
6
6
  import { ContentVector } from "document-schema.js";
7
7
  import { Package, XmlElement, XmlNode } from "odf.js";
8
8
  //#region src/edit/odp/slide.d.ts
@@ -1,8 +1,8 @@
1
- import { t as Box$1 } from "../../geometry-DaJr8yQW.js";
2
- import { t as ImageInit } from "../../image-DHcA9kaK.js";
3
- import { t as OdpShape } from "../../shape-DFO5259y.js";
1
+ import { t as Box$1 } from "../../geometry-DUF273hM.js";
2
+ import { t as ImageInit } from "../../image-CNuBLN5L.js";
3
+ import { t as OdpShape } from "../../shape-tOOiQ2UZ.js";
4
4
  import { s as OdgVector } from "../../vector-D03KX8Ux.js";
5
- import { a as TableInit, n as OdtTable } from "../../table-BRXbauz6.js";
5
+ import { a as TableInit, n as OdtTable } from "../../table-DUM0vvIO.js";
6
6
  import { ContentVector } from "document-schema.js";
7
7
  import { Package, XmlElement, XmlNode } from "odf.js";
8
8
  //#region src/edit/odp/slide.d.ts
@@ -1,6 +1,6 @@
1
1
  import { ClockPort } from "../../ports/clock.cjs";
2
- import { t as OdtParagraph } from "../../paragraph-BlN-ErQS.cjs";
3
- import { n as OdtTable } from "../../table-CNrk1jGM.cjs";
2
+ import { t as OdtParagraph } from "../../paragraph-D7324S0j.cjs";
3
+ import { n as OdtTable } from "../../table-u6fXNuDO.cjs";
4
4
  import { ContentDocument, ContentParagraph, ContentTable } from "document-schema.js";
5
5
  import { Package } from "odf.js";
6
6
  //#region src/edit/odt/content.d.ts
@@ -1,6 +1,6 @@
1
1
  import { ClockPort } from "../../ports/clock.js";
2
- import { t as OdtParagraph } from "../../paragraph-Bz20facN.js";
3
- import { n as OdtTable } from "../../table-BRXbauz6.js";
2
+ import { t as OdtParagraph } from "../../paragraph--0f7PjzJ.js";
3
+ import { n as OdtTable } from "../../table-DUM0vvIO.js";
4
4
  import { ContentDocument, ContentParagraph, ContentTable } from "document-schema.js";
5
5
  import { Package } from "odf.js";
6
6
  //#region src/edit/odt/content.d.ts
@@ -1,8 +1,8 @@
1
1
  import { ClockPort } from "../../ports/clock.cjs";
2
- import { t as Box$1 } from "../../geometry-DaJr8yQW.cjs";
3
- import { n as ParagraphInit, t as OdtParagraph } from "../../paragraph-BlN-ErQS.cjs";
4
- import { t as OdtList } from "../../list-fKlr6jWd.cjs";
5
- import { a as TableInit, n as OdtTable } from "../../table-CNrk1jGM.cjs";
2
+ import { t as Box$1 } from "../../geometry-DUF273hM.cjs";
3
+ import { n as ParagraphInit, t as OdtParagraph } from "../../paragraph-D7324S0j.cjs";
4
+ import { t as OdtList } from "../../list-MCxkKpI7.cjs";
5
+ import { a as TableInit, n as OdtTable } from "../../table-u6fXNuDO.cjs";
6
6
  import { ContentFormula, ContentVector } from "document-schema.js";
7
7
  import { Package } from "odf.js";
8
8
  //#region src/edit/odt/editor.d.ts
@@ -1,8 +1,8 @@
1
1
  import { ClockPort } from "../../ports/clock.js";
2
- import { t as Box$1 } from "../../geometry-DaJr8yQW.js";
3
- import { n as ParagraphInit, t as OdtParagraph } from "../../paragraph-Bz20facN.js";
4
- import { t as OdtList } from "../../list-4lN_90Pt.js";
5
- import { a as TableInit, n as OdtTable } from "../../table-BRXbauz6.js";
2
+ import { t as Box$1 } from "../../geometry-DUF273hM.js";
3
+ import { n as ParagraphInit, t as OdtParagraph } from "../../paragraph--0f7PjzJ.js";
4
+ import { t as OdtList } from "../../list-CSIIzXAV.js";
5
+ import { a as TableInit, n as OdtTable } from "../../table-DUM0vvIO.js";
6
6
  import { ContentFormula, ContentVector } from "document-schema.js";
7
7
  import { Package } from "odf.js";
8
8
  //#region src/edit/odt/editor.d.ts
@@ -1,4 +1,4 @@
1
- import { t as Box$1 } from "../../geometry-DaJr8yQW.cjs";
1
+ import { t as Box$1 } from "../../geometry-DUF273hM.cjs";
2
2
  import { ContentFormula } from "document-schema.js";
3
3
  import { Package, XmlElement } from "odf.js";
4
4
  //#region src/edit/odt/formula.d.ts
@@ -1,4 +1,4 @@
1
- import { t as Box$1 } from "../../geometry-DaJr8yQW.js";
1
+ import { t as Box$1 } from "../../geometry-DUF273hM.js";
2
2
  import { ContentFormula } from "document-schema.js";
3
3
  import { Package, XmlElement } from "odf.js";
4
4
  //#region src/edit/odt/formula.d.ts
@@ -1,2 +1,2 @@
1
- import { n as buildImageFrame, r as insertImageFrameMedia, t as ImageInit } from "../../image-m_rfpuY8.cjs";
1
+ import { n as buildImageFrame, r as insertImageFrameMedia, t as ImageInit } from "../../image-K3MAhLJc.cjs";
2
2
  export { ImageInit, buildImageFrame, insertImageFrameMedia };
@@ -1,2 +1,2 @@
1
- import { n as buildImageFrame, r as insertImageFrameMedia, t as ImageInit } from "../../image-DwrOnL_Z.js";
1
+ import { n as buildImageFrame, r as insertImageFrameMedia, t as ImageInit } from "../../image-BFn8Rm6P.js";
2
2
  export { ImageInit, buildImageFrame, insertImageFrameMedia };
@@ -1,2 +1,2 @@
1
- import { n as OdtListItem, r as buildList, t as OdtList } from "../../list-fKlr6jWd.cjs";
1
+ import { n as OdtListItem, r as buildList, t as OdtList } from "../../list-MCxkKpI7.cjs";
2
2
  export { OdtList, OdtListItem, buildList };
@@ -1,2 +1,2 @@
1
- import { n as OdtListItem, r as buildList, t as OdtList } from "../../list-4lN_90Pt.js";
1
+ import { n as OdtListItem, r as buildList, t as OdtList } from "../../list-CSIIzXAV.js";
2
2
  export { OdtList, OdtListItem, buildList };
@@ -1,2 +1,2 @@
1
- import { n as ParagraphInit, r as buildParagraph, t as OdtParagraph } from "../../paragraph-BlN-ErQS.cjs";
1
+ import { n as ParagraphInit, r as buildParagraph, t as OdtParagraph } from "../../paragraph-D7324S0j.cjs";
2
2
  export { OdtParagraph, ParagraphInit, buildParagraph };
@@ -1,2 +1,2 @@
1
- import { n as ParagraphInit, r as buildParagraph, t as OdtParagraph } from "../../paragraph-Bz20facN.js";
1
+ import { n as ParagraphInit, r as buildParagraph, t as OdtParagraph } from "../../paragraph--0f7PjzJ.js";
2
2
  export { OdtParagraph, ParagraphInit, buildParagraph };
@@ -1,2 +1,2 @@
1
- import { a as TableInit, c as readCellDecoration, i as OdtTableRow, n as OdtTable, o as buildCellStyle, r as OdtTableCell, s as buildTable, t as CellDecoration } from "../../table-CNrk1jGM.cjs";
1
+ import { a as TableInit, c as readCellDecoration, i as OdtTableRow, n as OdtTable, o as buildCellStyle, r as OdtTableCell, s as buildTable, t as CellDecoration } from "../../table-u6fXNuDO.cjs";
2
2
  export { CellDecoration, OdtTable, OdtTableCell, OdtTableRow, TableInit, buildCellStyle, buildTable, readCellDecoration };
@@ -1,2 +1,2 @@
1
- import { a as TableInit, c as readCellDecoration, i as OdtTableRow, n as OdtTable, o as buildCellStyle, r as OdtTableCell, s as buildTable, t as CellDecoration } from "../../table-BRXbauz6.js";
1
+ import { a as TableInit, c as readCellDecoration, i as OdtTableRow, n as OdtTable, o as buildCellStyle, r as OdtTableCell, s as buildTable, t as CellDecoration } from "../../table-DUM0vvIO.js";
2
2
  export { CellDecoration, OdtTable, OdtTableCell, OdtTableRow, TableInit, buildCellStyle, buildTable, readCellDecoration };
@@ -1,5 +1,5 @@
1
1
  import { ClockPort } from "../../ports/clock.cjs";
2
- import { s as PageSize } from "../../geometry-DaJr8yQW.cjs";
2
+ import { s as PageSize } from "../../geometry-DUF273hM.cjs";
3
3
  import { PptxSlide } from "./slide.cjs";
4
4
  import { Package } from "ooxml.js";
5
5
  //#region src/edit/pptx/editor.d.ts
@@ -1,5 +1,5 @@
1
1
  import { ClockPort } from "../../ports/clock.js";
2
- import { s as PageSize } from "../../geometry-DaJr8yQW.js";
2
+ import { s as PageSize } from "../../geometry-DUF273hM.js";
3
3
  import { PptxSlide } from "./slide.js";
4
4
  import { Package } from "ooxml.js";
5
5
  //#region src/edit/pptx/editor.d.ts
@@ -1,2 +1,2 @@
1
- import { n as MediaContext, r as insertPictureShapeMedia, t as ImageInit } from "../../image-7snmKIxn.cjs";
1
+ import { n as MediaContext, r as insertPictureShapeMedia, t as ImageInit } from "../../image-DK0YCpYO.cjs";
2
2
  export { ImageInit, MediaContext, insertPictureShapeMedia };
@@ -1,2 +1,2 @@
1
- import { n as MediaContext, r as insertPictureShapeMedia, t as ImageInit } from "../../image-Cs8xF753.js";
1
+ import { n as MediaContext, r as insertPictureShapeMedia, t as ImageInit } from "../../image-BgN3j3ly.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-CoiqTTA-.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-De9583Kz.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-C3NECkae.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-CnYhKn5U.js";
2
2
  export { DrawingParagraphInit, DrawingRunInit, PptxShape, ROTATION_UNITS_PER_DEGREE, buildDrawingParagraph, buildPictureShape, buildTextBoxShape };
@@ -1,7 +1,7 @@
1
- import { t as Box$1 } from "../../geometry-DaJr8yQW.cjs";
2
- import { t as ImageInit } from "../../image-7snmKIxn.cjs";
3
- import { r as PptxShape } from "../../shape-CoiqTTA-.cjs";
4
- import { r as PptxTableInit, t as PptxTable } from "../../table-CjUjLcsE.cjs";
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
5
  import { ContentVector } from "document-schema.js";
6
6
  import { Package, XmlElement, XmlNode } from "ooxml.js";
7
7
  //#region src/edit/pptx/slide.d.ts
@@ -1,7 +1,7 @@
1
- import { t as Box$1 } from "../../geometry-DaJr8yQW.js";
2
- import { t as ImageInit } from "../../image-Cs8xF753.js";
3
- import { r as PptxShape } from "../../shape-C3NECkae.js";
4
- import { r as PptxTableInit, t as PptxTable } from "../../table-DV-Glhx_.js";
1
+ import { t as Box$1 } from "../../geometry-DUF273hM.js";
2
+ import { t as ImageInit } from "../../image-BgN3j3ly.js";
3
+ import { r as PptxShape } from "../../shape-CnYhKn5U.js";
4
+ import { r as PptxTableInit, t as PptxTable } from "../../table-ce9uQfqn.js";
5
5
  import { Package, XmlElement, XmlNode } from "ooxml.js";
6
6
  import { ContentVector } from "document-schema.js";
7
7
  //#region src/edit/pptx/slide.d.ts
@@ -1,2 +1,2 @@
1
- import { a as buildDrawingTable, i as PptxTableRow, n as PptxTableCell, o as buildTableGraphicFrame, r as PptxTableInit, s as findGraphicFrameTable, t as PptxTable } from "../../table-CjUjLcsE.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-fnUiKudF.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-DV-Glhx_.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-ce9uQfqn.js";
2
2
  export { PptxTable, PptxTableCell, PptxTableInit, PptxTableRow, buildDrawingTable, buildTableGraphicFrame, findGraphicFrameTable };
@@ -0,0 +1,6 @@
1
+ import { Box, Box as Box$1, BoxSchema, Margins, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSize as PageSize$1, PageSizeSchema, Point, Point as Point$1, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN } from "document-schema.js";
2
+ //#region src/model/geometry.d.ts
3
+ declare function flipY(box: Box, containerHeightPt: number): Box;
4
+ declare function rotatePointAboutCenter(point: Point, center: Point, degrees: number): Point;
5
+ //#endregion
6
+ export { PAGE_SIZE_A4 as a, PageSizeSchema as c, SLIDE_SIZE_WIDESCREEN as d, flipY as f, MarginsSchema as i, Point$1 as l, BoxSchema as n, PAGE_SIZE_LETTER as o, rotatePointAboutCenter as p, Margins as r, PageSize$1 as s, Box$1 as t, SLIDE_SIZE_STANDARD as u };
@@ -0,0 +1,6 @@
1
+ import { Box, Box as Box$1, BoxSchema, Margins, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSize as PageSize$1, PageSizeSchema, Point, Point as Point$1, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN } from "document-schema.js";
2
+ //#region src/model/geometry.d.ts
3
+ declare function flipY(box: Box, containerHeightPt: number): Box;
4
+ declare function rotatePointAboutCenter(point: Point, center: Point, degrees: number): Point;
5
+ //#endregion
6
+ export { PAGE_SIZE_A4 as a, PageSizeSchema as c, SLIDE_SIZE_WIDESCREEN as d, flipY as f, MarginsSchema as i, Point$1 as l, BoxSchema as n, PAGE_SIZE_LETTER as o, rotatePointAboutCenter as p, Margins as r, PageSize$1 as s, Box$1 as t, SLIDE_SIZE_STANDARD as u };
@@ -1,4 +1,4 @@
1
- import { t as Box } from "./geometry-DaJr8yQW.js";
1
+ import { t as Box } from "./geometry-DUF273hM.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-DaJr8yQW.js";
1
+ import { t as Box } from "./geometry-DUF273hM.js";
2
2
  import { Package, XmlElement } from "ooxml.js";
3
3
  //#region src/edit/pptx/image.d.ts
4
4
  interface ImageInit {
@@ -1,4 +1,4 @@
1
- import { t as Box } from "./geometry-DaJr8yQW.cjs";
1
+ import { t as Box } from "./geometry-DUF273hM.cjs";
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-DaJr8yQW.js";
1
+ import { t as Box } from "./geometry-DUF273hM.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-DaJr8yQW.cjs";
1
+ import { t as Box } from "./geometry-DUF273hM.cjs";
2
2
  import { Package, XmlElement } from "ooxml.js";
3
3
  //#region src/edit/pptx/image.d.ts
4
4
  interface ImageInit {
@@ -1,4 +1,4 @@
1
- import { t as Box } from "./geometry-DaJr8yQW.cjs";
1
+ import { t as Box } from "./geometry-DUF273hM.cjs";
2
2
  import { Package, XmlElement } from "odf.js";
3
3
  //#region src/edit/odt/image.d.ts
4
4
  interface ImageInit {
package/dist/index.d.cts CHANGED
@@ -18,7 +18,7 @@ import { DocxParagraph } from "./edit/docx/paragraph.cjs";
18
18
  import { DocxTable, DocxTableCell, DocxTableRow, DocxVerticalMerge } from "./edit/docx/table.cjs";
19
19
  import { CreateDocxOptions, DocxBody, DocxEditor, createDocx, openDocx } from "./edit/docx/editor.cjs";
20
20
  import { CreateEmptyDocxPackageOptions } from "./edit/docx/scaffold.cjs";
21
- import { a as PAGE_SIZE_A4, d as flipY, l as SLIDE_SIZE_STANDARD, o as PAGE_SIZE_LETTER, r as Margins, s as PageSize, t as Box, u as SLIDE_SIZE_WIDESCREEN } from "./geometry-DaJr8yQW.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
22
  import { n as RunInit, t as MarkdownRun } from "./run-DpQRXEGp.cjs";
23
23
  import { MarkdownParagraph, ParagraphInit } from "./edit/markdown/paragraph.cjs";
24
24
  import { MarkdownList, MarkdownListInit } from "./edit/markdown/list.cjs";
@@ -27,15 +27,15 @@ import { CreateMarkdownEditorOptions, MarkdownBody, MarkdownEditor, createMarkdo
27
27
  import { BuildOdgPackageOptions, buildOdgPackage } from "./edit/odg/content.cjs";
28
28
  import { i as LayoutFont, r as DEFAULT_LAYOUT_FONT, t as Alignment } from "./style-DkamR3aY.cjs";
29
29
  import { n as RunInit$1, t as OdtRun } from "./run-DQtEGilU.cjs";
30
- import { n as ParagraphInit$1, t as OdtParagraph } from "./paragraph-BlN-ErQS.cjs";
31
- import { n as OdtListItem, t as OdtList } from "./list-fKlr6jWd.cjs";
32
- import { t as OdpShape } from "./shape-lA-bEGqk.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";
33
33
  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
34
  import { OdgPage, PageImageInit, TextBoxInit } from "./edit/odg/page.cjs";
35
35
  import { CreateOdgOptions, OdgEditor, createOdg, openOdg } from "./edit/odg/editor.cjs";
36
36
  import { CreateEmptyOdgPackageOptions } from "./edit/odg/scaffold.cjs";
37
37
  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-CNrk1jGM.cjs";
38
+ import { a as TableInit$1, i as OdtTableRow, n as OdtTable, r as OdtTableCell } from "./table-u6fXNuDO.cjs";
39
39
  import { OdpSlide, SlideImageInit, SlideTableInit, TextBoxInit as TextBoxInit$1 } from "./edit/odp/slide.cjs";
40
40
  import { CreateOdpOptions, OdpEditor, createOdp, openOdp } from "./edit/odp/editor.cjs";
41
41
  import { CreateEmptyOdpPackageOptions } from "./edit/odp/scaffold.cjs";
@@ -51,8 +51,8 @@ import { a as PdfItem, c as PdfLinkInit, d as PdfPathItem, f as PdfRectInit, h a
51
51
  import { PageInit, PdfPage } from "./edit/pdf/page.cjs";
52
52
  import { CreatePdfOptions, PdfEditor, createPdf, openPdf } from "./edit/pdf/editor.cjs";
53
53
  import { BuildPptxPackageOptions, buildPptxPackage } from "./edit/pptx/content.cjs";
54
- import { n as DrawingRunInit, r as PptxShape, t as DrawingParagraphInit } from "./shape-CoiqTTA-.cjs";
55
- import { i as PptxTableRow, n as PptxTableCell, r as PptxTableInit, t as PptxTable } from "./table-CjUjLcsE.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";
56
56
  import { PptxSlide, SlideImageInit as SlideImageInit$1, SlideTableInit as SlideTableInit$1, TextBoxInit as TextBoxInit$2 } from "./edit/pptx/slide.cjs";
57
57
  import { CreatePptxOptions, PptxEditor, createPptx, openPptx } from "./edit/pptx/editor.cjs";
58
58
  import { CreateEmptyPptxPackageOptions } from "./edit/pptx/scaffold.cjs";
package/dist/index.d.ts CHANGED
@@ -18,7 +18,7 @@ import { DocxParagraph } from "./edit/docx/paragraph.js";
18
18
  import { DocxTable, DocxTableCell, DocxTableRow, DocxVerticalMerge } from "./edit/docx/table.js";
19
19
  import { CreateDocxOptions, DocxBody, DocxEditor, createDocx, openDocx } from "./edit/docx/editor.js";
20
20
  import { CreateEmptyDocxPackageOptions } from "./edit/docx/scaffold.js";
21
- import { a as PAGE_SIZE_A4, d as flipY, l as SLIDE_SIZE_STANDARD, o as PAGE_SIZE_LETTER, r as Margins, s as PageSize, t as Box, u as SLIDE_SIZE_WIDESCREEN } from "./geometry-DaJr8yQW.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-DUF273hM.js";
22
22
  import { n as RunInit, t as MarkdownRun } from "./run-DpQRXEGp.js";
23
23
  import { MarkdownParagraph, ParagraphInit } from "./edit/markdown/paragraph.js";
24
24
  import { MarkdownList, MarkdownListInit } from "./edit/markdown/list.js";
@@ -27,15 +27,15 @@ import { CreateMarkdownEditorOptions, MarkdownBody, MarkdownEditor, createMarkdo
27
27
  import { BuildOdgPackageOptions, buildOdgPackage } from "./edit/odg/content.js";
28
28
  import { i as LayoutFont, r as DEFAULT_LAYOUT_FONT, t as Alignment } from "./style-DkamR3aY.js";
29
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-Bz20facN.js";
31
- import { n as OdtListItem, t as OdtList } from "./list-4lN_90Pt.js";
32
- import { t as OdpShape } from "./shape-DFO5259y.js";
30
+ import { n as ParagraphInit$1, t as OdtParagraph } from "./paragraph--0f7PjzJ.js";
31
+ import { n as OdtListItem, t as OdtList } from "./list-CSIIzXAV.js";
32
+ import { t as OdpShape } from "./shape-tOOiQ2UZ.js";
33
33
  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
34
  import { OdgPage, PageImageInit, TextBoxInit } from "./edit/odg/page.js";
35
35
  import { CreateOdgOptions, OdgEditor, createOdg, openOdg } from "./edit/odg/editor.js";
36
36
  import { CreateEmptyOdgPackageOptions } from "./edit/odg/scaffold.js";
37
37
  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-BRXbauz6.js";
38
+ import { a as TableInit$1, i as OdtTableRow, n as OdtTable, r as OdtTableCell } from "./table-DUM0vvIO.js";
39
39
  import { OdpSlide, SlideImageInit, SlideTableInit, TextBoxInit as TextBoxInit$1 } from "./edit/odp/slide.js";
40
40
  import { CreateOdpOptions, OdpEditor, createOdp, openOdp } from "./edit/odp/editor.js";
41
41
  import { CreateEmptyOdpPackageOptions } from "./edit/odp/scaffold.js";
@@ -51,8 +51,8 @@ import { a as PdfItem, c as PdfLinkInit, d as PdfPathItem, f as PdfRectInit, h a
51
51
  import { PageInit, PdfPage } from "./edit/pdf/page.js";
52
52
  import { CreatePdfOptions, PdfEditor, createPdf, openPdf } from "./edit/pdf/editor.js";
53
53
  import { BuildPptxPackageOptions, buildPptxPackage } from "./edit/pptx/content.js";
54
- import { n as DrawingRunInit, r as PptxShape, t as DrawingParagraphInit } from "./shape-C3NECkae.js";
55
- import { i as PptxTableRow, n as PptxTableCell, r as PptxTableInit, t as PptxTable } from "./table-DV-Glhx_.js";
54
+ import { n as DrawingRunInit, r as PptxShape, t as DrawingParagraphInit } from "./shape-CnYhKn5U.js";
55
+ import { i as PptxTableRow, n as PptxTableCell, r as PptxTableInit, t as PptxTable } from "./table-ce9uQfqn.js";
56
56
  import { PptxSlide, SlideImageInit as SlideImageInit$1, SlideTableInit as SlideTableInit$1, TextBoxInit as TextBoxInit$2 } from "./edit/pptx/slide.js";
57
57
  import { CreatePptxOptions, PptxEditor, createPptx, openPptx } from "./edit/pptx/editor.js";
58
58
  import { CreateEmptyPptxPackageOptions } from "./edit/pptx/scaffold.js";
@@ -3,7 +3,6 @@ const require_model_geometry = require("../model/geometry.cjs");
3
3
  const require_model_paint_order = require("../model/paint-order.cjs");
4
4
  const require_layout_slides = require("./slides.cjs");
5
5
  let document_schema_js = require("document-schema.js");
6
- let pdf_codec = require("pdf-codec");
7
6
  //#region src/layout/drawing.ts
8
7
  function isRotated(rotationDeg) {
9
8
  return rotationDeg !== void 0 && rotationDeg !== 0;
@@ -17,7 +16,7 @@ function boxCenter(box) {
17
16
  function rotator(flipped, rotationDeg) {
18
17
  const center = boxCenter(flipped);
19
18
  const ccwDeg = -rotationDeg;
20
- return (point) => (0, pdf_codec.rotatePointAboutCenter)(point, center, ccwDeg);
19
+ return (point) => require_model_geometry.rotatePointAboutCenter(point, center, ccwDeg);
21
20
  }
22
21
  function boxCorners(box) {
23
22
  return [
@@ -1,8 +1,7 @@
1
- import { flipY } from "../model/geometry.js";
1
+ import { flipY, rotatePointAboutCenter } from "../model/geometry.js";
2
2
  import { mergeByPaintOrder } from "../model/paint-order.js";
3
3
  import { convertShape } from "./slides.js";
4
4
  import { LAYOUT_FORMAT_VERSION } from "document-schema.js";
5
- import { rotatePointAboutCenter } from "pdf-codec";
6
5
  //#region src/layout/drawing.ts
7
6
  function isRotated(rotationDeg) {
8
7
  return rotationDeg !== void 0 && rotationDeg !== 0;
@@ -2,6 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_model_geometry = require("../model/geometry.cjs");
3
3
  const require_model_formula = require("../model/formula.cjs");
4
4
  const require_mathml_layout = require("../mathml/layout.cjs");
5
+ const require_layout_text_layout = require("./text-layout.cjs");
5
6
  const require_layout_shared = require("./shared.cjs");
6
7
  let document_schema_js = require("document-schema.js");
7
8
  let pdf_codec = require("pdf-codec");
@@ -30,7 +31,7 @@ function layoutParagraphFlow(paragraph, section, pages, state, contentLeftXDown,
30
31
  const fallbackRun = effectiveRuns[0];
31
32
  const paragraphLeftXDown = contentLeftXDown + (paragraph.indentLeftPt ?? 0);
32
33
  const paragraphWidthPt = Math.max(0, contentWidthPt - (paragraph.indentLeftPt ?? 0));
33
- const lines = (0, pdf_codec.wrapRunsToWidth)(effectiveRuns, measurer, paragraphWidthPt);
34
+ const lines = require_layout_text_layout.wrapRunsToWidth(effectiveRuns, measurer, paragraphWidthPt);
34
35
  lines.forEach((line, lineIndex) => {
35
36
  const lineHeightPt = require_layout_shared.lineNaturalHeightPt(line, measurer, fallbackRun) * (paragraph.lineSpacing ?? 1);
36
37
  ensureRoom(state, section, pages, lineHeightPt, contentBottomYDown);
@@ -77,7 +78,7 @@ function layoutParagraphInCell(paragraph, cellLeftXDown, cellWidthPt, startYDown
77
78
  const fallbackRun = effectiveRuns[0];
78
79
  const paragraphLeftXDown = cellLeftXDown + (paragraph.indentLeftPt ?? 0);
79
80
  const paragraphWidthPt = Math.max(0, cellWidthPt - (paragraph.indentLeftPt ?? 0));
80
- const lines = (0, pdf_codec.wrapRunsToWidth)(effectiveRuns, measurer, paragraphWidthPt);
81
+ const lines = require_layout_text_layout.wrapRunsToWidth(effectiveRuns, measurer, paragraphWidthPt);
81
82
  lines.forEach((line, lineIndex) => {
82
83
  const lineHeightPt = require_layout_shared.lineNaturalHeightPt(line, measurer, fallbackRun) * (paragraph.lineSpacing ?? 1);
83
84
  const baselineYDown = cursorYDown + line.ascentPt;
@@ -1,9 +1,10 @@
1
1
  import { flipY } from "../model/geometry.js";
2
2
  import { formulaOfBlock, formulaPlaceholderText } from "../model/formula.js";
3
3
  import { layoutFormula } from "../mathml/layout.js";
4
+ import { wrapRunsToWidth } from "./text-layout.js";
4
5
  import { alignmentOffsetPt, effectiveStyledRuns, estimateRowHeightPt, formulaSizePtForFrame, justifyLineGapsPt, lineNaturalHeightPt, pushCellBorderLines, registerImage, sumColumnWidthsPt } from "./shared.js";
5
6
  import { COLOR_BLACK, LAYOUT_FORMAT_VERSION } from "document-schema.js";
6
- import { loadMathFont, wrapRunsToWidth } from "pdf-codec";
7
+ import { loadMathFont } from "pdf-codec";
7
8
  //#region src/layout/engine.ts
8
9
  function newFlowState(section) {
9
10
  return {
@@ -1,5 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_mathml_layout = require("../mathml/layout.cjs");
3
+ const require_layout_text_layout = require("./text-layout.cjs");
3
4
  let ooxml_js = require("ooxml.js");
4
5
  let pdf_codec = require("pdf-codec");
5
6
  let document_schema_js = require("document-schema.js");
@@ -150,7 +151,7 @@ function estimateRowHeightPt(row, measurer, columnWidthsPt, scale) {
150
151
  for (const block of cell.blocks) {
151
152
  if (block.kind !== "paragraph") continue;
152
153
  const runs = effectiveStyledRuns(block.runs);
153
- const lines = (0, pdf_codec.wrapRunsToWidth)(runs, measurer, cellWidthPt);
154
+ const lines = require_layout_text_layout.wrapRunsToWidth(runs, measurer, cellWidthPt);
154
155
  for (const line of lines) max = Math.max(max, lineNaturalHeightPt(line, measurer, runs[0]));
155
156
  }
156
157
  colIndex += span;
@@ -1,8 +1,9 @@
1
1
  import { COLOR_BLACK } from "../model/color.js";
2
2
  import { DEFAULT_LAYOUT_FONT } from "../model/style.js";
3
3
  import { layoutFormula } from "../mathml/layout.js";
4
+ import { wrapRunsToWidth } from "./text-layout.js";
4
5
  import { base64ToBytes } from "ooxml.js";
5
- import { crc32, decodePng, loadMathFont, readJpegInfo, wrapRunsToWidth } from "pdf-codec";
6
+ import { crc32, decodePng, loadMathFont, readJpegInfo } from "pdf-codec";
6
7
  //#region src/layout/shared.ts
7
8
  const NOMINAL_TEXT_SIZE_PT = 18;
8
9
  const MIN_FORMULA_SIZE_PT = 8;
@@ -1,6 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_model_geometry = require("../model/geometry.cjs");
3
3
  const require_mathml_layout = require("../mathml/layout.cjs");
4
+ const require_layout_text_layout = require("./text-layout.cjs");
4
5
  const require_layout_shared = require("./shared.cjs");
5
6
  const require_ports_abort = require("../ports/abort.cjs");
6
7
  let document_schema_js = require("document-schema.js");
@@ -252,7 +253,7 @@ function renderCellText(cell, frameYDown, rowCells, columnAxis, pageHeightPt, me
252
253
  const alignment = cell.alignment ?? defaultAlignmentForValue(cell.value.kind);
253
254
  const numericLike = isNumericLikeValue(cell.value.kind);
254
255
  const styledRuns = cellStyledRuns(cell);
255
- const lines = (0, pdf_codec.wrapRunsToWidth)(styledRuns, measurer, Number.POSITIVE_INFINITY);
256
+ const lines = require_layout_text_layout.wrapRunsToWidth(styledRuns, measurer, Number.POSITIVE_INFINITY);
256
257
  const naturalLine = lines[0];
257
258
  let availableWidthPt = Math.max(0, ownWidthPt - 4);
258
259
  let fragments = naturalLine.fragments;
@@ -267,7 +268,7 @@ function renderCellText(cell, frameYDown, rowCells, columnAxis, pageHeightPt, me
267
268
  sizePt: styledRuns[0].sizePt,
268
269
  color: styledRuns[0].color
269
270
  }];
270
- const overflowLine = (0, pdf_codec.wrapRunsToWidth)(overflowRuns, measurer, Number.POSITIVE_INFINITY)[0];
271
+ const overflowLine = require_layout_text_layout.wrapRunsToWidth(overflowRuns, measurer, Number.POSITIVE_INFINITY)[0];
271
272
  fragments = overflowLine.fragments;
272
273
  lineWidthPt = overflowLine.widthPt;
273
274
  } else if (cell.value.kind === "string") {