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

victory-line

Package Overview
Dependencies
Maintainers
21
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.8.6 to 36.9.0

6

CHANGELOG.md
# victory-line
## 36.9.0
### Minor Changes
- Remove prop-types definitions and dependency ([#2758](https://github.com/FormidableLabs/victory/pull/2758))
## 36.8.6

@@ -4,0 +10,0 @@

15

es/curve.js

@@ -9,4 +9,3 @@ 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; }

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

@@ -61,12 +60,2 @@ var evaluateProps = function (props) {

}));
};
Curve.propTypes = _objectSpread(_objectSpread({}, CommonProps.primitiveProps), {}, {
interpolation: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
openCurve: PropTypes.bool,
origin: PropTypes.shape({
x: PropTypes.number.isRequired,
y: PropTypes.number.isRequired
}),
pathComponent: PropTypes.element,
polar: PropTypes.bool
});
};

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

import PropTypes from "prop-types";
import React from "react";

@@ -14,53 +13,2 @@ import { Data, Domain, EventPropTypeInterface, InterpolationPropType, StringOrNumberOrCallback, VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps, VictoryLabelableProps, VictoryStyleInterface, EventsMixinClass } from "victory-core";

static continuous: boolean;
static propTypes: {
interpolation: PropTypes.Requireable<string | ((...args: any[]) => any)>;
label: PropTypes.Validator<string | null | undefined>;
categories?: React.Validator<import("victory-core").CategoryPropType | null | undefined> | undefined;
data?: React.Validator<readonly any[] | null | undefined> | undefined;
dataComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
domain?: React.Validator<import("victory-core").ForAxes<import("victory-core").DomainTuple> | null | undefined> | undefined;
domainPadding?: React.Validator<import("victory-core").ForAxes<import("victory-core").PaddingType> | null | undefined> | undefined;
samples?: React.Validator<number | null | undefined> | undefined;
sortKey?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
sortOrder?: React.Validator<import("victory-core").SortOrderPropType | null | undefined> | undefined;
x?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
y?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
y0?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
theme?: React.Validator<import("victory-core").VictoryThemeDefinition | null | undefined> | undefined;
animate?: React.Validator<boolean | import("victory-core").AnimatePropTypeInterface | null | undefined> | undefined;
colorScale?: React.Validator<import("victory-core").ColorScalePropType | null | undefined> | undefined;
containerComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
disableInlineStyles?: React.Validator<boolean | null | undefined> | undefined;
externalEventMutations?: React.Validator<import("victory-core").EventCallbackInterface<string | string[], import("victory-core").StringOrNumberOrList>[] | null | undefined> | undefined;
groupComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
height?: React.Validator<number | null | undefined> | undefined;
horizontal?: React.Validator<boolean | null | undefined> | undefined;
maxDomain?: React.Validator<number | {
x?: number | undefined;
y?: number | undefined;
} | null | undefined> | undefined;
minDomain?: React.Validator<number | {
x?: number | undefined;
y?: number | undefined;
} | null | undefined> | undefined;
name?: React.Validator<string | null | undefined> | undefined;
origin?: React.Validator<import("victory-core").OriginType | null | undefined> | undefined;
padding?: React.Validator<import("victory-core").PaddingProps | null | undefined> | undefined;
polar?: React.Validator<boolean | null | undefined> | undefined;
range?: React.Validator<import("victory-core").ForAxes<import("victory-core").RangeTuple> | null | undefined> | undefined;
scale?: React.Validator<import("victory-core").D3Scale<any> | import("victory-core").ScaleName | {
x?: import("victory-core").D3Scale<any> | import("victory-core").ScaleName | undefined;
y?: import("victory-core").D3Scale<any> | import("victory-core").ScaleName | undefined;
} | null | undefined> | undefined;
sharedEvents?: React.Validator<{
events: any[];
getEventState: Function;
} | null | undefined> | undefined;
singleQuadrantDomainPadding?: React.Validator<boolean | {
x?: boolean | undefined;
y?: boolean | undefined;
} | null | undefined> | undefined;
standalone?: React.Validator<boolean | null | undefined> | undefined;
width?: React.Validator<number | null | undefined> | undefined;
};
static defaultProps: {

@@ -67,0 +15,0 @@ containerComponent: JSX.Element;

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

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; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -27,7 +21,6 @@

import PropTypes from "prop-types";
import React from "react";
import { getBaseProps } from "./helper-methods";
import { Curve } from "./curve";
import { PropTypes as CustomPropTypes, Helpers, VictoryLabel, addEvents, VictoryContainer, VictoryTheme, DefaultTransitions, VictoryClipContainer, Data, Domain, CommonProps, UserProps } from "victory-core";
import { Helpers, VictoryLabel, addEvents, VictoryContainer, VictoryTheme, DefaultTransitions, VictoryClipContainer, Data, Domain, UserProps } from "victory-core";
var fallbackProps = {

@@ -94,6 +87,2 @@ width: 450,

VictoryLineBase.continuous = true;
VictoryLineBase.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")
});
VictoryLineBase.defaultProps = {

@@ -100,0 +89,0 @@ containerComponent: /*#__PURE__*/React.createElement(VictoryContainer, null),

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

var _propTypes = _interopRequireDefault(require("prop-types"));
var _victoryCore = require("victory-core");

@@ -82,12 +80,2 @@

exports.Curve = Curve;
Curve.propTypes = _objectSpread(_objectSpread({}, _victoryCore.CommonProps.primitiveProps), {}, {
interpolation: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.func]),
openCurve: _propTypes.default.bool,
origin: _propTypes.default.shape({
x: _propTypes.default.number.isRequired,
y: _propTypes.default.number.isRequired
}),
pathComponent: _propTypes.default.element,
polar: _propTypes.default.bool
});
exports.Curve = Curve;

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

