@d3fc/d3fc-data-join
Advanced tools
| (function (global, factory) { | ||
| typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('d3-selection')) : | ||
| typeof define === 'function' && define.amd ? define(['exports', 'd3-selection'], factory) : | ||
| (global = global || self, factory(global.fc = global.fc || {}, global.d3)); | ||
| }(this, function (exports, d3Selection) { 'use strict'; | ||
| typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : | ||
| typeof define === 'function' && define.amd ? define(['exports'], factory) : | ||
| (global = global || self, factory(global.fc = global.fc || {})); | ||
| }(this, function (exports) { 'use strict'; | ||
| // "Caution: avoid interpolating to or from the number zero when the interpolator is used to generate | ||
| // a string (such as with attr). | ||
@@ -15,3 +16,2 @@ // Very small values, when stringified, may be converted to scientific notation and | ||
| // - https://github.com/mbostock/d3/wiki/Transitions#d3_interpolateNumber | ||
| var effectivelyZero = 1e-6; // Wrapper around d3's selectAll/data data-join, which allows decoration of the result. | ||
@@ -18,0 +18,0 @@ // This is achieved by appending the element to the enter selection before exposing it. |
@@ -1,1 +0,1 @@ | ||
| (function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b(exports,require("d3-selection")):"function"==typeof define&&define.amd?define(["exports","d3-selection"],b):(a=a||self,b(a.fc=a.fc||{},a.d3))})(this,function(a){'use strict';var b=1e-6;a.dataJoin=function(a,c){a=a||"g";var d=function(a,b){return b},e=null,f=function(f,g){g=g||function(a){return a};var h=f.selection?f:null;h&&(f=f.selection());var i=f.selectAll(function(a,b,c){return Array.from(c[b].childNodes).filter(function(a){return 1===a.nodeType})}).filter(null==c?a:"".concat(a,".").concat(c)),j=i.data(g,d),k=j.enter().append(a).attr("class",c),l=j.exit();j=j.merge(k);var m=h||e;return m&&(j=j.transition(m).style("opacity",1),k.style("opacity",b),l=l.transition(m).style("opacity",b)),l.remove(),j.enter=function(){return k},j.exit=function(){return l},j};return f.element=function(){return arguments.length?(a=0>=arguments.length?void 0:arguments[0],f):a},f.className=function(){return arguments.length?(c=0>=arguments.length?void 0:arguments[0],f):c},f.key=function(){return arguments.length?(d=0>=arguments.length?void 0:arguments[0],f):d},f.transition=function(){return arguments.length?(e=0>=arguments.length?void 0:arguments[0],f):e},f},a.effectivelyZero=b,Object.defineProperty(a,"__esModule",{value:!0})}); | ||
| (function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b(exports):"function"==typeof define&&define.amd?define(["exports"],b):(a=a||self,b(a.fc=a.fc||{}))})(this,function(a){'use strict';var b=1e-6;a.dataJoin=function(a,c){a=a||"g";var d=function(a,b){return b},e=null,f=function(f,g){g=g||function(a){return a};var h=f.selection?f:null;h&&(f=f.selection());var i=f.selectAll(function(a,b,c){return Array.from(c[b].childNodes).filter(function(a){return 1===a.nodeType})}).filter(null==c?a:"".concat(a,".").concat(c)),j=i.data(g,d),k=j.enter().append(a).attr("class",c),l=j.exit();j=j.merge(k);var m=h||e;return m&&(j=j.transition(m).style("opacity",1),k.style("opacity",b),l=l.transition(m).style("opacity",b)),l.remove(),j.enter=function(){return k},j.exit=function(){return l},j};return f.element=function(){return arguments.length?(a=0>=arguments.length?void 0:arguments[0],f):a},f.className=function(){return arguments.length?(c=0>=arguments.length?void 0:arguments[0],f):c},f.key=function(){return arguments.length?(d=0>=arguments.length?void 0:arguments[0],f):d},f.transition=function(){return arguments.length?(e=0>=arguments.length?void 0:arguments[0],f):e},f},a.effectivelyZero=b,Object.defineProperty(a,"__esModule",{value:!0})}); |
+8
-0
@@ -6,2 +6,10 @@ # Change Log | ||
| ## [5.0.11](https://github.com/d3fc/d3fc/compare/@d3fc/d3fc-data-join@5.0.10...@d3fc/d3fc-data-join@5.0.11) (2019-11-28) | ||
| **Note:** Version bump only for package @d3fc/d3fc-data-join | ||
| ## [5.0.10](https://github.com/d3fc/d3fc/compare/@d3fc/d3fc-data-join@5.0.9...@d3fc/d3fc-data-join@5.0.10) (2019-09-04) | ||
@@ -8,0 +16,0 @@ |
+3
-4
| { | ||
| "name": "@d3fc/d3fc-data-join", | ||
| "version": "5.0.10", | ||
| "version": "5.0.11", | ||
| "description": "A component that simplifies the D3 data join and supports the d3fc decorate pattern", | ||
@@ -20,4 +20,3 @@ "license": "MIT", | ||
| "bundle": "npx rollup -c ../../scripts/rollup.config.js", | ||
| "test": "npx jasmine --config=../../scripts/jasmine.json", | ||
| "lint": "npx eslint src/**/*.js" | ||
| "test": "npx jasmine --config=../../scripts/jasmine.json" | ||
| }, | ||
@@ -33,3 +32,3 @@ "dependencies": { | ||
| }, | ||
| "gitHead": "d216bebca76b9bde7456f1c06e768bc67814dd2e" | ||
| "gitHead": "de82a1a109ddce4b5721fc4e0d2039ddd497817d" | ||
| } |
+0
-2
@@ -1,3 +0,1 @@ | ||
| import { select, selection } from 'd3-selection'; | ||
| // "Caution: avoid interpolating to or from the number zero when the interpolator is used to generate | ||
@@ -4,0 +2,0 @@ // a string (such as with attr). |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
26680
0.36%1
-66.67%