Sha256: 8e288e774b2566caf1168fec5d614f38a7539f94e03e0919e2ba9a731d2a566f

Contents?: true

Size: 544 Bytes

Versions: 25

Compression:

Stored size: 544 Bytes

Contents

var d3_selectionRoot = d3_selection([[document]]);

d3_selectionRoot[0].parentNode = d3_selectRoot;

// TODO fast singleton implementation!
// TODO select(function)
d3.select = function(selector) {
  return typeof selector === "string"
      ? d3_selectionRoot.select(selector)
      : d3_selection([[selector]]); // assume node
};

// TODO selectAll(function)
d3.selectAll = function(selector) {
  return typeof selector === "string"
      ? d3_selectionRoot.selectAll(selector)
      : d3_selection([d3_array(selector)]); // assume node[]
};

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
picky-statistics-4.0.2 lib/picky-statistics/application/javascripts/d3/src/core/selection-root.js
picky-statistics-4.0.1 lib/picky-statistics/application/javascripts/d3/src/core/selection-root.js
picky-statistics-4.0.0 lib/picky-statistics/application/javascripts/d3/src/core/selection-root.js
picky-statistics-4.0.0pre6 lib/picky-statistics/application/javascripts/d3/src/core/selection-root.js
picky-statistics-4.0.0pre5 lib/picky-statistics/application/javascripts/d3/src/core/selection-root.js