import PropTypes from "prop-types";
import React from "react";

@@ -14,53 +13,2 @@ import { Data, Domain, EventPropTypeInterface, InterpolationPropType, StringOrNumberOrCallback, VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps, VictoryLabelableProps, VictoryStyleInterface, EventsMixinClass } from "victory-core";

static continuous: boolean;
static propTypes: {
interpolation: PropTypes.Requireable<string | ((...args: any[]) => any)>;
label: PropTypes.Validator<string | null | undefined>;
categories?: React.Validator<import("victory-core").CategoryPropType | null | undefined> | undefined;
data?: React.Validator<readonly any[] | null | undefined> | undefined;
dataComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
domain?: React.Validator<import("victory-core").ForAxes<import("victory-core").DomainTuple> | null | undefined> | undefined;
domainPadding?: React.Validator<import("victory-core").ForAxes<import("victory-core").PaddingType> | null | undefined> | undefined;
samples?: React.Validator<number | null | undefined> | undefined;
sortKey?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
sortOrder?: React.Validator<import("victory-core").SortOrderPropType | null | undefined> | undefined;
x?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
y?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
y0?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
theme?: React.Validator<import("victory-core").VictoryThemeDefinition | null | undefined> | undefined;
animate?: React.Validator<boolean | import("victory-core").AnimatePropTypeInterface | null | undefined> | undefined;
colorScale?: React.Validator<import("victory-core").ColorScalePropType | null | undefined> | undefined;
containerComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
disableInlineStyles?: React.Validator<boolean | null | undefined> | undefined;
externalEventMutations?: React.Validator<import("victory-core").EventCallbackInterface<string | string[], import("victory-core").StringOrNumberOrList>[] | null | undefined> | undefined;
groupComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
height?: React.Validator<number | null | undefined> | undefined;
horizontal?: React.Validator<boolean | null | undefined> | undefined;
maxDomain?: React.Validator<number | {
x?: number | undefined;
y?: number | undefined;
} | null | undefined> | undefined;
minDomain?: React.Validator<number | {
x?: number | undefined;
y?: number | undefined;
} | null | undefined> | undefined;
name?: React.Validator<string | null | undefined> | undefined;
origin?: React.Validator<import("victory-core").OriginType | null | undefined> | undefined;
padding?: React.Validator<import("victory-core").PaddingProps | null | undefined> | undefined;
polar?: React.Validator<boolean | null | undefined> | undefined;
range?: React.Validator<import("victory-core").ForAxes<import("victory-core").RangeTuple> | null | undefined> | undefined;
scale?: React.Validator<import("victory-core").D3Scale<any> | import("victory-core").ScaleName | {
x?: import("victory-core").D3Scale<any> | import("victory-core").ScaleName | undefined;
y?: import("victory-core").D3Scale<any> | import("victory-core").ScaleName | undefined;
} | null | undefined> | undefined;
sharedEvents?: React.Validator<{
events: any[];
getEventState: Function;
} | null | undefined> | undefined;
singleQuadrantDomainPadding?: React.Validator<boolean | {
x?: boolean | undefined;
y?: boolean | undefined;
} | null | undefined> | undefined;
standalone?: React.Validator<boolean | null | undefined> | undefined;
width?: React.Validator<number | null | undefined> | undefined;
};
static defaultProps: {

@@ -67,0 +15,0 @@ containerComponent: JSX.Element;

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

var _propTypes = _interopRequireDefault(require("prop-types"));
var _react = _interopRequireDefault(require("react"));

@@ -21,8 +19,2 @@

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; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -110,6 +102,2 @@

VictoryLineBase.continuous = true;
VictoryLineBase.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")
});
VictoryLineBase.defaultProps = {

@@ -116,0 +104,0 @@ containerComponent: /*#__PURE__*/_react.default.createElement(_victoryCore.VictoryContainer, null),

{
"name": "victory-line",
"version": "36.8.6",
"version": "36.9.0",
"description": "Line Component for Victory",

@@ -24,5 +24,4 @@ "keywords": [

"lodash": "^4.17.19",
"prop-types": "^15.8.1",
"victory-core": "^36.8.6",
"victory-vendor": "^36.8.6"
"victory-core": "^36.9.0",
"victory-vendor": "^36.9.0"
},

@@ -29,0 +28,0 @@ "peerDependencies": {

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

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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