victory-axis
Advanced tools
Comparing version 36.8.6 to 36.9.0
# victory-axis | ||
## 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 @@ |
@@ -1,2 +0,1 @@ | ||
import PropTypes from "prop-types"; | ||
import React from "react"; | ||
@@ -28,79 +27,2 @@ import { Axis, DomainPropType, EventPropTypeInterface, OrientationTypes, VictoryAxisCommonProps, VictoryCommonProps, VictorySingleLabelableProps, EventsMixinClass } from "victory-core"; | ||
}; | ||
static propTypes: { | ||
axisComponent: PropTypes.Requireable<PropTypes.ReactElementLike>; | ||
axisLabelComponent: PropTypes.Requireable<PropTypes.ReactElementLike>; | ||
axisValue: PropTypes.Requireable<string | number | object>; | ||
categories: PropTypes.Requireable<(string | null | undefined)[] | PropTypes.InferProps<{ | ||
x: PropTypes.Requireable<(string | null | undefined)[]>; | ||
y: PropTypes.Requireable<(string | null | undefined)[]>; | ||
}>>; | ||
crossAxis: PropTypes.Requireable<boolean>; | ||
dependentAxis: PropTypes.Requireable<boolean>; | ||
events: PropTypes.Requireable<(PropTypes.InferProps<{ | ||
target: PropTypes.Requireable<string>; | ||
eventKey: PropTypes.Requireable<string | number | any[]>; | ||
eventHandlers: PropTypes.Requireable<object>; | ||
}> | null | undefined)[]>; | ||
fixLabelOverlap: PropTypes.Requireable<boolean>; | ||
gridComponent: PropTypes.Requireable<PropTypes.ReactElementLike>; | ||
groupComponent: PropTypes.Requireable<PropTypes.ReactElementLike>; | ||
invertAxis: PropTypes.Requireable<boolean>; | ||
label: PropTypes.Requireable<any>; | ||
offsetX: PropTypes.Requireable<number>; | ||
offsetY: PropTypes.Requireable<number>; | ||
orientation: PropTypes.Requireable<string>; | ||
origin: PropTypes.Requireable<PropTypes.InferProps<{ | ||
x: PropTypes.Requireable<number>; | ||
y: PropTypes.Requireable<number>; | ||
}>>; | ||
stringMap: PropTypes.Requireable<object>; | ||
style: PropTypes.Requireable<PropTypes.InferProps<{ | ||
parent: PropTypes.Requireable<object>; | ||
axis: PropTypes.Requireable<object>; | ||
axisLabel: PropTypes.Requireable<object>; | ||
grid: PropTypes.Requireable<object>; | ||
ticks: PropTypes.Requireable<object>; | ||
tickLabels: PropTypes.Requireable<object>; | ||
}>>; | ||
tickComponent: PropTypes.Requireable<PropTypes.ReactElementLike>; | ||
tickCount: PropTypes.Requireable<number | null | undefined>; | ||
tickFormat: PropTypes.Requireable<((...args: any[]) => any) | unknown[]>; | ||
tickLabelComponent: PropTypes.Requireable<PropTypes.ReactElementLike>; | ||
tickValues: PropTypes.Requireable<unknown[] | 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; | ||
domainPadding?: React.Validator<import("victory-core").ForAxes<import("victory-core").PaddingType> | null | undefined> | undefined; | ||
externalEventMutations?: React.Validator<import("victory-core").EventCallbackInterface<string | string[], import("victory-core").StringOrNumberOrList>[] | 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; | ||
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").ScaleName | import("victory-core").D3Scale<any> | { | ||
x?: import("victory-core").ScaleName | import("victory-core").D3Scale<any> | undefined; | ||
y?: import("victory-core").ScaleName | import("victory-core").D3Scale<any> | 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: { | ||
@@ -185,3 +107,3 @@ axisComponent: JSX.Element; | ||
animate: boolean | import("victory-core").AnimatePropTypeInterface; | ||
colorScale: string[] | "grayscale" | "qualitative" | "heatmap" | "warm" | "cool" | "red" | "green" | "blue"; | ||
colorScale: "grayscale" | "qualitative" | "heatmap" | "warm" | "cool" | "red" | "green" | "blue" | string[]; | ||
containerComponent: React.ReactElement<any, string | React.JSXElementConstructor<any>>; | ||
@@ -262,3 +184,3 @@ domainPadding: number | import("victory-core").Tuple<number> | { | ||
animate: boolean | import("victory-core").AnimatePropTypeInterface; | ||
colorScale: string[] | "grayscale" | "qualitative" | "heatmap" | "warm" | "cool" | "red" | "green" | "blue"; | ||
colorScale: "grayscale" | "qualitative" | "heatmap" | "warm" | "cool" | "red" | "green" | "blue" | string[]; | ||
containerComponent: React.ReactElement<any, string | React.JSXElementConstructor<any>>; | ||
@@ -265,0 +187,0 @@ domainPadding: number | import("victory-core").Tuple<number> | { |
import _isEmpty from "lodash/isEmpty"; | ||
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 _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } | ||
@@ -41,5 +35,4 @@ | ||
import PropTypes from "prop-types"; | ||
import React from "react"; | ||
import { PropTypes as CustomPropTypes, VictoryLabel, CommonProps, VictoryContainer, VictoryTheme, LineSegment, TextSize, addEvents, Axis, UserProps } from "victory-core"; | ||
import { VictoryLabel, VictoryContainer, VictoryTheme, LineSegment, TextSize, addEvents, Axis, UserProps } from "victory-core"; | ||
import { getBaseProps, getStyles } from "./helper-methods"; | ||
@@ -239,44 +232,2 @@ var fallbackProps = { | ||
}; | ||
VictoryAxisBase.propTypes = _objectSpread(_objectSpread({}, CommonProps.baseProps), {}, { | ||
axisComponent: PropTypes.element, | ||
axisLabelComponent: PropTypes.element, | ||
axisValue: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object]), | ||
categories: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.shape({ | ||
x: PropTypes.arrayOf(PropTypes.string), | ||
y: PropTypes.arrayOf(PropTypes.string) | ||
})]), | ||
crossAxis: PropTypes.bool, | ||
dependentAxis: PropTypes.bool, | ||
events: PropTypes.arrayOf(PropTypes.shape({ | ||
target: PropTypes.oneOf(["axis", "axisLabel", "grid", "ticks", "tickLabels"]), | ||
eventKey: PropTypes.oneOfType([PropTypes.array, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string]), | ||
eventHandlers: PropTypes.object | ||
})), | ||
fixLabelOverlap: PropTypes.bool, | ||
gridComponent: PropTypes.element, | ||
groupComponent: PropTypes.element, | ||
invertAxis: PropTypes.bool, | ||
label: PropTypes.any, | ||
offsetX: PropTypes.number, | ||
offsetY: PropTypes.number, | ||
orientation: PropTypes.oneOf(["top", "bottom", "left", "right"]), | ||
origin: PropTypes.shape({ | ||
x: PropTypes.number, | ||
y: PropTypes.number | ||
}), | ||
stringMap: PropTypes.object, | ||
style: PropTypes.shape({ | ||
parent: PropTypes.object, | ||
axis: PropTypes.object, | ||
axisLabel: PropTypes.object, | ||
grid: PropTypes.object, | ||
ticks: PropTypes.object, | ||
tickLabels: PropTypes.object | ||
}), | ||
tickComponent: PropTypes.element, | ||
tickCount: CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.greaterThanZero]), | ||
tickFormat: PropTypes.oneOfType([PropTypes.func, CustomPropTypes.homogeneousArray]), | ||
tickLabelComponent: PropTypes.element, | ||
tickValues: CustomPropTypes.homogeneousArray | ||
}); | ||
VictoryAxisBase.defaultProps = { | ||
@@ -283,0 +234,0 @@ axisComponent: /*#__PURE__*/React.createElement(LineSegment, null), |
@@ -1,2 +0,1 @@ | ||
import PropTypes from "prop-types"; | ||
import React from "react"; | ||
@@ -28,79 +27,2 @@ import { Axis, DomainPropType, EventPropTypeInterface, OrientationTypes, VictoryAxisCommonProps, VictoryCommonProps, VictorySingleLabelableProps, EventsMixinClass } from "victory-core"; | ||
}; | ||
static propTypes: { | ||
axisComponent: PropTypes.Requireable<PropTypes.ReactElementLike>; | ||
axisLabelComponent: PropTypes.Requireable<PropTypes.ReactElementLike>; | ||
axisValue: PropTypes.Requireable<string | number | object>; | ||
categories: PropTypes.Requireable<(string | null | undefined)[] | PropTypes.InferProps<{ | ||
x: PropTypes.Requireable<(string | null | undefined)[]>; | ||
y: PropTypes.Requireable<(string | null | undefined)[]>; | ||
}>>; | ||
crossAxis: PropTypes.Requireable<boolean>; | ||
dependentAxis: PropTypes.Requireable<boolean>; | ||
events: PropTypes.Requireable<(PropTypes.InferProps<{ | ||
target: PropTypes.Requireable<string>; | ||
eventKey: PropTypes.Requireable<string | number | any[]>; | ||
eventHandlers: PropTypes.Requireable<object>; | ||
}> | null | undefined)[]>; | ||
fixLabelOverlap: PropTypes.Requireable<boolean>; | ||
gridComponent: PropTypes.Requireable<PropTypes.ReactElementLike>; | ||
groupComponent: PropTypes.Requireable<PropTypes.ReactElementLike>; | ||
invertAxis: PropTypes.Requireable<boolean>; | ||
label: PropTypes.Requireable<any>; | ||
offsetX: PropTypes.Requireable<number>; | ||
offsetY: PropTypes.Requireable<number>; | ||
orientation: PropTypes.Requireable<string>; | ||
origin: PropTypes.Requireable<PropTypes.InferProps<{ | ||
x: PropTypes.Requireable<number>; | ||
y: PropTypes.Requireable<number>; | ||
}>>; | ||
stringMap: PropTypes.Requireable<object>; | ||
style: PropTypes.Requireable<PropTypes.InferProps<{ | ||
parent: PropTypes.Requireable<object>; | ||
axis: PropTypes.Requireable<object>; | ||
axisLabel: PropTypes.Requireable<object>; | ||
grid: PropTypes.Requireable<object>; | ||
ticks: PropTypes.Requireable<object>; | ||
tickLabels: PropTypes.Requireable<object>; | ||
}>>; | ||
tickComponent: PropTypes.Requireable<PropTypes.ReactElementLike>; | ||
tickCount: PropTypes.Requireable<number | null | undefined>; | ||
tickFormat: PropTypes.Requireable<((...args: any[]) => any) | unknown[]>; | ||
tickLabelComponent: PropTypes.Requireable<PropTypes.ReactElementLike>; | ||
tickValues: PropTypes.Requireable<unknown[] | 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; | ||
domainPadding?: React.Validator<import("victory-core").ForAxes<import("victory-core").PaddingType> | null | undefined> | undefined; | ||
externalEventMutations?: React.Validator<import("victory-core").EventCallbackInterface<string | string[], import("victory-core").StringOrNumberOrList>[] | 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; | ||
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").ScaleName | import("victory-core").D3Scale<any> | { | ||
x?: import("victory-core").ScaleName | import("victory-core").D3Scale<any> | undefined; | ||
y?: import("victory-core").ScaleName | import("victory-core").D3Scale<any> | 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: { | ||
@@ -185,3 +107,3 @@ axisComponent: JSX.Element; | ||
animate: boolean | import("victory-core").AnimatePropTypeInterface; | ||
colorScale: string[] | "grayscale" | "qualitative" | "heatmap" | "warm" | "cool" | "red" | "green" | "blue"; | ||
colorScale: "grayscale" | "qualitative" | "heatmap" | "warm" | "cool" | "red" | "green" | "blue" | string[]; | ||
containerComponent: React.ReactElement<any, string | React.JSXElementConstructor<any>>; | ||
@@ -262,3 +184,3 @@ domainPadding: number | import("victory-core").Tuple<number> | { | ||
animate: boolean | import("victory-core").AnimatePropTypeInterface; | ||
colorScale: string[] | "grayscale" | "qualitative" | "heatmap" | "warm" | "cool" | "red" | "green" | "blue"; | ||
colorScale: "grayscale" | "qualitative" | "heatmap" | "warm" | "cool" | "red" | "green" | "blue" | string[]; | ||
containerComponent: React.ReactElement<any, string | React.JSXElementConstructor<any>>; | ||
@@ -265,0 +187,0 @@ domainPadding: number | import("victory-core").Tuple<number> | { |
@@ -10,4 +10,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 _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } | ||
@@ -263,44 +255,2 @@ | ||
}; | ||
VictoryAxisBase.propTypes = _objectSpread(_objectSpread({}, _victoryCore.CommonProps.baseProps), {}, { | ||
axisComponent: _propTypes.default.element, | ||
axisLabelComponent: _propTypes.default.element, | ||
axisValue: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string, _propTypes.default.object]), | ||
categories: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string), _propTypes.default.shape({ | ||
x: _propTypes.default.arrayOf(_propTypes.default.string), | ||
y: _propTypes.default.arrayOf(_propTypes.default.string) | ||
})]), | ||
crossAxis: _propTypes.default.bool, | ||
dependentAxis: _propTypes.default.bool, | ||
events: _propTypes.default.arrayOf(_propTypes.default.shape({ | ||
target: _propTypes.default.oneOf(["axis", "axisLabel", "grid", "ticks", "tickLabels"]), | ||
eventKey: _propTypes.default.oneOfType([_propTypes.default.array, _victoryCore.PropTypes.allOfType([_victoryCore.PropTypes.integer, _victoryCore.PropTypes.nonNegative]), _propTypes.default.string]), | ||
eventHandlers: _propTypes.default.object | ||
})), | ||
fixLabelOverlap: _propTypes.default.bool, | ||
gridComponent: _propTypes.default.element, | ||
groupComponent: _propTypes.default.element, | ||
invertAxis: _propTypes.default.bool, | ||
label: _propTypes.default.any, | ||
offsetX: _propTypes.default.number, | ||
offsetY: _propTypes.default.number, | ||
orientation: _propTypes.default.oneOf(["top", "bottom", "left", "right"]), | ||
origin: _propTypes.default.shape({ | ||
x: _propTypes.default.number, | ||
y: _propTypes.default.number | ||
}), | ||
stringMap: _propTypes.default.object, | ||
style: _propTypes.default.shape({ | ||
parent: _propTypes.default.object, | ||
axis: _propTypes.default.object, | ||
axisLabel: _propTypes.default.object, | ||
grid: _propTypes.default.object, | ||
ticks: _propTypes.default.object, | ||
tickLabels: _propTypes.default.object | ||
}), | ||
tickComponent: _propTypes.default.element, | ||
tickCount: _victoryCore.PropTypes.allOfType([_victoryCore.PropTypes.integer, _victoryCore.PropTypes.greaterThanZero]), | ||
tickFormat: _propTypes.default.oneOfType([_propTypes.default.func, _victoryCore.PropTypes.homogeneousArray]), | ||
tickLabelComponent: _propTypes.default.element, | ||
tickValues: _victoryCore.PropTypes.homogeneousArray | ||
}); | ||
VictoryAxisBase.defaultProps = { | ||
@@ -307,0 +257,0 @@ axisComponent: /*#__PURE__*/_react.default.createElement(_victoryCore.LineSegment, null), |
{ | ||
"name": "victory-axis", | ||
"version": "36.8.6", | ||
"version": "36.9.0", | ||
"description": "Axis Component for Victory", | ||
@@ -24,4 +24,3 @@ "keywords": [ | ||
"lodash": "^4.17.19", | ||
"prop-types": "^15.8.1", | ||
"victory-core": "^36.8.6" | ||
"victory-core": "^36.9.0" | ||
}, | ||
@@ -28,0 +27,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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3
1225279
20913
- Removedprop-types@^15.8.1
- Removedobject-assign@4.1.1(transitive)
- Removedprop-types@15.8.1(transitive)
- Removedreact-is@16.13.1(transitive)
Updatedvictory-core@^36.9.0