js.documents 1.91.3 → 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 (123) hide show
  1. package/dist/convert/convert.d.cts +2 -2
  2. package/dist/convert/convert.d.ts +1 -1
  3. package/dist/convert/document-fonts.d.cts +1 -1
  4. package/dist/convert/document-fonts.d.ts +1 -1
  5. package/dist/convert/port.d.cts +1 -2
  6. package/dist/convert/port.d.ts +1 -2
  7. package/dist/edit/geometry.d.cts +1 -1
  8. package/dist/edit/geometry.d.ts +1 -1
  9. package/dist/edit/markdown/editor.d.cts +1 -1
  10. package/dist/edit/markdown/editor.d.ts +1 -1
  11. package/dist/edit/odg/editor.d.cts +1 -1
  12. package/dist/edit/odg/editor.d.ts +1 -1
  13. package/dist/edit/odg/page.d.cts +2 -2
  14. package/dist/edit/odg/page.d.ts +2 -2
  15. package/dist/edit/odp/editor.d.cts +1 -1
  16. package/dist/edit/odp/editor.d.ts +1 -1
  17. package/dist/edit/odp/image.d.cts +1 -1
  18. package/dist/edit/odp/image.d.ts +1 -1
  19. package/dist/edit/odp/shape.d.cts +1 -1
  20. package/dist/edit/odp/shape.d.ts +1 -1
  21. package/dist/edit/odp/slide.d.cts +4 -4
  22. package/dist/edit/odp/slide.d.ts +4 -4
  23. package/dist/edit/odt/content.d.cts +2 -2
  24. package/dist/edit/odt/content.d.ts +2 -2
  25. package/dist/edit/odt/editor.d.cts +4 -4
  26. package/dist/edit/odt/editor.d.ts +4 -4
  27. package/dist/edit/odt/formula.d.cts +1 -1
  28. package/dist/edit/odt/formula.d.ts +1 -1
  29. package/dist/edit/odt/image.d.cts +1 -1
  30. package/dist/edit/odt/image.d.ts +1 -1
  31. package/dist/edit/odt/list.d.cts +1 -1
  32. package/dist/edit/odt/list.d.ts +1 -1
  33. package/dist/edit/odt/paragraph.d.cts +1 -1
  34. package/dist/edit/odt/paragraph.d.ts +1 -1
  35. package/dist/edit/odt/table.d.cts +1 -1
  36. package/dist/edit/odt/table.d.ts +1 -1
  37. package/dist/edit/pptx/editor.d.cts +1 -1
  38. package/dist/edit/pptx/editor.d.ts +1 -1
  39. package/dist/edit/pptx/image.d.cts +1 -1
  40. package/dist/edit/pptx/image.d.ts +1 -1
  41. package/dist/edit/pptx/shape.d.cts +1 -1
  42. package/dist/edit/pptx/shape.d.ts +1 -1
  43. package/dist/edit/pptx/slide.d.cts +4 -4
  44. package/dist/edit/pptx/slide.d.ts +4 -4
  45. package/dist/edit/pptx/table.d.cts +1 -1
  46. package/dist/edit/pptx/table.d.ts +1 -1
  47. package/dist/fonts/odf.d.cts +1 -1
  48. package/dist/fonts/odf.d.ts +1 -1
  49. package/dist/fonts/ooxml.d.cts +1 -1
  50. package/dist/fonts/ooxml.d.ts +1 -1
  51. package/dist/fonts/registry.d.cts +1 -1
  52. package/dist/fonts/registry.d.ts +1 -1
  53. package/dist/geometry-DUF273hM.d.cts +6 -0
  54. package/dist/geometry-DUF273hM.d.ts +6 -0
  55. package/dist/{image-DwrOnL_Z.d.ts → image-BFn8Rm6P.d.ts} +1 -1
  56. package/dist/{image-Cs8xF753.d.ts → image-BgN3j3ly.d.ts} +1 -1
  57. package/dist/{image-M5SezZVI.d.cts → image-C6lKT9ZH.d.cts} +1 -1
  58. package/dist/{image-DHcA9kaK.d.ts → image-CNuBLN5L.d.ts} +1 -1
  59. package/dist/{image-7snmKIxn.d.cts → image-DK0YCpYO.d.cts} +1 -1
  60. package/dist/{image-m_rfpuY8.d.cts → image-K3MAhLJc.d.cts} +1 -1
  61. package/dist/index.d.cts +11 -12
  62. package/dist/index.d.ts +11 -12
  63. package/dist/layout/drawing.cjs +1 -2
  64. package/dist/layout/drawing.d.cts +1 -2
  65. package/dist/layout/drawing.d.ts +1 -2
  66. package/dist/layout/drawing.js +1 -2
  67. package/dist/layout/engine.cjs +3 -2
  68. package/dist/layout/engine.d.cts +1 -2
  69. package/dist/layout/engine.d.ts +1 -2
  70. package/dist/layout/engine.js +2 -1
  71. package/dist/layout/shared.cjs +2 -1
  72. package/dist/layout/shared.d.cts +1 -2
  73. package/dist/layout/shared.d.ts +1 -2
  74. package/dist/layout/shared.js +2 -1
  75. package/dist/layout/sheets.cjs +3 -2
  76. package/dist/layout/sheets.d.cts +1 -2
  77. package/dist/layout/sheets.d.ts +1 -2
  78. package/dist/layout/sheets.js +2 -1
  79. package/dist/layout/slides.cjs +3 -2
  80. package/dist/layout/slides.d.cts +1 -2
  81. package/dist/layout/slides.d.ts +1 -2
  82. package/dist/layout/slides.js +3 -2
  83. package/dist/layout/text-layout.cjs +215 -0
  84. package/dist/layout/text-layout.d.cts +5 -0
  85. package/dist/layout/text-layout.d.ts +5 -0
  86. package/dist/layout/text-layout.js +214 -0
  87. package/dist/{list-4lN_90Pt.d.ts → list-CSIIzXAV.d.ts} +1 -1
  88. package/dist/{list-fKlr6jWd.d.cts → list-MCxkKpI7.d.cts} +1 -1
  89. package/dist/mathml/compose.d.cts +1 -1
  90. package/dist/mathml/compose.d.ts +1 -1
  91. package/dist/mathml/layout-types.d.cts +2 -51
  92. package/dist/mathml/layout-types.d.ts +2 -51
  93. package/dist/mathml/layout.d.cts +5 -5
  94. package/dist/mathml/layout.d.ts +5 -5
  95. package/dist/mathml/radical.d.cts +1 -1
  96. package/dist/mathml/radical.d.ts +1 -1
  97. package/dist/model/geometry.cjs +12 -0
  98. package/dist/model/geometry.d.cts +2 -2
  99. package/dist/model/geometry.d.ts +2 -2
  100. package/dist/model/geometry.js +12 -1
  101. package/dist/odf/formula/detect.d.cts +1 -1
  102. package/dist/odf/formula/detect.d.ts +1 -1
  103. package/dist/odf/shared/flow-anchor.d.cts +1 -1
  104. package/dist/odf/shared/flow-anchor.d.ts +1 -1
  105. package/dist/{paragraph-Bz20facN.d.ts → paragraph--0f7PjzJ.d.ts} +1 -1
  106. package/dist/{paragraph-BlN-ErQS.d.cts → paragraph-D7324S0j.d.cts} +1 -1
  107. package/dist/{registry-CrSqLIcn.d.ts → registry-DpF4A9EM.d.ts} +2 -1
  108. package/dist/{registry-CeZB1W_p.d.cts → registry-ZAWlWHqJ.d.cts} +2 -1
  109. package/dist/{shape-lA-bEGqk.d.cts → shape-B0yAqgxZ.d.cts} +3 -3
  110. package/dist/{shape-C3NECkae.d.ts → shape-CnYhKn5U.d.ts} +1 -1
  111. package/dist/{shape-CoiqTTA-.d.cts → shape-De9583Kz.d.cts} +1 -1
  112. package/dist/{shape-DFO5259y.d.ts → shape-tOOiQ2UZ.d.ts} +3 -3
  113. package/dist/{table-BRXbauz6.d.ts → table-DUM0vvIO.d.ts} +1 -1
  114. package/dist/{table-DV-Glhx_.d.ts → table-ce9uQfqn.d.ts} +2 -2
  115. package/dist/{table-CjUjLcsE.d.cts → table-fnUiKudF.d.cts} +2 -2
  116. package/dist/{table-CNrk1jGM.d.cts → table-u6fXNuDO.d.cts} +1 -1
  117. package/package.json +1 -1
  118. package/dist/geometry-DaJr8yQW.d.cts +0 -5
  119. package/dist/geometry-DaJr8yQW.d.ts +0 -5
  120. package/dist/mathml/metrics.cjs +0 -0
  121. package/dist/mathml/metrics.d.cts +0 -60
  122. package/dist/mathml/metrics.d.ts +0 -60
  123. package/dist/mathml/metrics.js +0 -0
