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

react-d3-shape

Package Overview
Dependencies
Maintainers
3
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-d3-shape - npm Package Compare versions

Comparing version 0.2.24 to 0.3.24

lib/components/blank_chart.js

3

lib/commonProps.js

@@ -28,3 +28,4 @@ "use strict";

showXGrid: true,
showYGrid: true
showYGrid: true,
showLegend: true
};

@@ -31,0 +32,0 @@ var pieProps = exports.pieProps = {

@@ -15,2 +15,6 @@ "use strict";

var _d = require('d3');
var _d2 = _interopRequireDefault(_d);
var _d3Shape = require('d3-shape');

@@ -94,3 +98,3 @@

};
return d3.layout.stack().values(function (d) {
return _d2.default.layout.stack().values(function (d) {
return d.data;

@@ -97,0 +101,0 @@ }).out(buildOut(chartSeries.length));

@@ -57,2 +57,3 @@ "use strict";

var yScaleSet = _props.yScaleSet;
var barWidth = _props.barWidth;

@@ -69,2 +70,3 @@

var zeroBase;
var barBandWidth;

@@ -79,2 +81,9 @@ if (domain[0] * domain[1] < 0) {

// user defined barwidth
if (barWidth) {
barBandWidth = barWidth;
} else {
barBandWidth = yScaleSet.bandwidth();
}
return _react2.default.createElement(

@@ -95,3 +104,3 @@ 'g',

className: barClassName + ' bar',
height: yScaleSet.bandwidth(),
height: barBandWidth,
y: yScaleSet(bar.y) || yScaleSet(bar.y) === 0 ? yScaleSet(bar.y) : -10000,

@@ -98,0 +107,0 @@ x: xScaleSet(bar.x0),

@@ -62,2 +62,3 @@ "use strict";

var yScaleSet = _props.yScaleSet;
var barWidth = _props.barWidth;

@@ -71,2 +72,3 @@

var zeroBase;
var barBandWidth;

@@ -81,2 +83,9 @@ if (domain[0] * domain[1] < 0) {

// user defined barwidth
if (barWidth) {
barBandWidth = barWidth;
} else {
barBandWidth = xScaleSet.bandwidth();
}
return _react2.default.createElement(

@@ -96,3 +105,3 @@ 'g',

className: barClassName + ' bar',
width: xScaleSet.bandwidth(),
width: barBandWidth,
x: xScaleSet(bar.x) || xScaleSet(bar.x) === 0 ? xScaleSet(bar.x) : -10000,

@@ -99,0 +108,0 @@ y: yScaleSet(bar.y0 + bar.y),

@@ -34,2 +34,20 @@ 'use strict';

var _brush = require('./components/brush');
Object.defineProperty(exports, 'Brush', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_brush).default;
}
});
var _blank_chart = require('./components/blank_chart');
Object.defineProperty(exports, 'BlankChart', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_blank_chart).default;
}
});
var _line = require('./components/line');

@@ -134,2 +152,11 @@

var _multi_line_brush = require('./components/multi_line_brush');
Object.defineProperty(exports, 'MultiLineBrushChart', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_multi_line_brush).default;
}
});
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
{
"name": "react-d3-shape",
"version": "0.2.24",
"version": "0.3.24",
"description": "react shape component",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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