@video-editor/protocol 0.0.1-beta.8 → 0.0.1-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +16 -4
- package/dist/index.js +2236 -2206
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -386,8 +386,14 @@ export declare function createVideoProtocolManager(protocol: IVideoProtocol): {
|
|
|
386
386
|
}>;
|
|
387
387
|
segmentMap: ComputedRef<Record<string, DeepReadonly<SegmentUnion | undefined>>>;
|
|
388
388
|
getSegment: <T extends ITrackType>(id: SegmentUnion["id"], type?: T) => DeepReadonly<TrackTypeMapSegment[T]> | undefined;
|
|
389
|
-
addSegment: (segment: PartialByKeys<TrackTypeMapSegment[ITrackType], "id">) =>
|
|
390
|
-
|
|
389
|
+
addSegment: (segment: PartialByKeys<TrackTypeMapSegment[ITrackType], "id">) => {
|
|
390
|
+
id: string;
|
|
391
|
+
affectedSegments: SegmentUnion[];
|
|
392
|
+
};
|
|
393
|
+
removeSegment: (id: SegmentUnion["id"]) => {
|
|
394
|
+
success: boolean;
|
|
395
|
+
affectedSegments: SegmentUnion[];
|
|
396
|
+
};
|
|
391
397
|
updateSegment: <T extends ITrackType>(updater: (segment: TrackTypeMapSegment[T]) => void, id?: string, type?: T) => void;
|
|
392
398
|
moveSegment: (options: {
|
|
393
399
|
segmentId: string;
|
|
@@ -397,13 +403,19 @@ export declare function createVideoProtocolManager(protocol: IVideoProtocol): {
|
|
|
397
403
|
endTime: number;
|
|
398
404
|
isNewTrack?: boolean;
|
|
399
405
|
newTrackInsertIndex?: number;
|
|
400
|
-
}) =>
|
|
406
|
+
}) => {
|
|
407
|
+
success: boolean;
|
|
408
|
+
affectedSegments: SegmentUnion[];
|
|
409
|
+
};
|
|
401
410
|
resizeSegment: (options: {
|
|
402
411
|
segmentId: string;
|
|
403
412
|
trackId: string;
|
|
404
413
|
startTime: number;
|
|
405
414
|
endTime: number;
|
|
406
|
-
}) =>
|
|
415
|
+
}) => {
|
|
416
|
+
success: boolean;
|
|
417
|
+
affectedSegments: SegmentUnion[];
|
|
418
|
+
};
|
|
407
419
|
exportProtocol: () => IVideoProtocol;
|
|
408
420
|
addTransition: (transition: ITransition, addTime?: number) => boolean;
|
|
409
421
|
removeTransition: (segmentId: string) => boolean;
|