package/dist/index.d.cts CHANGED
@@ -2,7 +2,7 @@ import { ConversionOptions, ConversionRequest, ConversionResult, DOCUMENT_FORMAT
2
2
  import { n as HsqldbDecodeOptions, r as HsqldbRowFormatError } from "./rowformat-Cl2exlEh.cjs";
3
3
  import { i as mapMathVariant, n as applyMathVariant, r as isMathVariant, t as MathVariant } from "./variant-BMrebjMw.cjs";
4
4
  import { n as OmmlDiagnosticKind, t as OmmlDiagnostic } from "./shared-DLZ3IQUl.cjs";
5
- import { i as extractSourceFonts, n as FontSourcePackage, r as createDocumentFontRegistry, t as DocumentFontRegistryOptions } from "./registry-CeZB1W_p.cjs";
5
+ import { i as extractSourceFonts, n as FontSourcePackage, r as createDocumentFontRegistry, t as DocumentFontRegistryOptions } from "./registry-ZAWlWHqJ.cjs";
6
6
  import { DocumentBridgeOptions, DocumentToPdfOptions, OdbConversionOptions, OdbReportToDocxOptions, OdbReportToOdtOptions, OdbToCsvOptions, OdmToPdfOptions, OdmUnresolvedSectionError, PdfToDocumentOptions, docxToMarkdown, docxToOdt, docxToPdf, markdownToDocx, markdownToOdt, markdownToPdf, odbReportToDocx, odbReportToOdt, odbReportToPdf, odbToCsv, odbToXlsx, odfToPdf, odgToPdf, odmToPdf, odpToPdf, odpToPptx, odsToPdf, odsToXlsx, odtToDocx, odtToMarkdown, odtToPdf, pdfToDocx, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPptx, pdfToXlsx, pptxToOdp, pptxToPdf, xlsxToOds, xlsxToPdf } from "./convert/convert.cjs";
7
7
  import { docxPdfCodec, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, odgPdfCodec, odpPdfCodec, odpPptxCodec, odsPdfCodec, odsXlsxCodec, odtDocxCodec, odtPdfCodec, pptxPdfCodec, xlsxPdfCodec } from "./convert/codec.cjs";
8
8
  import { UnsupportedFontSourceFormatError, extractSourceFontsForFormat } from "./convert/document-fonts.cjs";
@@ -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";
@@ -68,8 +68,7 @@ import { OoxmlEmbeddedFontError, extractOoxmlEmbeddedFonts } from "./fonts/ooxml
68
68
  import { HsqldbBinaryScript, HsqldbBinaryScriptParseError, inflateHsqldbCompressedScript, parseHsqldbBinaryScript } from "./hsqldb/binary-script.cjs";
69
69
  import { decodeHsqldbCachedTables } from "./hsqldb/cache.cjs";
70
70
  import { DocxBytesSchema, MarkdownBytesSchema, OdgBytesSchema, OdpBytesSchema, OdsBytesSchema, OdtBytesSchema, PdfBytesSchema, PptxBytesSchema, XlsxBytesSchema } from "./model/bytes.cjs";
71
- import { MathAssembledGlyphs, MathBox, MathColor, MathDiagnostic, MathDiagnosticKind, MathGlyphPlacement, MathGlyphRun, MathLayoutItem, MathLayoutResult, MathRule, MathStroke } from "./mathml/layout-types.cjs";
72
- import { MathFontMetrics, MathGlyphMetrics, MathStretchAxis, MathStretchGlyph, MathStretchResult } from "./mathml/metrics.cjs";
71
+ import { MathDiagnostic, MathDiagnosticKind, MathLayoutResult } from "./mathml/layout-types.cjs";
73
72
  import { LayoutFormulaOptions, layoutFormula } from "./mathml/layout.cjs";
74
73
  import { OperatorProperties, operatorProperties } from "./mathml/operators.cjs";
75
74
  import { OmmlReadResult, collectOfficeMathElements, readOfficeMath } from "./omml/read.cjs";
@@ -113,8 +112,8 @@ import { UnsupportedPackageFormatError, decodeDocumentPackage, decodeOdbPackage,
113
112
  import { ReadDocumentMetadataOptions, readDocumentMetadata } from "./metadata/read.cjs";
114
113
  import { MetadataOverrides, SetDocumentMetadataOptions, setDocumentMetadata } from "./metadata/write.cjs";
115
114
  import { throwIfAborted } from "./ports/abort.cjs";
116
- import { CONTENT_FORMAT_VERSION, 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, LAYOUT_FORMAT_VERSION, LayoutDocument, LayoutDocumentJson, LayoutDocumentSchema, LayoutEllipse, LayoutImage, LayoutImageAsset, LayoutItem, LayoutLine, LayoutLink, LayoutMetadata, LayoutPage, LayoutPath, LayoutPathSegment, LayoutRect, LayoutSubpath, LayoutText, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, isContentBlock, layoutDocumentWithSchema, schemaUriFor } from "document-schema.js";
117
- import { FontRegistry, FontRegistryOptions, FontSubstitution, LoadedMathFont, MathFont, MathFontDescriptorMetrics, NOOP_DIAGNOSTIC_SINK, PdfDiagnostic, PdfDiagnosticSeverity, PdfDiagnosticSink, PdfEncryptedError, PdfParseError, PositionedFormula, ProvidedFont, ReadPdfOptions, ResolvedFace, WinAnsiSubstitution, WritePdfOptions, createFontMeasurer, createFontRegistry, createStandardFontMeasurer, loadMathFont, pdfCodec, readPdf, writePdf } from "pdf-codec";
115
+ import { CONTENT_FORMAT_VERSION, 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, 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, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, isContentBlock, layoutDocumentWithSchema, schemaUriFor } from "document-schema.js";
118
116
  import { OdbComponentInfo, OdbConnectionInfo, OdbForm, OdbFormControl, OdbFormDefinition, OdbInventory, OdbQueryInfo, OdbReport, OdbReportBand, OdbReportElement, OdbReportFunction, OdbReportGroup, readOdbForm, readOdbInventory, readOdbReport, resolveOdbComponent } from "odf.js";
117
+ import { FontRegistry, FontRegistryOptions, FontSubstitution, LoadedMathFont, MathFont, MathFontDescriptorMetrics, NOOP_DIAGNOSTIC_SINK, PdfDiagnostic, PdfDiagnosticSeverity, PdfDiagnosticSink, PdfEncryptedError, PdfParseError, ProvidedFont, ReadPdfOptions, ResolvedFace, WinAnsiSubstitution, WritePdfOptions, createFontMeasurer, createFontRegistry, createStandardFontMeasurer, loadMathFont, pdfCodec, readPdf, writePdf } from "pdf-codec";
119
118
  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";
120
119
  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 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 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, childrenWithTag, collectOfficeMathElements, 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, detectGridLattice, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, docxPdfCodec, docxToMarkdown, docxToOdt, docxToPdf, 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, textContent as mathMlTextContent, odbReportCommandSql, odbReportGroupChain, odbReportToDocx, odbReportToOdt, odbReportToPdf, odbTablesToSpreadsheetDocument, odbToCsv, odbToXlsx, odfToPdf, odgPdfCodec, odgToPdf, odmToPdf, odpPdfCodec, odpPptxCodec, odpToPdf, odpToPptx, odsPdfCodec, odsToPdf, odsToXlsx, odsXlsxCodec, odtDocxCodec, odtPdfCodec, odtToDocx, odtToMarkdown, odtToPdf, openDocx, openMarkdown, openOdg, openOdp, openOds, openOdt, openPdf, openPptx, operatorProperties, packageCodec, parseHsqldbBinaryScript, parseHsqldbScript, parsePackage, parseRptFormula, parseSelect, parseXml, pdfCodec, pdfToDocx, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPptx, pdfToXlsx, pptxPdfCodec, pptxToOdp, pptxToPdf, 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, xlsxPdfCodec, xlsxToOds, xlsxToPdf, xmlCodec, zipPackage };
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { ConversionOptions, ConversionRequest, ConversionResult, DOCUMENT_FORMAT
2
2
  import { n as HsqldbDecodeOptions, r as HsqldbRowFormatError } from "./rowformat-Cl2exlEh.js";
3
3
  import { i as mapMathVariant, n as applyMathVariant, r as isMathVariant, t as MathVariant } from "./variant-BMrebjMw.js";
4
4
  import { n as OmmlDiagnosticKind, t as OmmlDiagnostic } from "./shared-DUOzjwcL.js";
5
- import { i as extractSourceFonts, n as FontSourcePackage, r as createDocumentFontRegistry, t as DocumentFontRegistryOptions } from "./registry-CrSqLIcn.js";
5
+ import { i as extractSourceFonts, n as FontSourcePackage, r as createDocumentFontRegistry, t as DocumentFontRegistryOptions } from "./registry-DpF4A9EM.js";
6
6
  import { DocumentBridgeOptions, DocumentToPdfOptions, OdbConversionOptions, OdbReportToDocxOptions, OdbReportToOdtOptions, OdbToCsvOptions, OdmToPdfOptions, OdmUnresolvedSectionError, PdfToDocumentOptions, docxToMarkdown, docxToOdt, docxToPdf, markdownToDocx, markdownToOdt, markdownToPdf, odbReportToDocx, odbReportToOdt, odbReportToPdf, odbToCsv, odbToXlsx, odfToPdf, odgToPdf, odmToPdf, odpToPdf, odpToPptx, odsToPdf, odsToXlsx, odtToDocx, odtToMarkdown, odtToPdf, pdfToDocx, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPptx, pdfToXlsx, pptxToOdp, pptxToPdf, xlsxToOds, xlsxToPdf } from "./convert/convert.js";
7
7
  import { docxPdfCodec, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, odgPdfCodec, odpPdfCodec, odpPptxCodec, odsPdfCodec, odsXlsxCodec, odtDocxCodec, odtPdfCodec, pptxPdfCodec, xlsxPdfCodec } from "./convert/codec.js";
8
8
  import { UnsupportedFontSourceFormatError, extractSourceFontsForFormat } from "./convert/document-fonts.js";
@@ -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";
@@ -68,8 +68,7 @@ import { OoxmlEmbeddedFontError, extractOoxmlEmbeddedFonts } from "./fonts/ooxml
68
68
  import { HsqldbBinaryScript, HsqldbBinaryScriptParseError, inflateHsqldbCompressedScript, parseHsqldbBinaryScript } from "./hsqldb/binary-script.js";
69
69
  import { decodeHsqldbCachedTables } from "./hsqldb/cache.js";
70
70
  import { DocxBytesSchema, MarkdownBytesSchema, OdgBytesSchema, OdpBytesSchema, OdsBytesSchema, OdtBytesSchema, PdfBytesSchema, PptxBytesSchema, XlsxBytesSchema } from "./model/bytes.js";
71
- import { MathAssembledGlyphs, MathBox, MathColor, MathDiagnostic, MathDiagnosticKind, MathGlyphPlacement, MathGlyphRun, MathLayoutItem, MathLayoutResult, MathRule, MathStroke } from "./mathml/layout-types.js";
72
- import { MathFontMetrics, MathGlyphMetrics, MathStretchAxis, MathStretchGlyph, MathStretchResult } from "./mathml/metrics.js";
71
+ import { MathDiagnostic, MathDiagnosticKind, MathLayoutResult } from "./mathml/layout-types.js";
73
72
  import { LayoutFormulaOptions, layoutFormula } from "./mathml/layout.js";
74
73
  import { OperatorProperties, operatorProperties } from "./mathml/operators.js";
75
74
  import { OmmlReadResult, collectOfficeMathElements, readOfficeMath } from "./omml/read.js";
@@ -114,7 +113,7 @@ import { ReadDocumentMetadataOptions, readDocumentMetadata } from "./metadata/re
114
113
  import { MetadataOverrides, SetDocumentMetadataOptions, setDocumentMetadata } from "./metadata/write.js";
115
114
  import { throwIfAborted } from "./ports/abort.js";
116
115
  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";
117
- import { CONTENT_FORMAT_VERSION, 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, LAYOUT_FORMAT_VERSION, LayoutDocument, LayoutDocumentJson, LayoutDocumentSchema, LayoutEllipse, LayoutImage, LayoutImageAsset, LayoutItem, LayoutLine, LayoutLink, LayoutMetadata, LayoutPage, LayoutPath, LayoutPathSegment, LayoutRect, LayoutSubpath, LayoutText, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, isContentBlock, layoutDocumentWithSchema, schemaUriFor } from "document-schema.js";
116
+ import { CONTENT_FORMAT_VERSION, 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, 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, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, isContentBlock, layoutDocumentWithSchema, schemaUriFor } from "document-schema.js";
118
117
  import { OdbComponentInfo, OdbConnectionInfo, OdbForm, OdbFormControl, OdbFormDefinition, OdbInventory, OdbQueryInfo, OdbReport, OdbReportBand, OdbReportElement, OdbReportFunction, OdbReportGroup, readOdbForm, readOdbInventory, readOdbReport, resolveOdbComponent } from "odf.js";
119
- import { FontRegistry, FontRegistryOptions, FontSubstitution, LoadedMathFont, MathFont, MathFontDescriptorMetrics, NOOP_DIAGNOSTIC_SINK, PdfDiagnostic, PdfDiagnosticSeverity, PdfDiagnosticSink, PdfEncryptedError, PdfParseError, PositionedFormula, ProvidedFont, ReadPdfOptions, ResolvedFace, WinAnsiSubstitution, WritePdfOptions, createFontMeasurer, createFontRegistry, createStandardFontMeasurer, loadMathFont, pdfCodec, readPdf, writePdf } from "pdf-codec";
118
+ import { FontRegistry, FontRegistryOptions, FontSubstitution, LoadedMathFont, MathFont, MathFontDescriptorMetrics, NOOP_DIAGNOSTIC_SINK, PdfDiagnostic, PdfDiagnosticSeverity, PdfDiagnosticSink, PdfEncryptedError, PdfParseError, ProvidedFont, ReadPdfOptions, ResolvedFace, WinAnsiSubstitution, WritePdfOptions, createFontMeasurer, createFontRegistry, createStandardFontMeasurer, loadMathFont, pdfCodec, readPdf, writePdf } from "pdf-codec";
120
119
  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 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 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, childrenWithTag, collectOfficeMathElements, 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, detectGridLattice, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, docxPdfCodec, docxToMarkdown, docxToOdt, docxToPdf, 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, textContent as mathMlTextContent, odbReportCommandSql, odbReportGroupChain, odbReportToDocx, odbReportToOdt, odbReportToPdf, odbTablesToSpreadsheetDocument, odbToCsv, odbToXlsx, odfToPdf, odgPdfCodec, odgToPdf, odmToPdf, odpPdfCodec, odpPptxCodec, odpToPdf, odpToPptx, odsPdfCodec, odsToPdf, odsToXlsx, odsXlsxCodec, odtDocxCodec, odtPdfCodec, odtToDocx, odtToMarkdown, odtToPdf, openDocx, openMarkdown, openOdg, openOdp, openOds, openOdt, openPdf, openPptx, operatorProperties, packageCodec, parseHsqldbBinaryScript, parseHsqldbScript, parsePackage, parseRptFormula, parseSelect, parseXml, pdfCodec, pdfToDocx, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPptx, pdfToXlsx, pptxPdfCodec, pptxToOdp, pptxToPdf, 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, xlsxPdfCodec, xlsxToOds, xlsxToPdf, xmlCodec, zipPackage };
@@ -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,5 +1,4 @@
1
- import { ContentDocument, LayoutDocument } from "document-schema.js";
2
- import { TextMeasurer } from "pdf-codec";
1
+ import { ContentDocument, LayoutDocument, TextMeasurer } from "document-schema.js";
3
2
  //#region src/layout/drawing.d.ts
4
3
  interface DrawingLayoutOptions {
5
4
  readonly measurer: TextMeasurer;
@@ -1,5 +1,4 @@
1
- import { ContentDocument, LayoutDocument } from "document-schema.js";
2
- import { TextMeasurer } from "pdf-codec";
1
+ import { ContentDocument, LayoutDocument, TextMeasurer } from "document-schema.js";
3
2
  //#region src/layout/drawing.d.ts
4
3
  interface DrawingLayoutOptions {
5
4
  readonly measurer: TextMeasurer;
@@ -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,5 +1,4 @@
1
- import { ContentDocument, LayoutDocument } from "document-schema.js";
2
- import { PositionedFormula, TextMeasurer } from "pdf-codec";
1
+ import { ContentDocument, LayoutDocument, PositionedFormula, TextMeasurer } from "document-schema.js";
3
2
  //#region src/layout/engine.d.ts
4
3
  interface EngineLayoutOptions {
5
4
  readonly measurer: TextMeasurer;
@@ -1,5 +1,4 @@
1
- import { ContentDocument, LayoutDocument } from "document-schema.js";
2
- import { PositionedFormula, TextMeasurer } from "pdf-codec";
1
+ import { ContentDocument, LayoutDocument, PositionedFormula, TextMeasurer } from "document-schema.js";
3
2
  //#region src/layout/engine.d.ts
4
3
  interface EngineLayoutOptions {
5
4
  readonly measurer: TextMeasurer;
@@ -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,6 +1,5 @@
1
1
  import { i as LayoutFont, t as Alignment } from "../style-DkamR3aY.cjs";
2
- import { Box, ContentCellBorders, ContentImageBlock, ContentRun, ContentTableRow, LayoutImageAsset, LayoutItem, MathMlNode } from "document-schema.js";
3
- import { StyledRun, TextMeasurer, WrappedLine } from "pdf-codec";
2
+ import { Box, ContentCellBorders, ContentImageBlock, ContentRun, ContentTableRow, LayoutImageAsset, LayoutItem, MathMlNode, StyledRun, TextMeasurer, WrappedLine } from "document-schema.js";
4
3
  //#region src/layout/shared.d.ts
5
4
  declare const NOMINAL_TEXT_SIZE_PT = 18;
6
5
  declare function formulaSizePtForFrame(mathml: readonly MathMlNode[], frame: Box): number;
@@ -1,6 +1,5 @@
1
1
  import { i as LayoutFont, t as Alignment } from "../style-DkamR3aY.js";
2
- import { Box, ContentCellBorders, ContentImageBlock, ContentRun, ContentTableRow, LayoutImageAsset, LayoutItem, MathMlNode } from "document-schema.js";
3
- import { StyledRun, TextMeasurer, WrappedLine } from "pdf-codec";
2
+ import { Box, ContentCellBorders, ContentImageBlock, ContentRun, ContentTableRow, LayoutImageAsset, LayoutItem, MathMlNode, StyledRun, TextMeasurer, WrappedLine } from "document-schema.js";
4
3
  //#region src/layout/shared.d.ts
5
4
  declare const NOMINAL_TEXT_SIZE_PT = 18;
6
5
  declare function formulaSizePtForFrame(mathml: readonly MathMlNode[], frame: Box): number;
@@ -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") {
@@ -1,5 +1,4 @@
1
- import { ContentDocument, LayoutDocument } from "document-schema.js";
2
- import { PositionedFormula, TextMeasurer } from "pdf-codec";
1
+ import { ContentDocument, LayoutDocument, PositionedFormula, TextMeasurer } from "document-schema.js";
3
2
  //#region src/layout/sheets.d.ts
4
3
  interface SheetsLayoutOptions {
5
4
  readonly measurer: TextMeasurer;
@@ -1,5 +1,4 @@
1
- import { ContentDocument, LayoutDocument } from "document-schema.js";
2
- import { PositionedFormula, TextMeasurer } from "pdf-codec";
1
+ import { ContentDocument, LayoutDocument, PositionedFormula, TextMeasurer } from "document-schema.js";
3
2
  //#region src/layout/sheets.d.ts
4
3
  interface SheetsLayoutOptions {
5
4
  readonly measurer: TextMeasurer;
@@ -2,10 +2,11 @@ import { flipY } from "../model/geometry.js";
2
2
  import { COLOR_BLACK as COLOR_BLACK$1, rgbHexToColor as rgbHexToColor$1 } from "../model/color.js";
3
3
  import { DEFAULT_LAYOUT_FONT } from "../model/style.js";
4
4
  import { layoutFormula } from "../mathml/layout.js";
5
+ import { wrapRunsToWidth } from "./text-layout.js";
5
6
  import { alignmentOffsetPt, formulaSizePtForFrame, justifyLineGapsPt, lineNaturalHeightPt, pushCellBorderLines, registerImage, sumColumnWidthsPt, toStyledRuns } from "./shared.js";
6
7
  import { throwIfAborted } from "../ports/abort.js";
7
8
  import { LAYOUT_FORMAT_VERSION } from "document-schema.js";
8
- import { loadMathFont, wrapRunsToWidth } from "pdf-codec";
9
+ import { loadMathFont } from "pdf-codec";
9
10
  //#region src/layout/sheets.ts
10
11
  function anchoredFormulas(sheet) {
11
12
  const resolved = [];
@@ -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");
@@ -17,7 +18,7 @@ function shapePlacement(flippedFrame, rotationDeg) {
17
18
  y: flippedFrame.yPt + flippedFrame.heightPt / 2
18
19
  };
19
20
  return {
20
- place: (p) => (0, pdf_codec.rotatePointAboutCenter)(p, center, ccwDeg),
21
+ place: (p) => require_model_geometry.rotatePointAboutCenter(p, center, ccwDeg),
21
22
  layoutRotationDeg: ccwDeg
22
23
  };
23
24
  }
@@ -27,7 +28,7 @@ function layoutParagraph(paragraph, contentLeftXDown, contentWidthPt, startYDown
27
28
  const fallbackRun = effectiveRuns[0];
28
29
  const paragraphLeftXDown = contentLeftXDown + (paragraph.indentLeftPt ?? 0);
29
30
  const paragraphWidthPt = Math.max(0, contentWidthPt - (paragraph.indentLeftPt ?? 0));
30
- const lines = (0, pdf_codec.wrapRunsToWidth)(effectiveRuns, measurer, paragraphWidthPt);
31
+ const lines = require_layout_text_layout.wrapRunsToWidth(effectiveRuns, measurer, paragraphWidthPt);
31
32
  lines.forEach((line, lineIndex) => {
32
33
  const scaledLineHeightPt = require_layout_shared.lineNaturalHeightPt(line, measurer, fallbackRun) * (paragraph.lineSpacing ?? 1) * spacingScale;
33
34
  const baselineYDown = cursorYDown + line.ascentPt;
@@ -1,5 +1,4 @@
1
- import { ContentDocument, ContentShape, LayoutDocument, LayoutImageAsset, LayoutItem } from "document-schema.js";
2
- import { PositionedFormula, TextMeasurer } from "pdf-codec";
1
+ import { ContentDocument, ContentShape, LayoutDocument, LayoutImageAsset, LayoutItem, PositionedFormula, TextMeasurer } from "document-schema.js";
3
2
  //#region src/layout/slides.d.ts
4
3
  interface SlidesLayoutOptions {
5
4
  readonly measurer: TextMeasurer;
@@ -1,5 +1,4 @@
1
- import { ContentDocument, ContentShape, LayoutDocument, LayoutImageAsset, LayoutItem } from "document-schema.js";
2
- import { PositionedFormula, TextMeasurer } from "pdf-codec";
1
+ import { ContentDocument, ContentShape, LayoutDocument, LayoutImageAsset, LayoutItem, PositionedFormula, TextMeasurer } from "document-schema.js";
3
2
  //#region src/layout/slides.d.ts
4
3
  interface SlidesLayoutOptions {
5
4
  readonly measurer: TextMeasurer;
@@ -1,9 +1,10 @@
1
- import { flipY } from "../model/geometry.js";
1
+ import { flipY, rotatePointAboutCenter } from "../model/geometry.js";
2
2
  import { formulaOfBlock } 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, registerImage, sumColumnWidthsPt } from "./shared.js";
5
6
  import { COLOR_BLACK, LAYOUT_FORMAT_VERSION } from "document-schema.js";
6
- import { loadMathFont, rotatePointAboutCenter, wrapRunsToWidth } from "pdf-codec";
7
+ import { loadMathFont } from "pdf-codec";
7
8
  //#region src/layout/slides.ts
8
9
  function shapePlacement(flippedFrame, rotationDeg) {
9
10
  if (rotationDeg === void 0 || rotationDeg === 0) return {