Comparing version 0.4.0 to 0.4.1
{ | ||
"name": "fauna", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Generate and render animated L-Systems", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -50,9 +50,9 @@ const xml = require('xml'); | ||
const valuesPath = `${fromPath};${toPath};${fromPath};`; | ||
return [{animate: {_attr:{ | ||
return [{_attr:{ | ||
attributeName: 'd', | ||
begin: '0s', | ||
dur: duration, | ||
values: valuesPath, | ||
repeatCount: 'indefinite' | ||
}}}]; | ||
dur: duration + 's', | ||
repeatCount: 'indefinite', | ||
values: valuesPath | ||
}}]; | ||
} | ||
@@ -94,2 +94,3 @@ | ||
const toStack = stacks[1]; | ||
const toPath = pathString(toStack); | ||
const animateEl = animateElement(fromPath, toPath, 10); | ||
@@ -96,0 +97,0 @@ animateEls.push(animateEl); |
@@ -79,9 +79,9 @@ const expect = require('chai').expect; | ||
const duration = 20; | ||
const expected = [{animate: {_attr:{ | ||
const expected = [{_attr:{ | ||
attributeName: 'd', | ||
begin: '0s', | ||
dur: 20, | ||
dur: '20s', | ||
values: '1 2 1;3 4 3;1 2 1;', | ||
repeatCount: 'indefinite' | ||
}}}]; | ||
}}]; | ||
const actual = animateElement(fromPath, toPath, duration); | ||
@@ -88,0 +88,0 @@ expect(actual).to.be.deep.equal(expected); |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
28651
447
0