Initial commit.
This commit is contained in:
Vendored
+94
@@ -0,0 +1,94 @@
|
||||
// https://github.com/d3/d3-selection-multi Version 1.0.1. Copyright 2017 Mike Bostock.
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('d3-selection'), require('d3-transition')) :
|
||||
typeof define === 'function' && define.amd ? define(['d3-selection', 'd3-transition'], factory) :
|
||||
(factory(global.d3,global.d3));
|
||||
}(this, (function (d3Selection,d3Transition) { 'use strict';
|
||||
|
||||
function attrsFunction(selection$$1, map) {
|
||||
return selection$$1.each(function() {
|
||||
var x = map.apply(this, arguments), s = d3Selection.select(this);
|
||||
for (var name in x) s.attr(name, x[name]);
|
||||
});
|
||||
}
|
||||
|
||||
function attrsObject(selection$$1, map) {
|
||||
for (var name in map) selection$$1.attr(name, map[name]);
|
||||
return selection$$1;
|
||||
}
|
||||
|
||||
var selection_attrs = function(map) {
|
||||
return (typeof map === "function" ? attrsFunction : attrsObject)(this, map);
|
||||
};
|
||||
|
||||
function stylesFunction(selection$$1, map, priority) {
|
||||
return selection$$1.each(function() {
|
||||
var x = map.apply(this, arguments), s = d3Selection.select(this);
|
||||
for (var name in x) s.style(name, x[name], priority);
|
||||
});
|
||||
}
|
||||
|
||||
function stylesObject(selection$$1, map, priority) {
|
||||
for (var name in map) selection$$1.style(name, map[name], priority);
|
||||
return selection$$1;
|
||||
}
|
||||
|
||||
var selection_styles = function(map, priority) {
|
||||
return (typeof map === "function" ? stylesFunction : stylesObject)(this, map, priority == null ? "" : priority);
|
||||
};
|
||||
|
||||
function propertiesFunction(selection$$1, map) {
|
||||
return selection$$1.each(function() {
|
||||
var x = map.apply(this, arguments), s = d3Selection.select(this);
|
||||
for (var name in x) s.property(name, x[name]);
|
||||
});
|
||||
}
|
||||
|
||||
function propertiesObject(selection$$1, map) {
|
||||
for (var name in map) selection$$1.property(name, map[name]);
|
||||
return selection$$1;
|
||||
}
|
||||
|
||||
var selection_properties = function(map) {
|
||||
return (typeof map === "function" ? propertiesFunction : propertiesObject)(this, map);
|
||||
};
|
||||
|
||||
function attrsFunction$1(transition$$1, map) {
|
||||
return transition$$1.each(function() {
|
||||
var x = map.apply(this, arguments), t = d3Selection.select(this).transition(transition$$1);
|
||||
for (var name in x) t.attr(name, x[name]);
|
||||
});
|
||||
}
|
||||
|
||||
function attrsObject$1(transition$$1, map) {
|
||||
for (var name in map) transition$$1.attr(name, map[name]);
|
||||
return transition$$1;
|
||||
}
|
||||
|
||||
var transition_attrs = function(map) {
|
||||
return (typeof map === "function" ? attrsFunction$1 : attrsObject$1)(this, map);
|
||||
};
|
||||
|
||||
function stylesFunction$1(transition$$1, map, priority) {
|
||||
return transition$$1.each(function() {
|
||||
var x = map.apply(this, arguments), t = d3Selection.select(this).transition(transition$$1);
|
||||
for (var name in x) t.style(name, x[name], priority);
|
||||
});
|
||||
}
|
||||
|
||||
function stylesObject$1(transition$$1, map, priority) {
|
||||
for (var name in map) transition$$1.style(name, map[name], priority);
|
||||
return transition$$1;
|
||||
}
|
||||
|
||||
var transition_styles = function(map, priority) {
|
||||
return (typeof map === "function" ? stylesFunction$1 : stylesObject$1)(this, map, priority == null ? "" : priority);
|
||||
};
|
||||
|
||||
d3Selection.selection.prototype.attrs = selection_attrs;
|
||||
d3Selection.selection.prototype.styles = selection_styles;
|
||||
d3Selection.selection.prototype.properties = selection_properties;
|
||||
d3Transition.transition.prototype.attrs = transition_attrs;
|
||||
d3Transition.transition.prototype.styles = transition_styles;
|
||||
|
||||
})));
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
// https://github.com/d3/d3-selection-multi Version 1.0.1. Copyright 2017 Mike Bostock.
|
||||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(require("d3-selection"),require("d3-transition")):"function"==typeof define&&define.amd?define(["d3-selection","d3-transition"],n):n(t.d3,t.d3)}(this,function(t,n){"use strict";function r(n,r){return n.each(function(){var n=r.apply(this,arguments),e=t.select(this);for(var i in n)e.attr(i,n[i])})}function e(t,n){for(var r in n)t.attr(r,n[r]);return t}function i(n,r,e){return n.each(function(){var n=r.apply(this,arguments),i=t.select(this);for(var o in n)i.style(o,n[o],e)})}function o(t,n,r){for(var e in n)t.style(e,n[e],r);return t}function f(n,r){return n.each(function(){var n=r.apply(this,arguments),e=t.select(this);for(var i in n)e.property(i,n[i])})}function u(t,n){for(var r in n)t.property(r,n[r]);return t}function s(n,r){return n.each(function(){var e=r.apply(this,arguments),i=t.select(this).transition(n);for(var o in e)i.attr(o,e[o])})}function c(t,n){for(var r in n)t.attr(r,n[r]);return t}function a(n,r,e){return n.each(function(){var i=r.apply(this,arguments),o=t.select(this).transition(n);for(var f in i)o.style(f,i[f],e)})}function p(t,n,r){for(var e in n)t.style(e,n[e],r);return t}var l=function(t){return("function"==typeof t?r:e)(this,t)},y=function(t,n){return("function"==typeof t?i:o)(this,t,null==n?"":n)},h=function(t){return("function"==typeof t?f:u)(this,t)},v=function(t){return("function"==typeof t?s:c)(this,t)},d=function(t,n){return("function"==typeof t?a:p)(this,t,null==n?"":n)};t.selection.prototype.attrs=l,t.selection.prototype.styles=y,t.selection.prototype.properties=h,n.transition.prototype.attrs=v,n.transition.prototype.styles=d});
|
||||
Vendored
+18293
File diff suppressed because it is too large
Load Diff
Vendored
+2
File diff suppressed because one or more lines are too long
Vendored
+2
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user