js.documents 14.4.56 → 14.4.57
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/codecs/read.cjs +2 -2
- package/dist/codecs/read.js +1 -1
- package/dist/composition-plan-CfvhXeOC.cjs +627 -0
- package/dist/composition-plan-DU9nPPN7.d.cts +102 -0
- package/dist/composition-plan-f0zaExUW.js +508 -0
- package/dist/composition-plan-l6QPO4FX.d.ts +102 -0
- package/dist/convert/composition-plan.cjs +7 -0
- package/dist/convert/composition-plan.d.cts +2 -0
- package/dist/convert/composition-plan.d.ts +2 -0
- package/dist/convert/composition-plan.js +2 -0
- package/dist/convert/composition-to-pdf.cjs +12 -12
- package/dist/convert/composition-to-pdf.d.cts +1 -1
- package/dist/convert/composition-to-pdf.d.ts +1 -1
- package/dist/convert/composition-to-pdf.js +2 -2
- package/dist/convert/composition.cjs +16 -511
- package/dist/convert/composition.d.cts +2 -85
- package/dist/convert/composition.d.ts +2 -85
- package/dist/convert/composition.js +2 -502
- package/dist/convert/convert.cjs +2 -2
- package/dist/convert/convert.js +1 -1
- package/dist/convert/from-package.cjs +3 -3
- package/dist/convert/from-package.js +2 -2
- package/dist/convert/from-pdf.cjs +18 -18
- package/dist/convert/from-pdf.js +2 -2
- package/dist/convert/local.cjs +3 -3
- package/dist/convert/local.js +1 -1
- package/dist/edit/odp/slide.cjs +4 -4
- package/dist/edit/odp/slide.d.cts +1 -1
- package/dist/edit/odp/slide.d.ts +1 -1
- package/dist/edit/odp/slide.js +1 -1
- package/dist/edit/odt/content.d.cts +1 -1
- package/dist/edit/odt/content.d.ts +1 -1
- package/dist/edit/odt/editor.cjs +4 -4
- package/dist/edit/odt/editor.d.cts +1 -1
- package/dist/edit/odt/editor.d.ts +1 -1
- package/dist/edit/odt/editor.js +1 -1
- package/dist/edit/odt/table-grid.cjs +23 -0
- package/dist/edit/odt/table-grid.d.cts +54 -0
- package/dist/edit/odt/table-grid.d.ts +54 -0
- package/dist/edit/odt/table-grid.js +2 -0
- package/dist/edit/odt/table.cjs +12 -653
- package/dist/edit/odt/table.d.cts +2 -2
- package/dist/edit/odt/table.d.ts +2 -2
- package/dist/edit/odt/table.js +2 -647
- package/dist/{evaluate-BbOsgdmN.d.cts → evaluate-BSEUxiUK.d.cts} +3 -1
- package/dist/evaluate-CEzsBx3w.cjs +564 -0
- package/dist/{evaluate-C7fmk69X.d.ts → evaluate-D8fG2ZeB.d.ts} +3 -1
- package/dist/evaluate-IK-3aMv5.js +445 -0
- package/dist/evaluate-columns-CyqKHkIW.d.cts +41 -0
- package/dist/evaluate-columns-cOo8fOfT.d.ts +41 -0
- package/dist/index.cjs +24 -24
- package/dist/index.d.cts +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.js +8 -8
- package/dist/latex/lint.cjs +2 -2
- package/dist/latex/lint.js +1 -1
- package/dist/latex/lower-fold.cjs +6 -0
- package/dist/latex/lower-fold.d.cts +17 -0
- package/dist/latex/lower-fold.d.ts +17 -0
- package/dist/latex/lower-fold.js +2 -0
- package/dist/latex/lower.cjs +11 -617
- package/dist/latex/lower.d.cts +18 -1
- package/dist/latex/lower.d.ts +18 -1
- package/dist/latex/lower.js +2 -616
- package/dist/latex/symbols.d.cts +1 -15
- package/dist/latex/symbols.d.ts +1 -15
- package/dist/latex/temml.d.cts +1 -24
- package/dist/latex/temml.d.ts +1 -24
- package/dist/layout/engine.cjs +2 -2
- package/dist/layout/engine.js +1 -1
- package/dist/layout/reconstruct-lines.cjs +315 -0
- package/dist/layout/reconstruct-lines.d.cts +2 -0
- package/dist/layout/reconstruct-lines.d.ts +2 -0
- package/dist/layout/reconstruct-lines.js +297 -0
- package/dist/layout/reconstruct-presentations-prod.cjs +9 -0
- package/dist/layout/reconstruct-presentations-prod.d.cts +26 -0
- package/dist/layout/reconstruct-presentations-prod.d.ts +26 -0
- package/dist/layout/reconstruct-presentations-prod.js +2 -0
- package/dist/layout/reconstruct-tables.cjs +5 -0
- package/dist/layout/reconstruct-tables.d.cts +22 -0
- package/dist/layout/reconstruct-tables.d.ts +22 -0
- package/dist/layout/reconstruct-tables.js +2 -0
- package/dist/layout/reconstruct.cjs +11 -1545
- package/dist/layout/reconstruct.d.cts +2 -14
- package/dist/layout/reconstruct.d.ts +2 -14
- package/dist/layout/reconstruct.js +2 -1542
- package/dist/layout/shared.cjs +2 -2
- package/dist/layout/shared.js +1 -1
- package/dist/layout/sheets-render.cjs +19 -0
- package/dist/layout/sheets-render.d.cts +41 -0
- package/dist/layout/sheets-render.d.ts +41 -0
- package/dist/layout/sheets-render.js +2 -0
- package/dist/layout/sheets.cjs +10 -544
- package/dist/layout/sheets.d.cts +13 -2
- package/dist/layout/sheets.d.ts +13 -2
- package/dist/layout/sheets.js +2 -543
- package/dist/layout/slides.cjs +2 -2
- package/dist/layout/slides.js +1 -1
- package/dist/layout-DIJzJk4x.js +526 -0
- package/dist/layout-iuiyl_Fk.cjs +621 -0
- package/dist/layout-types-oSbHvZid.d.cts +13 -0
- package/dist/layout-types-oSbHvZid.d.ts +13 -0
- package/dist/lower-DCs3rWI7.js +618 -0
- package/dist/lower-DzOb13w4.cjs +701 -0
- package/dist/markdown/math.cjs +2 -2
- package/dist/markdown/math.js +1 -1
- package/dist/mathml/layout-stretch.cjs +16 -0
- package/dist/mathml/layout-stretch.d.cts +24 -0
- package/dist/mathml/layout-stretch.d.ts +24 -0
- package/dist/mathml/layout-stretch.js +2 -0
- package/dist/mathml/layout-types.d.cts +1 -12
- package/dist/mathml/layout-types.d.ts +1 -12
- package/dist/mathml/layout.cjs +3 -525
- package/dist/mathml/layout.d.cts +2 -2
- package/dist/mathml/layout.d.ts +2 -2
- package/dist/mathml/layout.js +1 -523
- package/dist/odb/formula/evaluate.d.cts +1 -1
- package/dist/odb/formula/evaluate.d.ts +1 -1
- package/dist/odb/report/render.d.cts +1 -1
- package/dist/odb/report/render.d.ts +1 -1
- package/dist/odb/report/source.cjs +2 -2
- package/dist/odb/report/source.d.cts +1 -1
- package/dist/odb/report/source.d.ts +1 -1
- package/dist/odb/report/source.js +1 -1
- package/dist/odb/sql/evaluate-columns.cjs +122 -0
- package/dist/odb/sql/evaluate-columns.d.cts +2 -0
- package/dist/odb/sql/evaluate-columns.d.ts +2 -0
- package/dist/odb/sql/evaluate-columns.js +114 -0
- package/dist/odb/sql/evaluate-predicates.cjs +16 -0
- package/dist/odb/sql/evaluate-predicates.d.cts +23 -0
- package/dist/odb/sql/evaluate-predicates.d.ts +23 -0
- package/dist/odb/sql/evaluate-predicates.js +2 -0
- package/dist/odb/sql/evaluate.cjs +7 -556
- package/dist/odb/sql/evaluate.d.cts +2 -2
- package/dist/odb/sql/evaluate.d.ts +2 -2
- package/dist/odb/sql/evaluate.js +2 -552
- package/dist/read-BSH--XB4.js +682 -0
- package/dist/read-CahCZMwG.cjs +759 -0
- package/dist/reconstruct-BKOCAedo.d.ts +29 -0
- package/dist/reconstruct-D4TEteZ6.d.cts +29 -0
- package/dist/reconstruct-lines-B7t66ICm.d.cts +33 -0
- package/dist/reconstruct-lines-B7t66ICm.d.ts +33 -0
- package/dist/reconstruct-presentations-prod-B5fkPiRZ.js +1256 -0
- package/dist/reconstruct-presentations-prod-X315aBmI.cjs +1375 -0
- package/dist/sheets-BQCpNXsE.cjs +700 -0
- package/dist/sheets-DWDvGN-g.js +545 -0
- package/dist/svg/read-geometry.cjs +10 -0
- package/dist/svg/read-geometry.d.cts +24 -0
- package/dist/svg/read-geometry.d.ts +24 -0
- package/dist/svg/read-geometry.js +2 -0
- package/dist/svg/read.cjs +6 -680
- package/dist/svg/read.d.cts +17 -2
- package/dist/svg/read.d.ts +17 -2
- package/dist/svg/read.js +2 -679
- package/dist/symbols-BlzXfLEe.d.cts +16 -0
- package/dist/symbols-CKm2r4D0.d.ts +16 -0
- package/dist/table-B5gSMY7w.js +649 -0
- package/dist/{table-DrE6jEWv.d.cts → table-BK_Ao-Y6.d.cts} +9 -1
- package/dist/{table-B5htMG3g.d.ts → table-CxY85YUj.d.ts} +9 -1
- package/dist/table-DqUIOSPV.cjs +840 -0
- package/dist/temml-1-I9N9DD.d.cts +25 -0
- package/dist/temml-1-I9N9DD.d.ts +25 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -24,8 +24,8 @@ const require_edit_odg_vector = require("./edit/odg/vector.cjs");
|
|
|
24
24
|
const require_edit_odt_run = require("./edit/odt/run.cjs");
|
|
25
25
|
const require_edit_odt_paragraph = require("./edit/odt/paragraph.cjs");
|
|
26
26
|
const require_edit_odt_list = require("./edit/odt/list.cjs");
|
|
27
|
-
const
|
|
28
|
-
const
|
|
27
|
+
const require_layout = require("./layout-iuiyl_Fk.cjs");
|
|
28
|
+
const require_table = require("./table-DqUIOSPV.cjs");
|
|
29
29
|
const require_edit_odt_editor = require("./edit/odt/editor.cjs");
|
|
30
30
|
const require_edit_odt_content = require("./edit/odt/content.cjs");
|
|
31
31
|
const require_edit_odp_shape = require("./edit/odp/shape.cjs");
|
|
@@ -39,7 +39,7 @@ const require_edit_ods_content = require("./edit/ods/content.cjs");
|
|
|
39
39
|
const require_edit_odg_page = require("./edit/odg/page.cjs");
|
|
40
40
|
const require_edit_odg_editor = require("./edit/odg/editor.cjs");
|
|
41
41
|
const require_edit_odg_content = require("./edit/odg/content.cjs");
|
|
42
|
-
const
|
|
42
|
+
const require_lower = require("./lower-DzOb13w4.cjs");
|
|
43
43
|
const require_markdown_math = require("./markdown/math.cjs");
|
|
44
44
|
const require_markdown_write = require("./markdown/write.cjs");
|
|
45
45
|
const require_markdown_read = require("./markdown/read.cjs");
|
|
@@ -83,17 +83,17 @@ const require_layout_cell_typing = require("./layout/cell-typing.cjs");
|
|
|
83
83
|
const require_csv_records = require("./csv/records.cjs");
|
|
84
84
|
const require_csv_read = require("./csv/read.cjs");
|
|
85
85
|
const require_csv_write = require("./csv/write.cjs");
|
|
86
|
-
const
|
|
86
|
+
const require_read$1 = require("./read-CahCZMwG.cjs");
|
|
87
87
|
const require_svg_write = require("./svg/write.cjs");
|
|
88
88
|
const require_svg_diagnostics = require("./svg/diagnostics.cjs");
|
|
89
89
|
const require_markdown_render = require("./markdown/render.cjs");
|
|
90
90
|
const require_layout_engine = require("./layout/engine.cjs");
|
|
91
91
|
const require_layout_slides = require("./layout/slides.cjs");
|
|
92
92
|
const require_ports_abort = require("./ports/abort.cjs");
|
|
93
|
-
const
|
|
93
|
+
const require_sheets = require("./sheets-BQCpNXsE.cjs");
|
|
94
94
|
const require_layout_drawing = require("./layout/drawing.cjs");
|
|
95
95
|
const require_layout_lattice = require("./layout/lattice.cjs");
|
|
96
|
-
const
|
|
96
|
+
const require_reconstruct_presentations_prod = require("./reconstruct-presentations-prod-X315aBmI.cjs");
|
|
97
97
|
const require_hsqldb_script = require("./hsqldb/script.cjs");
|
|
98
98
|
const require_odb_csv = require("./odb/csv.cjs");
|
|
99
99
|
const require_hsqldb_rowformat = require("./hsqldb/rowformat.cjs");
|
|
@@ -107,7 +107,7 @@ const require_firebird_backup = require("./firebird/backup.cjs");
|
|
|
107
107
|
const require_odb_read = require("./odb/read.cjs");
|
|
108
108
|
const require_odb_spreadsheet = require("./odb/spreadsheet.cjs");
|
|
109
109
|
const require_convert_port = require("./convert/port.cjs");
|
|
110
|
-
const
|
|
110
|
+
const require_composition_plan = require("./composition-plan-CfvhXeOC.cjs");
|
|
111
111
|
const require_convert_composition_to_pdf = require("./convert/composition-to-pdf.cjs");
|
|
112
112
|
const require_convert_convert = require("./convert/convert.cjs");
|
|
113
113
|
const require_package_codec = require("./package-codec.cjs");
|
|
@@ -115,7 +115,7 @@ const require_convert_from_pdf = require("./convert/from-pdf.cjs");
|
|
|
115
115
|
const require_convert_codec = require("./convert/codec.cjs");
|
|
116
116
|
const require_odb_components = require("./odb/components.cjs");
|
|
117
117
|
const require_odb_sql_errors = require("./odb/sql/errors.cjs");
|
|
118
|
-
const
|
|
118
|
+
const require_evaluate = require("./evaluate-CEzsBx3w.cjs");
|
|
119
119
|
const require_odb_sql_lexer = require("./odb/sql/lexer.cjs");
|
|
120
120
|
const require_odb_sql_parser = require("./odb/sql/parser.cjs");
|
|
121
121
|
const require_odb_formula_errors = require("./odb/formula/errors.cjs");
|
|
@@ -491,15 +491,15 @@ exports.OdsCell = require_edit_ods_cell.OdsCell;
|
|
|
491
491
|
exports.OdsEditor = require_edit_ods_editor.OdsEditor;
|
|
492
492
|
exports.OdsSheet = require_edit_ods_sheet.OdsSheet;
|
|
493
493
|
exports.OdtBytesSchema = require_model_bytes.OdtBytesSchema;
|
|
494
|
-
exports.OdtCoveredTableCell =
|
|
494
|
+
exports.OdtCoveredTableCell = require_table.OdtCoveredTableCell;
|
|
495
495
|
exports.OdtEditor = require_edit_odt_editor.OdtEditor;
|
|
496
496
|
exports.OdtList = require_edit_odt_list.OdtList;
|
|
497
497
|
exports.OdtListItem = require_edit_odt_list.OdtListItem;
|
|
498
498
|
exports.OdtParagraph = require_edit_odt_paragraph.OdtParagraph;
|
|
499
499
|
exports.OdtRun = require_edit_odt_run.OdtRun;
|
|
500
|
-
exports.OdtTable =
|
|
501
|
-
exports.OdtTableCell =
|
|
502
|
-
exports.OdtTableRow =
|
|
500
|
+
exports.OdtTable = require_table.OdtTable;
|
|
501
|
+
exports.OdtTableCell = require_table.OdtTableCell;
|
|
502
|
+
exports.OdtTableRow = require_table.OdtTableRow;
|
|
503
503
|
exports.OoxmlEmbeddedFontError = require_fonts_ooxml.OoxmlEmbeddedFontError;
|
|
504
504
|
Object.defineProperty(exports, "PAGE_SIZE_A4", {
|
|
505
505
|
enumerable: true,
|
|
@@ -589,7 +589,7 @@ Object.defineProperty(exports, "SectionHeaderFooterReferencesSchema", {
|
|
|
589
589
|
}
|
|
590
590
|
});
|
|
591
591
|
exports.SvgBytesSchema = require_model_bytes.SvgBytesSchema;
|
|
592
|
-
exports.SvgMissingRootElementError =
|
|
592
|
+
exports.SvgMissingRootElementError = require_read$1.SvgMissingRootElementError;
|
|
593
593
|
exports.SvgMultiPageNotSpecifiedError = require_svg_write.SvgMultiPageNotSpecifiedError;
|
|
594
594
|
exports.SvgPageNotFoundError = require_svg_write.SvgPageNotFoundError;
|
|
595
595
|
exports.SvgUndecodableTextError = require_svg_text.SvgUndecodableTextError;
|
|
@@ -748,7 +748,7 @@ Object.defineProperty(exports, "contentDocumentWithSchema", {
|
|
|
748
748
|
exports.convertDocument = require_convert_composition_to_pdf.convertDocument;
|
|
749
749
|
exports.convertDrawingToLayout = require_layout_drawing.convertDrawingToLayout;
|
|
750
750
|
exports.convertPresentationToLayout = require_layout_slides.convertPresentationToLayout;
|
|
751
|
-
exports.convertSpreadsheetToLayout =
|
|
751
|
+
exports.convertSpreadsheetToLayout = require_sheets.convertSpreadsheetToLayout;
|
|
752
752
|
exports.convertWordprocessingToLayout = require_layout_engine.convertWordprocessingToLayout;
|
|
753
753
|
exports.createDoc = require_edit_doc_editor.createDoc;
|
|
754
754
|
exports.createDocumentFontRegistry = require_fonts_registry.createDocumentFontRegistry;
|
|
@@ -875,7 +875,7 @@ exports.encodeSvgText = require_svg_text.encodeSvgText;
|
|
|
875
875
|
exports.epubPdfCodec = require_convert_codec.epubPdfCodec;
|
|
876
876
|
exports.epubToPdf = require_convert_convert.epubToPdf;
|
|
877
877
|
exports.evaluateRptBandOutsideData = require_odb_formula_evaluate.evaluateRptBandOutsideData;
|
|
878
|
-
exports.evaluateSelect =
|
|
878
|
+
exports.evaluateSelect = require_evaluate.evaluateSelect;
|
|
879
879
|
exports.extractOdfEmbeddedFonts = require_fonts_odf.extractOdfEmbeddedFonts;
|
|
880
880
|
exports.extractOoxmlEmbeddedFonts = require_fonts_ooxml.extractOoxmlEmbeddedFonts;
|
|
881
881
|
exports.extractSourceFonts = require_fonts_registry.extractSourceFonts;
|
|
@@ -916,9 +916,9 @@ Object.defineProperty(exports, "isXmlNode", {
|
|
|
916
916
|
return ooxml_js.isXmlNode;
|
|
917
917
|
}
|
|
918
918
|
});
|
|
919
|
-
exports.latexToFormula =
|
|
919
|
+
exports.latexToFormula = require_lower.latexToFormula;
|
|
920
920
|
exports.layoutDocumentFromPackage = require_convert_from_package.layoutDocumentFromPackage;
|
|
921
|
-
exports.layoutFormula =
|
|
921
|
+
exports.layoutFormula = require_layout.layoutFormula;
|
|
922
922
|
exports.lintMathCoherence = require_latex_lint.lintMathCoherence;
|
|
923
923
|
Object.defineProperty(exports, "loadMathFont", {
|
|
924
924
|
enumerable: true,
|
|
@@ -928,7 +928,7 @@ Object.defineProperty(exports, "loadMathFont", {
|
|
|
928
928
|
});
|
|
929
929
|
exports.localName = require_mathml_nodes.localName;
|
|
930
930
|
exports.looksLikeSfnt = require_fonts_obfuscation.looksLikeSfnt;
|
|
931
|
-
exports.lowerLatex =
|
|
931
|
+
exports.lowerLatex = require_lower.lowerLatex;
|
|
932
932
|
exports.lowerMarkdownMath = require_markdown_math.lowerMarkdownMath;
|
|
933
933
|
exports.mapMathVariant = require_mathml_variant.mapMathVariant;
|
|
934
934
|
exports.markdownDocxCodec = require_convert_codec.markdownDocxCodec;
|
|
@@ -1115,7 +1115,7 @@ Object.defineProperty(exports, "readRtfContent", {
|
|
|
1115
1115
|
return rtf_codec.readRtfContent;
|
|
1116
1116
|
}
|
|
1117
1117
|
});
|
|
1118
|
-
exports.readSvgContent =
|
|
1118
|
+
exports.readSvgContent = require_read$1.readSvgContent;
|
|
1119
1119
|
Object.defineProperty(exports, "readWpdContent", {
|
|
1120
1120
|
enumerable: true,
|
|
1121
1121
|
get: function() {
|
|
@@ -1134,13 +1134,13 @@ Object.defineProperty(exports, "readXlsxContent", {
|
|
|
1134
1134
|
return ooxml_js.readXlsxContent;
|
|
1135
1135
|
}
|
|
1136
1136
|
});
|
|
1137
|
-
exports.reconstructDrawing =
|
|
1138
|
-
exports.reconstructPresentation =
|
|
1139
|
-
exports.reconstructSpreadsheet =
|
|
1140
|
-
exports.reconstructWordprocessing =
|
|
1137
|
+
exports.reconstructDrawing = require_reconstruct_presentations_prod.reconstructDrawing;
|
|
1138
|
+
exports.reconstructPresentation = require_reconstruct_presentations_prod.reconstructPresentation;
|
|
1139
|
+
exports.reconstructSpreadsheet = require_reconstruct_presentations_prod.reconstructSpreadsheet;
|
|
1140
|
+
exports.reconstructWordprocessing = require_reconstruct_presentations_prod.reconstructWordprocessing;
|
|
1141
1141
|
exports.renderContentDocumentToMarkdown = require_markdown_render.renderContentDocumentToMarkdown;
|
|
1142
1142
|
exports.renderOdbReportContent = require_odb_report_render.renderOdbReportContent;
|
|
1143
|
-
exports.resolveCompositionPlan =
|
|
1143
|
+
exports.resolveCompositionPlan = require_composition_plan.resolveCompositionPlan;
|
|
1144
1144
|
exports.resolveMetadataTimestamps = require_model_metadata.resolveMetadataTimestamps;
|
|
1145
1145
|
Object.defineProperty(exports, "resolveOdbComponent", {
|
|
1146
1146
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -3,9 +3,10 @@ import { ConversionOptions, ConversionRequest, ConversionResult, DOCUMENT_FORMAT
|
|
|
3
3
|
import { csvMarkdownCodec, csvPdfCodec, docPdfCodec, docxPdfCodec, epubPdfCodec, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, odgPdfCodec, odgSvgCodec, odpPdfCodec, odpPptxCodec, odsCsvCodec, odsPdfCodec, odsXlsxCodec, odtDocxCodec, odtPdfCodec, pptPdfCodec, pptxPdfCodec, rtfPdfCodec, svgPdfCodec, xlsPdfCodec, xlsxCsvCodec, xlsxMarkdownCodec, xlsxPdfCodec } from "./convert/codec.cjs";
|
|
4
4
|
import { i as SvgDiagnosticSink, n as SvgDiagnostic, r as SvgDiagnosticCode, t as SVG_DIAGNOSTIC_CODES } from "./diagnostics-DVAXKgcf.cjs";
|
|
5
5
|
import { a as CellTypeRule, i as CellTypeInferenceSink, n as CellTypeInference, o as inferCellValue, r as CellTypeInferenceResult, t as CellTypeDeclineReason } from "./cell-typing-BQ-xQ5X5.cjs";
|
|
6
|
+
import { a as ReconstructOptions, f as reconstructSpreadsheet, p as reconstructWordprocessing } from "./reconstruct-D4TEteZ6.cjs";
|
|
6
7
|
import { i as mapMathVariant, n as applyMathVariant, r as isMathVariant, t as MathVariant } from "./variant-uwYyRetr.cjs";
|
|
7
8
|
import { n as OmmlDiagnosticKind, t as OmmlDiagnostic } from "./shared-c0Lp3_iY.cjs";
|
|
8
|
-
import {
|
|
9
|
+
import { T as UnifiedConversionOptions, c as resolveCompositionPlan, n as ConversionPlan, t as CompositionHop } from "./composition-plan-DU9nPPN7.cjs";
|
|
9
10
|
import { convertDocument } from "./convert/composition-to-pdf.cjs";
|
|
10
11
|
import { n as HsqldbDecodeOptions, r as HsqldbRowFormatError } from "./rowformat-Cl2exlEh.cjs";
|
|
11
12
|
import { i as extractSourceFonts, n as FontSourcePackage, r as createDocumentFontRegistry, t as DocumentFontRegistryOptions } from "./registry-ChR2F9dJ.cjs";
|
|
@@ -47,7 +48,7 @@ import { OdgPage, PageImageInit, TextBoxInit } from "./edit/odg/page.cjs";
|
|
|
47
48
|
import { CreateOdgOptions, OdgEditor, createOdg, openOdg } from "./edit/odg/editor.cjs";
|
|
48
49
|
import { CreateEmptyOdgPackageOptions } from "./edit/odg/scaffold.cjs";
|
|
49
50
|
import { BuildOdpPackageOptions, buildOdpPackage } from "./edit/odp/content.cjs";
|
|
50
|
-
import { a as OdtTableRow, i as OdtTableCell, n as OdtCoveredTableCell,
|
|
51
|
+
import { a as OdtTableRow, i as OdtTableCell, n as OdtCoveredTableCell, r as OdtTable, s as TableInit$2 } from "./table-BK_Ao-Y6.cjs";
|
|
51
52
|
import { OdpSlide, SlideImageInit, SlideTableInit, TextBoxInit as TextBoxInit$1 } from "./edit/odp/slide.cjs";
|
|
52
53
|
import { CreateOdpOptions, OdpEditor, createOdp, openOdp } from "./edit/odp/editor.cjs";
|
|
53
54
|
import { CreateEmptyOdpPackageOptions } from "./edit/odp/scaffold.cjs";
|
|
@@ -86,7 +87,7 @@ import { HsqldbBinaryScript, HsqldbBinaryScriptParseError, inflateHsqldbCompress
|
|
|
86
87
|
import { decodeHsqldbCachedTables } from "./hsqldb/cache.cjs";
|
|
87
88
|
import { flipY } from "./model/geometry.cjs";
|
|
88
89
|
import { CsvBytesSchema, DocBytesSchema, DocxBytesSchema, MarkdownBytesSchema, OdgBytesSchema, OdpBytesSchema, OdsBytesSchema, OdtBytesSchema, PdfBytesSchema, PptBytesSchema, PptxBytesSchema, SvgBytesSchema, XlsBytesSchema, XlsxBytesSchema } from "./model/bytes.cjs";
|
|
89
|
-
import {
|
|
90
|
+
import { n as MathDiagnosticKind, r as MathLayoutResult, t as MathDiagnostic } from "./layout-types-oSbHvZid.cjs";
|
|
90
91
|
import { LayoutFormulaOptions, layoutFormula } from "./mathml/layout.cjs";
|
|
91
92
|
import { OperatorProperties, operatorProperties } from "./mathml/operators.cjs";
|
|
92
93
|
import { OmmlReadResult, collectOfficeMathElements, readOfficeMath } from "./omml/read.cjs";
|
|
@@ -118,7 +119,7 @@ import { EngineLayoutOptions, WordprocessingLayoutResult, convertWordprocessingT
|
|
|
118
119
|
import { PresentationLayoutResult, SlidesLayoutOptions, convertPresentationToLayout } from "./layout/slides.cjs";
|
|
119
120
|
import { SheetsLayoutOptions, SpreadsheetLayoutResult, convertSpreadsheetToLayout } from "./layout/sheets.cjs";
|
|
120
121
|
import { DrawingLayoutOptions, DrawingLayoutResult, convertDrawingToLayout } from "./layout/drawing.cjs";
|
|
121
|
-
import {
|
|
122
|
+
import { reconstructDrawing, reconstructPresentation } from "./layout/reconstruct-presentations-prod.cjs";
|
|
122
123
|
import { GridLattice, detectGridLattice } from "./layout/lattice.cjs";
|
|
123
124
|
import { OdbNoEmbeddedDataSourceError, OdbUnsupportedFormat, OdbUnsupportedFormatError, readOdbTables } from "./odb/read.cjs";
|
|
124
125
|
import { odbTablesToSpreadsheetDocument } from "./odb/spreadsheet.cjs";
|
|
@@ -126,7 +127,7 @@ import { readOdbForms, readOdbReports } from "./odb/components.cjs";
|
|
|
126
127
|
import { OdbTableNotFoundError, OdbTableNotSpecifiedError } from "./odb/csv.cjs";
|
|
127
128
|
import { i as tokenizeSql, n as SqlPunctuation, r as SqlToken, t as SqlComparisonOperator } from "./lexer-DgsW7jMA.cjs";
|
|
128
129
|
import { a as SqlFromSource, d as SqlOperand, f as SqlOrderByTerm, g as SqlSortDirection, h as SqlSelectStatement, i as SqlFromClause, l as SqlLiteral, m as SqlSelectItem, n as SqlAggregateFunction, o as SqlJoinClause, p as SqlPredicate, r as SqlColumnRef, t as SqlAggregateArgument, u as SqlNameRef, v as parseSelect } from "./parser-BTA1wXPd.cjs";
|
|
129
|
-
import { o as evaluateSelect, t as SqlResultSet } from "./evaluate-
|
|
130
|
+
import { o as evaluateSelect, t as SqlResultSet } from "./evaluate-BSEUxiUK.cjs";
|
|
130
131
|
import { HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError } from "./odb/sql/errors.cjs";
|
|
131
132
|
import { RptBandDefinition, RptBandInstance, RptBandKind, RptGroupDefinition, RptNamedFunctionDefinition, RptReportDefinition, RptReportRun, RptScope, evaluateRptBandOutsideData, runRptReport } from "./odb/formula/evaluate.cjs";
|
|
132
133
|
import { RptAggregateFunction, RptFormula, RptReference, parseRptFormula } from "./odb/formula/parser.cjs";
|
package/dist/index.d.ts
CHANGED
|
@@ -3,9 +3,10 @@ import { ConversionOptions, ConversionRequest, ConversionResult, DOCUMENT_FORMAT
|
|
|
3
3
|
import { csvMarkdownCodec, csvPdfCodec, docPdfCodec, docxPdfCodec, epubPdfCodec, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, odgPdfCodec, odgSvgCodec, odpPdfCodec, odpPptxCodec, odsCsvCodec, odsPdfCodec, odsXlsxCodec, odtDocxCodec, odtPdfCodec, pptPdfCodec, pptxPdfCodec, rtfPdfCodec, svgPdfCodec, xlsPdfCodec, xlsxCsvCodec, xlsxMarkdownCodec, xlsxPdfCodec } from "./convert/codec.js";
|
|
4
4
|
import { i as SvgDiagnosticSink, n as SvgDiagnostic, r as SvgDiagnosticCode, t as SVG_DIAGNOSTIC_CODES } from "./diagnostics-DVAXKgcf.js";
|
|
5
5
|
import { a as CellTypeRule, i as CellTypeInferenceSink, n as CellTypeInference, o as inferCellValue, r as CellTypeInferenceResult, t as CellTypeDeclineReason } from "./cell-typing-BQ-xQ5X5.js";
|
|
6
|
+
import { a as ReconstructOptions, f as reconstructSpreadsheet, p as reconstructWordprocessing } from "./reconstruct-BKOCAedo.js";
|
|
6
7
|
import { i as mapMathVariant, n as applyMathVariant, r as isMathVariant, t as MathVariant } from "./variant-uwYyRetr.js";
|
|
7
8
|
import { n as OmmlDiagnosticKind, t as OmmlDiagnostic } from "./shared-DHu5jDJf.js";
|
|
8
|
-
import {
|
|
9
|
+
import { T as UnifiedConversionOptions, c as resolveCompositionPlan, n as ConversionPlan, t as CompositionHop } from "./composition-plan-l6QPO4FX.js";
|
|
9
10
|
import { convertDocument } from "./convert/composition-to-pdf.js";
|
|
10
11
|
import { n as HsqldbDecodeOptions, r as HsqldbRowFormatError } from "./rowformat-Cl2exlEh.js";
|
|
11
12
|
import { i as extractSourceFonts, n as FontSourcePackage, r as createDocumentFontRegistry, t as DocumentFontRegistryOptions } from "./registry-BrXpPnGF.js";
|
|
@@ -47,7 +48,7 @@ import { OdgPage, PageImageInit, TextBoxInit } from "./edit/odg/page.js";
|
|
|
47
48
|
import { CreateOdgOptions, OdgEditor, createOdg, openOdg } from "./edit/odg/editor.js";
|
|
48
49
|
import { CreateEmptyOdgPackageOptions } from "./edit/odg/scaffold.js";
|
|
49
50
|
import { BuildOdpPackageOptions, buildOdpPackage } from "./edit/odp/content.js";
|
|
50
|
-
import { a as OdtTableRow, i as OdtTableCell, n as OdtCoveredTableCell,
|
|
51
|
+
import { a as OdtTableRow, i as OdtTableCell, n as OdtCoveredTableCell, r as OdtTable, s as TableInit$2 } from "./table-CxY85YUj.js";
|
|
51
52
|
import { OdpSlide, SlideImageInit, SlideTableInit, TextBoxInit as TextBoxInit$1 } from "./edit/odp/slide.js";
|
|
52
53
|
import { CreateOdpOptions, OdpEditor, createOdp, openOdp } from "./edit/odp/editor.js";
|
|
53
54
|
import { CreateEmptyOdpPackageOptions } from "./edit/odp/scaffold.js";
|
|
@@ -86,7 +87,7 @@ import { HsqldbBinaryScript, HsqldbBinaryScriptParseError, inflateHsqldbCompress
|
|
|
86
87
|
import { decodeHsqldbCachedTables } from "./hsqldb/cache.js";
|
|
87
88
|
import { flipY } from "./model/geometry.js";
|
|
88
89
|
import { CsvBytesSchema, DocBytesSchema, DocxBytesSchema, MarkdownBytesSchema, OdgBytesSchema, OdpBytesSchema, OdsBytesSchema, OdtBytesSchema, PdfBytesSchema, PptBytesSchema, PptxBytesSchema, SvgBytesSchema, XlsBytesSchema, XlsxBytesSchema } from "./model/bytes.js";
|
|
89
|
-
import {
|
|
90
|
+
import { n as MathDiagnosticKind, r as MathLayoutResult, t as MathDiagnostic } from "./layout-types-oSbHvZid.js";
|
|
90
91
|
import { LayoutFormulaOptions, layoutFormula } from "./mathml/layout.js";
|
|
91
92
|
import { OperatorProperties, operatorProperties } from "./mathml/operators.js";
|
|
92
93
|
import { OmmlReadResult, collectOfficeMathElements, readOfficeMath } from "./omml/read.js";
|
|
@@ -118,7 +119,7 @@ import { EngineLayoutOptions, WordprocessingLayoutResult, convertWordprocessingT
|
|
|
118
119
|
import { PresentationLayoutResult, SlidesLayoutOptions, convertPresentationToLayout } from "./layout/slides.js";
|
|
119
120
|
import { SheetsLayoutOptions, SpreadsheetLayoutResult, convertSpreadsheetToLayout } from "./layout/sheets.js";
|
|
120
121
|
import { DrawingLayoutOptions, DrawingLayoutResult, convertDrawingToLayout } from "./layout/drawing.js";
|
|
121
|
-
import {
|
|
122
|
+
import { reconstructDrawing, reconstructPresentation } from "./layout/reconstruct-presentations-prod.js";
|
|
122
123
|
import { GridLattice, detectGridLattice } from "./layout/lattice.js";
|
|
123
124
|
import { OdbNoEmbeddedDataSourceError, OdbUnsupportedFormat, OdbUnsupportedFormatError, readOdbTables } from "./odb/read.js";
|
|
124
125
|
import { odbTablesToSpreadsheetDocument } from "./odb/spreadsheet.js";
|
|
@@ -126,7 +127,7 @@ import { readOdbForms, readOdbReports } from "./odb/components.js";
|
|
|
126
127
|
import { OdbTableNotFoundError, OdbTableNotSpecifiedError } from "./odb/csv.js";
|
|
127
128
|
import { i as tokenizeSql, n as SqlPunctuation, r as SqlToken, t as SqlComparisonOperator } from "./lexer-DgsW7jMA.js";
|
|
128
129
|
import { a as SqlFromSource, d as SqlOperand, f as SqlOrderByTerm, g as SqlSortDirection, h as SqlSelectStatement, i as SqlFromClause, l as SqlLiteral, m as SqlSelectItem, n as SqlAggregateFunction, o as SqlJoinClause, p as SqlPredicate, r as SqlColumnRef, t as SqlAggregateArgument, u as SqlNameRef, v as parseSelect } from "./parser-CoIi0l9I.js";
|
|
129
|
-
import { o as evaluateSelect, t as SqlResultSet } from "./evaluate-
|
|
130
|
+
import { o as evaluateSelect, t as SqlResultSet } from "./evaluate-D8fG2ZeB.js";
|
|
130
131
|
import { HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError } from "./odb/sql/errors.js";
|
|
131
132
|
import { RptBandDefinition, RptBandInstance, RptBandKind, RptGroupDefinition, RptNamedFunctionDefinition, RptReportDefinition, RptReportRun, RptScope, evaluateRptBandOutsideData, runRptReport } from "./odb/formula/evaluate.js";
|
|
132
133
|
import { RptAggregateFunction, RptFormula, RptReference, parseRptFormula } from "./odb/formula/parser.js";
|
package/dist/index.js
CHANGED
|
@@ -23,8 +23,8 @@ import { OdgBoxVector, OdgLineVector, OdgPathVector } from "./edit/odg/vector.js
|
|
|
23
23
|
import { OdtRun } from "./edit/odt/run.js";
|
|
24
24
|
import { OdtParagraph } from "./edit/odt/paragraph.js";
|
|
25
25
|
import { OdtList, OdtListItem } from "./edit/odt/list.js";
|
|
26
|
-
import { layoutFormula } from "./
|
|
27
|
-
import {
|
|
26
|
+
import { t as layoutFormula } from "./layout-DIJzJk4x.js";
|
|
27
|
+
import { i as OdtTableRow, n as OdtTable, r as OdtTableCell, t as OdtCoveredTableCell } from "./table-B5gSMY7w.js";
|
|
28
28
|
import { OdtEditor, createOdt, openOdt } from "./edit/odt/editor.js";
|
|
29
29
|
import { buildOdtPackage } from "./edit/odt/content.js";
|
|
30
30
|
import { OdpShape } from "./edit/odp/shape.js";
|
|
@@ -38,7 +38,7 @@ import { buildOdsPackage } from "./edit/ods/content.js";
|
|
|
38
38
|
import { OdgPage } from "./edit/odg/page.js";
|
|
39
39
|
import { OdgEditor, createOdg, openOdg } from "./edit/odg/editor.js";
|
|
40
40
|
import { buildOdgPackage } from "./edit/odg/content.js";
|
|
41
|
-
import {
|
|
41
|
+
import { c as lowerLatex, s as latexToFormula } from "./lower-DCs3rWI7.js";
|
|
42
42
|
import { lowerMarkdownMath } from "./markdown/math.js";
|
|
43
43
|
import { buildMarkdownText } from "./markdown/write.js";
|
|
44
44
|
import { readMarkdownContent } from "./markdown/read.js";
|
|
@@ -82,17 +82,17 @@ import { inferCellValue } from "./layout/cell-typing.js";
|
|
|
82
82
|
import { CsvParseError } from "./csv/records.js";
|
|
83
83
|
import { readCsvContent } from "./csv/read.js";
|
|
84
84
|
import { CsvSheetNotFoundError, CsvSheetNotSpecifiedError, CsvUnsupportedDocumentKindError, buildCsvText } from "./csv/write.js";
|
|
85
|
-
import {
|
|
85
|
+
import { i as readSvgContent, r as SvgMissingRootElementError } from "./read-BSH--XB4.js";
|
|
86
86
|
import { SvgMultiPageNotSpecifiedError, SvgPageNotFoundError, SvgUnsupportedDocumentKindError, buildSvgText } from "./svg/write.js";
|
|
87
87
|
import { SVG_DIAGNOSTIC_CODES } from "./svg/diagnostics.js";
|
|
88
88
|
import { MarkdownRenderDiagnosticCodes, renderContentDocumentToMarkdown } from "./markdown/render.js";
|
|
89
89
|
import { convertWordprocessingToLayout } from "./layout/engine.js";
|
|
90
90
|
import { convertPresentationToLayout } from "./layout/slides.js";
|
|
91
91
|
import { throwIfAborted } from "./ports/abort.js";
|
|
92
|
-
import { convertSpreadsheetToLayout } from "./
|
|
92
|
+
import { l as convertSpreadsheetToLayout } from "./sheets-DWDvGN-g.js";
|
|
93
93
|
import { convertDrawingToLayout } from "./layout/drawing.js";
|
|
94
94
|
import { detectGridLattice } from "./layout/lattice.js";
|
|
95
|
-
import {
|
|
95
|
+
import { _ as reconstructWordprocessing, g as reconstructSpreadsheet, i as reconstructPresentation, r as reconstructDrawing } from "./reconstruct-presentations-prod-B5fkPiRZ.js";
|
|
96
96
|
import { HsqldbScriptParseError, displayTextFor, parseHsqldbScript } from "./hsqldb/script.js";
|
|
97
97
|
import { OdbTableNotFoundError, OdbTableNotSpecifiedError } from "./odb/csv.js";
|
|
98
98
|
import { HsqldbRowFormatError } from "./hsqldb/rowformat.js";
|
|
@@ -106,7 +106,7 @@ import { FirebirdBackupFormatError, SUPPORTED_BACKUP_FORMAT_VERSION, readFirebir
|
|
|
106
106
|
import { OdbNoEmbeddedDataSourceError, OdbUnsupportedFormatError, readOdbTables } from "./odb/read.js";
|
|
107
107
|
import { odbTablesToSpreadsheetDocument } from "./odb/spreadsheet.js";
|
|
108
108
|
import { DOCUMENT_FORMATS, DocumentFormatSchema } from "./convert/port.js";
|
|
109
|
-
import { resolveCompositionPlan } from "./
|
|
109
|
+
import { i as resolveCompositionPlan } from "./composition-plan-f0zaExUW.js";
|
|
110
110
|
import { convertDocument } from "./convert/composition-to-pdf.js";
|
|
111
111
|
import { OdmUnresolvedSectionError, csvToMarkdown, csvToOds, csvToPdf, csvToXlsx, docToMarkdown, docToPdf, docxToMarkdown, docxToOdt, docxToPdf, docxToPptx, epubToPdf, markdownToCsv, markdownToDocx, markdownToOdt, markdownToPdf, markdownToXlsx, odbReportToDocx, odbReportToOdt, odbReportToPdf, odbToCsv, odbToXlsx, odfToPdf, odgToPdf, odgToSvg, odmToPdf, odpToOdt, odpToPdf, odpToPptx, odsToCsv, odsToPdf, odsToXlsx, odtToDocx, odtToMarkdown, odtToOdp, odtToPdf, pptToMarkdown, pptToPdf, pptxToDocx, pptxToOdp, pptxToPdf, rtfToPdf, svgToOdg, svgToPdf, xlsToMarkdown, xlsToPdf, xlsxToCsv, xlsxToMarkdown, xlsxToOds, xlsxToPdf } from "./convert/convert.js";
|
|
112
112
|
import { UnsupportedPackageFormatError, decodeDocumentPackage, decodeOdbPackage, encodeDocumentPackage } from "./package-codec.js";
|
|
@@ -114,7 +114,7 @@ import { pdfToCsv, pdfToDoc, pdfToDocx, pdfToEpub, pdfToMarkdown, pdfToOdg, pdfT
|
|
|
114
114
|
import { csvMarkdownCodec, csvPdfCodec, docPdfCodec, docxPdfCodec, epubPdfCodec, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, odgPdfCodec, odgSvgCodec, odpPdfCodec, odpPptxCodec, odsCsvCodec, odsPdfCodec, odsXlsxCodec, odtDocxCodec, odtPdfCodec, pptPdfCodec, pptxPdfCodec, rtfPdfCodec, svgPdfCodec, xlsPdfCodec, xlsxCsvCodec, xlsxMarkdownCodec, xlsxPdfCodec } from "./convert/codec.js";
|
|
115
115
|
import { readOdbForms, readOdbReports } from "./odb/components.js";
|
|
116
116
|
import { HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError } from "./odb/sql/errors.js";
|
|
117
|
-
import { evaluateSelect } from "./
|
|
117
|
+
import { a as evaluateSelect } from "./evaluate-IK-3aMv5.js";
|
|
118
118
|
import { tokenizeSql } from "./odb/sql/lexer.js";
|
|
119
119
|
import { parseSelect } from "./odb/sql/parser.js";
|
|
120
120
|
import { RptFormulaEvaluationError, RptFormulaParseError, RptFormulaUnsupportedError, RptReportStructureError } from "./odb/formula/errors.js";
|
package/dist/latex/lint.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_model_formula = require("../model/formula.cjs");
|
|
3
3
|
const require_latex_rational = require("./rational.cjs");
|
|
4
|
-
const
|
|
4
|
+
const require_lower = require("../lower-DzOb13w4.cjs");
|
|
5
5
|
let document_schema_js = require("document-schema.js");
|
|
6
6
|
//#region src/latex/lint.ts
|
|
7
7
|
function isRecord(value) {
|
|
@@ -29,7 +29,7 @@ function lintFormula(formula, locate, symbolEntries, warnings) {
|
|
|
29
29
|
const content = formula.content;
|
|
30
30
|
if (presentation === void 0 || content === void 0) return;
|
|
31
31
|
const provenance = formula.provenance === void 0 ? void 0 : [formula.provenance.source, ...formula.provenance.editTrail].join(" -> ");
|
|
32
|
-
const relowered =
|
|
32
|
+
const relowered = require_lower.lowerLatex(presentation.latex, { symbolEntries });
|
|
33
33
|
const detail = `${locate}: ${presentation.latex}`;
|
|
34
34
|
if (relowered.diagnostics.some((diagnostic) => diagnostic.code === "latex/parse-error")) {
|
|
35
35
|
if (!isUnparsedRoot(content)) warnings.push({
|
package/dist/latex/lint.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { collectDocumentFormulas } from "../model/formula.js";
|
|
2
2
|
import { reduceRational } from "./rational.js";
|
|
3
|
-
import { lowerLatex } from "
|
|
3
|
+
import { c as lowerLatex } from "../lower-DCs3rWI7.js";
|
|
4
4
|
import { flattenTree } from "document-schema.js";
|
|
5
5
|
//#region src/latex/lint.ts
|
|
6
6
|
function isRecord(value) {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_lower = require("../lower-DzOb13w4.cjs");
|
|
3
|
+
exports.fold = require_lower.fold;
|
|
4
|
+
exports.foldArithmetic = require_lower.foldArithmetic;
|
|
5
|
+
exports.lowerFoldSegment = require_lower.lowerFoldSegment;
|
|
6
|
+
exports.normaliseUnaryMinus = require_lower.normaliseUnaryMinus;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { n as TemmlNode } from "../temml-1-I9N9DD.cjs";
|
|
2
|
+
import { LoweringContext } from "./lower.cjs";
|
|
3
|
+
import { MathExpression } from "document-schema.js";
|
|
4
|
+
//#region src/latex/lower-fold.d.ts
|
|
5
|
+
interface FoldSegment {
|
|
6
|
+
readonly nodes: readonly TemmlNode[];
|
|
7
|
+
readonly negated: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare function normaliseUnaryMinus(operators: readonly string[], segments: readonly FoldSegment[]): {
|
|
10
|
+
operators: string[];
|
|
11
|
+
segments: FoldSegment[];
|
|
12
|
+
};
|
|
13
|
+
declare function fold(first: MathExpression, operators: readonly string[], segments: readonly FoldSegment[], context: LoweringContext, detail: string): MathExpression;
|
|
14
|
+
declare function foldArithmetic(first: MathExpression, operators: readonly string[], segments: readonly FoldSegment[], context: LoweringContext): MathExpression;
|
|
15
|
+
declare function lowerFoldSegment(segment: FoldSegment, context: LoweringContext): MathExpression;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { FoldSegment, fold, foldArithmetic, lowerFoldSegment, normaliseUnaryMinus };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { n as TemmlNode } from "../temml-1-I9N9DD.js";
|
|
2
|
+
import { LoweringContext } from "./lower.js";
|
|
3
|
+
import { MathExpression } from "document-schema.js";
|
|
4
|
+
//#region src/latex/lower-fold.d.ts
|
|
5
|
+
interface FoldSegment {
|
|
6
|
+
readonly nodes: readonly TemmlNode[];
|
|
7
|
+
readonly negated: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare function normaliseUnaryMinus(operators: readonly string[], segments: readonly FoldSegment[]): {
|
|
10
|
+
operators: string[];
|
|
11
|
+
segments: FoldSegment[];
|
|
12
|
+
};
|
|
13
|
+
declare function fold(first: MathExpression, operators: readonly string[], segments: readonly FoldSegment[], context: LoweringContext, detail: string): MathExpression;
|
|
14
|
+
declare function foldArithmetic(first: MathExpression, operators: readonly string[], segments: readonly FoldSegment[], context: LoweringContext): MathExpression;
|
|
15
|
+
declare function lowerFoldSegment(segment: FoldSegment, context: LoweringContext): MathExpression;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { FoldSegment, fold, foldArithmetic, lowerFoldSegment, normaliseUnaryMinus };
|