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

victory-line

Package Overview
Dependencies
Maintainers
28
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.3.2 to 36.4.0

13

es/curve.js
import _assign from "lodash/assign";
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
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 _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
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; }

@@ -10,3 +12,3 @@

import PropTypes from "prop-types";
import { Helpers, CommonProps, Path, LineHelpers } from "victory-core";
import { Helpers, CommonProps, Path, LineHelpers, UserProps } from "victory-core";

@@ -38,2 +40,3 @@ var evaluateProps = function (props) {

props = evaluateProps(props);
var userProps = UserProps.getSafeUserProps(props);
var _props = props,

@@ -44,3 +47,3 @@ polar = _props.polar,

var defaultTransform = polar && origin ? "translate(".concat(origin.x, ", ").concat(origin.y, ")") : undefined;
return React.cloneElement(props.pathComponent, _objectSpread({}, props.events, {
return /*#__PURE__*/React.cloneElement(props.pathComponent, _objectSpread(_objectSpread(_objectSpread({}, props.events), userProps), {}, {
"aria-label": props.ariaLabel,

@@ -58,3 +61,3 @@ d: lineFunction(props.data),

Curve.propTypes = _objectSpread({}, CommonProps.primitiveProps, {
Curve.propTypes = _objectSpread(_objectSpread({}, CommonProps.primitiveProps), {}, {
interpolation: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),

@@ -67,3 +70,3 @@ openCurve: PropTypes.bool,

Curve.defaultProps = {
pathComponent: React.createElement(Path, null),
pathComponent: /*#__PURE__*/React.createElement(Path, null),
role: "presentation",

@@ -70,0 +73,0 @@ shapeRendering: "auto"

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

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
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 _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

@@ -9,10 +9,20 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
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 _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : 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";

@@ -41,11 +51,11 @@ import React from "react";

var VictoryLine =
/*#__PURE__*/
function (_React$Component) {
var VictoryLine = /*#__PURE__*/function (_React$Component) {
_inherits(VictoryLine, _React$Component);
var _super = _createSuper(VictoryLine);
function VictoryLine() {
_classCallCheck(this, VictoryLine);
return _possibleConstructorReturn(this, (VictoryLine.__proto__ || Object.getPrototypeOf(VictoryLine)).apply(this, arguments));
return _super.apply(this, arguments);
}

@@ -55,4 +65,4 @@

key: "shouldAnimate",
// Overridden in native versions
value: function shouldAnimate() {
value: // Overridden in native versions
function shouldAnimate() {
return !!this.props.animate;

@@ -72,3 +82,3 @@ }

var children = this.renderContinuousData(props);
var container = React.cloneElement(props.containerComponent, UserProps.getSafeUserProps(props));
var container = /*#__PURE__*/React.cloneElement(props.containerComponent, UserProps.getSafeUserProps(props));
return props.standalone ? this.renderContainer(container, children) : children;

@@ -81,91 +91,43 @@ }

Object.defineProperty(VictoryLine, "animationWhitelist", {
configurable: true,
enumerable: true,
writable: true,
value: ["data", "domain", "height", "padding", "samples", "style", "width"]
_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), {}, {
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", {
containerComponent: /*#__PURE__*/React.createElement(VictoryContainer, null),
dataComponent: /*#__PURE__*/React.createElement(Curve, null),
labelComponent: /*#__PURE__*/React.createElement(VictoryLabel, {
renderInPortal: true
}),
groupComponent: /*#__PURE__*/React.createElement(VictoryClipContainer, null),
samples: 50,
sortKey: "x",
sortOrder: "ascending",
standalone: true,
theme: VictoryTheme.grayscale
});
Object.defineProperty(VictoryLine, "displayName", {
configurable: true,
enumerable: true,
writable: true,
value: "VictoryLine"
_defineProperty(VictoryLine, "getDomain", Domain.getDomain);
_defineProperty(VictoryLine, "getData", Data.getData);
_defineProperty(VictoryLine, "getBaseProps", function (props) {
return getBaseProps(props, fallbackProps);
});
Object.defineProperty(VictoryLine, "role", {
configurable: true,
enumerable: true,
writable: true,
value: "line"
});
Object.defineProperty(VictoryLine, "defaultTransitions", {
configurable: true,
enumerable: true,
writable: true,
value: DefaultTransitions.continuousTransitions()
});
Object.defineProperty(VictoryLine, "defaultPolarTransitions", {
configurable: true,
enumerable: true,
writable: true,
value: DefaultTransitions.continuousPolarTransitions()
});
Object.defineProperty(VictoryLine, "continuous", {
configurable: true,
enumerable: true,
writable: true,
value: true
});
Object.defineProperty(VictoryLine, "propTypes", {
configurable: true,
enumerable: true,
writable: true,
value: _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")
})
});
Object.defineProperty(VictoryLine, "defaultProps", {
configurable: true,
enumerable: true,
writable: true,
value: {
containerComponent: React.createElement(VictoryContainer, null),
dataComponent: React.createElement(Curve, null),
labelComponent: React.createElement(VictoryLabel, {
renderInPortal: true
}),
groupComponent: React.createElement(VictoryClipContainer, null),
samples: 50,
sortKey: "x",
sortOrder: "ascending",
standalone: true,
theme: VictoryTheme.grayscale
}
});
Object.defineProperty(VictoryLine, "getDomain", {
configurable: true,
enumerable: true,
writable: true,
value: Domain.getDomain
});
Object.defineProperty(VictoryLine, "getData", {
configurable: true,
enumerable: true,
writable: true,
value: Data.getData
});
Object.defineProperty(VictoryLine, "getBaseProps", {
configurable: true,
enumerable: true,
writable: true,
value: function (props) {
return getBaseProps(props, fallbackProps);
}
});
Object.defineProperty(VictoryLine, "expectedComponents", {
configurable: true,
enumerable: true,
writable: true,
value: ["dataComponent", "labelComponent", "groupComponent", "containerComponent"]
});
_defineProperty(VictoryLine, "expectedComponents", ["dataComponent", "labelComponent", "groupComponent", "containerComponent"]);
export default addEvents(VictoryLine, options);

@@ -18,4 +18,6 @@ "use strict";

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
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 _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
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; }

@@ -52,2 +54,5 @@

props = evaluateProps(props);
var userProps = _victoryCore.UserProps.getSafeUserProps(props);
var _props = props,

@@ -60,3 +65,3 @@ polar = _props.polar,

var defaultTransform = polar && origin ? "translate(".concat(origin.x, ", ").concat(origin.y, ")") : undefined;
return _react.default.cloneElement(props.pathComponent, _objectSpread({}, props.events, {
return /*#__PURE__*/_react.default.cloneElement(props.pathComponent, _objectSpread(_objectSpread(_objectSpread({}, props.events), userProps), {}, {
"aria-label": props.ariaLabel,

@@ -74,3 +79,3 @@ d: lineFunction(props.data),

Curve.propTypes = _objectSpread({}, _victoryCore.CommonProps.primitiveProps, {
Curve.propTypes = _objectSpread(_objectSpread({}, _victoryCore.CommonProps.primitiveProps), {}, {
interpolation: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.func]),

@@ -83,3 +88,3 @@ openCurve: _propTypes.default.bool,

Curve.defaultProps = {
pathComponent: _react.default.createElement(_victoryCore.Path, null),
pathComponent: /*#__PURE__*/_react.default.createElement(_victoryCore.Path, null),
role: "presentation",

@@ -86,0 +91,0 @@ shapeRendering: "auto"

@@ -6,12 +6,12 @@ "use strict";

});
Object.defineProperty(exports, "VictoryLine", {
Object.defineProperty(exports, "Curve", {
enumerable: true,
get: function () {
return _victoryLine.default;
return _curve.default;
}
});
Object.defineProperty(exports, "Curve", {
Object.defineProperty(exports, "VictoryLine", {
enumerable: true,
get: function () {
return _curve.default;
return _victoryLine.default;
}

@@ -18,0 +18,0 @@ });

@@ -20,5 +20,5 @@ "use strict";

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
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 _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

@@ -29,10 +29,20 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
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 _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : 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 = {

@@ -56,11 +66,11 @@ width: 450,

var VictoryLine =
/*#__PURE__*/
function (_React$Component) {
var VictoryLine = /*#__PURE__*/function (_React$Component) {
_inherits(VictoryLine, _React$Component);
var _super = _createSuper(VictoryLine);
function VictoryLine() {
_classCallCheck(this, VictoryLine);
return _possibleConstructorReturn(this, (VictoryLine.__proto__ || Object.getPrototypeOf(VictoryLine)).apply(this, arguments));
return _super.apply(this, arguments);
}

@@ -70,4 +80,4 @@

key: "shouldAnimate",
// Overridden in native versions
value: function shouldAnimate() {
value: // Overridden in native versions
function shouldAnimate() {
return !!this.props.animate;

@@ -89,3 +99,3 @@ }

var container = _react.default.cloneElement(props.containerComponent, _victoryCore.UserProps.getSafeUserProps(props));
var container = /*#__PURE__*/_react.default.cloneElement(props.containerComponent, _victoryCore.UserProps.getSafeUserProps(props));

@@ -99,94 +109,45 @@ return props.standalone ? this.renderContainer(container, children) : children;

Object.defineProperty(VictoryLine, "animationWhitelist", {
configurable: true,
enumerable: true,
writable: true,
value: ["data", "domain", "height", "padding", "samples", "style", "width"]
_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), {}, {
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", {
containerComponent: /*#__PURE__*/_react.default.createElement(_victoryCore.VictoryContainer, null),
dataComponent: /*#__PURE__*/_react.default.createElement(_curve.default, null),
labelComponent: /*#__PURE__*/_react.default.createElement(_victoryCore.VictoryLabel, {
renderInPortal: true
}),
groupComponent: /*#__PURE__*/_react.default.createElement(_victoryCore.VictoryClipContainer, null),
samples: 50,
sortKey: "x",
sortOrder: "ascending",
standalone: true,
theme: _victoryCore.VictoryTheme.grayscale
});
Object.defineProperty(VictoryLine, "displayName", {
configurable: true,
enumerable: true,
writable: true,
value: "VictoryLine"
_defineProperty(VictoryLine, "getDomain", _victoryCore.Domain.getDomain);
_defineProperty(VictoryLine, "getData", _victoryCore.Data.getData);
_defineProperty(VictoryLine, "getBaseProps", function (props) {
return (0, _helperMethods.getBaseProps)(props, fallbackProps);
});
Object.defineProperty(VictoryLine, "role", {
configurable: true,
enumerable: true,
writable: true,
value: "line"
});
Object.defineProperty(VictoryLine, "defaultTransitions", {
configurable: true,
enumerable: true,
writable: true,
value: _victoryCore.DefaultTransitions.continuousTransitions()
});
Object.defineProperty(VictoryLine, "defaultPolarTransitions", {
configurable: true,
enumerable: true,
writable: true,
value: _victoryCore.DefaultTransitions.continuousPolarTransitions()
});
Object.defineProperty(VictoryLine, "continuous", {
configurable: true,
enumerable: true,
writable: true,
value: true
});
Object.defineProperty(VictoryLine, "propTypes", {
configurable: true,
enumerable: true,
writable: true,
value: _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")
})
});
Object.defineProperty(VictoryLine, "defaultProps", {
configurable: true,
enumerable: true,
writable: true,
value: {
containerComponent: _react.default.createElement(_victoryCore.VictoryContainer, null),
dataComponent: _react.default.createElement(_curve.default, null),
labelComponent: _react.default.createElement(_victoryCore.VictoryLabel, {
renderInPortal: true
}),
groupComponent: _react.default.createElement(_victoryCore.VictoryClipContainer, null),
samples: 50,
sortKey: "x",
sortOrder: "ascending",
standalone: true,
theme: _victoryCore.VictoryTheme.grayscale
}
});
Object.defineProperty(VictoryLine, "getDomain", {
configurable: true,
enumerable: true,
writable: true,
value: _victoryCore.Domain.getDomain
});
Object.defineProperty(VictoryLine, "getData", {
configurable: true,
enumerable: true,
writable: true,
value: _victoryCore.Data.getData
});
Object.defineProperty(VictoryLine, "getBaseProps", {
configurable: true,
enumerable: true,
writable: true,
value: function (props) {
return (0, _helperMethods.getBaseProps)(props, fallbackProps);
}
});
Object.defineProperty(VictoryLine, "expectedComponents", {
configurable: true,
enumerable: true,
writable: true,
value: ["dataComponent", "labelComponent", "groupComponent", "containerComponent"]
});
_defineProperty(VictoryLine, "expectedComponents", ["dataComponent", "labelComponent", "groupComponent", "containerComponent"]);
var _default = (0, _victoryCore.addEvents)(VictoryLine, options);
exports.default = _default;
{
"name": "victory-line",
"version": "36.3.2",
"version": "36.4.0",
"description": "Line Component for Victory",

@@ -22,6 +22,6 @@ "keywords": [

"dependencies": {
"d3-shape": "^1.2.0",
"lodash": "^4.17.19",
"prop-types": "^15.5.8",
"victory-core": "^36.3.2"
"victory-core": "^36.4.0",
"victory-vendor": "^36.4.0"
},

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

"sideEffects": false,
"gitHead": "18895d1290245732d14332bbbda10336032c9aab"
"gitHead": "2e05481eeb34f9801a90023a131a21aa7deff082"
}

@@ -5,3 +5,9 @@ /*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2] }]*/

import { assign } from "lodash";
import { Helpers, CommonProps, Path, LineHelpers } from "victory-core";
import {
Helpers,
CommonProps,
Path,
LineHelpers,
UserProps
} from "victory-core";

@@ -29,2 +35,3 @@ const evaluateProps = (props) => {

props = evaluateProps(props);
const userProps = UserProps.getSafeUserProps(props);
const { polar, origin } = props;

@@ -37,2 +44,3 @@ const lineFunction = LineHelpers.getLineFunction(props);

...props.events,
...userProps,
"aria-label": props.ariaLabel,

@@ -39,0 +47,0 @@ d: lineFunction(props.data),

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