@cliquify.me/timeline 3.1.24 → 4.0.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/dist/index.es.js +2365 -2586
- package/dist/index.umd.js +55 -55
- package/dist/mixins/track-items.d.ts +0 -1
- package/dist/objects/audio.d.ts +1 -0
- package/dist/objects/custom.d.ts +44 -0
- package/dist/objects/index.d.ts +1 -0
- package/dist/objects/video.d.ts +1 -0
- package/dist/timeline.d.ts +0 -1
- package/dist/utils/load-object.d.ts +6 -2
- package/package.json +2 -2
|
@@ -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/audio.d.ts
CHANGED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Control, Rect, RectProps } from 'fabric';
|
|
2
|
+
import { IDisplay, ITrim } from '@cliquify.me/types';
|
|
3
|
+
|
|
4
|
+
export interface CustomProps extends Pick<RectProps, "width" | "height" | "left" | "top"> {
|
|
5
|
+
id: string;
|
|
6
|
+
tScale: number;
|
|
7
|
+
display: IDisplay;
|
|
8
|
+
duration: number;
|
|
9
|
+
backgroundColorDiv: string;
|
|
10
|
+
srcs?: string[];
|
|
11
|
+
trim?: ITrim;
|
|
12
|
+
}
|
|
13
|
+
declare class Custom extends Rect {
|
|
14
|
+
static type: string;
|
|
15
|
+
itemType: string;
|
|
16
|
+
src: string;
|
|
17
|
+
isSelected: boolean;
|
|
18
|
+
backgroundColorDiv: string;
|
|
19
|
+
duration: number;
|
|
20
|
+
srcs?: string[];
|
|
21
|
+
trim?: ITrim;
|
|
22
|
+
static createControls(): {
|
|
23
|
+
controls: Record<string, Control>;
|
|
24
|
+
};
|
|
25
|
+
static getDefaults(): Record<string, any>;
|
|
26
|
+
static ownDefaults: {
|
|
27
|
+
rx: number;
|
|
28
|
+
ry: number;
|
|
29
|
+
objectCaching: boolean;
|
|
30
|
+
borderColor: string;
|
|
31
|
+
stroke: string;
|
|
32
|
+
strokeWidth: number;
|
|
33
|
+
fill: string;
|
|
34
|
+
borderOpacityWhenMoving: number;
|
|
35
|
+
hoverCursor: string;
|
|
36
|
+
backgroundColordDiv: string;
|
|
37
|
+
};
|
|
38
|
+
constructor(props: CustomProps);
|
|
39
|
+
setSelected(selected: boolean): void;
|
|
40
|
+
_render(ctx: CanvasRenderingContext2D): void;
|
|
41
|
+
updateSelected(ctx: CanvasRenderingContext2D): void;
|
|
42
|
+
setSrc(src: string): void;
|
|
43
|
+
}
|
|
44
|
+
export default Custom;
|
package/dist/objects/index.d.ts
CHANGED
|
@@ -12,3 +12,4 @@ export { default as Illustration, type IllustrationProps } from './illustration'
|
|
|
12
12
|
export { default as Shape, type ShapeProps } from './shape';
|
|
13
13
|
export { default as Composition, type CompositionProps } from './composition';
|
|
14
14
|
export { default as PreviewTrackItem, type PreviewTrackItemProps } from './drag-track-item';
|
|
15
|
+
export { default as Custom, type CustomProps } from './custom';
|
package/dist/objects/video.d.ts
CHANGED
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,4 +1,4 @@
|
|
|
1
|
-
import { Audio, Caption, Image, Text, Video } from '../objects';
|
|
1
|
+
import { Audio, Caption, Custom, Image, Text, Video } from '../objects';
|
|
2
2
|
import { IAudio, IDisplay, ITextDetails, ITrackItem, ITrackItemAndDetails, ITrim, IVideo } from '@cliquify.me/types';
|
|
3
3
|
import { default as Template } from '../objects/template';
|
|
4
4
|
import { default as Composition } from '../objects/composition';
|
|
@@ -54,7 +54,11 @@ export declare const loadShapeObject: (item: ITrackItemAndDetails, options: {
|
|
|
54
54
|
tScale: number;
|
|
55
55
|
sizesMap: Record<string, number>;
|
|
56
56
|
}) => Shape;
|
|
57
|
+
export declare const loadCustomObject: (item: ITrackItemAndDetails, options: {
|
|
58
|
+
tScale: number;
|
|
59
|
+
sizesMap: Record<string, number>;
|
|
60
|
+
}) => Custom;
|
|
57
61
|
export declare const loadMediaObject: (item: ITrackItemAndDetails, options: {
|
|
58
62
|
tScale: number;
|
|
59
63
|
sizesMap: Record<string, number>;
|
|
60
|
-
}) => Image | Video | Audio | Text | Caption | Template | Illustration | Shape | Composition | undefined;
|
|
64
|
+
}) => Custom | Image | Video | Audio | Text | Caption | Template | Illustration | Shape | Composition | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cliquify.me/timeline",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
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.0"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"dev": "vite",
|