victory-box-plot 36.8.6 → 36.9.1-next.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 +13 -0
- package/dist/victory-box-plot.js +88 -2331
- package/dist/victory-box-plot.min.js +1 -1
- package/es/helper-methods.d.ts +3 -3
- package/es/index.d.ts +1 -1
- package/es/victory-box-plot.d.ts +139 -240
- package/es/victory-box-plot.js +1 -62
- package/lib/helper-methods.d.ts +3 -3
- package/lib/index.d.ts +1 -1
- package/lib/victory-box-plot.d.ts +139 -240
- package/lib/victory-box-plot.js +0 -62
- package/package.json +5 -9
- package/src/victory-box-plot.tsx +0 -143
package/es/helper-methods.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const getData: (props: any) => any;
|
|
2
|
-
export declare const getDomain: (props: any, axis: any) => any;
|
|
3
|
-
export declare const getBaseProps: (initialProps: any, fallbackProps: any) => any;
|
|
1
|
+
export declare const getData: (props: any) => any;
|
|
2
|
+
export declare const getDomain: (props: any, axis: any) => any;
|
|
3
|
+
export declare const getBaseProps: (initialProps: any, fallbackProps: any) => any;
|
|
4
4
|
//# sourceMappingURL=helper-methods.d.ts.map
|
package/es/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./victory-box-plot";
|
|
1
|
+
export * from "./victory-box-plot";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/es/victory-box-plot.d.ts
CHANGED
|
@@ -1,241 +1,140 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
static
|
|
69
|
-
static
|
|
70
|
-
static
|
|
71
|
-
static
|
|
72
|
-
static
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
disableInlineStyles?: React.Validator<boolean | null | undefined> | undefined;
|
|
141
|
-
externalEventMutations?: React.Validator<import("victory-core").EventCallbackInterface<string | string[], import("victory-core").StringOrNumberOrList>[] | null | undefined> | undefined;
|
|
142
|
-
groupComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
|
|
143
|
-
height?: React.Validator<number | null | undefined> | undefined;
|
|
144
|
-
maxDomain?: React.Validator<number | {
|
|
145
|
-
x?: number | undefined;
|
|
146
|
-
y?: number | undefined;
|
|
147
|
-
} | null | undefined> | undefined;
|
|
148
|
-
minDomain?: React.Validator<number | {
|
|
149
|
-
x?: number | undefined;
|
|
150
|
-
y?: number | undefined;
|
|
151
|
-
} | null | undefined> | undefined;
|
|
152
|
-
name?: React.Validator<string | null | undefined> | undefined;
|
|
153
|
-
origin?: React.Validator<import("victory-core").OriginType | null | undefined> | undefined;
|
|
154
|
-
padding?: React.Validator<import("victory-core").PaddingProps | null | undefined> | undefined;
|
|
155
|
-
polar?: React.Validator<boolean | null | undefined> | undefined;
|
|
156
|
-
range?: React.Validator<import("victory-core").ForAxes<import("victory-core").RangeTuple> | null | undefined> | undefined;
|
|
157
|
-
scale?: React.Validator<import("victory-core").ScaleName | import("victory-core").D3Scale<any> | {
|
|
158
|
-
x?: import("victory-core").ScaleName | import("victory-core").D3Scale<any> | undefined;
|
|
159
|
-
y?: import("victory-core").ScaleName | import("victory-core").D3Scale<any> | undefined;
|
|
160
|
-
} | null | undefined> | undefined;
|
|
161
|
-
sharedEvents?: React.Validator<{
|
|
162
|
-
events: any[];
|
|
163
|
-
getEventState: Function;
|
|
164
|
-
} | null | undefined> | undefined;
|
|
165
|
-
singleQuadrantDomainPadding?: React.Validator<boolean | {
|
|
166
|
-
x?: boolean | undefined;
|
|
167
|
-
y?: boolean | undefined;
|
|
168
|
-
} | null | undefined> | undefined;
|
|
169
|
-
standalone?: React.Validator<boolean | null | undefined> | undefined;
|
|
170
|
-
width?: React.Validator<number | null | undefined> | undefined;
|
|
171
|
-
};
|
|
172
|
-
static defaultProps: VictoryBoxPlotProps;
|
|
173
|
-
static getDomain: (props: any, axis: any) => any;
|
|
174
|
-
static getData: (props: any) => any;
|
|
175
|
-
static getBaseProps: (props: any) => any;
|
|
176
|
-
static expectedComponents: Array<keyof VictoryBoxPlotProps>;
|
|
177
|
-
renderBoxPlot(props: any): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
178
|
-
shouldAnimate(): boolean;
|
|
179
|
-
shouldRenderDatum(datum: any): boolean;
|
|
180
|
-
render(): React.ReactElement;
|
|
181
|
-
}
|
|
182
|
-
export declare const VictoryBoxPlot: {
|
|
183
|
-
new (props: import("victory-core").EventMixinCommonProps): {
|
|
184
|
-
state: {};
|
|
185
|
-
getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
|
|
186
|
-
getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
|
|
187
|
-
getEvents: (p: any, target: any, eventKey: any) => any;
|
|
188
|
-
externalMutations: {} | undefined;
|
|
189
|
-
calculatedState: {};
|
|
190
|
-
globalEvents: {};
|
|
191
|
-
prevGlobalEventKeys: string[];
|
|
192
|
-
boundGlobalEvents: {};
|
|
193
|
-
shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
|
|
194
|
-
componentDidMount(): void;
|
|
195
|
-
componentDidUpdate(prevProps: any): void;
|
|
196
|
-
componentWillUnmount(): void;
|
|
197
|
-
addGlobalListener(key: any): void;
|
|
198
|
-
removeGlobalListener(key: any): void;
|
|
199
|
-
getStateChanges(props: any): {};
|
|
200
|
-
applyExternalMutations(props: any, externalMutations: any): void;
|
|
201
|
-
getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
|
|
202
|
-
getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
|
|
203
|
-
cacheValues(obj: any): void;
|
|
204
|
-
getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
|
|
205
|
-
getAllEvents(props: any): any;
|
|
206
|
-
getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
|
|
207
|
-
renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
208
|
-
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
209
|
-
renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
210
|
-
renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
211
|
-
context: unknown;
|
|
212
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
213
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
214
|
-
render(): React.ReactNode;
|
|
215
|
-
readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
|
|
216
|
-
refs: {
|
|
217
|
-
[key: string]: React.ReactInstance;
|
|
218
|
-
};
|
|
219
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
220
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
|
|
221
|
-
componentWillMount?(): void;
|
|
222
|
-
UNSAFE_componentWillMount?(): void;
|
|
223
|
-
componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
224
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
225
|
-
componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
226
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
227
|
-
componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
|
|
228
|
-
getSharedEventState: (key: string, value: string) => unknown;
|
|
229
|
-
baseProps: Record<string, object>;
|
|
230
|
-
dataKeys: string[];
|
|
231
|
-
hasEvents: unknown;
|
|
232
|
-
events: unknown;
|
|
233
|
-
};
|
|
234
|
-
getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
|
|
235
|
-
role?: string | undefined;
|
|
236
|
-
expectedComponents?: string[] | undefined;
|
|
237
|
-
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
|
|
238
|
-
animationWhitelist?: string[] | undefined;
|
|
239
|
-
} & typeof VictoryBoxPlotBase;
|
|
240
|
-
export {};
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { EventPropTypeInterface, DomainPropType, DomainPaddingPropType, OrientationTypes, StringOrNumberOrCallback, VictoryDatableProps, VictoryCommonProps, VictoryStyleObject, VictoryLabelStyleObject, EventsMixinClass } from "victory-core";
|
|
3
|
+
export declare type VictoryBoxPlotLabelType = boolean | (string | number)[] | {
|
|
4
|
+
(): any;
|
|
5
|
+
} | {
|
|
6
|
+
(data: any): string | null;
|
|
7
|
+
};
|
|
8
|
+
export interface VictoryBoxPlotStyleInterface {
|
|
9
|
+
parent?: VictoryStyleObject;
|
|
10
|
+
max?: VictoryStyleObject;
|
|
11
|
+
maxLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
12
|
+
min?: VictoryStyleObject;
|
|
13
|
+
minLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
14
|
+
median?: VictoryStyleObject;
|
|
15
|
+
medianLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
16
|
+
q1?: VictoryStyleObject;
|
|
17
|
+
q1Labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
18
|
+
q3?: VictoryStyleObject;
|
|
19
|
+
q3Labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
20
|
+
boxes?: VictoryStyleObject;
|
|
21
|
+
whiskers?: VictoryStyleObject;
|
|
22
|
+
}
|
|
23
|
+
export interface VictoryBoxPlotLabelOrientationInterface {
|
|
24
|
+
max?: OrientationTypes;
|
|
25
|
+
min?: OrientationTypes;
|
|
26
|
+
median?: OrientationTypes;
|
|
27
|
+
q1?: OrientationTypes;
|
|
28
|
+
q3?: OrientationTypes;
|
|
29
|
+
}
|
|
30
|
+
export interface VictoryBoxPlotProps extends VictoryCommonProps, VictoryDatableProps {
|
|
31
|
+
boxWidth?: number;
|
|
32
|
+
datum?: any;
|
|
33
|
+
domain?: DomainPropType;
|
|
34
|
+
domainPadding?: DomainPaddingPropType;
|
|
35
|
+
events?: EventPropTypeInterface<string, StringOrNumberOrCallback>[];
|
|
36
|
+
eventKey?: StringOrNumberOrCallback;
|
|
37
|
+
horizontal?: boolean;
|
|
38
|
+
labelOrientation?: OrientationTypes | VictoryBoxPlotLabelOrientationInterface;
|
|
39
|
+
labels?: boolean;
|
|
40
|
+
max?: StringOrNumberOrCallback | string[];
|
|
41
|
+
maxComponent?: React.ReactElement;
|
|
42
|
+
maxLabelComponent?: React.ReactElement;
|
|
43
|
+
maxLabels?: VictoryBoxPlotLabelType;
|
|
44
|
+
median?: StringOrNumberOrCallback | string[];
|
|
45
|
+
medianComponent?: React.ReactElement;
|
|
46
|
+
medianLabelComponent?: React.ReactElement;
|
|
47
|
+
medianLabels?: VictoryBoxPlotLabelType;
|
|
48
|
+
min?: StringOrNumberOrCallback | string[];
|
|
49
|
+
minComponent?: React.ReactElement;
|
|
50
|
+
minLabelComponent?: React.ReactElement;
|
|
51
|
+
minLabels?: VictoryBoxPlotLabelType;
|
|
52
|
+
q1?: StringOrNumberOrCallback | string[];
|
|
53
|
+
q1Component?: React.ReactElement;
|
|
54
|
+
q1LabelComponent?: React.ReactElement;
|
|
55
|
+
q1Labels?: VictoryBoxPlotLabelType;
|
|
56
|
+
q3?: StringOrNumberOrCallback | string[];
|
|
57
|
+
q3Component?: React.ReactElement;
|
|
58
|
+
q3LabelComponent?: React.ReactElement;
|
|
59
|
+
q3Labels?: VictoryBoxPlotLabelType;
|
|
60
|
+
style?: VictoryBoxPlotStyleInterface;
|
|
61
|
+
text?: StringOrNumberOrCallback | string[];
|
|
62
|
+
whiskerWidth?: number;
|
|
63
|
+
}
|
|
64
|
+
interface VictoryBoxPlotBase extends EventsMixinClass<VictoryBoxPlotProps> {
|
|
65
|
+
}
|
|
66
|
+
declare class VictoryBoxPlotBase extends React.Component<VictoryBoxPlotProps> {
|
|
67
|
+
static animationWhitelist: Array<keyof VictoryBoxPlotProps>;
|
|
68
|
+
static displayName: string;
|
|
69
|
+
static role: string;
|
|
70
|
+
static defaultTransitions: import("victory-core").AnimatePropTypeInterface;
|
|
71
|
+
static defaultProps: VictoryBoxPlotProps;
|
|
72
|
+
static getDomain: (props: any, axis: any) => any;
|
|
73
|
+
static getData: (props: any) => any;
|
|
74
|
+
static getBaseProps: (props: any) => any;
|
|
75
|
+
static expectedComponents: Array<keyof VictoryBoxPlotProps>;
|
|
76
|
+
renderBoxPlot(props: any): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
77
|
+
shouldAnimate(): boolean;
|
|
78
|
+
shouldRenderDatum(datum: any): boolean;
|
|
79
|
+
render(): React.ReactElement;
|
|
80
|
+
}
|
|
81
|
+
export declare const VictoryBoxPlot: {
|
|
82
|
+
new (props: import("victory-core").EventMixinCommonProps): {
|
|
83
|
+
state: {};
|
|
84
|
+
getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
|
|
85
|
+
getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
|
|
86
|
+
getEvents: (p: any, target: any, eventKey: any) => any;
|
|
87
|
+
externalMutations: {} | undefined;
|
|
88
|
+
calculatedState: {};
|
|
89
|
+
globalEvents: {};
|
|
90
|
+
prevGlobalEventKeys: string[];
|
|
91
|
+
boundGlobalEvents: {};
|
|
92
|
+
shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
|
|
93
|
+
componentDidMount(): void;
|
|
94
|
+
componentDidUpdate(prevProps: any): void;
|
|
95
|
+
componentWillUnmount(): void;
|
|
96
|
+
addGlobalListener(key: any): void;
|
|
97
|
+
removeGlobalListener(key: any): void;
|
|
98
|
+
getStateChanges(props: any): {};
|
|
99
|
+
applyExternalMutations(props: any, externalMutations: any): void;
|
|
100
|
+
getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
|
|
101
|
+
getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
|
|
102
|
+
cacheValues(obj: any): void;
|
|
103
|
+
getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
|
|
104
|
+
getAllEvents(props: any): any;
|
|
105
|
+
getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
|
|
106
|
+
renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
107
|
+
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
108
|
+
renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
109
|
+
renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
110
|
+
context: unknown;
|
|
111
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
112
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
113
|
+
render(): React.ReactNode;
|
|
114
|
+
readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
|
|
115
|
+
refs: {
|
|
116
|
+
[key: string]: React.ReactInstance;
|
|
117
|
+
};
|
|
118
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
119
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
|
|
120
|
+
componentWillMount?(): void;
|
|
121
|
+
UNSAFE_componentWillMount?(): void;
|
|
122
|
+
componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
123
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
124
|
+
componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
125
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
126
|
+
componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
|
|
127
|
+
getSharedEventState: (key: string, value: string) => unknown;
|
|
128
|
+
baseProps: Record<string, object>;
|
|
129
|
+
dataKeys: string[];
|
|
130
|
+
hasEvents: unknown;
|
|
131
|
+
events: unknown;
|
|
132
|
+
};
|
|
133
|
+
getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
|
|
134
|
+
role?: string | undefined;
|
|
135
|
+
expectedComponents?: string[] | undefined;
|
|
136
|
+
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
|
|
137
|
+
animationWhitelist?: string[] | undefined;
|
|
138
|
+
} & typeof VictoryBoxPlotBase;
|
|
139
|
+
export {};
|
|
241
140
|
//# sourceMappingURL=victory-box-plot.d.ts.map
|
package/es/victory-box-plot.js
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import _isNil from "lodash/isNil";
|
|
2
2
|
import _flatten from "lodash/flatten";
|
|
3
3
|
|
|
4
|
-
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; }
|
|
5
|
-
|
|
6
|
-
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; }
|
|
7
|
-
|
|
8
|
-
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; }
|
|
9
|
-
|
|
10
4
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
11
5
|
|
|
12
6
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -40,8 +34,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
40
34
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
41
35
|
|
|
42
36
|
import React from "react";
|
|
43
|
-
import
|
|
44
|
-
import { Helpers, VictoryLabel, addEvents, LineSegment, PropTypes as CustomPropTypes, VictoryContainer, VictoryTheme, Box, Whisker, DefaultTransitions, CommonProps, UserProps } from "victory-core";
|
|
37
|
+
import { Helpers, VictoryLabel, addEvents, LineSegment, VictoryContainer, VictoryTheme, Box, Whisker, DefaultTransitions, UserProps } from "victory-core";
|
|
45
38
|
import { getDomain, getData, getBaseProps } from "./helper-methods";
|
|
46
39
|
var fallbackProps = {
|
|
47
40
|
width: 450,
|
|
@@ -185,60 +178,6 @@ VictoryBoxPlotBase.animationWhitelist = ["data", "domain", "height", "padding",
|
|
|
185
178
|
VictoryBoxPlotBase.displayName = "VictoryBoxPlot";
|
|
186
179
|
VictoryBoxPlotBase.role = "boxplot";
|
|
187
180
|
VictoryBoxPlotBase.defaultTransitions = DefaultTransitions.discreteTransitions();
|
|
188
|
-
VictoryBoxPlotBase.propTypes = _objectSpread(_objectSpread(_objectSpread({}, CommonProps.baseProps), CommonProps.dataProps), {}, {
|
|
189
|
-
boxWidth: PropTypes.number,
|
|
190
|
-
events: PropTypes.arrayOf(PropTypes.shape({
|
|
191
|
-
target: PropTypes.oneOf(["max", "maxLabels", "median", "medianLabels", "min", "minLabels", "q1", "q1Labels", "q3", "q3Labels", "parent"]),
|
|
192
|
-
eventKey: PropTypes.oneOfType([PropTypes.array, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string]),
|
|
193
|
-
eventHandlers: PropTypes.object
|
|
194
|
-
})),
|
|
195
|
-
horizontal: PropTypes.bool,
|
|
196
|
-
labelOrientation: PropTypes.oneOfType([PropTypes.oneOf(["top", "bottom", "left", "right"]), PropTypes.shape({
|
|
197
|
-
q1: PropTypes.oneOf(["top", "bottom", "left", "right"]),
|
|
198
|
-
q3: PropTypes.oneOf(["top", "bottom", "left", "right"]),
|
|
199
|
-
min: PropTypes.oneOf(["top", "bottom", "left", "right"]),
|
|
200
|
-
max: PropTypes.oneOf(["top", "bottom", "left", "right"]),
|
|
201
|
-
median: PropTypes.oneOf(["top", "bottom", "left", "right"])
|
|
202
|
-
})]),
|
|
203
|
-
labels: PropTypes.bool,
|
|
204
|
-
max: PropTypes.oneOfType([PropTypes.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),
|
|
205
|
-
maxComponent: PropTypes.element,
|
|
206
|
-
maxLabelComponent: PropTypes.element,
|
|
207
|
-
maxLabels: PropTypes.oneOfType([PropTypes.func, PropTypes.array, PropTypes.bool]),
|
|
208
|
-
median: PropTypes.oneOfType([PropTypes.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),
|
|
209
|
-
medianComponent: PropTypes.element,
|
|
210
|
-
medianLabelComponent: PropTypes.element,
|
|
211
|
-
medianLabels: PropTypes.oneOfType([PropTypes.func, PropTypes.array, PropTypes.bool]),
|
|
212
|
-
min: PropTypes.oneOfType([PropTypes.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),
|
|
213
|
-
minComponent: PropTypes.element,
|
|
214
|
-
minLabelComponent: PropTypes.element,
|
|
215
|
-
minLabels: PropTypes.oneOfType([PropTypes.func, PropTypes.array, PropTypes.bool]),
|
|
216
|
-
q1: PropTypes.oneOfType([PropTypes.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),
|
|
217
|
-
q1Component: PropTypes.element,
|
|
218
|
-
q1LabelComponent: PropTypes.element,
|
|
219
|
-
q1Labels: PropTypes.oneOfType([PropTypes.func, PropTypes.array, PropTypes.bool]),
|
|
220
|
-
q3: PropTypes.oneOfType([PropTypes.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),
|
|
221
|
-
q3Component: PropTypes.element,
|
|
222
|
-
q3LabelComponent: PropTypes.element,
|
|
223
|
-
q3Labels: PropTypes.oneOfType([PropTypes.func, PropTypes.array, PropTypes.bool]),
|
|
224
|
-
style: PropTypes.shape({
|
|
225
|
-
boxes: PropTypes.object,
|
|
226
|
-
labels: PropTypes.object,
|
|
227
|
-
parent: PropTypes.object,
|
|
228
|
-
max: PropTypes.object,
|
|
229
|
-
maxLabels: PropTypes.object,
|
|
230
|
-
median: PropTypes.object,
|
|
231
|
-
medianLabels: PropTypes.object,
|
|
232
|
-
min: PropTypes.object,
|
|
233
|
-
minLabels: PropTypes.object,
|
|
234
|
-
q1: PropTypes.object,
|
|
235
|
-
q1Labels: PropTypes.object,
|
|
236
|
-
q3: PropTypes.object,
|
|
237
|
-
q3Labels: PropTypes.object,
|
|
238
|
-
whiskers: PropTypes.object
|
|
239
|
-
}),
|
|
240
|
-
whiskerWidth: PropTypes.number
|
|
241
|
-
});
|
|
242
181
|
VictoryBoxPlotBase.defaultProps = {
|
|
243
182
|
containerComponent: /*#__PURE__*/React.createElement(VictoryContainer, null),
|
|
244
183
|
data: defaultData,
|
package/lib/helper-methods.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const getData: (props: any) => any;
|
|
2
|
-
export declare const getDomain: (props: any, axis: any) => any;
|
|
3
|
-
export declare const getBaseProps: (initialProps: any, fallbackProps: any) => any;
|
|
1
|
+
export declare const getData: (props: any) => any;
|
|
2
|
+
export declare const getDomain: (props: any, axis: any) => any;
|
|
3
|
+
export declare const getBaseProps: (initialProps: any, fallbackProps: any) => any;
|
|
4
4
|
//# sourceMappingURL=helper-methods.d.ts.map
|
package/lib/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./victory-box-plot";
|
|
1
|
+
export * from "./victory-box-plot";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|