@d3fc/d3fc-axis
Advanced tools
Comparing version 2.0.7 to 2.0.8
@@ -56,9 +56,9 @@ (function (global, factory) { | ||
if (transition) { | ||
update = update.transition(transition); | ||
enter.style('opacity', effectivelyZero).transition(transition).style('opacity', 1); | ||
exit = exit.transition(transition).style('opacity', effectivelyZero).remove(); | ||
} else { | ||
exit.remove(); | ||
update = update.transition(transition).style('opacity', 1); | ||
enter.style('opacity', effectivelyZero); | ||
exit = exit.transition(transition).style('opacity', effectivelyZero); | ||
} | ||
exit.remove(); | ||
update.enter = function () { | ||
@@ -65,0 +65,0 @@ return enter; |
@@ -1,1 +0,1 @@ | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("d3-selection"),require("d3-shape")):"function"==typeof define&&define.amd?define(["exports","d3-selection","d3-shape"],n):n(t.fc=t.fc||{},t.d3,t.d3)}(this,function(t,n,e){"use strict";var r=function(t,n){t=t||"g";var e=function(t,n){return n},r=null,i=function(i,o){o=o||function(t){return t};var u=i.selection?i:null;u&&(i=i.selection());var a=i.selectAll(function(t,n,e){return Array.from(e[n].childNodes).filter(function(t){return 1===t.nodeType})}).filter(null==n?t:t+"."+n),l=a.data(o,e),c=l.enter().append(t).attr("class",n),f=l.exit();l=l.merge(c);var s=u||r;return s?(l=l.transition(s),c.style("opacity",1e-6).transition(s).style("opacity",1),f=f.transition(s).style("opacity",1e-6).remove()):f.remove(),l.enter=function(){return c},l.exit=function(){return f},l};return i.element=function(){return arguments.length?(t=arguments.length<=0?void 0:arguments[0],i):t},i.className=function(){return arguments.length?(n=arguments.length<=0?void 0:arguments[0],i):n},i.key=function(){return arguments.length?(e=arguments.length<=0?void 0:arguments[0],i):e},i.transition=function(){return arguments.length?(r=arguments.length<=0?void 0:arguments[0],i):r},i},i=function(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);n<t.length;n++)e[n]=t[n];return e}return Array.from(t)},o=function(t){return t},u=function(t,u){var a=[10],l=null,c=function(){},f=null,s=6,d=6,h=3,g=e.line(),v=r("g","tick").key(o),m=r("path","domain"),p=function(t,n){var e=0;return t.bandwidth&&(e=t.bandwidth()/2,t.round()&&(e=Math.round(e))),function(r){return n(t(r)+e,0)}},y=function(t,n){return x()?"translate("+n+", "+t+")":"translate("+t+", "+n+")"},k=function(t){return x()?t.map(function(t){return[t[1],t[0]]}):t},x=function(){return"left"===t||"right"===t},_=function(t,n,e){return u[t]?u[t].apply(u,n):e},b=function(e){e.selection&&(v.transition(e),m.transition(e)),e.each(function(e,r,i){var b=i[r],A=n.select(b);b.__scale__||A.attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor","right"===t?"start":"left"===t?"end":"middle");var N=b.__scale__||u;b.__scale__=u.copy();var z=null==l?_("ticks",a,u.domain()):l,S=null==f?_("tickFormat",a,o):f,j="bottom"===t||"right"===t?1:-1,q=u.range(),w=k([[q[0],j*s],[q[0],0],[q[1],0],[q[1],j*s]]);m(A,[e]).attr("d",g(w)).attr("stroke","#000");var F=v(A,z);F.enter().attr("transform",p(N,y)).append("path").attr("stroke","#000");var M=j*(d+h);F.enter().append("text").attr("transform",y(0,M)).attr("fill","#000"),F.exit().attr("transform",p(u,y)),F.select("path").attr("d",function(t){return g(k([[0,0],[0,j*d]]))}),F.select("text").attr("transform",y(0,M)).attr("dy",function(){var n="0em";return x()?n="0.32em":"bottom"===t&&(n="0.71em"),n}).text(S),F.attr("transform",p(u,y)),c(F,e,r)})};return b.tickFormat=function(){return arguments.length?(f=arguments.length<=0?void 0:arguments[0],b):f},b.tickSize=function(){return arguments.length?(d=s=Number(arguments.length<=0?void 0:arguments[0]),b):d},b.tickSizeInner=function(){return arguments.length?(d=Number(arguments.length<=0?void 0:arguments[0]),b):d},b.tickSizeOuter=function(){return arguments.length?(s=Number(arguments.length<=0?void 0:arguments[0]),b):s},b.tickPadding=function(){return arguments.length?(h=arguments.length<=0?void 0:arguments[0],b):h},b.decorate=function(){return arguments.length?(c=arguments.length<=0?void 0:arguments[0],b):c},b.scale=function(){return arguments.length?(u=arguments.length<=0?void 0:arguments[0],b):u},b.ticks=function(){for(var t=arguments.length,n=Array(t),e=0;e<t;e++)n[e]=arguments[e];return a=[].concat(n),b},b.tickArguments=function(){return arguments.length?(a=null==(arguments.length<=0?void 0:arguments[0])?[]:[].concat(i(arguments.length<=0?void 0:arguments[0])),b):a.slice()},b.tickValues=function(){return arguments.length?(l=null==(arguments.length<=0?void 0:arguments[0])?[]:[].concat(i(arguments.length<=0?void 0:arguments[0])),b):l.slice()},b},a=function(t){return u("top",t)},l=function(t){return u("bottom",t)},c=function(t){return u("left",t)},f=function(t){return u("right",t)};t.axisTop=a,t.axisBottom=l,t.axisLeft=c,t.axisRight=f,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("d3-selection"),require("d3-shape")):"function"==typeof define&&define.amd?define(["exports","d3-selection","d3-shape"],n):n(t.fc=t.fc||{},t.d3,t.d3)}(this,function(t,n,e){"use strict";var r=function(t,n){t=t||"g";var e=function(t,n){return n},r=null,i=function(i,o){o=o||function(t){return t};var u=i.selection?i:null;u&&(i=i.selection());var a=i.selectAll(function(t,n,e){return Array.from(e[n].childNodes).filter(function(t){return 1===t.nodeType})}).filter(null==n?t:t+"."+n),l=a.data(o,e),c=l.enter().append(t).attr("class",n),f=l.exit();l=l.merge(c);var s=u||r;return s&&(l=l.transition(s).style("opacity",1),c.style("opacity",1e-6),f=f.transition(s).style("opacity",1e-6)),f.remove(),l.enter=function(){return c},l.exit=function(){return f},l};return i.element=function(){return arguments.length?(t=arguments.length<=0?void 0:arguments[0],i):t},i.className=function(){return arguments.length?(n=arguments.length<=0?void 0:arguments[0],i):n},i.key=function(){return arguments.length?(e=arguments.length<=0?void 0:arguments[0],i):e},i.transition=function(){return arguments.length?(r=arguments.length<=0?void 0:arguments[0],i):r},i},i=function(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);n<t.length;n++)e[n]=t[n];return e}return Array.from(t)},o=function(t){return t},u=function(t,u){var a=[10],l=null,c=function(){},f=null,s=6,d=6,h=3,g=e.line(),v=r("g","tick").key(o),m=r("path","domain"),p=function(t,n){var e=0;return t.bandwidth&&(e=t.bandwidth()/2,t.round()&&(e=Math.round(e))),function(r){return n(t(r)+e,0)}},y=function(t,n){return x()?"translate("+n+", "+t+")":"translate("+t+", "+n+")"},k=function(t){return x()?t.map(function(t){return[t[1],t[0]]}):t},x=function(){return"left"===t||"right"===t},_=function(t,n,e){return u[t]?u[t].apply(u,n):e},b=function(e){e.selection&&(v.transition(e),m.transition(e)),e.each(function(e,r,i){var b=i[r],A=n.select(b);b.__scale__||A.attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor","right"===t?"start":"left"===t?"end":"middle");var N=b.__scale__||u;b.__scale__=u.copy();var z=null==l?_("ticks",a,u.domain()):l,S=null==f?_("tickFormat",a,o):f,j="bottom"===t||"right"===t?1:-1,q=u.range(),w=k([[q[0],j*s],[q[0],0],[q[1],0],[q[1],j*s]]);m(A,[e]).attr("d",g(w)).attr("stroke","#000");var F=v(A,z);F.enter().attr("transform",p(N,y)).append("path").attr("stroke","#000");var M=j*(d+h);F.enter().append("text").attr("transform",y(0,M)).attr("fill","#000"),F.exit().attr("transform",p(u,y)),F.select("path").attr("d",function(t){return g(k([[0,0],[0,j*d]]))}),F.select("text").attr("transform",y(0,M)).attr("dy",function(){var n="0em";return x()?n="0.32em":"bottom"===t&&(n="0.71em"),n}).text(S),F.attr("transform",p(u,y)),c(F,e,r)})};return b.tickFormat=function(){return arguments.length?(f=arguments.length<=0?void 0:arguments[0],b):f},b.tickSize=function(){return arguments.length?(d=s=Number(arguments.length<=0?void 0:arguments[0]),b):d},b.tickSizeInner=function(){return arguments.length?(d=Number(arguments.length<=0?void 0:arguments[0]),b):d},b.tickSizeOuter=function(){return arguments.length?(s=Number(arguments.length<=0?void 0:arguments[0]),b):s},b.tickPadding=function(){return arguments.length?(h=arguments.length<=0?void 0:arguments[0],b):h},b.decorate=function(){return arguments.length?(c=arguments.length<=0?void 0:arguments[0],b):c},b.scale=function(){return arguments.length?(u=arguments.length<=0?void 0:arguments[0],b):u},b.ticks=function(){for(var t=arguments.length,n=Array(t),e=0;e<t;e++)n[e]=arguments[e];return a=[].concat(n),b},b.tickArguments=function(){return arguments.length?(a=null==(arguments.length<=0?void 0:arguments[0])?[]:[].concat(i(arguments.length<=0?void 0:arguments[0])),b):a.slice()},b.tickValues=function(){return arguments.length?(l=null==(arguments.length<=0?void 0:arguments[0])?[]:[].concat(i(arguments.length<=0?void 0:arguments[0])),b):l.slice()},b},a=function(t){return u("top",t)},l=function(t){return u("bottom",t)},c=function(t){return u("left",t)},f=function(t){return u("right",t)};t.axisTop=a,t.axisBottom=l,t.axisLeft=c,t.axisRight=f,Object.defineProperty(t,"__esModule",{value:!0})}); |
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="2.0.8"></a> | ||
## [2.0.8](https://github.com/d3fc/d3fc/compare/@d3fc/d3fc-axis@2.0.7...@d3fc/d3fc-axis@2.0.8) (2018-08-29) | ||
### Bug Fixes | ||
* use single d3 reference for bundleSpecs ([3d0a47e](https://github.com/d3fc/d3fc/commit/3d0a47e)) | ||
<a name="2.0.7"></a> | ||
@@ -8,0 +19,0 @@ ## [2.0.7](https://github.com/d3fc/d3fc/compare/@d3fc/d3fc-axis@2.0.6...@d3fc/d3fc-axis@2.0.7) (2018-08-21) |
{ | ||
"name": "@d3fc/d3fc-axis", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"description": "A drop-in replacement for d3 axis, with support for the d3fc decorate pattern", | ||
@@ -29,3 +29,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@d3fc/d3fc-data-join": "^5.0.5", | ||
"@d3fc/d3fc-data-join": "^5.0.6", | ||
"@d3fc/d3fc-rebind": "^5.0.5", | ||
@@ -32,0 +32,0 @@ "d3-scale": "^1.0.3", |
@@ -11,13 +11,3 @@ import jsdom from 'jsdom'; | ||
scripts: [ | ||
// transitive dependencies | ||
'./node_modules/d3-array/build/d3-array.js', | ||
'./node_modules/d3-collection/build/d3-collection.js', | ||
'./node_modules/d3-color/build/d3-color.js', | ||
'./node_modules/d3-format/build/d3-format.js', | ||
'./node_modules/d3-interpolate/build/d3-interpolate.js', | ||
'./node_modules/d3-time-format/build/d3-time-format.js', | ||
// direct dependencies | ||
'./node_modules/d3-shape/build/d3-shape.js', | ||
'./node_modules/d3-scale/build/d3-scale.js', | ||
'./node_modules/d3-selection/dist/d3-selection.js', | ||
require.resolve('d3/dist/d3.js'), | ||
'./node_modules/@d3fc/d3fc-data-join/build/d3fc-data-join.js', | ||
@@ -24,0 +14,0 @@ './node_modules/@d3fc/d3fc-rebind/build/d3fc-rebind.js', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64546
660
Updated@d3fc/d3fc-data-join@^5.0.6