@yudaocode/univer-slides 1.6.218 → 1.6.219
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 +10 -7
- package/lib/cjs/facade/index.js +34 -0
- package/lib/cjs/facade/index.js.map +1 -1
- package/lib/cjs/index.js +1613 -572
- package/lib/cjs/index.js.map +1 -1
- package/lib/es/facade/index.js +39 -0
- package/lib/es/facade/index.js.map +1 -1
- package/lib/es/index.js +1531 -503
- package/lib/es/index.js.map +1 -1
- package/lib/types/facade/index.d.ts +11 -1
- package/lib/types/index.d.ts +161 -6
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Injector, ICommandService, ICreateUnitOptions } from '@univerjs/core';
|
|
2
2
|
import { FUniver } from '@univerjs/core/facade';
|
|
3
|
-
import { SlideUnitModel, ISlideUnitData, ISlidePage, ISlideTransition, ISlideElement, SlideElementType, ISlideAnimation, SlideLayoutType, SlideElementAlignMode, ISlideTheme, SlideSizePreset, ISlideDatasetExtractionResult, ICompileSlideTemplateOptions, IPptxExportOptions, ISlidePdfExportOptions, IPptxImportOptions, ISlideIoAdapter } from '@yudaocode/univer-slides';
|
|
3
|
+
import { SlideUnitModel, ISlideUnitData, ISlidePage, ISlideTransition, ISlideElement, SlideElementType, ISlideAnimation, SlideLayoutType, SlideElementAlignMode, ISlideTheme, SlideSizePreset, ISlideDatasetExtractionResult, ICompileSlideTemplateOptions, IPptxExportOptions, ISlidePdfExportOptions, IUpdateSlideMasterCommandParams, IUpdateSlideLayoutCommandParams, ISlideShowSettings, ISlideImageExportOptions, ISlideExportedImageItem, IPptxImportOptions, ISlideIoAdapter } from '@yudaocode/univer-slides';
|
|
4
4
|
|
|
5
5
|
declare class FSlidePage {
|
|
6
6
|
private readonly _model;
|
|
@@ -67,6 +67,16 @@ declare class FSlideDeck {
|
|
|
67
67
|
}): ISlideUnitData;
|
|
68
68
|
exportPptx(options?: IPptxExportOptions): Promise<Uint8Array>;
|
|
69
69
|
exportPdf(options?: ISlidePdfExportOptions): Promise<Uint8Array>;
|
|
70
|
+
updateMaster(patch: IUpdateSlideMasterCommandParams['patch'], options?: {
|
|
71
|
+
masterId?: string;
|
|
72
|
+
propagateBackgroundToSlides?: boolean;
|
|
73
|
+
}): boolean;
|
|
74
|
+
updateLayout(layoutId: string | SlideLayoutType, patch: IUpdateSlideLayoutCommandParams['patch'], options?: {
|
|
75
|
+
syncExistingSlides?: boolean;
|
|
76
|
+
}): boolean;
|
|
77
|
+
updateSlideShowSettings(patch: Partial<ISlideShowSettings>): boolean;
|
|
78
|
+
exportSlideImage(slideId: string, options?: ISlideImageExportOptions): Promise<string>;
|
|
79
|
+
exportAllSlideImages(options?: ISlideImageExportOptions): Promise<ISlideExportedImageItem[]>;
|
|
70
80
|
}
|
|
71
81
|
|
|
72
82
|
interface IFUniverSlidesMixin {
|
package/lib/types/index.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ interface ISlideMaster {
|
|
|
59
59
|
background?: ISlideBackground;
|
|
60
60
|
accentBar?: boolean;
|
|
61
61
|
footerText?: string;
|
|
62
|
+
masterElements?: ISlideElement[];
|
|
62
63
|
}
|
|
63
64
|
interface ISlideLayout {
|
|
64
65
|
id: string;
|
|
@@ -66,6 +67,8 @@ interface ISlideLayout {
|
|
|
66
67
|
type: SlideLayoutType;
|
|
67
68
|
name: string;
|
|
68
69
|
placeholders: ISlidePlaceholderSlot[];
|
|
70
|
+
background?: ISlideBackground;
|
|
71
|
+
layoutElements?: ISlideElement[];
|
|
69
72
|
}
|
|
70
73
|
interface ISlideSection {
|
|
71
74
|
id: string;
|
|
@@ -94,11 +97,22 @@ interface ISlideAnimation {
|
|
|
94
97
|
delayMs: number;
|
|
95
98
|
direction?: SlideDirection;
|
|
96
99
|
}
|
|
97
|
-
type SlideElementType = 'text' | 'shape' | 'connector' | 'image' | 'svg' | 'table' | 'chart' | 'smartArt' | 'codeBlock' | 'sheetEmbed';
|
|
100
|
+
type SlideElementType = 'text' | 'shape' | 'connector' | 'image' | 'svg' | 'table' | 'chart' | 'smartArt' | 'codeBlock' | 'sheetEmbed' | 'video' | 'audio';
|
|
101
|
+
type SlideActionTrigger = 'click' | 'hover';
|
|
102
|
+
type SlideActionType = 'none' | 'nextSlide' | 'prevSlide' | 'firstSlide' | 'lastSlide' | 'slide' | 'endShow' | 'url';
|
|
103
|
+
interface ISlideElementAction {
|
|
104
|
+
trigger: SlideActionTrigger;
|
|
105
|
+
type: SlideActionType;
|
|
106
|
+
targetSlideId?: string;
|
|
107
|
+
url?: string;
|
|
108
|
+
tooltip?: string;
|
|
109
|
+
}
|
|
98
110
|
interface ISlideElementBase {
|
|
99
111
|
id: string;
|
|
100
112
|
type: SlideElementType;
|
|
101
113
|
name?: string;
|
|
114
|
+
morphName?: string;
|
|
115
|
+
action?: ISlideElementAction;
|
|
102
116
|
x: number;
|
|
103
117
|
y: number;
|
|
104
118
|
width: number;
|
|
@@ -300,7 +314,22 @@ interface ISlideSheetEmbedElement extends ISlideElementBase {
|
|
|
300
314
|
sourceUnitId?: string;
|
|
301
315
|
accentColor?: string;
|
|
302
316
|
}
|
|
303
|
-
|
|
317
|
+
interface ISlideMediaElement extends ISlideElementBase {
|
|
318
|
+
type: 'video' | 'audio';
|
|
319
|
+
src: string;
|
|
320
|
+
poster?: string;
|
|
321
|
+
autoPlay?: boolean;
|
|
322
|
+
loop?: boolean;
|
|
323
|
+
muted?: boolean;
|
|
324
|
+
startTimeSec?: number;
|
|
325
|
+
endTimeSec?: number;
|
|
326
|
+
}
|
|
327
|
+
type ISlideElement = ISlideTextElement | ISlideShapeElement | ISlideConnectorElement | ISlideImageElement | ISlideTableElement | ISlideChartElement | ISlideSmartArtElement | ISlideCodeBlockElement | ISlideSheetEmbedElement | ISlideMediaElement;
|
|
328
|
+
interface ISlideShowSettings {
|
|
329
|
+
autoAdvanceDefaultMs?: number;
|
|
330
|
+
loopContinuously?: boolean;
|
|
331
|
+
showMediaControls?: boolean;
|
|
332
|
+
}
|
|
304
333
|
interface ISlidePage {
|
|
305
334
|
id: string;
|
|
306
335
|
title: string;
|
|
@@ -328,6 +357,7 @@ interface ISlideUnitData {
|
|
|
328
357
|
sections: ISlideSection[];
|
|
329
358
|
slideOrder: string[];
|
|
330
359
|
slides: Record<string, ISlidePage>;
|
|
360
|
+
slideshowSettings?: ISlideShowSettings;
|
|
331
361
|
metadata?: Record<string, unknown>;
|
|
332
362
|
}
|
|
333
363
|
|
|
@@ -372,6 +402,7 @@ declare class SlideUnitModel extends UnitModel<ISlideUnitData, UniverInstanceTyp
|
|
|
372
402
|
getMasters(): ISlideMaster[];
|
|
373
403
|
getLayouts(): ISlideLayout[];
|
|
374
404
|
getSections(): ISlideSection[];
|
|
405
|
+
getSlideShowSettings(): ISlideShowSettings | undefined;
|
|
375
406
|
getSlideOrder(): string[];
|
|
376
407
|
getSlidesOrdered(): ISlidePage[];
|
|
377
408
|
getSlide(slideId: string): ISlidePage | undefined;
|
|
@@ -416,9 +447,59 @@ declare function renderSlideChartToSvgDataUri(chart: ISlideChartElement, theme?:
|
|
|
416
447
|
declare function renderSlideSmartArtToSvg(smartArt: ISlideSmartArtElement, theme?: ISlideTheme): string;
|
|
417
448
|
declare function renderSlideSmartArtToSvgDataUri(smartArt: ISlideSmartArtElement, theme?: ISlideTheme): string;
|
|
418
449
|
/**
|
|
419
|
-
*
|
|
450
|
+
* Pure-TS crisp vector SVG renderer for Slide Audio / Video media elements (used in thumbnails, SVG, and PPTX previews).
|
|
451
|
+
*/
|
|
452
|
+
declare function renderSlideMediaToSvg(media: ISlideMediaElement, theme?: ISlideTheme): string;
|
|
453
|
+
declare function renderSlideMediaToSvgDataUri(media: ISlideMediaElement, theme?: ISlideTheme): string;
|
|
454
|
+
/**
|
|
455
|
+
* Renders a complete `ISlidePage` to standalone vector SVG markup (used for thumbnails, SSR, image export, and previews).
|
|
420
456
|
*/
|
|
421
|
-
declare function renderSlidePageToSvg(page: ISlidePage, unitData: Pick<ISlideUnitData, 'slideSize' | 'theme' | 'masters'
|
|
457
|
+
declare function renderSlidePageToSvg(page: ISlidePage, unitData: Pick<ISlideUnitData, 'slideSize' | 'theme' | 'masters'> & {
|
|
458
|
+
layouts?: ISlideLayout[];
|
|
459
|
+
}, slideNumber?: number): string;
|
|
460
|
+
|
|
461
|
+
type SlideMorphMatchReason = 'morphName' | 'id' | 'signature';
|
|
462
|
+
interface IMorphMatchedPair {
|
|
463
|
+
key: string;
|
|
464
|
+
matchReason: SlideMorphMatchReason;
|
|
465
|
+
fromElement: ISlideElement;
|
|
466
|
+
toElement: ISlideElement;
|
|
467
|
+
}
|
|
468
|
+
interface IMorphSlideMatchResult {
|
|
469
|
+
pairs: IMorphMatchedPair[];
|
|
470
|
+
unmatchedFrom: ISlideElement[];
|
|
471
|
+
unmatchedTo: ISlideElement[];
|
|
472
|
+
}
|
|
473
|
+
interface IRgbChannel {
|
|
474
|
+
r: number;
|
|
475
|
+
g: number;
|
|
476
|
+
b: number;
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* Cubic ease-in-out curve mapping `t ∈ [0, 1]` smoothly with zero velocity at endpoints.
|
|
480
|
+
* Exact landmarks: `f(0) = 0`, `f(0.5) = 0.5`, `f(1) = 1`.
|
|
481
|
+
*/
|
|
482
|
+
declare function cubicEaseInOut(t: number): number;
|
|
483
|
+
declare function parseCssHexOrRgb(color?: string): IRgbChannel | null;
|
|
484
|
+
declare function interpolateHexColor(fromColor: string | undefined, toColor: string | undefined, easedT: number): string | undefined;
|
|
485
|
+
/**
|
|
486
|
+
* Extracts explicit Morph key from `element.morphName` or PowerPoint `!!name` convention on `element.name`.
|
|
487
|
+
*/
|
|
488
|
+
declare function resolveExplicitMorphKey(el: ISlideElement): string | null;
|
|
489
|
+
/**
|
|
490
|
+
* Matches elements between `fromSlide` and `toSlide` for Cross-Slide Morph transitions:
|
|
491
|
+
* 1. Explicit `morphName` (including PowerPoint `!!name` convention)
|
|
492
|
+
* 2. Identical element `id`
|
|
493
|
+
* 3. Unique `(type, shapeKind/title)` signature
|
|
494
|
+
*/
|
|
495
|
+
declare function matchMorphSlidePairs(fromSlide: ISlidePage, toSlide: ISlidePage): IMorphSlideMatchResult;
|
|
496
|
+
/**
|
|
497
|
+
* Computes an interpolated `ISlidePage` snapshot at `progress ∈ [0, 1]` using cubic ease-in-out:
|
|
498
|
+
* - Matched elements morph geometry, rotation, opacity, cornerRadius, fontSize, and RGB colors;
|
|
499
|
+
* - Unmatched `fromSlide` elements fade out (`opacity: 1 -> 0`);
|
|
500
|
+
* - Unmatched `toSlide` elements fade in (`opacity: 0 -> 1`).
|
|
501
|
+
*/
|
|
502
|
+
declare function computeMorphInterpolatedSlide(fromSlide: ISlidePage, toSlide: ISlidePage, progress: number): ISlidePage;
|
|
422
503
|
|
|
423
504
|
type SlideInspectorTab = 'page' | 'element' | 'animation';
|
|
424
505
|
type SlidePresenterMode = 'presenter' | 'fullscreen';
|
|
@@ -443,6 +524,9 @@ interface ISlideSelectionState {
|
|
|
443
524
|
presenterSlideIndex: number;
|
|
444
525
|
inspectorTab: SlideInspectorTab;
|
|
445
526
|
lastFindReplaceCount: number;
|
|
527
|
+
masterViewOpen: boolean;
|
|
528
|
+
activeMasterId: string | null;
|
|
529
|
+
activeLayoutId: string | null;
|
|
446
530
|
}
|
|
447
531
|
interface ISlideSelectionService {
|
|
448
532
|
readonly state$: Observable<ISlideSelectionState>;
|
|
@@ -468,6 +552,11 @@ interface ISlideSelectionService {
|
|
|
468
552
|
closePresenter(): void;
|
|
469
553
|
setPresenterSlideIndex(index: number): void;
|
|
470
554
|
setInspectorTab(tab: SlideInspectorTab): void;
|
|
555
|
+
setMasterViewOpen(open: boolean, target?: {
|
|
556
|
+
masterId?: string | null;
|
|
557
|
+
layoutId?: string | null;
|
|
558
|
+
}): void;
|
|
559
|
+
setActiveMasterTarget(masterId: string | null, layoutId?: string | null): void;
|
|
471
560
|
}
|
|
472
561
|
declare const ISlideSelectionService: _univerjs_core.IdentifierDecorator<ISlideSelectionService>;
|
|
473
562
|
declare class SlideSelectionService extends Disposable implements ISlideSelectionService {
|
|
@@ -497,6 +586,11 @@ declare class SlideSelectionService extends Disposable implements ISlideSelectio
|
|
|
497
586
|
closePresenter(): void;
|
|
498
587
|
setPresenterSlideIndex(index: number): void;
|
|
499
588
|
setInspectorTab(tab: SlideInspectorTab): void;
|
|
589
|
+
setMasterViewOpen(open: boolean, target?: {
|
|
590
|
+
masterId?: string | null;
|
|
591
|
+
layoutId?: string | null;
|
|
592
|
+
}): void;
|
|
593
|
+
setActiveMasterTarget(masterId: string | null, layoutId?: string | null): void;
|
|
500
594
|
}
|
|
501
595
|
|
|
502
596
|
interface ISlideDatasetExtractionResult {
|
|
@@ -765,6 +859,37 @@ interface IReplaceSlideSnapshotCommandParams {
|
|
|
765
859
|
snapshot: ISlideUnitData;
|
|
766
860
|
}
|
|
767
861
|
declare const ReplaceSlideSnapshotCommand: ICommand<IReplaceSlideSnapshotCommandParams>;
|
|
862
|
+
interface IUpdateSlideMasterCommandParams {
|
|
863
|
+
unitId?: string;
|
|
864
|
+
masterId?: string;
|
|
865
|
+
patch: {
|
|
866
|
+
name?: string;
|
|
867
|
+
background?: ISlideBackground;
|
|
868
|
+
accentBar?: boolean;
|
|
869
|
+
footerText?: string;
|
|
870
|
+
masterElements?: ISlideElement[];
|
|
871
|
+
theme?: Partial<ISlideTheme>;
|
|
872
|
+
};
|
|
873
|
+
propagateBackgroundToSlides?: boolean;
|
|
874
|
+
}
|
|
875
|
+
declare const UpdateSlideMasterCommand: ICommand<IUpdateSlideMasterCommandParams>;
|
|
876
|
+
interface IUpdateSlideLayoutCommandParams {
|
|
877
|
+
unitId?: string;
|
|
878
|
+
layoutId: string | SlideLayoutType;
|
|
879
|
+
patch: {
|
|
880
|
+
name?: string;
|
|
881
|
+
placeholders?: ISlidePlaceholderSlot[];
|
|
882
|
+
background?: ISlideBackground;
|
|
883
|
+
layoutElements?: ISlideElement[];
|
|
884
|
+
};
|
|
885
|
+
syncExistingSlides?: boolean;
|
|
886
|
+
}
|
|
887
|
+
declare const UpdateSlideLayoutCommand: ICommand<IUpdateSlideLayoutCommandParams>;
|
|
888
|
+
interface IUpdateSlideShowSettingsCommandParams {
|
|
889
|
+
unitId?: string;
|
|
890
|
+
patch: Partial<ISlideShowSettings>;
|
|
891
|
+
}
|
|
892
|
+
declare const UpdateSlideShowSettingsCommand: ICommand<IUpdateSlideShowSettingsCommandParams>;
|
|
768
893
|
|
|
769
894
|
/**
|
|
770
895
|
* Browser-safe & Node-safe Pure-TS RFC 1951 Raw DEFLATE Compressor / Decompressor + ZIP Container Codec.
|
|
@@ -780,6 +905,36 @@ interface IZipFileEntry {
|
|
|
780
905
|
declare function packZipSync(files: IZipFileEntry[]): Uint8Array;
|
|
781
906
|
declare function unpackZipSync(zipBytes: Uint8Array): Map<string, Uint8Array>;
|
|
782
907
|
|
|
908
|
+
interface ISlideImageExportOptions {
|
|
909
|
+
/** Output image format (`'png'` default, `'jpeg'`, or `'svg'`) */
|
|
910
|
+
format?: 'png' | 'jpeg' | 'svg';
|
|
911
|
+
/** High-DPI rasterization scale multiplier (default `2` for 2x crisp output) */
|
|
912
|
+
scale?: number;
|
|
913
|
+
/** JPEG compression quality in `[0, 1]` (default `0.92`) */
|
|
914
|
+
quality?: number;
|
|
915
|
+
/** Whether batch export includes slides marked `hidden: true` (default `false`) */
|
|
916
|
+
includeHiddenSlides?: boolean;
|
|
917
|
+
}
|
|
918
|
+
interface ISlideExportedImageItem {
|
|
919
|
+
slideId: string;
|
|
920
|
+
slideIndex: number;
|
|
921
|
+
title: string;
|
|
922
|
+
format: 'png' | 'jpeg' | 'svg';
|
|
923
|
+
widthPx: number;
|
|
924
|
+
heightPx: number;
|
|
925
|
+
dataUrl: string;
|
|
926
|
+
}
|
|
927
|
+
/**
|
|
928
|
+
* Exports a single slide page to a Data URL:
|
|
929
|
+
* - In Browser environments, rasterizes high-DPI `image/png` or `image/jpeg` via HTML5 `<canvas>` (unless `format === 'svg'`);
|
|
930
|
+
* - In headless Node / SSR environments without `<canvas>`, returns a crisp standalone `data:image/svg+xml;base64,...` Data URL cleanly.
|
|
931
|
+
*/
|
|
932
|
+
declare function exportSlidePageToDataUrl(snapshot: ISlideUnitData, slideId: string, options?: ISlideImageExportOptions): Promise<string>;
|
|
933
|
+
/**
|
|
934
|
+
* Batch-exports all visible (or all) slides in `snapshot.slideOrder` to image Data URLs.
|
|
935
|
+
*/
|
|
936
|
+
declare function exportAllSlidesToImages(snapshot: ISlideUnitData, options?: ISlideImageExportOptions): Promise<ISlideExportedImageItem[]>;
|
|
937
|
+
|
|
783
938
|
interface IUniverSlidesConfig {
|
|
784
939
|
/** Optional pluggable PPTX / PDF Import-Export-Save IO adapter */
|
|
785
940
|
io?: ISlideIoAdapter;
|
|
@@ -798,6 +953,6 @@ declare class UniverSlidesPlugin extends Plugin {
|
|
|
798
953
|
onStarting(): void;
|
|
799
954
|
}
|
|
800
955
|
|
|
801
|
-
declare const VERSION = "1.6.
|
|
956
|
+
declare const VERSION = "1.6.219";
|
|
802
957
|
|
|
803
|
-
export { AddSlideElementCommand, AddSlidePageCommand, AddSlideSectionCommand, AlignSlideElementsCommand, ApplySlideSnapshotMutation, DeleteSlideElementsCommand, DeleteSlidePageCommand, DeleteSlideSectionCommand, DuplicateSlidePageCommand, EMU_PER_PT, FindAndReplaceSlideTextCommand, type IAddSlideElementCommandParams, type IAddSlidePageCommandParams, type IAddSlideSectionCommandParams, type IAlignSlideElementsCommandParams, type IApplySlideSnapshotMutationParams, type ICompileSlideTemplateOptions, type IDeleteSlideElementsCommandParams, type IDeleteSlidePageCommandParams, type IDeleteSlideSectionCommandParams, type IDuplicateSlidePageCommandParams, type IFindAndReplaceSlideTextCommandParams, type IPptxExportOptions, type IPptxImportOptions, type IReorderSlideElementLayerCommandParams, type IReorderSlidePagesCommandParams, type IReplaceSlideSnapshotCommandParams, type IResolvedConnectorGeometry, type ISetActiveSlideMutationParams, type ISetActiveSlidePageCommandParams, type ISetSlideAnimationsCommandParams, type ISetSlideSizeCommandParams, type ISlideAnimation, type ISlideBackground, type ISlideChartElement, type ISlideChartSeries, type ISlideChartValueFieldBinding, type ISlideCodeBlockElement, type ISlideConnectorElement, type ISlideDatasetExtractionResult, type ISlideElement, type ISlideElementBase, type ISlideExportedEvent, type ISlideImageCrop, type ISlideImageElement, type ISlideIoAdapter, ISlideIoService, type ISlideLayout, type ISlideMaster, type ISlidePage, type ISlideParagraph, type ISlidePdfExportOptions, type ISlidePlaceholderSlot, type ISlideSection, ISlideSelectionService, type ISlideSelectionState, type ISlideShapeElement, type ISlideSheetEmbedElement, type ISlideSize, type ISlideSmartArtElement, type ISlideSmartArtItem, type ISlideTableCell, type ISlideTableElement, type ISlideTextElement, type ISlideTextRun, type ISlideTheme, type ISlideThemeColors, type ISlideTransition, type ISlideUnitData, type ISlideWordArtStyle, type IUniverSlidesConfig, type IUpdateSlideElementsCommandParams, type IUpdateSlidePagePropsCommandParams, type IUpdateSlideSectionCommandParams, type IUpdateSlideThemeCommandParams, type IZipFileEntry, ReorderSlideElementLayerCommand, ReorderSlidePagesCommand, ReplaceSlideSnapshotCommand, SLIDE_SIZE_PRESETS, SLIDE_THEME_PRESETS, SetActiveSlideMutation, SetActiveSlidePageCommand, SetSlideAnimationsCommand, SetSlideSizeCommand, type SlideAnimationCategory, type SlideAnimationEffect, type SlideAnimationTrigger, type SlideChartType, type SlideConnectorKind, type SlideDirection, type SlideElementAlignMode, type SlideElementType, type SlideInspectorTab, SlideIoService, type SlideLayoutType, type SlidePlaceholderRole, type SlidePresenterMode, SlideSelectionService, type SlideShapeKind, type SlideSizePreset, type SlideSmartArtLayout, type SlideTransitionType, SlideUnitModel, UNIVER_SLIDES_PLUGIN_NAME, UNIVER_SLIDE_SCHEMA, UNIVER_SLIDE_SCHEMA_VERSION, UniverSlidesPlugin, UpdateSlideElementsCommand, UpdateSlidePagePropsCommand, UpdateSlideSectionCommand, UpdateSlideThemeCommand, VERSION, compileSlidesWithDataset, countSlideTextMatches, crc32Bytes, createDefaultSlideElement, createDefaultSlideLayouts, createDefaultSlideMasters, createDefaultSlideUnitData, createElementsFromLayout, createSampleExecutiveDeckData, deflateRawSyncPure, emuToPt, escapeSvgXml, exportPptxBytes, exportPptxBytesSync, exportSlidesToPdfBytes, extractSlideDatasetCodes, findLayoutByTypeOrId, getShapePolygonPoints, getShapeSvgPath, importPptxBytes, importPptxBytesSync, inflateRawSyncPure, packZipSync, ptToEmu, renderSlideChartToSvg, renderSlideChartToSvgDataUri, renderSlidePageToSvg, renderSlideSmartArtToSvg, renderSlideSmartArtToSvgDataUri, resolveChartPalette, resolveConnectorEndpoints, svgToDataUri, syncTextAndParagraphs, unpackZipSync };
|
|
958
|
+
export { AddSlideElementCommand, AddSlidePageCommand, AddSlideSectionCommand, AlignSlideElementsCommand, ApplySlideSnapshotMutation, DeleteSlideElementsCommand, DeleteSlidePageCommand, DeleteSlideSectionCommand, DuplicateSlidePageCommand, EMU_PER_PT, FindAndReplaceSlideTextCommand, type IAddSlideElementCommandParams, type IAddSlidePageCommandParams, type IAddSlideSectionCommandParams, type IAlignSlideElementsCommandParams, type IApplySlideSnapshotMutationParams, type ICompileSlideTemplateOptions, type IDeleteSlideElementsCommandParams, type IDeleteSlidePageCommandParams, type IDeleteSlideSectionCommandParams, type IDuplicateSlidePageCommandParams, type IFindAndReplaceSlideTextCommandParams, type IMorphMatchedPair, type IMorphSlideMatchResult, type IPptxExportOptions, type IPptxImportOptions, type IReorderSlideElementLayerCommandParams, type IReorderSlidePagesCommandParams, type IReplaceSlideSnapshotCommandParams, type IResolvedConnectorGeometry, type ISetActiveSlideMutationParams, type ISetActiveSlidePageCommandParams, type ISetSlideAnimationsCommandParams, type ISetSlideSizeCommandParams, type ISlideAnimation, type ISlideBackground, type ISlideChartElement, type ISlideChartSeries, type ISlideChartValueFieldBinding, type ISlideCodeBlockElement, type ISlideConnectorElement, type ISlideDatasetExtractionResult, type ISlideElement, type ISlideElementAction, type ISlideElementBase, type ISlideExportedEvent, type ISlideExportedImageItem, type ISlideImageCrop, type ISlideImageElement, type ISlideImageExportOptions, type ISlideIoAdapter, ISlideIoService, type ISlideLayout, type ISlideMaster, type ISlideMediaElement, type ISlidePage, type ISlideParagraph, type ISlidePdfExportOptions, type ISlidePlaceholderSlot, type ISlideSection, ISlideSelectionService, type ISlideSelectionState, type ISlideShapeElement, type ISlideSheetEmbedElement, type ISlideShowSettings, type ISlideSize, type ISlideSmartArtElement, type ISlideSmartArtItem, type ISlideTableCell, type ISlideTableElement, type ISlideTextElement, type ISlideTextRun, type ISlideTheme, type ISlideThemeColors, type ISlideTransition, type ISlideUnitData, type ISlideWordArtStyle, type IUniverSlidesConfig, type IUpdateSlideElementsCommandParams, type IUpdateSlideLayoutCommandParams, type IUpdateSlideMasterCommandParams, type IUpdateSlidePagePropsCommandParams, type IUpdateSlideSectionCommandParams, type IUpdateSlideShowSettingsCommandParams, type IUpdateSlideThemeCommandParams, type IZipFileEntry, ReorderSlideElementLayerCommand, ReorderSlidePagesCommand, ReplaceSlideSnapshotCommand, SLIDE_SIZE_PRESETS, SLIDE_THEME_PRESETS, SetActiveSlideMutation, SetActiveSlidePageCommand, SetSlideAnimationsCommand, SetSlideSizeCommand, type SlideActionTrigger, type SlideActionType, type SlideAnimationCategory, type SlideAnimationEffect, type SlideAnimationTrigger, type SlideChartType, type SlideConnectorKind, type SlideDirection, type SlideElementAlignMode, type SlideElementType, type SlideInspectorTab, SlideIoService, type SlideLayoutType, type SlideMorphMatchReason, type SlidePlaceholderRole, type SlidePresenterMode, SlideSelectionService, type SlideShapeKind, type SlideSizePreset, type SlideSmartArtLayout, type SlideTransitionType, SlideUnitModel, UNIVER_SLIDES_PLUGIN_NAME, UNIVER_SLIDE_SCHEMA, UNIVER_SLIDE_SCHEMA_VERSION, UniverSlidesPlugin, UpdateSlideElementsCommand, UpdateSlideLayoutCommand, UpdateSlideMasterCommand, UpdateSlidePagePropsCommand, UpdateSlideSectionCommand, UpdateSlideShowSettingsCommand, UpdateSlideThemeCommand, VERSION, compileSlidesWithDataset, computeMorphInterpolatedSlide, countSlideTextMatches, crc32Bytes, createDefaultSlideElement, createDefaultSlideLayouts, createDefaultSlideMasters, createDefaultSlideUnitData, createElementsFromLayout, createSampleExecutiveDeckData, cubicEaseInOut, deflateRawSyncPure, emuToPt, escapeSvgXml, exportAllSlidesToImages, exportPptxBytes, exportPptxBytesSync, exportSlidePageToDataUrl, exportSlidesToPdfBytes, extractSlideDatasetCodes, findLayoutByTypeOrId, getShapePolygonPoints, getShapeSvgPath, importPptxBytes, importPptxBytesSync, inflateRawSyncPure, interpolateHexColor, matchMorphSlidePairs, packZipSync, parseCssHexOrRgb, ptToEmu, renderSlideChartToSvg, renderSlideChartToSvgDataUri, renderSlideMediaToSvg, renderSlideMediaToSvgDataUri, renderSlidePageToSvg, renderSlideSmartArtToSvg, renderSlideSmartArtToSvgDataUri, resolveChartPalette, resolveConnectorEndpoints, resolveExplicitMorphKey, svgToDataUri, syncTextAndParagraphs, unpackZipSync };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yudaocode/univer-slides",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.219",
|
|
4
4
|
"description": "Univer Slides presentation unit model, PPTX OpenXML bidirectional codec, dataset template engine, speaker notes, animations, and vector PDF exporter",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/yudaocode/yudao-univer#readme",
|