js.documents 1.91.4 → 1.91.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/edit/geometry.d.cts +1 -1
- package/dist/edit/geometry.d.ts +1 -1
- package/dist/edit/markdown/editor.d.cts +1 -1
- package/dist/edit/markdown/editor.d.ts +1 -1
- package/dist/edit/odg/editor.d.cts +1 -1
- package/dist/edit/odg/editor.d.ts +1 -1
- package/dist/edit/odg/page.d.cts +2 -2
- package/dist/edit/odg/page.d.ts +2 -2
- package/dist/edit/odp/editor.d.cts +1 -1
- package/dist/edit/odp/editor.d.ts +1 -1
- package/dist/edit/odp/image.d.cts +1 -1
- package/dist/edit/odp/image.d.ts +1 -1
- package/dist/edit/odp/shape.d.cts +1 -1
- package/dist/edit/odp/shape.d.ts +1 -1
- package/dist/edit/odp/slide.d.cts +4 -4
- package/dist/edit/odp/slide.d.ts +4 -4
- package/dist/edit/odt/content.d.cts +2 -2
- package/dist/edit/odt/content.d.ts +2 -2
- package/dist/edit/odt/editor.d.cts +4 -4
- package/dist/edit/odt/editor.d.ts +4 -4
- package/dist/edit/odt/formula.d.cts +1 -1
- package/dist/edit/odt/formula.d.ts +1 -1
- package/dist/edit/odt/image.d.cts +1 -1
- package/dist/edit/odt/image.d.ts +1 -1
- package/dist/edit/odt/list.d.cts +1 -1
- package/dist/edit/odt/list.d.ts +1 -1
- package/dist/edit/odt/paragraph.d.cts +1 -1
- package/dist/edit/odt/paragraph.d.ts +1 -1
- package/dist/edit/odt/table.d.cts +1 -1
- package/dist/edit/odt/table.d.ts +1 -1
- package/dist/edit/pptx/editor.d.cts +1 -1
- package/dist/edit/pptx/editor.d.ts +1 -1
- package/dist/edit/pptx/image.d.cts +1 -1
- package/dist/edit/pptx/image.d.ts +1 -1
- package/dist/edit/pptx/shape.d.cts +1 -1
- package/dist/edit/pptx/shape.d.ts +1 -1
- package/dist/edit/pptx/slide.d.cts +4 -4
- package/dist/edit/pptx/slide.d.ts +4 -4
- package/dist/edit/pptx/table.d.cts +1 -1
- package/dist/edit/pptx/table.d.ts +1 -1
- package/dist/geometry-DUF273hM.d.cts +6 -0
- package/dist/geometry-DUF273hM.d.ts +6 -0
- package/dist/{image-DwrOnL_Z.d.ts → image-BFn8Rm6P.d.ts} +1 -1
- package/dist/{image-Cs8xF753.d.ts → image-BgN3j3ly.d.ts} +1 -1
- package/dist/{image-M5SezZVI.d.cts → image-C6lKT9ZH.d.cts} +1 -1
- package/dist/{image-DHcA9kaK.d.ts → image-CNuBLN5L.d.ts} +1 -1
- package/dist/{image-7snmKIxn.d.cts → image-DK0YCpYO.d.cts} +1 -1
- package/dist/{image-m_rfpuY8.d.cts → image-K3MAhLJc.d.cts} +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/layout/drawing.cjs +1 -2
- package/dist/layout/drawing.js +1 -2
- package/dist/layout/engine.cjs +3 -2
- package/dist/layout/engine.js +2 -1
- package/dist/layout/shared.cjs +2 -1
- package/dist/layout/shared.js +2 -1
- package/dist/layout/sheets.cjs +3 -2
- package/dist/layout/sheets.js +2 -1
- package/dist/layout/slides.cjs +3 -2
- package/dist/layout/slides.js +3 -2
- package/dist/layout/text-layout.cjs +215 -0
- package/dist/layout/text-layout.d.cts +5 -0
- package/dist/layout/text-layout.d.ts +5 -0
- package/dist/layout/text-layout.js +214 -0
- package/dist/{list-4lN_90Pt.d.ts → list-CSIIzXAV.d.ts} +1 -1
- package/dist/{list-fKlr6jWd.d.cts → list-MCxkKpI7.d.cts} +1 -1
- package/dist/model/geometry.cjs +12 -0
- package/dist/model/geometry.d.cts +2 -2
- package/dist/model/geometry.d.ts +2 -2
- package/dist/model/geometry.js +12 -1
- package/dist/odf/formula/detect.d.cts +1 -1
- package/dist/odf/formula/detect.d.ts +1 -1
- package/dist/odf/shared/flow-anchor.d.cts +1 -1
- package/dist/odf/shared/flow-anchor.d.ts +1 -1
- package/dist/{paragraph-Bz20facN.d.ts → paragraph--0f7PjzJ.d.ts} +1 -1
- package/dist/{paragraph-BlN-ErQS.d.cts → paragraph-D7324S0j.d.cts} +1 -1
- package/dist/{shape-lA-bEGqk.d.cts → shape-B0yAqgxZ.d.cts} +3 -3
- package/dist/{shape-C3NECkae.d.ts → shape-CnYhKn5U.d.ts} +1 -1
- package/dist/{shape-CoiqTTA-.d.cts → shape-De9583Kz.d.cts} +1 -1
- package/dist/{shape-DFO5259y.d.ts → shape-tOOiQ2UZ.d.ts} +3 -3
- package/dist/{table-BRXbauz6.d.ts → table-DUM0vvIO.d.ts} +1 -1
- package/dist/{table-DV-Glhx_.d.ts → table-ce9uQfqn.d.ts} +2 -2
- package/dist/{table-CjUjLcsE.d.cts → table-fnUiKudF.d.cts} +2 -2
- package/dist/{table-CNrk1jGM.d.cts → table-u6fXNuDO.d.cts} +1 -1
- package/package.json +2 -2
- package/dist/geometry-DaJr8yQW.d.cts +0 -5
- package/dist/geometry-DaJr8yQW.d.ts +0 -5
package/dist/edit/geometry.d.cts
CHANGED
package/dist/edit/geometry.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ClockPort } from "../../ports/clock.cjs";
|
|
2
|
-
import { r as Margins, s as PageSize$1 } from "../../geometry-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
package/dist/edit/odg/page.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ImageInit } from "../../image-
|
|
2
|
-
import { t as OdpShape } from "../../shape-
|
|
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";
|
package/dist/edit/odg/page.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ImageInit } from "../../image-
|
|
2
|
-
import { t as OdpShape } from "../../shape-
|
|
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-
|
|
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-
|
|
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-
|
|
1
|
+
import { n as MediaContext, r as insertImageFrameMedia, t as ImageInit } from "../../image-C6lKT9ZH.cjs";
|
|
2
2
|
export { ImageInit, MediaContext, insertImageFrameMedia };
|
package/dist/edit/odp/image.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as MediaContext, r as insertImageFrameMedia, t as ImageInit } from "../../image-
|
|
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-
|
|
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 };
|
package/dist/edit/odp/shape.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as buildTextBoxFrame, n as buildImageFrame, r as buildTableFrame, t as OdpShape } from "../../shape-
|
|
1
|
+
import { i as buildTextBoxFrame, n as buildImageFrame, r as buildTableFrame, t as OdpShape } from "../../shape-tOOiQ2UZ.js";
|
|
2
2
|
export { OdpShape, buildImageFrame, buildTableFrame, buildTextBoxFrame };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as Box$1 } from "../../geometry-
|
|
2
|
-
import { t as ImageInit } from "../../image-
|
|
3
|
-
import { t as OdpShape } from "../../shape-
|
|
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-
|
|
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
|
package/dist/edit/odp/slide.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as Box$1 } from "../../geometry-
|
|
2
|
-
import { t as ImageInit } from "../../image-
|
|
3
|
-
import { t as OdpShape } from "../../shape-
|
|
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-
|
|
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-
|
|
3
|
-
import { n as OdtTable } from "../../table-
|
|
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
|
|
3
|
-
import { n as OdtTable } from "../../table-
|
|
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-
|
|
3
|
-
import { n as ParagraphInit, t as OdtParagraph } from "../../paragraph-
|
|
4
|
-
import { t as OdtList } from "../../list-
|
|
5
|
-
import { a as TableInit, n as OdtTable } from "../../table-
|
|
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-
|
|
3
|
-
import { n as ParagraphInit, t as OdtParagraph } from "../../paragraph
|
|
4
|
-
import { t as OdtList } from "../../list-
|
|
5
|
-
import { a as TableInit, n as OdtTable } from "../../table-
|
|
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,2 +1,2 @@
|
|
|
1
|
-
import { n as buildImageFrame, r as insertImageFrameMedia, t as ImageInit } from "../../image-
|
|
1
|
+
import { n as buildImageFrame, r as insertImageFrameMedia, t as ImageInit } from "../../image-K3MAhLJc.cjs";
|
|
2
2
|
export { ImageInit, buildImageFrame, insertImageFrameMedia };
|
package/dist/edit/odt/image.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as buildImageFrame, r as insertImageFrameMedia, t as ImageInit } from "../../image-
|
|
1
|
+
import { n as buildImageFrame, r as insertImageFrameMedia, t as ImageInit } from "../../image-BFn8Rm6P.js";
|
|
2
2
|
export { ImageInit, buildImageFrame, insertImageFrameMedia };
|
package/dist/edit/odt/list.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as OdtListItem, r as buildList, t as OdtList } from "../../list-
|
|
1
|
+
import { n as OdtListItem, r as buildList, t as OdtList } from "../../list-MCxkKpI7.cjs";
|
|
2
2
|
export { OdtList, OdtListItem, buildList };
|
package/dist/edit/odt/list.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as OdtListItem, r as buildList, t as OdtList } from "../../list-
|
|
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-
|
|
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
|
|
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-
|
|
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 };
|
package/dist/edit/odt/table.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
2
|
-
import { t as ImageInit } from "../../image-
|
|
3
|
-
import { r as PptxShape } from "../../shape-
|
|
4
|
-
import { r as PptxTableInit, t as PptxTable } from "../../table-
|
|
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-
|
|
2
|
-
import { t as ImageInit } from "../../image-
|
|
3
|
-
import { r as PptxShape } from "../../shape-
|
|
4
|
-
import { r as PptxTableInit, t as PptxTable } from "../../table-
|
|
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-
|
|
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-
|
|
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 };
|
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
|
|
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-
|
|
31
|
-
import { n as OdtListItem, t as OdtList } from "./list-
|
|
32
|
-
import { t as OdpShape } from "./shape-
|
|
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-
|
|
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-
|
|
55
|
-
import { i as PptxTableRow, n as PptxTableCell, r as PptxTableInit, t as PptxTable } from "./table-
|
|
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
|
|
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
|
|
31
|
-
import { n as OdtListItem, t as OdtList } from "./list-
|
|
32
|
-
import { t as OdpShape } from "./shape-
|
|
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-
|
|
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-
|
|
55
|
-
import { i as PptxTableRow, n as PptxTableCell, r as PptxTableInit, t as PptxTable } from "./table-
|
|
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";
|
package/dist/layout/drawing.cjs
CHANGED
|
@@ -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) =>
|
|
19
|
+
return (point) => require_model_geometry.rotatePointAboutCenter(point, center, ccwDeg);
|
|
21
20
|
}
|
|
22
21
|
function boxCorners(box) {
|
|
23
22
|
return [
|
package/dist/layout/drawing.js
CHANGED
|
@@ -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;
|
package/dist/layout/engine.cjs
CHANGED
|
@@ -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 =
|
|
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 =
|
|
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;
|
package/dist/layout/engine.js
CHANGED
|
@@ -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
|
|
7
|
+
import { loadMathFont } from "pdf-codec";
|
|
7
8
|
//#region src/layout/engine.ts
|
|
8
9
|
function newFlowState(section) {
|
|
9
10
|
return {
|
package/dist/layout/shared.cjs
CHANGED
|
@@ -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 =
|
|
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;
|
package/dist/layout/shared.js
CHANGED
|
@@ -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
|
|
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;
|
package/dist/layout/sheets.cjs
CHANGED
|
@@ -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 =
|
|
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 =
|
|
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") {
|