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
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { i as CellTypeInferenceSink } from "../cell-typing-BQ-xQ5X5.cjs";
|
|
2
|
+
import { a as ReconstructOptions } from "../reconstruct-D4TEteZ6.cjs";
|
|
3
|
+
import { o as TextLine } from "../reconstruct-lines-B7t66ICm.cjs";
|
|
4
|
+
import { Box, ContentDocument, ContentEmbeddedObjectBlock, ContentParagraph, ContentSheet, ContentTable, ContentVector } from "document-schema.js";
|
|
5
|
+
import { LayoutDocument, LayoutItem, LayoutPage, LayoutText } from "pdf-codec";
|
|
6
|
+
//#region src/layout/reconstruct-presentations-prod.d.ts
|
|
7
|
+
declare function reconstructPresentation(doc: LayoutDocument, options?: ReconstructOptions): ContentDocument;
|
|
8
|
+
declare function splitLineByLargeGaps(line: TextLine): TextLine[];
|
|
9
|
+
declare function lineToParagraph(line: TextLine, pageIndex: number): ContentParagraph;
|
|
10
|
+
declare function reconstructDrawing(doc: LayoutDocument, options?: ReconstructOptions): ContentDocument;
|
|
11
|
+
declare function layoutItemToVector(item: LayoutItem, pageHeightPt: number): ContentVector | undefined;
|
|
12
|
+
interface RecoveredVectors {
|
|
13
|
+
readonly block: ContentEmbeddedObjectBlock;
|
|
14
|
+
readonly topYPt: number;
|
|
15
|
+
}
|
|
16
|
+
declare function recoverPageVectors(page: LayoutPage, pageIndex: number, excluded: ReadonlySet<LayoutItem>): RecoveredVectors | undefined;
|
|
17
|
+
interface RecoveredTable {
|
|
18
|
+
readonly table: ContentTable;
|
|
19
|
+
readonly frame: Box;
|
|
20
|
+
readonly topYPt: number;
|
|
21
|
+
readonly consumedText: ReadonlySet<LayoutText>;
|
|
22
|
+
readonly latticeItems: ReadonlySet<LayoutItem>;
|
|
23
|
+
}
|
|
24
|
+
declare function reconstructSheet(page: LayoutPage, pageIndex: number, sink: CellTypeInferenceSink | undefined): ContentSheet;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { RecoveredTable, layoutItemToVector, lineToParagraph, reconstructDrawing, reconstructPresentation, reconstructSheet, recoverPageVectors, splitLineByLargeGaps };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { i as CellTypeInferenceSink } from "../cell-typing-BQ-xQ5X5.js";
|
|
2
|
+
import { a as ReconstructOptions } from "../reconstruct-BKOCAedo.js";
|
|
3
|
+
import { o as TextLine } from "../reconstruct-lines-B7t66ICm.js";
|
|
4
|
+
import { Box, ContentDocument, ContentEmbeddedObjectBlock, ContentParagraph, ContentSheet, ContentTable, ContentVector } from "document-schema.js";
|
|
5
|
+
import { LayoutDocument, LayoutItem, LayoutPage, LayoutText } from "pdf-codec";
|
|
6
|
+
//#region src/layout/reconstruct-presentations-prod.d.ts
|
|
7
|
+
declare function reconstructPresentation(doc: LayoutDocument, options?: ReconstructOptions): ContentDocument;
|
|
8
|
+
declare function splitLineByLargeGaps(line: TextLine): TextLine[];
|
|
9
|
+
declare function lineToParagraph(line: TextLine, pageIndex: number): ContentParagraph;
|
|
10
|
+
declare function reconstructDrawing(doc: LayoutDocument, options?: ReconstructOptions): ContentDocument;
|
|
11
|
+
declare function layoutItemToVector(item: LayoutItem, pageHeightPt: number): ContentVector | undefined;
|
|
12
|
+
interface RecoveredVectors {
|
|
13
|
+
readonly block: ContentEmbeddedObjectBlock;
|
|
14
|
+
readonly topYPt: number;
|
|
15
|
+
}
|
|
16
|
+
declare function recoverPageVectors(page: LayoutPage, pageIndex: number, excluded: ReadonlySet<LayoutItem>): RecoveredVectors | undefined;
|
|
17
|
+
interface RecoveredTable {
|
|
18
|
+
readonly table: ContentTable;
|
|
19
|
+
readonly frame: Box;
|
|
20
|
+
readonly topYPt: number;
|
|
21
|
+
readonly consumedText: ReadonlySet<LayoutText>;
|
|
22
|
+
readonly latticeItems: ReadonlySet<LayoutItem>;
|
|
23
|
+
}
|
|
24
|
+
declare function reconstructSheet(page: LayoutPage, pageIndex: number, sink: CellTypeInferenceSink | undefined): ContentSheet;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { RecoveredTable, layoutItemToVector, lineToParagraph, reconstructDrawing, reconstructPresentation, reconstructSheet, recoverPageVectors, splitLineByLargeGaps };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as reconstructSheet, i as reconstructPresentation, n as lineToParagraph, o as recoverPageVectors, r as reconstructDrawing, s as splitLineByLargeGaps, t as layoutItemToVector } from "../reconstruct-presentations-prod-B5fkPiRZ.js";
|
|
2
|
+
export { layoutItemToVector, lineToParagraph, reconstructDrawing, reconstructPresentation, reconstructSheet, recoverPageVectors, splitLineByLargeGaps };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_reconstruct_presentations_prod = require("../reconstruct-presentations-prod-X315aBmI.cjs");
|
|
3
|
+
exports.buildGridFromLattice = require_reconstruct_presentations_prod.buildGridFromLattice;
|
|
4
|
+
exports.buildGridFromTextClustering = require_reconstruct_presentations_prod.buildGridFromTextClustering;
|
|
5
|
+
exports.recoverTables = require_reconstruct_presentations_prod.recoverTables;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { i as CellTypeInferenceSink } from "../cell-typing-BQ-xQ5X5.cjs";
|
|
2
|
+
import { o as StructureIndex } from "../reconstruct-D4TEteZ6.cjs";
|
|
3
|
+
import { RecoveredTable } from "./reconstruct-presentations-prod.cjs";
|
|
4
|
+
import { GridLattice } from "./lattice.cjs";
|
|
5
|
+
import { ContentSheetCell, ContentSheetColumn, ContentSheetRow } from "document-schema.js";
|
|
6
|
+
import { LayoutPage, LayoutText } from "pdf-codec";
|
|
7
|
+
//#region src/layout/reconstruct-tables.d.ts
|
|
8
|
+
declare function recoverTables(page: LayoutPage, pageIndex: number, structure: StructureIndex | undefined): RecoveredTable[];
|
|
9
|
+
interface CellTypingContext {
|
|
10
|
+
readonly sheetIndex: number;
|
|
11
|
+
readonly sink?: CellTypeInferenceSink;
|
|
12
|
+
}
|
|
13
|
+
interface ReconstructedGrid {
|
|
14
|
+
readonly cells: ContentSheetCell[];
|
|
15
|
+
readonly columns: ContentSheetColumn[];
|
|
16
|
+
readonly rows: ContentSheetRow[];
|
|
17
|
+
readonly gridlines: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare function buildGridFromLattice(textItems: readonly LayoutText[], lattice: GridLattice, pageIndex: number, context: CellTypingContext): ReconstructedGrid;
|
|
20
|
+
declare function buildGridFromTextClustering(textItems: readonly LayoutText[], pageIndex: number, context: CellTypingContext): ReconstructedGrid;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { CellTypingContext, buildGridFromLattice, buildGridFromTextClustering, recoverTables };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { i as CellTypeInferenceSink } from "../cell-typing-BQ-xQ5X5.js";
|
|
2
|
+
import { o as StructureIndex } from "../reconstruct-BKOCAedo.js";
|
|
3
|
+
import { RecoveredTable } from "./reconstruct-presentations-prod.js";
|
|
4
|
+
import { GridLattice } from "./lattice.js";
|
|
5
|
+
import { ContentSheetCell, ContentSheetColumn, ContentSheetRow } from "document-schema.js";
|
|
6
|
+
import { LayoutPage, LayoutText } from "pdf-codec";
|
|
7
|
+
//#region src/layout/reconstruct-tables.d.ts
|
|
8
|
+
declare function recoverTables(page: LayoutPage, pageIndex: number, structure: StructureIndex | undefined): RecoveredTable[];
|
|
9
|
+
interface CellTypingContext {
|
|
10
|
+
readonly sheetIndex: number;
|
|
11
|
+
readonly sink?: CellTypeInferenceSink;
|
|
12
|
+
}
|
|
13
|
+
interface ReconstructedGrid {
|
|
14
|
+
readonly cells: ContentSheetCell[];
|
|
15
|
+
readonly columns: ContentSheetColumn[];
|
|
16
|
+
readonly rows: ContentSheetRow[];
|
|
17
|
+
readonly gridlines: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare function buildGridFromLattice(textItems: readonly LayoutText[], lattice: GridLattice, pageIndex: number, context: CellTypingContext): ReconstructedGrid;
|
|
20
|
+
declare function buildGridFromTextClustering(textItems: readonly LayoutText[], pageIndex: number, context: CellTypingContext): ReconstructedGrid;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { CellTypingContext, buildGridFromLattice, buildGridFromTextClustering, recoverTables };
|