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

react-vis

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-vis - npm Package Compare versions

Comparing version 0.6.7 to 0.6.8

dist/lib/plot/axis.js

9

dist/index.js

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

var _abstractSeries = require('./lib/plot/series/abstract-series');
Object.defineProperty(exports, 'AbstractSeries', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_abstractSeries).default;
}
});
var _lineSeries = require('./lib/plot/series/line-series');

@@ -36,0 +45,0 @@

19

dist/lib/plot/axis/axis.js

@@ -80,2 +80,3 @@ 'use strict';

className: _react2.default.PropTypes.string,
tickLabelAngle: _react2.default.PropTypes.number,

@@ -106,2 +107,6 @@ tickSize: _react2.default.PropTypes.number,

var predefinedClassName = 'rv-xy-plot__axis';
var VERTICAL_CLASS_NAME = 'rv-xy-plot__axis--vertical';
var HORIZONTAL_CLASS_NAME = 'rv-xy-plot__axis--horizontal';
var Axis = function (_PureRenderComponent) {

@@ -184,10 +189,12 @@ _inherits(Axis, _PureRenderComponent);

var left = props.left,
top = props.top,
width = props.width,
var className = props.className,
height = props.height,
left = props.left,
orientation = props.orientation,
title = props.title;
title = props.title,
top = props.top,
width = props.width;
var isVertical = [LEFT, RIGHT].indexOf(orientation) > -1;
var axisClassName = isVertical ? VERTICAL_CLASS_NAME : HORIZONTAL_CLASS_NAME;
return _react2.default.createElement(

@@ -197,3 +204,3 @@ 'g',

transform: 'translate(' + left + ',' + top + ')',
className: 'rv-xy-plot__axis' },
className: predefinedClassName + ' ' + axisClassName + ' ' + className },
_react2.default.createElement(_axisLine2.default, {

@@ -200,0 +207,0 @@ height: height,

@@ -76,2 +76,3 @@ 'use strict';

margin: _chartUtils.MarginPropType,
onMouseDown: _react2.default.PropTypes.func,
onMouseLeave: _react2.default.PropTypes.func,

@@ -91,2 +92,3 @@ onMouseMove: _react2.default.PropTypes.func,

_this._mouseDownHandler = _this._mouseDownHandler.bind(_this);
_this._mouseLeaveHandler = _this._mouseLeaveHandler.bind(_this);

@@ -123,2 +125,29 @@ _this._mouseEnterHandler = _this._mouseEnterHandler.bind(_this);

/**
* Trigger mouse-down related callbacks if they are available.
* @param {React.SyntheticEvent} event Mouse down event.
* @private
*/
}, {
key: '_mouseDownHandler',
value: function _mouseDownHandler(event) {
var _this2 = this;
var _props = this.props,
onMouseDown = _props.onMouseDown,
children = _props.children;
if (onMouseDown) {
onMouseDown(event);
}
var seriesChildren = (0, _seriesUtils.getSeriesChildren)(children);
seriesChildren.forEach(function (child, index) {
var component = _this2.refs['series' + index];
if (component && component.onParentMouseDown) {
component.onParentMouseDown(event);
}
});
}
/**
* Trigger movement-related callbacks if they are available.

@@ -132,7 +161,7 @@ * @param {React.SyntheticEvent} event Mouse move event.

value: function _mouseMoveHandler(event) {
var _this2 = this;
var _this3 = this;
var _props = this.props,
onMouseMove = _props.onMouseMove,
children = _props.children;
var _props2 = this.props,
onMouseMove = _props2.onMouseMove,
children = _props2.children;

@@ -144,3 +173,3 @@ if (onMouseMove) {

seriesChildren.forEach(function (child, index) {
var component = _this2.refs['series' + index];
var component = _this3.refs['series' + index];
if (component && component.onParentMouseMove) {

@@ -312,5 +341,5 @@ component.onParentMouseMove(event);

value: function render() {
var _props2 = this.props,
width = _props2.width,
height = _props2.height;
var _props3 = this.props,
width = _props3.width,
height = _props3.height;

@@ -342,2 +371,3 @@

height: height,
onMouseDown: this._mouseDownHandler,
onMouseMove: this._mouseMoveHandler,

@@ -344,0 +374,0 @@ onMouseLeave: this._mouseLeaveHandler,

@@ -688,2 +688,5 @@ 'use strict';

getAttributeScale: getAttributeScale,
getAttributeFunctor: getAttributeFunctor,
getAttr0Functor: getAttr0Functor,
getAttributeValue: getAttributeValue,
getDomainByAttr: getDomainByAttr,

@@ -690,0 +693,0 @@ getMissingScaleProps: getMissingScaleProps,

{
"name": "react-vis",
"version": "0.6.7",
"version": "0.6.8",
"license": "MIT",

@@ -5,0 +5,0 @@ "author": "Anton Bulyenov <antonb@uber.com>",

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