Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

d3-axis

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

d3-axis - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

2

build/bundle.js

@@ -1,1 +0,1 @@

var version = "0.2.2"; export * from "../index"; export {version};
var version = "0.2.3"; export * from "../index"; export {version};

@@ -158,3 +158,3 @@ (function (global, factory) {

var version = "0.2.2";
var version = "0.2.3";

@@ -161,0 +161,0 @@ exports.version = version;

@@ -1,1 +0,1 @@

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("d3-selection")):"function"==typeof define&&define.amd?define(["exports","d3-selection"],n):n(t.d3_axis={},t.d3_selection)}(this,function(t,n){"use strict";function e(t){return t}function r(t){return function(n){return"translate("+t(n)+",0)"}}function a(t){return function(n){return"translate(0,"+t(n)+")"}}function i(t){var n=t.bandwidth()/2;return function(e){return t(e)+n}}function c(t){t.enter().append("path").attr("class","domain")}function u(t){t.exit().remove();var n=t.enter().append("g",".domain").attr("class","tick");n.append("line"),n.append("text"),t.order()}function l(t,l){function o(o){var m=null==d?l.ticks?l.ticks.apply(l,s):l.domain():d,V=null==f?l.tickFormat?l.tickFormat.apply(l,s):e:f,b=Math.max(h,0)+v,H=l.bandwidth?i(l):l,M=l.range();o.each(function(){var e=n.select(this),i=e.selectAll(".domain").data([null]).call(c),o=e.selectAll(".tick").data(m,l).call(u),s=o.select("line"),d=o.select("text").text(V);switch(t){case x:i.attr("d","M"+M[0]+","+-k+"V0H"+M[1]+"V"+-k),o.attr("transform",r(H)),s.attr("x2",0).attr("y2",-h),d.attr("x",0).attr("y",-b).attr("dy","0em").style("text-anchor","middle");break;case y:i.attr("d","M"+k+","+M[0]+"H0V"+M[1]+"H"+k),o.attr("transform",a(H)),s.attr("y2",0).attr("x2",h),d.attr("y",0).attr("x",b).attr("dy",".32em").style("text-anchor","start");break;case g:i.attr("d","M"+M[0]+","+k+"V0H"+M[1]+"V"+k),o.attr("transform",r(H)),s.attr("x2",0).attr("y2",h),d.attr("x",0).attr("y",b).attr("dy",".71em").style("text-anchor","middle");break;case p:i.attr("d","M"+-k+","+M[0]+"H0V"+M[1]+"H"+-k),o.attr("transform",a(H)),s.attr("y2",0).attr("x2",-h),d.attr("y",0).attr("x",-b).attr("dy",".32em").style("text-anchor","end")}})}var s=[],d=null,f=null,h=6,k=6,v=3;return o.scale=function(t){return arguments.length?(l=t,o):l},o.ticks=function(){return s=m.call(arguments),o},o.tickArguments=function(t){return arguments.length?(s=null==t?[]:m.call(t),o):s.slice()},o.tickValues=function(t){return arguments.length?(d=null==t?null:m.call(t),o):d&&d.slice()},o.tickFormat=function(t){return arguments.length?(f=t,o):f},o.tickSize=function(t){return arguments.length?(h=k=+t,o):h},o.tickSizeInner=function(t){return arguments.length?(h=+t,o):h},o.tickSizeOuter=function(t){return arguments.length?(k=+t,o):k},o.tickPadding=function(t){return arguments.length?(v=+t,o):v},o}function o(t){return l(x,t)}function s(t){return l(y,t)}function d(t){return l(g,t)}function f(t){return l(p,t)}var m=Array.prototype.slice,x={},y={},g={},p={},h="0.2.2";t.version=h,t.axisTop=o,t.axisRight=s,t.axisBottom=d,t.axisLeft=f});
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("d3-selection")):"function"==typeof define&&define.amd?define(["exports","d3-selection"],n):n(t.d3_axis={},t.d3_selection)}(this,function(t,n){"use strict";function e(t){return t}function r(t){return function(n){return"translate("+t(n)+",0)"}}function a(t){return function(n){return"translate(0,"+t(n)+")"}}function i(t){var n=t.bandwidth()/2;return function(e){return t(e)+n}}function c(t){t.enter().append("path").attr("class","domain")}function u(t){t.exit().remove();var n=t.enter().append("g",".domain").attr("class","tick");n.append("line"),n.append("text"),t.order()}function l(t,l){function o(o){var m=null==d?l.ticks?l.ticks.apply(l,s):l.domain():d,V=null==f?l.tickFormat?l.tickFormat.apply(l,s):e:f,b=Math.max(h,0)+v,H=l.bandwidth?i(l):l,M=l.range();o.each(function(){var e=n.select(this),i=e.selectAll(".domain").data([null]).call(c),o=e.selectAll(".tick").data(m,l).call(u),s=o.select("line"),d=o.select("text").text(V);switch(t){case x:i.attr("d","M"+M[0]+","+-k+"V0H"+M[1]+"V"+-k),o.attr("transform",r(H)),s.attr("x2",0).attr("y2",-h),d.attr("x",0).attr("y",-b).attr("dy","0em").style("text-anchor","middle");break;case y:i.attr("d","M"+k+","+M[0]+"H0V"+M[1]+"H"+k),o.attr("transform",a(H)),s.attr("y2",0).attr("x2",h),d.attr("y",0).attr("x",b).attr("dy",".32em").style("text-anchor","start");break;case g:i.attr("d","M"+M[0]+","+k+"V0H"+M[1]+"V"+k),o.attr("transform",r(H)),s.attr("x2",0).attr("y2",h),d.attr("x",0).attr("y",b).attr("dy",".71em").style("text-anchor","middle");break;case p:i.attr("d","M"+-k+","+M[0]+"H0V"+M[1]+"H"+-k),o.attr("transform",a(H)),s.attr("y2",0).attr("x2",-h),d.attr("y",0).attr("x",-b).attr("dy",".32em").style("text-anchor","end")}})}var s=[],d=null,f=null,h=6,k=6,v=3;return o.scale=function(t){return arguments.length?(l=t,o):l},o.ticks=function(){return s=m.call(arguments),o},o.tickArguments=function(t){return arguments.length?(s=null==t?[]:m.call(t),o):s.slice()},o.tickValues=function(t){return arguments.length?(d=null==t?null:m.call(t),o):d&&d.slice()},o.tickFormat=function(t){return arguments.length?(f=t,o):f},o.tickSize=function(t){return arguments.length?(h=k=+t,o):h},o.tickSizeInner=function(t){return arguments.length?(h=+t,o):h},o.tickSizeOuter=function(t){return arguments.length?(k=+t,o):k},o.tickPadding=function(t){return arguments.length?(v=+t,o):v},o}function o(t){return l(x,t)}function s(t){return l(y,t)}function d(t){return l(g,t)}function f(t){return l(p,t)}var m=Array.prototype.slice,x={},y={},g={},p={},h="0.2.3";t.version=h,t.axisTop=o,t.axisRight=s,t.axisBottom=d,t.axisLeft=f});
{
"name": "d3-axis",
"version": "0.2.2",
"version": "0.2.3",
"description": "Displays automatic reference lines for scales.",

@@ -30,3 +30,3 @@ "keywords": [

"dependencies": {
"d3-scale": "~0.5.0",
"d3-scale": "~0.6.0",
"d3-selection": "~0.6.0"

@@ -33,0 +33,0 @@ },

@@ -14,6 +14,6 @@ # d3-axis

<script src="https://d3js.org/d3-format.v0.5.min.js"></script>
<script src="https://d3js.org/d3-interpolate.v0.4.min.js"></script>
<script src="https://d3js.org/d3-interpolate.v0.5.min.js"></script>
<script src="https://d3js.org/d3-time.v0.2.min.js"></script>
<script src="https://d3js.org/d3-time-format.v0.3.min.js"></script>
<script src="https://d3js.org/d3-scale.v0.5.min.js"></script>
<script src="https://d3js.org/d3-scale.v0.6.min.js"></script>
<script src="https://d3js.org/d3-selection.v0.6.min.js"></script>

@@ -20,0 +20,0 @@ <script src="https://d3js.org/d3-axis.v0.2.min.js"></script>

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc