├── .eslintrc.json ├── .github ├── eslint.json └── workflows │ └── node.js.yml ├── .gitignore ├── LICENSE ├── README.md ├── package.json ├── rollup.config.js ├── src ├── array.js ├── constant.js ├── create.js ├── creator.js ├── identity.js ├── index.js ├── local.js ├── matcher.js ├── namespace.js ├── namespaces.js ├── pointer.js ├── pointers.js ├── select.js ├── selectAll.js ├── selection │ ├── append.js │ ├── attr.js │ ├── call.js │ ├── classed.js │ ├── clone.js │ ├── data.js │ ├── datum.js │ ├── dispatch.js │ ├── each.js │ ├── empty.js │ ├── enter.js │ ├── exit.js │ ├── filter.js │ ├── html.js │ ├── index.js │ ├── insert.js │ ├── iterator.js │ ├── join.js │ ├── lower.js │ ├── merge.js │ ├── node.js │ ├── nodes.js │ ├── on.js │ ├── order.js │ ├── property.js │ ├── raise.js │ ├── remove.js │ ├── select.js │ ├── selectAll.js │ ├── selectChild.js │ ├── selectChildren.js │ ├── size.js │ ├── sort.js │ ├── sparse.js │ ├── style.js │ └── text.js ├── selector.js ├── selectorAll.js ├── sourceEvent.js └── window.js ├── test ├── .eslintrc.json ├── asserts.js ├── create-test.js ├── creator-test.js ├── jsdom.js ├── matcher-test.js ├── namespace-test.js ├── namespaces-test.js ├── pointer-test.js ├── select-test.js ├── selectAll-test.js ├── selection │ ├── append-test.js │ ├── attr-test.js │ ├── call-test.js │ ├── classed-test.js │ ├── data-test.js │ ├── datum-test.js │ ├── dispatch-test.js │ ├── each-test.js │ ├── empty-test.js │ ├── enter-test.js │ ├── exit-test.js │ ├── filter-test.js │ ├── html-test.js │ ├── index-test.js │ ├── insert-test.js │ ├── iterator-test.js │ ├── join-test.js │ ├── merge-test.js │ ├── node-test.js │ ├── nodes-test.js │ ├── on-test.js │ ├── order-test.js │ ├── property-test.js │ ├── remove-test.js │ ├── select-test.js │ ├── selectAll-test.js │ ├── selectChildren-test.js │ ├── size-test.js │ ├── sort-test.js │ ├── style-test.js │ └── text-test.js ├── selector-test.js ├── selectorAll-test.js └── window-test.js └── yarn.lock /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/eslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/.github/eslint.json -------------------------------------------------------------------------------- /.github/workflows/node.js.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/.github/workflows/node.js.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.sublime-workspace 2 | .DS_Store 3 | dist/ 4 | node_modules 5 | npm-debug.log 6 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/package.json -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/rollup.config.js -------------------------------------------------------------------------------- /src/array.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/array.js -------------------------------------------------------------------------------- /src/constant.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/constant.js -------------------------------------------------------------------------------- /src/create.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/create.js -------------------------------------------------------------------------------- /src/creator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/creator.js -------------------------------------------------------------------------------- /src/identity.js: -------------------------------------------------------------------------------- 1 | export default function(x) { 2 | return x; 3 | } 4 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/index.js -------------------------------------------------------------------------------- /src/local.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/local.js -------------------------------------------------------------------------------- /src/matcher.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/matcher.js -------------------------------------------------------------------------------- /src/namespace.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/namespace.js -------------------------------------------------------------------------------- /src/namespaces.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/namespaces.js -------------------------------------------------------------------------------- /src/pointer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/pointer.js -------------------------------------------------------------------------------- /src/pointers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/pointers.js -------------------------------------------------------------------------------- /src/select.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/select.js -------------------------------------------------------------------------------- /src/selectAll.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selectAll.js -------------------------------------------------------------------------------- /src/selection/append.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/append.js -------------------------------------------------------------------------------- /src/selection/attr.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/attr.js -------------------------------------------------------------------------------- /src/selection/call.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/call.js -------------------------------------------------------------------------------- /src/selection/classed.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/classed.js -------------------------------------------------------------------------------- /src/selection/clone.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/clone.js -------------------------------------------------------------------------------- /src/selection/data.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/data.js -------------------------------------------------------------------------------- /src/selection/datum.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/datum.js -------------------------------------------------------------------------------- /src/selection/dispatch.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/dispatch.js -------------------------------------------------------------------------------- /src/selection/each.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/each.js -------------------------------------------------------------------------------- /src/selection/empty.js: -------------------------------------------------------------------------------- 1 | export default function() { 2 | return !this.node(); 3 | } 4 | -------------------------------------------------------------------------------- /src/selection/enter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/enter.js -------------------------------------------------------------------------------- /src/selection/exit.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/exit.js -------------------------------------------------------------------------------- /src/selection/filter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/filter.js -------------------------------------------------------------------------------- /src/selection/html.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/html.js -------------------------------------------------------------------------------- /src/selection/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/index.js -------------------------------------------------------------------------------- /src/selection/insert.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/insert.js -------------------------------------------------------------------------------- /src/selection/iterator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/iterator.js -------------------------------------------------------------------------------- /src/selection/join.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/join.js -------------------------------------------------------------------------------- /src/selection/lower.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/lower.js -------------------------------------------------------------------------------- /src/selection/merge.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/merge.js -------------------------------------------------------------------------------- /src/selection/node.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/node.js -------------------------------------------------------------------------------- /src/selection/nodes.js: -------------------------------------------------------------------------------- 1 | export default function() { 2 | return Array.from(this); 3 | } 4 | -------------------------------------------------------------------------------- /src/selection/on.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/on.js -------------------------------------------------------------------------------- /src/selection/order.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/order.js -------------------------------------------------------------------------------- /src/selection/property.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/property.js -------------------------------------------------------------------------------- /src/selection/raise.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/raise.js -------------------------------------------------------------------------------- /src/selection/remove.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/remove.js -------------------------------------------------------------------------------- /src/selection/select.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/select.js -------------------------------------------------------------------------------- /src/selection/selectAll.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/selectAll.js -------------------------------------------------------------------------------- /src/selection/selectChild.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/selectChild.js -------------------------------------------------------------------------------- /src/selection/selectChildren.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/selectChildren.js -------------------------------------------------------------------------------- /src/selection/size.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/size.js -------------------------------------------------------------------------------- /src/selection/sort.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/sort.js -------------------------------------------------------------------------------- /src/selection/sparse.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/sparse.js -------------------------------------------------------------------------------- /src/selection/style.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/style.js -------------------------------------------------------------------------------- /src/selection/text.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selection/text.js -------------------------------------------------------------------------------- /src/selector.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selector.js -------------------------------------------------------------------------------- /src/selectorAll.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/selectorAll.js -------------------------------------------------------------------------------- /src/sourceEvent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/sourceEvent.js -------------------------------------------------------------------------------- /src/window.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/src/window.js -------------------------------------------------------------------------------- /test/.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/.eslintrc.json -------------------------------------------------------------------------------- /test/asserts.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/asserts.js -------------------------------------------------------------------------------- /test/create-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/create-test.js -------------------------------------------------------------------------------- /test/creator-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/creator-test.js -------------------------------------------------------------------------------- /test/jsdom.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/jsdom.js -------------------------------------------------------------------------------- /test/matcher-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/matcher-test.js -------------------------------------------------------------------------------- /test/namespace-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/namespace-test.js -------------------------------------------------------------------------------- /test/namespaces-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/namespaces-test.js -------------------------------------------------------------------------------- /test/pointer-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/pointer-test.js -------------------------------------------------------------------------------- /test/select-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/select-test.js -------------------------------------------------------------------------------- /test/selectAll-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selectAll-test.js -------------------------------------------------------------------------------- /test/selection/append-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/append-test.js -------------------------------------------------------------------------------- /test/selection/attr-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/attr-test.js -------------------------------------------------------------------------------- /test/selection/call-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/call-test.js -------------------------------------------------------------------------------- /test/selection/classed-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/classed-test.js -------------------------------------------------------------------------------- /test/selection/data-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/data-test.js -------------------------------------------------------------------------------- /test/selection/datum-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/datum-test.js -------------------------------------------------------------------------------- /test/selection/dispatch-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/dispatch-test.js -------------------------------------------------------------------------------- /test/selection/each-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/each-test.js -------------------------------------------------------------------------------- /test/selection/empty-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/empty-test.js -------------------------------------------------------------------------------- /test/selection/enter-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/enter-test.js -------------------------------------------------------------------------------- /test/selection/exit-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/exit-test.js -------------------------------------------------------------------------------- /test/selection/filter-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/filter-test.js -------------------------------------------------------------------------------- /test/selection/html-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/html-test.js -------------------------------------------------------------------------------- /test/selection/index-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/index-test.js -------------------------------------------------------------------------------- /test/selection/insert-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/insert-test.js -------------------------------------------------------------------------------- /test/selection/iterator-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/iterator-test.js -------------------------------------------------------------------------------- /test/selection/join-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/join-test.js -------------------------------------------------------------------------------- /test/selection/merge-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/merge-test.js -------------------------------------------------------------------------------- /test/selection/node-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/node-test.js -------------------------------------------------------------------------------- /test/selection/nodes-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/nodes-test.js -------------------------------------------------------------------------------- /test/selection/on-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/on-test.js -------------------------------------------------------------------------------- /test/selection/order-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/order-test.js -------------------------------------------------------------------------------- /test/selection/property-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/property-test.js -------------------------------------------------------------------------------- /test/selection/remove-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/remove-test.js -------------------------------------------------------------------------------- /test/selection/select-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/select-test.js -------------------------------------------------------------------------------- /test/selection/selectAll-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/selectAll-test.js -------------------------------------------------------------------------------- /test/selection/selectChildren-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/selectChildren-test.js -------------------------------------------------------------------------------- /test/selection/size-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/size-test.js -------------------------------------------------------------------------------- /test/selection/sort-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/sort-test.js -------------------------------------------------------------------------------- /test/selection/style-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/style-test.js -------------------------------------------------------------------------------- /test/selection/text-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selection/text-test.js -------------------------------------------------------------------------------- /test/selector-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selector-test.js -------------------------------------------------------------------------------- /test/selectorAll-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/selectorAll-test.js -------------------------------------------------------------------------------- /test/window-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/test/window-test.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-selection/HEAD/yarn.lock --------------------------------------------------------------------------------