victory-box-plot 36.6.0 → 36.6.1
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 +8 -0
- package/dist/victory-box-plot.js +3 -1
- package/es/victory-box-plot.d.ts +204 -2
- package/lib/victory-box-plot.d.ts +204 -2
- package/package.json +26 -17
- package/src/victory-box-plot.tsx +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# victory-box-plot
|
|
2
2
|
|
|
3
|
+
## 36.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`d1f281104`](https://github.com/FormidableLabs/victory/commit/d1f281104c7598c43e220dafd57546ab03daeeb5)]:
|
|
8
|
+
- victory-core@36.6.1
|
|
9
|
+
- victory-vendor@36.6.1
|
|
10
|
+
|
|
3
11
|
## 36.6.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
package/dist/victory-box-plot.js
CHANGED
|
@@ -15183,7 +15183,9 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
15183
15183
|
var USER_PROPS_SAFELIST = {
|
|
15184
15184
|
startsWith: ["data-", "aria-"],
|
|
15185
15185
|
exactMatch: []
|
|
15186
|
-
};
|
|
15186
|
+
}; // Normally we'd use Template Literal Types, but we're avoiding it to maximize TS compatibility with TS < 4.1
|
|
15187
|
+
|
|
15188
|
+
// `data-${string}` | `aria-${string}`;
|
|
15187
15189
|
|
|
15188
15190
|
/**
|
|
15189
15191
|
* doesPropStartWith: Function that takes a prop's key and runs it against all
|
package/es/victory-box-plot.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
import { EventPropTypeInterface, DomainPropType, DomainPaddingPropType, OrientationTypes, StringOrNumberOrCallback, VictoryDatableProps, VictoryCommonProps, VictoryStyleObject, VictoryLabelStyleObject, EventsMixinClass } from "victory-core";
|
|
3
4
|
export declare type VictoryBoxPlotLabelType = boolean | (string | number)[] | {
|
|
4
5
|
(): any;
|
|
5
6
|
} | {
|
|
@@ -59,5 +60,206 @@ export interface VictoryBoxPlotProps extends VictoryCommonProps, VictoryDatableP
|
|
|
59
60
|
text?: StringOrNumberOrCallback | string[];
|
|
60
61
|
whiskerWidth?: number;
|
|
61
62
|
}
|
|
62
|
-
|
|
63
|
+
interface VictoryBoxPlotBase extends EventsMixinClass<VictoryBoxPlotProps> {
|
|
64
|
+
}
|
|
65
|
+
declare class VictoryBoxPlotBase extends React.Component<VictoryBoxPlotProps> {
|
|
66
|
+
static animationWhitelist: Array<keyof VictoryBoxPlotProps>;
|
|
67
|
+
static displayName: string;
|
|
68
|
+
static role: string;
|
|
69
|
+
static defaultTransitions: import("victory-core").AnimatePropTypeInterface;
|
|
70
|
+
static propTypes: {
|
|
71
|
+
boxWidth: PropTypes.Requireable<number>;
|
|
72
|
+
events: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
73
|
+
target: PropTypes.Requireable<string>;
|
|
74
|
+
eventKey: PropTypes.Requireable<string | number | any[]>;
|
|
75
|
+
eventHandlers: PropTypes.Requireable<object>;
|
|
76
|
+
}> | null | undefined)[]>;
|
|
77
|
+
horizontal: PropTypes.Requireable<boolean>;
|
|
78
|
+
labelOrientation: PropTypes.Requireable<string | PropTypes.InferProps<{
|
|
79
|
+
q1: PropTypes.Requireable<string>;
|
|
80
|
+
q3: PropTypes.Requireable<string>;
|
|
81
|
+
min: PropTypes.Requireable<string>;
|
|
82
|
+
max: PropTypes.Requireable<string>;
|
|
83
|
+
median: PropTypes.Requireable<string>;
|
|
84
|
+
}>>;
|
|
85
|
+
labels: PropTypes.Requireable<boolean>;
|
|
86
|
+
max: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>;
|
|
87
|
+
maxComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
88
|
+
maxLabelComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
89
|
+
maxLabels: PropTypes.Requireable<boolean | any[] | ((...args: any[]) => any)>;
|
|
90
|
+
median: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>;
|
|
91
|
+
medianComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
92
|
+
medianLabelComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
93
|
+
medianLabels: PropTypes.Requireable<boolean | any[] | ((...args: any[]) => any)>;
|
|
94
|
+
min: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>;
|
|
95
|
+
minComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
96
|
+
minLabelComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
97
|
+
minLabels: PropTypes.Requireable<boolean | any[] | ((...args: any[]) => any)>;
|
|
98
|
+
q1: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>;
|
|
99
|
+
q1Component: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
100
|
+
q1LabelComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
101
|
+
q1Labels: PropTypes.Requireable<boolean | any[] | ((...args: any[]) => any)>;
|
|
102
|
+
q3: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>;
|
|
103
|
+
q3Component: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
104
|
+
q3LabelComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
105
|
+
q3Labels: PropTypes.Requireable<boolean | any[] | ((...args: any[]) => any)>;
|
|
106
|
+
style: PropTypes.Requireable<PropTypes.InferProps<{
|
|
107
|
+
boxes: PropTypes.Requireable<object>;
|
|
108
|
+
labels: PropTypes.Requireable<object>;
|
|
109
|
+
parent: PropTypes.Requireable<object>;
|
|
110
|
+
max: PropTypes.Requireable<object>;
|
|
111
|
+
maxLabels: PropTypes.Requireable<object>;
|
|
112
|
+
median: PropTypes.Requireable<object>;
|
|
113
|
+
medianLabels: PropTypes.Requireable<object>;
|
|
114
|
+
min: PropTypes.Requireable<object>;
|
|
115
|
+
minLabels: PropTypes.Requireable<object>;
|
|
116
|
+
q1: PropTypes.Requireable<object>;
|
|
117
|
+
q1Labels: PropTypes.Requireable<object>;
|
|
118
|
+
q3: PropTypes.Requireable<object>;
|
|
119
|
+
q3Labels: PropTypes.Requireable<object>;
|
|
120
|
+
whiskers: PropTypes.Requireable<object>;
|
|
121
|
+
}>>;
|
|
122
|
+
whiskerWidth: PropTypes.Requireable<number>;
|
|
123
|
+
categories?: React.Validator<import("victory-core").CategoryPropType | null | undefined> | undefined;
|
|
124
|
+
data?: React.Validator<readonly any[] | null | undefined> | undefined;
|
|
125
|
+
dataComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
|
|
126
|
+
domain?: React.Validator<import("victory-core").ForAxes<import("victory-core").DomainTuple> | null | undefined> | undefined;
|
|
127
|
+
domainPadding?: React.Validator<import("victory-core").ForAxes<import("victory-core").PaddingType> | null | undefined> | undefined;
|
|
128
|
+
samples?: React.Validator<number | null | undefined> | undefined;
|
|
129
|
+
sortKey?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
|
|
130
|
+
sortOrder?: React.Validator<import("victory-core").SortOrderPropType | null | undefined> | undefined;
|
|
131
|
+
x?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
|
|
132
|
+
y?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
|
|
133
|
+
y0?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
|
|
134
|
+
theme?: React.Validator<import("victory-core").VictoryThemeDefinition | null | undefined> | undefined;
|
|
135
|
+
animate?: React.Validator<boolean | import("victory-core").AnimatePropTypeInterface | null | undefined> | undefined;
|
|
136
|
+
colorScale?: React.Validator<import("victory-core").ColorScalePropType | null | undefined> | undefined;
|
|
137
|
+
containerComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
|
|
138
|
+
externalEventMutations?: React.Validator<import("victory-core").EventCallbackInterface<string | string[], import("victory-core").StringOrNumberOrList>[] | null | undefined> | undefined;
|
|
139
|
+
groupComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
|
|
140
|
+
height?: React.Validator<number | null | undefined> | undefined;
|
|
141
|
+
maxDomain?: React.Validator<number | {
|
|
142
|
+
x?: number | undefined;
|
|
143
|
+
y?: number | undefined;
|
|
144
|
+
} | null | undefined> | undefined;
|
|
145
|
+
minDomain?: React.Validator<number | {
|
|
146
|
+
x?: number | undefined;
|
|
147
|
+
y?: number | undefined;
|
|
148
|
+
} | null | undefined> | undefined;
|
|
149
|
+
name?: React.Validator<string | null | undefined> | undefined;
|
|
150
|
+
origin?: React.Validator<import("victory-core").OriginType | null | undefined> | undefined;
|
|
151
|
+
padding?: React.Validator<import("victory-core").PaddingProps | null | undefined> | undefined;
|
|
152
|
+
polar?: React.Validator<boolean | null | undefined> | undefined;
|
|
153
|
+
range?: React.Validator<import("victory-core").ForAxes<import("victory-core").RangeTuple> | null | undefined> | undefined;
|
|
154
|
+
scale?: React.Validator<import("victory-core").D3Scale<any> | import("victory-core").ScaleName | {
|
|
155
|
+
x?: import("victory-core").D3Scale<any> | import("victory-core").ScaleName | undefined;
|
|
156
|
+
y?: import("victory-core").D3Scale<any> | import("victory-core").ScaleName | undefined;
|
|
157
|
+
} | null | undefined> | undefined;
|
|
158
|
+
sharedEvents?: React.Validator<{
|
|
159
|
+
events: any[];
|
|
160
|
+
getEventState: Function;
|
|
161
|
+
} | null | undefined> | undefined;
|
|
162
|
+
singleQuadrantDomainPadding?: React.Validator<boolean | {
|
|
163
|
+
x?: boolean | undefined;
|
|
164
|
+
y?: boolean | undefined;
|
|
165
|
+
} | null | undefined> | undefined;
|
|
166
|
+
standalone?: React.Validator<boolean | null | undefined> | undefined;
|
|
167
|
+
width?: React.Validator<number | null | undefined> | undefined;
|
|
168
|
+
};
|
|
169
|
+
static defaultProps: {
|
|
170
|
+
containerComponent: JSX.Element;
|
|
171
|
+
data: {
|
|
172
|
+
x: number;
|
|
173
|
+
min: number;
|
|
174
|
+
q1: number;
|
|
175
|
+
median: number;
|
|
176
|
+
q3: number;
|
|
177
|
+
max: number;
|
|
178
|
+
}[];
|
|
179
|
+
dataComponent: JSX.Element;
|
|
180
|
+
groupComponent: JSX.Element;
|
|
181
|
+
maxComponent: JSX.Element;
|
|
182
|
+
maxLabelComponent: JSX.Element;
|
|
183
|
+
medianComponent: JSX.Element;
|
|
184
|
+
medianLabelComponent: JSX.Element;
|
|
185
|
+
minComponent: JSX.Element;
|
|
186
|
+
minLabelComponent: JSX.Element;
|
|
187
|
+
q1Component: JSX.Element;
|
|
188
|
+
q1LabelComponent: JSX.Element;
|
|
189
|
+
q3Component: JSX.Element;
|
|
190
|
+
q3LabelComponent: JSX.Element;
|
|
191
|
+
samples: number;
|
|
192
|
+
sortKey: string;
|
|
193
|
+
sortOrder: string;
|
|
194
|
+
standalone: boolean;
|
|
195
|
+
theme: import("victory-core").VictoryThemeDefinition;
|
|
196
|
+
};
|
|
197
|
+
static getDomain: (props: any, axis: any) => any;
|
|
198
|
+
static getData: (props: any) => any;
|
|
199
|
+
static getBaseProps: (props: any) => any;
|
|
200
|
+
static expectedComponents: Array<keyof VictoryBoxPlotProps>;
|
|
201
|
+
renderBoxPlot(props: any): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
202
|
+
shouldAnimate(): boolean;
|
|
203
|
+
shouldRenderDatum(datum: any): boolean;
|
|
204
|
+
render(): React.ReactElement;
|
|
205
|
+
}
|
|
206
|
+
export declare const VictoryBoxPlot: {
|
|
207
|
+
new (props: import("victory-core").EventMixinCommonProps): {
|
|
208
|
+
state: {};
|
|
209
|
+
getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
|
|
210
|
+
getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
|
|
211
|
+
getEvents: (p: any, target: any, eventKey: any) => any;
|
|
212
|
+
externalMutations: {} | undefined;
|
|
213
|
+
calculatedState: {};
|
|
214
|
+
globalEvents: {};
|
|
215
|
+
prevGlobalEventKeys: string[];
|
|
216
|
+
boundGlobalEvents: {};
|
|
217
|
+
shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
|
|
218
|
+
componentDidMount(): void;
|
|
219
|
+
componentDidUpdate(prevProps: any): void;
|
|
220
|
+
componentWillUnmount(): void;
|
|
221
|
+
addGlobalListener(key: any): void;
|
|
222
|
+
removeGlobalListener(key: any): void;
|
|
223
|
+
getStateChanges(props: any): {};
|
|
224
|
+
applyExternalMutations(props: any, externalMutations: any): void;
|
|
225
|
+
getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
|
|
226
|
+
getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
|
|
227
|
+
cacheValues(obj: any): void;
|
|
228
|
+
getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
|
|
229
|
+
getAllEvents(props: any): any;
|
|
230
|
+
getComponentProps(component: any, type: any, index: any): any;
|
|
231
|
+
renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
232
|
+
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
233
|
+
renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
234
|
+
renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
235
|
+
context: unknown;
|
|
236
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
237
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
238
|
+
render(): React.ReactNode;
|
|
239
|
+
readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
|
|
240
|
+
refs: {
|
|
241
|
+
[key: string]: React.ReactInstance;
|
|
242
|
+
};
|
|
243
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
244
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
|
|
245
|
+
componentWillMount?(): void;
|
|
246
|
+
UNSAFE_componentWillMount?(): void;
|
|
247
|
+
componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
248
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
249
|
+
componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
250
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
251
|
+
componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
|
|
252
|
+
getSharedEventState: (key: string, value: string) => unknown;
|
|
253
|
+
baseProps: Record<string, object>;
|
|
254
|
+
dataKeys: string[];
|
|
255
|
+
hasEvents: unknown;
|
|
256
|
+
events: unknown;
|
|
257
|
+
};
|
|
258
|
+
getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
|
|
259
|
+
role?: string | undefined;
|
|
260
|
+
expectedComponents?: string[] | undefined;
|
|
261
|
+
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
|
|
262
|
+
animationWhitelist?: string[] | undefined;
|
|
263
|
+
} & typeof VictoryBoxPlotBase;
|
|
264
|
+
export {};
|
|
63
265
|
//# sourceMappingURL=victory-box-plot.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
import { EventPropTypeInterface, DomainPropType, DomainPaddingPropType, OrientationTypes, StringOrNumberOrCallback, VictoryDatableProps, VictoryCommonProps, VictoryStyleObject, VictoryLabelStyleObject, EventsMixinClass } from "victory-core";
|
|
3
4
|
export declare type VictoryBoxPlotLabelType = boolean | (string | number)[] | {
|
|
4
5
|
(): any;
|
|
5
6
|
} | {
|
|
@@ -59,5 +60,206 @@ export interface VictoryBoxPlotProps extends VictoryCommonProps, VictoryDatableP
|
|
|
59
60
|
text?: StringOrNumberOrCallback | string[];
|
|
60
61
|
whiskerWidth?: number;
|
|
61
62
|
}
|
|
62
|
-
|
|
63
|
+
interface VictoryBoxPlotBase extends EventsMixinClass<VictoryBoxPlotProps> {
|
|
64
|
+
}
|
|
65
|
+
declare class VictoryBoxPlotBase extends React.Component<VictoryBoxPlotProps> {
|
|
66
|
+
static animationWhitelist: Array<keyof VictoryBoxPlotProps>;
|
|
67
|
+
static displayName: string;
|
|
68
|
+
static role: string;
|
|
69
|
+
static defaultTransitions: import("victory-core").AnimatePropTypeInterface;
|
|
70
|
+
static propTypes: {
|
|
71
|
+
boxWidth: PropTypes.Requireable<number>;
|
|
72
|
+
events: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
73
|
+
target: PropTypes.Requireable<string>;
|
|
74
|
+
eventKey: PropTypes.Requireable<string | number | any[]>;
|
|
75
|
+
eventHandlers: PropTypes.Requireable<object>;
|
|
76
|
+
}> | null | undefined)[]>;
|
|
77
|
+
horizontal: PropTypes.Requireable<boolean>;
|
|
78
|
+
labelOrientation: PropTypes.Requireable<string | PropTypes.InferProps<{
|
|
79
|
+
q1: PropTypes.Requireable<string>;
|
|
80
|
+
q3: PropTypes.Requireable<string>;
|
|
81
|
+
min: PropTypes.Requireable<string>;
|
|
82
|
+
max: PropTypes.Requireable<string>;
|
|
83
|
+
median: PropTypes.Requireable<string>;
|
|
84
|
+
}>>;
|
|
85
|
+
labels: PropTypes.Requireable<boolean>;
|
|
86
|
+
max: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>;
|
|
87
|
+
maxComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
88
|
+
maxLabelComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
89
|
+
maxLabels: PropTypes.Requireable<boolean | any[] | ((...args: any[]) => any)>;
|
|
90
|
+
median: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>;
|
|
91
|
+
medianComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
92
|
+
medianLabelComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
93
|
+
medianLabels: PropTypes.Requireable<boolean | any[] | ((...args: any[]) => any)>;
|
|
94
|
+
min: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>;
|
|
95
|
+
minComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
96
|
+
minLabelComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
97
|
+
minLabels: PropTypes.Requireable<boolean | any[] | ((...args: any[]) => any)>;
|
|
98
|
+
q1: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>;
|
|
99
|
+
q1Component: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
100
|
+
q1LabelComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
101
|
+
q1Labels: PropTypes.Requireable<boolean | any[] | ((...args: any[]) => any)>;
|
|
102
|
+
q3: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>;
|
|
103
|
+
q3Component: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
104
|
+
q3LabelComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
105
|
+
q3Labels: PropTypes.Requireable<boolean | any[] | ((...args: any[]) => any)>;
|
|
106
|
+
style: PropTypes.Requireable<PropTypes.InferProps<{
|
|
107
|
+
boxes: PropTypes.Requireable<object>;
|
|
108
|
+
labels: PropTypes.Requireable<object>;
|
|
109
|
+
parent: PropTypes.Requireable<object>;
|
|
110
|
+
max: PropTypes.Requireable<object>;
|
|
111
|
+
maxLabels: PropTypes.Requireable<object>;
|
|
112
|
+
median: PropTypes.Requireable<object>;
|
|
113
|
+
medianLabels: PropTypes.Requireable<object>;
|
|
114
|
+
min: PropTypes.Requireable<object>;
|
|
115
|
+
minLabels: PropTypes.Requireable<object>;
|
|
116
|
+
q1: PropTypes.Requireable<object>;
|
|
117
|
+
q1Labels: PropTypes.Requireable<object>;
|
|
118
|
+
q3: PropTypes.Requireable<object>;
|
|
119
|
+
q3Labels: PropTypes.Requireable<object>;
|
|
120
|
+
whiskers: PropTypes.Requireable<object>;
|
|
121
|
+
}>>;
|
|
122
|
+
whiskerWidth: PropTypes.Requireable<number>;
|
|
123
|
+
categories?: React.Validator<import("victory-core").CategoryPropType | null | undefined> | undefined;
|
|
124
|
+
data?: React.Validator<readonly any[] | null | undefined> | undefined;
|
|
125
|
+
dataComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
|
|
126
|
+
domain?: React.Validator<import("victory-core").ForAxes<import("victory-core").DomainTuple> | null | undefined> | undefined;
|
|
127
|
+
domainPadding?: React.Validator<import("victory-core").ForAxes<import("victory-core").PaddingType> | null | undefined> | undefined;
|
|
128
|
+
samples?: React.Validator<number | null | undefined> | undefined;
|
|
129
|
+
sortKey?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
|
|
130
|
+
sortOrder?: React.Validator<import("victory-core").SortOrderPropType | null | undefined> | undefined;
|
|
131
|
+
x?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
|
|
132
|
+
y?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
|
|
133
|
+
y0?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
|
|
134
|
+
theme?: React.Validator<import("victory-core").VictoryThemeDefinition | null | undefined> | undefined;
|
|
135
|
+
animate?: React.Validator<boolean | import("victory-core").AnimatePropTypeInterface | null | undefined> | undefined;
|
|
136
|
+
colorScale?: React.Validator<import("victory-core").ColorScalePropType | null | undefined> | undefined;
|
|
137
|
+
containerComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
|
|
138
|
+
externalEventMutations?: React.Validator<import("victory-core").EventCallbackInterface<string | string[], import("victory-core").StringOrNumberOrList>[] | null | undefined> | undefined;
|
|
139
|
+
groupComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
|
|
140
|
+
height?: React.Validator<number | null | undefined> | undefined;
|
|
141
|
+
maxDomain?: React.Validator<number | {
|
|
142
|
+
x?: number | undefined;
|
|
143
|
+
y?: number | undefined;
|
|
144
|
+
} | null | undefined> | undefined;
|
|
145
|
+
minDomain?: React.Validator<number | {
|
|
146
|
+
x?: number | undefined;
|
|
147
|
+
y?: number | undefined;
|
|
148
|
+
} | null | undefined> | undefined;
|
|
149
|
+
name?: React.Validator<string | null | undefined> | undefined;
|
|
150
|
+
origin?: React.Validator<import("victory-core").OriginType | null | undefined> | undefined;
|
|
151
|
+
padding?: React.Validator<import("victory-core").PaddingProps | null | undefined> | undefined;
|
|
152
|
+
polar?: React.Validator<boolean | null | undefined> | undefined;
|
|
153
|
+
range?: React.Validator<import("victory-core").ForAxes<import("victory-core").RangeTuple> | null | undefined> | undefined;
|
|
154
|
+
scale?: React.Validator<import("victory-core").D3Scale<any> | import("victory-core").ScaleName | {
|
|
155
|
+
x?: import("victory-core").D3Scale<any> | import("victory-core").ScaleName | undefined;
|
|
156
|
+
y?: import("victory-core").D3Scale<any> | import("victory-core").ScaleName | undefined;
|
|
157
|
+
} | null | undefined> | undefined;
|
|
158
|
+
sharedEvents?: React.Validator<{
|
|
159
|
+
events: any[];
|
|
160
|
+
getEventState: Function;
|
|
161
|
+
} | null | undefined> | undefined;
|
|
162
|
+
singleQuadrantDomainPadding?: React.Validator<boolean | {
|
|
163
|
+
x?: boolean | undefined;
|
|
164
|
+
y?: boolean | undefined;
|
|
165
|
+
} | null | undefined> | undefined;
|
|
166
|
+
standalone?: React.Validator<boolean | null | undefined> | undefined;
|
|
167
|
+
width?: React.Validator<number | null | undefined> | undefined;
|
|
168
|
+
};
|
|
169
|
+
static defaultProps: {
|
|
170
|
+
containerComponent: JSX.Element;
|
|
171
|
+
data: {
|
|
172
|
+
x: number;
|
|
173
|
+
min: number;
|
|
174
|
+
q1: number;
|
|
175
|
+
median: number;
|
|
176
|
+
q3: number;
|
|
177
|
+
max: number;
|
|
178
|
+
}[];
|
|
179
|
+
dataComponent: JSX.Element;
|
|
180
|
+
groupComponent: JSX.Element;
|
|
181
|
+
maxComponent: JSX.Element;
|
|
182
|
+
maxLabelComponent: JSX.Element;
|
|
183
|
+
medianComponent: JSX.Element;
|
|
184
|
+
medianLabelComponent: JSX.Element;
|
|
185
|
+
minComponent: JSX.Element;
|
|
186
|
+
minLabelComponent: JSX.Element;
|
|
187
|
+
q1Component: JSX.Element;
|
|
188
|
+
q1LabelComponent: JSX.Element;
|
|
189
|
+
q3Component: JSX.Element;
|
|
190
|
+
q3LabelComponent: JSX.Element;
|
|
191
|
+
samples: number;
|
|
192
|
+
sortKey: string;
|
|
193
|
+
sortOrder: string;
|
|
194
|
+
standalone: boolean;
|
|
195
|
+
theme: import("victory-core").VictoryThemeDefinition;
|
|
196
|
+
};
|
|
197
|
+
static getDomain: (props: any, axis: any) => any;
|
|
198
|
+
static getData: (props: any) => any;
|
|
199
|
+
static getBaseProps: (props: any) => any;
|
|
200
|
+
static expectedComponents: Array<keyof VictoryBoxPlotProps>;
|
|
201
|
+
renderBoxPlot(props: any): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
202
|
+
shouldAnimate(): boolean;
|
|
203
|
+
shouldRenderDatum(datum: any): boolean;
|
|
204
|
+
render(): React.ReactElement;
|
|
205
|
+
}
|
|
206
|
+
export declare const VictoryBoxPlot: {
|
|
207
|
+
new (props: import("victory-core").EventMixinCommonProps): {
|
|
208
|
+
state: {};
|
|
209
|
+
getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
|
|
210
|
+
getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
|
|
211
|
+
getEvents: (p: any, target: any, eventKey: any) => any;
|
|
212
|
+
externalMutations: {} | undefined;
|
|
213
|
+
calculatedState: {};
|
|
214
|
+
globalEvents: {};
|
|
215
|
+
prevGlobalEventKeys: string[];
|
|
216
|
+
boundGlobalEvents: {};
|
|
217
|
+
shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
|
|
218
|
+
componentDidMount(): void;
|
|
219
|
+
componentDidUpdate(prevProps: any): void;
|
|
220
|
+
componentWillUnmount(): void;
|
|
221
|
+
addGlobalListener(key: any): void;
|
|
222
|
+
removeGlobalListener(key: any): void;
|
|
223
|
+
getStateChanges(props: any): {};
|
|
224
|
+
applyExternalMutations(props: any, externalMutations: any): void;
|
|
225
|
+
getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
|
|
226
|
+
getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
|
|
227
|
+
cacheValues(obj: any): void;
|
|
228
|
+
getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
|
|
229
|
+
getAllEvents(props: any): any;
|
|
230
|
+
getComponentProps(component: any, type: any, index: any): any;
|
|
231
|
+
renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
232
|
+
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
233
|
+
renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
234
|
+
renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
235
|
+
context: unknown;
|
|
236
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
237
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
238
|
+
render(): React.ReactNode;
|
|
239
|
+
readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
|
|
240
|
+
refs: {
|
|
241
|
+
[key: string]: React.ReactInstance;
|
|
242
|
+
};
|
|
243
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
244
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
|
|
245
|
+
componentWillMount?(): void;
|
|
246
|
+
UNSAFE_componentWillMount?(): void;
|
|
247
|
+
componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
248
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
249
|
+
componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
250
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
251
|
+
componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
|
|
252
|
+
getSharedEventState: (key: string, value: string) => unknown;
|
|
253
|
+
baseProps: Record<string, object>;
|
|
254
|
+
dataKeys: string[];
|
|
255
|
+
hasEvents: unknown;
|
|
256
|
+
events: unknown;
|
|
257
|
+
};
|
|
258
|
+
getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
|
|
259
|
+
role?: string | undefined;
|
|
260
|
+
expectedComponents?: string[] | undefined;
|
|
261
|
+
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
|
|
262
|
+
animationWhitelist?: string[] | undefined;
|
|
263
|
+
} & typeof VictoryBoxPlotBase;
|
|
264
|
+
export {};
|
|
63
265
|
//# sourceMappingURL=victory-box-plot.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-box-plot",
|
|
3
|
-
"version": "36.6.
|
|
3
|
+
"version": "36.6.1",
|
|
4
4
|
"description": "Box Plot Component for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"lodash": "^4.17.19",
|
|
24
24
|
"prop-types": "^15.8.1",
|
|
25
|
-
"victory-core": "^36.6.
|
|
26
|
-
"victory-vendor": "^36.6.
|
|
25
|
+
"victory-core": "^36.6.1",
|
|
26
|
+
"victory-vendor": "^36.6.1"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"react": ">=16.6.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"victory-box-plot": "*",
|
|
33
|
-
"victory-chart": "^36.6.
|
|
33
|
+
"victory-chart": "^36.6.1"
|
|
34
34
|
},
|
|
35
35
|
"wireit": {
|
|
36
36
|
"### THESE WIREIT CONFIGS ARE GENERATED ####": {},
|
|
@@ -132,6 +132,14 @@
|
|
|
132
132
|
"pnpm-lock.yaml"
|
|
133
133
|
]
|
|
134
134
|
},
|
|
135
|
+
"check": {
|
|
136
|
+
"dependencies": [
|
|
137
|
+
"types:check",
|
|
138
|
+
"jest",
|
|
139
|
+
"format",
|
|
140
|
+
"lint"
|
|
141
|
+
]
|
|
142
|
+
},
|
|
135
143
|
"types:check": {
|
|
136
144
|
"command": "nps types:pkg:check",
|
|
137
145
|
"files": [
|
|
@@ -186,6 +194,19 @@
|
|
|
186
194
|
"pnpm-lock.yaml"
|
|
187
195
|
]
|
|
188
196
|
},
|
|
197
|
+
"format:fix": {
|
|
198
|
+
"command": "pnpm run format || nps format:pkg:fix",
|
|
199
|
+
"files": [
|
|
200
|
+
"src/**",
|
|
201
|
+
"*.json",
|
|
202
|
+
"../../.prettierignore",
|
|
203
|
+
"../../.prettierrc.json"
|
|
204
|
+
],
|
|
205
|
+
"output": [],
|
|
206
|
+
"packageLocks": [
|
|
207
|
+
"pnpm-lock.yaml"
|
|
208
|
+
]
|
|
209
|
+
},
|
|
189
210
|
"lint": {
|
|
190
211
|
"command": "nps lint:pkg",
|
|
191
212
|
"files": [
|
|
@@ -205,19 +226,6 @@
|
|
|
205
226
|
"pnpm-lock.yaml"
|
|
206
227
|
]
|
|
207
228
|
},
|
|
208
|
-
"format:fix": {
|
|
209
|
-
"command": "pnpm run format || nps format:pkg:fix",
|
|
210
|
-
"files": [
|
|
211
|
-
"src/**",
|
|
212
|
-
"*.json",
|
|
213
|
-
"../../.prettierignore",
|
|
214
|
-
"../../.prettierrc.json"
|
|
215
|
-
],
|
|
216
|
-
"output": [],
|
|
217
|
-
"packageLocks": [
|
|
218
|
-
"pnpm-lock.yaml"
|
|
219
|
-
]
|
|
220
|
-
},
|
|
221
229
|
"lint:fix": {
|
|
222
230
|
"command": "pnpm run lint || nps lint:pkg:fix",
|
|
223
231
|
"files": [
|
|
@@ -267,6 +275,7 @@
|
|
|
267
275
|
"build:dist": "wireit",
|
|
268
276
|
"build:dist:dev": "wireit",
|
|
269
277
|
"build:dist:min": "wireit",
|
|
278
|
+
"check": "wireit",
|
|
270
279
|
"types:check": "wireit",
|
|
271
280
|
"types:create": "wireit",
|
|
272
281
|
"format": "wireit",
|
package/src/victory-box-plot.tsx
CHANGED
|
@@ -128,7 +128,7 @@ export interface VictoryBoxPlotProps
|
|
|
128
128
|
interface VictoryBoxPlotBase extends EventsMixinClass<VictoryBoxPlotProps> {}
|
|
129
129
|
|
|
130
130
|
class VictoryBoxPlotBase extends React.Component<VictoryBoxPlotProps> {
|
|
131
|
-
static animationWhitelist = [
|
|
131
|
+
static animationWhitelist: Array<keyof VictoryBoxPlotProps> = [
|
|
132
132
|
"data",
|
|
133
133
|
"domain",
|
|
134
134
|
"height",
|
|
@@ -306,7 +306,7 @@ class VictoryBoxPlotBase extends React.Component<VictoryBoxPlotProps> {
|
|
|
306
306
|
static getDomain = getDomain;
|
|
307
307
|
static getData = getData;
|
|
308
308
|
static getBaseProps = (props) => getBaseProps(props, fallbackProps);
|
|
309
|
-
static expectedComponents = [
|
|
309
|
+
static expectedComponents: Array<keyof VictoryBoxPlotProps> = [
|
|
310
310
|
"maxComponent",
|
|
311
311
|
"maxLabelComponent",
|
|
312
312
|
"medianComponent",
|
|
@@ -387,7 +387,7 @@ class VictoryBoxPlotBase extends React.Component<VictoryBoxPlotProps> {
|
|
|
387
387
|
return hasSummaryStatistics && (this.props.horizontal ? hasY : hasX);
|
|
388
388
|
}
|
|
389
389
|
|
|
390
|
-
render() {
|
|
390
|
+
render(): React.ReactElement {
|
|
391
391
|
const { animationWhitelist, role } = VictoryBoxPlot;
|
|
392
392
|
const props = Helpers.modifyProps(this.props, fallbackProps, role);
|
|
393
393
|
|