superfly-timeline
Advanced tools
Comparing version 8.1.0 to 8.1.1-nightly-20200911-125608-bfeed88.0
@@ -289,3 +289,3 @@ "use strict"; | ||
let hasParent = false; | ||
let referToParent = false; | ||
let startRefersToParent = false; | ||
if (obj.resolved.parentId) { | ||
@@ -298,3 +298,3 @@ hasParent = true; | ||
// Only use parent if the expression resolves to a number (ie doesn't contain any references) | ||
referToParent = true; | ||
startRefersToParent = true; | ||
} | ||
@@ -305,3 +305,3 @@ } | ||
directReferences = directReferences.concat(lookupStart.allReferences); | ||
if (referToParent) { | ||
if (startRefersToParent) { | ||
lookedupStarts = lib_1.applyParentInstances(parentInstances, lookedupStarts); | ||
@@ -346,2 +346,9 @@ } | ||
const endExpr = expression_1.interpretExpression(enable.end); | ||
let endRefersToParent = false; | ||
if (obj.resolved.parentId) { | ||
if (lib_1.isConstant(endExpr)) { | ||
// Only use parent if the expression resolves to a number (ie doesn't contain any references) | ||
endRefersToParent = true; | ||
} | ||
} | ||
// lookedupEnds will contain an inverted list of instances. Therefore .start means an end | ||
@@ -352,3 +359,3 @@ const lookupEnd = endExpr ? lookupExpression(resolvedTimeline, obj, endExpr, 'end') : null; | ||
directReferences = directReferences.concat(lookupEnd.allReferences); | ||
if (referToParent && lib_1.isConstant(endExpr)) { | ||
if (endRefersToParent) { | ||
lookedupEnds = lib_1.applyParentInstances(parentInstances, lookedupEnds); | ||
@@ -355,0 +362,0 @@ } |
{ | ||
"name": "superfly-timeline", | ||
"version": "8.1.0", | ||
"version": "8.1.1-nightly-20200911-125608-bfeed88.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 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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
269536
2734
1