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

victory-line

Package Overview
Dependencies
Maintainers
29
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victory-line - npm Package Compare versions

Comparing version 36.4.1 to 36.5.0

48

es/victory-line.js

@@ -5,2 +5,4 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -14,3 +16,3 @@

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

@@ -25,6 +27,4 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
import PropTypes from "prop-types";

@@ -90,20 +90,13 @@ import React from "react";

_defineProperty(VictoryLine, "animationWhitelist", ["data", "domain", "height", "padding", "samples", "style", "width"]);
_defineProperty(VictoryLine, "displayName", "VictoryLine");
_defineProperty(VictoryLine, "role", "line");
_defineProperty(VictoryLine, "defaultTransitions", DefaultTransitions.continuousTransitions());
_defineProperty(VictoryLine, "defaultPolarTransitions", DefaultTransitions.continuousPolarTransitions());
_defineProperty(VictoryLine, "continuous", true);
_defineProperty(VictoryLine, "propTypes", _objectSpread(_objectSpread(_objectSpread({}, CommonProps.baseProps), CommonProps.dataProps), {}, {
VictoryLine.animationWhitelist = ["data", "domain", "height", "padding", "samples", "style", "width"];
VictoryLine.displayName = "VictoryLine";
VictoryLine.role = "line";
VictoryLine.defaultTransitions = DefaultTransitions.continuousTransitions();
VictoryLine.defaultPolarTransitions = DefaultTransitions.continuousPolarTransitions();
VictoryLine.continuous = true;
VictoryLine.propTypes = _objectSpread(_objectSpread(_objectSpread({}, CommonProps.baseProps), CommonProps.dataProps), {}, {
interpolation: PropTypes.oneOfType([PropTypes.oneOf(["basis", "bundle", "cardinal", "catmullRom", "linear", "monotoneX", "monotoneY", "natural", "step", "stepAfter", "stepBefore"]), PropTypes.func]),
label: CustomPropTypes.deprecated(PropTypes.string, "Use `labels` instead for individual data labels")
}));
_defineProperty(VictoryLine, "defaultProps", {
});
VictoryLine.defaultProps = {
containerComponent: /*#__PURE__*/React.createElement(VictoryContainer, null),

@@ -120,14 +113,11 @@ dataComponent: /*#__PURE__*/React.createElement(Curve, null),

theme: VictoryTheme.grayscale
});
};
VictoryLine.getDomain = Domain.getDomain;
VictoryLine.getData = Data.getData;
_defineProperty(VictoryLine, "getDomain", Domain.getDomain);
_defineProperty(VictoryLine, "getData", Data.getData);
_defineProperty(VictoryLine, "getBaseProps", function (props) {
VictoryLine.getBaseProps = function (props) {
return getBaseProps(props, fallbackProps);
});
};
_defineProperty(VictoryLine, "expectedComponents", ["dataComponent", "labelComponent", "groupComponent", "containerComponent"]);
VictoryLine.expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
export default addEvents(VictoryLine, options);

@@ -24,2 +24,4 @@ "use strict";

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -33,3 +35,3 @@

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

@@ -44,6 +46,4 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var fallbackProps = {

@@ -105,20 +105,13 @@ width: 450,

_defineProperty(VictoryLine, "animationWhitelist", ["data", "domain", "height", "padding", "samples", "style", "width"]);
_defineProperty(VictoryLine, "displayName", "VictoryLine");
_defineProperty(VictoryLine, "role", "line");
_defineProperty(VictoryLine, "defaultTransitions", _victoryCore.DefaultTransitions.continuousTransitions());
_defineProperty(VictoryLine, "defaultPolarTransitions", _victoryCore.DefaultTransitions.continuousPolarTransitions());
_defineProperty(VictoryLine, "continuous", true);
_defineProperty(VictoryLine, "propTypes", _objectSpread(_objectSpread(_objectSpread({}, _victoryCore.CommonProps.baseProps), _victoryCore.CommonProps.dataProps), {}, {
VictoryLine.animationWhitelist = ["data", "domain", "height", "padding", "samples", "style", "width"];
VictoryLine.displayName = "VictoryLine";
VictoryLine.role = "line";
VictoryLine.defaultTransitions = _victoryCore.DefaultTransitions.continuousTransitions();
VictoryLine.defaultPolarTransitions = _victoryCore.DefaultTransitions.continuousPolarTransitions();
VictoryLine.continuous = true;
VictoryLine.propTypes = _objectSpread(_objectSpread(_objectSpread({}, _victoryCore.CommonProps.baseProps), _victoryCore.CommonProps.dataProps), {}, {
interpolation: _propTypes.default.oneOfType([_propTypes.default.oneOf(["basis", "bundle", "cardinal", "catmullRom", "linear", "monotoneX", "monotoneY", "natural", "step", "stepAfter", "stepBefore"]), _propTypes.default.func]),
label: _victoryCore.PropTypes.deprecated(_propTypes.default.string, "Use `labels` instead for individual data labels")
}));
_defineProperty(VictoryLine, "defaultProps", {
});
VictoryLine.defaultProps = {
containerComponent: /*#__PURE__*/_react.default.createElement(_victoryCore.VictoryContainer, null),

@@ -135,13 +128,11 @@ dataComponent: /*#__PURE__*/_react.default.createElement(_curve.default, null),

theme: _victoryCore.VictoryTheme.grayscale
});
};
VictoryLine.getDomain = _victoryCore.Domain.getDomain;
VictoryLine.getData = _victoryCore.Data.getData;
_defineProperty(VictoryLine, "getDomain", _victoryCore.Domain.getDomain);
_defineProperty(VictoryLine, "getData", _victoryCore.Data.getData);
_defineProperty(VictoryLine, "getBaseProps", function (props) {
VictoryLine.getBaseProps = function (props) {
return (0, _helperMethods.getBaseProps)(props, fallbackProps);
});
};
_defineProperty(VictoryLine, "expectedComponents", ["dataComponent", "labelComponent", "groupComponent", "containerComponent"]);
VictoryLine.expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];

@@ -148,0 +139,0 @@ var _default = (0, _victoryCore.addEvents)(VictoryLine, options);

{
"name": "victory-line",
"version": "36.4.1",
"version": "36.5.0",
"description": "Line Component for Victory",

@@ -24,7 +24,7 @@ "keywords": [

"prop-types": "^15.8.1",
"victory-core": "^36.4.1",
"victory-vendor": "^36.4.0"
"victory-core": "^36.5.0",
"victory-vendor": "^36.5.0"
},
"peerDependencies": {
"react": "^16.6.0 || ^17.0.0"
"react": ">=16.6.0"
},

@@ -35,3 +35,3 @@ "scripts": {

"sideEffects": false,
"gitHead": "aa44a22e5a93989773a560f765f83ac151f44c46"
"gitHead": "7cecba921f751c3decc8215f7e866f51d11203c1"
}

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