@lemonppt/renderer 0.2.0 → 0.2.1
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/client/client-render.js +65 -5401
- package/dist/client/editor-script.js +3355 -0
- package/dist/client/theme-echarts.js +65 -25
- package/dist/client-render.d.ts +1 -7
- package/dist/client-render.d.ts.map +1 -1
- package/dist/client-render.js +1 -11
- package/dist/client-render.js.map +1 -1
- package/dist/editor-script.d.ts +1 -1
- package/dist/editor-script.d.ts.map +1 -1
- package/dist/editor-script.js +80 -77
- package/dist/editor-script.js.map +1 -1
- package/dist/export-pdf.js +1 -1
- package/dist/export-pdf.js.map +1 -1
- package/dist/export-pptx.d.ts +1132 -2
- package/dist/export-pptx.d.ts.map +1 -1
- package/dist/export-pptx.js +1208 -19525
- package/dist/export-pptx.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/render-editor-data.d.ts +21 -0
- package/dist/render-editor-data.d.ts.map +1 -0
- package/dist/render-editor-data.js +1068 -0
- package/dist/render-editor-data.js.map +1 -0
- package/dist/render.d.ts +0 -2
- package/dist/render.d.ts.map +1 -1
- package/dist/render.js +7 -323
- package/dist/render.js.map +1 -1
- package/dist/theme01-pptx.d.ts +12 -0
- package/dist/theme01-pptx.d.ts.map +1 -0
- package/dist/theme01-pptx.js +2954 -0
- package/dist/theme01-pptx.js.map +1 -0
- package/dist/theme02-pptx.d.ts +5 -0
- package/dist/theme02-pptx.d.ts.map +1 -0
- package/dist/theme02-pptx.js +1063 -0
- package/dist/theme02-pptx.js.map +1 -0
- package/dist/theme03-pptx.d.ts +5 -0
- package/dist/theme03-pptx.d.ts.map +1 -0
- package/dist/theme03-pptx.js +3279 -0
- package/dist/theme03-pptx.js.map +1 -0
- package/dist/theme04-pptx.d.ts +6 -0
- package/dist/theme04-pptx.d.ts.map +1 -0
- package/dist/theme04-pptx.js +5496 -0
- package/dist/theme04-pptx.js.map +1 -0
- package/dist/theme05-pptx.d.ts +5 -0
- package/dist/theme05-pptx.d.ts.map +1 -0
- package/dist/theme05-pptx.js +3152 -0
- package/dist/theme05-pptx.js.map +1 -0
- package/dist/theme06-pptx.d.ts +124 -0
- package/dist/theme06-pptx.d.ts.map +1 -0
- package/dist/theme06-pptx.js +8154 -0
- package/dist/theme06-pptx.js.map +1 -0
- package/dist/theme07-pptx.d.ts +49 -0
- package/dist/theme07-pptx.d.ts.map +1 -0
- package/dist/theme07-pptx.js +2579 -0
- package/dist/theme07-pptx.js.map +1 -0
- package/dist/theme08-pptx.d.ts +19 -0
- package/dist/theme08-pptx.d.ts.map +1 -0
- package/dist/theme08-pptx.js +1411 -0
- package/dist/theme08-pptx.js.map +1 -0
- package/dist/theme09-pptx.d.ts +18 -0
- package/dist/theme09-pptx.d.ts.map +1 -0
- package/dist/theme09-pptx.js +1513 -0
- package/dist/theme09-pptx.js.map +1 -0
- package/dist/theme10-pptx.d.ts +18 -0
- package/dist/theme10-pptx.d.ts.map +1 -0
- package/dist/theme10-pptx.js +2889 -0
- package/dist/theme10-pptx.js.map +1 -0
- package/package.json +7 -6
- package/templates/editor.html +580 -0
- package/templates/editor.js +222 -0
package/dist/export-pptx.d.ts
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import type { DeckGoal } from '@lemonppt/core';
|
|
2
2
|
import { type Slide as PptxSlide } from 'pptxgenjs';
|
|
3
|
+
export { renderChartV1, renderContentV1, renderCoverV1, renderClosing, renderComparisonV1 } from './theme01-pptx.js';
|
|
4
|
+
interface PptxElementConfig {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
w?: number;
|
|
8
|
+
h?: number;
|
|
9
|
+
fontSize?: number;
|
|
10
|
+
align?: 'left' | 'center' | 'right';
|
|
11
|
+
bold?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/** Get layout coordinates by layout ID */
|
|
14
|
+
export declare function getLayoutCoordinates(layoutId: string): Record<string, any>;
|
|
3
15
|
export interface PptxExportOptions {
|
|
4
16
|
outFile: string;
|
|
5
17
|
title?: string;
|
|
@@ -30,8 +42,1126 @@ export declare let COLORS: ThemeColors;
|
|
|
30
42
|
export declare let FONTS: ThemeFonts;
|
|
31
43
|
export declare let CHART_COLORS: string[];
|
|
32
44
|
export declare function exportDeckToPptx(goal: DeckGoal, options: PptxExportOptions): Promise<void>;
|
|
45
|
+
/**
|
|
46
|
+
* 通用元素渲染函数 - 从坐标配置读取位置和样式
|
|
47
|
+
* 这是解决版式错位问题的核心:所有布局坐标都从配置文件读取,
|
|
48
|
+
* 而不是在渲染函数中硬编码。
|
|
49
|
+
*/
|
|
50
|
+
export declare function renderElementFromConfig(slide: PptxSlide, text: string | undefined, config: PptxElementConfig, options?: {
|
|
51
|
+
color?: string;
|
|
52
|
+
fontFace?: string;
|
|
53
|
+
}): boolean;
|
|
54
|
+
export interface Theme06CoverProps {
|
|
55
|
+
tag?: string;
|
|
56
|
+
title: string;
|
|
57
|
+
subtitle?: string;
|
|
58
|
+
imageUrl?: string;
|
|
59
|
+
metrics?: Array<{
|
|
60
|
+
value?: string;
|
|
61
|
+
unit?: string;
|
|
62
|
+
label?: string;
|
|
63
|
+
accent?: boolean;
|
|
64
|
+
}>;
|
|
65
|
+
footnoteLeft?: string;
|
|
66
|
+
footnoteRight?: string;
|
|
67
|
+
}
|
|
68
|
+
/** Theme06 图谱封面专用渲染器 */
|
|
69
|
+
export interface Theme06BigNumberProps {
|
|
70
|
+
kicker?: string;
|
|
71
|
+
title?: string;
|
|
72
|
+
number?: string;
|
|
73
|
+
unit?: string;
|
|
74
|
+
label?: string;
|
|
75
|
+
description?: string;
|
|
76
|
+
supporting?: Array<{
|
|
77
|
+
value?: string;
|
|
78
|
+
label?: string;
|
|
79
|
+
}>;
|
|
80
|
+
}
|
|
81
|
+
/** Theme06 大数字页专用渲染器 */
|
|
82
|
+
export interface Theme06ChapterProps {
|
|
83
|
+
topLeftLabel?: string;
|
|
84
|
+
topRightLabel?: string;
|
|
85
|
+
tag?: string;
|
|
86
|
+
number?: string;
|
|
87
|
+
title?: string;
|
|
88
|
+
subtitle?: string;
|
|
89
|
+
enSubtitle?: string;
|
|
90
|
+
tags?: Array<string | {
|
|
91
|
+
item?: string;
|
|
92
|
+
}>;
|
|
93
|
+
nextHint?: string;
|
|
94
|
+
imageUrl?: string;
|
|
95
|
+
}
|
|
96
|
+
export interface Theme06ClosingProps {
|
|
97
|
+
kicker?: string;
|
|
98
|
+
title?: string;
|
|
99
|
+
subtitle?: string;
|
|
100
|
+
links?: Array<{
|
|
101
|
+
label?: string;
|
|
102
|
+
value?: string;
|
|
103
|
+
}>;
|
|
104
|
+
cta?: string;
|
|
105
|
+
imageUrl?: string;
|
|
106
|
+
}
|
|
107
|
+
export interface Theme06TimelineProps {
|
|
108
|
+
kicker?: string;
|
|
109
|
+
title?: string;
|
|
110
|
+
subtitle?: string;
|
|
111
|
+
phases?: Array<{
|
|
112
|
+
date?: string;
|
|
113
|
+
title?: string;
|
|
114
|
+
description?: string;
|
|
115
|
+
}>;
|
|
116
|
+
footnote?: string;
|
|
117
|
+
}
|
|
118
|
+
export interface Theme06MilestoneProps {
|
|
119
|
+
kicker?: string;
|
|
120
|
+
title?: string;
|
|
121
|
+
subtitle?: string;
|
|
122
|
+
milestones?: Array<{
|
|
123
|
+
date?: string;
|
|
124
|
+
title?: string;
|
|
125
|
+
value?: string;
|
|
126
|
+
description?: string;
|
|
127
|
+
focus?: boolean;
|
|
128
|
+
}>;
|
|
129
|
+
}
|
|
130
|
+
export interface Theme06MetricShowcaseProps {
|
|
131
|
+
kicker?: string;
|
|
132
|
+
title?: string;
|
|
133
|
+
subtitle?: string;
|
|
134
|
+
value?: string;
|
|
135
|
+
unit?: string;
|
|
136
|
+
change?: string;
|
|
137
|
+
changeLabel?: string;
|
|
138
|
+
supporting?: Array<{
|
|
139
|
+
value?: string;
|
|
140
|
+
label?: string;
|
|
141
|
+
}>;
|
|
142
|
+
}
|
|
143
|
+
export interface Theme06RiskMatrixProps {
|
|
144
|
+
kicker?: string;
|
|
145
|
+
title?: string;
|
|
146
|
+
subtitle?: string;
|
|
147
|
+
cells?: Array<{
|
|
148
|
+
level?: string;
|
|
149
|
+
title?: string;
|
|
150
|
+
description?: string;
|
|
151
|
+
focus?: boolean;
|
|
152
|
+
}>;
|
|
153
|
+
xAxisLabel?: string;
|
|
154
|
+
yAxisLabel?: string;
|
|
155
|
+
}
|
|
156
|
+
export interface Theme06SummaryProps {
|
|
157
|
+
kicker?: string;
|
|
158
|
+
title?: string;
|
|
159
|
+
subtitle?: string;
|
|
160
|
+
points?: Array<{
|
|
161
|
+
text?: string;
|
|
162
|
+
}>;
|
|
163
|
+
conclusion?: {
|
|
164
|
+
value?: string;
|
|
165
|
+
valueLabel?: string;
|
|
166
|
+
valueDescription?: string;
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
export interface Theme06QuoteProps {
|
|
170
|
+
accentBar?: boolean;
|
|
171
|
+
quote?: string;
|
|
172
|
+
quoteMark?: string;
|
|
173
|
+
source?: string;
|
|
174
|
+
}
|
|
175
|
+
export interface Theme06ProcessProps {
|
|
176
|
+
kicker?: string;
|
|
177
|
+
title?: string;
|
|
178
|
+
subtitle?: string;
|
|
179
|
+
steps?: Array<{
|
|
180
|
+
title?: string;
|
|
181
|
+
description?: string;
|
|
182
|
+
}>;
|
|
183
|
+
}
|
|
184
|
+
export interface Theme06ListBasedProps {
|
|
185
|
+
kicker?: string;
|
|
186
|
+
title?: string;
|
|
187
|
+
subtitle?: string;
|
|
188
|
+
points?: Array<{
|
|
189
|
+
text?: string;
|
|
190
|
+
}>;
|
|
191
|
+
steps?: Array<{
|
|
192
|
+
date?: string;
|
|
193
|
+
title?: string;
|
|
194
|
+
description?: string;
|
|
195
|
+
}>;
|
|
196
|
+
valueCard?: {
|
|
197
|
+
value?: string;
|
|
198
|
+
valueLabel?: string;
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
export interface Theme06StatementProps {
|
|
202
|
+
kicker?: string;
|
|
203
|
+
statement?: string;
|
|
204
|
+
subtitle?: string;
|
|
205
|
+
points?: Array<{
|
|
206
|
+
text?: string;
|
|
207
|
+
}>;
|
|
208
|
+
source?: string;
|
|
209
|
+
}
|
|
210
|
+
export interface Theme06SourcesProps {
|
|
211
|
+
kicker?: string;
|
|
212
|
+
title?: string;
|
|
213
|
+
subtitle?: string;
|
|
214
|
+
sources?: Array<{
|
|
215
|
+
text?: string;
|
|
216
|
+
}>;
|
|
217
|
+
}
|
|
218
|
+
export interface Theme06CaseProps {
|
|
219
|
+
kicker?: string;
|
|
220
|
+
title?: string;
|
|
221
|
+
subtitle?: string;
|
|
222
|
+
company?: string;
|
|
223
|
+
tagline?: string;
|
|
224
|
+
metrics?: Array<{
|
|
225
|
+
value?: string;
|
|
226
|
+
label?: string;
|
|
227
|
+
}>;
|
|
228
|
+
cards?: Array<{
|
|
229
|
+
label?: string;
|
|
230
|
+
text?: string;
|
|
231
|
+
}>;
|
|
232
|
+
items?: Array<{
|
|
233
|
+
number?: string;
|
|
234
|
+
title?: string;
|
|
235
|
+
description?: string;
|
|
236
|
+
meta?: string;
|
|
237
|
+
}>;
|
|
238
|
+
imageUrl?: string;
|
|
239
|
+
insight?: string;
|
|
240
|
+
footnote?: string;
|
|
241
|
+
}
|
|
242
|
+
export interface Theme06TocProps {
|
|
243
|
+
kicker?: string;
|
|
244
|
+
title?: string;
|
|
245
|
+
subtitle?: string;
|
|
246
|
+
items?: Array<{
|
|
247
|
+
number?: string;
|
|
248
|
+
title?: string;
|
|
249
|
+
page?: string;
|
|
250
|
+
}>;
|
|
251
|
+
}
|
|
252
|
+
export interface Theme06CoverVariantProps {
|
|
253
|
+
imageUrl?: string;
|
|
254
|
+
badge?: string;
|
|
255
|
+
tag?: string;
|
|
256
|
+
headline?: string;
|
|
257
|
+
hero?: string;
|
|
258
|
+
title: string;
|
|
259
|
+
subtitle?: string;
|
|
260
|
+
kpis?: Array<{
|
|
261
|
+
value?: string;
|
|
262
|
+
unit?: string;
|
|
263
|
+
label?: string;
|
|
264
|
+
}>;
|
|
265
|
+
metrics?: Array<{
|
|
266
|
+
value?: string;
|
|
267
|
+
unit?: string;
|
|
268
|
+
label?: string;
|
|
269
|
+
}>;
|
|
270
|
+
bars?: Array<{
|
|
271
|
+
label?: string;
|
|
272
|
+
value?: string;
|
|
273
|
+
unit?: string;
|
|
274
|
+
progress?: number;
|
|
275
|
+
}>;
|
|
276
|
+
channels?: Array<{
|
|
277
|
+
name?: string;
|
|
278
|
+
metric?: string;
|
|
279
|
+
}>;
|
|
280
|
+
footnoteLeft?: string;
|
|
281
|
+
footnoteRight?: string;
|
|
282
|
+
[key: string]: unknown;
|
|
283
|
+
}
|
|
284
|
+
export interface Theme06ContentNumberedProps {
|
|
285
|
+
imageUrl?: string;
|
|
286
|
+
kicker?: string;
|
|
287
|
+
title: string;
|
|
288
|
+
titleAccent?: string;
|
|
289
|
+
subtitle?: string;
|
|
290
|
+
items?: Array<{
|
|
291
|
+
number?: string;
|
|
292
|
+
title?: string;
|
|
293
|
+
enLabel?: string;
|
|
294
|
+
active?: boolean;
|
|
295
|
+
}>;
|
|
296
|
+
footnote?: string;
|
|
297
|
+
[key: string]: unknown;
|
|
298
|
+
}
|
|
299
|
+
export interface Theme06MatrixProps {
|
|
300
|
+
kicker?: string;
|
|
301
|
+
title?: string;
|
|
302
|
+
subtitle?: string;
|
|
303
|
+
cells?: Array<{
|
|
304
|
+
title?: string;
|
|
305
|
+
description?: string;
|
|
306
|
+
focus?: boolean;
|
|
307
|
+
level?: string;
|
|
308
|
+
}>;
|
|
309
|
+
xAxisLabel?: string;
|
|
310
|
+
yAxisLabel?: string;
|
|
311
|
+
}
|
|
312
|
+
export interface Theme06RankProps {
|
|
313
|
+
kicker?: string;
|
|
314
|
+
title?: string;
|
|
315
|
+
subtitle?: string;
|
|
316
|
+
rows?: Array<{
|
|
317
|
+
name?: string;
|
|
318
|
+
value?: string;
|
|
319
|
+
change?: string;
|
|
320
|
+
highlight?: boolean;
|
|
321
|
+
}>;
|
|
322
|
+
}
|
|
323
|
+
export interface Theme06ComparisonProps {
|
|
324
|
+
kicker?: string;
|
|
325
|
+
title?: string;
|
|
326
|
+
subtitle?: string;
|
|
327
|
+
leftTitle?: string;
|
|
328
|
+
rightTitle?: string;
|
|
329
|
+
points?: Array<{
|
|
330
|
+
left?: string;
|
|
331
|
+
right?: string;
|
|
332
|
+
winner?: 'left' | 'right';
|
|
333
|
+
}>;
|
|
334
|
+
summaryLeft?: string;
|
|
335
|
+
summaryRight?: string;
|
|
336
|
+
}
|
|
337
|
+
export interface Theme06BentoProps {
|
|
338
|
+
kicker?: string;
|
|
339
|
+
title?: string;
|
|
340
|
+
subtitle?: string;
|
|
341
|
+
items?: Array<{
|
|
342
|
+
value?: string;
|
|
343
|
+
title?: string;
|
|
344
|
+
description?: string;
|
|
345
|
+
accent?: boolean;
|
|
346
|
+
}>;
|
|
347
|
+
}
|
|
348
|
+
export interface Theme06TriadProps {
|
|
349
|
+
kicker?: string;
|
|
350
|
+
title?: string;
|
|
351
|
+
subtitle?: string;
|
|
352
|
+
items?: Array<{
|
|
353
|
+
value?: string;
|
|
354
|
+
title?: string;
|
|
355
|
+
description?: string;
|
|
356
|
+
accent?: boolean;
|
|
357
|
+
}>;
|
|
358
|
+
}
|
|
359
|
+
export interface Theme06TechLandscapeProps {
|
|
360
|
+
kicker?: string;
|
|
361
|
+
title?: string;
|
|
362
|
+
subtitle?: string;
|
|
363
|
+
topics?: Array<{
|
|
364
|
+
value?: string;
|
|
365
|
+
title?: string;
|
|
366
|
+
description?: string;
|
|
367
|
+
accent?: boolean;
|
|
368
|
+
}>;
|
|
369
|
+
}
|
|
370
|
+
export interface Theme06ChainFlowProps {
|
|
371
|
+
kicker?: string;
|
|
372
|
+
title?: string;
|
|
373
|
+
subtitle?: string;
|
|
374
|
+
steps?: Array<{
|
|
375
|
+
label?: string;
|
|
376
|
+
description?: string;
|
|
377
|
+
value?: string;
|
|
378
|
+
}>;
|
|
379
|
+
footnote?: string;
|
|
380
|
+
}
|
|
381
|
+
export interface Theme06DealMapProps {
|
|
382
|
+
kicker?: string;
|
|
383
|
+
title?: string;
|
|
384
|
+
subtitle?: string;
|
|
385
|
+
nodes?: Array<{
|
|
386
|
+
name?: string;
|
|
387
|
+
category?: number;
|
|
388
|
+
}>;
|
|
389
|
+
conclusion?: string;
|
|
390
|
+
}
|
|
391
|
+
export interface Theme06SectorSpotlightProps {
|
|
392
|
+
kicker?: string;
|
|
393
|
+
title?: string;
|
|
394
|
+
subtitle?: string;
|
|
395
|
+
takeaways?: string[];
|
|
396
|
+
highlights?: Array<{
|
|
397
|
+
value?: string;
|
|
398
|
+
label?: string;
|
|
399
|
+
accent?: boolean;
|
|
400
|
+
}>;
|
|
401
|
+
insight?: {
|
|
402
|
+
value?: string;
|
|
403
|
+
label?: string;
|
|
404
|
+
description?: string;
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
export interface Theme06CompanyProfileProps {
|
|
408
|
+
kicker?: string;
|
|
409
|
+
title?: string;
|
|
410
|
+
subtitle?: string;
|
|
411
|
+
company?: string;
|
|
412
|
+
tagline?: string;
|
|
413
|
+
facts?: Array<{
|
|
414
|
+
label?: string;
|
|
415
|
+
value?: string;
|
|
416
|
+
}>;
|
|
417
|
+
metrics?: Array<{
|
|
418
|
+
value?: string;
|
|
419
|
+
label?: string;
|
|
420
|
+
}>;
|
|
421
|
+
narrative?: {
|
|
422
|
+
challenge?: string;
|
|
423
|
+
solution?: string;
|
|
424
|
+
result?: string;
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
export interface Theme06CompanySpotlightProps {
|
|
428
|
+
kicker?: string;
|
|
429
|
+
title?: string;
|
|
430
|
+
subtitle?: string;
|
|
431
|
+
company?: string;
|
|
432
|
+
tagline?: string;
|
|
433
|
+
description?: string;
|
|
434
|
+
stage?: string;
|
|
435
|
+
location?: string;
|
|
436
|
+
founded?: string;
|
|
437
|
+
metrics?: Array<{
|
|
438
|
+
value?: string;
|
|
439
|
+
label?: string;
|
|
440
|
+
}>;
|
|
441
|
+
highlights?: Array<{
|
|
442
|
+
title?: string;
|
|
443
|
+
description?: string;
|
|
444
|
+
}>;
|
|
445
|
+
}
|
|
446
|
+
export declare function addKicker(slide: PptxSlide, kicker: string | undefined, x?: number, y?: number): void;
|
|
33
447
|
/** 为 theme04 幻灯片添加玻璃糖果渐变背景。 */
|
|
34
448
|
export declare function addTheme04Background(slide: PptxSlide): void;
|
|
35
|
-
|
|
36
|
-
export
|
|
449
|
+
/** 在 theme05 幻灯片底部绘制光谱色带。 */
|
|
450
|
+
export declare function addTheme05SpectrumBar(slide: PptxSlide): void;
|
|
451
|
+
/** 在 theme06 幻灯片底部绘制霓虹装饰线。 */
|
|
452
|
+
export declare function addTheme06GlowLine(slide: PptxSlide): void;
|
|
453
|
+
export declare function addTheme06FooterBilingual(slide: PptxSlide, footnote?: string): void;
|
|
454
|
+
/** theme06 标准数据卡片:实色表面 + 细边框。 */
|
|
455
|
+
export declare function addTheme06Card(slide: PptxSlide, x: number, y: number, w: number, h: number, accent?: boolean): void;
|
|
456
|
+
/** theme06 霓虹徽章(圆角胶囊)。 */
|
|
457
|
+
export declare function addTheme06Badge(slide: PptxSlide, x: number, y: number, w: number, h: number, text: string): void;
|
|
458
|
+
/** theme06 进度条卡片。 */
|
|
459
|
+
export declare function addTheme06ProgressCard(slide: PptxSlide, x: number, y: number, w: number, h: number, label: string, value: string, progress: number): void;
|
|
460
|
+
/** theme06 时间轴节点与连线。 */
|
|
461
|
+
export declare function addTheme06TimelineNode(slide: PptxSlide, cx: number, cy: number, label: string, date: string, focus?: boolean): void;
|
|
462
|
+
/** theme06 2×2 象限网格(虚线十字)。 */
|
|
463
|
+
export declare function addTheme06QuadrantGrid(slide: PptxSlide, x: number, y: number, w: number, h: number): void;
|
|
464
|
+
/** theme06 气泡节点。 */
|
|
465
|
+
export declare function addTheme06Bubble(slide: PptxSlide, x: number, y: number, size: number, label: string, color: string): void;
|
|
466
|
+
/** theme06 流程步骤卡片(带输入/输出标签)。 */
|
|
467
|
+
export declare function addTheme06StepCard(slide: PptxSlide, x: number, y: number, w: number, h: number, step: any, accent?: boolean): void;
|
|
468
|
+
/** theme05 标准数据卡片:实色表面 + 细边框。 */
|
|
469
|
+
export declare function addTheme05Card(slide: PptxSlide, x: number, y: number, w: number, h: number, accent?: boolean): void;
|
|
470
|
+
export declare function theme05SchemeColor(scheme?: string): string;
|
|
471
|
+
/** theme05 小胶囊(用于高亮标签)。 */
|
|
472
|
+
export declare function addTheme05Pill(slide: PptxSlide, x: number, y: number, w: number, h: number, text: string, color: string): void;
|
|
473
|
+
/** theme05 结论卡片(右侧)。 */
|
|
474
|
+
export declare function addTheme05ConclusionCard(slide: PptxSlide, x: number, y: number, w: number, h: number, conclusion: any): void;
|
|
475
|
+
/** theme02 玻璃卡片:深色表面 + 细边框 + 柔和阴影。 */
|
|
476
|
+
export declare function addTheme02Card(slide: PptxSlide, x: number, y: number, w: number, h: number, radius?: number): void;
|
|
477
|
+
export declare function addTitle(slide: PptxSlide, title: string, x?: number, y?: number, w?: number, h?: number, fontSize?: number): void;
|
|
478
|
+
interface SimpleInsight {
|
|
479
|
+
value?: string;
|
|
480
|
+
label?: string;
|
|
481
|
+
description?: string;
|
|
482
|
+
}
|
|
483
|
+
export declare function renderInsightPanel(slide: PptxSlide, insight: SimpleInsight | undefined, x: number, y: number, w: number, h: number): void;
|
|
484
|
+
export declare function dataUriToTempFile(url: string): string | undefined;
|
|
485
|
+
export declare function addImageMaybe(slide: PptxSlide, url: string | undefined, x: number, y: number, w: number, h: number): void;
|
|
486
|
+
interface TableOfContentsV1Props {
|
|
487
|
+
kicker?: string;
|
|
488
|
+
title: string;
|
|
489
|
+
items?: string[];
|
|
490
|
+
}
|
|
491
|
+
export declare function renderTableOfContentsV1(slide: PptxSlide, props: TableOfContentsV1Props): void;
|
|
492
|
+
interface StatsV1Props {
|
|
493
|
+
kicker?: string;
|
|
494
|
+
title: string;
|
|
495
|
+
stats?: {
|
|
496
|
+
label?: string;
|
|
497
|
+
value?: string;
|
|
498
|
+
unit?: string;
|
|
499
|
+
change?: string;
|
|
500
|
+
}[];
|
|
501
|
+
showInsight?: boolean;
|
|
502
|
+
insight?: SimpleInsight;
|
|
503
|
+
}
|
|
504
|
+
export declare function renderStatsV1(slide: PptxSlide, props: StatsV1Props): void;
|
|
505
|
+
interface ChartV1InsightItem {
|
|
506
|
+
label?: string;
|
|
507
|
+
value?: string;
|
|
508
|
+
}
|
|
509
|
+
interface ChartV1Insight {
|
|
510
|
+
headline?: string;
|
|
511
|
+
subheadline?: string;
|
|
512
|
+
items?: ChartV1InsightItem[];
|
|
513
|
+
badge?: {
|
|
514
|
+
text?: string;
|
|
515
|
+
tone?: 'accent' | 'success' | 'warning';
|
|
516
|
+
};
|
|
517
|
+
}
|
|
518
|
+
export interface ChartV1Props {
|
|
519
|
+
title?: string;
|
|
520
|
+
kicker?: string;
|
|
521
|
+
subtitle?: string;
|
|
522
|
+
type?: 'bar' | 'line' | 'pie';
|
|
523
|
+
labels?: string[];
|
|
524
|
+
data?: number[];
|
|
525
|
+
unit?: string;
|
|
526
|
+
insight?: ChartV1Insight;
|
|
527
|
+
footnote?: string;
|
|
528
|
+
}
|
|
529
|
+
interface ChartGaugeProps {
|
|
530
|
+
title?: string;
|
|
531
|
+
kicker?: string;
|
|
532
|
+
value?: number;
|
|
533
|
+
min?: number;
|
|
534
|
+
max?: number;
|
|
535
|
+
unit?: string;
|
|
536
|
+
insight?: ChartInsight;
|
|
537
|
+
}
|
|
538
|
+
export declare function renderChartGauge(slide: PptxSlide, props: ChartGaugeProps): void;
|
|
539
|
+
interface ChartHeatmapProps {
|
|
540
|
+
title?: string;
|
|
541
|
+
kicker?: string;
|
|
542
|
+
xAxis?: string[];
|
|
543
|
+
yAxis?: string[];
|
|
544
|
+
data?: Array<[string, string, number]>;
|
|
545
|
+
insight?: ChartInsight;
|
|
546
|
+
}
|
|
547
|
+
export declare function renderChartHeatmap(slide: PptxSlide, props: ChartHeatmapProps): void;
|
|
548
|
+
interface ChartInsight {
|
|
549
|
+
value?: string;
|
|
550
|
+
label?: string;
|
|
551
|
+
description?: string;
|
|
552
|
+
}
|
|
553
|
+
interface ChartFunnelProps {
|
|
554
|
+
title?: string;
|
|
555
|
+
kicker?: string;
|
|
556
|
+
subtitle?: string;
|
|
557
|
+
data?: Array<{
|
|
558
|
+
name: string;
|
|
559
|
+
value: number;
|
|
560
|
+
}>;
|
|
561
|
+
insight?: ChartInsight;
|
|
562
|
+
footnote?: string;
|
|
563
|
+
}
|
|
564
|
+
export declare function renderChartFunnel(slide: PptxSlide, props: ChartFunnelProps): void;
|
|
565
|
+
interface ChartRadarProps {
|
|
566
|
+
title?: string;
|
|
567
|
+
kicker?: string;
|
|
568
|
+
indicators?: Array<{
|
|
569
|
+
name: string;
|
|
570
|
+
max: number;
|
|
571
|
+
}>;
|
|
572
|
+
data?: Array<{
|
|
573
|
+
name: string;
|
|
574
|
+
value: number[];
|
|
575
|
+
}>;
|
|
576
|
+
insight?: ChartInsight;
|
|
577
|
+
}
|
|
578
|
+
export declare function renderChartRadar(slide: PptxSlide, props: ChartRadarProps): void;
|
|
579
|
+
interface ProcessV1Props {
|
|
580
|
+
kicker?: string;
|
|
581
|
+
title: string;
|
|
582
|
+
steps?: string[];
|
|
583
|
+
}
|
|
584
|
+
export declare function renderProcessV1(slide: PptxSlide, props: ProcessV1Props): void;
|
|
585
|
+
interface TimelineV1Props {
|
|
586
|
+
kicker?: string;
|
|
587
|
+
title: string;
|
|
588
|
+
milestones?: {
|
|
589
|
+
date?: string;
|
|
590
|
+
title?: string;
|
|
591
|
+
description?: string;
|
|
592
|
+
}[];
|
|
593
|
+
}
|
|
594
|
+
export declare function renderTimelineV1(slide: PptxSlide, props: TimelineV1Props): void;
|
|
595
|
+
interface TestimonialV1Props {
|
|
596
|
+
quote: string;
|
|
597
|
+
author?: string;
|
|
598
|
+
role?: string;
|
|
599
|
+
company?: string;
|
|
600
|
+
avatarUrl?: string;
|
|
601
|
+
}
|
|
602
|
+
export declare function renderTestimonialV1(slide: PptxSlide, props: TestimonialV1Props): void;
|
|
603
|
+
interface FaqV1Props {
|
|
604
|
+
kicker?: string;
|
|
605
|
+
title: string;
|
|
606
|
+
items?: {
|
|
607
|
+
q?: string;
|
|
608
|
+
a?: string;
|
|
609
|
+
}[];
|
|
610
|
+
}
|
|
611
|
+
export declare function renderFaqV1(slide: PptxSlide, props: FaqV1Props): void;
|
|
612
|
+
interface FeatureV1Props {
|
|
613
|
+
kicker?: string;
|
|
614
|
+
title: string;
|
|
615
|
+
features?: {
|
|
616
|
+
title?: string;
|
|
617
|
+
description?: string;
|
|
618
|
+
}[];
|
|
619
|
+
}
|
|
620
|
+
export declare function renderFeatureV1(slide: PptxSlide, props: FeatureV1Props): void;
|
|
621
|
+
interface TeamV1Props {
|
|
622
|
+
kicker?: string;
|
|
623
|
+
title: string;
|
|
624
|
+
members?: {
|
|
625
|
+
name?: string;
|
|
626
|
+
role?: string;
|
|
627
|
+
bio?: string;
|
|
628
|
+
imageUrl?: string;
|
|
629
|
+
}[];
|
|
630
|
+
}
|
|
631
|
+
export declare function renderTeamV1(slide: PptxSlide, props: TeamV1Props): void;
|
|
632
|
+
interface PartnersV1Props {
|
|
633
|
+
kicker?: string;
|
|
634
|
+
title: string;
|
|
635
|
+
partners?: {
|
|
636
|
+
name?: string;
|
|
637
|
+
logoUrl?: string;
|
|
638
|
+
}[];
|
|
639
|
+
}
|
|
640
|
+
export declare function renderPartnersV1(slide: PptxSlide, props: PartnersV1Props): void;
|
|
641
|
+
interface PricingV1Props {
|
|
642
|
+
kicker?: string;
|
|
643
|
+
title: string;
|
|
644
|
+
tiers?: {
|
|
645
|
+
name?: string;
|
|
646
|
+
price?: string;
|
|
647
|
+
period?: string;
|
|
648
|
+
features?: string[];
|
|
649
|
+
cta?: string;
|
|
650
|
+
}[];
|
|
651
|
+
}
|
|
652
|
+
export declare function renderPricingV1(slide: PptxSlide, props: PricingV1Props): void;
|
|
653
|
+
interface ImageV1Props {
|
|
654
|
+
title: string;
|
|
655
|
+
subtitle?: string;
|
|
656
|
+
imageUrl?: string;
|
|
657
|
+
imageAlt?: string;
|
|
658
|
+
}
|
|
659
|
+
export declare function renderImageV1(slide: PptxSlide, props: ImageV1Props): void;
|
|
660
|
+
interface SwotV1Props {
|
|
661
|
+
title: string;
|
|
662
|
+
kicker?: string;
|
|
663
|
+
strength?: string;
|
|
664
|
+
weakness?: string;
|
|
665
|
+
opportunity?: string;
|
|
666
|
+
threat?: string;
|
|
667
|
+
}
|
|
668
|
+
export declare function renderSwotV1(slide: PptxSlide, props: SwotV1Props): void;
|
|
669
|
+
interface PestV1Props {
|
|
670
|
+
title: string;
|
|
671
|
+
kicker?: string;
|
|
672
|
+
political?: string;
|
|
673
|
+
economic?: string;
|
|
674
|
+
social?: string;
|
|
675
|
+
technological?: string;
|
|
676
|
+
}
|
|
677
|
+
export declare function renderPestV1(slide: PptxSlide, props: PestV1Props): void;
|
|
678
|
+
interface Theme01GalleryV1Props {
|
|
679
|
+
kicker?: string;
|
|
680
|
+
title?: string;
|
|
681
|
+
images?: {
|
|
682
|
+
url?: string;
|
|
683
|
+
caption?: string;
|
|
684
|
+
}[];
|
|
685
|
+
}
|
|
686
|
+
export declare function renderTheme01GalleryV1(slide: PptxSlide, props: Theme01GalleryV1Props): void;
|
|
687
|
+
interface Theme01TableV1Props {
|
|
688
|
+
kicker?: string;
|
|
689
|
+
title?: string;
|
|
690
|
+
headers?: string[];
|
|
691
|
+
rows?: string[][];
|
|
692
|
+
highlightFirstColumn?: boolean;
|
|
693
|
+
}
|
|
694
|
+
export declare function renderTheme01TableV1(slide: PptxSlide, props: Theme01TableV1Props): void;
|
|
695
|
+
interface Theme01TagsV1Props {
|
|
696
|
+
kicker?: string;
|
|
697
|
+
title?: string;
|
|
698
|
+
tags?: {
|
|
699
|
+
label?: string;
|
|
700
|
+
value?: number;
|
|
701
|
+
tone?: 'neutral' | 'positive' | 'negative' | 'accent';
|
|
702
|
+
}[];
|
|
703
|
+
}
|
|
704
|
+
export declare function renderTheme01TagsV1(slide: PptxSlide, props: Theme01TagsV1Props): void;
|
|
705
|
+
interface Theme01FilmstripV1Props {
|
|
706
|
+
kicker?: string;
|
|
707
|
+
title?: string;
|
|
708
|
+
images?: {
|
|
709
|
+
url?: string;
|
|
710
|
+
caption?: string;
|
|
711
|
+
}[];
|
|
712
|
+
}
|
|
713
|
+
export declare function renderTheme01FilmstripV1(slide: PptxSlide, props: Theme01FilmstripV1Props): void;
|
|
714
|
+
interface Theme01RoadmapV1Props {
|
|
715
|
+
kicker?: string;
|
|
716
|
+
title?: string;
|
|
717
|
+
phases?: {
|
|
718
|
+
phase?: string;
|
|
719
|
+
items?: string[];
|
|
720
|
+
}[];
|
|
721
|
+
}
|
|
722
|
+
export declare function renderTheme01RoadmapV1(slide: PptxSlide, props: Theme01RoadmapV1Props): void;
|
|
723
|
+
interface Theme01MetricBigProps {
|
|
724
|
+
kicker?: string;
|
|
725
|
+
title?: string;
|
|
726
|
+
subtitle?: string;
|
|
727
|
+
value?: string;
|
|
728
|
+
unit?: string;
|
|
729
|
+
context?: string;
|
|
730
|
+
metrics?: {
|
|
731
|
+
value?: string;
|
|
732
|
+
label?: string;
|
|
733
|
+
accent?: boolean;
|
|
734
|
+
}[];
|
|
735
|
+
footnote?: string;
|
|
736
|
+
showInsight?: boolean;
|
|
737
|
+
insight?: SimpleInsight;
|
|
738
|
+
}
|
|
739
|
+
export declare function renderTheme01MetricBig(slide: PptxSlide, props: Theme01MetricBigProps): void;
|
|
740
|
+
interface Theme01ChartDonutSegment {
|
|
741
|
+
label?: string;
|
|
742
|
+
labelEn?: string;
|
|
743
|
+
value?: string;
|
|
744
|
+
percent?: string;
|
|
745
|
+
color?: string;
|
|
746
|
+
}
|
|
747
|
+
interface Theme01ChartDonutProps {
|
|
748
|
+
kicker?: string;
|
|
749
|
+
title?: string;
|
|
750
|
+
subtitle?: string;
|
|
751
|
+
total?: {
|
|
752
|
+
value?: string;
|
|
753
|
+
label?: string;
|
|
754
|
+
};
|
|
755
|
+
segments?: Theme01ChartDonutSegment[];
|
|
756
|
+
insight?: ChartInsight;
|
|
757
|
+
footnote?: string;
|
|
758
|
+
}
|
|
759
|
+
export declare function renderTheme01ChartDonut(slide: PptxSlide, props: Theme01ChartDonutProps): void;
|
|
760
|
+
export interface Theme02ChapterV1Props {
|
|
761
|
+
kicker?: string;
|
|
762
|
+
title?: string;
|
|
763
|
+
subtitle?: string;
|
|
764
|
+
number?: string;
|
|
765
|
+
}
|
|
766
|
+
export interface Theme02ChapterV2Props {
|
|
767
|
+
number?: string;
|
|
768
|
+
kicker?: string;
|
|
769
|
+
title?: string;
|
|
770
|
+
subtitle?: string;
|
|
771
|
+
}
|
|
772
|
+
export interface Theme02QuoteV2Props {
|
|
773
|
+
quote: string;
|
|
774
|
+
author?: string;
|
|
775
|
+
role?: string;
|
|
776
|
+
source?: string;
|
|
777
|
+
}
|
|
778
|
+
export interface Theme02NumberShowcaseV1Props {
|
|
779
|
+
kicker?: string;
|
|
780
|
+
title?: string;
|
|
781
|
+
value?: string;
|
|
782
|
+
unit?: string;
|
|
783
|
+
description?: string;
|
|
784
|
+
footnote?: string;
|
|
785
|
+
}
|
|
786
|
+
export interface Theme02ChartV1Props {
|
|
787
|
+
title?: string;
|
|
788
|
+
kicker?: string;
|
|
789
|
+
subtitle?: string;
|
|
790
|
+
type?: 'bar' | 'line' | 'area' | 'pie';
|
|
791
|
+
labels?: string[];
|
|
792
|
+
data?: number[];
|
|
793
|
+
unit?: string;
|
|
794
|
+
insight?: ChartV1Insight;
|
|
795
|
+
footnote?: string;
|
|
796
|
+
}
|
|
797
|
+
export interface Theme02ContentV1Props {
|
|
798
|
+
title?: string;
|
|
799
|
+
subtitle?: string;
|
|
800
|
+
kicker?: string;
|
|
801
|
+
bullets?: string[];
|
|
802
|
+
}
|
|
803
|
+
interface Theme02DeltaItem {
|
|
804
|
+
label?: string;
|
|
805
|
+
previous?: number;
|
|
806
|
+
current?: number;
|
|
807
|
+
unit?: string;
|
|
808
|
+
}
|
|
809
|
+
export interface Theme02DeltaV1Props {
|
|
810
|
+
title?: string;
|
|
811
|
+
kicker?: string;
|
|
812
|
+
subtitle?: string;
|
|
813
|
+
items?: Theme02DeltaItem[];
|
|
814
|
+
footnote?: string;
|
|
815
|
+
showInsight?: boolean;
|
|
816
|
+
insight?: SimpleInsight;
|
|
817
|
+
}
|
|
818
|
+
export interface Theme02TableOfContentsV1Props {
|
|
819
|
+
title?: string;
|
|
820
|
+
subtitle?: string;
|
|
821
|
+
items?: Array<{
|
|
822
|
+
title: string;
|
|
823
|
+
page?: string;
|
|
824
|
+
}>;
|
|
825
|
+
}
|
|
826
|
+
export interface Theme02ImageV1Props {
|
|
827
|
+
kicker?: string;
|
|
828
|
+
title?: string;
|
|
829
|
+
subtitle?: string;
|
|
830
|
+
image: string;
|
|
831
|
+
caption?: string;
|
|
832
|
+
}
|
|
833
|
+
export interface Theme02QuoteV1Props {
|
|
834
|
+
quote: string;
|
|
835
|
+
author?: string;
|
|
836
|
+
role?: string;
|
|
837
|
+
avatar?: string;
|
|
838
|
+
}
|
|
839
|
+
export interface Theme02BentoV1Props {
|
|
840
|
+
kicker?: string;
|
|
841
|
+
title?: string;
|
|
842
|
+
subtitle?: string;
|
|
843
|
+
items?: Array<{
|
|
844
|
+
label: string;
|
|
845
|
+
value: string;
|
|
846
|
+
unit?: string;
|
|
847
|
+
size?: 'small' | 'medium' | 'large';
|
|
848
|
+
}>;
|
|
849
|
+
showInsight?: boolean;
|
|
850
|
+
insight?: SimpleInsight;
|
|
851
|
+
}
|
|
852
|
+
export interface Theme02ProcessV1Props {
|
|
853
|
+
kicker?: string;
|
|
854
|
+
title: string;
|
|
855
|
+
subtitle?: string;
|
|
856
|
+
steps?: Array<{
|
|
857
|
+
title?: string;
|
|
858
|
+
description?: string;
|
|
859
|
+
}>;
|
|
860
|
+
}
|
|
861
|
+
interface Theme02ProgressItem {
|
|
862
|
+
label?: string;
|
|
863
|
+
value?: number;
|
|
864
|
+
max?: number;
|
|
865
|
+
unit?: string;
|
|
866
|
+
}
|
|
867
|
+
export interface Theme02ProgressV1Props {
|
|
868
|
+
title?: string;
|
|
869
|
+
kicker?: string;
|
|
870
|
+
subtitle?: string;
|
|
871
|
+
items?: Theme02ProgressItem[];
|
|
872
|
+
}
|
|
873
|
+
interface Theme02FeatureV2Item {
|
|
874
|
+
icon?: string;
|
|
875
|
+
title: string;
|
|
876
|
+
desc?: string;
|
|
877
|
+
}
|
|
878
|
+
export interface Theme02FeatureV2Props {
|
|
879
|
+
kicker?: string;
|
|
880
|
+
title?: string;
|
|
881
|
+
subtitle?: string;
|
|
882
|
+
features?: Theme02FeatureV2Item[];
|
|
883
|
+
}
|
|
884
|
+
interface Theme02ChecklistV1Item {
|
|
885
|
+
text: string;
|
|
886
|
+
note?: string;
|
|
887
|
+
}
|
|
888
|
+
export interface Theme02ChecklistV1Props {
|
|
889
|
+
kicker?: string;
|
|
890
|
+
title?: string;
|
|
891
|
+
subtitle?: string;
|
|
892
|
+
items?: Theme02ChecklistV1Item[];
|
|
893
|
+
}
|
|
894
|
+
interface Theme02StepsV1Step {
|
|
895
|
+
title: string;
|
|
896
|
+
desc?: string;
|
|
897
|
+
}
|
|
898
|
+
export interface Theme02StepsV1Props {
|
|
899
|
+
kicker?: string;
|
|
900
|
+
title?: string;
|
|
901
|
+
subtitle?: string;
|
|
902
|
+
steps?: Theme02StepsV1Step[];
|
|
903
|
+
}
|
|
904
|
+
interface Theme02CardGridV1Card {
|
|
905
|
+
title: string;
|
|
906
|
+
desc?: string;
|
|
907
|
+
tag?: string;
|
|
908
|
+
}
|
|
909
|
+
export interface Theme02CardGridV1Props {
|
|
910
|
+
kicker?: string;
|
|
911
|
+
title?: string;
|
|
912
|
+
subtitle?: string;
|
|
913
|
+
cards?: Theme02CardGridV1Card[];
|
|
914
|
+
}
|
|
915
|
+
export interface Theme02HighlightV1Props {
|
|
916
|
+
kicker?: string;
|
|
917
|
+
title?: string;
|
|
918
|
+
statement?: string;
|
|
919
|
+
footnote?: string;
|
|
920
|
+
}
|
|
921
|
+
interface Theme02ComparisonV2Column {
|
|
922
|
+
title: string;
|
|
923
|
+
points?: string[];
|
|
924
|
+
}
|
|
925
|
+
export interface Theme02ComparisonV2Props {
|
|
926
|
+
kicker?: string;
|
|
927
|
+
title?: string;
|
|
928
|
+
subtitle?: string;
|
|
929
|
+
columns?: Theme02ComparisonV2Column[];
|
|
930
|
+
}
|
|
931
|
+
interface Theme02MatrixV1Quadrant {
|
|
932
|
+
title: string;
|
|
933
|
+
desc?: string;
|
|
934
|
+
}
|
|
935
|
+
export interface Theme02MatrixV1Props {
|
|
936
|
+
kicker?: string;
|
|
937
|
+
title?: string;
|
|
938
|
+
subtitle?: string;
|
|
939
|
+
axisX?: string;
|
|
940
|
+
axisY?: string;
|
|
941
|
+
quadrants?: Theme02MatrixV1Quadrant[];
|
|
942
|
+
}
|
|
943
|
+
interface Theme02StatGridV1Stat {
|
|
944
|
+
value: string;
|
|
945
|
+
unit?: string;
|
|
946
|
+
label?: string;
|
|
947
|
+
delta?: string;
|
|
948
|
+
}
|
|
949
|
+
export interface Theme02StatGridV1Props {
|
|
950
|
+
kicker?: string;
|
|
951
|
+
title?: string;
|
|
952
|
+
subtitle?: string;
|
|
953
|
+
stats?: Theme02StatGridV1Stat[];
|
|
954
|
+
}
|
|
955
|
+
export interface Theme02CoverV3Props {
|
|
956
|
+
kicker?: string;
|
|
957
|
+
title?: string;
|
|
958
|
+
subtitle?: string;
|
|
959
|
+
date?: string;
|
|
960
|
+
}
|
|
961
|
+
export interface Theme02ClosingV2Props {
|
|
962
|
+
kicker?: string;
|
|
963
|
+
title?: string;
|
|
964
|
+
subtitle?: string;
|
|
965
|
+
cta?: string;
|
|
966
|
+
}
|
|
967
|
+
export declare const T2_CHART: string[];
|
|
968
|
+
interface Theme02ChartSeries {
|
|
969
|
+
name?: string;
|
|
970
|
+
values?: number[];
|
|
971
|
+
}
|
|
972
|
+
export interface Theme02ChartBarV1Props {
|
|
973
|
+
kicker?: string;
|
|
974
|
+
title?: string;
|
|
975
|
+
subtitle?: string;
|
|
976
|
+
unit?: string;
|
|
977
|
+
labels?: string[];
|
|
978
|
+
series?: Theme02ChartSeries[];
|
|
979
|
+
}
|
|
980
|
+
export interface Theme02ChartLineV1Props {
|
|
981
|
+
kicker?: string;
|
|
982
|
+
title?: string;
|
|
983
|
+
subtitle?: string;
|
|
984
|
+
unit?: string;
|
|
985
|
+
labels?: string[];
|
|
986
|
+
series?: Theme02ChartSeries[];
|
|
987
|
+
}
|
|
988
|
+
export interface Theme02ChartAreaV1Props {
|
|
989
|
+
kicker?: string;
|
|
990
|
+
title?: string;
|
|
991
|
+
subtitle?: string;
|
|
992
|
+
unit?: string;
|
|
993
|
+
labels?: string[];
|
|
994
|
+
series?: Theme02ChartSeries[];
|
|
995
|
+
}
|
|
996
|
+
export interface Theme02ChartStackV1Props {
|
|
997
|
+
kicker?: string;
|
|
998
|
+
title?: string;
|
|
999
|
+
subtitle?: string;
|
|
1000
|
+
unit?: string;
|
|
1001
|
+
labels?: string[];
|
|
1002
|
+
series?: Theme02ChartSeries[];
|
|
1003
|
+
}
|
|
1004
|
+
interface Theme02KpiStripV1Item {
|
|
1005
|
+
value?: string;
|
|
1006
|
+
unit?: string;
|
|
1007
|
+
label?: string;
|
|
1008
|
+
delta?: string;
|
|
1009
|
+
}
|
|
1010
|
+
export interface Theme02KpiStripV1Props {
|
|
1011
|
+
kicker?: string;
|
|
1012
|
+
title?: string;
|
|
1013
|
+
subtitle?: string;
|
|
1014
|
+
items?: Theme02KpiStripV1Item[];
|
|
1015
|
+
}
|
|
1016
|
+
export interface Theme02BigStatV1Props {
|
|
1017
|
+
kicker?: string;
|
|
1018
|
+
title?: string;
|
|
1019
|
+
value?: string;
|
|
1020
|
+
unit?: string;
|
|
1021
|
+
label?: string;
|
|
1022
|
+
footnote?: string;
|
|
1023
|
+
delta?: string;
|
|
1024
|
+
}
|
|
1025
|
+
interface Theme02CycleV1Step {
|
|
1026
|
+
title: string;
|
|
1027
|
+
desc?: string;
|
|
1028
|
+
}
|
|
1029
|
+
export interface Theme02CycleV1Props {
|
|
1030
|
+
kicker?: string;
|
|
1031
|
+
title?: string;
|
|
1032
|
+
subtitle?: string;
|
|
1033
|
+
steps?: Theme02CycleV1Step[];
|
|
1034
|
+
}
|
|
1035
|
+
interface Theme02SwimlaneV1Lane {
|
|
1036
|
+
name?: string;
|
|
1037
|
+
items?: string[];
|
|
1038
|
+
}
|
|
1039
|
+
export interface Theme02SwimlaneV1Props {
|
|
1040
|
+
kicker?: string;
|
|
1041
|
+
title?: string;
|
|
1042
|
+
subtitle?: string;
|
|
1043
|
+
phases?: string[];
|
|
1044
|
+
lanes?: Theme02SwimlaneV1Lane[];
|
|
1045
|
+
}
|
|
1046
|
+
interface Theme02PyramidV1Level {
|
|
1047
|
+
title: string;
|
|
1048
|
+
desc?: string;
|
|
1049
|
+
}
|
|
1050
|
+
export interface Theme02PyramidV1Props {
|
|
1051
|
+
kicker?: string;
|
|
1052
|
+
title?: string;
|
|
1053
|
+
subtitle?: string;
|
|
1054
|
+
levels?: Theme02PyramidV1Level[];
|
|
1055
|
+
}
|
|
1056
|
+
interface Theme02OrgChartV1Node {
|
|
1057
|
+
title?: string;
|
|
1058
|
+
sub?: string;
|
|
1059
|
+
}
|
|
1060
|
+
export interface Theme02OrgChartV1Props {
|
|
1061
|
+
kicker?: string;
|
|
1062
|
+
title?: string;
|
|
1063
|
+
subtitle?: string;
|
|
1064
|
+
root?: Theme02OrgChartV1Node;
|
|
1065
|
+
children?: Theme02OrgChartV1Node[];
|
|
1066
|
+
}
|
|
1067
|
+
interface Theme02FlowV1Step {
|
|
1068
|
+
title: string;
|
|
1069
|
+
desc?: string;
|
|
1070
|
+
}
|
|
1071
|
+
export interface Theme02FlowV1Props {
|
|
1072
|
+
kicker?: string;
|
|
1073
|
+
title?: string;
|
|
1074
|
+
subtitle?: string;
|
|
1075
|
+
steps?: Theme02FlowV1Step[];
|
|
1076
|
+
}
|
|
1077
|
+
export interface Theme02TableV2Props {
|
|
1078
|
+
kicker?: string;
|
|
1079
|
+
title?: string;
|
|
1080
|
+
subtitle?: string;
|
|
1081
|
+
columns?: string[];
|
|
1082
|
+
rows?: string[][];
|
|
1083
|
+
}
|
|
1084
|
+
export interface Theme02ImageSplitV1Props {
|
|
1085
|
+
kicker?: string;
|
|
1086
|
+
title?: string;
|
|
1087
|
+
subtitle?: string;
|
|
1088
|
+
bullets?: string[];
|
|
1089
|
+
image?: string;
|
|
1090
|
+
}
|
|
1091
|
+
export interface Theme02ImageGridV2Props {
|
|
1092
|
+
kicker?: string;
|
|
1093
|
+
title?: string;
|
|
1094
|
+
subtitle?: string;
|
|
1095
|
+
images?: string[];
|
|
1096
|
+
captions?: string[];
|
|
1097
|
+
}
|
|
1098
|
+
export interface Theme02SpotlightV1Props {
|
|
1099
|
+
kicker?: string;
|
|
1100
|
+
title?: string;
|
|
1101
|
+
subtitle?: string;
|
|
1102
|
+
image?: string;
|
|
1103
|
+
caption?: string;
|
|
1104
|
+
}
|
|
1105
|
+
export interface Theme02ChapterV3Props {
|
|
1106
|
+
kicker?: string;
|
|
1107
|
+
number?: string;
|
|
1108
|
+
title?: string;
|
|
1109
|
+
subtitle?: string;
|
|
1110
|
+
}
|
|
1111
|
+
export interface Theme02SectionDividerV1Props {
|
|
1112
|
+
kicker?: string;
|
|
1113
|
+
title?: string;
|
|
1114
|
+
subtitle?: string;
|
|
1115
|
+
index?: string;
|
|
1116
|
+
}
|
|
1117
|
+
interface Theme02LogoWallV1Logo {
|
|
1118
|
+
name?: string;
|
|
1119
|
+
sub?: string;
|
|
1120
|
+
}
|
|
1121
|
+
export interface Theme02LogoWallV1Props {
|
|
1122
|
+
kicker?: string;
|
|
1123
|
+
title?: string;
|
|
1124
|
+
subtitle?: string;
|
|
1125
|
+
logos?: Theme02LogoWallV1Logo[];
|
|
1126
|
+
}
|
|
1127
|
+
interface Theme03TopbarProps {
|
|
1128
|
+
tag?: string;
|
|
1129
|
+
tagLabel?: string;
|
|
1130
|
+
topRightMeta?: string;
|
|
1131
|
+
}
|
|
1132
|
+
interface Theme03FooterProps {
|
|
1133
|
+
footnoteLeft?: string;
|
|
1134
|
+
footnoteRight?: string;
|
|
1135
|
+
}
|
|
1136
|
+
export declare function theme03TitleText(title: string): {
|
|
1137
|
+
text: string;
|
|
1138
|
+
options: Record<string, unknown>;
|
|
1139
|
+
}[];
|
|
1140
|
+
export declare function addTheme03Topbar(slide: PptxSlide, props: Theme03TopbarProps): void;
|
|
1141
|
+
export declare function addTheme03Footer(slide: PptxSlide, props: Theme03FooterProps): void;
|
|
1142
|
+
export declare function getTheme03PricingFeatureValue(feature: {
|
|
1143
|
+
value?: string;
|
|
1144
|
+
} | string | undefined): string | undefined;
|
|
1145
|
+
export declare function getTheme03ComparisonValue(item: {
|
|
1146
|
+
value?: string;
|
|
1147
|
+
} | string | undefined): string | undefined;
|
|
1148
|
+
export declare function totalForSegments(segments: any[], current: any): string;
|
|
1149
|
+
interface TreemapRect {
|
|
1150
|
+
x: number;
|
|
1151
|
+
y: number;
|
|
1152
|
+
w: number;
|
|
1153
|
+
h: number;
|
|
1154
|
+
item: any;
|
|
1155
|
+
}
|
|
1156
|
+
export declare function layoutTreemap(items: any[], x: number, y: number, w: number, h: number): TreemapRect[];
|
|
1157
|
+
/** theme07 通用装饰线(底部渐变线) */
|
|
1158
|
+
export declare function addTheme07GlowLine(slide: PptxSlide): void;
|
|
1159
|
+
/** theme07 通用卡片(冷白底 + 细边框 + 圆角) */
|
|
1160
|
+
export declare function addTheme07Card(slide: PptxSlide, x: number, y: number, w: number, h: number, radius?: number, fill?: string): void;
|
|
1161
|
+
/** theme07 通用页脚 */
|
|
1162
|
+
export declare function addTheme07Footer(slide: PptxSlide, props: any): void;
|
|
1163
|
+
/** theme07 通用顶部标签(kicker) */
|
|
1164
|
+
export declare function addTheme07Kicker(slide: PptxSlide, text: string, x?: number, y?: number): void;
|
|
1165
|
+
/** 将 theme07 CSS 变量名解析为 PPTX 可用 HEX(去掉 var(--lp-...) 包装) */
|
|
1166
|
+
export declare function resolveTheme07CssColor(value?: string, fallback?: string): string;
|
|
37
1167
|
//# sourceMappingURL=export-pptx.d.ts.map
|