deckjsx 0.5.0 → 0.6.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.
@@ -1,245 +0,0 @@
1
- import { F as BorderStyle, Tt as VerticalAlign, _t as StrokeLineCap, gt as StrokeDashType, it as CssVisibility, t as BackendName, vt as StrokeLineJoin, yt as TextFit } from "./index-sb451NVh.mjs";
2
-
3
- //#region src/ir/index.d.ts
4
- type PresentationIR = {
5
- version: "0.1";
6
- meta?: {
7
- title?: string;
8
- author?: string;
9
- subject?: string;
10
- };
11
- size: SizeIR;
12
- slides: ReadonlyArray<SlideIR>;
13
- };
14
- type SizeIR = {
15
- widthEmu: number;
16
- heightEmu: number;
17
- };
18
- type FrameIR = SizeIR & {
19
- xEmu: number;
20
- yEmu: number;
21
- };
22
- type SlideIR = {
23
- id: string;
24
- name?: string;
25
- background?: FillIR;
26
- backgroundLayers?: ReadonlyArray<BackgroundLayerIR>;
27
- nodes: ReadonlyArray<NodeIR>;
28
- };
29
- type NodeIR = GroupIR | TextIR | ImageIR | ShapeIR;
30
- type BaseNodeIR = {
31
- id: string;
32
- frame: FrameIR;
33
- opacity?: number;
34
- rotation?: number;
35
- zIndex?: number;
36
- visibility?: CssVisibility;
37
- flipH?: boolean;
38
- flipV?: boolean;
39
- };
40
- type ShadowIR = {
41
- type: "outer" | "inner";
42
- color: string;
43
- opacity?: number;
44
- blurPt?: number;
45
- offsetPt?: number;
46
- angle?: number;
47
- };
48
- type HyperlinkIR = {
49
- url: string;
50
- tooltip?: string;
51
- };
52
- type ObjectPositionIR = {
53
- x: number;
54
- y: number;
55
- };
56
- type ImageCropIR = {
57
- top: number;
58
- right: number;
59
- bottom: number;
60
- left: number;
61
- };
62
- type GroupIR = BaseNodeIR & {
63
- kind: "group";
64
- children: ReadonlyArray<NodeIR>;
65
- fill?: FillIR;
66
- backgroundLayers?: ReadonlyArray<BackgroundLayerIR>;
67
- stroke?: StrokeIR;
68
- edgeStrokes?: EdgeStrokeIR;
69
- outline?: StrokeIR;
70
- shadow?: ShadowIR;
71
- radiusEmu?: number;
72
- };
73
- type TextIR = BaseNodeIR & {
74
- kind: "text";
75
- content: TextContentIR;
76
- style: TextStyleIR;
77
- fill?: FillIR;
78
- backgroundLayers?: ReadonlyArray<BackgroundLayerIR>;
79
- stroke?: StrokeIR;
80
- edgeStrokes?: EdgeStrokeIR;
81
- outline?: StrokeIR;
82
- shadow?: ShadowIR;
83
- hyperlink?: HyperlinkIR;
84
- radiusEmu?: number;
85
- };
86
- type ImageIR = BaseNodeIR & {
87
- kind: "image";
88
- sourceFrame: FrameIR;
89
- source: ImageSourceIR;
90
- fit: "contain" | "cover" | "stretch";
91
- objectPosition?: ObjectPositionIR;
92
- crop?: ImageCropIR;
93
- transparency?: number;
94
- rounding?: boolean;
95
- shadow?: ShadowIR;
96
- hyperlink?: HyperlinkIR;
97
- };
98
- type ShapeIR = BaseNodeIR & {
99
- kind: "shape";
100
- shape: "rect" | "ellipse" | "line";
101
- fill?: FillIR;
102
- backgroundLayers?: ReadonlyArray<BackgroundLayerIR>;
103
- stroke?: StrokeIR;
104
- edgeStrokes?: EdgeStrokeIR;
105
- outline?: StrokeIR;
106
- shadow?: ShadowIR;
107
- hyperlink?: HyperlinkIR;
108
- radiusEmu?: number;
109
- };
110
- type SolidFillIR = {
111
- kind: "solid";
112
- color: string;
113
- transparency?: number;
114
- frame?: FrameIR;
115
- };
116
- type LinearGradientStopIR = {
117
- color: string;
118
- transparency?: number;
119
- position: number;
120
- };
121
- type LinearGradientFillIR = {
122
- kind: "linear-gradient";
123
- angle: number;
124
- stops: ReadonlyArray<LinearGradientStopIR>;
125
- frame?: FrameIR;
126
- };
127
- type RadialGradientFillIR = {
128
- kind: "radial-gradient";
129
- shape: "circle" | "ellipse";
130
- center: {
131
- x: number;
132
- y: number;
133
- };
134
- radius: {
135
- x: number;
136
- y: number;
137
- };
138
- stops: ReadonlyArray<LinearGradientStopIR>;
139
- frame?: FrameIR;
140
- };
141
- type BackgroundImageLayerIR = {
142
- kind: "background-image";
143
- frame: FrameIR;
144
- sourceFrame: FrameIR;
145
- source: ImageSourceIR;
146
- fit: "contain" | "cover" | "stretch" | "size";
147
- size?: {
148
- widthEmu?: number;
149
- heightEmu?: number;
150
- };
151
- repeat: "no-repeat" | "repeat-x" | "repeat-y" | "repeat";
152
- objectPosition?: ObjectPositionIR;
153
- transparency?: number;
154
- };
155
- type FillIR = SolidFillIR | LinearGradientFillIR | RadialGradientFillIR;
156
- type BackgroundLayerIR = FillIR | BackgroundImageLayerIR;
157
- type StrokeIR = {
158
- color: string;
159
- widthPt: number;
160
- style?: BorderStyle;
161
- dashType?: StrokeDashType;
162
- lineCap?: StrokeLineCap;
163
- lineJoin?: StrokeLineJoin;
164
- transparency?: number;
165
- };
166
- type EdgeStrokeIR = {
167
- top?: StrokeIR;
168
- right?: StrokeIR;
169
- bottom?: StrokeIR;
170
- left?: StrokeIR;
171
- };
172
- type TextContentIR = {
173
- text: string;
174
- runs?: ReadonlyArray<TextRunIR>;
175
- };
176
- type TextRunIR = {
177
- text: string;
178
- style?: TextStyleIR;
179
- };
180
- type TextTabStopIR = {
181
- positionIn: number;
182
- alignment?: "l" | "r" | "ctr" | "dec";
183
- };
184
- type TextBulletListIR = {
185
- type: "bullet";
186
- characterCode?: string;
187
- indentPt?: number;
188
- };
189
- type TextNumberListIR = {
190
- type: "number";
191
- style: "arabicPeriod" | "alphaLcPeriod" | "alphaUcPeriod" | "romanLcPeriod" | "romanUcPeriod";
192
- startAt?: number;
193
- indentPt?: number;
194
- };
195
- type TextNoListIR = {
196
- type: "none";
197
- };
198
- type TextListIR = TextBulletListIR | TextNumberListIR | TextNoListIR;
199
- type TextStyleIR = {
200
- fontFamily?: string;
201
- fontSizePt?: number;
202
- fontWeight?: number | "normal" | "bold";
203
- italic?: boolean;
204
- underline?: boolean;
205
- underlineStyle?: "dash" | "dbl" | "dotted" | "none" | "sng" | "wavy";
206
- underlineColor?: string;
207
- strike?: boolean;
208
- rtlMode?: boolean;
209
- textDirection?: "horz" | "vert" | "vert270";
210
- superscript?: boolean;
211
- subscript?: boolean;
212
- color?: string;
213
- textAlign?: "left" | "center" | "right" | "justify";
214
- verticalAlign?: VerticalAlign;
215
- paddingPt?: [number, number, number, number];
216
- lineSpacing?: number;
217
- lineSpacingMultiple?: number;
218
- paragraphSpacingBefore?: number;
219
- paragraphSpacingAfter?: number;
220
- textIndentPt?: number;
221
- tabStops?: ReadonlyArray<TextTabStopIR>;
222
- charSpacing?: number;
223
- list?: TextListIR;
224
- fit?: TextFit;
225
- wrap?: boolean;
226
- };
227
- type ImageSourceIR = {
228
- kind: "path";
229
- path: string;
230
- } | {
231
- kind: "data";
232
- data: string;
233
- };
234
- type BackendArtifact = {
235
- kind: "buffer";
236
- mimeType: string;
237
- data: Uint8Array;
238
- extension: string;
239
- };
240
- type CompileBackend = {
241
- name: BackendName;
242
- emit(ir: PresentationIR): Promise<BackendArtifact>;
243
- };
244
- //#endregion
245
- export { TextNoListIR as A, SlideIR as C, TextContentIR as D, TextBulletListIR as E, TextRunIR as M, TextStyleIR as N, TextIR as O, TextTabStopIR as P, SizeIR as S, StrokeIR as T, ObjectPositionIR as _, CompileBackend as a, ShadowIR as b, FrameIR as c, ImageCropIR as d, ImageIR as f, NodeIR as g, LinearGradientStopIR as h, BaseNodeIR as i, TextNumberListIR as j, TextListIR as k, GroupIR as l, LinearGradientFillIR as m, BackgroundImageLayerIR as n, EdgeStrokeIR as o, ImageSourceIR as p, BackgroundLayerIR as r, FillIR as s, BackendArtifact as t, HyperlinkIR as u, PresentationIR as v, SolidFillIR as w, ShapeIR as x, RadialGradientFillIR as y };
package/dist/legacy.d.mts DELETED
@@ -1,6 +0,0 @@
1
- import { A as TextNoListIR, C as SlideIR, D as TextContentIR, E as TextBulletListIR, M as TextRunIR, N as TextStyleIR, O as TextIR, P as TextTabStopIR, S as SizeIR, T as StrokeIR, _ as ObjectPositionIR, a as CompileBackend, b as ShadowIR, c as FrameIR, d as ImageCropIR, f as ImageIR, g as NodeIR, h as LinearGradientStopIR, i as BaseNodeIR, j as TextNumberListIR, k as TextListIR, l as GroupIR, m as LinearGradientFillIR, n as BackgroundImageLayerIR, o as EdgeStrokeIR, p as ImageSourceIR, r as BackgroundLayerIR, s as FillIR, t as BackendArtifact, u as HyperlinkIR, v as PresentationIR, w as SolidFillIR, x as ShapeIR, y as RadialGradientFillIR } from "./index-_eBM2cs3.mjs";
2
-
3
- //#region src/backends/pptxgenjs.d.ts
4
- declare function pptxgenjsBackend(): CompileBackend;
5
- //#endregion
6
- export { type BackendArtifact, type BackgroundImageLayerIR, type BackgroundLayerIR, type BaseNodeIR, type CompileBackend, type EdgeStrokeIR, type FillIR, type FrameIR, type GroupIR, type HyperlinkIR, type ImageCropIR, type ImageIR, type ImageSourceIR, type LinearGradientFillIR, type LinearGradientStopIR, type NodeIR, type ObjectPositionIR, type PresentationIR, type RadialGradientFillIR, type ShadowIR, type ShapeIR, type SizeIR, type SlideIR, type SolidFillIR, type StrokeIR, type TextBulletListIR, type TextContentIR, type TextIR, type TextListIR, type TextNoListIR, type TextNumberListIR, type TextRunIR, type TextStyleIR, type TextTabStopIR, pptxgenjsBackend };
package/dist/legacy.mjs DELETED
@@ -1,2 +0,0 @@
1
- import { t as pptxgenjsBackend } from "./pptxgenjs-BTMKb1WX.mjs";
2
- export { pptxgenjsBackend };