reamkit 1.23.0 → 1.24.0
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/esm/core/bmp.d.ts +33 -0
- package/dist/esm/core/bmp.js +276 -0
- package/dist/esm/core/document-model/types.d.ts +37 -0
- package/dist/esm/core/drawingml/chart-geometry.js +3 -2
- package/dist/esm/core/drawingml/diagram/colors.d.ts +52 -0
- package/dist/esm/core/drawingml/diagram/colors.js +125 -0
- package/dist/esm/core/drawingml/diagram/data-model.d.ts +47 -0
- package/dist/esm/core/drawingml/diagram/data-model.js +119 -0
- package/dist/esm/core/drawingml/diagram/layout-engine.d.ts +46 -0
- package/dist/esm/core/drawingml/diagram/layout-engine.js +948 -0
- package/dist/esm/core/drawingml/diagram/run.d.ts +37 -0
- package/dist/esm/core/drawingml/diagram/run.js +50 -0
- package/dist/esm/core/drawingml/diagram/to-drawing.d.ts +16 -0
- package/dist/esm/core/drawingml/diagram/to-drawing.js +86 -0
- package/dist/esm/core/drawingml/preset-geometry.js +116 -6
- package/dist/esm/core/drawingml/text-warp.d.ts +58 -0
- package/dist/esm/core/drawingml/text-warp.js +355 -0
- package/dist/esm/core/drawingml/theme-parser.js +9 -3
- package/dist/esm/core/font/measure.d.ts +12 -0
- package/dist/esm/core/font/measure.js +36 -0
- package/dist/esm/core/images.d.ts +30 -2
- package/dist/esm/core/images.js +121 -5
- package/dist/esm/core/metafile/emf.js +144 -16
- package/dist/esm/core/metafile/picture.d.ts +49 -0
- package/dist/esm/core/metafile/picture.js +70 -1
- package/dist/esm/core/metafile/wmf.js +53 -4
- package/dist/esm/core/ole/escher-blip.js +11 -1
- package/dist/esm/excel/print-model.js +2 -2
- package/dist/esm/excel/sheet-drawing.js +1 -1
- package/dist/esm/excel/sheet-to-flow.js +16 -2
- package/dist/esm/html/html-writer.js +2 -1
- package/dist/esm/layout/page-doc.d.ts +35 -0
- package/dist/esm/layout/page-doc.js +14 -1
- package/dist/esm/layout/styled-layout.js +176 -15
- package/dist/esm/pdf/shading.js +8 -6
- package/dist/esm/pdf/styled-page-emitter.js +42 -3
- package/dist/esm/pdf/vector-graphics.js +1 -1
- package/dist/esm/pdf-reader/image-decode.js +1 -1
- package/dist/esm/pptx/ppt/ppt-reader.js +95 -27
- package/dist/esm/pptx/ppt/ppt-text.d.ts +41 -0
- package/dist/esm/pptx/ppt/ppt-text.js +327 -37
- package/dist/esm/pptx/pptx-reader.js +90 -10
- package/dist/esm/pptx/slide-parser.d.ts +4 -1
- package/dist/esm/pptx/slide-parser.js +99 -13
- package/dist/esm/pptx/sp-helpers.d.ts +7 -3
- package/dist/esm/pptx/sp-helpers.js +45 -7
- package/dist/esm/pptx/table-style.d.ts +7 -0
- package/dist/esm/pptx/table-style.js +59 -7
- package/dist/esm/svg/svg-writer.js +1 -0
- package/dist/esm/word/document-parser.d.ts +4 -1
- package/dist/esm/word/document-parser.js +4 -1
- package/dist/esm/word/docx-reader.js +26 -13
- package/dist/esm/word/docx-writer.js +4 -0
- package/dist/esm/word/drawing-parser.d.ts +20 -0
- package/dist/esm/word/drawing-parser.js +37 -4
- package/dist/esm/word/table-parser.js +3 -0
- package/package.json +1 -1
|
@@ -28,6 +28,18 @@ export interface PptParagraph {
|
|
|
28
28
|
* carries none.
|
|
29
29
|
*/
|
|
30
30
|
readonly bullet?: string;
|
|
31
|
+
/**
|
|
32
|
+
* §2.9.20 `leftMargin` — where the paragraph's BODY sits, in points from the
|
|
33
|
+
* text box's own left edge.
|
|
34
|
+
*/
|
|
35
|
+
readonly leftMarginPt?: number;
|
|
36
|
+
/** §2.9.20 `indent` — where its FIRST line starts. Left of the body ⇒ hanging. */
|
|
37
|
+
readonly indentPt?: number;
|
|
38
|
+
/** §2.9.32 `lineSpacing`, as a PERCENTAGE of the line's height — 100 is single. */
|
|
39
|
+
readonly lineSpacing?: number;
|
|
40
|
+
/** §2.9.32 `spaceBefore` / `spaceAfter`, in points. */
|
|
41
|
+
readonly spaceBeforePt?: number;
|
|
42
|
+
readonly spaceAfterPt?: number;
|
|
31
43
|
}
|
|
32
44
|
/**
|
|
33
45
|
* An embedded picture referenced by a slide shape — the raw image bytes pulled
|
|
@@ -35,6 +47,22 @@ export interface PptParagraph {
|
|
|
35
47
|
*/
|
|
36
48
|
export interface PptImage {
|
|
37
49
|
readonly bytes: Uint8Array;
|
|
50
|
+
/**
|
|
51
|
+
* §2.3.23 `cropFrom*` — the fraction of each edge of the SOURCE cut away
|
|
52
|
+
* before it is fitted to the shape's box. Absent ⇒ the whole picture.
|
|
53
|
+
*/
|
|
54
|
+
readonly crop?: {
|
|
55
|
+
readonly left: number;
|
|
56
|
+
readonly top: number;
|
|
57
|
+
readonly right: number;
|
|
58
|
+
readonly bottom: number;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* §2.3.23 `pictureTransparent` — the colour the picture is drawn WITHOUT,
|
|
62
|
+
* 6-hex and no leading `#`. Clip art of this age states its ground here
|
|
63
|
+
* rather than carrying an alpha channel.
|
|
64
|
+
*/
|
|
65
|
+
readonly transparentHex?: string;
|
|
38
66
|
}
|
|
39
67
|
/** A shape's rectangle on the slide, in points (from the OfficeArtClientAnchor). */
|
|
40
68
|
export interface PptRect {
|
|
@@ -99,6 +127,12 @@ export interface PptAutoShape {
|
|
|
99
127
|
readonly toHex: string;
|
|
100
128
|
readonly angleDeg: number;
|
|
101
129
|
readonly radial: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* §2.3.7.6 `fillFocus` — where along the sweep the FIRST colour peaks, as a
|
|
132
|
+
* percentage. Zero is a plain ramp; 50 puts it in the middle with the
|
|
133
|
+
* second colour at both ends, which is a different picture entirely.
|
|
134
|
+
*/
|
|
135
|
+
readonly focusPct?: number;
|
|
102
136
|
};
|
|
103
137
|
/**
|
|
104
138
|
* §2.3.7.1 MSOFILLTYPE 3 — a picture stretched over the shape, its blip named
|
|
@@ -138,6 +172,13 @@ export interface PptShape {
|
|
|
138
172
|
* of them would carry "Click to edit Master title style".
|
|
139
173
|
*/
|
|
140
174
|
readonly placeholder?: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* §2.9.51 `OEPlaceholderAtom.placeholderId` — WHICH placeholder it is. The
|
|
177
|
+
* three a master keeps for the slide's furniture — 7 the date, 8 the slide
|
|
178
|
+
* number, 9 the footer — are the only ones whose text does not live in the
|
|
179
|
+
* shape at all (§2.4.15).
|
|
180
|
+
*/
|
|
181
|
+
readonly placeholderId?: number;
|
|
141
182
|
readonly paragraphs?: ReadonlyArray<PptParagraph>;
|
|
142
183
|
readonly image?: PptImage;
|
|
143
184
|
readonly autoShape?: PptAutoShape;
|