| 1 | import selection_select from "./select.js";
|
|---|
| 2 | import selection_selectAll from "./selectAll.js";
|
|---|
| 3 | import selection_selectChild from "./selectChild.js";
|
|---|
| 4 | import selection_selectChildren from "./selectChildren.js";
|
|---|
| 5 | import selection_filter from "./filter.js";
|
|---|
| 6 | import selection_data from "./data.js";
|
|---|
| 7 | import selection_enter from "./enter.js";
|
|---|
| 8 | import selection_exit from "./exit.js";
|
|---|
| 9 | import selection_join from "./join.js";
|
|---|
| 10 | import selection_merge from "./merge.js";
|
|---|
| 11 | import selection_order from "./order.js";
|
|---|
| 12 | import selection_sort from "./sort.js";
|
|---|
| 13 | import selection_call from "./call.js";
|
|---|
| 14 | import selection_nodes from "./nodes.js";
|
|---|
| 15 | import selection_node from "./node.js";
|
|---|
| 16 | import selection_size from "./size.js";
|
|---|
| 17 | import selection_empty from "./empty.js";
|
|---|
| 18 | import selection_each from "./each.js";
|
|---|
| 19 | import selection_attr from "./attr.js";
|
|---|
| 20 | import selection_style from "./style.js";
|
|---|
| 21 | import selection_property from "./property.js";
|
|---|
| 22 | import selection_classed from "./classed.js";
|
|---|
| 23 | import selection_text from "./text.js";
|
|---|
| 24 | import selection_html from "./html.js";
|
|---|
| 25 | import selection_raise from "./raise.js";
|
|---|
| 26 | import selection_lower from "./lower.js";
|
|---|
| 27 | import selection_append from "./append.js";
|
|---|
| 28 | import selection_insert from "./insert.js";
|
|---|
| 29 | import selection_remove from "./remove.js";
|
|---|
| 30 | import selection_clone from "./clone.js";
|
|---|
| 31 | import selection_datum from "./datum.js";
|
|---|
| 32 | import selection_on from "./on.js";
|
|---|
| 33 | import selection_dispatch from "./dispatch.js";
|
|---|
| 34 | import selection_iterator from "./iterator.js";
|
|---|
| 35 |
|
|---|
| 36 | export var root = [null];
|
|---|
| 37 |
|
|---|
| 38 | export function Selection(groups, parents) {
|
|---|
| 39 | this._groups = groups;
|
|---|
| 40 | this._parents = parents;
|
|---|
| 41 | }
|
|---|
| 42 |
|
|---|
| 43 | function selection() {
|
|---|
| 44 | return new Selection([[document.documentElement]], root);
|
|---|
| 45 | }
|
|---|
| 46 |
|
|---|
| 47 | function selection_selection() {
|
|---|
| 48 | return this;
|
|---|
| 49 | }
|
|---|
| 50 |
|
|---|
| 51 | Selection.prototype = selection.prototype = {
|
|---|
| 52 | constructor: Selection,
|
|---|
| 53 | select: selection_select,
|
|---|
| 54 | selectAll: selection_selectAll,
|
|---|
| 55 | selectChild: selection_selectChild,
|
|---|
| 56 | selectChildren: selection_selectChildren,
|
|---|
| 57 | filter: selection_filter,
|
|---|
| 58 | data: selection_data,
|
|---|
| 59 | enter: selection_enter,
|
|---|
| 60 | exit: selection_exit,
|
|---|
| 61 | join: selection_join,
|
|---|
| 62 | merge: selection_merge,
|
|---|
| 63 | selection: selection_selection,
|
|---|
| 64 | order: selection_order,
|
|---|
| 65 | sort: selection_sort,
|
|---|
| 66 | call: selection_call,
|
|---|
| 67 | nodes: selection_nodes,
|
|---|
| 68 | node: selection_node,
|
|---|
| 69 | size: selection_size,
|
|---|
| 70 | empty: selection_empty,
|
|---|
| 71 | each: selection_each,
|
|---|
| 72 | attr: selection_attr,
|
|---|
| 73 | style: selection_style,
|
|---|
| 74 | property: selection_property,
|
|---|
| 75 | classed: selection_classed,
|
|---|
| 76 | text: selection_text,
|
|---|
| 77 | html: selection_html,
|
|---|
| 78 | raise: selection_raise,
|
|---|
| 79 | lower: selection_lower,
|
|---|
| 80 | append: selection_append,
|
|---|
| 81 | insert: selection_insert,
|
|---|
| 82 | remove: selection_remove,
|
|---|
| 83 | clone: selection_clone,
|
|---|
| 84 | datum: selection_datum,
|
|---|
| 85 | on: selection_on,
|
|---|
| 86 | dispatch: selection_dispatch,
|
|---|
| 87 | [Symbol.iterator]: selection_iterator
|
|---|
| 88 | };
|
|---|
| 89 |
|
|---|
| 90 | export default selection;
|
|---|