d3-selection
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -0,1 +1,2 @@ | ||
export {default as create} from "./src/create"; | ||
export {default as creator} from "./src/creator"; | ||
@@ -2,0 +3,0 @@ export {default as local} from "./src/local"; |
{ | ||
"name": "d3-selection", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Data-driven DOM manipulation: select elements and join them to data.", | ||
@@ -18,3 +18,3 @@ "keywords": [ | ||
}, | ||
"main": "build/d3-selection.js", | ||
"main": "dist/d3-selection.js", | ||
"module": "index", | ||
@@ -27,15 +27,15 @@ "jsnext:main": "index", | ||
"scripts": { | ||
"pretest": "rm -rf build && mkdir build && rollup --banner \"$(preamble)\" -f umd -n d3 -o build/d3-selection.js -- index.js", | ||
"pretest": "rm -rf dist && mkdir dist && rollup -c --banner \"$(preamble)\"", | ||
"test": "tape 'test/**/*-test.js' && eslint index.js src", | ||
"prepublish": "npm run test && uglifyjs --preamble \"$(preamble)\" build/d3-selection.js -c -m -o build/d3-selection.min.js", | ||
"postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3-selection/build/d3-selection.js d3-selection.v1.js && cp ../d3-selection/build/d3-selection.min.js d3-selection.v1.min.js && git add d3-selection.v1.js d3-selection.v1.min.js && git commit -m \"d3-selection ${npm_package_version}\" && git push && cd - && zip -j build/d3-selection.zip -- LICENSE README.md build/d3-selection.js build/d3-selection.min.js" | ||
"prepublishOnly": "npm run test && uglifyjs -b beautify=false,preamble=\"'$(preamble)'\" dist/d3-selection.js -c -m -o dist/d3-selection.min.js", | ||
"postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3-selection/dist/d3-selection.js d3-selection.v1.js && cp ../d3-selection/dist/d3-selection.min.js d3-selection.v1.min.js && git add d3-selection.v1.js d3-selection.v1.min.js && git commit -m \"d3-selection ${npm_package_version}\" && git push && cd - && zip -j dist/d3-selection.zip -- LICENSE README.md dist/d3-selection.js dist/d3-selection.min.js" | ||
}, | ||
"devDependencies": { | ||
"eslint": "3", | ||
"eslint": "4", | ||
"jsdom": "11", | ||
"package-preamble": "0.1", | ||
"rollup": "0.41", | ||
"rollup": "0.52", | ||
"tape": "4", | ||
"uglify-js": "^2.8.11" | ||
"uglify-js": "3.2" | ||
} | ||
} |
@@ -389,2 +389,12 @@ # d3-selection | ||
<a name="selection_clone" href="#selection_clone">#</a> <i>selection</i>.<b>clone</b>([<i>deep</i>]) [<>](https://github.com/d3/d3-selection/blob/master/src/selection/clone.js "Source") | ||
Inserts clones the selected elements immediately following the selected elements. Equivalent to: | ||
```js | ||
selection.select(function() { | ||
return this.parentNode.insertBefore(this.cloneNode(deep), this.nextSibling); | ||
}); | ||
``` | ||
<a name="selection_sort" href="#selection_sort">#</a> <i>selection</i>.<b>sort</b>(<i>compare</i>) [<>](https://github.com/d3/d3-selection/blob/master/src/selection/sort.js "Source") | ||
@@ -422,2 +432,6 @@ | ||
<a name="create" href="#create">#</a> d3.<b>create</b>(<i>name</i>) [<>](https://github.com/d3/d3-selection/blob/master/src/create.js "Source") | ||
Given the specified element *name*, returns a single-element selection containing a detached element of the given name in the current document. | ||
<a name="creator" href="#creator">#</a> d3.<b>creator</b>(<i>name</i>) [<>](https://github.com/d3/d3-selection/blob/master/src/creator.js "Source") | ||
@@ -424,0 +438,0 @@ |
@@ -27,2 +27,3 @@ import selection_select from "./select"; | ||
import selection_remove from "./remove"; | ||
import selection_clone from "./clone"; | ||
import selection_datum from "./datum"; | ||
@@ -71,2 +72,3 @@ import selection_on from "./on"; | ||
remove: selection_remove, | ||
clone: selection_clone, | ||
datum: selection_datum, | ||
@@ -73,0 +75,0 @@ on: selection_on, |
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
131426
57
1742
817