N°5621 Move C3 0.4.11 to NPM

This commit is contained in:
Pierre Goiffon
2024-02-16 16:42:42 +01:00
parent ff079f7d01
commit f3fbce7459
609 changed files with 84517 additions and 6 deletions

15
node_modules/d3/src/compat/array.js generated vendored Normal file
View File

@@ -0,0 +1,15 @@
import "../core/array";
import "../core/document";
// Redefine d3_array if the browser doesnt support slice-based conversion.
if (d3_document) {
try {
d3_array(d3_document.documentElement.childNodes)[0].nodeType;
} catch (e) {
d3_array = function(list) {
var i = list.length, array = new Array(i);
while (i--) array[i] = list[i];
return array;
};
}
}

3
node_modules/d3/src/compat/date.js generated vendored Normal file
View File

@@ -0,0 +1,3 @@
if (!Date.now) Date.now = function() {
return +new Date;
};

3
node_modules/d3/src/compat/index.js generated vendored Normal file
View File

@@ -0,0 +1,3 @@
import "array";
import "date";
import "style";

23
node_modules/d3/src/compat/style.js generated vendored Normal file
View File

@@ -0,0 +1,23 @@
import "../core/document";
// Redefine style.setProperty et al. if the browser doesnt coerce arguments.
if (d3_document) {
try {
d3_document.createElement("DIV").style.setProperty("opacity", 0, "");
} catch (error) {
var d3_element_prototype = this.Element.prototype,
d3_element_setAttribute = d3_element_prototype.setAttribute,
d3_element_setAttributeNS = d3_element_prototype.setAttributeNS,
d3_style_prototype = this.CSSStyleDeclaration.prototype,
d3_style_setProperty = d3_style_prototype.setProperty;
d3_element_prototype.setAttribute = function(name, value) {
d3_element_setAttribute.call(this, name, value + "");
};
d3_element_prototype.setAttributeNS = function(space, local, value) {
d3_element_setAttributeNS.call(this, space, local, value + "");
};
d3_style_prototype.setProperty = function(name, value, priority) {
d3_style_setProperty.call(this, name, value + "", priority);
};
}
}