superfly-timeline
Advanced tools
Comparing version 6.0.1 to 6.0.2
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="6.0.2"></a> | ||
## [6.0.2](https://github.com/SuperFlyTV/supertimeline/compare/6.0.1...6.0.2) (2018-10-30) | ||
### Bug Fixes | ||
* Allow string llayer ids in logical triggers ([cedd170](https://github.com/SuperFlyTV/supertimeline/commit/cedd170)) | ||
<a name="6.0.1"></a> | ||
@@ -7,0 +17,0 @@ ## [6.0.1](https://github.com/SuperFlyTV/supertimeline/compare/5.0.6...6.0.1) (2018-09-13) |
{ | ||
"name": "superfly-timeline", | ||
"version": "6.0.1", | ||
"version": "6.0.2", | ||
"description": "A collection of rules as well as a resolver for placing objects on a virtual timeline.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -6,4 +6,5 @@ # SuperFly-Timeline | ||
Licence: MIT | ||
It is used in the [**Sofie** TV News Studio Automation System](https://github.com/nrkno/Sofie-TV-automation/). | ||
## Installation | ||
@@ -30,3 +31,3 @@ ### NodeJS | ||
trigger: { | ||
type: Timeline.enums.TriggerType.TIME_ABSOLUTE, | ||
type: Timeline.Enums.TriggerType.TIME_ABSOLUTE, | ||
value: Date.now()/1000 - 10 // 10 seconds ago | ||
@@ -43,3 +44,3 @@ }, | ||
trigger: { | ||
type: Timeline.enums.TriggerType.TIME_RELATIVE, | ||
type: Timeline.Enums.TriggerType.TIME_RELATIVE, | ||
value: '#obj0.end' | ||
@@ -52,6 +53,6 @@ }, | ||
// By resolving the timeline, the times of the objects are calculated: | ||
var tl = Timeline.resolver.getTimelineInWindow(myObjects); | ||
var tl = Timeline.Resolver.getTimelineInWindow(myObjects); | ||
// To see whats on right now, we fetch the State: | ||
var stateNow = Timeline.resolver.getState(tl, Date.now()/1000); | ||
var stateNow = Timeline.Resolver.getState(tl, Date.now()/1000); | ||
// | ||
@@ -84,3 +85,3 @@ /* | ||
// To see what will be on in a minute, we fetch the state for that time: | ||
var stateInAMinute = Timeline.resolver.getState(tl, Date.now()/1000 + 60); | ||
var stateInAMinute = Timeline.Resolver.getState(tl, Date.now()/1000 + 60); | ||
/* | ||
@@ -188,3 +189,3 @@ stateNow = { | ||
| id | The id must be unique | 'obj0' | | ||
| trigger.type | See "Trigger types" above | enums.TriggerType.TIME_ABSOLUTE, TIME_RELATIVE, LOGICAL | | ||
| trigger.type | See "Trigger types" above | Enums.TriggerType.TIME_ABSOLUTE, TIME_RELATIVE, LOGICAL | | ||
| trigger.value | See "Trigger types" above | For TIME_ABSOLUTE: Date.now()/1000, TIME_RELATIVE: "#obj1.end", LOGICAL: "#obj1" | | ||
@@ -210,3 +211,3 @@ | duration | The duration of the object (0 is infinite) | 60 | | ||
trigger: { | ||
type: Timeline.enums.TriggerType.TIME_ABSOLUTE, | ||
type: Timeline.Enums.TriggerType.TIME_ABSOLUTE, | ||
value: 1000, | ||
@@ -227,3 +228,3 @@ }, | ||
trigger: { | ||
type: Timeline.enums.TriggerType.TIME_ABSOLUTE, | ||
type: Timeline.Enums.TriggerType.TIME_ABSOLUTE, | ||
value: 5 // Abslute time means "relative to parent start time" for a keyframe | ||
@@ -230,0 +231,0 @@ }, |
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
187020
269
1831