@cliquify.me/timeline 3.1.25 → 4.0.1
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.es.js +2980 -3604
- package/dist/index.umd.js +55 -55
- package/dist/mixins/track-items.d.ts +0 -1
- package/dist/objects/index.d.ts +2 -9
- package/dist/objects/{text.d.ts → resizable.d.ts} +8 -6
- package/dist/objects/{audio.d.ts → trimmable.d.ts} +17 -11
- package/dist/timeline.d.ts +0 -1
- package/dist/utils/load-object.d.ts +14 -15
- package/package.json +2 -2
- package/dist/objects/captions.d.ts +0 -34
- package/dist/objects/composition.d.ts +0 -34
- package/dist/objects/illustration.d.ts +0 -39
- package/dist/objects/image.d.ts +0 -36
- package/dist/objects/shape.d.ts +0 -39
- package/dist/objects/template.d.ts +0 -36
- package/dist/objects/video.d.ts +0 -43
|
@@ -13,7 +13,6 @@ declare class TrackItemsMixin {
|
|
|
13
13
|
deleteTrackItemById(this: Timeline, ids: string[]): void;
|
|
14
14
|
deleteActiveTrackItem(this: Timeline): false | undefined;
|
|
15
15
|
updateTrackItemCoords(this: Timeline, updateActiveObject?: boolean): void;
|
|
16
|
-
refreshTrackItemsForTransitions(this: Timeline): void;
|
|
17
16
|
getTrackItems(this: Timeline): FabricObject<Partial<import('fabric').FabricObjectProps>, import('fabric').SerializedObjectProps, import('fabric').ObjectEvents>[];
|
|
18
17
|
setTrackItemCoords(this: Timeline): void;
|
|
19
18
|
setActiveTrackItemCoords(this: Timeline): void;
|
package/dist/objects/index.d.ts
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
export { default as Image, type ImageProps } from './image';
|
|
2
|
-
export { default as Video, type VideoProps } from './video';
|
|
3
|
-
export { default as Audio, type AudioProps } from './audio';
|
|
4
|
-
export { default as Text, type TextProps } from './text';
|
|
5
1
|
export { default as Track, type TrackItemProps } from './track';
|
|
6
2
|
export { default as Helper, type HelperProps } from './helper';
|
|
7
3
|
export { default as Placeholder } from './placeholder';
|
|
8
4
|
export { default as Transition } from './transition';
|
|
9
|
-
export { default as
|
|
10
|
-
export { default as
|
|
11
|
-
export { default as Illustration, type IllustrationProps } from './illustration';
|
|
12
|
-
export { default as Shape, type ShapeProps } from './shape';
|
|
13
|
-
export { default as Composition, type CompositionProps } from './composition';
|
|
5
|
+
export { default as Trimmable, type TrimmableProps } from './trimmable';
|
|
6
|
+
export { default as Resizable, type ResizableProps } from './resizable';
|
|
14
7
|
export { default as PreviewTrackItem, type PreviewTrackItemProps } from './drag-track-item';
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { Control, Rect, RectProps } from 'fabric';
|
|
2
2
|
import { IDisplay } from '@cliquify.me/types';
|
|
3
3
|
|
|
4
|
-
export interface
|
|
4
|
+
export interface ResizableBaseProps extends Pick<RectProps, "width" | "height" | "top" | "left"> {
|
|
5
5
|
id: string;
|
|
6
|
-
text: string;
|
|
7
6
|
tScale: number;
|
|
8
7
|
display: IDisplay;
|
|
9
8
|
}
|
|
10
|
-
|
|
9
|
+
export type ResizableProps<T extends object = {}> = ResizableBaseProps & T;
|
|
10
|
+
declare class Resizable extends Rect {
|
|
11
11
|
static type: string;
|
|
12
|
+
id: string;
|
|
12
13
|
isSelected: boolean;
|
|
13
|
-
|
|
14
|
+
tScale: number;
|
|
15
|
+
display: IDisplay;
|
|
14
16
|
static createControls(): {
|
|
15
17
|
controls: Record<string, Control>;
|
|
16
18
|
};
|
|
@@ -26,9 +28,9 @@ declare class TextItem extends Rect {
|
|
|
26
28
|
borderOpacityWhenMoving: number;
|
|
27
29
|
hoverCursor: string;
|
|
28
30
|
};
|
|
29
|
-
constructor(props:
|
|
31
|
+
constructor(props: ResizableProps);
|
|
30
32
|
setSelected(selected: boolean): void;
|
|
31
33
|
_render(ctx: CanvasRenderingContext2D): void;
|
|
32
34
|
updateSelected(ctx: CanvasRenderingContext2D): void;
|
|
33
35
|
}
|
|
34
|
-
export default
|
|
36
|
+
export default Resizable;
|
|
@@ -1,22 +1,27 @@
|
|
|
1
1
|
import { Control, Rect, RectProps } from 'fabric';
|
|
2
|
-
import {
|
|
2
|
+
import { ITrim } from '@cliquify.me/types';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
interface IDisplay {
|
|
5
|
+
from: number;
|
|
6
|
+
to: number;
|
|
7
|
+
}
|
|
8
|
+
export interface TrimmableBaseProps extends Pick<RectProps, "width" | "height" | "top" | "left"> {
|
|
5
9
|
id: string;
|
|
6
10
|
tScale: number;
|
|
7
11
|
display: IDisplay;
|
|
8
12
|
trim: ITrim;
|
|
9
|
-
duration: number;
|
|
10
|
-
src: string;
|
|
11
13
|
}
|
|
12
|
-
|
|
14
|
+
export type TrimmableProps<T extends object = {}> = TrimmableBaseProps & T;
|
|
15
|
+
declare class Trimmable extends Rect {
|
|
13
16
|
static type: string;
|
|
14
|
-
|
|
17
|
+
id: string;
|
|
18
|
+
resourceId: string;
|
|
19
|
+
tScale: number;
|
|
15
20
|
isSelected: boolean;
|
|
21
|
+
display: IDisplay;
|
|
16
22
|
trim: ITrim;
|
|
17
|
-
src: string;
|
|
18
23
|
duration: number;
|
|
19
|
-
|
|
24
|
+
src: string;
|
|
20
25
|
static createControls(): {
|
|
21
26
|
controls: Record<string, Control>;
|
|
22
27
|
};
|
|
@@ -31,10 +36,11 @@ declare class Audio extends Rect {
|
|
|
31
36
|
borderOpacityWhenMoving: number;
|
|
32
37
|
hoverCursor: string;
|
|
33
38
|
};
|
|
34
|
-
constructor(
|
|
35
|
-
setSelected(selected: boolean): void;
|
|
39
|
+
constructor(options: TrimmableProps);
|
|
36
40
|
_render(ctx: CanvasRenderingContext2D): void;
|
|
41
|
+
setSelected(selected: boolean): void;
|
|
37
42
|
updateSelected(ctx: CanvasRenderingContext2D): void;
|
|
43
|
+
onResizeSnap(): void;
|
|
38
44
|
setSrc(src: string): void;
|
|
39
45
|
}
|
|
40
|
-
export default
|
|
46
|
+
export default Trimmable;
|
package/dist/timeline.d.ts
CHANGED
|
@@ -54,7 +54,6 @@ declare class Timeline extends Canvas {
|
|
|
54
54
|
activeIds: string[];
|
|
55
55
|
spacing: CanvasSpacing;
|
|
56
56
|
guideLineColor: string;
|
|
57
|
-
transitionGroups: (ITrackItem | ITransition)[][];
|
|
58
57
|
constructor(canvasEl: HTMLCanvasElement, options: Partial<TimelineOptions> & {
|
|
59
58
|
scale: ITimelineScaleState;
|
|
60
59
|
duration: number;
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import { Audio, Caption, Image, Text, Video } from '../objects';
|
|
2
1
|
import { IAudio, IDisplay, ITextDetails, ITrackItem, ITrackItemAndDetails, ITrim, IVideo } from '@cliquify.me/types';
|
|
3
|
-
import { default as Template } from '../objects/template';
|
|
4
|
-
import { default as Composition } from '../objects/composition';
|
|
5
|
-
import { default as Illustration } from '../objects/illustration';
|
|
6
|
-
import { default as Shape } from '../objects/shape';
|
|
7
2
|
|
|
8
3
|
export declare const loadVideoObject: (item: IVideo, options: {
|
|
9
4
|
tScale: number;
|
|
10
5
|
sizesMap: Record<string, number>;
|
|
11
|
-
}) =>
|
|
6
|
+
}) => any;
|
|
12
7
|
export declare const loadTextObject: (item: {
|
|
13
8
|
display: IDisplay;
|
|
14
9
|
id: string;
|
|
@@ -16,7 +11,7 @@ export declare const loadTextObject: (item: {
|
|
|
16
11
|
}, options: {
|
|
17
12
|
tScale: number;
|
|
18
13
|
sizesMap: Record<string, number>;
|
|
19
|
-
}) =>
|
|
14
|
+
}) => any;
|
|
20
15
|
export declare const loadCaptionObject: (item: {
|
|
21
16
|
display: IDisplay;
|
|
22
17
|
id: string;
|
|
@@ -24,37 +19,41 @@ export declare const loadCaptionObject: (item: {
|
|
|
24
19
|
}, options: {
|
|
25
20
|
tScale: number;
|
|
26
21
|
sizesMap: Record<string, number>;
|
|
27
|
-
}) =>
|
|
22
|
+
}) => any;
|
|
28
23
|
export declare const loadImageObject: (item: ITrackItem, options: {
|
|
29
24
|
tScale: number;
|
|
30
25
|
sizesMap: Record<string, number>;
|
|
31
|
-
}) =>
|
|
26
|
+
}) => any;
|
|
32
27
|
export declare const loadAudioObject: (item: IAudio, options: {
|
|
33
28
|
tScale: number;
|
|
34
29
|
sizesMap: Record<string, number>;
|
|
35
|
-
}) =>
|
|
30
|
+
}) => any;
|
|
36
31
|
export declare const loadTemplateObject: (item: {
|
|
37
32
|
id: string;
|
|
38
33
|
display: IDisplay;
|
|
39
34
|
trim?: ITrim;
|
|
40
35
|
}, options: {
|
|
41
36
|
tScale: number;
|
|
42
|
-
}) =>
|
|
37
|
+
}) => any;
|
|
43
38
|
export declare const loadCompositionObject: (item: {
|
|
44
39
|
id: string;
|
|
45
40
|
display: IDisplay;
|
|
46
41
|
}, options: {
|
|
47
42
|
tScale: number;
|
|
48
|
-
}) =>
|
|
43
|
+
}) => any;
|
|
49
44
|
export declare const loadIllustrationObject: (item: ITrackItemAndDetails, options: {
|
|
50
45
|
tScale: number;
|
|
51
46
|
sizesMap: Record<string, number>;
|
|
52
|
-
}) =>
|
|
47
|
+
}) => any;
|
|
53
48
|
export declare const loadShapeObject: (item: ITrackItemAndDetails, options: {
|
|
54
49
|
tScale: number;
|
|
55
50
|
sizesMap: Record<string, number>;
|
|
56
|
-
}) =>
|
|
51
|
+
}) => any;
|
|
52
|
+
export declare const loadCustomObject: (item: ITrackItemAndDetails, options: {
|
|
53
|
+
tScale: number;
|
|
54
|
+
sizesMap: Record<string, number>;
|
|
55
|
+
}) => any;
|
|
57
56
|
export declare const loadMediaObject: (item: ITrackItemAndDetails, options: {
|
|
58
57
|
tScale: number;
|
|
59
58
|
sizesMap: Record<string, number>;
|
|
60
|
-
}) =>
|
|
59
|
+
}) => any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cliquify.me/timeline",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@types/lodash-es": "^4.17.12",
|
|
39
39
|
"@designcombo/events": "^1.0.2",
|
|
40
|
-
"@cliquify.me/types": "
|
|
40
|
+
"@cliquify.me/types": "4.0.1"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"dev": "vite",
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Control, Rect, RectProps } from 'fabric';
|
|
2
|
-
import { IDisplay } from '@cliquify.me/types';
|
|
3
|
-
|
|
4
|
-
export interface CaptionsProps extends Pick<RectProps, "width" | "height" | "top" | "left"> {
|
|
5
|
-
id: string;
|
|
6
|
-
text: string;
|
|
7
|
-
tScale: number;
|
|
8
|
-
display: IDisplay;
|
|
9
|
-
}
|
|
10
|
-
declare class CaptionItem extends Rect {
|
|
11
|
-
static type: string;
|
|
12
|
-
isSelected: boolean;
|
|
13
|
-
text: string;
|
|
14
|
-
static createControls(): {
|
|
15
|
-
controls: Record<string, Control>;
|
|
16
|
-
};
|
|
17
|
-
static getDefaults(): Record<string, any>;
|
|
18
|
-
static ownDefaults: {
|
|
19
|
-
rx: number;
|
|
20
|
-
ry: number;
|
|
21
|
-
objectCaching: boolean;
|
|
22
|
-
borderColor: string;
|
|
23
|
-
stroke: string;
|
|
24
|
-
strokeWidth: number;
|
|
25
|
-
fill: string;
|
|
26
|
-
borderOpacityWhenMoving: number;
|
|
27
|
-
hoverCursor: string;
|
|
28
|
-
};
|
|
29
|
-
constructor(props: CaptionsProps);
|
|
30
|
-
setSelected(selected: boolean): void;
|
|
31
|
-
_render(ctx: CanvasRenderingContext2D): void;
|
|
32
|
-
updateSelected(ctx: CanvasRenderingContext2D): void;
|
|
33
|
-
}
|
|
34
|
-
export default CaptionItem;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { IDisplay } from '@cliquify.me/types';
|
|
2
|
-
import { Rect, RectProps } from 'fabric';
|
|
3
|
-
|
|
4
|
-
export interface CompositionProps extends Pick<RectProps, "width" | "height" | "top" | "left"> {
|
|
5
|
-
id: string;
|
|
6
|
-
tScale: number;
|
|
7
|
-
display: IDisplay;
|
|
8
|
-
duration: number;
|
|
9
|
-
}
|
|
10
|
-
declare class Composition extends Rect {
|
|
11
|
-
static type: string;
|
|
12
|
-
itemType: string;
|
|
13
|
-
isSelected: boolean;
|
|
14
|
-
static getDefaults(): Record<string, any>;
|
|
15
|
-
static createControls(): {
|
|
16
|
-
controls: Record<string, any>;
|
|
17
|
-
};
|
|
18
|
-
static ownDefaults: {
|
|
19
|
-
rx: number;
|
|
20
|
-
ry: number;
|
|
21
|
-
objectCaching: boolean;
|
|
22
|
-
borderColor: string;
|
|
23
|
-
stroke: string;
|
|
24
|
-
strokeWidth: number;
|
|
25
|
-
fill: string;
|
|
26
|
-
borderOpacityWhenMoving: number;
|
|
27
|
-
hoverCursor: string;
|
|
28
|
-
};
|
|
29
|
-
constructor(props: CompositionProps);
|
|
30
|
-
setSelected(selected: boolean): void;
|
|
31
|
-
_render(ctx: CanvasRenderingContext2D): void;
|
|
32
|
-
updateSelected(ctx: CanvasRenderingContext2D): void;
|
|
33
|
-
}
|
|
34
|
-
export default Composition;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Control, Rect, RectProps } from 'fabric';
|
|
2
|
-
import { IDisplay } from '@cliquify.me/types';
|
|
3
|
-
|
|
4
|
-
export interface IllustrationProps extends Pick<RectProps, "width" | "height" | "left" | "top"> {
|
|
5
|
-
id: string;
|
|
6
|
-
src: string;
|
|
7
|
-
tScale: number;
|
|
8
|
-
display: IDisplay;
|
|
9
|
-
svgString: string;
|
|
10
|
-
}
|
|
11
|
-
declare class Illustration extends Rect {
|
|
12
|
-
static type: string;
|
|
13
|
-
itemType: string;
|
|
14
|
-
src: string;
|
|
15
|
-
isSelected: boolean;
|
|
16
|
-
svgString: string;
|
|
17
|
-
static createControls(): {
|
|
18
|
-
controls: Record<string, Control>;
|
|
19
|
-
};
|
|
20
|
-
static getDefaults(): Record<string, any>;
|
|
21
|
-
static ownDefaults: {
|
|
22
|
-
rx: number;
|
|
23
|
-
ry: number;
|
|
24
|
-
objectCaching: boolean;
|
|
25
|
-
borderColor: string;
|
|
26
|
-
stroke: string;
|
|
27
|
-
strokeWidth: number;
|
|
28
|
-
fill: string;
|
|
29
|
-
borderOpacityWhenMoving: number;
|
|
30
|
-
hoverCursor: string;
|
|
31
|
-
svgString: string;
|
|
32
|
-
};
|
|
33
|
-
constructor(props: IllustrationProps);
|
|
34
|
-
setSelected(selected: boolean): void;
|
|
35
|
-
_render(ctx: CanvasRenderingContext2D): void;
|
|
36
|
-
updateSelected(ctx: CanvasRenderingContext2D): void;
|
|
37
|
-
setSrc(src: string): void;
|
|
38
|
-
}
|
|
39
|
-
export default Illustration;
|
package/dist/objects/image.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Control, Rect, RectProps } from 'fabric';
|
|
2
|
-
import { IDisplay } from '@cliquify.me/types';
|
|
3
|
-
|
|
4
|
-
export interface ImageProps extends Pick<RectProps, "width" | "height" | "left" | "top"> {
|
|
5
|
-
id: string;
|
|
6
|
-
src: string;
|
|
7
|
-
tScale: number;
|
|
8
|
-
display: IDisplay;
|
|
9
|
-
}
|
|
10
|
-
declare class Image extends Rect {
|
|
11
|
-
static type: string;
|
|
12
|
-
itemType: string;
|
|
13
|
-
src: string;
|
|
14
|
-
isSelected: boolean;
|
|
15
|
-
static createControls(): {
|
|
16
|
-
controls: Record<string, Control>;
|
|
17
|
-
};
|
|
18
|
-
static getDefaults(): Record<string, any>;
|
|
19
|
-
static ownDefaults: {
|
|
20
|
-
rx: number;
|
|
21
|
-
ry: number;
|
|
22
|
-
objectCaching: boolean;
|
|
23
|
-
borderColor: string;
|
|
24
|
-
stroke: string;
|
|
25
|
-
strokeWidth: number;
|
|
26
|
-
borderOpacityWhenMoving: number;
|
|
27
|
-
hoverCursor: string;
|
|
28
|
-
fill: string;
|
|
29
|
-
};
|
|
30
|
-
constructor(props: ImageProps);
|
|
31
|
-
_render(ctx: CanvasRenderingContext2D): void;
|
|
32
|
-
setSelected(selected: boolean): void;
|
|
33
|
-
updateSelected(ctx: CanvasRenderingContext2D): void;
|
|
34
|
-
setSrc(src: string): void;
|
|
35
|
-
}
|
|
36
|
-
export default Image;
|
package/dist/objects/shape.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Control, Rect, RectProps } from 'fabric';
|
|
2
|
-
import { IDisplay } from '@cliquify.me/types';
|
|
3
|
-
|
|
4
|
-
export interface ShapeProps extends Pick<RectProps, "width" | "height" | "left" | "top"> {
|
|
5
|
-
id: string;
|
|
6
|
-
src: string;
|
|
7
|
-
tScale: number;
|
|
8
|
-
display: IDisplay;
|
|
9
|
-
backgroundColorDiv: string;
|
|
10
|
-
}
|
|
11
|
-
declare class Shape extends Rect {
|
|
12
|
-
static type: string;
|
|
13
|
-
itemType: string;
|
|
14
|
-
src: string;
|
|
15
|
-
isSelected: boolean;
|
|
16
|
-
backgroundColorDiv: string;
|
|
17
|
-
static createControls(): {
|
|
18
|
-
controls: Record<string, Control>;
|
|
19
|
-
};
|
|
20
|
-
static getDefaults(): Record<string, any>;
|
|
21
|
-
static ownDefaults: {
|
|
22
|
-
rx: number;
|
|
23
|
-
ry: number;
|
|
24
|
-
objectCaching: boolean;
|
|
25
|
-
borderColor: string;
|
|
26
|
-
stroke: string;
|
|
27
|
-
strokeWidth: number;
|
|
28
|
-
fill: string;
|
|
29
|
-
borderOpacityWhenMoving: number;
|
|
30
|
-
hoverCursor: string;
|
|
31
|
-
backgroundColordDiv: string;
|
|
32
|
-
};
|
|
33
|
-
constructor(props: ShapeProps);
|
|
34
|
-
setSelected(selected: boolean): void;
|
|
35
|
-
_render(ctx: CanvasRenderingContext2D): void;
|
|
36
|
-
updateSelected(ctx: CanvasRenderingContext2D): void;
|
|
37
|
-
setSrc(src: string): void;
|
|
38
|
-
}
|
|
39
|
-
export default Shape;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Control, Rect, RectProps } from 'fabric';
|
|
2
|
-
import { IDisplay, ITrim } from '@cliquify.me/types';
|
|
3
|
-
|
|
4
|
-
export interface TemplateProps extends Pick<RectProps, "width" | "height" | "top" | "left"> {
|
|
5
|
-
id: string;
|
|
6
|
-
tScale: number;
|
|
7
|
-
display: IDisplay;
|
|
8
|
-
duration: number;
|
|
9
|
-
trim: ITrim;
|
|
10
|
-
}
|
|
11
|
-
declare class Template extends Rect {
|
|
12
|
-
static type: string;
|
|
13
|
-
itemType: string;
|
|
14
|
-
isSelected: boolean;
|
|
15
|
-
trim: ITrim;
|
|
16
|
-
static getDefaults(): Record<string, any>;
|
|
17
|
-
static createControls(): {
|
|
18
|
-
controls: Record<string, Control>;
|
|
19
|
-
};
|
|
20
|
-
static ownDefaults: {
|
|
21
|
-
rx: number;
|
|
22
|
-
ry: number;
|
|
23
|
-
objectCaching: boolean;
|
|
24
|
-
borderColor: string;
|
|
25
|
-
stroke: string;
|
|
26
|
-
strokeWidth: number;
|
|
27
|
-
fill: string;
|
|
28
|
-
borderOpacityWhenMoving: number;
|
|
29
|
-
hoverCursor: string;
|
|
30
|
-
};
|
|
31
|
-
constructor(props: TemplateProps);
|
|
32
|
-
setSelected(selected: boolean): void;
|
|
33
|
-
_render(ctx: CanvasRenderingContext2D): void;
|
|
34
|
-
updateSelected(ctx: CanvasRenderingContext2D): void;
|
|
35
|
-
}
|
|
36
|
-
export default Template;
|
package/dist/objects/video.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Control, Rect } from 'fabric';
|
|
2
|
-
import { IMetadata, ITrim } from '@cliquify.me/types';
|
|
3
|
-
|
|
4
|
-
interface IDisplay {
|
|
5
|
-
from: number;
|
|
6
|
-
to: number;
|
|
7
|
-
}
|
|
8
|
-
export interface VideoProps {
|
|
9
|
-
id: string;
|
|
10
|
-
width: number;
|
|
11
|
-
height?: number;
|
|
12
|
-
tScale: number;
|
|
13
|
-
fill: string;
|
|
14
|
-
resourceId: string;
|
|
15
|
-
src: string;
|
|
16
|
-
top?: number;
|
|
17
|
-
left?: number;
|
|
18
|
-
display: IDisplay;
|
|
19
|
-
trim: ITrim;
|
|
20
|
-
metadata?: Partial<IMetadata>;
|
|
21
|
-
duration: number;
|
|
22
|
-
}
|
|
23
|
-
declare class Video extends Rect {
|
|
24
|
-
static type: string;
|
|
25
|
-
id: string;
|
|
26
|
-
resourceId: string;
|
|
27
|
-
tScale: number;
|
|
28
|
-
isSelected: boolean;
|
|
29
|
-
display: IDisplay;
|
|
30
|
-
trim: ITrim;
|
|
31
|
-
duration: number;
|
|
32
|
-
src: string;
|
|
33
|
-
static createControls(): {
|
|
34
|
-
controls: Record<string, Control>;
|
|
35
|
-
};
|
|
36
|
-
constructor(options: VideoProps);
|
|
37
|
-
_render(ctx: CanvasRenderingContext2D): void;
|
|
38
|
-
setSelected(selected: boolean): void;
|
|
39
|
-
updateSelected(ctx: CanvasRenderingContext2D): void;
|
|
40
|
-
onResizeSnap(): void;
|
|
41
|
-
setSrc(src: string): void;
|
|
42
|
-
}
|
|
43
|
-
export default Video;
|