d3-transition
Advanced tools
Comparing version 0.0.5 to 0.0.6
11
index.js
@@ -1,5 +0,8 @@ | ||
import transition from "./src/transition"; | ||
import {selection} from "d3-selection"; | ||
import selection_interrupt from "./src/selection-interrupt"; | ||
import selection_transition from "./src/selection-transition"; | ||
export { | ||
transition | ||
}; | ||
selection.prototype.interrupt = selection_interrupt; | ||
selection.prototype.transition = selection_transition; | ||
export {default as transition} from "./src/transition"; |
{ | ||
"name": "d3-transition", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Animated transitions for D3 selections.", | ||
@@ -17,3 +17,3 @@ "keywords": [ | ||
}, | ||
"main": "build/transition.cjs", | ||
"main": "build/d3-transition.js", | ||
"jsnext:main": "index", | ||
@@ -25,14 +25,14 @@ "repository": { | ||
"scripts": { | ||
"pretest": "mkdir -p build && d3-bundler -x -f cjs -o build/transition.cjs.js", | ||
"pretest": "mkdir -p build && node -e 'process.stdout.write(\"var version = \\\"\" + require(\"./package.json\").version + \"\\\"; export * from \\\"../index\\\"; export {version};\");' > build/bundle.js && rollup -f umd -g d3-ease:d3_ease,d3-selection:d3_selection,d3-timer:d3_timer -u d3-transition -n d3_transition -o build/d3-transition.js -- build/bundle.js", | ||
"test": "faucet `find test -name '*-test.js'`", | ||
"prepublish": "npm run test && d3-bundler -n transition -o build/transition.js && uglifyjs build/transition.js -c -m -o build/transition.min.js && rm -f build/transition.zip && zip -j build/transition.zip -- LICENSE README.md build/transition.js build/transition.min.js" | ||
"prepublish": "npm run test && uglifyjs build/d3-transition.js -c -m -o build/d3-transition.min.js && rm -f build/d3-transition.zip && zip -j build/d3-transition.zip -- LICENSE README.md build/d3-transition.js build/d3-transition.min.js" | ||
}, | ||
"dependencies": { | ||
"d3-ease": "~0.1.4", | ||
"d3-selection": "~0.4.10", | ||
"d3-timer": "~0.0.5" | ||
"d3-ease": "~0.1.5", | ||
"d3-selection": "~0.4.12", | ||
"d3-timer": "~0.0.6" | ||
}, | ||
"devDependencies": { | ||
"d3-bundler": "~0.4.0", | ||
"faucet": "0.0", | ||
"rollup": "0.20.5", | ||
"jsdom": "7", | ||
@@ -39,0 +39,0 @@ "tape": "4", |
import {selection} from "d3-selection"; | ||
import {timer} from "d3-timer"; | ||
import selection_interrupt from "./selection-interrupt"; | ||
import selection_transition from "./selection-transition"; | ||
import transition_ease from "./transition-ease"; | ||
var maxId = 0, | ||
proto = selection.prototype; | ||
var maxId = 0; | ||
@@ -22,7 +19,4 @@ export function Transition(root, depth, key, id) { | ||
proto.interrupt = selection_interrupt; | ||
proto.transition = selection_transition; | ||
Transition.prototype = transition.prototype = { | ||
each: proto.each, | ||
each: selection.prototype.each, | ||
ease: transition_ease | ||
@@ -35,3 +29,2 @@ }; | ||
if (lock.scheduled(id)) return; | ||
}; | ||
@@ -38,0 +31,0 @@ } |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
9589
116
2
Updatedd3-ease@~0.1.5
Updatedd3-selection@~0.4.12
Updatedd3-timer@~0.0.6