@elserlabs/timeline 0.0.2 → 0.0.3
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 +2694 -2594
- package/dist/index.umd.js +64 -58
- package/dist/mixins/track-items.d.ts +1 -1
- package/dist/mixins/tracks.d.ts +1 -1
- package/dist/objects/helper.d.ts +1 -1
- package/dist/objects/placeholder.d.ts +1 -1
- package/dist/objects/resizable.d.ts +1 -1
- package/dist/objects/track.d.ts +1 -1
- package/dist/objects/trimmable.d.ts +1 -1
- package/dist/timeline.d.ts +1 -1
- package/dist/utils/array.d.ts +1 -1
- package/dist/utils/canvas.d.ts +1 -1
- package/dist/utils/group-by-transition.d.ts +1 -1
- package/dist/utils/group-items.d.ts +1 -1
- package/dist/utils/item.d.ts +1 -1
- package/dist/utils/load-object.d.ts +1 -1
- package/dist/utils/timeline.d.ts +1 -1
- package/package.json +6 -6
- package/src/index.ts +0 -18
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FabricObject } from 'fabric';
|
|
2
2
|
import { default as Timeline } from '../timeline';
|
|
3
|
-
import { ITrackItemAndDetails } from '@
|
|
3
|
+
import { ITrackItemAndDetails } from '@elserlabs/types';
|
|
4
4
|
|
|
5
5
|
declare class TrackItemsMixin {
|
|
6
6
|
addTrackItem(this: Timeline, trackItem: ITrackItemAndDetails): void;
|
package/dist/mixins/tracks.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as Timeline } from '../timeline';
|
|
2
|
-
import { ITrackItem } from '@
|
|
2
|
+
import { ITrackItem } from '@elserlabs/types';
|
|
3
3
|
|
|
4
4
|
declare class TracksMixin {
|
|
5
5
|
findOrCreateTrack(this: Timeline, trackItemData: ITrackItem, { trackId, trackIndex }: {
|
package/dist/objects/helper.d.ts
CHANGED
package/dist/objects/track.d.ts
CHANGED
package/dist/timeline.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { default as CanvasMixin } from './mixins/canvas';
|
|
|
3
3
|
import { default as TrackItemsMixin } from './mixins/track-items';
|
|
4
4
|
import { default as TracksMixin } from './mixins/tracks';
|
|
5
5
|
import { default as TransitionsMixin } from './mixins/transitions';
|
|
6
|
-
import { ITimelineScaleState, ITrack, ITrackItem, ITransition, IStateManager, IUpdateStateOptions, CanvasSpacing } from '@
|
|
6
|
+
import { ITimelineScaleState, ITrack, ITrackItem, ITransition, IStateManager, IUpdateStateOptions, CanvasSpacing } from '@elserlabs/types';
|
|
7
7
|
|
|
8
8
|
interface Bounding {
|
|
9
9
|
width: number;
|
package/dist/utils/array.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ITrack } from '@
|
|
1
|
+
import { ITrack } from '@elserlabs/types';
|
|
2
2
|
|
|
3
3
|
export declare function findRelativePosition(arr: number[], referenceValue: number, targetValue: number): number | null;
|
|
4
4
|
export declare function createCombinedTracksArray(refTrack: ITrack, newTracks: (ITrack & {
|
package/dist/utils/canvas.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Canvas, FabricObject, TPointerEvent } from 'fabric';
|
|
2
|
-
import { CanvasSpacing } from '@
|
|
2
|
+
import { CanvasSpacing } from '@elserlabs/types';
|
|
3
3
|
|
|
4
4
|
export declare const clearPlaceholderObjects: (canvas: Canvas, placeholderMovingObjects: FabricObject[]) => void;
|
|
5
5
|
export declare const clearTrackHelperGuides: (allObjects: FabricObject[]) => void;
|
package/dist/utils/item.d.ts
CHANGED
package/dist/utils/timeline.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ITrackItem } from '@
|
|
1
|
+
import { ITrackItem } from '@elserlabs/types';
|
|
2
2
|
|
|
3
3
|
export declare function timeMsToUnits(timeMs: number, zoom?: number, playbackRate?: number): number;
|
|
4
4
|
export declare function unitsToTimeMs(units: number, zoom?: number, playbackRate?: number): number;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elserlabs/timeline",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
7
7
|
],
|
|
8
|
-
"main": "
|
|
9
|
-
"module": "
|
|
10
|
-
"types": "
|
|
8
|
+
"main": "./dist/index.umd.js",
|
|
9
|
+
"module": "./dist/index.es.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"@types/lodash-es": "^4.17.12",
|
|
13
13
|
"@types/node": "^20.11.24",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@types/lodash-es": "^4.17.12",
|
|
29
|
-
"@elserlabs/events": "0.0.
|
|
30
|
-
"@elserlabs/types": "0.0.
|
|
29
|
+
"@elserlabs/events": "0.0.3",
|
|
30
|
+
"@elserlabs/types": "0.0.3"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
package/src/index.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export { drawVerticalLine } from "./controls/draw";
|
|
2
|
-
export * from "./objects";
|
|
3
|
-
export { default } from "./timeline";
|
|
4
|
-
export * from "./utils";
|
|
5
|
-
export * from "./constants";
|
|
6
|
-
export * from "./resize";
|
|
7
|
-
export * from "./global";
|
|
8
|
-
export * from "./timeline";
|
|
9
|
-
export {
|
|
10
|
-
FabricObject,
|
|
11
|
-
Control,
|
|
12
|
-
classRegistry,
|
|
13
|
-
Rect,
|
|
14
|
-
util,
|
|
15
|
-
controlsUtils,
|
|
16
|
-
Pattern
|
|
17
|
-
} from "fabric";
|
|
18
|
-
export type { TransformActionHandler } from "fabric";
|