victory-core 36.8.6 → 36.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/victory-core.js +74 -2349
- package/dist/victory-core.min.js +1 -1
- package/es/victory-accessible-group/victory-accessible-group.d.ts +0 -9
- package/es/victory-accessible-group/victory-accessible-group.js +0 -9
- package/es/victory-animation/victory-animation.d.ts +0 -9
- package/es/victory-animation/victory-animation.js +0 -9
- package/es/victory-clip-container/victory-clip-container.d.ts +0 -30
- package/es/victory-clip-container/victory-clip-container.js +0 -31
- package/es/victory-container/victory-container.d.ts +0 -31
- package/es/victory-container/victory-container.js +0 -32
- package/es/victory-label/victory-label.js +1 -52
- package/es/victory-portal/portal.d.ts +0 -8
- package/es/victory-portal/portal.js +1 -10
- package/es/victory-portal/victory-portal.d.ts +0 -5
- package/es/victory-portal/victory-portal.js +0 -5
- package/es/victory-primitives/arc.d.ts +1 -32
- package/es/victory-primitives/arc.js +1 -13
- package/es/victory-primitives/background.d.ts +1 -32
- package/es/victory-primitives/background.js +1 -13
- package/es/victory-primitives/border.d.ts +1 -29
- package/es/victory-primitives/border.js +1 -10
- package/es/victory-primitives/line-segment.d.ts +1 -30
- package/es/victory-primitives/line-segment.js +1 -11
- package/es/victory-primitives/point.d.ts +1 -31
- package/es/victory-primitives/point.js +1 -12
- package/es/victory-primitives/whisker.d.ts +1 -38
- package/es/victory-primitives/whisker.js +1 -19
- package/es/victory-transition/victory-transition.d.ts +0 -6
- package/es/victory-transition/victory-transition.js +0 -6
- package/es/victory-util/common-props.d.ts +0 -5
- package/es/victory-util/common-props.js +1 -132
- package/es/victory-util/index.d.ts +0 -1
- package/es/victory-util/index.js +0 -2
- package/lib/victory-accessible-group/victory-accessible-group.d.ts +0 -9
- package/lib/victory-accessible-group/victory-accessible-group.js +0 -10
- package/lib/victory-animation/victory-animation.d.ts +0 -9
- package/lib/victory-animation/victory-animation.js +0 -10
- package/lib/victory-clip-container/victory-clip-container.d.ts +0 -30
- package/lib/victory-clip-container/victory-clip-container.js +0 -33
- package/lib/victory-container/victory-container.d.ts +0 -31
- package/lib/victory-container/victory-container.js +0 -34
- package/lib/victory-label/victory-label.js +1 -54
- package/lib/victory-portal/portal.d.ts +0 -8
- package/lib/victory-portal/portal.js +1 -16
- package/lib/victory-portal/victory-portal.d.ts +0 -5
- package/lib/victory-portal/victory-portal.js +0 -6
- package/lib/victory-primitives/arc.d.ts +1 -32
- package/lib/victory-primitives/arc.js +1 -15
- package/lib/victory-primitives/background.d.ts +1 -32
- package/lib/victory-primitives/background.js +1 -15
- package/lib/victory-primitives/border.d.ts +1 -29
- package/lib/victory-primitives/border.js +1 -12
- package/lib/victory-primitives/line-segment.d.ts +1 -30
- package/lib/victory-primitives/line-segment.js +1 -13
- package/lib/victory-primitives/point.d.ts +1 -31
- package/lib/victory-primitives/point.js +1 -14
- package/lib/victory-primitives/whisker.d.ts +1 -38
- package/lib/victory-primitives/whisker.js +1 -21
- package/lib/victory-transition/victory-transition.d.ts +0 -6
- package/lib/victory-transition/victory-transition.js +0 -7
- package/lib/victory-util/common-props.d.ts +0 -5
- package/lib/victory-util/common-props.js +1 -148
- package/lib/victory-util/index.d.ts +0 -1
- package/lib/victory-util/index.js +1 -6
- package/package.json +2 -3
- package/src/victory-accessible-group/victory-accessible-group.tsx +0 -12
- package/src/victory-animation/victory-animation.tsx +0 -51
- package/src/victory-clip-container/victory-clip-container.tsx +0 -34
- package/src/victory-container/victory-container.tsx +0 -35
- package/src/victory-label/victory-label.tsx +0 -83
- package/src/victory-portal/portal.tsx +0 -9
- package/src/victory-portal/victory-portal.tsx +0 -6
- package/src/victory-primitives/arc.tsx +1 -17
- package/src/victory-primitives/background.tsx +1 -17
- package/src/victory-primitives/border.tsx +1 -14
- package/src/victory-primitives/line-segment.tsx +1 -15
- package/src/victory-primitives/point.tsx +1 -29
- package/src/victory-primitives/whisker.tsx +1 -23
- package/src/victory-transition/victory-transition.tsx +0 -7
- package/src/victory-util/common-props.tsx +0 -218
- package/src/victory-util/index.ts +0 -1
- package/es/victory-util/prop-types.d.ts +0 -51
- package/es/victory-util/prop-types.js +0 -241
- package/lib/victory-util/prop-types.d.ts +0 -51
- package/lib/victory-util/prop-types.js +0 -269
- package/src/victory-util/prop-types.ts +0 -254
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
2
|
import TimerContext from "../victory-util/timer-context";
|
|
4
3
|
import Timer from "../victory-util/timer";
|
|
5
4
|
declare type VictoryTransitionChild = React.ReactElement<{
|
|
@@ -33,11 +32,6 @@ export interface VictoryTransition {
|
|
|
33
32
|
}
|
|
34
33
|
export declare class VictoryTransition extends React.Component<VictoryTransitionProps, VictoryTransitionState> {
|
|
35
34
|
static displayName: string;
|
|
36
|
-
static propTypes: {
|
|
37
|
-
animate: PropTypes.Requireable<boolean | object>;
|
|
38
|
-
animationWhitelist: PropTypes.Requireable<any[]>;
|
|
39
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
40
|
-
};
|
|
41
35
|
static contextType: React.Context<{
|
|
42
36
|
transitionTimer: Timer;
|
|
43
37
|
animationTimer: Timer;
|
|
@@ -13,8 +13,6 @@ var _defaults2 = _interopRequireDefault(require("lodash/defaults"));
|
|
|
13
13
|
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
|
|
16
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
|
-
|
|
18
16
|
var _victoryAnimation = require("../victory-animation/victory-animation");
|
|
19
17
|
|
|
20
18
|
var Collection = _interopRequireWildcard(require("../victory-util/collection"));
|
|
@@ -256,9 +254,4 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
256
254
|
|
|
257
255
|
exports.VictoryTransition = VictoryTransition;
|
|
258
256
|
VictoryTransition.displayName = "VictoryTransition";
|
|
259
|
-
VictoryTransition.propTypes = {
|
|
260
|
-
animate: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.object]),
|
|
261
|
-
animationWhitelist: _propTypes.default.array,
|
|
262
|
-
children: _propTypes.default.node
|
|
263
|
-
};
|
|
264
257
|
VictoryTransition.contextType = _timerContext.default;
|
|
@@ -77,9 +77,4 @@ export interface VictoryCommonPrimitiveProps {
|
|
|
77
77
|
tabIndex?: NumberOrCallback;
|
|
78
78
|
transform?: string;
|
|
79
79
|
}
|
|
80
|
-
export declare const CommonProps: {
|
|
81
|
-
dataProps: React.WeakValidationMap<VictoryDatableProps>;
|
|
82
|
-
baseProps: React.WeakValidationMap<VictoryCommonProps>;
|
|
83
|
-
primitiveProps: React.WeakValidationMap<VictoryCommonPrimitiveProps>;
|
|
84
|
-
};
|
|
85
80
|
//# sourceMappingURL=common-props.d.ts.map
|
|
@@ -1,148 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.CommonProps = void 0;
|
|
7
|
-
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
|
|
10
|
-
var CustomPropTypes = _interopRequireWildcard(require("./prop-types"));
|
|
11
|
-
|
|
12
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
|
-
|
|
14
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
|
-
var dataProps = {
|
|
19
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
20
|
-
categories: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string), _propTypes.default.shape({
|
|
21
|
-
x: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
22
|
-
y: _propTypes.default.arrayOf(_propTypes.default.string)
|
|
23
|
-
})]),
|
|
24
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
25
|
-
data: _propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.object]),
|
|
26
|
-
dataComponent: _propTypes.default.element,
|
|
27
|
-
disableInlineStyles: _propTypes.default.bool,
|
|
28
|
-
labelComponent: _propTypes.default.element,
|
|
29
|
-
labels: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.array]),
|
|
30
|
-
samples: CustomPropTypes.nonNegative,
|
|
31
|
-
sortKey: _propTypes.default.oneOfType([_propTypes.default.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), _propTypes.default.string, _propTypes.default.arrayOf(_propTypes.default.string.isRequired)]),
|
|
32
|
-
sortOrder: _propTypes.default.oneOf(["ascending", "descending"]),
|
|
33
|
-
style: _propTypes.default.shape({
|
|
34
|
-
parent: _propTypes.default.object,
|
|
35
|
-
data: _propTypes.default.object,
|
|
36
|
-
labels: _propTypes.default.object
|
|
37
|
-
}),
|
|
38
|
-
x: _propTypes.default.oneOfType([_propTypes.default.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), _propTypes.default.string, _propTypes.default.arrayOf(_propTypes.default.string.isRequired)]),
|
|
39
|
-
y: _propTypes.default.oneOfType([_propTypes.default.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), _propTypes.default.string, _propTypes.default.arrayOf(_propTypes.default.string.isRequired)]),
|
|
40
|
-
y0: _propTypes.default.oneOfType([_propTypes.default.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), _propTypes.default.string, _propTypes.default.arrayOf(_propTypes.default.string.isRequired)])
|
|
41
|
-
};
|
|
42
|
-
var baseProps = {
|
|
43
|
-
animate: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.object]),
|
|
44
|
-
containerComponent: _propTypes.default.element,
|
|
45
|
-
domain: _propTypes.default.oneOfType([CustomPropTypes.domain, _propTypes.default.shape({
|
|
46
|
-
x: CustomPropTypes.domain,
|
|
47
|
-
y: CustomPropTypes.domain
|
|
48
|
-
})]),
|
|
49
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
50
|
-
maxDomain: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.instanceOf(Date), _propTypes.default.shape({
|
|
51
|
-
x: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.instanceOf(Date)]),
|
|
52
|
-
y: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.instanceOf(Date)])
|
|
53
|
-
})]),
|
|
54
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
55
|
-
minDomain: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.instanceOf(Date), _propTypes.default.shape({
|
|
56
|
-
x: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.instanceOf(Date)]),
|
|
57
|
-
y: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.instanceOf(Date)])
|
|
58
|
-
})]),
|
|
59
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
60
|
-
domainPadding: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
61
|
-
x: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.arrayOf(_propTypes.default.number)]),
|
|
62
|
-
y: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.arrayOf(_propTypes.default.number)])
|
|
63
|
-
}), _propTypes.default.number, _propTypes.default.arrayOf(_propTypes.default.number)]),
|
|
64
|
-
eventKey: _propTypes.default.oneOfType([_propTypes.default.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), _propTypes.default.string]),
|
|
65
|
-
events: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
66
|
-
target: _propTypes.default.oneOf(["data", "labels", "parent"]),
|
|
67
|
-
eventKey: _propTypes.default.oneOfType([_propTypes.default.array, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), _propTypes.default.string]),
|
|
68
|
-
eventHandlers: _propTypes.default.object
|
|
69
|
-
})),
|
|
70
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
71
|
-
externalEventMutations: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
72
|
-
callback: _propTypes.default.func,
|
|
73
|
-
childName: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.array]),
|
|
74
|
-
eventKey: _propTypes.default.oneOfType([_propTypes.default.array, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), _propTypes.default.string]),
|
|
75
|
-
mutation: _propTypes.default.func,
|
|
76
|
-
target: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.array])
|
|
77
|
-
})),
|
|
78
|
-
groupComponent: _propTypes.default.element,
|
|
79
|
-
height: CustomPropTypes.nonNegative,
|
|
80
|
-
name: _propTypes.default.string,
|
|
81
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
82
|
-
origin: _propTypes.default.shape({
|
|
83
|
-
x: _propTypes.default.number,
|
|
84
|
-
y: _propTypes.default.number
|
|
85
|
-
}),
|
|
86
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
87
|
-
padding: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
|
|
88
|
-
top: _propTypes.default.number,
|
|
89
|
-
bottom: _propTypes.default.number,
|
|
90
|
-
left: _propTypes.default.number,
|
|
91
|
-
right: _propTypes.default.number
|
|
92
|
-
})]),
|
|
93
|
-
polar: _propTypes.default.bool,
|
|
94
|
-
range: _propTypes.default.oneOfType([CustomPropTypes.domain, _propTypes.default.shape({
|
|
95
|
-
x: CustomPropTypes.domain.isRequired,
|
|
96
|
-
y: CustomPropTypes.domain.isRequired
|
|
97
|
-
})]),
|
|
98
|
-
scale: _propTypes.default.oneOfType([CustomPropTypes.scale, _propTypes.default.shape({
|
|
99
|
-
x: CustomPropTypes.scale.isRequired,
|
|
100
|
-
y: CustomPropTypes.scale.isRequired
|
|
101
|
-
})]),
|
|
102
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
103
|
-
sharedEvents: _propTypes.default.shape({
|
|
104
|
-
events: _propTypes.default.array,
|
|
105
|
-
getEventState: _propTypes.default.func
|
|
106
|
-
}),
|
|
107
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
108
|
-
singleQuadrantDomainPadding: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.shape({
|
|
109
|
-
x: _propTypes.default.oneOfType([_propTypes.default.bool]),
|
|
110
|
-
y: _propTypes.default.oneOfType([_propTypes.default.bool])
|
|
111
|
-
})]),
|
|
112
|
-
standalone: _propTypes.default.bool,
|
|
113
|
-
theme: _propTypes.default.object,
|
|
114
|
-
width: CustomPropTypes.nonNegative
|
|
115
|
-
};
|
|
116
|
-
var primitiveProps = {
|
|
117
|
-
active: _propTypes.default.bool,
|
|
118
|
-
ariaLabel: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.func]),
|
|
119
|
-
className: _propTypes.default.string,
|
|
120
|
-
clipPath: _propTypes.default.string,
|
|
121
|
-
data: _propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.object]),
|
|
122
|
-
desc: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.func]),
|
|
123
|
-
disableInlineStyles: _propTypes.default.bool,
|
|
124
|
-
events: _propTypes.default.object,
|
|
125
|
-
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string, _propTypes.default.func]),
|
|
126
|
-
index: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
127
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
128
|
-
origin: _propTypes.default.shape({
|
|
129
|
-
x: _propTypes.default.number,
|
|
130
|
-
y: _propTypes.default.number
|
|
131
|
-
}),
|
|
132
|
-
polar: _propTypes.default.bool,
|
|
133
|
-
role: _propTypes.default.string,
|
|
134
|
-
scale: _propTypes.default.oneOfType([CustomPropTypes.scale, _propTypes.default.shape({
|
|
135
|
-
x: CustomPropTypes.scale,
|
|
136
|
-
y: CustomPropTypes.scale
|
|
137
|
-
})]),
|
|
138
|
-
shapeRendering: _propTypes.default.string,
|
|
139
|
-
style: _propTypes.default.object,
|
|
140
|
-
tabIndex: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.func]),
|
|
141
|
-
transform: _propTypes.default.string
|
|
142
|
-
};
|
|
143
|
-
var CommonProps = {
|
|
144
|
-
dataProps: dataProps,
|
|
145
|
-
baseProps: baseProps,
|
|
146
|
-
primitiveProps: primitiveProps
|
|
147
|
-
};
|
|
148
|
-
exports.CommonProps = CommonProps;
|
|
1
|
+
"use strict";
|
|
@@ -13,7 +13,6 @@ export * as LabelHelpers from "./label-helpers";
|
|
|
13
13
|
export * as LineHelpers from "./line-helpers";
|
|
14
14
|
export * as Log from "./log";
|
|
15
15
|
export * as PointPathHelpers from "./point-path-helpers";
|
|
16
|
-
export * as PropTypes from "./prop-types";
|
|
17
16
|
export * as Scale from "./scale";
|
|
18
17
|
export * as Selection from "./selection";
|
|
19
18
|
export type { SVGCoordinateType, SVGCoordinateBounds } from "./selection";
|
|
@@ -17,7 +17,6 @@ var _exportNames = {
|
|
|
17
17
|
LineHelpers: true,
|
|
18
18
|
Log: true,
|
|
19
19
|
PointPathHelpers: true,
|
|
20
|
-
PropTypes: true,
|
|
21
20
|
Scale: true,
|
|
22
21
|
Selection: true,
|
|
23
22
|
Style: true,
|
|
@@ -28,7 +27,7 @@ var _exportNames = {
|
|
|
28
27
|
UserProps: true,
|
|
29
28
|
Wrapper: true
|
|
30
29
|
};
|
|
31
|
-
exports.TextSize = exports.Style = exports.Selection = exports.Scale = exports.
|
|
30
|
+
exports.TextSize = exports.Style = exports.Selection = exports.Scale = exports.PointPathHelpers = exports.Log = exports.LineHelpers = exports.LabelHelpers = exports.Immutable = exports.Hooks = exports.Helpers = exports.Events = exports.Domain = exports.DefaultTransitions = exports.Data = exports.Collection = exports.Axis = void 0;
|
|
32
31
|
Object.defineProperty(exports, "Timer", {
|
|
33
32
|
enumerable: true,
|
|
34
33
|
get: function () {
|
|
@@ -123,10 +122,6 @@ var _PointPathHelpers = _interopRequireWildcard(require("./point-path-helpers"))
|
|
|
123
122
|
|
|
124
123
|
exports.PointPathHelpers = _PointPathHelpers;
|
|
125
124
|
|
|
126
|
-
var _PropTypes = _interopRequireWildcard(require("./prop-types"));
|
|
127
|
-
|
|
128
|
-
exports.PropTypes = _PropTypes;
|
|
129
|
-
|
|
130
125
|
var _Scale = _interopRequireWildcard(require("./scale"));
|
|
131
126
|
|
|
132
127
|
exports.Scale = _Scale;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-core",
|
|
3
|
-
"version": "36.
|
|
3
|
+
"version": "36.9.0",
|
|
4
4
|
"description": "Victory Core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -21,9 +21,8 @@
|
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"lodash": "^4.17.21",
|
|
24
|
-
"prop-types": "^15.8.1",
|
|
25
24
|
"react-fast-compare": "^3.2.0",
|
|
26
|
-
"victory-vendor": "^36.
|
|
25
|
+
"victory-vendor": "^36.9.0"
|
|
27
26
|
},
|
|
28
27
|
"peerDependencies": {
|
|
29
28
|
"react": ">=16.6.0"
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
2
|
|
|
4
3
|
export interface VictoryAccessibleGroupProps {
|
|
5
4
|
desc?: string;
|
|
@@ -12,17 +11,6 @@ export interface VictoryAccessibleGroupProps {
|
|
|
12
11
|
|
|
13
12
|
export class VictoryAccessibleGroup extends React.Component<VictoryAccessibleGroupProps> {
|
|
14
13
|
static displayName = "VictoryAccessibleGroup";
|
|
15
|
-
static propTypes = {
|
|
16
|
-
"aria-describedby": PropTypes.string,
|
|
17
|
-
"aria-label": PropTypes.string,
|
|
18
|
-
children: PropTypes.oneOfType([
|
|
19
|
-
PropTypes.arrayOf(PropTypes.node),
|
|
20
|
-
PropTypes.node,
|
|
21
|
-
]),
|
|
22
|
-
className: PropTypes.string,
|
|
23
|
-
desc: PropTypes.string,
|
|
24
|
-
tabIndex: PropTypes.number,
|
|
25
|
-
};
|
|
26
14
|
|
|
27
15
|
static defaultProps = {
|
|
28
16
|
className: "VictoryAccessibleGroup",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/* global setTimeout:false */
|
|
2
2
|
import React from "react";
|
|
3
|
-
import PropTypes from "prop-types";
|
|
4
3
|
import * as d3Ease from "victory-vendor/d3-ease";
|
|
5
4
|
import { victoryInterpolator } from "./util";
|
|
6
5
|
import TimerContext from "../victory-util/timer-context";
|
|
@@ -86,56 +85,6 @@ export class VictoryAnimation extends React.Component<
|
|
|
86
85
|
> {
|
|
87
86
|
static displayName = "VictoryAnimation";
|
|
88
87
|
|
|
89
|
-
static propTypes = {
|
|
90
|
-
children: PropTypes.func,
|
|
91
|
-
data: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
|
|
92
|
-
delay: PropTypes.number,
|
|
93
|
-
duration: PropTypes.number,
|
|
94
|
-
easing: PropTypes.oneOf([
|
|
95
|
-
"back",
|
|
96
|
-
"backIn",
|
|
97
|
-
"backOut",
|
|
98
|
-
"backInOut",
|
|
99
|
-
"bounce",
|
|
100
|
-
"bounceIn",
|
|
101
|
-
"bounceOut",
|
|
102
|
-
"bounceInOut",
|
|
103
|
-
"circle",
|
|
104
|
-
"circleIn",
|
|
105
|
-
"circleOut",
|
|
106
|
-
"circleInOut",
|
|
107
|
-
"linear",
|
|
108
|
-
"linearIn",
|
|
109
|
-
"linearOut",
|
|
110
|
-
"linearInOut",
|
|
111
|
-
"cubic",
|
|
112
|
-
"cubicIn",
|
|
113
|
-
"cubicOut",
|
|
114
|
-
"cubicInOut",
|
|
115
|
-
"elastic",
|
|
116
|
-
"elasticIn",
|
|
117
|
-
"elasticOut",
|
|
118
|
-
"elasticInOut",
|
|
119
|
-
"exp",
|
|
120
|
-
"expIn",
|
|
121
|
-
"expOut",
|
|
122
|
-
"expInOut",
|
|
123
|
-
"poly",
|
|
124
|
-
"polyIn",
|
|
125
|
-
"polyOut",
|
|
126
|
-
"polyInOut",
|
|
127
|
-
"quad",
|
|
128
|
-
"quadIn",
|
|
129
|
-
"quadOut",
|
|
130
|
-
"quadInOut",
|
|
131
|
-
"sin",
|
|
132
|
-
"sinIn",
|
|
133
|
-
"sinOut",
|
|
134
|
-
"sinInOut",
|
|
135
|
-
]),
|
|
136
|
-
onEnd: PropTypes.func,
|
|
137
|
-
};
|
|
138
|
-
|
|
139
88
|
static defaultProps = {
|
|
140
89
|
data: {},
|
|
141
90
|
delay: 0,
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
|
-
import * as CustomPropTypes from "../victory-util/prop-types";
|
|
4
2
|
import * as Helpers from "../victory-util/helpers";
|
|
5
3
|
import * as UserProps from "../victory-util/user-props";
|
|
6
4
|
import { defaults, isObject, uniqueId } from "lodash";
|
|
@@ -34,38 +32,6 @@ export interface VictoryClipContainerProps {
|
|
|
34
32
|
export class VictoryClipContainer extends React.Component<VictoryClipContainerProps> {
|
|
35
33
|
static displayName = "VictoryClipContainer";
|
|
36
34
|
static role = "container";
|
|
37
|
-
static propTypes = {
|
|
38
|
-
"aria-label": PropTypes.string,
|
|
39
|
-
children: PropTypes.oneOfType([
|
|
40
|
-
PropTypes.arrayOf(PropTypes.node),
|
|
41
|
-
PropTypes.node,
|
|
42
|
-
]),
|
|
43
|
-
circleComponent: PropTypes.element,
|
|
44
|
-
className: PropTypes.string,
|
|
45
|
-
clipHeight: CustomPropTypes.nonNegative,
|
|
46
|
-
clipId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
47
|
-
clipPadding: PropTypes.shape({
|
|
48
|
-
top: PropTypes.number,
|
|
49
|
-
bottom: PropTypes.number,
|
|
50
|
-
left: PropTypes.number,
|
|
51
|
-
right: PropTypes.number,
|
|
52
|
-
}),
|
|
53
|
-
clipPathComponent: PropTypes.element,
|
|
54
|
-
clipWidth: CustomPropTypes.nonNegative,
|
|
55
|
-
events: PropTypes.object,
|
|
56
|
-
groupComponent: PropTypes.element,
|
|
57
|
-
origin: PropTypes.shape({
|
|
58
|
-
x: CustomPropTypes.nonNegative,
|
|
59
|
-
y: CustomPropTypes.nonNegative,
|
|
60
|
-
}),
|
|
61
|
-
polar: PropTypes.bool,
|
|
62
|
-
radius: CustomPropTypes.nonNegative,
|
|
63
|
-
style: PropTypes.object,
|
|
64
|
-
tabIndex: PropTypes.number,
|
|
65
|
-
transform: PropTypes.string,
|
|
66
|
-
translateX: PropTypes.number,
|
|
67
|
-
translateY: PropTypes.number,
|
|
68
|
-
};
|
|
69
35
|
|
|
70
36
|
static defaultProps = {
|
|
71
37
|
circleComponent: <Circle />,
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
|
-
import * as CustomPropTypes from "../victory-util/prop-types";
|
|
4
2
|
import { defaults, uniqueId, isObject, isFunction } from "lodash";
|
|
5
3
|
import { Portal } from "../victory-portal/portal";
|
|
6
4
|
import { PortalContext } from "../victory-portal/portal-context";
|
|
@@ -48,39 +46,6 @@ export class VictoryContainer<
|
|
|
48
46
|
> extends React.Component<TProps> {
|
|
49
47
|
static displayName = "VictoryContainer";
|
|
50
48
|
static role = "container";
|
|
51
|
-
static propTypes = {
|
|
52
|
-
"aria-describedby": PropTypes.string,
|
|
53
|
-
"aria-labelledby": PropTypes.string,
|
|
54
|
-
children: PropTypes.oneOfType([
|
|
55
|
-
PropTypes.arrayOf(PropTypes.node),
|
|
56
|
-
PropTypes.node,
|
|
57
|
-
]),
|
|
58
|
-
className: PropTypes.string,
|
|
59
|
-
containerId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
60
|
-
containerRef: PropTypes.func,
|
|
61
|
-
desc: PropTypes.string,
|
|
62
|
-
events: PropTypes.object,
|
|
63
|
-
height: CustomPropTypes.nonNegative,
|
|
64
|
-
name: PropTypes.string,
|
|
65
|
-
origin: PropTypes.shape({
|
|
66
|
-
x: CustomPropTypes.nonNegative,
|
|
67
|
-
y: CustomPropTypes.nonNegative,
|
|
68
|
-
}),
|
|
69
|
-
ouiaId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
70
|
-
ouiaSafe: PropTypes.bool,
|
|
71
|
-
ouiaType: PropTypes.string,
|
|
72
|
-
polar: PropTypes.bool,
|
|
73
|
-
portalComponent: PropTypes.element,
|
|
74
|
-
portalZIndex: CustomPropTypes.integer,
|
|
75
|
-
preserveAspectRatio: PropTypes.string,
|
|
76
|
-
responsive: PropTypes.bool,
|
|
77
|
-
role: PropTypes.string,
|
|
78
|
-
style: PropTypes.object,
|
|
79
|
-
tabIndex: PropTypes.number,
|
|
80
|
-
theme: PropTypes.object,
|
|
81
|
-
title: PropTypes.string,
|
|
82
|
-
width: CustomPropTypes.nonNegative,
|
|
83
|
-
};
|
|
84
49
|
|
|
85
50
|
static defaultProps = {
|
|
86
51
|
className: "VictoryContainer",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/* eslint no-magic-numbers: ["error", { "ignore": [-0.5, 0.5, 0, 1, 2] }]*/
|
|
2
2
|
import { defaults, isEmpty } from "lodash";
|
|
3
|
-
import PropTypes from "prop-types";
|
|
4
3
|
import React from "react";
|
|
5
4
|
import { VictoryPortal } from "../victory-portal/victory-portal";
|
|
6
5
|
import { Rect } from "../victory-primitives/rect";
|
|
@@ -9,7 +8,6 @@ import { TSpan } from "../victory-primitives/tspan";
|
|
|
9
8
|
import * as Helpers from "../victory-util/helpers";
|
|
10
9
|
import * as LabelHelpers from "../victory-util/label-helpers";
|
|
11
10
|
import * as Log from "../victory-util/log";
|
|
12
|
-
import * as CustomPropTypes from "../victory-util/prop-types";
|
|
13
11
|
import * as Style from "../victory-util/style";
|
|
14
12
|
import * as TextSize from "../victory-util/textsize";
|
|
15
13
|
import * as UserProps from "../victory-util/user-props";
|
|
@@ -642,84 +640,3 @@ export const VictoryLabel: {
|
|
|
642
640
|
VictoryLabel.displayName = "VictoryLabel";
|
|
643
641
|
VictoryLabel.role = "label";
|
|
644
642
|
VictoryLabel.defaultStyles = defaultStyles;
|
|
645
|
-
VictoryLabel.propTypes = {
|
|
646
|
-
active: PropTypes.bool,
|
|
647
|
-
angle: PropTypes.oneOfType([
|
|
648
|
-
PropTypes.string,
|
|
649
|
-
PropTypes.number,
|
|
650
|
-
PropTypes.func,
|
|
651
|
-
]),
|
|
652
|
-
ariaLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
653
|
-
backgroundComponent: PropTypes.element,
|
|
654
|
-
backgroundPadding: PropTypes.oneOfType([
|
|
655
|
-
PropTypes.number,
|
|
656
|
-
PropTypes.object,
|
|
657
|
-
PropTypes.array,
|
|
658
|
-
]),
|
|
659
|
-
backgroundStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
|
|
660
|
-
capHeight: PropTypes.oneOfType([
|
|
661
|
-
PropTypes.string,
|
|
662
|
-
CustomPropTypes.nonNegative,
|
|
663
|
-
PropTypes.func,
|
|
664
|
-
]),
|
|
665
|
-
className: PropTypes.string,
|
|
666
|
-
data: PropTypes.array,
|
|
667
|
-
datum: PropTypes.any,
|
|
668
|
-
// @ts-expect-error "Function is not assignable to string"
|
|
669
|
-
desc: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
670
|
-
direction: PropTypes.oneOf(["rtl", "ltr", "inherit"]),
|
|
671
|
-
dx: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
672
|
-
dy: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
673
|
-
events: PropTypes.object,
|
|
674
|
-
groupComponent: PropTypes.element,
|
|
675
|
-
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
676
|
-
index: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
677
|
-
inline: PropTypes.bool,
|
|
678
|
-
labelPlacement: PropTypes.oneOf(["parallel", "perpendicular", "vertical"]),
|
|
679
|
-
lineHeight: PropTypes.oneOfType([
|
|
680
|
-
PropTypes.string,
|
|
681
|
-
CustomPropTypes.nonNegative,
|
|
682
|
-
PropTypes.func,
|
|
683
|
-
PropTypes.array,
|
|
684
|
-
]),
|
|
685
|
-
origin: PropTypes.shape({
|
|
686
|
-
x: CustomPropTypes.nonNegative.isRequired,
|
|
687
|
-
y: CustomPropTypes.nonNegative.isRequired,
|
|
688
|
-
}),
|
|
689
|
-
polar: PropTypes.bool,
|
|
690
|
-
renderInPortal: PropTypes.bool,
|
|
691
|
-
scale: PropTypes.shape({
|
|
692
|
-
x: CustomPropTypes.scale,
|
|
693
|
-
y: CustomPropTypes.scale,
|
|
694
|
-
}),
|
|
695
|
-
style: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
|
|
696
|
-
tabIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
|
|
697
|
-
text: PropTypes.oneOfType([
|
|
698
|
-
PropTypes.string,
|
|
699
|
-
PropTypes.number,
|
|
700
|
-
PropTypes.func,
|
|
701
|
-
PropTypes.array,
|
|
702
|
-
]),
|
|
703
|
-
// @ts-expect-error Function is not assignable to string"
|
|
704
|
-
textAnchor: PropTypes.oneOfType([
|
|
705
|
-
PropTypes.oneOf(["start", "middle", "end", "inherit"]),
|
|
706
|
-
PropTypes.func,
|
|
707
|
-
]),
|
|
708
|
-
textComponent: PropTypes.element,
|
|
709
|
-
title: PropTypes.string,
|
|
710
|
-
transform: PropTypes.oneOfType([
|
|
711
|
-
PropTypes.string,
|
|
712
|
-
PropTypes.object,
|
|
713
|
-
PropTypes.func,
|
|
714
|
-
]),
|
|
715
|
-
tspanComponent: PropTypes.element,
|
|
716
|
-
// @ts-expect-error Function is not assignable to string"
|
|
717
|
-
verticalAnchor: PropTypes.oneOfType([
|
|
718
|
-
PropTypes.oneOf(["start", "middle", "end"]),
|
|
719
|
-
PropTypes.func,
|
|
720
|
-
]),
|
|
721
|
-
// @ts-expect-error Number is not assignable to string
|
|
722
|
-
x: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
723
|
-
// @ts-expect-error Number is not assignable to string
|
|
724
|
-
y: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
725
|
-
};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
|
-
import * as CustomPropTypes from "../victory-util/prop-types";
|
|
4
2
|
import { keys } from "lodash";
|
|
5
3
|
import { PortalContextValue } from "./portal-context";
|
|
6
4
|
|
|
@@ -18,13 +16,6 @@ export class Portal
|
|
|
18
16
|
{
|
|
19
17
|
static displayName = "Portal";
|
|
20
18
|
|
|
21
|
-
static propTypes = {
|
|
22
|
-
className: PropTypes.string,
|
|
23
|
-
height: CustomPropTypes.nonNegative,
|
|
24
|
-
style: PropTypes.object,
|
|
25
|
-
viewBox: PropTypes.string,
|
|
26
|
-
width: CustomPropTypes.nonNegative,
|
|
27
|
-
};
|
|
28
19
|
private readonly map: Record<string, React.ReactElement>;
|
|
29
20
|
private index: number;
|
|
30
21
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
2
|
import { defaults } from "lodash";
|
|
4
3
|
import * as Log from "../victory-util/log";
|
|
5
4
|
import * as Helpers from "../victory-util/helpers";
|
|
@@ -19,11 +18,6 @@ export class VictoryPortal extends React.Component<VictoryPortalProps> {
|
|
|
19
18
|
|
|
20
19
|
static role = "portal";
|
|
21
20
|
|
|
22
|
-
static propTypes = {
|
|
23
|
-
children: PropTypes.node,
|
|
24
|
-
groupComponent: PropTypes.element,
|
|
25
|
-
};
|
|
26
|
-
|
|
27
21
|
static defaultProps = {
|
|
28
22
|
groupComponent: <g />,
|
|
29
23
|
};
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
/* eslint no-magic-numbers: ["error", { "ignore": [0, 1, 2, 180] }]*/
|
|
2
2
|
import React from "react";
|
|
3
|
-
import PropTypes from "prop-types";
|
|
4
3
|
import * as Helpers from "../victory-util/helpers";
|
|
5
|
-
import {
|
|
6
|
-
CommonProps,
|
|
7
|
-
VictoryCommonPrimitiveProps,
|
|
8
|
-
} from "../victory-util/common-props";
|
|
4
|
+
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
9
5
|
import { Path } from "./path";
|
|
10
6
|
|
|
11
7
|
export interface ArcProps extends VictoryCommonPrimitiveProps {
|
|
@@ -85,15 +81,3 @@ export const Arc = (initialProps: ArcProps) => {
|
|
|
85
81
|
clipPath: props.clipPath,
|
|
86
82
|
});
|
|
87
83
|
};
|
|
88
|
-
|
|
89
|
-
Arc.propTypes = {
|
|
90
|
-
...CommonProps.primitiveProps,
|
|
91
|
-
closedPath: PropTypes.bool,
|
|
92
|
-
cx: PropTypes.number,
|
|
93
|
-
cy: PropTypes.number,
|
|
94
|
-
datum: PropTypes.any,
|
|
95
|
-
endAngle: PropTypes.number,
|
|
96
|
-
pathComponent: PropTypes.element,
|
|
97
|
-
r: PropTypes.number,
|
|
98
|
-
startAngle: PropTypes.number,
|
|
99
|
-
};
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
2
|
import * as Helpers from "../victory-util/helpers";
|
|
4
|
-
import {
|
|
5
|
-
CommonProps,
|
|
6
|
-
VictoryCommonPrimitiveProps,
|
|
7
|
-
} from "../victory-util/common-props";
|
|
3
|
+
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
8
4
|
import { Rect } from "./rect";
|
|
9
5
|
import { Circle } from "./circle";
|
|
10
6
|
|
|
@@ -64,15 +60,3 @@ export const Background = (initialProps: BackgroundProps) => {
|
|
|
64
60
|
className: props.className,
|
|
65
61
|
});
|
|
66
62
|
};
|
|
67
|
-
|
|
68
|
-
Background.propTypes = {
|
|
69
|
-
...CommonProps.primitiveProps,
|
|
70
|
-
circleComponent: PropTypes.element,
|
|
71
|
-
height: PropTypes.number,
|
|
72
|
-
rectComponent: PropTypes.element,
|
|
73
|
-
rx: PropTypes.number,
|
|
74
|
-
ry: PropTypes.number,
|
|
75
|
-
width: PropTypes.number,
|
|
76
|
-
x: PropTypes.number,
|
|
77
|
-
y: PropTypes.number,
|
|
78
|
-
};
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
2
|
import * as Helpers from "../victory-util/helpers";
|
|
4
|
-
import {
|
|
5
|
-
CommonProps,
|
|
6
|
-
VictoryCommonPrimitiveProps,
|
|
7
|
-
} from "../victory-util/common-props";
|
|
3
|
+
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
8
4
|
import { Rect } from "./rect";
|
|
9
5
|
|
|
10
6
|
export interface BorderProps extends VictoryCommonPrimitiveProps {
|
|
@@ -62,12 +58,3 @@ export const Border = (initialProps: BorderProps) => {
|
|
|
62
58
|
clipPath: props.clipPath,
|
|
63
59
|
});
|
|
64
60
|
};
|
|
65
|
-
|
|
66
|
-
Border.propTypes = {
|
|
67
|
-
...CommonProps.primitiveProps,
|
|
68
|
-
height: PropTypes.number,
|
|
69
|
-
rectComponent: PropTypes.element,
|
|
70
|
-
width: PropTypes.number,
|
|
71
|
-
x: PropTypes.number,
|
|
72
|
-
y: PropTypes.number,
|
|
73
|
-
};
|