MCPcopy Create free account
hub / github.com/breck7/scroll / selection_join

Function selection_join

external/.d3.js:1960–1974  ·  view source on GitHub ↗
(onenter, onupdate, onexit)

Source from the content-addressed store, hash-verified

1958}
1959
1960function selection_join(onenter, onupdate, onexit) {
1961 var enter = this.enter(), update = this, exit = this.exit();
1962 if (typeof onenter === "function") {
1963 enter = onenter(enter);
1964 if (enter) enter = enter.selection();
1965 } else {
1966 enter = enter.append(onenter + "");
1967 }
1968 if (onupdate != null) {
1969 update = onupdate(update);
1970 if (update) update = update.selection();
1971 }
1972 if (onexit == null) exit.remove(); else onexit(exit);
1973 return enter && update ? enter.merge(update).order() : update;
1974}
1975
1976function selection_merge(context) {
1977 var selection = context.selection ? context.selection() : context;

Callers

nothing calls this directly

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected