Sha256: 6f76f55014e65014c0c917577f6a96a614cdd6f0257e7ccf8be48b0921558b2d

Contents?: true

Size: 816 Bytes

Versions: 4

Compression:

Stored size: 816 Bytes

Contents

import "../selection/select";
import "transition";

d3_transitionPrototype.selectAll = function(selector) {
  var id = this.id,
      subgroups = [],
      subgroup,
      subnodes,
      node,
      subnode,
      transition;

  selector = d3_selection_selectorAll(selector);

  for (var j = -1, m = this.length; ++j < m;) {
    for (var group = this[j], i = -1, n = group.length; ++i < n;) {
      if (node = group[i]) {
        transition = node.__transition__[id];
        subnodes = selector.call(node, node.__data__, i, j);
        subgroups.push(subgroup = []);
        for (var k = -1, o = subnodes.length; ++k < o;) {
          if (subnode = subnodes[k]) d3_transitionNode(subnode, k, id, transition);
          subgroup.push(subnode);
        }
      }
    }
  }

  return d3_transition(subgroups, id);
};

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
stripchart-0.0.3 lib/stripchart/public/components/d3/src/transition/selectAll.js
stripmem-0.0.3 lib/stripmem/public/components/d3/src/transition/selectAll.js
stripmem-0.0.2 lib/stripmem/public/components/d3/src/transition/selectAll.js
stripmem-0.0.1 lib/stripmem/public/components/d3/src/transition/selectAll.js