@betteroffice/pptx 0.1.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +116 -130
- package/dist/chunk-2NCQ2IE7.js +3 -0
- package/dist/chunk-4FWJR3UX.js +1 -0
- package/dist/chunk-H3SEEI4U.js +1 -0
- package/dist/chunk-LIYNXEQC.js +1 -0
- package/dist/chunk-NNSP5326.js +1 -0
- package/dist/chunk-YMIVEAXD.js +0 -0
- package/dist/collaboration.d.ts +11 -0
- package/dist/collaboration.js +1 -0
- package/dist/editorSession-Cuqxkg-B.d.ts +1753 -0
- package/dist/generated/pptx_wasm_bg.wasm +0 -0
- package/dist/index.d.ts +9 -791
- package/dist/index.js +1 -1
- package/dist/main-C6-cc0fR.d.ts +146 -0
- package/dist/pptxSessionWorker.d.ts +2 -0
- package/dist/pptxSessionWorker.mjs +9 -0
- package/dist/presence-C1o8TDwu.d.ts +95 -0
- package/dist/types-ui_ARP0o.d.ts +93 -0
- package/dist/worker.d.ts +621 -0
- package/dist/worker.js +1 -0
- package/package.json +18 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,549 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
color?: string;
|
|
6
|
-
fontFamily?: string;
|
|
7
|
-
underline?: string;
|
|
8
|
-
spacingPt?: number;
|
|
9
|
-
baselinePct?: number;
|
|
10
|
-
}
|
|
11
|
-
type TextStylePatch = TextStyle;
|
|
12
|
-
interface TextStyleSnapshot {
|
|
13
|
-
bold: boolean | null;
|
|
14
|
-
italic: boolean | null;
|
|
15
|
-
fontSizePt: number | null;
|
|
16
|
-
color: string | null;
|
|
17
|
-
fontFamily: string | null;
|
|
18
|
-
underline: string | null;
|
|
19
|
-
spacingPt?: number | null;
|
|
20
|
-
baselinePct?: number | null;
|
|
21
|
-
}
|
|
22
|
-
interface TextRunSnapshot {
|
|
23
|
-
text: string;
|
|
24
|
-
style: TextStyleSnapshot;
|
|
25
|
-
}
|
|
26
|
-
/** OOXML `a:pPr@algn` token. */
|
|
27
|
-
type ParagraphAlignment = 'l' | 'ctr' | 'r' | 'just';
|
|
28
|
-
interface ParagraphSnapshot {
|
|
29
|
-
id: string;
|
|
30
|
-
alignment: string | null;
|
|
31
|
-
level: number;
|
|
32
|
-
bulletJson: string | null;
|
|
33
|
-
runs: TextRunSnapshot[];
|
|
34
|
-
}
|
|
35
|
-
interface StorySnapshot {
|
|
36
|
-
id: string;
|
|
37
|
-
length: number;
|
|
38
|
-
paragraphs: ParagraphSnapshot[];
|
|
39
|
-
}
|
|
40
|
-
type ShapeKind = 'shape' | 'picture' | 'graphicFrame' | 'group';
|
|
41
|
-
interface ColorValue {
|
|
42
|
-
rgb?: string;
|
|
43
|
-
themeColor?: string;
|
|
44
|
-
themeTint?: string;
|
|
45
|
-
themeShade?: string;
|
|
46
|
-
auto?: boolean;
|
|
47
|
-
}
|
|
48
|
-
interface ShapeFill {
|
|
49
|
-
type: string;
|
|
50
|
-
color?: ColorValue;
|
|
51
|
-
}
|
|
52
|
-
interface ShapeOutline {
|
|
53
|
-
width?: number;
|
|
54
|
-
color?: ColorValue;
|
|
55
|
-
style?: string;
|
|
56
|
-
cap?: string;
|
|
57
|
-
join?: string;
|
|
58
|
-
}
|
|
59
|
-
type BlipEffect = {
|
|
60
|
-
type: 'biLevel';
|
|
61
|
-
threshold: number;
|
|
62
|
-
} | {
|
|
63
|
-
type: 'grayscale';
|
|
64
|
-
} | {
|
|
65
|
-
type: 'luminance';
|
|
66
|
-
brightness: number;
|
|
67
|
-
contrast: number;
|
|
68
|
-
} | {
|
|
69
|
-
type: 'duotone';
|
|
70
|
-
shadow: ColorValue | null;
|
|
71
|
-
highlight: ColorValue | null;
|
|
72
|
-
} | {
|
|
73
|
-
type: 'colorChange';
|
|
74
|
-
from: ColorValue | null;
|
|
75
|
-
to: ColorValue | null;
|
|
76
|
-
useAlpha?: boolean;
|
|
77
|
-
};
|
|
78
|
-
interface ShapeSnapshot {
|
|
79
|
-
id: string;
|
|
80
|
-
sourceId: number;
|
|
81
|
-
kind: ShapeKind;
|
|
82
|
-
name: string;
|
|
83
|
-
x: number;
|
|
84
|
-
y: number;
|
|
85
|
-
width: number;
|
|
86
|
-
height: number;
|
|
87
|
-
rotationDeg: number;
|
|
88
|
-
flipH: boolean;
|
|
89
|
-
flipV: boolean;
|
|
90
|
-
/** Hides this shape and its descendants; omitted when false. */
|
|
91
|
-
hidden?: boolean;
|
|
92
|
-
geometry: string;
|
|
93
|
-
adjustValues: Record<string, number>;
|
|
94
|
-
placeholder: unknown | null;
|
|
95
|
-
fill: ShapeFill | null;
|
|
96
|
-
resolvedFillColor: string | null;
|
|
97
|
-
outline: ShapeOutline | null;
|
|
98
|
-
resolvedOutlineColor: string | null;
|
|
99
|
-
mediaPartPath: string | null;
|
|
100
|
-
blipEffects?: BlipEffect[];
|
|
101
|
-
graphic: unknown | null;
|
|
102
|
-
textStories: StorySnapshot[];
|
|
103
|
-
children: ShapeSnapshot[];
|
|
104
|
-
}
|
|
105
|
-
interface SlideSnapshot {
|
|
106
|
-
id: string;
|
|
107
|
-
sourcePartPath: string | null;
|
|
108
|
-
layoutPartPath: string | null;
|
|
109
|
-
name: string | null;
|
|
110
|
-
/** Speaker notes as plain text; absent when the slide has none. */
|
|
111
|
-
notes?: string;
|
|
112
|
-
shapes: ShapeSnapshot[];
|
|
113
|
-
}
|
|
114
|
-
interface DeckSnapshot {
|
|
115
|
-
widthEmu: number;
|
|
116
|
-
heightEmu: number;
|
|
117
|
-
slides: SlideSnapshot[];
|
|
118
|
-
commentFlavor?: CommentFlavor;
|
|
119
|
-
comments?: CommentSnapshot[];
|
|
120
|
-
}
|
|
121
|
-
/** Legacy comments or modern threads. */
|
|
122
|
-
type CommentFlavor = 'legacy' | 'modern';
|
|
123
|
-
interface CommentSnapshot {
|
|
124
|
-
id: string;
|
|
125
|
-
slideId: string;
|
|
126
|
-
author: string;
|
|
127
|
-
initials: string;
|
|
128
|
-
text: string;
|
|
129
|
-
created: string | null;
|
|
130
|
-
xEmu: number;
|
|
131
|
-
yEmu: number;
|
|
132
|
-
/** Set on a reply; names the thread root. Modern decks only. */
|
|
133
|
-
parentId: string | null;
|
|
134
|
-
resolved: boolean;
|
|
135
|
-
}
|
|
136
|
-
interface CommentReceipt {
|
|
137
|
-
commentId: string;
|
|
138
|
-
slideId: string;
|
|
139
|
-
parentId: string | null;
|
|
140
|
-
resolved: boolean;
|
|
141
|
-
}
|
|
142
|
-
interface SlideReceipt {
|
|
143
|
-
slideId: string;
|
|
144
|
-
fromIndex: number | null;
|
|
145
|
-
toIndex: number | null;
|
|
146
|
-
}
|
|
147
|
-
interface ShapeReceipt {
|
|
148
|
-
slideId: string;
|
|
149
|
-
shapeId: string;
|
|
150
|
-
index: number;
|
|
151
|
-
}
|
|
152
|
-
interface ShapeRect {
|
|
153
|
-
x: number;
|
|
154
|
-
y: number;
|
|
155
|
-
width: number;
|
|
156
|
-
height: number;
|
|
157
|
-
}
|
|
158
|
-
interface TransformReceipt {
|
|
159
|
-
slideId: string;
|
|
160
|
-
shapeId: string;
|
|
161
|
-
before: ShapeRect;
|
|
162
|
-
after: ShapeRect;
|
|
163
|
-
}
|
|
164
|
-
interface TextReceipt {
|
|
165
|
-
storyId: string;
|
|
166
|
-
start: number;
|
|
167
|
-
end: number;
|
|
168
|
-
text: string;
|
|
169
|
-
}
|
|
170
|
-
interface ShapeDraft {
|
|
171
|
-
name: string;
|
|
172
|
-
rect: ShapeRect;
|
|
173
|
-
text: string;
|
|
174
|
-
style: TextStyle;
|
|
175
|
-
}
|
|
176
|
-
interface PresetShapeDraft {
|
|
177
|
-
name: string;
|
|
178
|
-
geometry: string;
|
|
179
|
-
rect: ShapeRect;
|
|
180
|
-
fill?: string | null;
|
|
181
|
-
}
|
|
182
|
-
interface ShapeStroke {
|
|
183
|
-
color?: string;
|
|
184
|
-
widthPt?: number;
|
|
185
|
-
}
|
|
186
|
-
interface ShapeFillReceipt {
|
|
187
|
-
slideId: string;
|
|
188
|
-
shapeId: string;
|
|
189
|
-
before: string | null;
|
|
190
|
-
after: string | null;
|
|
191
|
-
}
|
|
192
|
-
interface ShapeStrokeReceipt {
|
|
193
|
-
slideId: string;
|
|
194
|
-
shapeId: string;
|
|
195
|
-
before: ShapeStroke | null;
|
|
196
|
-
after: ShapeStroke | null;
|
|
197
|
-
}
|
|
198
|
-
interface ShapeAdjustReceipt {
|
|
199
|
-
slideId: string;
|
|
200
|
-
shapeId: string;
|
|
201
|
-
before: Record<string, number>;
|
|
202
|
-
after: Record<string, number>;
|
|
203
|
-
}
|
|
204
|
-
interface HistoryResult {
|
|
205
|
-
applied: boolean;
|
|
206
|
-
snapshot: DeckSnapshot;
|
|
207
|
-
}
|
|
208
|
-
interface PptxFontFace {
|
|
209
|
-
family: string;
|
|
210
|
-
bold?: boolean;
|
|
211
|
-
italic?: boolean;
|
|
212
|
-
bytes: Uint8Array;
|
|
213
|
-
}
|
|
214
|
-
type GeometryPathCommand = {
|
|
215
|
-
type: 'move';
|
|
216
|
-
x: number;
|
|
217
|
-
y: number;
|
|
218
|
-
} | {
|
|
219
|
-
type: 'line';
|
|
220
|
-
x: number;
|
|
221
|
-
y: number;
|
|
222
|
-
} | {
|
|
223
|
-
type: 'quad';
|
|
224
|
-
cpx: number;
|
|
225
|
-
cpy: number;
|
|
226
|
-
x: number;
|
|
227
|
-
y: number;
|
|
228
|
-
} | {
|
|
229
|
-
type: 'cubic';
|
|
230
|
-
cp1x: number;
|
|
231
|
-
cp1y: number;
|
|
232
|
-
cp2x: number;
|
|
233
|
-
cp2y: number;
|
|
234
|
-
x: number;
|
|
235
|
-
y: number;
|
|
236
|
-
} | {
|
|
237
|
-
type: 'close';
|
|
238
|
-
};
|
|
239
|
-
type Paint = {
|
|
240
|
-
kind: 'solid';
|
|
241
|
-
color: string;
|
|
242
|
-
} | {
|
|
243
|
-
kind: 'gradient';
|
|
244
|
-
gradientType: 'linear' | 'radial' | 'rectangular' | 'path';
|
|
245
|
-
angleDeg?: number;
|
|
246
|
-
stops: Array<{
|
|
247
|
-
position: number;
|
|
248
|
-
color: string;
|
|
249
|
-
}>;
|
|
250
|
-
};
|
|
251
|
-
interface StrokeEnd {
|
|
252
|
-
kind: string;
|
|
253
|
-
width: number;
|
|
254
|
-
length: number;
|
|
255
|
-
}
|
|
256
|
-
interface Stroke {
|
|
257
|
-
/** Solid colour or first gradient stop. */
|
|
258
|
-
color: string;
|
|
259
|
-
width: number;
|
|
260
|
-
dashed?: boolean;
|
|
261
|
-
paint?: Paint;
|
|
262
|
-
headEnd?: StrokeEnd;
|
|
263
|
-
tailEnd?: StrokeEnd;
|
|
264
|
-
}
|
|
265
|
-
/** An `a:outerShdw`: a blurred copy of the shape's own path, offset and tinted. */
|
|
266
|
-
interface Shadow {
|
|
267
|
-
color: string;
|
|
268
|
-
blur?: number;
|
|
269
|
-
dx?: number;
|
|
270
|
-
dy?: number;
|
|
271
|
-
scaleX?: number;
|
|
272
|
-
scaleY?: number;
|
|
273
|
-
}
|
|
274
|
-
interface PrimitiveTransform {
|
|
275
|
-
rotationDeg?: number;
|
|
276
|
-
flipH?: boolean;
|
|
277
|
-
flipV?: boolean;
|
|
278
|
-
}
|
|
279
|
-
interface PrimitiveBase {
|
|
280
|
-
objectId: number;
|
|
281
|
-
shapeId?: string;
|
|
282
|
-
x: number;
|
|
283
|
-
y: number;
|
|
284
|
-
w: number;
|
|
285
|
-
h: number;
|
|
286
|
-
transform?: PrimitiveTransform;
|
|
287
|
-
}
|
|
288
|
-
interface ShapePrimitive extends PrimitiveBase {
|
|
289
|
-
kind: 'shape';
|
|
290
|
-
name: string;
|
|
291
|
-
geometry: string;
|
|
292
|
-
path: GeometryPathCommand[];
|
|
293
|
-
clip?: GeometryPathCommand[];
|
|
294
|
-
evenOdd?: boolean;
|
|
295
|
-
adjustValues?: Record<string, number>;
|
|
296
|
-
fill?: Paint;
|
|
297
|
-
stroke?: Stroke;
|
|
298
|
-
shadow?: Shadow;
|
|
299
|
-
}
|
|
300
|
-
/** An `a:blip` colour transform, colours already resolved to `#rrggbbaa`. */
|
|
301
|
-
type ImageEffect = {
|
|
302
|
-
kind: 'biLevel';
|
|
303
|
-
threshold: number;
|
|
304
|
-
} | {
|
|
305
|
-
kind: 'grayscale';
|
|
306
|
-
} | {
|
|
307
|
-
kind: 'luminance';
|
|
308
|
-
brightness: number;
|
|
309
|
-
contrast: number;
|
|
310
|
-
} | {
|
|
311
|
-
kind: 'duotone';
|
|
312
|
-
shadow: string;
|
|
313
|
-
highlight: string;
|
|
314
|
-
} | {
|
|
315
|
-
kind: 'colorChange';
|
|
316
|
-
from: string;
|
|
317
|
-
to: string;
|
|
318
|
-
useAlpha?: boolean;
|
|
319
|
-
};
|
|
320
|
-
interface ImageCrop {
|
|
321
|
-
left?: number;
|
|
322
|
-
top?: number;
|
|
323
|
-
right?: number;
|
|
324
|
-
bottom?: number;
|
|
325
|
-
}
|
|
326
|
-
interface ImagePrimitive extends PrimitiveBase {
|
|
327
|
-
kind: 'image';
|
|
328
|
-
name: string;
|
|
329
|
-
assetId?: string;
|
|
330
|
-
/** Applied to the bitmap in order before it is drawn. */
|
|
331
|
-
effects?: ImageEffect[];
|
|
332
|
-
/** Fraction of the source discarded per edge, from `a:srcRect`. */
|
|
333
|
-
crop?: ImageCrop;
|
|
334
|
-
/** Outline the picture is masked to, when its `spPr` gives it one. */
|
|
335
|
-
path?: GeometryPathCommand[];
|
|
336
|
-
stroke?: Stroke;
|
|
337
|
-
shadow?: Shadow;
|
|
338
|
-
}
|
|
339
|
-
interface CaretStop {
|
|
340
|
-
position: number;
|
|
341
|
-
x: number;
|
|
342
|
-
}
|
|
343
|
-
interface PositionedGlyph {
|
|
344
|
-
glyphId: number;
|
|
345
|
-
cluster: number;
|
|
346
|
-
x: number;
|
|
347
|
-
advance: number;
|
|
348
|
-
xOffset: number;
|
|
349
|
-
yOffset: number;
|
|
350
|
-
}
|
|
351
|
-
interface PositionedTextRun {
|
|
352
|
-
text: string;
|
|
353
|
-
start: number;
|
|
354
|
-
end: number;
|
|
355
|
-
x: number;
|
|
356
|
-
width: number;
|
|
357
|
-
fontId: number;
|
|
358
|
-
fontFamily: string;
|
|
359
|
-
fontSizePx: number;
|
|
360
|
-
bold: boolean;
|
|
361
|
-
italic: boolean;
|
|
362
|
-
underline: boolean;
|
|
363
|
-
color: string;
|
|
364
|
-
letterSpacingPx?: number;
|
|
365
|
-
baselineOffsetPx?: number;
|
|
366
|
-
glyphs: PositionedGlyph[];
|
|
367
|
-
}
|
|
368
|
-
interface PositionedTextLine {
|
|
369
|
-
x: number;
|
|
370
|
-
y: number;
|
|
371
|
-
width: number;
|
|
372
|
-
height: number;
|
|
373
|
-
baseline: number;
|
|
374
|
-
start: number;
|
|
375
|
-
end: number;
|
|
376
|
-
runs: PositionedTextRun[];
|
|
377
|
-
caretStops: CaretStop[];
|
|
378
|
-
}
|
|
379
|
-
interface TextBoxPrimitive extends PrimitiveBase {
|
|
380
|
-
kind: 'textBox';
|
|
381
|
-
storyId?: string;
|
|
382
|
-
anchor: 'top' | 'center' | 'bottom';
|
|
383
|
-
paragraphs: Array<{
|
|
384
|
-
align?: 'left' | 'center' | 'right' | 'justify';
|
|
385
|
-
level: number;
|
|
386
|
-
runs: Array<{
|
|
387
|
-
text: string;
|
|
388
|
-
fontFamily: string;
|
|
389
|
-
fontSizePt: number;
|
|
390
|
-
bold?: boolean;
|
|
391
|
-
italic?: boolean;
|
|
392
|
-
underline?: boolean;
|
|
393
|
-
color: string;
|
|
394
|
-
}>;
|
|
395
|
-
}>;
|
|
396
|
-
lines: PositionedTextLine[];
|
|
397
|
-
overflow?: boolean;
|
|
398
|
-
}
|
|
399
|
-
interface PlaceholderPrimitive extends PrimitiveBase {
|
|
400
|
-
kind: 'placeholder';
|
|
401
|
-
name: string;
|
|
402
|
-
label?: string;
|
|
403
|
-
}
|
|
404
|
-
/** A plotted chart. Its parts paint clipped to the chart rectangle, and
|
|
405
|
-
* `label` is the screen-reader summary of the whole chart. */
|
|
406
|
-
interface ChartPrimitive extends PrimitiveBase {
|
|
407
|
-
kind: 'chart';
|
|
408
|
-
name: string;
|
|
409
|
-
label: string;
|
|
410
|
-
primitives: SlidePrimitive[];
|
|
411
|
-
}
|
|
412
|
-
/** A laid-out table. Its cells paint clipped to the table rectangle, and
|
|
413
|
-
* `label` is the screen-reader summary of the whole table. */
|
|
414
|
-
interface TablePrimitive extends PrimitiveBase {
|
|
415
|
-
kind: 'table';
|
|
416
|
-
name: string;
|
|
417
|
-
label: string;
|
|
418
|
-
primitives: SlidePrimitive[];
|
|
419
|
-
}
|
|
420
|
-
type SlidePrimitive = ShapePrimitive | ImagePrimitive | TextBoxPrimitive | PlaceholderPrimitive | ChartPrimitive | TablePrimitive;
|
|
421
|
-
interface SlideDisplayList {
|
|
422
|
-
contractVersion: number;
|
|
423
|
-
width: number;
|
|
424
|
-
height: number;
|
|
425
|
-
background?: Paint;
|
|
426
|
-
primitives: SlidePrimitive[];
|
|
427
|
-
}
|
|
428
|
-
type HitTestResult = {
|
|
429
|
-
kind: 'shape';
|
|
430
|
-
shapeId: string;
|
|
431
|
-
} | {
|
|
432
|
-
kind: 'text';
|
|
433
|
-
shapeId: string;
|
|
434
|
-
storyId: string;
|
|
435
|
-
position: number;
|
|
436
|
-
};
|
|
437
|
-
interface UpdateEvent {
|
|
438
|
-
origin: 'local' | 'remote';
|
|
439
|
-
update: Uint8Array;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
type ProposalEdit = {
|
|
443
|
-
type: 'replaceText';
|
|
444
|
-
storyId: string;
|
|
445
|
-
start: number;
|
|
446
|
-
end: number;
|
|
447
|
-
text: string;
|
|
448
|
-
style?: Partial<TextStyleSnapshot> | null;
|
|
449
|
-
} | {
|
|
450
|
-
type: 'formatText';
|
|
451
|
-
storyId: string;
|
|
452
|
-
start: number;
|
|
453
|
-
end: number;
|
|
454
|
-
patch: Partial<TextStyleSnapshot>;
|
|
455
|
-
} | {
|
|
456
|
-
type: 'setParagraphAlignment';
|
|
457
|
-
storyId: string;
|
|
458
|
-
start: number;
|
|
459
|
-
end: number;
|
|
460
|
-
alignment: ParagraphAlignment | 'justLow' | 'dist' | 'thaiDist' | null;
|
|
461
|
-
} | {
|
|
462
|
-
type: 'setShapeRect';
|
|
463
|
-
slideId: string;
|
|
464
|
-
shapeId: string;
|
|
465
|
-
rect: ShapeRect;
|
|
466
|
-
} | {
|
|
467
|
-
type: 'setShapeFill';
|
|
468
|
-
slideId: string;
|
|
469
|
-
shapeId: string;
|
|
470
|
-
color: string | null;
|
|
471
|
-
} | {
|
|
472
|
-
type: 'setShapeStroke';
|
|
473
|
-
slideId: string;
|
|
474
|
-
shapeId: string;
|
|
475
|
-
stroke: {
|
|
476
|
-
[K in keyof ShapeStroke]: ShapeStroke[K] | null;
|
|
477
|
-
};
|
|
478
|
-
} | {
|
|
479
|
-
type: 'setShapeAdjust';
|
|
480
|
-
slideId: string;
|
|
481
|
-
shapeId: string;
|
|
482
|
-
adjustments: Record<string, number>;
|
|
483
|
-
} | {
|
|
484
|
-
type: 'setSlideNotes';
|
|
485
|
-
slideId: string;
|
|
486
|
-
text: string;
|
|
487
|
-
};
|
|
488
|
-
interface ProposalChange {
|
|
489
|
-
slideId: string;
|
|
490
|
-
shapeId: string | null;
|
|
491
|
-
before: ShapeSnapshot | null;
|
|
492
|
-
after: ShapeSnapshot | null;
|
|
493
|
-
oldText: string;
|
|
494
|
-
newText: string;
|
|
495
|
-
}
|
|
496
|
-
interface Proposal {
|
|
497
|
-
id: string;
|
|
498
|
-
agentId: string;
|
|
499
|
-
note: string | null;
|
|
500
|
-
edits: ProposalEdit[];
|
|
501
|
-
changes: ProposalChange[];
|
|
502
|
-
staleTargets: string[];
|
|
503
|
-
}
|
|
504
|
-
interface ProposalPreview {
|
|
505
|
-
proposal: Proposal;
|
|
506
|
-
snapshot: DeckSnapshot;
|
|
507
|
-
}
|
|
508
|
-
interface ProposalTextChange {
|
|
509
|
-
storyId: string;
|
|
510
|
-
start: number;
|
|
511
|
-
end: number;
|
|
512
|
-
kind: 'insertion' | 'deletion';
|
|
513
|
-
}
|
|
514
|
-
interface ProposalDiffSlide extends ProposalPreview {
|
|
515
|
-
frame: SlideDisplayList;
|
|
516
|
-
textChanges: ProposalTextChange[];
|
|
517
|
-
}
|
|
518
|
-
interface ProposalAcceptance {
|
|
519
|
-
proposalId: string;
|
|
520
|
-
applied: boolean;
|
|
521
|
-
snapshot: DeckSnapshot;
|
|
522
|
-
}
|
|
523
|
-
declare class StaleProposalError extends Error {
|
|
524
|
-
readonly targets: string[];
|
|
525
|
-
constructor(targets: string[]);
|
|
526
|
-
}
|
|
1
|
+
import { C as CanvasImageResolver, S as SlideDisplayList } from './editorSession-Cuqxkg-B.js';
|
|
2
|
+
export { B as BlipEffect, a as CaretStop, b as ColorTransform, c as ColorValue, d as CommentFlavor, e as CommentReceipt, f as CommentSnapshot, D as DeckSnapshot, E as EditProfile, g as EditSuccess, h as ExportCompletion, i as ExportDiagnostic, j as ExportSeverity, G as GeometryPathCommand, H as HistoryProfile, k as HistoryResult, l as HitTestResult, I as ImageCrop, m as ImageEffect, n as ImagePrimitive, o as InheritedGeometry, p as InspectPresentationOptions, L as LayoutProfile, M as MarkdownAnchor, O as OpenPresentationOptions, q as OperationFailure, r as OperationRefusal, P as Paint, s as PaintSlideOptions, t as ParagraphAlignment, u as ParagraphSnapshot, v as PictureDraft, w as PlaceholderPrimitive, x as PositionedGlyph, y as PositionedTextLine, z as PositionedTextRun, A as PptxAnchor, F as PptxAnchorScope, J as PptxCaretAnchor, K as PptxEditFailure, N as PptxEditFailureCode, Q as PptxEditHistory, R as PptxEditPreview, T as PptxEditReceipt, U as PptxEditRefusal, V as PptxEditRequest, W as PptxEditResult, X as PptxEditSource, Y as PptxEditStep, Z as PptxEditTarget, _ as PptxExportComment, $ as PptxExportDiagnostic, a0 as PptxExportDiagnosticCode, a1 as PptxExportError, a2 as PptxExportFailure, a3 as PptxExportFailureCode, a4 as PptxExportList, a5 as PptxExportMark, a6 as PptxExportNotes, a7 as PptxExportObject, a8 as PptxExportObjectKind, a9 as PptxExportOptions, aa as PptxExportParagraph, ab as PptxExportRefusal, ac as PptxExportResult, ad as PptxExportRun, ae as PptxExportShape, af as PptxExportShapeKind, ag as PptxExportSlide, ah as PptxExportStory, ai as PptxExportTable, aj as PptxExportTableCell, ak as PptxFindMatch, al as PptxFindRequest, am as PptxFindResult, an as PptxFindScope, ao as PptxFontFace, ap as PptxMarkdownContent, aq as PptxMarkdownOptions, ar as PptxParagraphText, as as PptxPeerNotReadyError, at as PptxReadRequest, au as PptxReadResult, av as PptxShapeTarget, aw as PptxSlideTarget, ax as PptxSourceProvenance, ay as PptxStoryTarget, az as PptxStoryText, aA as PptxStructuredContent, aB as PptxTextField, aC as PptxTextGuard, aD as PptxTextMatch, aE as PptxTextRange, aF as PptxTextSearchOptions, aG as PptxTextSpan, aH as PptxTextTarget, aI as PptxValidationResult, aJ as PptxWorkerEditorDisposedError, aK as PresentationHandle, aL as PresetShapeDraft, aM as PrimitiveTransform, aN as Profiled, aO as ProfiledLayout, aP as Proposal, aQ as ProposalAcceptance, aR as ProposalChange, aS as ProposalDiffSlide, aT as ProposalEdit, aU as ProposalPreview, aV as ProposalTextChange, aW as ShapeAdjustReceipt, aX as ShapeDraft, aY as ShapeFill, aZ as ShapeFillReceipt, a_ as ShapeGradient, a$ as ShapeKind, b0 as ShapeLineEnd, b1 as ShapeOutline, b2 as ShapePrimitive, b3 as ShapeReceipt, b4 as ShapeRect, b5 as ShapeSnapshot, b6 as ShapeStroke, b7 as ShapeStrokeReceipt, b8 as ShapeZOrderReceipt, b9 as SlideCanvasLike, ba as SlidePrimitive, bb as SlideReceipt, bc as SlideSnapshot, bd as StaleProposalError, be as StorySnapshot, bf as Stroke, bg as StrokeEnd, bh as TableReceipt, bi as TextBoxPrimitive, bj as TextParagraphDraft, bk as TextReceipt, bl as TextRunSnapshot, bm as TextStyle, bn as TextStylePatch, bo as TextStyleSnapshot, bp as TransformReceipt, bq as UndoCaptureMode, br as UpdateEvent, bs as ValidationSuccess, bt as WasmInitInput, bu as createPptxWorkerEditorSession, bv as exportPptxMarkdown, bw as exportPptxStructured, bx as initWasm, by as inspectPresentation, bz as isProposalsAvailable, bA as isWasmAvailable, bB as openPresentation, bC as openPresentationSession, bD as paintSlide, bE as renderPptxMarkdown, bF as sizeCanvasForSlide, bG as wasmVersion } from './editorSession-Cuqxkg-B.js';
|
|
3
|
+
export { C as CollaborationProvider, P as PRESENCE_LABEL_DURATION_MS, p as presenceColorForClientId } from './presence-C1o8TDwu.js';
|
|
4
|
+
export { A as AsyncCollaborationReplica, b as CollaborationError, c as CollaborationErrorCode, d as CollaborationErrorListener, e as CollaborationProviderOptions, C as CollaborationReplica, f as CollaborationStatus, g as CollaborationStatusChange, h as CollaborationStatusListener, i as CollaborationTransport, j as CollaborationTransportEvent, k as CollaborationUpdateOrigin, l as CollaborationUser, m as PptxPresence, P as PptxPresenceCursor, n as PptxPresenceListener, a as PptxPresencePeer, o as PptxPresenceState, p as PptxPresenceUser } from './types-ui_ARP0o.js';
|
|
527
5
|
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
resolveImage?: CanvasImageResolver;
|
|
531
|
-
maxShadowPixels?: number;
|
|
532
|
-
textChanges?: readonly ProposalTextChange[];
|
|
6
|
+
interface PresentationImageDecodeOptions {
|
|
7
|
+
maxDimension?: number;
|
|
533
8
|
}
|
|
534
|
-
|
|
535
|
-
width: number;
|
|
536
|
-
height: number;
|
|
537
|
-
style: {
|
|
538
|
-
width: string;
|
|
539
|
-
height: string;
|
|
540
|
-
};
|
|
541
|
-
}
|
|
542
|
-
declare function sizeCanvasForSlide(canvas: SlideCanvasLike, list: Pick<SlideDisplayList, 'width' | 'height'>, dpr: number, scale?: number): void;
|
|
543
|
-
declare function paintSlide(ctx: CanvasRenderingContext2D, list: SlideDisplayList, dpr?: number, scale?: number, options?: PaintSlideOptions): Promise<void>;
|
|
9
|
+
declare function needsElementDecode(blob: Blob): boolean;
|
|
544
10
|
|
|
545
|
-
/** Convert presentation image formats that browsers cannot decode. */
|
|
546
11
|
declare function presentationImageBlob(bytes: Uint8Array): Blob;
|
|
12
|
+
declare function decodePresentationImage(bytes: Uint8Array, errorMessage: string, options?: PresentationImageDecodeOptions): Promise<CanvasImageSource>;
|
|
547
13
|
|
|
548
14
|
interface SlideToPngOptions {
|
|
549
15
|
/** Output scale, e.g. 2 for hidpi. */
|
|
@@ -557,252 +23,4 @@ interface SlideToPngOptions {
|
|
|
557
23
|
*/
|
|
558
24
|
declare function slideToPng(list: SlideDisplayList, options?: SlideToPngOptions): Promise<Blob>;
|
|
559
25
|
|
|
560
|
-
type
|
|
561
|
-
interface CollaborationReplica {
|
|
562
|
-
readonly clientId: number;
|
|
563
|
-
encodeStateVector(): Uint8Array;
|
|
564
|
-
encodeStateAsUpdate(remoteStateVector?: Uint8Array): Uint8Array;
|
|
565
|
-
applyUpdate(update: Uint8Array): unknown;
|
|
566
|
-
onUpdate(listener: (update: Uint8Array, origin: CollaborationUpdateOrigin) => void): () => void;
|
|
567
|
-
}
|
|
568
|
-
type CollaborationTransportEvent = {
|
|
569
|
-
type: 'open';
|
|
570
|
-
} | {
|
|
571
|
-
type: 'message';
|
|
572
|
-
data: Uint8Array;
|
|
573
|
-
} | {
|
|
574
|
-
type: 'close';
|
|
575
|
-
reason?: string;
|
|
576
|
-
} | {
|
|
577
|
-
type: 'error';
|
|
578
|
-
error: unknown;
|
|
579
|
-
} | {
|
|
580
|
-
type: 'drain';
|
|
581
|
-
};
|
|
582
|
-
interface CollaborationTransport {
|
|
583
|
-
/** Starts one connection attempt; transports may also reopen while still subscribed. */
|
|
584
|
-
connect(): void | Promise<void>;
|
|
585
|
-
disconnect(): void | Promise<void>;
|
|
586
|
-
/** Returns true only when the owned frame was accepted; false requires a later drain event. */
|
|
587
|
-
send(data: Uint8Array): boolean;
|
|
588
|
-
onEvent(listener: (event: CollaborationTransportEvent) => void): () => void;
|
|
589
|
-
}
|
|
590
|
-
type CollaborationStatus = 'disconnected' | 'connecting' | 'connected' | 'destroyed';
|
|
591
|
-
interface CollaborationStatusChange {
|
|
592
|
-
status: CollaborationStatus;
|
|
593
|
-
synced: boolean;
|
|
594
|
-
}
|
|
595
|
-
type CollaborationErrorCode = 'backpressure' | 'protocol' | 'replica' | 'transport';
|
|
596
|
-
declare class CollaborationError extends Error {
|
|
597
|
-
readonly code: CollaborationErrorCode;
|
|
598
|
-
readonly cause: unknown;
|
|
599
|
-
constructor(code: CollaborationErrorCode, message: string, cause?: unknown);
|
|
600
|
-
}
|
|
601
|
-
interface CollaborationProviderOptions {
|
|
602
|
-
maxFrameBytes?: number;
|
|
603
|
-
maxMessagesPerFrame?: number;
|
|
604
|
-
maxPendingBytes?: number;
|
|
605
|
-
user?: CollaborationUser;
|
|
606
|
-
}
|
|
607
|
-
type CollaborationStatusListener = (change: CollaborationStatusChange) => void;
|
|
608
|
-
type CollaborationErrorListener = (error: CollaborationError) => void;
|
|
609
|
-
interface CollaborationUser {
|
|
610
|
-
name: string;
|
|
611
|
-
color?: string;
|
|
612
|
-
}
|
|
613
|
-
interface PptxPresenceUser {
|
|
614
|
-
name: string;
|
|
615
|
-
color: string;
|
|
616
|
-
}
|
|
617
|
-
interface PptxPresenceCursor {
|
|
618
|
-
slideId: string;
|
|
619
|
-
shapeId?: string;
|
|
620
|
-
}
|
|
621
|
-
interface PptxPresenceState {
|
|
622
|
-
clientId: number;
|
|
623
|
-
clock: number;
|
|
624
|
-
user: PptxPresenceUser;
|
|
625
|
-
cursor: PptxPresenceCursor | null;
|
|
626
|
-
}
|
|
627
|
-
interface PptxPresencePeer {
|
|
628
|
-
state: PptxPresenceState;
|
|
629
|
-
lastSeen: number;
|
|
630
|
-
cursorMovedAt: number;
|
|
631
|
-
}
|
|
632
|
-
type PptxPresenceListener = (peers: readonly PptxPresencePeer[]) => void;
|
|
633
|
-
interface PptxPresence {
|
|
634
|
-
readonly peers: readonly PptxPresencePeer[];
|
|
635
|
-
setCursor(cursor: PptxPresenceCursor | null): void;
|
|
636
|
-
onPresence(listener: PptxPresenceListener): () => void;
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
declare class CollaborationProvider {
|
|
640
|
-
private readonly replica;
|
|
641
|
-
private readonly transport;
|
|
642
|
-
private readonly maxFrameBytes;
|
|
643
|
-
private readonly maxMessagesPerFrame;
|
|
644
|
-
private readonly maxPendingBytes;
|
|
645
|
-
private readonly localClientId;
|
|
646
|
-
private readonly localUser;
|
|
647
|
-
private readonly remotePresence;
|
|
648
|
-
private readonly statusListeners;
|
|
649
|
-
private readonly errorListeners;
|
|
650
|
-
private readonly presenceListeners;
|
|
651
|
-
private readonly pendingFrames;
|
|
652
|
-
private unsubscribeReplica;
|
|
653
|
-
private unsubscribeTransport;
|
|
654
|
-
private hasTransportSubscription;
|
|
655
|
-
private connectionStatus;
|
|
656
|
-
private isSynced;
|
|
657
|
-
private wantsConnection;
|
|
658
|
-
private isOpen;
|
|
659
|
-
private isDestroyed;
|
|
660
|
-
private epoch;
|
|
661
|
-
private connectAttempt;
|
|
662
|
-
private nextListenerId;
|
|
663
|
-
private queuedBytes;
|
|
664
|
-
private isFlushing;
|
|
665
|
-
private localClock;
|
|
666
|
-
private reportedClockExhaustion;
|
|
667
|
-
private localCursor;
|
|
668
|
-
private lastAwarenessSentAt;
|
|
669
|
-
private cursorTimer;
|
|
670
|
-
private heartbeatTimer;
|
|
671
|
-
private expiryTimer;
|
|
672
|
-
constructor(replica: CollaborationReplica, transport: CollaborationTransport, options?: CollaborationProviderOptions);
|
|
673
|
-
get status(): CollaborationStatus;
|
|
674
|
-
get synced(): boolean;
|
|
675
|
-
get pendingBytes(): number;
|
|
676
|
-
get peers(): readonly PptxPresencePeer[];
|
|
677
|
-
setCursor(cursor: PptxPresenceCursor | null): void;
|
|
678
|
-
connect(): void;
|
|
679
|
-
disconnect(): void;
|
|
680
|
-
destroy(): void;
|
|
681
|
-
onStatus(listener: CollaborationStatusListener): () => void;
|
|
682
|
-
onError(listener: CollaborationErrorListener): () => void;
|
|
683
|
-
onPresence(listener: PptxPresenceListener): () => void;
|
|
684
|
-
private isCurrent;
|
|
685
|
-
private failConnection;
|
|
686
|
-
private takeTransportSubscription;
|
|
687
|
-
private cleanupTransport;
|
|
688
|
-
private handleTransportEvent;
|
|
689
|
-
private handleOpen;
|
|
690
|
-
private handleMessage;
|
|
691
|
-
private respondToSyncStep1;
|
|
692
|
-
private applyRemoteUpdate;
|
|
693
|
-
private forwardLocalUpdate;
|
|
694
|
-
private scheduleCursorBroadcast;
|
|
695
|
-
private broadcastLocalPresence;
|
|
696
|
-
private sendLeaveFrameBestEffort;
|
|
697
|
-
private startPresenceTimers;
|
|
698
|
-
private stopPresenceTimers;
|
|
699
|
-
private schedulePresenceExpiry;
|
|
700
|
-
private clearRemotePresence;
|
|
701
|
-
private emitPresence;
|
|
702
|
-
private sendFrame;
|
|
703
|
-
private queueFrame;
|
|
704
|
-
private flushPending;
|
|
705
|
-
private clearPending;
|
|
706
|
-
private setStatus;
|
|
707
|
-
private report;
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
declare const PRESENCE_LABEL_DURATION_MS = 3000;
|
|
711
|
-
declare function presenceColorForClientId(clientId: number): string;
|
|
712
|
-
|
|
713
|
-
type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
714
|
-
|
|
715
|
-
type WasmInitInput = InitInput | Promise<InitInput>;
|
|
716
|
-
interface OpenPresentationOptions {
|
|
717
|
-
clientId?: number;
|
|
718
|
-
fonts?: ReadonlyArray<PptxFontFace>;
|
|
719
|
-
/**
|
|
720
|
-
* Opens from a collaboration update instead of parsing the file bytes.
|
|
721
|
-
* When the bytes are the file the update was seeded from, the session
|
|
722
|
-
* keeps them and `save()` works; any other bytes open without a source
|
|
723
|
-
* and `save()` throws.
|
|
724
|
-
*/
|
|
725
|
-
initialUpdate?: Uint8Array;
|
|
726
|
-
}
|
|
727
|
-
interface PresentationHandle extends CollaborationReplica {
|
|
728
|
-
isProposalsAvailable(): boolean;
|
|
729
|
-
propose(agentId: string, note: string | null, edits: readonly ProposalEdit[]): Proposal;
|
|
730
|
-
listProposals(): Proposal[];
|
|
731
|
-
previewProposal(id: string): ProposalPreview;
|
|
732
|
-
layoutProposalSlide(id: string, slideIndex: number): SlideDisplayList;
|
|
733
|
-
layoutProposalDiffSlide(id: string, slideIndex: number): ProposalDiffSlide;
|
|
734
|
-
acceptProposal(id: string, options?: {
|
|
735
|
-
force?: boolean;
|
|
736
|
-
}): ProposalAcceptance;
|
|
737
|
-
rejectProposal(id: string): boolean;
|
|
738
|
-
readonly clientId: number;
|
|
739
|
-
snapshot(): DeckSnapshot;
|
|
740
|
-
story(storyId: string): StorySnapshot;
|
|
741
|
-
registerFont(face: PptxFontFace): number;
|
|
742
|
-
layoutSlide(slideIndex: number): SlideDisplayList;
|
|
743
|
-
hitTest(x: number, y: number): HitTestResult | null;
|
|
744
|
-
mediaBytes(partPath: string): Uint8Array;
|
|
745
|
-
/** serialize the presentation back to .pptx bytes, edits included. */
|
|
746
|
-
save(): Uint8Array;
|
|
747
|
-
insertText(storyId: string, index: number, text: string, style?: TextStyle): TextReceipt;
|
|
748
|
-
deleteText(storyId: string, start: number, end: number): TextReceipt;
|
|
749
|
-
formatText(storyId: string, start: number, end: number, patch: TextStylePatch): TextReceipt;
|
|
750
|
-
insertParagraphBreak(storyId: string, index: number): TextReceipt;
|
|
751
|
-
/** Sets the alignment of every paragraph the range touches; `null` restores
|
|
752
|
-
* the inherited value. */
|
|
753
|
-
setParagraphAlignment(storyId: string, start: number, end: number, alignment: ParagraphAlignment | null): TextReceipt;
|
|
754
|
-
insertSlide(index: number, layoutPartPath?: string): SlideReceipt;
|
|
755
|
-
deleteSlide(slideId: string): SlideReceipt;
|
|
756
|
-
moveSlide(slideId: string, toIndex: number): SlideReceipt;
|
|
757
|
-
/** Sets a slide's speaker notes; empty text clears them. */
|
|
758
|
-
setSlideNotes(slideId: string, text: string): void;
|
|
759
|
-
addTextBox(slideId: string, draft: ShapeDraft): ShapeReceipt;
|
|
760
|
-
addShape(slideId: string, draft: PresetShapeDraft): ShapeReceipt;
|
|
761
|
-
setShapeFill(slideId: string, shapeId: string, color: string | null): ShapeFillReceipt;
|
|
762
|
-
setShapeStroke(slideId: string, shapeId: string, stroke: ShapeStroke): ShapeStrokeReceipt;
|
|
763
|
-
setShapeAdjust(slideId: string, shapeId: string, adjustments: Record<string, number>): ShapeAdjustReceipt;
|
|
764
|
-
removeShape(slideId: string, shapeId: string): ShapeReceipt;
|
|
765
|
-
/** Adds a slide comment; coordinates are EMU. */
|
|
766
|
-
addComment(slideId: string, comment: {
|
|
767
|
-
author: string;
|
|
768
|
-
initials?: string;
|
|
769
|
-
text: string;
|
|
770
|
-
created: string;
|
|
771
|
-
xEmu?: number;
|
|
772
|
-
yEmu?: number;
|
|
773
|
-
}): CommentReceipt;
|
|
774
|
-
/** Modern decks only; legacy `p:cm` has no reply list. */
|
|
775
|
-
replyToComment(commentId: string, reply: {
|
|
776
|
-
author: string;
|
|
777
|
-
initials?: string;
|
|
778
|
-
text: string;
|
|
779
|
-
created: string;
|
|
780
|
-
}): CommentReceipt;
|
|
781
|
-
/** Resolves or reopens a modern comment. */
|
|
782
|
-
setCommentStatus(commentId: string, resolved: boolean): CommentReceipt;
|
|
783
|
-
removeComment(commentId: string): CommentReceipt;
|
|
784
|
-
/** Only legal while the deck has no comments. */
|
|
785
|
-
setCommentFlavor(flavor: CommentFlavor): CommentFlavor;
|
|
786
|
-
comments(): CommentSnapshot[];
|
|
787
|
-
moveShape(slideId: string, shapeId: string, x: number, y: number): TransformReceipt;
|
|
788
|
-
resizeShape(slideId: string, shapeId: string, width: number, height: number): TransformReceipt;
|
|
789
|
-
setShapeRect(slideId: string, shapeId: string, rect: ShapeRect): TransformReceipt;
|
|
790
|
-
canUndo(): boolean;
|
|
791
|
-
canRedo(): boolean;
|
|
792
|
-
undo(): HistoryResult;
|
|
793
|
-
redo(): HistoryResult;
|
|
794
|
-
encodeStateVector(): Uint8Array;
|
|
795
|
-
encodeStateAsUpdate(remoteStateVector?: Uint8Array): Uint8Array;
|
|
796
|
-
encodeDiff(remoteStateVector: Uint8Array): Uint8Array;
|
|
797
|
-
applyUpdate(update: Uint8Array): DeckSnapshot;
|
|
798
|
-
onUpdate(listener: (update: Uint8Array, origin: CollaborationUpdateOrigin) => void): () => void;
|
|
799
|
-
dispose(): void;
|
|
800
|
-
}
|
|
801
|
-
declare function isProposalsAvailable(): boolean;
|
|
802
|
-
declare function initWasm(input?: WasmInitInput): Promise<void>;
|
|
803
|
-
declare function isWasmAvailable(): boolean;
|
|
804
|
-
declare function wasmVersion(): string;
|
|
805
|
-
declare function inspectPresentation(bytes: Uint8Array): unknown;
|
|
806
|
-
declare function openPresentation(bytes: Uint8Array, options?: OpenPresentationOptions): PresentationHandle;
|
|
807
|
-
|
|
808
|
-
export { type BlipEffect, type CanvasImageResolver, type CaretStop, CollaborationError, type CollaborationErrorCode, type CollaborationErrorListener, CollaborationProvider, type CollaborationProviderOptions, type CollaborationReplica, type CollaborationStatus, type CollaborationStatusChange, type CollaborationStatusListener, type CollaborationTransport, type CollaborationTransportEvent, type CollaborationUpdateOrigin, type CollaborationUser, type ColorValue, type CommentFlavor, type CommentReceipt, type CommentSnapshot, type DeckSnapshot, type GeometryPathCommand, type HistoryResult, type HitTestResult, type ImageCrop, type ImageEffect, type ImagePrimitive, type OpenPresentationOptions, PRESENCE_LABEL_DURATION_MS, type Paint, type PaintSlideOptions, type ParagraphAlignment, type ParagraphSnapshot, type PlaceholderPrimitive, type PositionedGlyph, type PositionedTextLine, type PositionedTextRun, type PptxFontFace, type PptxPresence, type PptxPresenceCursor, type PptxPresenceListener, type PptxPresencePeer, type PptxPresenceState, type PptxPresenceUser, type PresentationHandle, type PresetShapeDraft, type PrimitiveTransform, type Proposal, type ProposalAcceptance, type ProposalChange, type ProposalDiffSlide, type ProposalEdit, type ProposalPreview, type ProposalTextChange, type ShapeAdjustReceipt, type ShapeDraft, type ShapeFill, type ShapeFillReceipt, type ShapeKind, type ShapeOutline, type ShapePrimitive, type ShapeReceipt, type ShapeRect, type ShapeSnapshot, type ShapeStroke, type ShapeStrokeReceipt, type SlideCanvasLike, type SlideDisplayList, type SlidePrimitive, type SlideReceipt, type SlideSnapshot, type SlideToPngOptions, StaleProposalError, type StorySnapshot, type Stroke, type StrokeEnd, type TextBoxPrimitive, type TextReceipt, type TextRunSnapshot, type TextStyle, type TextStylePatch, type TextStyleSnapshot, type TransformReceipt, type UpdateEvent, type WasmInitInput, initWasm, inspectPresentation, isProposalsAvailable, isWasmAvailable, openPresentation, paintSlide, presenceColorForClientId, presentationImageBlob, sizeCanvasForSlide, slideToPng, wasmVersion };
|
|
26
|
+
export { CanvasImageResolver, type PresentationImageDecodeOptions, SlideDisplayList, type SlideToPngOptions, decodePresentationImage, needsElementDecode, presentationImageBlob, slideToPng };
|