superfly-timeline
Advanced tools
Comparing version 4.0.2 to 5.0.0
@@ -5,2 +5,17 @@ # Change Log | ||
<a name="5.0.0"></a> | ||
# [5.0.0](https://github.com/SuperFlyTV/supertimeline/compare/4.0.2...5.0.0) (2018-08-17) | ||
### Features | ||
* Major refactoring, switched out the iterative resolving for a nice recursive one ([13cbace](https://github.com/SuperFlyTV/supertimeline/commit/13cbace)) | ||
### BREAKING CHANGES | ||
* removed circular, iterative resolving. Might cause unexpected issues | ||
<a name="4.0.2"></a> | ||
@@ -7,0 +22,0 @@ ## [4.0.2](https://github.com/SuperFlyTV/supertimeline/compare/4.0.1...4.0.2) (2018-08-05) |
@@ -56,3 +56,3 @@ import { TriggerType, TraceLevel, EventType } from '../enums/enums'; | ||
resolved: ResolvedDetails; | ||
parent?: ObjectId; | ||
parent?: TimelineResolvedObject; | ||
} | ||
@@ -66,5 +66,5 @@ export interface ResolvedDetails { | ||
outerDuration?: Duration; | ||
parentStart?: StartTime; | ||
parentId?: ObjectId; | ||
disabled?: boolean; | ||
referralIndex?: number | null; | ||
referredObjectIds?: Array<ResolvedObjectId> | null; | ||
@@ -119,8 +119,7 @@ repeatingStartTime?: StartTime; | ||
} | ||
declare type WhosAskingTrace = Array<TimelineResolvedObject | TimelineResolvedKeyframe>; | ||
declare type WhosAskingTrace = Array<string>; | ||
declare type objAttributeFunction = (objId: string, hook: 'start' | 'end' | 'duration' | 'parentStart', whosAsking: WhosAskingTrace) => number | null; | ||
declare class Resolver { | ||
static setTraceLevel(levelName: string | TraceLevel): void; | ||
static getTraceLevel(): TraceLevel; | ||
static setCircularLimit(limit: number): void; | ||
static getCircularLimit(): number; | ||
static getState(data: UnresolvedTimeline | ResolvedTimeline, time: SomeTime, externalFunctions?: ExternalFunctions): TimelineState; | ||
@@ -131,3 +130,3 @@ static getNextEvents(data: ResolvedTimeline, time: SomeTime, count?: number): TimelineEvent[]; | ||
static interpretExpression(strOrExpr: string | number | Expression, isLogical?: boolean): string | number | ExpressionObj | null; | ||
static resolveExpression(strOrExpr: string | number | Expression, resolvedObjects?: ResolvedObjectsStore, ctx?: ResolveExpressionContext, whosAsking?: WhosAskingTrace): StartTime; | ||
static resolveExpression(strOrExpr: string | number | Expression, getObjectAttribute?: objAttributeFunction): StartTime; | ||
static resolveLogicalExpression(expressionOrString: Expression | null, obj?: TimelineResolvedObject, returnExpl?: boolean, currentState?: TimelineState): boolean; | ||
@@ -137,13 +136,2 @@ static developTimelineAroundTime(tl: ResolvedTimeline, time: SomeTime): DevelopedTimeline; | ||
} | ||
export interface ResolveExpressionContext { | ||
touchedObjectExpressions: { | ||
[expression: string]: any; | ||
}; | ||
touchedObjectIDs: TouchedObjectIds; | ||
referralIndex: number; | ||
} | ||
declare type TouchedObjectIds = Array<{ | ||
id: string; | ||
hook: string; | ||
}>; | ||
export { Resolver }; |
{ | ||
"name": "superfly-timeline", | ||
"version": "4.0.2", | ||
"version": "5.0.0", | ||
"description": "A collection of rules as well as a resolver for placing objects on a virtual timeline.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
178188
1739