@video-editor/protocol 0.0.1-beta.5 → 0.0.1-beta.7
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 +21 -6
- package/dist/index.js +3500 -3432
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ import { IEffectSegment } from '@video-editor/shared';
|
|
|
6
6
|
import { IFillMode } from '@video-editor/shared';
|
|
7
7
|
import { IFilterSegment } from '@video-editor/shared';
|
|
8
8
|
import { IFramesSegmentUnion } from '@video-editor/shared';
|
|
9
|
-
import { IImageSegment } from '@video-editor/shared';
|
|
10
9
|
import { ISamples } from './fetch';
|
|
10
|
+
import { IStickerSegment } from '@video-editor/shared';
|
|
11
11
|
import { ITextSegment } from '@video-editor/shared';
|
|
12
12
|
import { ITrackType } from '@video-editor/shared';
|
|
13
13
|
import { ITransition } from '@video-editor/shared';
|
|
@@ -36,7 +36,7 @@ export declare function createValidator(): {
|
|
|
36
36
|
};
|
|
37
37
|
verifyFramesSegment: (o: object) => IFramesSegmentUnion;
|
|
38
38
|
verifyTextSegment: (o: object) => ITextSegment;
|
|
39
|
-
|
|
39
|
+
verifyStickerSegment: (o: object) => IStickerSegment;
|
|
40
40
|
verifyAudioSegment: (o: object) => IAudioSegment;
|
|
41
41
|
verifyEffectSegment: (o: object) => IEffectSegment;
|
|
42
42
|
verifyFilterSegment: (o: object) => IFilterSegment;
|
|
@@ -45,7 +45,7 @@ export declare function createValidator(): {
|
|
|
45
45
|
};
|
|
46
46
|
verifySegment: (o: object & {
|
|
47
47
|
segmentType: ITrackType;
|
|
48
|
-
}) => IFramesSegmentUnion | IAudioSegment | IEffectSegment | IFilterSegment |
|
|
48
|
+
}) => IFramesSegmentUnion | IAudioSegment | IEffectSegment | IFilterSegment | IStickerSegment | ITextSegment;
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
export declare function createVideoProtocolManager(protocol: IVideoProtocol): {
|
|
@@ -277,11 +277,11 @@ export declare function createVideoProtocolManager(protocol: IVideoProtocol): {
|
|
|
277
277
|
readonly [x: string]: never;
|
|
278
278
|
} | null | undefined;
|
|
279
279
|
}[];
|
|
280
|
-
|
|
280
|
+
sticker: readonly {
|
|
281
281
|
readonly trackId: string;
|
|
282
|
-
readonly trackType: "
|
|
282
|
+
readonly trackType: "sticker";
|
|
283
283
|
readonly children: readonly {
|
|
284
|
-
readonly segmentType: "
|
|
284
|
+
readonly segmentType: "sticker";
|
|
285
285
|
readonly format: "img" | "gif";
|
|
286
286
|
readonly url: string;
|
|
287
287
|
readonly fillMode?: IFillMode | undefined;
|
|
@@ -389,6 +389,21 @@ export declare function createVideoProtocolManager(protocol: IVideoProtocol): {
|
|
|
389
389
|
addSegment: (segment: PartialByKeys<TrackTypeMapSegment[ITrackType], "id">) => string;
|
|
390
390
|
removeSegment: (id: SegmentUnion["id"]) => boolean;
|
|
391
391
|
updateSegment: <T extends ITrackType>(updater: (segment: TrackTypeMapSegment[T]) => void, id?: string, type?: T) => void;
|
|
392
|
+
moveSegment: (options: {
|
|
393
|
+
segmentId: string;
|
|
394
|
+
sourceTrackId: string;
|
|
395
|
+
targetTrackId?: string;
|
|
396
|
+
startTime: number;
|
|
397
|
+
endTime: number;
|
|
398
|
+
isNewTrack?: boolean;
|
|
399
|
+
newTrackInsertIndex?: number;
|
|
400
|
+
}) => boolean;
|
|
401
|
+
resizeSegment: (options: {
|
|
402
|
+
segmentId: string;
|
|
403
|
+
trackId: string;
|
|
404
|
+
startTime: number;
|
|
405
|
+
endTime: number;
|
|
406
|
+
}) => boolean;
|
|
392
407
|
exportProtocol: () => IVideoProtocol;
|
|
393
408
|
addTransition: (transition: ITransition, addTime?: number) => boolean;
|
|
394
409
|
removeTransition: (segmentId: string) => boolean;
|