eligius 1.0.12 → 1.0.14
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/action/action.d.ts +2 -2
- package/dist/action/timeline-action.d.ts +2 -2
- package/dist/action/types.d.ts +2 -2
- package/dist/eligius-engine.d.ts +9 -1
- package/dist/eligius.cjs.development.js +358 -212
- package/dist/eligius.cjs.development.js.map +1 -1
- package/dist/eligius.cjs.production.min.js +1 -1
- package/dist/eligius.cjs.production.min.js.map +1 -1
- package/dist/eligius.esm.js +358 -212
- package/dist/eligius.esm.js.map +1 -1
- package/dist/operation/end-action.d.ts +4 -0
- package/dist/operation/get-controller-instance.d.ts +2 -2
- package/dist/operation/helper/get-property-chain-value.d.ts +24 -0
- package/dist/operation/helper/resolve-operation-or-global-data-property-chain.d.ts +13 -0
- package/dist/operation/helper/resolve-property-chain.d.ts +23 -0
- package/dist/operation/helper/resolve-property-values.d.ts +1 -1
- package/dist/operation/log.d.ts +2 -2
- package/dist/operation/math.d.ts +1 -1
- package/dist/operation/set-style.d.ts +2 -3
- package/dist/operation/types.d.ts +1 -1
- package/dist/timelineproviders/jwplayer-timeline-provider.d.ts +2 -2
- package/dist/timelineproviders/request-animation-frame-timeline-provider.d.ts +2 -1
- package/dist/timelineproviders/types.d.ts +1 -1
- package/dist/util/guards/is-function.d.ts +1 -0
- package/dist/util/guards/is-object.d.ts +1 -0
- package/dist/util/guards/is-promise.d.ts +1 -0
- package/dist/util/guards/is-string.d.ts +1 -0
- package/package.json +5 -5
- package/dist/action/is-promise.d.ts +0 -1
- package/dist/operation/helper/extract-operation-data-argument-values.d.ts +0 -1
- package/dist/operation/helper/get-nested-property-value.d.ts +0 -1
- package/dist/operation/helper/get-nested-value.d.ts +0 -1
package/dist/action/action.d.ts
CHANGED
|
@@ -8,6 +8,6 @@ export declare class Action implements IAction {
|
|
|
8
8
|
protected eventbus: IEventbus;
|
|
9
9
|
id: string;
|
|
10
10
|
constructor(name: string, startOperations: IResolvedOperation[], eventbus: IEventbus);
|
|
11
|
-
start(initOperationData?: TOperationData): Promise<TOperationData>;
|
|
12
|
-
executeOperation(operations: IResolvedOperation[], idx: number, resolve: (value?: any | PromiseLike<any>) => void, reject: (reason?: any) => void, previousOperationData:
|
|
11
|
+
start(initOperationData?: TOperationData): Promise<TOperationData | undefined>;
|
|
12
|
+
executeOperation(operations: IResolvedOperation[], idx: number, resolve: (value?: any | PromiseLike<any>) => void, reject: (reason?: any) => void, previousOperationData: TOperationData | undefined, context: IOperationContext): void;
|
|
13
13
|
}
|
|
@@ -7,6 +7,6 @@ export declare class TimelineAction extends EndableAction {
|
|
|
7
7
|
duration: IStrictDuration;
|
|
8
8
|
active: boolean;
|
|
9
9
|
constructor(name: string, startOperations: IResolvedOperation[], endOperations: IResolvedOperation[], duration: IStrictDuration, eventBus: IEventbus);
|
|
10
|
-
start(initOperationData
|
|
11
|
-
end(initOperationData: TOperationData): Promise<TOperationData>;
|
|
10
|
+
start(initOperationData?: TOperationData): Promise<TOperationData | undefined>;
|
|
11
|
+
end(initOperationData: TOperationData): Promise<TOperationData | undefined>;
|
|
12
12
|
}
|
package/dist/action/types.d.ts
CHANGED
|
@@ -5,11 +5,11 @@ export interface IAction {
|
|
|
5
5
|
id: string;
|
|
6
6
|
name: string;
|
|
7
7
|
startOperations: IResolvedOperation[];
|
|
8
|
-
start(initOperationData?: TOperationData): Promise<TOperationData>;
|
|
8
|
+
start(initOperationData?: TOperationData): Promise<TOperationData | undefined>;
|
|
9
9
|
}
|
|
10
10
|
export interface IEndableAction extends IAction {
|
|
11
11
|
endOperations: IResolvedOperation[];
|
|
12
|
-
end(initOperationData?: TOperationData): Promise<TOperationData>;
|
|
12
|
+
end(initOperationData?: TOperationData): Promise<TOperationData | undefined>;
|
|
13
13
|
}
|
|
14
14
|
export interface ITimelineAction extends IEndableAction {
|
|
15
15
|
active: boolean;
|
package/dist/eligius-engine.d.ts
CHANGED
|
@@ -38,7 +38,8 @@ export declare class EligiusEngine implements IEligiusEngine {
|
|
|
38
38
|
private _addEventListener;
|
|
39
39
|
private _addInitialisationListeners;
|
|
40
40
|
private _createTimelineLookup;
|
|
41
|
-
private
|
|
41
|
+
private _addTimelineActionStart;
|
|
42
|
+
private _addTimelineActionEnd;
|
|
42
43
|
private _initializeUriLookup;
|
|
43
44
|
private _initializeTimelinePosition;
|
|
44
45
|
private _executeActions;
|
|
@@ -46,6 +47,13 @@ export declare class EligiusEngine implements IEligiusEngine {
|
|
|
46
47
|
private _handleRequestTimelineUri;
|
|
47
48
|
private _cleanUpTimeline;
|
|
48
49
|
private _executeStartActions;
|
|
50
|
+
/**
|
|
51
|
+
* Gets all of the inactive actions whose duration falls within the given timeline position.
|
|
52
|
+
*
|
|
53
|
+
* @param position the given position
|
|
54
|
+
* @param actions all of the relevant actions
|
|
55
|
+
* @returns
|
|
56
|
+
*/
|
|
49
57
|
private _getActionsForPosition;
|
|
50
58
|
private _getActiveActions;
|
|
51
59
|
private _executeRelevantActions;
|