documents.js 1.97.7 → 1.97.9
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/convert/convert.js +6 -6
- package/dist/edit/docx/paragraph.d.cts +1 -1
- package/dist/edit/docx/paragraph.d.ts +1 -1
- package/dist/edit/docx/props.d.cts +3 -3
- package/dist/edit/docx/props.d.ts +3 -3
- package/dist/edit/docx/props.js +1 -1
- package/dist/edit/docx/run.d.cts +1 -1
- package/dist/edit/docx/run.d.ts +1 -1
- package/dist/edit/docx/run.js +1 -1
- package/dist/edit/docx/table.js +1 -1
- package/dist/edit/geometry.d.cts +1 -1
- package/dist/edit/geometry.d.ts +1 -1
- package/dist/edit/markdown/editor.d.cts +2 -3
- package/dist/edit/markdown/editor.d.ts +2 -3
- package/dist/edit/odg/editor.d.cts +1 -1
- package/dist/edit/odg/editor.d.ts +1 -1
- package/dist/edit/odg/page.d.cts +2 -2
- package/dist/edit/odg/page.d.ts +2 -2
- package/dist/edit/odg/scaffold.cjs +1 -1
- package/dist/edit/odg/scaffold.js +1 -1
- package/dist/edit/odp/editor.d.cts +1 -1
- package/dist/edit/odp/editor.d.ts +1 -1
- package/dist/edit/odp/image.d.cts +1 -1
- package/dist/edit/odp/image.d.ts +1 -1
- package/dist/edit/odp/scaffold.cjs +1 -1
- package/dist/edit/odp/scaffold.js +1 -1
- package/dist/edit/odp/shape.d.cts +1 -1
- package/dist/edit/odp/shape.d.ts +1 -1
- package/dist/edit/odp/slide.d.cts +7 -8
- package/dist/edit/odp/slide.d.ts +7 -8
- package/dist/edit/ods/print-settings.js +2 -3
- package/dist/edit/ods/scaffold.cjs +1 -1
- package/dist/edit/ods/scaffold.js +1 -1
- package/dist/edit/odt/content.d.cts +2 -2
- package/dist/edit/odt/content.d.ts +2 -2
- package/dist/edit/odt/editor.d.cts +5 -6
- package/dist/edit/odt/editor.d.ts +5 -6
- package/dist/edit/odt/formula.d.cts +3 -4
- package/dist/edit/odt/formula.d.ts +3 -4
- package/dist/edit/odt/image.d.cts +1 -1
- package/dist/edit/odt/image.d.ts +1 -1
- package/dist/edit/odt/list.d.cts +1 -1
- package/dist/edit/odt/list.d.ts +1 -1
- package/dist/edit/odt/paragraph.d.cts +1 -1
- package/dist/edit/odt/paragraph.d.ts +1 -1
- package/dist/edit/odt/run.d.cts +1 -1
- package/dist/edit/odt/run.d.ts +1 -1
- package/dist/edit/odt/scaffold.cjs +1 -1
- package/dist/edit/odt/scaffold.js +1 -1
- package/dist/edit/odt/table.d.cts +1 -1
- package/dist/edit/odt/table.d.ts +1 -1
- package/dist/edit/pdf/item.d.cts +1 -1
- package/dist/edit/pdf/item.d.ts +1 -1
- package/dist/edit/pdf/page.d.cts +1 -1
- package/dist/edit/pdf/page.d.ts +1 -1
- package/dist/edit/pptx/editor.d.cts +1 -1
- package/dist/edit/pptx/editor.d.ts +1 -1
- package/dist/edit/pptx/image.d.cts +1 -1
- package/dist/edit/pptx/image.d.ts +1 -1
- package/dist/edit/pptx/shape.d.cts +1 -1
- package/dist/edit/pptx/shape.d.ts +1 -1
- package/dist/edit/pptx/slide.d.cts +7 -8
- package/dist/edit/pptx/slide.d.ts +7 -8
- package/dist/edit/pptx/table.d.cts +1 -1
- package/dist/edit/pptx/table.d.ts +1 -1
- package/dist/{image-hTGo7C8g.d.ts → image-3ql9_z1y.d.cts} +1 -1
- package/dist/{image-C6lKT9ZH.d.cts → image-3ql9_z1y.d.ts} +1 -1
- package/dist/{image-CsyoXX7d.d.ts → image-Biwtr667.d.cts} +1 -1
- package/dist/{image-K3MAhLJc.d.cts → image-Biwtr667.d.ts} +1 -1
- package/dist/{image-CE7nO8YY.d.ts → image-CRgc_j2Q.d.cts} +1 -1
- package/dist/{image-DK0YCpYO.d.cts → image-CyYr22TE.d.ts} +1 -1
- package/dist/index.d.cts +11 -13
- package/dist/index.d.ts +11 -13
- package/dist/index.js +2 -4
- package/dist/{item-CNEgqooo.d.ts → item-Dj6f1VTE.d.cts} +25 -27
- package/dist/{item-DhYRoAvM.d.cts → item-Dj6f1VTE.d.ts} +25 -27
- package/dist/layout/shared.cjs +1 -1
- package/dist/layout/shared.d.cts +1 -2
- package/dist/layout/shared.d.ts +1 -2
- package/dist/layout/shared.js +1 -2
- package/dist/layout/sheets.js +5 -7
- package/dist/{list-MCxkKpI7.d.cts → list-BT1Zb3PV.d.cts} +1 -1
- package/dist/{list-BrAIR4Sv.d.ts → list-D9MtQtjK.d.ts} +1 -1
- package/dist/model/geometry.cjs +0 -43
- package/dist/model/geometry.d.cts +6 -2
- package/dist/model/geometry.d.ts +6 -2
- package/dist/model/geometry.js +1 -2
- package/dist/odb/read.js +1 -2
- package/dist/odb/report/render.js +3 -4
- package/dist/odb/spreadsheet.js +2 -3
- package/dist/odf/formula/detect.d.cts +2 -3
- package/dist/odf/formula/detect.d.ts +2 -3
- package/dist/odf/shared/flow-anchor.d.cts +1 -1
- package/dist/odf/shared/flow-anchor.d.ts +1 -1
- package/dist/odf-package/manifest.cjs +0 -60
- package/dist/odf-package/manifest.d.cts +2 -2
- package/dist/odf-package/manifest.d.ts +2 -2
- package/dist/odf-package/manifest.js +3 -3
- package/dist/{paragraph-DZyHl2e4.d.ts → paragraph-BPRc-VVV.d.ts} +3 -3
- package/dist/{paragraph-D7324S0j.d.cts → paragraph-CdGRPSYA.d.cts} +3 -3
- package/dist/{run-BYJGK31k.d.ts → run-Bv6gpAMj.d.ts} +4 -4
- package/dist/{run-SLSPO-4y.d.ts → run-mzBHuFWz.d.cts} +4 -4
- package/dist/{run-DQtEGilU.d.cts → run-mzBHuFWz.d.ts} +4 -4
- package/dist/{run-DEPVf5ZJ.d.cts → run-swnb_wQO.d.cts} +4 -4
- package/dist/{shape-D4xELCZY.d.ts → shape-C5istyRr.d.cts} +2 -4
- package/dist/{shape-DGlNMY73.d.ts → shape-CCPBGhbV.d.ts} +3 -3
- package/dist/{shape-B0yAqgxZ.d.cts → shape-Cuk0RTZn.d.cts} +3 -3
- package/dist/{shape-De9583Kz.d.cts → shape-D-gBLpxJ.d.ts} +2 -4
- package/dist/{table-DQksyfnT.d.ts → table-BavK-2uP.d.ts} +3 -4
- package/dist/{table-fnUiKudF.d.cts → table-DWY7P_sA.d.cts} +3 -4
- package/dist/{table-qaDB5iJO.d.ts → table-Dtml8NyR.d.ts} +1 -1
- package/dist/{table-u6fXNuDO.d.cts → table-b9-ipGtZ.d.cts} +1 -1
- package/package.json +2 -2
- package/dist/color-71eoF1Up.d.cts +0 -2
- package/dist/color-BHhGSqAh.d.ts +0 -2
- package/dist/geometry-BG4fX9Rw.d.ts +0 -6
- package/dist/geometry-DUF273hM.d.cts +0 -6
- package/dist/model/color.cjs +0 -26
- package/dist/model/color.d.cts +0 -2
- package/dist/model/color.d.ts +0 -2
- package/dist/model/color.js +0 -2
- package/dist/model/style.cjs +0 -20
- package/dist/model/style.d.cts +0 -2
- package/dist/model/style.d.ts +0 -2
- package/dist/model/style.js +0 -2
- package/dist/style-DkamR3aY.d.cts +0 -2
- package/dist/style-DkamR3aY.d.ts +0 -2
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as LayoutFont } from "./style-DkamR3aY.cjs";
|
|
3
|
-
import { ContentStrokeStyle, LayoutEllipse, LayoutImage, LayoutImageAsset, LayoutItem, LayoutLine, LayoutLink, LayoutPath, LayoutRect, LayoutSubpath, LayoutText } from "document-schema.js";
|
|
1
|
+
import { Color, ContentStrokeStyle, LayoutEllipse, LayoutFont, LayoutImage, LayoutImageAsset, LayoutItem, LayoutLine, LayoutLink, LayoutPath, LayoutRect, LayoutSubpath, LayoutText } from "document-schema.js";
|
|
4
2
|
//#region src/edit/pdf/item.d.ts
|
|
5
3
|
declare abstract class PdfItemBase<T extends LayoutItem> {
|
|
6
4
|
protected readonly container: LayoutItem[];
|
|
@@ -18,7 +16,7 @@ interface PdfTextInit {
|
|
|
18
16
|
readonly text: string;
|
|
19
17
|
readonly font: LayoutFont;
|
|
20
18
|
readonly sizePt: number;
|
|
21
|
-
readonly color:
|
|
19
|
+
readonly color: Color;
|
|
22
20
|
readonly rotationDeg?: number;
|
|
23
21
|
readonly underline?: boolean;
|
|
24
22
|
}
|
|
@@ -36,8 +34,8 @@ declare class PdfTextItem extends PdfItemBase<LayoutText> {
|
|
|
36
34
|
set font(value: LayoutFont);
|
|
37
35
|
get sizePt(): number;
|
|
38
36
|
set sizePt(value: number);
|
|
39
|
-
get color():
|
|
40
|
-
set color(value:
|
|
37
|
+
get color(): Color;
|
|
38
|
+
set color(value: Color);
|
|
41
39
|
get widthPt(): number | undefined;
|
|
42
40
|
set widthPt(value: number | undefined);
|
|
43
41
|
get rotationDeg(): number | undefined;
|
|
@@ -50,9 +48,9 @@ interface PdfRectInit {
|
|
|
50
48
|
readonly yPt: number;
|
|
51
49
|
readonly widthPt: number;
|
|
52
50
|
readonly heightPt: number;
|
|
53
|
-
readonly fill?:
|
|
51
|
+
readonly fill?: Color;
|
|
54
52
|
readonly stroke?: {
|
|
55
|
-
readonly color:
|
|
53
|
+
readonly color: Color;
|
|
56
54
|
readonly widthPt: number;
|
|
57
55
|
};
|
|
58
56
|
}
|
|
@@ -61,9 +59,9 @@ interface PdfEllipseInit {
|
|
|
61
59
|
readonly yPt: number;
|
|
62
60
|
readonly widthPt: number;
|
|
63
61
|
readonly heightPt: number;
|
|
64
|
-
readonly fill?:
|
|
62
|
+
readonly fill?: Color;
|
|
65
63
|
readonly stroke?: {
|
|
66
|
-
readonly color:
|
|
64
|
+
readonly color: Color;
|
|
67
65
|
readonly widthPt: number;
|
|
68
66
|
};
|
|
69
67
|
}
|
|
@@ -80,14 +78,14 @@ declare class PdfRectItem extends PdfItemBase<LayoutRect> {
|
|
|
80
78
|
set widthPt(value: number);
|
|
81
79
|
get heightPt(): number;
|
|
82
80
|
set heightPt(value: number);
|
|
83
|
-
get fill():
|
|
84
|
-
set fill(value:
|
|
81
|
+
get fill(): Color | undefined;
|
|
82
|
+
set fill(value: Color | undefined);
|
|
85
83
|
get stroke(): {
|
|
86
|
-
readonly color:
|
|
84
|
+
readonly color: Color;
|
|
87
85
|
readonly widthPt: number;
|
|
88
86
|
} | undefined;
|
|
89
87
|
set stroke(value: {
|
|
90
|
-
readonly color:
|
|
88
|
+
readonly color: Color;
|
|
91
89
|
readonly widthPt: number;
|
|
92
90
|
} | undefined);
|
|
93
91
|
}
|
|
@@ -102,14 +100,14 @@ declare class PdfEllipseItem extends PdfItemBase<LayoutEllipse> {
|
|
|
102
100
|
set widthPt(value: number);
|
|
103
101
|
get heightPt(): number;
|
|
104
102
|
set heightPt(value: number);
|
|
105
|
-
get fill():
|
|
106
|
-
set fill(value:
|
|
103
|
+
get fill(): Color | undefined;
|
|
104
|
+
set fill(value: Color | undefined);
|
|
107
105
|
get stroke(): {
|
|
108
|
-
readonly color:
|
|
106
|
+
readonly color: Color;
|
|
109
107
|
readonly widthPt: number;
|
|
110
108
|
} | undefined;
|
|
111
109
|
set stroke(value: {
|
|
112
|
-
readonly color:
|
|
110
|
+
readonly color: Color;
|
|
113
111
|
readonly widthPt: number;
|
|
114
112
|
} | undefined);
|
|
115
113
|
}
|
|
@@ -118,7 +116,7 @@ interface PdfLineInit {
|
|
|
118
116
|
readonly y1Pt: number;
|
|
119
117
|
readonly x2Pt: number;
|
|
120
118
|
readonly y2Pt: number;
|
|
121
|
-
readonly color:
|
|
119
|
+
readonly color: Color;
|
|
122
120
|
readonly widthPt: number;
|
|
123
121
|
readonly style?: ContentStrokeStyle;
|
|
124
122
|
}
|
|
@@ -134,8 +132,8 @@ declare class PdfLineItem extends PdfItemBase<LayoutLine> {
|
|
|
134
132
|
set x2Pt(value: number);
|
|
135
133
|
get y2Pt(): number;
|
|
136
134
|
set y2Pt(value: number);
|
|
137
|
-
get color():
|
|
138
|
-
set color(value:
|
|
135
|
+
get color(): Color;
|
|
136
|
+
set color(value: Color);
|
|
139
137
|
get widthPt(): number;
|
|
140
138
|
set widthPt(value: number);
|
|
141
139
|
get style(): ContentStrokeStyle | undefined;
|
|
@@ -143,10 +141,10 @@ declare class PdfLineItem extends PdfItemBase<LayoutLine> {
|
|
|
143
141
|
}
|
|
144
142
|
interface PdfPathInit {
|
|
145
143
|
readonly subpaths: readonly LayoutSubpath[];
|
|
146
|
-
readonly fill?:
|
|
144
|
+
readonly fill?: Color;
|
|
147
145
|
readonly fillRule?: 'nonzero' | 'evenodd';
|
|
148
146
|
readonly stroke?: {
|
|
149
|
-
readonly color:
|
|
147
|
+
readonly color: Color;
|
|
150
148
|
readonly widthPt: number;
|
|
151
149
|
};
|
|
152
150
|
readonly style?: ContentStrokeStyle;
|
|
@@ -157,16 +155,16 @@ declare class PdfPathItem extends PdfItemBase<LayoutPath> {
|
|
|
157
155
|
constructor(container: LayoutItem[], node: LayoutPath);
|
|
158
156
|
get subpaths(): readonly LayoutSubpath[];
|
|
159
157
|
set subpaths(value: readonly LayoutSubpath[]);
|
|
160
|
-
get fill():
|
|
161
|
-
set fill(value:
|
|
158
|
+
get fill(): Color | undefined;
|
|
159
|
+
set fill(value: Color | undefined);
|
|
162
160
|
get fillRule(): 'nonzero' | 'evenodd' | undefined;
|
|
163
161
|
set fillRule(value: 'nonzero' | 'evenodd' | undefined);
|
|
164
162
|
get stroke(): {
|
|
165
|
-
readonly color:
|
|
163
|
+
readonly color: Color;
|
|
166
164
|
readonly widthPt: number;
|
|
167
165
|
} | undefined;
|
|
168
166
|
set stroke(value: {
|
|
169
|
-
readonly color:
|
|
167
|
+
readonly color: Color;
|
|
170
168
|
readonly widthPt: number;
|
|
171
169
|
} | undefined);
|
|
172
170
|
get style(): ContentStrokeStyle | undefined;
|
package/dist/layout/shared.cjs
CHANGED
|
@@ -2,8 +2,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_mathml_layout = require("../mathml/layout.cjs");
|
|
3
3
|
const require_layout_text_layout = require("./text-layout.cjs");
|
|
4
4
|
let ooxml_js = require("ooxml.js");
|
|
5
|
-
let byte_codec = require("byte-codec");
|
|
6
5
|
let document_schema_js = require("document-schema.js");
|
|
6
|
+
let byte_codec = require("byte-codec");
|
|
7
7
|
//#region src/layout/shared.ts
|
|
8
8
|
const NOMINAL_TEXT_SIZE_PT = 18;
|
|
9
9
|
const MIN_FORMULA_SIZE_PT = 8;
|
package/dist/layout/shared.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Box, ContentCellBorders, ContentImageBlock, ContentRun, ContentTableRow, LayoutImageAsset, LayoutItem, MathFontMetrics, MathMlNode, StyledRun, TextMeasurer, WrappedLine } from "document-schema.js";
|
|
1
|
+
import { Alignment, Box, ContentCellBorders, ContentImageBlock, ContentRun, ContentTableRow, LayoutFont, LayoutImageAsset, LayoutItem, MathFontMetrics, MathMlNode, StyledRun, TextMeasurer, WrappedLine } from "document-schema.js";
|
|
3
2
|
//#region src/layout/shared.d.ts
|
|
4
3
|
declare const NOMINAL_TEXT_SIZE_PT = 18;
|
|
5
4
|
declare function formulaSizePtForFrame(mathml: readonly MathMlNode[], frame: Box, mathMetricsAt: (sizePt: number) => MathFontMetrics): number;
|
package/dist/layout/shared.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Box, ContentCellBorders, ContentImageBlock, ContentRun, ContentTableRow, LayoutImageAsset, LayoutItem, MathFontMetrics, MathMlNode, StyledRun, TextMeasurer, WrappedLine } from "document-schema.js";
|
|
1
|
+
import { Alignment, Box, ContentCellBorders, ContentImageBlock, ContentRun, ContentTableRow, LayoutFont, LayoutImageAsset, LayoutItem, MathFontMetrics, MathMlNode, StyledRun, TextMeasurer, WrappedLine } from "document-schema.js";
|
|
3
2
|
//#region src/layout/shared.d.ts
|
|
4
3
|
declare const NOMINAL_TEXT_SIZE_PT = 18;
|
|
5
4
|
declare function formulaSizePtForFrame(mathml: readonly MathMlNode[], frame: Box, mathMetricsAt: (sizePt: number) => MathFontMetrics): number;
|
package/dist/layout/shared.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { COLOR_BLACK } from "../model/color.js";
|
|
2
|
-
import { DEFAULT_LAYOUT_FONT } from "../model/style.js";
|
|
3
1
|
import { layoutFormula } from "../mathml/layout.js";
|
|
4
2
|
import { wrapRunsToWidth } from "./text-layout.js";
|
|
5
3
|
import { base64ToBytes } from "ooxml.js";
|
|
4
|
+
import { COLOR_BLACK, DEFAULT_LAYOUT_FONT } from "document-schema.js";
|
|
6
5
|
import { crc32, decodePng, readJpegInfo } from "byte-codec";
|
|
7
6
|
//#region src/layout/shared.ts
|
|
8
7
|
const NOMINAL_TEXT_SIZE_PT = 18;
|
package/dist/layout/sheets.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { flipY } from "../model/geometry.js";
|
|
2
|
-
import { COLOR_BLACK as COLOR_BLACK$1, rgbHexToColor as rgbHexToColor$1 } from "../model/color.js";
|
|
3
|
-
import { DEFAULT_LAYOUT_FONT } from "../model/style.js";
|
|
4
2
|
import { layoutFormula } from "../mathml/layout.js";
|
|
5
3
|
import { wrapRunsToWidth } from "./text-layout.js";
|
|
6
4
|
import { alignmentOffsetPt, formulaSizePtForFrame, justifyLineGapsPt, lineNaturalHeightPt, pushCellBorderLines, registerImage, sumColumnWidthsPt, toStyledRuns } from "./shared.js";
|
|
7
5
|
import { throwIfAborted } from "../ports/abort.js";
|
|
8
|
-
import { LAYOUT_FORMAT_VERSION, columnIndexToLetters } from "document-schema.js";
|
|
6
|
+
import { COLOR_BLACK, DEFAULT_LAYOUT_FONT, LAYOUT_FORMAT_VERSION, columnIndexToLetters, rgbHexToColor } from "document-schema.js";
|
|
9
7
|
//#region src/layout/sheets.ts
|
|
10
8
|
function anchoredFormulas(sheet) {
|
|
11
9
|
const resolved = [];
|
|
@@ -36,9 +34,9 @@ const CELL_TEXT_PADDING_PT = 2;
|
|
|
36
34
|
const HEADER_LABEL_PADDING_PT = 2;
|
|
37
35
|
const MINIMUM_SCALE = .01;
|
|
38
36
|
const NUMERIC_OVERFLOW_TEXT = "###";
|
|
39
|
-
const GRIDLINE_COLOR = rgbHexToColor
|
|
37
|
+
const GRIDLINE_COLOR = rgbHexToColor("#D0D0D0");
|
|
40
38
|
const GRIDLINE_WIDTH_PT = .5;
|
|
41
|
-
const HEADER_LABEL_COLOR = rgbHexToColor
|
|
39
|
+
const HEADER_LABEL_COLOR = rgbHexToColor("#606060");
|
|
42
40
|
function resolvePrintRange(sheet, formulas) {
|
|
43
41
|
if (sheet.printSettings.printRange !== void 0) return sheet.printSettings.printRange;
|
|
44
42
|
if (sheet.cells.length === 0 && formulas.length === 0 && sheet.images.length === 0) return;
|
|
@@ -147,7 +145,7 @@ function cellStyledRuns(cell) {
|
|
|
147
145
|
text: cell.displayText,
|
|
148
146
|
font: DEFAULT_LAYOUT_FONT,
|
|
149
147
|
sizePt: NOMINAL_CELL_TEXT_SIZE_PT,
|
|
150
|
-
color: COLOR_BLACK
|
|
148
|
+
color: COLOR_BLACK
|
|
151
149
|
}];
|
|
152
150
|
}
|
|
153
151
|
function isNumericLikeValue(kind) {
|
|
@@ -366,7 +364,7 @@ function renderAnchoredFormulas(formulas, columnAxis, rowAxis, gridLeftXPt, grid
|
|
|
366
364
|
const { box } = layoutFormula(anchored.formula.mathml, {
|
|
367
365
|
metrics,
|
|
368
366
|
sizePt,
|
|
369
|
-
color: COLOR_BLACK
|
|
367
|
+
color: COLOR_BLACK
|
|
370
368
|
});
|
|
371
369
|
const boxYDown = {
|
|
372
370
|
xPt: gridLeftXPt + columnAxis.offsetsPt[columnPosition] + anchored.offsetXPt,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-
|
|
1
|
+
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-CdGRPSYA.cjs";
|
|
2
2
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
3
3
|
//#region src/edit/odt/list.d.ts
|
|
4
4
|
declare class OdtListItem {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-
|
|
1
|
+
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-BPRc-VVV.js";
|
|
2
2
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
3
3
|
//#region src/edit/odt/list.d.ts
|
|
4
4
|
declare class OdtListItem {
|
package/dist/model/geometry.cjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
let document_schema_js = require("document-schema.js");
|
|
3
2
|
//#region src/model/geometry.ts
|
|
4
3
|
function flipY(box, containerHeightPt) {
|
|
5
4
|
return {
|
|
@@ -21,47 +20,5 @@ function rotatePointAboutCenter(point, center, degrees) {
|
|
|
21
20
|
};
|
|
22
21
|
}
|
|
23
22
|
//#endregion
|
|
24
|
-
Object.defineProperty(exports, "BoxSchema", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function() {
|
|
27
|
-
return document_schema_js.BoxSchema;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "MarginsSchema", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function() {
|
|
33
|
-
return document_schema_js.MarginsSchema;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "PAGE_SIZE_A4", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function() {
|
|
39
|
-
return document_schema_js.PAGE_SIZE_A4;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "PAGE_SIZE_LETTER", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function() {
|
|
45
|
-
return document_schema_js.PAGE_SIZE_LETTER;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "PageSizeSchema", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function() {
|
|
51
|
-
return document_schema_js.PageSizeSchema;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, "SLIDE_SIZE_STANDARD", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function() {
|
|
57
|
-
return document_schema_js.SLIDE_SIZE_STANDARD;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(exports, "SLIDE_SIZE_WIDESCREEN", {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function() {
|
|
63
|
-
return document_schema_js.SLIDE_SIZE_WIDESCREEN;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
23
|
exports.flipY = flipY;
|
|
67
24
|
exports.rotatePointAboutCenter = rotatePointAboutCenter;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Box, Point } from "document-schema.js";
|
|
2
|
+
//#region src/model/geometry.d.ts
|
|
3
|
+
declare function flipY(box: Box, containerHeightPt: number): Box;
|
|
4
|
+
declare function rotatePointAboutCenter(point: Point, center: Point, degrees: number): Point;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { flipY, rotatePointAboutCenter };
|
package/dist/model/geometry.d.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Box, Point } from "document-schema.js";
|
|
2
|
+
//#region src/model/geometry.d.ts
|
|
3
|
+
declare function flipY(box: Box, containerHeightPt: number): Box;
|
|
4
|
+
declare function rotatePointAboutCenter(point: Point, center: Point, degrees: number): Point;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { flipY, rotatePointAboutCenter };
|
package/dist/model/geometry.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { BoxSchema, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSizeSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN } from "document-schema.js";
|
|
2
1
|
//#region src/model/geometry.ts
|
|
3
2
|
function flipY(box, containerHeightPt) {
|
|
4
3
|
return {
|
|
@@ -20,4 +19,4 @@ function rotatePointAboutCenter(point, center, degrees) {
|
|
|
20
19
|
};
|
|
21
20
|
}
|
|
22
21
|
//#endregion
|
|
23
|
-
export {
|
|
22
|
+
export { flipY, rotatePointAboutCenter };
|
package/dist/odb/read.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { readManifest } from "../odf-package/manifest.js";
|
|
2
1
|
import { parseHsqldbScript } from "../hsqldb/script.js";
|
|
3
2
|
import { inflateHsqldbCompressedScript, parseHsqldbBinaryScript } from "../hsqldb/binary-script.js";
|
|
4
3
|
import { decodeHsqldbCachedTables } from "../hsqldb/cache.js";
|
|
5
4
|
import { readFirebirdBackup } from "../firebird/backup.js";
|
|
6
|
-
import { base64ToBytes, readOdbInventory } from "odf.js";
|
|
5
|
+
import { base64ToBytes, readManifest, readOdbInventory } from "odf.js";
|
|
7
6
|
//#region src/odb/read.ts
|
|
8
7
|
var OdbNoEmbeddedDataSourceError = class extends Error {
|
|
9
8
|
url;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { PAGE_SIZE_A4 as PAGE_SIZE_A4$1 } from "../../model/geometry.js";
|
|
2
1
|
import { displayTextFor } from "../../hsqldb/script.js";
|
|
3
2
|
import { evaluateRptBandOutsideData, runRptReport } from "../formula/evaluate.js";
|
|
4
3
|
import { odbReportGroupChain, rptBandDefinition, rptDefinitionFromReport } from "../formula/definition.js";
|
|
5
|
-
import { CONTENT_FORMAT_VERSION } from "document-schema.js";
|
|
4
|
+
import { CONTENT_FORMAT_VERSION, PAGE_SIZE_A4 } from "document-schema.js";
|
|
6
5
|
//#region src/odb/report/render.ts
|
|
7
6
|
const MARGIN_PT = 56.69291338582677;
|
|
8
|
-
const CONTENT_WIDTH_PT = PAGE_SIZE_A4
|
|
7
|
+
const CONTENT_WIDTH_PT = PAGE_SIZE_A4.widthPt - 2 * MARGIN_PT;
|
|
9
8
|
const REPORT_HEADER_STYLE = "Report Header";
|
|
10
9
|
const PAGE_HEADER_STYLE = "Page Header";
|
|
11
10
|
const DETAIL_STYLE = "Detail";
|
|
@@ -80,7 +79,7 @@ function renderOdbReportContent(report, resultSet) {
|
|
|
80
79
|
const instances = runRptReport(definition, resultSet).bands;
|
|
81
80
|
const printed = (matches) => instances.filter((instance) => matches(instance.kind)).map((instance) => bandOfInstance(report, groups, instance));
|
|
82
81
|
const section = {
|
|
83
|
-
pageSize: PAGE_SIZE_A4
|
|
82
|
+
pageSize: PAGE_SIZE_A4,
|
|
84
83
|
margins: {
|
|
85
84
|
topPt: MARGIN_PT,
|
|
86
85
|
rightPt: MARGIN_PT,
|
package/dist/odb/spreadsheet.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { PAGE_SIZE_A4 as PAGE_SIZE_A4$1 } from "../model/geometry.js";
|
|
2
1
|
import { displayTextFor } from "../hsqldb/script.js";
|
|
3
|
-
import { CONTENT_FORMAT_VERSION } from "document-schema.js";
|
|
2
|
+
import { CONTENT_FORMAT_VERSION, PAGE_SIZE_A4 } from "document-schema.js";
|
|
4
3
|
//#region src/odb/spreadsheet.ts
|
|
5
4
|
const HEADER_ROW_INDEX = 0;
|
|
6
5
|
const COLUMN_WIDTH_PT = 64;
|
|
7
6
|
const ROW_HEIGHT_PT = 15;
|
|
8
7
|
const MARGIN_PT = 56.69291338582677;
|
|
9
8
|
const DEFAULT_PRINT_SETTINGS = {
|
|
10
|
-
pageSize: PAGE_SIZE_A4
|
|
9
|
+
pageSize: PAGE_SIZE_A4,
|
|
11
10
|
margins: {
|
|
12
11
|
topPt: MARGIN_PT,
|
|
13
12
|
rightPt: MARGIN_PT,
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ContentFormula } from "document-schema.js";
|
|
1
|
+
import { Box, ContentFormula } from "document-schema.js";
|
|
3
2
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
4
3
|
//#region src/odf/formula/detect.d.ts
|
|
5
4
|
interface DetectedFormulaFrame {
|
|
6
5
|
readonly frameElement: XmlElement;
|
|
7
6
|
readonly formula: ContentFormula;
|
|
8
|
-
readonly frame: Box
|
|
7
|
+
readonly frame: Box;
|
|
9
8
|
}
|
|
10
9
|
interface DetectedSlideFormulaFrame extends DetectedFormulaFrame {
|
|
11
10
|
readonly shapeIndex: number;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ContentFormula } from "document-schema.js";
|
|
1
|
+
import { Box, ContentFormula } from "document-schema.js";
|
|
3
2
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
4
3
|
//#region src/odf/formula/detect.d.ts
|
|
5
4
|
interface DetectedFormulaFrame {
|
|
6
5
|
readonly frameElement: XmlElement;
|
|
7
6
|
readonly formula: ContentFormula;
|
|
8
|
-
readonly frame: Box
|
|
7
|
+
readonly frame: Box;
|
|
9
8
|
}
|
|
10
9
|
interface DetectedSlideFormulaFrame extends DetectedFormulaFrame {
|
|
11
10
|
readonly shapeIndex: number;
|
|
@@ -28,64 +28,4 @@ function syncOdfManifest(pkg) {
|
|
|
28
28
|
(0, odf_js.syncManifest)(pkg, { mediaTypeOverrides });
|
|
29
29
|
}
|
|
30
30
|
//#endregion
|
|
31
|
-
Object.defineProperty(exports, "MANIFEST_PART", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function() {
|
|
34
|
-
return odf_js.MANIFEST_PART;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
Object.defineProperty(exports, "ManifestEntrySchema", {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
get: function() {
|
|
40
|
-
return odf_js.ManifestEntrySchema;
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
Object.defineProperty(exports, "ManifestProblemSchema", {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function() {
|
|
46
|
-
return odf_js.ManifestProblemSchema;
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
Object.defineProperty(exports, "ManifestSchema", {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
get: function() {
|
|
52
|
-
return odf_js.ManifestSchema;
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
Object.defineProperty(exports, "buildManifest", {
|
|
56
|
-
enumerable: true,
|
|
57
|
-
get: function() {
|
|
58
|
-
return odf_js.buildManifest;
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
Object.defineProperty(exports, "readManifest", {
|
|
62
|
-
enumerable: true,
|
|
63
|
-
get: function() {
|
|
64
|
-
return odf_js.readManifest;
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
Object.defineProperty(exports, "setDocumentMediaType", {
|
|
68
|
-
enumerable: true,
|
|
69
|
-
get: function() {
|
|
70
|
-
return odf_js.setDocumentMediaType;
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
Object.defineProperty(exports, "syncManifest", {
|
|
74
|
-
enumerable: true,
|
|
75
|
-
get: function() {
|
|
76
|
-
return odf_js.syncManifest;
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
31
|
exports.syncOdfManifest = syncOdfManifest;
|
|
80
|
-
Object.defineProperty(exports, "validateManifest", {
|
|
81
|
-
enumerable: true,
|
|
82
|
-
get: function() {
|
|
83
|
-
return odf_js.validateManifest;
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
Object.defineProperty(exports, "writeManifest", {
|
|
87
|
-
enumerable: true,
|
|
88
|
-
get: function() {
|
|
89
|
-
return odf_js.writeManifest;
|
|
90
|
-
}
|
|
91
|
-
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Package } from "odf.js";
|
|
2
2
|
//#region src/odf-package/manifest.d.ts
|
|
3
3
|
declare function syncOdfManifest(pkg: Package): void;
|
|
4
4
|
//#endregion
|
|
5
|
-
export {
|
|
5
|
+
export { syncOdfManifest };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Package } from "odf.js";
|
|
2
2
|
//#region src/odf-package/manifest.d.ts
|
|
3
3
|
declare function syncOdfManifest(pkg: Package): void;
|
|
4
4
|
//#endregion
|
|
5
|
-
export {
|
|
5
|
+
export { syncOdfManifest };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ODF_MEDIA_TYPES, findChildElement, rootElement, syncManifest } from "odf.js";
|
|
2
2
|
//#region src/odf-package/manifest.ts
|
|
3
3
|
const CONTENT_PART_SUFFIX = "/content.xml";
|
|
4
4
|
const ROOT_CONTENT_PART = "content.xml";
|
|
@@ -24,7 +24,7 @@ function syncOdfManifest(pkg) {
|
|
|
24
24
|
const mediaType = subDocumentMediaType(pkg, directory);
|
|
25
25
|
if (mediaType !== void 0) mediaTypeOverrides[directory] = mediaType;
|
|
26
26
|
}
|
|
27
|
-
syncManifest
|
|
27
|
+
syncManifest(pkg, { mediaTypeOverrides });
|
|
28
28
|
}
|
|
29
29
|
//#endregion
|
|
30
|
-
export {
|
|
30
|
+
export { syncOdfManifest };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
1
|
+
import { t as ImageInit } from "./image-Biwtr667.js";
|
|
2
|
+
import { n as RunInit, t as OdtRun } from "./run-mzBHuFWz.js";
|
|
3
|
+
import { Alignment } from "document-schema.js";
|
|
4
4
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
5
5
|
//#region src/edit/odt/paragraph.d.ts
|
|
6
6
|
interface ParagraphInit {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
1
|
+
import { t as ImageInit } from "./image-Biwtr667.cjs";
|
|
2
|
+
import { n as RunInit, t as OdtRun } from "./run-mzBHuFWz.cjs";
|
|
3
|
+
import { Alignment } from "document-schema.js";
|
|
4
4
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
5
5
|
//#region src/edit/odt/paragraph.d.ts
|
|
6
6
|
interface ParagraphInit {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as LayoutColor } from "./color-BHhGSqAh.js";
|
|
2
1
|
import { XmlElement, XmlNode } from "ooxml.js";
|
|
2
|
+
import { Color } from "document-schema.js";
|
|
3
3
|
//#region src/edit/docx/run.d.ts
|
|
4
4
|
declare function wordprocessingText(element: XmlElement): string;
|
|
5
5
|
interface RunInit {
|
|
@@ -10,7 +10,7 @@ interface RunInit {
|
|
|
10
10
|
readonly strike?: boolean;
|
|
11
11
|
readonly fontFamily?: string;
|
|
12
12
|
readonly sizePt?: number;
|
|
13
|
-
readonly color?:
|
|
13
|
+
readonly color?: Color;
|
|
14
14
|
}
|
|
15
15
|
declare class DocxRun {
|
|
16
16
|
private readonly container;
|
|
@@ -33,8 +33,8 @@ declare class DocxRun {
|
|
|
33
33
|
set fontFamily(value: string);
|
|
34
34
|
get sizePt(): number | undefined;
|
|
35
35
|
set sizePt(value: number);
|
|
36
|
-
get color():
|
|
37
|
-
set color(value:
|
|
36
|
+
get color(): Color | undefined;
|
|
37
|
+
set color(value: Color);
|
|
38
38
|
remove(): void;
|
|
39
39
|
}
|
|
40
40
|
declare function buildRun(init?: RunInit): XmlElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Color } from "document-schema.js";
|
|
2
2
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
3
3
|
//#region src/edit/odt/run.d.ts
|
|
4
4
|
interface RunInit {
|
|
@@ -9,7 +9,7 @@ interface RunInit {
|
|
|
9
9
|
readonly strike?: boolean;
|
|
10
10
|
readonly fontFamily?: string;
|
|
11
11
|
readonly sizePt?: number;
|
|
12
|
-
readonly color?:
|
|
12
|
+
readonly color?: Color;
|
|
13
13
|
}
|
|
14
14
|
declare class OdtRun {
|
|
15
15
|
private readonly container;
|
|
@@ -32,8 +32,8 @@ declare class OdtRun {
|
|
|
32
32
|
set fontFamily(value: string);
|
|
33
33
|
get sizePt(): number | undefined;
|
|
34
34
|
set sizePt(value: number);
|
|
35
|
-
get color():
|
|
36
|
-
set color(value:
|
|
35
|
+
get color(): Color | undefined;
|
|
36
|
+
set color(value: Color);
|
|
37
37
|
remove(): void;
|
|
38
38
|
}
|
|
39
39
|
declare function buildRun(pkg: Package, init?: RunInit): XmlElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Color } from "document-schema.js";
|
|
2
2
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
3
3
|
//#region src/edit/odt/run.d.ts
|
|
4
4
|
interface RunInit {
|
|
@@ -9,7 +9,7 @@ interface RunInit {
|
|
|
9
9
|
readonly strike?: boolean;
|
|
10
10
|
readonly fontFamily?: string;
|
|
11
11
|
readonly sizePt?: number;
|
|
12
|
-
readonly color?:
|
|
12
|
+
readonly color?: Color;
|
|
13
13
|
}
|
|
14
14
|
declare class OdtRun {
|
|
15
15
|
private readonly container;
|
|
@@ -32,8 +32,8 @@ declare class OdtRun {
|
|
|
32
32
|
set fontFamily(value: string);
|
|
33
33
|
get sizePt(): number | undefined;
|
|
34
34
|
set sizePt(value: number);
|
|
35
|
-
get color():
|
|
36
|
-
set color(value:
|
|
35
|
+
get color(): Color | undefined;
|
|
36
|
+
set color(value: Color);
|
|
37
37
|
remove(): void;
|
|
38
38
|
}
|
|
39
39
|
declare function buildRun(pkg: Package, init?: RunInit): XmlElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Color } from "document-schema.js";
|
|
2
2
|
import { XmlElement, XmlNode } from "ooxml.js";
|
|
3
3
|
//#region src/edit/docx/run.d.ts
|
|
4
4
|
declare function wordprocessingText(element: XmlElement): string;
|
|
@@ -10,7 +10,7 @@ interface RunInit {
|
|
|
10
10
|
readonly strike?: boolean;
|
|
11
11
|
readonly fontFamily?: string;
|
|
12
12
|
readonly sizePt?: number;
|
|
13
|
-
readonly color?:
|
|
13
|
+
readonly color?: Color;
|
|
14
14
|
}
|
|
15
15
|
declare class DocxRun {
|
|
16
16
|
private readonly container;
|
|
@@ -33,8 +33,8 @@ declare class DocxRun {
|
|
|
33
33
|
set fontFamily(value: string);
|
|
34
34
|
get sizePt(): number | undefined;
|
|
35
35
|
set sizePt(value: number);
|
|
36
|
-
get color():
|
|
37
|
-
set color(value:
|
|
36
|
+
get color(): Color | undefined;
|
|
37
|
+
set color(value: Color);
|
|
38
38
|
remove(): void;
|
|
39
39
|
}
|
|
40
40
|
declare function buildRun(init?: RunInit): XmlElement;
|