@lofcz/pptist 2.0.0 → 2.0.2
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/LICENSE +660 -660
- package/README.md +259 -259
- package/dist/embed/agentic-manifest.json +1241 -0
- package/dist/embed/mocks/AIPPT.json +474 -474
- package/dist/embed/mocks/AIPPT_Outline.md +68 -68
- package/dist/embed/mocks/imgs.json +481 -481
- package/dist/embed/mocks/slides.json +183 -183
- package/dist/embed/pptist-embed.css +1 -1
- package/dist/embed/pptist-embed.js +23169 -25296
- package/docs/EMBED.md +307 -307
- package/docs/RELEASE.md +47 -47
- package/package.json +129 -127
|
@@ -0,0 +1,1241 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"package": "@lofcz/pptist",
|
|
4
|
+
"packageVersion": "2.0.1",
|
|
5
|
+
"generatedAt": "2026-05-31T12:03:02.499Z",
|
|
6
|
+
"commandCount": 168,
|
|
7
|
+
"domains": [
|
|
8
|
+
{
|
|
9
|
+
"id": "deck",
|
|
10
|
+
"commandCount": 7
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"id": "import",
|
|
14
|
+
"commandCount": 3
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "export",
|
|
18
|
+
"commandCount": 1
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"id": "slides",
|
|
22
|
+
"commandCount": 17
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": "elements",
|
|
26
|
+
"commandCount": 33
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "latex",
|
|
30
|
+
"commandCount": 3
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"id": "text",
|
|
34
|
+
"commandCount": 10
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "lines",
|
|
38
|
+
"commandCount": 6
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": "richText",
|
|
42
|
+
"commandCount": 3
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"id": "animations",
|
|
46
|
+
"commandCount": 9
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "tables",
|
|
50
|
+
"commandCount": 10
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": "charts",
|
|
54
|
+
"commandCount": 10
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"id": "images",
|
|
58
|
+
"commandCount": 14
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"id": "media",
|
|
62
|
+
"commandCount": 4
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"id": "videos",
|
|
66
|
+
"commandCount": 8
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"id": "audio",
|
|
70
|
+
"commandCount": 7
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "notes",
|
|
74
|
+
"commandCount": 4
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"id": "sections",
|
|
78
|
+
"commandCount": 7
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"id": "search",
|
|
82
|
+
"commandCount": 2
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"id": "history",
|
|
86
|
+
"commandCount": 3
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"id": "view",
|
|
90
|
+
"commandCount": 7
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"commands": [
|
|
94
|
+
{
|
|
95
|
+
"name": "deck.get",
|
|
96
|
+
"domain": "deck",
|
|
97
|
+
"payload": "undefined",
|
|
98
|
+
"returns": "PptistDeckDocument"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "deck.set",
|
|
102
|
+
"domain": "deck",
|
|
103
|
+
"payload": "PptistDeckInput",
|
|
104
|
+
"returns": "PptistDeckDocument"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "import.json",
|
|
108
|
+
"domain": "import",
|
|
109
|
+
"payload": "PptistDocumentImportPayload",
|
|
110
|
+
"returns": "PptistDeckDocument"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "import.pptist",
|
|
114
|
+
"domain": "import",
|
|
115
|
+
"payload": "PptistDocumentImportPayload",
|
|
116
|
+
"returns": "PptistDeckDocument"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "import.pptxSafe",
|
|
120
|
+
"domain": "import",
|
|
121
|
+
"payload": "PptistDocumentImportPayload",
|
|
122
|
+
"returns": "PptistDeckDocument"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "export.json",
|
|
126
|
+
"domain": "export",
|
|
127
|
+
"payload": "undefined",
|
|
128
|
+
"returns": "PptistDocument"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "deck.patch",
|
|
132
|
+
"domain": "deck",
|
|
133
|
+
"payload": "PptistDeckPatch",
|
|
134
|
+
"returns": "PptistDeckDocument"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "deck.setTitle",
|
|
138
|
+
"domain": "deck",
|
|
139
|
+
"payload": "{ title: string }",
|
|
140
|
+
"returns": "{ title: string }"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "deck.setTheme",
|
|
144
|
+
"domain": "deck",
|
|
145
|
+
"payload": "{ theme: PptistSlideThemePatch }",
|
|
146
|
+
"returns": "SlideTheme"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "deck.setViewport",
|
|
150
|
+
"domain": "deck",
|
|
151
|
+
"payload": "{ size?: number; ratio?: number }",
|
|
152
|
+
"returns": "PptistBridgeState"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "deck.setTemplates",
|
|
156
|
+
"domain": "deck",
|
|
157
|
+
"payload": "{ templates: Parameters<typeof stores.slides.setTemplates>[0] }",
|
|
158
|
+
"returns": "SlideTemplate[]"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "slides.list",
|
|
162
|
+
"domain": "slides",
|
|
163
|
+
"payload": "undefined",
|
|
164
|
+
"returns": "Slide[]"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "slides.get",
|
|
168
|
+
"domain": "slides",
|
|
169
|
+
"payload": "SlideSelectorPayload",
|
|
170
|
+
"returns": "Slide | null",
|
|
171
|
+
"optional": true
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"name": "slides.current",
|
|
175
|
+
"domain": "slides",
|
|
176
|
+
"payload": "undefined",
|
|
177
|
+
"returns": "Slide | null"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"name": "slides.read",
|
|
181
|
+
"domain": "slides",
|
|
182
|
+
"payload": "SlideSelectorPayload",
|
|
183
|
+
"returns": "Slide | null",
|
|
184
|
+
"optional": true
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"name": "slides.create",
|
|
188
|
+
"domain": "slides",
|
|
189
|
+
"payload": "{ slide?: Partial<Slide>; index?: number; select?: boolean }",
|
|
190
|
+
"returns": "Slide",
|
|
191
|
+
"optional": true
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"name": "slides.insert",
|
|
195
|
+
"domain": "slides",
|
|
196
|
+
"payload": "PptistInsertSlidesInput",
|
|
197
|
+
"returns": "PptistInsertSlidesResult"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"name": "slides.update",
|
|
201
|
+
"domain": "slides",
|
|
202
|
+
"payload": "{ slideId: string; patch: Partial<Slide> }",
|
|
203
|
+
"returns": "Slide"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"name": "slides.delete",
|
|
207
|
+
"domain": "slides",
|
|
208
|
+
"payload": "{ slideId: string | string[] }",
|
|
209
|
+
"returns": "PptistDeleteSlidesResult"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"name": "slides.duplicate",
|
|
213
|
+
"domain": "slides",
|
|
214
|
+
"payload": "SlideSelectorPayload & { select?: boolean }",
|
|
215
|
+
"returns": "Slide",
|
|
216
|
+
"optional": true
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "slides.move",
|
|
220
|
+
"domain": "slides",
|
|
221
|
+
"payload": "SlideSelectorPayload & { toIndex: number }",
|
|
222
|
+
"returns": "Slide[]"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "slides.select",
|
|
226
|
+
"domain": "slides",
|
|
227
|
+
"payload": "SlideSelectorPayload",
|
|
228
|
+
"returns": "PptistBridgeState"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"name": "slides.setBackground",
|
|
232
|
+
"domain": "slides",
|
|
233
|
+
"payload": "{ slideId: string; background?: Slide['background'] }",
|
|
234
|
+
"returns": "Slide"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"name": "slides.applyBackground",
|
|
238
|
+
"domain": "slides",
|
|
239
|
+
"payload": "{ background: Slide['background']; slideIds?: string[] }",
|
|
240
|
+
"returns": "Slide[]"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"name": "slides.getTransition",
|
|
244
|
+
"domain": "slides",
|
|
245
|
+
"payload": "{ slideId?: string }",
|
|
246
|
+
"returns": "PptistSlideTransition",
|
|
247
|
+
"optional": true
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"name": "slides.setTransition",
|
|
251
|
+
"domain": "slides",
|
|
252
|
+
"payload": "{ slideId: string; turningMode?: Slide['turningMode'] }",
|
|
253
|
+
"returns": "Slide"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"name": "slides.getRemark",
|
|
257
|
+
"domain": "slides",
|
|
258
|
+
"payload": "{ slideId?: string }",
|
|
259
|
+
"returns": "string",
|
|
260
|
+
"optional": true
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"name": "slides.setRemark",
|
|
264
|
+
"domain": "slides",
|
|
265
|
+
"payload": "{ slideId: string; remark: string }",
|
|
266
|
+
"returns": "Slide"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "elements.list",
|
|
270
|
+
"domain": "elements",
|
|
271
|
+
"payload": "{ slideId?: string }",
|
|
272
|
+
"returns": "PPTElement[]",
|
|
273
|
+
"optional": true
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"name": "elements.get",
|
|
277
|
+
"domain": "elements",
|
|
278
|
+
"payload": "{ elementId: string; slideId?: string }",
|
|
279
|
+
"returns": "PPTElement | null"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"name": "elements.create",
|
|
283
|
+
"domain": "elements",
|
|
284
|
+
"payload": "{ slideId?: string; index?: number; element: Partial<PPTElement> & { type: PPTElement['type'] }; select?: boolean }",
|
|
285
|
+
"returns": "PPTElement"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"name": "elements.insert",
|
|
289
|
+
"domain": "elements",
|
|
290
|
+
"payload": "PptistInsertElementsInput",
|
|
291
|
+
"returns": "PptistInsertElementsResult"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"name": "elements.update",
|
|
295
|
+
"domain": "elements",
|
|
296
|
+
"payload": "{ elementId: string | string[]; slideId?: string; patch: Partial<PPTElement> }",
|
|
297
|
+
"returns": "PPTElement[]"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"name": "elements.setTransform",
|
|
301
|
+
"domain": "elements",
|
|
302
|
+
"payload": "{ elementId: string | string[]; slideId?: string; transform: PptistElementTransformPatch }",
|
|
303
|
+
"returns": "PPTElement[]"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "elements.move",
|
|
307
|
+
"domain": "elements",
|
|
308
|
+
"payload": "{ elementId: string | string[]; slideId?: string; position: PptistElementMoveInput }",
|
|
309
|
+
"returns": "PPTElement[]"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"name": "elements.resize",
|
|
313
|
+
"domain": "elements",
|
|
314
|
+
"payload": "{ elementId: string | string[]; slideId?: string; size: PptistElementResizeInput }",
|
|
315
|
+
"returns": "PPTElement[]"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"name": "elements.rotate",
|
|
319
|
+
"domain": "elements",
|
|
320
|
+
"payload": "{ elementId: string | string[]; slideId?: string; rotate: number }",
|
|
321
|
+
"returns": "PPTElement[]"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"name": "elements.setOpacity",
|
|
325
|
+
"domain": "elements",
|
|
326
|
+
"payload": "{ elementId: string | string[]; slideId?: string; opacity: number }",
|
|
327
|
+
"returns": "PPTElement[]"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"name": "elements.setFlip",
|
|
331
|
+
"domain": "elements",
|
|
332
|
+
"payload": "{ elementId: string | string[]; slideId?: string; flip: PptistElementFlipInput }",
|
|
333
|
+
"returns": "PPTElement[]"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"name": "elements.delete",
|
|
337
|
+
"domain": "elements",
|
|
338
|
+
"payload": "{ elementId: string | string[]; slideId?: string }",
|
|
339
|
+
"returns": "{ deleted: string[] }"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"name": "elements.reorder",
|
|
343
|
+
"domain": "elements",
|
|
344
|
+
"payload": "{ elementId: string; slideId?: string; toIndex: number }",
|
|
345
|
+
"returns": "PPTElement[]"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "elements.bringForward",
|
|
349
|
+
"domain": "elements",
|
|
350
|
+
"payload": "{ elementId: string; slideId?: string }",
|
|
351
|
+
"returns": "PPTElement[]"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"name": "elements.sendBackward",
|
|
355
|
+
"domain": "elements",
|
|
356
|
+
"payload": "{ elementId: string; slideId?: string }",
|
|
357
|
+
"returns": "PPTElement[]"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"name": "elements.bringToFront",
|
|
361
|
+
"domain": "elements",
|
|
362
|
+
"payload": "{ elementId: string; slideId?: string }",
|
|
363
|
+
"returns": "PPTElement[]"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"name": "elements.sendToBack",
|
|
367
|
+
"domain": "elements",
|
|
368
|
+
"payload": "{ elementId: string; slideId?: string }",
|
|
369
|
+
"returns": "PPTElement[]"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "elements.select",
|
|
373
|
+
"domain": "elements",
|
|
374
|
+
"payload": "{ elementId: string | string[]; slideId?: string }",
|
|
375
|
+
"returns": "PptistBridgeState"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"name": "elements.selectGroup",
|
|
379
|
+
"domain": "elements",
|
|
380
|
+
"payload": "{ groupIdOrElementId: string; slideId?: string }",
|
|
381
|
+
"returns": "PptistBridgeState"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"name": "elements.clearSelection",
|
|
385
|
+
"domain": "elements",
|
|
386
|
+
"payload": "undefined",
|
|
387
|
+
"returns": "PptistBridgeState"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"name": "elements.setHandle",
|
|
391
|
+
"domain": "elements",
|
|
392
|
+
"payload": "{ elementId: string; slideId?: string }",
|
|
393
|
+
"returns": "PptistBridgeState"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"name": "elements.group",
|
|
397
|
+
"domain": "elements",
|
|
398
|
+
"payload": "{ elementIds: string[]; groupId?: string; slideId?: string }",
|
|
399
|
+
"returns": "PPTElement[]"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"name": "elements.ungroup",
|
|
403
|
+
"domain": "elements",
|
|
404
|
+
"payload": "{ groupIdOrElementId: string; slideId?: string }",
|
|
405
|
+
"returns": "PPTElement[]"
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"name": "elements.lock",
|
|
409
|
+
"domain": "elements",
|
|
410
|
+
"payload": "{ elementId: string | string[]; locked?: boolean }",
|
|
411
|
+
"returns": "PPTElement[]"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"name": "elements.unlock",
|
|
415
|
+
"domain": "elements",
|
|
416
|
+
"payload": "{ elementId: string | string[] }",
|
|
417
|
+
"returns": "PPTElement[]"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"name": "elements.hide",
|
|
421
|
+
"domain": "elements",
|
|
422
|
+
"payload": "{ elementId: string | string[]; slideId?: string; hidden?: boolean }",
|
|
423
|
+
"returns": "PptistBridgeState"
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"name": "elements.show",
|
|
427
|
+
"domain": "elements",
|
|
428
|
+
"payload": "{ elementId: string | string[]; slideId?: string }",
|
|
429
|
+
"returns": "PptistBridgeState"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"name": "elements.setLink",
|
|
433
|
+
"domain": "elements",
|
|
434
|
+
"payload": "{ elementId: string; slideId?: string; link?: PPTElement['link'] }",
|
|
435
|
+
"returns": "PPTElement[]"
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"name": "latex.get",
|
|
439
|
+
"domain": "latex",
|
|
440
|
+
"payload": "{ elementId: string; slideId?: string }",
|
|
441
|
+
"returns": "PPTLatexElement | null"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"name": "latex.create",
|
|
445
|
+
"domain": "latex",
|
|
446
|
+
"payload": "PptistCreateLatexElementInput",
|
|
447
|
+
"returns": "PPTLatexElement"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"name": "latex.update",
|
|
451
|
+
"domain": "latex",
|
|
452
|
+
"payload": "{ elementId: string; slideId?: string; patch: PptistLatexElementPatch }",
|
|
453
|
+
"returns": "PPTLatexElement"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"name": "elements.setOutline",
|
|
457
|
+
"domain": "elements",
|
|
458
|
+
"payload": "{ elementId: string | string[]; slideId?: string; outline: PPTElementOutline }",
|
|
459
|
+
"returns": "PptistOutlineElement[]"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"name": "elements.setShadow",
|
|
463
|
+
"domain": "elements",
|
|
464
|
+
"payload": "{ elementId: string | string[]; slideId?: string; shadow: PPTElementShadow }",
|
|
465
|
+
"returns": "PptistShadowElement[]"
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"name": "elements.setFill",
|
|
469
|
+
"domain": "elements",
|
|
470
|
+
"payload": "{ elementId: string | string[]; slideId?: string; fill: string }",
|
|
471
|
+
"returns": "PptistFillElement[]"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"name": "elements.setGradient",
|
|
475
|
+
"domain": "elements",
|
|
476
|
+
"payload": "{ elementId: string | string[]; slideId?: string; gradient: Gradient }",
|
|
477
|
+
"returns": "PPTShapeElement[]"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"name": "elements.setColorMask",
|
|
481
|
+
"domain": "elements",
|
|
482
|
+
"payload": "{ elementId: string | string[]; slideId?: string; colorMask: string }",
|
|
483
|
+
"returns": "PPTImageElement[]"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"name": "text.list",
|
|
487
|
+
"domain": "text",
|
|
488
|
+
"payload": "{ slideId?: string }",
|
|
489
|
+
"returns": "PPTTextElement[]",
|
|
490
|
+
"optional": true
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"name": "text.get",
|
|
494
|
+
"domain": "text",
|
|
495
|
+
"payload": "{ elementId: string; slideId?: string }",
|
|
496
|
+
"returns": "PPTTextElement | null"
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"name": "text.create",
|
|
500
|
+
"domain": "text",
|
|
501
|
+
"payload": "{ slideId?: string; index?: number; content?: string; element?: Partial<PPTTextElement>; select?: boolean }",
|
|
502
|
+
"returns": "PPTTextElement",
|
|
503
|
+
"optional": true
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"name": "text.update",
|
|
507
|
+
"domain": "text",
|
|
508
|
+
"payload": "{ elementId: string; slideId?: string; patch: Partial<PPTTextElement> }",
|
|
509
|
+
"returns": "PPTTextElement"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"name": "text.delete",
|
|
513
|
+
"domain": "text",
|
|
514
|
+
"payload": "{ elementId: string | string[]; slideId?: string }",
|
|
515
|
+
"returns": "{ deleted: string[] }"
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"name": "text.getContent",
|
|
519
|
+
"domain": "text",
|
|
520
|
+
"payload": "{ elementId: string; slideId?: string }",
|
|
521
|
+
"returns": "string | null"
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"name": "text.setContent",
|
|
525
|
+
"domain": "text",
|
|
526
|
+
"payload": "{ elementId: string; slideId?: string; content: string }",
|
|
527
|
+
"returns": "PPTTextElement"
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
"name": "text.updateContent",
|
|
531
|
+
"domain": "text",
|
|
532
|
+
"payload": "{ elementId: string; slideId?: string; content?: string; prepend?: string; append?: string }",
|
|
533
|
+
"returns": "PPTTextElement"
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"name": "text.clearContent",
|
|
537
|
+
"domain": "text",
|
|
538
|
+
"payload": "{ elementId: string; slideId?: string }",
|
|
539
|
+
"returns": "PPTTextElement"
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"name": "text.setStyle",
|
|
543
|
+
"domain": "text",
|
|
544
|
+
"payload": "{ elementId: string; slideId?: string; style: Partial<PPTTextElement> }",
|
|
545
|
+
"returns": "PPTTextElement"
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"name": "lines.get",
|
|
549
|
+
"domain": "lines",
|
|
550
|
+
"payload": "{ elementId: string; slideId?: string }",
|
|
551
|
+
"returns": "PPTLineElement | null"
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"name": "lines.create",
|
|
555
|
+
"domain": "lines",
|
|
556
|
+
"payload": "PptistCreateLineElementInput",
|
|
557
|
+
"returns": "PPTLineElement"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"name": "lines.update",
|
|
561
|
+
"domain": "lines",
|
|
562
|
+
"payload": "{ elementId: string; slideId?: string; patch: PptistLineElementPatch }",
|
|
563
|
+
"returns": "PPTLineElement"
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"name": "lines.setStyle",
|
|
567
|
+
"domain": "lines",
|
|
568
|
+
"payload": "{ elementId: string; slideId?: string; style: PptistLineStyleInput }",
|
|
569
|
+
"returns": "PPTLineElement"
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"name": "lines.setArrowheads",
|
|
573
|
+
"domain": "lines",
|
|
574
|
+
"payload": "{ elementId: string; slideId?: string; points: PPTLineElement['points'] }",
|
|
575
|
+
"returns": "PPTLineElement"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"name": "lines.setDirection",
|
|
579
|
+
"domain": "lines",
|
|
580
|
+
"payload": "{ elementId: string; slideId?: string; direction?: PptistLineDirectionInput }",
|
|
581
|
+
"returns": "PPTLineElement"
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"name": "richText.setContent",
|
|
585
|
+
"domain": "richText",
|
|
586
|
+
"payload": "{ elementId: string; slideId?: string; content: string }",
|
|
587
|
+
"returns": "unknown"
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"name": "richText.setStyle",
|
|
591
|
+
"domain": "richText",
|
|
592
|
+
"payload": "{ elementId: string; slideId?: string; style: PptistRichTextStylePatch }",
|
|
593
|
+
"returns": "unknown"
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
"name": "richText.setParagraphAttrs",
|
|
597
|
+
"domain": "richText",
|
|
598
|
+
"payload": "{ elementId: string; slideId?: string; attrs: PptistRichTextParagraphAttrs }",
|
|
599
|
+
"returns": "unknown"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"name": "animations.list",
|
|
603
|
+
"domain": "animations",
|
|
604
|
+
"payload": "{ slideId?: string; elementId?: string }",
|
|
605
|
+
"returns": "PPTAnimation[]",
|
|
606
|
+
"optional": true
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"name": "animations.catalog",
|
|
610
|
+
"domain": "animations",
|
|
611
|
+
"payload": "undefined",
|
|
612
|
+
"returns": "PptistAnimationCatalog"
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
"name": "animations.sequence",
|
|
616
|
+
"domain": "animations",
|
|
617
|
+
"payload": "{ slideId?: string }",
|
|
618
|
+
"returns": "PptistAnimationSequenceStep[]",
|
|
619
|
+
"optional": true
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"name": "animations.create",
|
|
623
|
+
"domain": "animations",
|
|
624
|
+
"payload": "{ slideId: string; animation: Partial<PPTAnimation> & { elId: string; effect: string; type: PPTAnimation['type'] } }",
|
|
625
|
+
"returns": "PPTAnimation"
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"name": "animations.update",
|
|
629
|
+
"domain": "animations",
|
|
630
|
+
"payload": "{ slideId: string; animationId: string; patch: Partial<PPTAnimation> }",
|
|
631
|
+
"returns": "PPTAnimation"
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"name": "animations.setTrigger",
|
|
635
|
+
"domain": "animations",
|
|
636
|
+
"payload": "{ slideId: string; animationId: string; trigger: PPTAnimation['trigger'] }",
|
|
637
|
+
"returns": "PPTAnimation"
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
"name": "animations.setDuration",
|
|
641
|
+
"domain": "animations",
|
|
642
|
+
"payload": "{ slideId: string; animationId: string; duration: number }",
|
|
643
|
+
"returns": "PPTAnimation"
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"name": "animations.delete",
|
|
647
|
+
"domain": "animations",
|
|
648
|
+
"payload": "{ slideId: string; animationId: string | string[] }",
|
|
649
|
+
"returns": "{ deleted: string[] }"
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
"name": "animations.reorder",
|
|
653
|
+
"domain": "animations",
|
|
654
|
+
"payload": "{ slideId: string; animationId: string; toIndex: number }",
|
|
655
|
+
"returns": "PPTAnimation[]"
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"name": "tables.create",
|
|
659
|
+
"domain": "tables",
|
|
660
|
+
"payload": "PptistCreateTableInput",
|
|
661
|
+
"returns": "PPTTableElement",
|
|
662
|
+
"optional": true
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"name": "tables.update",
|
|
666
|
+
"domain": "tables",
|
|
667
|
+
"payload": "{ elementId: string; slideId?: string; patch: PptistTableElementPatch }",
|
|
668
|
+
"returns": "PPTTableElement"
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
"name": "tables.setCell",
|
|
672
|
+
"domain": "tables",
|
|
673
|
+
"payload": "{ elementId: string; slideId?: string; row: number; col: number; patch: Partial<TableCell> }",
|
|
674
|
+
"returns": "PPTTableElement"
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"name": "tables.setCellStyle",
|
|
678
|
+
"domain": "tables",
|
|
679
|
+
"payload": "{ elementId: string; slideId?: string; row: number; col: number; style: Partial<TableCellStyle> }",
|
|
680
|
+
"returns": "PPTTableElement"
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
"name": "tables.insertRow",
|
|
684
|
+
"domain": "tables",
|
|
685
|
+
"payload": "{ elementId: string; slideId?: string; rowIndex: number }",
|
|
686
|
+
"returns": "PPTTableElement"
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
"name": "tables.deleteRow",
|
|
690
|
+
"domain": "tables",
|
|
691
|
+
"payload": "{ elementId: string; slideId?: string; rowIndex: number }",
|
|
692
|
+
"returns": "PPTTableElement"
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"name": "tables.insertColumn",
|
|
696
|
+
"domain": "tables",
|
|
697
|
+
"payload": "{ elementId: string; slideId?: string; colIndex: number }",
|
|
698
|
+
"returns": "PPTTableElement"
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
"name": "tables.deleteColumn",
|
|
702
|
+
"domain": "tables",
|
|
703
|
+
"payload": "{ elementId: string; slideId?: string; colIndex: number }",
|
|
704
|
+
"returns": "PPTTableElement"
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
"name": "tables.mergeCells",
|
|
708
|
+
"domain": "tables",
|
|
709
|
+
"payload": "{ elementId: string; slideId?: string; row: number; col: number; rowspan: number; colspan: number }",
|
|
710
|
+
"returns": "PPTTableElement"
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
"name": "tables.splitCell",
|
|
714
|
+
"domain": "tables",
|
|
715
|
+
"payload": "{ elementId: string; slideId?: string; row: number; col: number }",
|
|
716
|
+
"returns": "PPTTableElement"
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"name": "charts.create",
|
|
720
|
+
"domain": "charts",
|
|
721
|
+
"payload": "PptistCreateChartInput",
|
|
722
|
+
"returns": "PPTChartElement",
|
|
723
|
+
"optional": true
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"name": "charts.update",
|
|
727
|
+
"domain": "charts",
|
|
728
|
+
"payload": "{ elementId: string; slideId?: string; patch: PptistChartElementPatch }",
|
|
729
|
+
"returns": "PPTChartElement"
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"name": "charts.setType",
|
|
733
|
+
"domain": "charts",
|
|
734
|
+
"payload": "{ elementId: string; slideId?: string; chartType: ChartType }",
|
|
735
|
+
"returns": "PPTChartElement"
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
"name": "charts.setData",
|
|
739
|
+
"domain": "charts",
|
|
740
|
+
"payload": "{ elementId: string; slideId?: string; data: ChartData }",
|
|
741
|
+
"returns": "PPTChartElement"
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
"name": "charts.setLabels",
|
|
745
|
+
"domain": "charts",
|
|
746
|
+
"payload": "{ elementId: string; slideId?: string; labels: string[] }",
|
|
747
|
+
"returns": "PPTChartElement"
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
"name": "charts.setLegends",
|
|
751
|
+
"domain": "charts",
|
|
752
|
+
"payload": "{ elementId: string; slideId?: string; legends: string[] }",
|
|
753
|
+
"returns": "PPTChartElement"
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
"name": "charts.setSeries",
|
|
757
|
+
"domain": "charts",
|
|
758
|
+
"payload": "{ elementId: string; slideId?: string; index: number; series: number[] }",
|
|
759
|
+
"returns": "PPTChartElement"
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"name": "charts.addSeries",
|
|
763
|
+
"domain": "charts",
|
|
764
|
+
"payload": "{ elementId: string; slideId?: string; series: number[] }",
|
|
765
|
+
"returns": "PPTChartElement"
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"name": "charts.deleteSeries",
|
|
769
|
+
"domain": "charts",
|
|
770
|
+
"payload": "{ elementId: string; slideId?: string; index: number }",
|
|
771
|
+
"returns": "PPTChartElement"
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
"name": "charts.setOptions",
|
|
775
|
+
"domain": "charts",
|
|
776
|
+
"payload": "{ elementId: string; slideId?: string; options: ChartOptions }",
|
|
777
|
+
"returns": "PPTChartElement"
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
"name": "images.update",
|
|
781
|
+
"domain": "images",
|
|
782
|
+
"payload": "{ elementId: string; slideId?: string; patch: Partial<PPTImageElement> }",
|
|
783
|
+
"returns": "PPTImageElement"
|
|
784
|
+
},
|
|
785
|
+
{
|
|
786
|
+
"name": "images.setSource",
|
|
787
|
+
"domain": "images",
|
|
788
|
+
"payload": "{ elementId: string; slideId?: string; asset: PptistMediaAssetInput; patch?: Partial<PPTImageElement> }",
|
|
789
|
+
"returns": "PPTImageElement"
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
"name": "media.resolveAsset",
|
|
793
|
+
"domain": "media",
|
|
794
|
+
"payload": "{ asset: PptistMediaAssetInput; kind?: PptistMediaAssetKind }",
|
|
795
|
+
"returns": "PptistMediaAsset"
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
"name": "media.setImageSource",
|
|
799
|
+
"domain": "media",
|
|
800
|
+
"payload": "{ elementId: string; slideId?: string; asset: PptistMediaAssetInput; patch?: Partial<PPTImageElement> }",
|
|
801
|
+
"returns": "PPTImageElement"
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
"name": "media.setVideoSource",
|
|
805
|
+
"domain": "media",
|
|
806
|
+
"payload": "{ elementId: string; slideId?: string; asset: PptistMediaAssetInput; patch?: Partial<PPTVideoElement> }",
|
|
807
|
+
"returns": "PPTVideoElement"
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
"name": "media.setAudioSource",
|
|
811
|
+
"domain": "media",
|
|
812
|
+
"payload": "{ elementId: string; slideId?: string; asset: PptistMediaAssetInput; patch?: Partial<PPTAudioElement> }",
|
|
813
|
+
"returns": "PPTAudioElement"
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
"name": "images.setClip",
|
|
817
|
+
"domain": "images",
|
|
818
|
+
"payload": "{ elementId: string; slideId?: string; clip?: PPTImageElement['clip'] }",
|
|
819
|
+
"returns": "PPTImageElement"
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"name": "images.setCrop",
|
|
823
|
+
"domain": "images",
|
|
824
|
+
"payload": "{ elementId: string; slideId?: string; range: NonNullable<PPTImageElement['clip']>['range']; shape?: NonNullable<PPTImageElement['clip']>['shape'] }",
|
|
825
|
+
"returns": "PPTImageElement"
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
"name": "images.setMask",
|
|
829
|
+
"domain": "images",
|
|
830
|
+
"payload": "{ elementId: string; slideId?: string; mask: { shape?: string; radius?: number; colorMask?: string } }",
|
|
831
|
+
"returns": "PPTImageElement"
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
"name": "images.setRadius",
|
|
835
|
+
"domain": "images",
|
|
836
|
+
"payload": "{ elementId: string; slideId?: string; radius?: PPTImageElement['radius'] }",
|
|
837
|
+
"returns": "PPTImageElement"
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
"name": "images.setFilters",
|
|
841
|
+
"domain": "images",
|
|
842
|
+
"payload": "{ elementId: string; slideId?: string; filters?: PPTImageElement['filters'] }",
|
|
843
|
+
"returns": "PPTImageElement"
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
"name": "images.setFilter",
|
|
847
|
+
"domain": "images",
|
|
848
|
+
"payload": "{ elementId: string; slideId?: string; key: ImageFilterKey; value?: string | number }",
|
|
849
|
+
"returns": "PPTImageElement"
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"name": "images.setOpacity",
|
|
853
|
+
"domain": "images",
|
|
854
|
+
"payload": "{ elementId: string; slideId?: string; opacity: string | number }",
|
|
855
|
+
"returns": "PPTImageElement"
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
"name": "images.setFlip",
|
|
859
|
+
"domain": "images",
|
|
860
|
+
"payload": "{ elementId: string; slideId?: string; flip: Pick<PPTImageElement, 'flipH' | 'flipV'> }",
|
|
861
|
+
"returns": "PPTImageElement"
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
"name": "images.setShadow",
|
|
865
|
+
"domain": "images",
|
|
866
|
+
"payload": "{ elementId: string; slideId?: string; shadow?: Partial<NonNullable<PPTImageElement['shadow']>> }",
|
|
867
|
+
"returns": "PPTImageElement"
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"name": "images.setColorMask",
|
|
871
|
+
"domain": "images",
|
|
872
|
+
"payload": "{ elementId: string; slideId?: string; colorMask?: string }",
|
|
873
|
+
"returns": "PPTImageElement"
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
"name": "images.setImageType",
|
|
877
|
+
"domain": "images",
|
|
878
|
+
"payload": "{ elementId: string; slideId?: string; imageType?: PPTImageElement['imageType'] }",
|
|
879
|
+
"returns": "PPTImageElement"
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
"name": "images.setAsBackground",
|
|
883
|
+
"domain": "images",
|
|
884
|
+
"payload": "{ elementId: string; slideId?: string; options?: { slideId?: string; size?: NonNullable<SlideBackground['image']>['size']; deleteElement?: boolean } }",
|
|
885
|
+
"returns": "Slide"
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
"name": "videos.get",
|
|
889
|
+
"domain": "videos",
|
|
890
|
+
"payload": "{ elementId: string; slideId?: string }",
|
|
891
|
+
"returns": "PPTVideoElement"
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
"name": "videos.update",
|
|
895
|
+
"domain": "videos",
|
|
896
|
+
"payload": "{ elementId: string; slideId?: string; patch: PptistVideoPatch }",
|
|
897
|
+
"returns": "PPTVideoElement"
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
"name": "videos.setSource",
|
|
901
|
+
"domain": "videos",
|
|
902
|
+
"payload": "{ elementId: string; slideId?: string; source: PptistVideoSourcePatch }",
|
|
903
|
+
"returns": "PPTVideoElement"
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
"name": "videos.setPlayback",
|
|
907
|
+
"domain": "videos",
|
|
908
|
+
"payload": "{ elementId: string; slideId?: string; playback: PptistVideoPlaybackPatch }",
|
|
909
|
+
"returns": "PPTVideoElement"
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
"name": "videos.setAutoplay",
|
|
913
|
+
"domain": "videos",
|
|
914
|
+
"payload": "{ elementId: string; slideId?: string; autoplay: boolean }",
|
|
915
|
+
"returns": "PPTVideoElement"
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
"name": "videos.setPoster",
|
|
919
|
+
"domain": "videos",
|
|
920
|
+
"payload": "{ elementId: string; slideId?: string; poster: string }",
|
|
921
|
+
"returns": "PPTVideoElement"
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
"name": "videos.setSize",
|
|
925
|
+
"domain": "videos",
|
|
926
|
+
"payload": "{ elementId: string; slideId?: string; size: PptistVideoSizePatch }",
|
|
927
|
+
"returns": "PPTVideoElement"
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
"name": "videos.setPosition",
|
|
931
|
+
"domain": "videos",
|
|
932
|
+
"payload": "{ elementId: string; slideId?: string; position: PptistVideoPositionPatch }",
|
|
933
|
+
"returns": "PPTVideoElement"
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
"name": "audio.get",
|
|
937
|
+
"domain": "audio",
|
|
938
|
+
"payload": "{ elementId: string; slideId?: string }",
|
|
939
|
+
"returns": "PPTAudioElement | null"
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
"name": "audio.create",
|
|
943
|
+
"domain": "audio",
|
|
944
|
+
"payload": "PptistCreateAudioInput",
|
|
945
|
+
"returns": "PPTAudioElement"
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
"name": "audio.update",
|
|
949
|
+
"domain": "audio",
|
|
950
|
+
"payload": "{ elementId: string; slideId?: string; patch: PptistAudioElementPatch }",
|
|
951
|
+
"returns": "PPTAudioElement"
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
"name": "audio.setSource",
|
|
955
|
+
"domain": "audio",
|
|
956
|
+
"payload": "{ elementId: string; slideId?: string; source: PptistAudioSourceInput }",
|
|
957
|
+
"returns": "PPTAudioElement"
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
"name": "audio.setPlayback",
|
|
961
|
+
"domain": "audio",
|
|
962
|
+
"payload": "{ elementId: string; slideId?: string; playback: Pick<PptistAudioElementPatch, 'autoplay' | 'loop'> }",
|
|
963
|
+
"returns": "PPTAudioElement"
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"name": "audio.setIcon",
|
|
967
|
+
"domain": "audio",
|
|
968
|
+
"payload": "{ elementId: string; slideId?: string; icon: Pick<PptistAudioElementPatch, 'color' | 'fixedRatio'> }",
|
|
969
|
+
"returns": "PPTAudioElement"
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"name": "audio.transform",
|
|
973
|
+
"domain": "audio",
|
|
974
|
+
"payload": "{ elementId: string; slideId?: string; transform: PptistAudioTransformPatch }",
|
|
975
|
+
"returns": "PPTAudioElement"
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"name": "notes.create",
|
|
979
|
+
"domain": "notes",
|
|
980
|
+
"payload": "{ slideId: string; note: PptistNoteInput }",
|
|
981
|
+
"returns": "Note"
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
"name": "notes.update",
|
|
985
|
+
"domain": "notes",
|
|
986
|
+
"payload": "{ slideId: string; noteId: string; patch: PptistNotePatch }",
|
|
987
|
+
"returns": "Note"
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
"name": "notes.delete",
|
|
991
|
+
"domain": "notes",
|
|
992
|
+
"payload": "{ slideId: string; noteId: string | string[] }",
|
|
993
|
+
"returns": "{ deleted: string[] }"
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
"name": "notes.reply",
|
|
997
|
+
"domain": "notes",
|
|
998
|
+
"payload": "{ slideId: string; noteId: string; reply: PptistNoteReplyInput }",
|
|
999
|
+
"returns": "NoteReply"
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
"name": "sections.list",
|
|
1003
|
+
"domain": "sections",
|
|
1004
|
+
"payload": "undefined",
|
|
1005
|
+
"returns": "PptistSectionRange[]"
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
"name": "sections.set",
|
|
1009
|
+
"domain": "sections",
|
|
1010
|
+
"payload": "{ slideId: string; section: NonNullable<Slide['sectionTag']> }",
|
|
1011
|
+
"returns": "Slide"
|
|
1012
|
+
},
|
|
1013
|
+
{
|
|
1014
|
+
"name": "sections.clear",
|
|
1015
|
+
"domain": "sections",
|
|
1016
|
+
"payload": "{ sectionIdOrSlideId?: string; slideId?: string; sectionId?: string }",
|
|
1017
|
+
"returns": "Slide"
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
"name": "sections.rename",
|
|
1021
|
+
"domain": "sections",
|
|
1022
|
+
"payload": "{ sectionId: string; title: string }",
|
|
1023
|
+
"returns": "Slide[]"
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
"name": "sections.delete",
|
|
1027
|
+
"domain": "sections",
|
|
1028
|
+
"payload": "{ sectionId: string }",
|
|
1029
|
+
"returns": "{ deleted: string[] }"
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
"name": "sections.assignRange",
|
|
1033
|
+
"domain": "sections",
|
|
1034
|
+
"payload": "{ startIndex: number; endIndex: number; section: NonNullable<Slide['sectionTag']> }",
|
|
1035
|
+
"returns": "Slide[]"
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
"name": "sections.move",
|
|
1039
|
+
"domain": "sections",
|
|
1040
|
+
"payload": "{ sectionId: string; toIndex: number }",
|
|
1041
|
+
"returns": "Slide[]"
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
"name": "search.find",
|
|
1045
|
+
"domain": "search",
|
|
1046
|
+
"payload": "{ query: string; options?: PptistSearchOptions }",
|
|
1047
|
+
"returns": "PptistSearchResult[]"
|
|
1048
|
+
},
|
|
1049
|
+
{
|
|
1050
|
+
"name": "search.replace",
|
|
1051
|
+
"domain": "search",
|
|
1052
|
+
"payload": "{ query: string; replacement: string; options?: PptistReplaceOptions }",
|
|
1053
|
+
"returns": "PptistSearchReplaceResult"
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
"name": "history.commit",
|
|
1057
|
+
"domain": "history",
|
|
1058
|
+
"payload": "{ label?: string } | undefined",
|
|
1059
|
+
"returns": "PptistBridgeState"
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
"name": "history.undo",
|
|
1063
|
+
"domain": "history",
|
|
1064
|
+
"payload": "undefined",
|
|
1065
|
+
"returns": "PptistBridgeState"
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
"name": "history.redo",
|
|
1069
|
+
"domain": "history",
|
|
1070
|
+
"payload": "undefined",
|
|
1071
|
+
"returns": "PptistBridgeState"
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
"name": "view.goToSlide",
|
|
1075
|
+
"domain": "view",
|
|
1076
|
+
"payload": "{ slideIdOrIndex: PptistSlideReference }",
|
|
1077
|
+
"returns": "PptistBridgeState"
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
"name": "view.nextSlide",
|
|
1081
|
+
"domain": "view",
|
|
1082
|
+
"payload": "undefined",
|
|
1083
|
+
"returns": "PptistBridgeState"
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
"name": "view.previousSlide",
|
|
1087
|
+
"domain": "view",
|
|
1088
|
+
"payload": "undefined",
|
|
1089
|
+
"returns": "PptistBridgeState"
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
"name": "view.setZoom",
|
|
1093
|
+
"domain": "view",
|
|
1094
|
+
"payload": "{ scale: number }",
|
|
1095
|
+
"returns": "PptistBridgeState"
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
"name": "view.enterPresentation",
|
|
1099
|
+
"domain": "view",
|
|
1100
|
+
"payload": "undefined",
|
|
1101
|
+
"returns": "PptistBridgeState"
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
"name": "view.exitPresentation",
|
|
1105
|
+
"domain": "view",
|
|
1106
|
+
"payload": "undefined",
|
|
1107
|
+
"returns": "PptistBridgeState"
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
"name": "view.setLocale",
|
|
1111
|
+
"domain": "view",
|
|
1112
|
+
"payload": "{ locale: Locales }",
|
|
1113
|
+
"returns": "{ locale: Locales }"
|
|
1114
|
+
}
|
|
1115
|
+
],
|
|
1116
|
+
"helperTypes": {
|
|
1117
|
+
"ImageFilterKey": "type ImageFilterKey = keyof NonNullable<PPTImageElement['filters']>",
|
|
1118
|
+
"PptistAnimationCatalog": "export interface PptistAnimationCatalog { enter: PptistAnimationPresetGroup[]; exit: PptistAnimationPresetGroup[]; attention: PptistAnimationPresetGroup[]; slide: PptistSlideAnimationPreset[] }",
|
|
1119
|
+
"PptistAnimationPreset": "export interface PptistAnimationPreset { name: string; value: string }",
|
|
1120
|
+
"PptistAnimationPresetGroup": "export interface PptistAnimationPresetGroup { type: string; name: string; children: PptistAnimationPreset[] }",
|
|
1121
|
+
"PptistAnimationSequenceStep": "export interface PptistAnimationSequenceStep { index: number; animations: PPTAnimation[]; autoNext: boolean }",
|
|
1122
|
+
"PptistAudioElementPatch": "export type PptistAudioElementPatch = Partial<Pick<PPTAudioElement, 'src' | 'ext' | 'autoplay' | 'loop' | 'color' | 'fixedRatio' | 'link' | 'name' | 'lock' | 'groupId'>> & { transform?: PptistAudioTransformPatch }",
|
|
1123
|
+
"PptistAudioSourceInput": "export type PptistAudioSourceInput = PptistMediaAssetInput",
|
|
1124
|
+
"PptistAudioTransformPatch": "export type PptistAudioTransformPatch = Pick<PptistElementTransformPatch, 'left' | 'top' | 'width' | 'height' | 'rotate'>",
|
|
1125
|
+
"PptistBridgeState": "export interface PptistBridgeState { title: string; slideIndex: number; slideCount: number; currentSlideId?: string; selectedSlideIndexes: number[]; selectedElementIds: string[]; handleElementId: string; activeGroupElementId: string; hiddenElementIds: string[]; viewportSize: number; viewportRatio: number; canvasScale: number; canvasPercentage: number; screening: boolean; canUndo: boolean; canRedo: boolean; documentVersion: number; locale?: Locales }",
|
|
1126
|
+
"PptistChartElementPatch": "export interface PptistChartElementPatch { chartType?: ChartType; data?: ChartData; options?: ChartOptions; fill?: PPTChartElement['fill']; outline?: Partial<NonNullable<PPTChartElement['outline']>>; themeColors?: string[]; textColor?: string; lineColor?: string }",
|
|
1127
|
+
"PptistCreateAudioInput": "export interface PptistCreateAudioInput extends PptistAudioElementPatch { id?: string; source?: PptistAudioSourceInput; slideId?: string; index?: number; select?: boolean }",
|
|
1128
|
+
"PptistCreateChartInput": "export type PptistCreateChartInput = PptistChartElementPatch & Partial<Pick<PPTChartElement, 'id' | 'left' | 'top' | 'width' | 'height' | 'rotate'>> & { slideId?: string; index?: number; select?: boolean }",
|
|
1129
|
+
"PptistCreateLatexElementInput": "export interface PptistCreateLatexElementInput { slideId?: string; index?: number; element: PptistLatexElementInput; select?: boolean }",
|
|
1130
|
+
"PptistCreateLineElementInput": "export interface PptistCreateLineElementInput { slideId?: string; index?: number; element: PptistLineElementInput; select?: boolean }",
|
|
1131
|
+
"PptistCreateTableInput": "export type PptistCreateTableInput = PptistTableElementPatch & { id?: string; slideId?: string; index?: number; select?: boolean; element?: Partial<PPTTableElement> }",
|
|
1132
|
+
"PptistDeckDocument": "export type PptistDeckDocument = Omit<PptistDocument, 'theme'> & { theme: SlideTheme; viewport: PptistDeckViewport; templates: SlideTemplate[] }",
|
|
1133
|
+
"PptistDeckInput": "export type PptistDeckInput = Omit<PptistDocument, 'theme'> & { theme?: PptistSlideThemePatch; viewport?: Partial<PptistDeckViewport>; templates?: SlideTemplate[] }",
|
|
1134
|
+
"PptistDeckPatch": "export interface PptistDeckPatch { title?: string; slides?: Slide[]; theme?: PptistSlideThemePatch; viewport?: Partial<PptistDeckViewport>; templates?: SlideTemplate[] }",
|
|
1135
|
+
"PptistDeckViewport": "export interface PptistDeckViewport { size: number; ratio: number }",
|
|
1136
|
+
"PptistDeleteSlidesResult": "export interface PptistDeleteSlidesResult { deleted: string[]; slideIndex: number; currentSlideId?: string }",
|
|
1137
|
+
"PptistDocumentImportPayload": "export type PptistDocumentImportPayload = PptistDeckInput | { document: PptistDeckInput }",
|
|
1138
|
+
"PptistElementFlipInput": "export interface PptistElementFlipInput { flipH?: boolean; flipV?: boolean }",
|
|
1139
|
+
"PptistElementMoveInput": "export interface PptistElementMoveInput { left?: number; top?: number; dx?: number; dy?: number }",
|
|
1140
|
+
"PptistElementResizeInput": "export interface PptistElementResizeInput { width?: number; height?: number; dw?: number; dh?: number }",
|
|
1141
|
+
"PptistElementTransformPatch": "export interface PptistElementTransformPatch { left?: number; top?: number; width?: number; height?: number; rotate?: number; opacity?: number; flipH?: boolean; flipV?: boolean }",
|
|
1142
|
+
"PptistFillElement": "export type PptistFillElement = PPTTextElement | PPTShapeElement | PPTChartElement",
|
|
1143
|
+
"PptistIdMap": "export type PptistIdMap = Record<string, string>",
|
|
1144
|
+
"PptistIdRemap": "export interface PptistIdRemap { slideIds: PptistIdMap; elementIds: PptistIdMap; groupIds: PptistIdMap; animationIds: PptistIdMap }",
|
|
1145
|
+
"PptistInsertElementsInput": "export interface PptistInsertElementsInput { slideId?: string; index?: number; elements: PPTElement | PPTElement[]; animations?: PPTAnimation[]; offset?: number | { left?: number; top?: number }; select?: boolean; preserveExternalSlideLinks?: boolean; slideIdMap?: PptistIdMap }",
|
|
1146
|
+
"PptistInsertElementsResult": "export interface PptistInsertElementsResult { slideId: string; elements: PPTElement[]; animations: PPTAnimation[]; remap: Omit<PptistIdRemap, 'slideIds'> & { slideIds?: PptistIdMap } }",
|
|
1147
|
+
"PptistInsertSlidesInput": "export interface PptistInsertSlidesInput { slides: Slide | Slide[]; index?: number; select?: boolean; preserveExternalSlideLinks?: boolean }",
|
|
1148
|
+
"PptistInsertSlidesResult": "export interface PptistInsertSlidesResult { slides: Slide[]; remap: PptistIdRemap }",
|
|
1149
|
+
"PptistJsonPrimitive": "export type PptistJsonPrimitive = string | number | boolean | null",
|
|
1150
|
+
"PptistJsonValue": "export type PptistJsonValue = PptistJsonPrimitive | PptistJsonValue[] | { [key: string]: PptistJsonValue }",
|
|
1151
|
+
"PptistLatexElementInput": "export type PptistLatexElementInput = PptistLatexElementSizing & Pick<PPTLatexElement, 'latex' | 'path'> & Partial<Pick<PPTLatexElement, 'id' | 'color' | 'strokeWidth' | 'viewBox' | 'fixedRatio' | 'link' | 'name' | 'lock' | 'groupId'>>",
|
|
1152
|
+
"PptistLatexElementPatch": "export type PptistLatexElementPatch = Partial<PptistLatexElementSizing & Pick<PPTLatexElement, 'latex' | 'path' | 'color' | 'strokeWidth' | 'viewBox' | 'fixedRatio' | 'link' | 'name' | 'lock' | 'groupId'>>",
|
|
1153
|
+
"PptistLatexElementSizing": "export interface PptistLatexElementSizing { left?: number; top?: number; width?: number; height?: number; rotate?: number }",
|
|
1154
|
+
"PptistLineDirectionInput": "export type PptistLineDirectionInput = Broken2LineDirection | 'auto'",
|
|
1155
|
+
"PptistLineElementInput": "export type PptistLineElementInput = Partial<Pick<PPTLineElement, 'id' | 'left' | 'top' | 'width' | 'style' | 'color' | 'points' | 'shadow' | 'broken' | 'broken2' | 'broken2Direction' | 'curve' | 'cubic' | 'link' | 'name' | 'lock' | 'groupId'>> & Pick<PPTLineElement, 'start' | 'end'>",
|
|
1156
|
+
"PptistLineElementPatch": "export type PptistLineElementPatch = Partial<Pick<PPTLineElement, 'left' | 'top' | 'width' | 'start' | 'end' | 'style' | 'color' | 'points' | 'shadow' | 'broken' | 'broken2' | 'broken2Direction' | 'curve' | 'cubic' | 'link' | 'name' | 'lock' | 'groupId'>>",
|
|
1157
|
+
"PptistLineStyleInput": "export interface PptistLineStyleInput { style?: LineStyleType; color?: string; width?: number }",
|
|
1158
|
+
"PptistMediaAsset": "export interface PptistMediaAsset { id?: string; kind?: PptistMediaAssetKind; src: string; ext?: string; mimeType?: string; filename?: string; title?: string; width?: number; height?: number; size?: number; poster?: string; metadata?: { [key: string]: PptistJsonValue } }",
|
|
1159
|
+
"PptistMediaAssetInput": "export type PptistMediaAssetInput = string | PptistMediaAsset",
|
|
1160
|
+
"PptistMediaAssetKind": "export type PptistMediaAssetKind = 'image' | 'video' | 'audio'",
|
|
1161
|
+
"PptistNoteInput": "export type PptistNoteInput = Partial<Omit<Note, 'replies'>> & { content: string; user: string; replies?: PptistNoteReplyInput[] }",
|
|
1162
|
+
"PptistNotePatch": "export type PptistNotePatch = Partial<Omit<Note, 'replies'>> & { replies?: PptistNoteReplyInput[] }",
|
|
1163
|
+
"PptistNoteReplyInput": "export type PptistNoteReplyInput = Partial<NoteReply> & { content: string; user: string }",
|
|
1164
|
+
"PptistOutlineElement": "export type PptistOutlineElement = PPTTextElement | PPTImageElement | PPTShapeElement | PPTChartElement | PPTTableElement",
|
|
1165
|
+
"PptistReplaceOptions": "export interface PptistReplaceOptions extends PptistSearchOptions { replaceAll?: boolean }",
|
|
1166
|
+
"PptistRichTextParagraphAttrs": "export interface PptistRichTextParagraphAttrs { align?: TextAlign | ''; indent?: number; textIndent?: number }",
|
|
1167
|
+
"PptistRichTextStylePatch": "export type PptistRichTextStylePatch = Partial<Pick<PPTTextElement, 'defaultFontName' | 'defaultColor' | 'lineHeight' | 'paragraphSpace' | 'wordSpace' | 'inset' | 'vertical'>> & Partial<Pick<ShapeText, 'align'>>",
|
|
1168
|
+
"PptistSearchOptions": "export interface PptistSearchOptions { caseSensitive?: boolean; regex?: boolean }",
|
|
1169
|
+
"PptistSearchReplaceResult": "export interface PptistSearchReplaceResult { count: number }",
|
|
1170
|
+
"PptistSearchResult": "export interface PptistSearchResult { slideId: string; elementId: string; elementType: PPTElement['type']; path: string; match: string; start?: number; end?: number; row?: number; col?: number }",
|
|
1171
|
+
"PptistSectionRange": "export interface PptistSectionRange { slideId: string; index: number; section: NonNullable<Slide['sectionTag']>; startIndex: number; endIndex: number; slideIds: string[] }",
|
|
1172
|
+
"PptistShadowElement": "export type PptistShadowElement = PPTTextElement | PPTImageElement | PPTShapeElement | PPTLineElement",
|
|
1173
|
+
"PptistSlideAnimationPreset": "export interface PptistSlideAnimationPreset { label: string; value: TurningMode }",
|
|
1174
|
+
"PptistSlideReference": "export type PptistSlideReference = string | number",
|
|
1175
|
+
"PptistSlideThemePatch": "export type PptistSlideThemePatch = Omit<Partial<SlideTheme>, 'outline' | 'shadow'> & { outline?: Partial<SlideTheme['outline']>; shadow?: Partial<SlideTheme['shadow']> }",
|
|
1176
|
+
"PptistSlideTransition": "export interface PptistSlideTransition { slideId: string; turningMode?: TurningMode }",
|
|
1177
|
+
"PptistTableElementPatch": "export type PptistTableElementPatch = Partial<Omit<PPTTableElement, 'type' | 'id' | 'outline' | 'theme'>> & { outline?: Partial<PPTTableElement['outline']>; theme?: Partial<NonNullable<PPTTableElement['theme']>> }",
|
|
1178
|
+
"PptistVideoPatch": "export type PptistVideoPatch = PptistVideoPlaybackPatch & PptistVideoSizePatch & PptistVideoPositionPatch & PptistVideoStylePatch",
|
|
1179
|
+
"PptistVideoPlaybackPatch": "export interface PptistVideoPlaybackPatch { src?: string; ext?: string; autoplay?: boolean; poster?: string }",
|
|
1180
|
+
"PptistVideoPositionPatch": "export interface PptistVideoPositionPatch { left?: number; top?: number; rotate?: number }",
|
|
1181
|
+
"PptistVideoSizePatch": "export interface PptistVideoSizePatch { width?: number; height?: number }",
|
|
1182
|
+
"PptistVideoSourcePatch": "export interface PptistVideoSourcePatch { src: string; ext?: string }",
|
|
1183
|
+
"PptistVideoStylePatch": "export interface PptistVideoStylePatch { lock?: boolean; groupId?: string; name?: string; link?: PPTElementLink }",
|
|
1184
|
+
"SlideReference": "type SlideReference = string | number",
|
|
1185
|
+
"SlideSelectorPayload": "type SlideSelectorPayload = { slideId?: string; index?: number; slideIdOrIndex?: SlideReference }"
|
|
1186
|
+
},
|
|
1187
|
+
"modelTypes": {
|
|
1188
|
+
"AnimationTrigger": "export type AnimationTrigger = 'click' | 'meantime' | 'auto'",
|
|
1189
|
+
"AnimationType": "export type AnimationType = 'in' | 'out' | 'attention'",
|
|
1190
|
+
"Broken2LineDirection": "export type Broken2LineDirection = 'horizontal' | 'vertical'",
|
|
1191
|
+
"ChartData": "export interface ChartData { labels: string[]; legends: string[]; series: number[][] }",
|
|
1192
|
+
"ChartOptions": "export interface ChartOptions { lineSmooth?: boolean; stack?: boolean }",
|
|
1193
|
+
"ChartType": "export type ChartType = 'bar' | 'column' | 'line' | 'pie' | 'ring' | 'area' | 'radar' | 'scatter'",
|
|
1194
|
+
"ElementLinkType": "export type ElementLinkType = 'web' | 'slide'",
|
|
1195
|
+
"Gradient": "export interface Gradient { type: GradientType; colors: GradientColor[]; rotate: number }",
|
|
1196
|
+
"GradientColor": "export type GradientColor = { pos: number; color: string }",
|
|
1197
|
+
"GradientType": "export type GradientType = 'linear' | 'radial'",
|
|
1198
|
+
"ImageClipDataRange": "export type ImageClipDataRange = [[number, number], [number, number]]",
|
|
1199
|
+
"ImageElementClip": "export interface ImageElementClip { range: ImageClipDataRange; shape: string }",
|
|
1200
|
+
"ImageElementFilters": "export interface ImageElementFilters { 'blur'?: string; 'brightness'?: string; 'contrast'?: string; 'grayscale'?: string; 'saturate'?: string; 'hue-rotate'?: string; 'sepia'?: string; 'invert'?: string; 'opacity'?: string }",
|
|
1201
|
+
"ImageType": "export type ImageType = 'pageFigure' | 'itemFigure' | 'background'",
|
|
1202
|
+
"LinePoint": "export type LinePoint = '' | 'arrow' | 'dot'",
|
|
1203
|
+
"LineStyleType": "export type LineStyleType = 'solid' | 'dashed' | 'dotted'",
|
|
1204
|
+
"Note": "export interface Note { id: string; content: string; time: number; user: string; elId?: string; replies?: NoteReply[] }",
|
|
1205
|
+
"NoteReply": "export interface NoteReply { id: string; content: string; time: number; user: string }",
|
|
1206
|
+
"PPTAnimation": "export interface PPTAnimation { id: string; elId: string; effect: string; type: AnimationType; duration: number; trigger: AnimationTrigger }",
|
|
1207
|
+
"PPTAudioElement": "export interface PPTAudioElement extends PPTBaseElement { type: 'audio'; fixedRatio: boolean; color: string; loop: boolean; autoplay: boolean; src: string; ext?: string }",
|
|
1208
|
+
"PPTBaseElement": "interface PPTBaseElement { id: string; left: number; top: number; lock?: boolean; groupId?: string; width: number; height: number; rotate: number; link?: PPTElementLink; name?: string }",
|
|
1209
|
+
"PPTChartElement": "export interface PPTChartElement extends PPTBaseElement { type: 'chart'; fill?: string; chartType: ChartType; data: ChartData; options?: ChartOptions; outline?: PPTElementOutline; themeColors: string[]; textColor?: string; lineColor?: string }",
|
|
1210
|
+
"PPTElement": "export type PPTElement = PPTTextElement | PPTImageElement | PPTShapeElement | PPTLineElement | PPTChartElement | PPTTableElement | PPTLatexElement | PPTVideoElement | PPTAudioElement",
|
|
1211
|
+
"PPTElementLink": "export interface PPTElementLink { type: ElementLinkType; target: string }",
|
|
1212
|
+
"PPTElementOutline": "export interface PPTElementOutline { style?: LineStyleType; width?: number; color?: string }",
|
|
1213
|
+
"PPTElementShadow": "export interface PPTElementShadow { h: number; v: number; blur: number; color: string }",
|
|
1214
|
+
"PPTImageElement": "export interface PPTImageElement extends PPTBaseElement { type: 'image'; fixedRatio: boolean; src: string; outline?: PPTElementOutline; filters?: ImageElementFilters; clip?: ImageElementClip; flipH?: boolean; flipV?: boolean; shadow?: PPTElementShadow; radius?: number; colorMask?: string; imageType?: ImageType }",
|
|
1215
|
+
"PPTLatexElement": "export interface PPTLatexElement extends PPTBaseElement { type: 'latex'; latex: string; path: string; color: string; strokeWidth: number; viewBox: [number, number]; fixedRatio: boolean }",
|
|
1216
|
+
"PPTLineElement": "export interface PPTLineElement extends Omit<PPTBaseElement, 'height' | 'rotate'> { type: 'line'; start: [number, number]; end: [number, number]; style: LineStyleType; color: string; points: [LinePoint, LinePoint]; shadow?: PPTElementShadow; broken?: [number, number]; broken2?: [number, number]; broken2Direction?: Broken2LineDirection; curve?: [number, number]; cubic?: [[number, number], [number, number]] }",
|
|
1217
|
+
"PPTShapeElement": "export interface PPTShapeElement extends PPTBaseElement { type: 'shape'; viewBox: [number, number]; path: string; fixedRatio: boolean; fill: string; gradient?: Gradient; pattern?: string; outline?: PPTElementOutline; opacity?: number; flipH?: boolean; flipV?: boolean; shadow?: PPTElementShadow; special?: boolean; text?: ShapeText; pathFormula?: ShapePathFormulasKeys; keypoints?: number[] }",
|
|
1218
|
+
"PPTTableElement": "export interface PPTTableElement extends PPTBaseElement { type: 'table'; outline: PPTElementOutline; theme?: TableTheme; colWidths: number[]; cellMinHeight: number; data: TableCell[][] }",
|
|
1219
|
+
"PPTTextElement": "export interface PPTTextElement extends PPTBaseElement { type: 'text'; content: string; defaultFontName: string; defaultColor: string; outline?: PPTElementOutline; fill?: string; lineHeight?: number; wordSpace?: number; opacity?: number; shadow?: PPTElementShadow; paragraphSpace?: number; vertical?: boolean; textType?: TextType; inset?: TextInset }",
|
|
1220
|
+
"PPTVideoElement": "export interface PPTVideoElement extends PPTBaseElement { type: 'video'; src: string; autoplay: boolean; poster?: string; ext?: string }",
|
|
1221
|
+
"SectionTag": "export interface SectionTag { id: string; title?: string }",
|
|
1222
|
+
"ShapePathFormulasKeys": "export declare const enum ShapePathFormulasKeys { ROUND_RECT = \"roundRect\", ROUND_RECT_DIAGONAL = \"roundRectDiagonal\", ROUND_RECT_SINGLE = \"roundRectSingle\", ROUND_RECT_SAMESIDE = \"roundRectSameSide\", CUT_RECT_DIAGONAL = \"cutRectDiagonal\", CUT_RECT_SINGLE = \"cutRectSingle\", CUT_RECT_SAMESIDE = \"cutRectSameSide\", CUT_ROUND_RECT = \"cutRoundRect\", MESSAGE = \"message\", ROUND_MESSAGE = \"roundMessage\", L = \"L\", RING_RECT = \"ringRect\", PLUS = \"plus\", TRIANGLE = \"triangle\", PARALLELOGRAM_LEFT = \"parallelogramLeft\", PARALLELOGRAM_RIGHT = \"parallelogramRight\", TRAPEZOID = \"trapezoid\", BULLET = \"bullet\", INDICATOR = \"indicator\", DONUT = \"donut\", DIAGSTRIPE = \"diagStripe\" }",
|
|
1223
|
+
"ShapeText": "export interface ShapeText { content: string; defaultFontName: string; defaultColor: string; align: TextAlignVertical; lineHeight?: number; wordSpace?: number; paragraphSpace?: number; inset?: TextInset; type?: TextType }",
|
|
1224
|
+
"Slide": "export interface Slide { id: string; elements: PPTElement[]; notes?: Note[]; remark?: string; background?: SlideBackground; animations?: PPTAnimation[]; turningMode?: TurningMode; sectionTag?: SectionTag; type?: SlideType }",
|
|
1225
|
+
"SlideBackground": "export interface SlideBackground { type: SlideBackgroundType; color?: string; image?: SlideBackgroundImage; gradient?: Gradient }",
|
|
1226
|
+
"SlideBackgroundImage": "export interface SlideBackgroundImage { src: string; size: SlideBackgroundImageSize }",
|
|
1227
|
+
"SlideBackgroundImageSize": "export type SlideBackgroundImageSize = 'cover' | 'contain' | 'repeat'",
|
|
1228
|
+
"SlideBackgroundType": "export type SlideBackgroundType = 'solid' | 'image' | 'gradient'",
|
|
1229
|
+
"SlideTemplate": "export interface SlideTemplate { name: string; id: string; cover: string; origin?: string }",
|
|
1230
|
+
"SlideTheme": "export interface SlideTheme { backgroundColor: string; themeColors: string[]; fontColor: string; fontName: string; outline: PPTElementOutline; shadow: PPTElementShadow }",
|
|
1231
|
+
"SlideType": "export type SlideType = 'cover' | 'contents' | 'transition' | 'content' | 'end'",
|
|
1232
|
+
"TableCell": "export interface TableCell { id: string; colspan: number; rowspan: number; text: string; style?: TableCellStyle }",
|
|
1233
|
+
"TableCellStyle": "export interface TableCellStyle { bold?: boolean; em?: boolean; underline?: boolean; strikethrough?: boolean; color?: string; backcolor?: string; fontsize?: string; fontname?: string; align?: TextAlign; vAlign?: TextAlignVertical }",
|
|
1234
|
+
"TableTheme": "export interface TableTheme { color: string; rowHeader: boolean; rowFooter: boolean; colHeader: boolean; colFooter: boolean }",
|
|
1235
|
+
"TextAlign": "export type TextAlign = 'left' | 'center' | 'right' | 'justify'",
|
|
1236
|
+
"TextAlignVertical": "export type TextAlignVertical = 'top' | 'middle' | 'bottom'",
|
|
1237
|
+
"TextInset": "export type TextInset = [number, number, number, number]",
|
|
1238
|
+
"TextType": "export type TextType = 'title' | 'subtitle' | 'content' | 'item' | 'itemTitle' | 'notes' | 'header' | 'footer' | 'partNumber' | 'itemNumber'",
|
|
1239
|
+
"TurningMode": "export type TurningMode = 'no' | 'fade' | 'slideX' | 'slideY' | 'random' | 'slideX3D' | 'slideY3D' | 'rotate' | 'scaleY' | 'scaleX' | 'scale' | 'scaleReverse'"
|
|
1240
|
+
}
|
|
1241
|
+
}
|