victory-box-plot 36.8.3 → 36.8.5-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.
@@ -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
@@ -3,7 +3,6 @@ import _isNaN from "lodash/isNaN";
3
3
  import _keys from "lodash/keys";
4
4
  import _groupBy from "lodash/groupBy";
5
5
  import _uniq from "lodash/uniq";
6
- import _assign from "lodash/assign";
7
6
  import _defaults from "lodash/defaults";
8
7
  import _orderBy from "lodash/orderBy";
9
8
 
@@ -55,7 +54,7 @@ var getSummaryStatistics = function (data) {
55
54
  _median: nanToNull(d3Quantile(dependentVars, 0.5)),
56
55
  _max: nanToNull(d3Max(dependentVars))
57
56
  };
58
- return _assign({}, data[0], quartiles, {
57
+ return Object.assign({}, data[0], quartiles, {
59
58
  _y: data[0]._y
60
59
  });
61
60
  };
@@ -83,7 +82,7 @@ var processData = function (data) {
83
82
  the depedentVarArray and process each datum separately */
84
83
  return data.map(function (datum) {
85
84
  var dataArray = datum[sortKey].map(function (d) {
86
- return _assign({}, datum, _defineProperty({}, sortKey, d));
85
+ return Object.assign({}, datum, _defineProperty({}, sortKey, d));
87
86
  });
88
87
 
89
88
  var sortedData = _orderBy(dataArray, sortKey);
@@ -465,9 +464,7 @@ var isDatumOutOfBounds = function (datum, domain) {
465
464
 
466
465
  export var getBaseProps = function (initialProps, fallbackProps) {
467
466
  var modifiedProps = Helpers.modifyProps(initialProps, fallbackProps, "boxplot");
468
-
469
- var props = _assign({}, modifiedProps, getCalculatedValues(modifiedProps));
470
-
467
+ var props = Object.assign({}, modifiedProps, getCalculatedValues(modifiedProps));
471
468
  var groupComponent = props.groupComponent,
472
469
  width = props.width,
473
470
  height = props.height,
@@ -511,13 +508,11 @@ export var getBaseProps = function (initialProps, fallbackProps) {
511
508
  q1: boxScale(datum._q1),
512
509
  q3: boxScale(datum._q3)
513
510
  };
514
-
515
- var dataProps = _assign({
511
+ var dataProps = Object.assign({
516
512
  index: index,
517
513
  datum: datum,
518
514
  positions: positions
519
515
  }, props);
520
-
521
516
  var dataObj = TYPES.reduce(function (memo, type) {
522
517
  memo[type] = getDataProps(dataProps, type);
523
518
  return memo;
@@ -529,7 +524,7 @@ export var getBaseProps = function (initialProps, fallbackProps) {
529
524
 
530
525
  if (labelText !== null && labelText !== undefined || labelProp && (events || sharedEvents)) {
531
526
  var target = "".concat(type, "Labels");
532
- acc[eventKey][target] = getLabelProps(_assign({}, props, dataProps), labelText, type);
527
+ acc[eventKey][target] = getLabelProps(Object.assign({}, props, dataProps), labelText, type);
533
528
  }
534
529
  });
535
530
  return acc;
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
@@ -1,268 +1,241 @@
1
- import React from "react";
2
- import PropTypes from "prop-types";
3
- import { EventPropTypeInterface, DomainPropType, DomainPaddingPropType, OrientationTypes, StringOrNumberOrCallback, VictoryDatableProps, VictoryCommonProps, VictoryStyleObject, VictoryLabelStyleObject, EventsMixinClass } from "victory-core";
4
- export declare type VictoryBoxPlotLabelType = boolean | (string | number)[] | {
5
- (): any;
6
- } | {
7
- (data: any): string | null;
8
- };
9
- export interface VictoryBoxPlotStyleInterface {
10
- parent?: VictoryStyleObject;
11
- max?: VictoryStyleObject;
12
- maxLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
13
- min?: VictoryStyleObject;
14
- minLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
15
- median?: VictoryStyleObject;
16
- medianLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
17
- q1?: VictoryStyleObject;
18
- q1Labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
19
- q3?: VictoryStyleObject;
20
- q3Labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
21
- boxes?: VictoryStyleObject;
22
- whiskers?: VictoryStyleObject;
23
- }
24
- export interface VictoryBoxPlotLabelOrientationInterface {
25
- max?: OrientationTypes;
26
- min?: OrientationTypes;
27
- median?: OrientationTypes;
28
- q1?: OrientationTypes;
29
- q3?: OrientationTypes;
30
- }
31
- export interface VictoryBoxPlotProps extends VictoryCommonProps, VictoryDatableProps {
32
- boxWidth?: number;
33
- datum?: any;
34
- domain?: DomainPropType;
35
- domainPadding?: DomainPaddingPropType;
36
- events?: EventPropTypeInterface<string, StringOrNumberOrCallback>[];
37
- eventKey?: StringOrNumberOrCallback;
38
- horizontal?: boolean;
39
- labelOrientation?: OrientationTypes | VictoryBoxPlotLabelOrientationInterface;
40
- labels?: boolean;
41
- max?: StringOrNumberOrCallback | string[];
42
- maxComponent?: React.ReactElement;
43
- maxLabelComponent?: React.ReactElement;
44
- maxLabels?: VictoryBoxPlotLabelType;
45
- median?: StringOrNumberOrCallback | string[];
46
- medianComponent?: React.ReactElement;
47
- medianLabelComponent?: React.ReactElement;
48
- medianLabels?: VictoryBoxPlotLabelType;
49
- min?: StringOrNumberOrCallback | string[];
50
- minComponent?: React.ReactElement;
51
- minLabelComponent?: React.ReactElement;
52
- minLabels?: VictoryBoxPlotLabelType;
53
- q1?: StringOrNumberOrCallback | string[];
54
- q1Component?: React.ReactElement;
55
- q1LabelComponent?: React.ReactElement;
56
- q1Labels?: VictoryBoxPlotLabelType;
57
- q3?: StringOrNumberOrCallback | string[];
58
- q3Component?: React.ReactElement;
59
- q3LabelComponent?: React.ReactElement;
60
- q3Labels?: VictoryBoxPlotLabelType;
61
- style?: VictoryBoxPlotStyleInterface;
62
- text?: StringOrNumberOrCallback | string[];
63
- whiskerWidth?: number;
64
- }
65
- interface VictoryBoxPlotBase extends EventsMixinClass<VictoryBoxPlotProps> {
66
- }
67
- declare class VictoryBoxPlotBase extends React.Component<VictoryBoxPlotProps> {
68
- static animationWhitelist: Array<keyof VictoryBoxPlotProps>;
69
- static displayName: string;
70
- static role: string;
71
- static defaultTransitions: import("victory-core").AnimatePropTypeInterface;
72
- static propTypes: {
73
- boxWidth: PropTypes.Requireable<number>;
74
- events: PropTypes.Requireable<(PropTypes.InferProps<{
75
- target: PropTypes.Requireable<string>;
76
- eventKey: PropTypes.Requireable<string | number | any[]>;
77
- eventHandlers: PropTypes.Requireable<object>;
78
- }> | null | undefined)[]>;
79
- horizontal: PropTypes.Requireable<boolean>;
80
- labelOrientation: PropTypes.Requireable<string | PropTypes.InferProps<{
81
- q1: PropTypes.Requireable<string>;
82
- q3: PropTypes.Requireable<string>;
83
- min: PropTypes.Requireable<string>;
84
- max: PropTypes.Requireable<string>;
85
- median: PropTypes.Requireable<string>;
86
- }>>;
87
- labels: PropTypes.Requireable<boolean>;
88
- max: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>;
89
- maxComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
90
- maxLabelComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
91
- maxLabels: PropTypes.Requireable<boolean | any[] | ((...args: any[]) => any)>;
92
- median: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>;
93
- medianComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
94
- medianLabelComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
95
- medianLabels: PropTypes.Requireable<boolean | any[] | ((...args: any[]) => any)>;
96
- min: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>;
97
- minComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
98
- minLabelComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
99
- minLabels: PropTypes.Requireable<boolean | any[] | ((...args: any[]) => any)>;
100
- q1: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>;
101
- q1Component: PropTypes.Requireable<PropTypes.ReactElementLike>;
102
- q1LabelComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
103
- q1Labels: PropTypes.Requireable<boolean | any[] | ((...args: any[]) => any)>;
104
- q3: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>;
105
- q3Component: PropTypes.Requireable<PropTypes.ReactElementLike>;
106
- q3LabelComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
107
- q3Labels: PropTypes.Requireable<boolean | any[] | ((...args: any[]) => any)>;
108
- style: PropTypes.Requireable<PropTypes.InferProps<{
109
- boxes: PropTypes.Requireable<object>;
110
- labels: PropTypes.Requireable<object>;
111
- parent: PropTypes.Requireable<object>;
112
- max: PropTypes.Requireable<object>;
113
- maxLabels: PropTypes.Requireable<object>;
114
- median: PropTypes.Requireable<object>;
115
- medianLabels: PropTypes.Requireable<object>;
116
- min: PropTypes.Requireable<object>;
117
- minLabels: PropTypes.Requireable<object>;
118
- q1: PropTypes.Requireable<object>;
119
- q1Labels: PropTypes.Requireable<object>;
120
- q3: PropTypes.Requireable<object>;
121
- q3Labels: PropTypes.Requireable<object>;
122
- whiskers: PropTypes.Requireable<object>;
123
- }>>;
124
- whiskerWidth: PropTypes.Requireable<number>;
125
- categories?: React.Validator<import("victory-core").CategoryPropType | null | undefined> | undefined;
126
- data?: React.Validator<readonly any[] | null | undefined> | undefined;
127
- dataComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
128
- domain?: React.Validator<import("victory-core").ForAxes<import("victory-core").DomainTuple> | null | undefined> | undefined;
129
- domainPadding?: React.Validator<import("victory-core").ForAxes<import("victory-core").PaddingType> | null | undefined> | undefined;
130
- samples?: React.Validator<number | null | undefined> | undefined;
131
- sortKey?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
132
- sortOrder?: React.Validator<import("victory-core").SortOrderPropType | null | undefined> | undefined;
133
- x?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
134
- y?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
135
- y0?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
136
- theme?: React.Validator<import("victory-core").VictoryThemeDefinition | null | undefined> | undefined;
137
- animate?: React.Validator<boolean | import("victory-core").AnimatePropTypeInterface | null | undefined> | undefined;
138
- colorScale?: React.Validator<import("victory-core").ColorScalePropType | null | undefined> | undefined;
139
- containerComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
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: {
173
- containerComponent: JSX.Element;
174
- data: {
175
- x: number;
176
- min: number;
177
- q1: number;
178
- median: number;
179
- q3: number;
180
- max: number;
181
- }[];
182
- dataComponent: JSX.Element;
183
- groupComponent: JSX.Element;
184
- maxComponent: JSX.Element;
185
- maxLabelComponent: JSX.Element;
186
- medianComponent: JSX.Element;
187
- medianLabelComponent: JSX.Element;
188
- minComponent: JSX.Element;
189
- minLabelComponent: JSX.Element;
190
- q1Component: JSX.Element;
191
- q1LabelComponent: JSX.Element;
192
- q3Component: JSX.Element;
193
- q3LabelComponent: JSX.Element;
194
- samples: number;
195
- sortKey: string;
196
- sortOrder: string;
197
- standalone: boolean;
198
- theme: import("victory-core").VictoryThemeDefinition;
199
- };
200
- static getDomain: (props: any, axis: any) => any;
201
- static getData: (props: any) => any;
202
- static getBaseProps: (props: any) => any;
203
- static expectedComponents: Array<keyof VictoryBoxPlotProps>;
204
- renderBoxPlot(props: any): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
205
- shouldAnimate(): boolean;
206
- shouldRenderDatum(datum: any): boolean;
207
- render(): React.ReactElement;
208
- }
209
- export declare const VictoryBoxPlot: {
210
- new (props: import("victory-core").EventMixinCommonProps): {
211
- state: {};
212
- getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
213
- getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
214
- getEvents: (p: any, target: any, eventKey: any) => any;
215
- externalMutations: {} | undefined;
216
- calculatedState: {};
217
- globalEvents: {};
218
- prevGlobalEventKeys: string[];
219
- boundGlobalEvents: {};
220
- shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
221
- componentDidMount(): void;
222
- componentDidUpdate(prevProps: any): void;
223
- componentWillUnmount(): void;
224
- addGlobalListener(key: any): void;
225
- removeGlobalListener(key: any): void;
226
- getStateChanges(props: any): {};
227
- applyExternalMutations(props: any, externalMutations: any): void;
228
- getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
229
- getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
230
- cacheValues(obj: any): void;
231
- getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
232
- getAllEvents(props: any): any;
233
- getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
234
- renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
235
- animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
236
- renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
237
- renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
238
- context: unknown;
239
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
240
- forceUpdate(callback?: (() => void) | undefined): void;
241
- render(): React.ReactNode;
242
- readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
243
- refs: {
244
- [key: string]: React.ReactInstance;
245
- };
246
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
247
- getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
248
- componentWillMount?(): void;
249
- UNSAFE_componentWillMount?(): void;
250
- componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
251
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
252
- componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
253
- UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
254
- componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
255
- getSharedEventState: (key: string, value: string) => unknown;
256
- baseProps: Record<string, object>;
257
- dataKeys: string[];
258
- hasEvents: unknown;
259
- events: unknown;
260
- };
261
- getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
262
- role?: string | undefined;
263
- expectedComponents?: string[] | undefined;
264
- getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
265
- animationWhitelist?: string[] | undefined;
266
- } & typeof VictoryBoxPlotBase;
267
- export {};
1
+ import React from "react";
2
+ import PropTypes from "prop-types";
3
+ import { EventPropTypeInterface, DomainPropType, DomainPaddingPropType, OrientationTypes, StringOrNumberOrCallback, VictoryDatableProps, VictoryCommonProps, VictoryStyleObject, VictoryLabelStyleObject, EventsMixinClass } from "victory-core";
4
+ export declare type VictoryBoxPlotLabelType = boolean | (string | number)[] | {
5
+ (): any;
6
+ } | {
7
+ (data: any): string | null;
8
+ };
9
+ export interface VictoryBoxPlotStyleInterface {
10
+ parent?: VictoryStyleObject;
11
+ max?: VictoryStyleObject;
12
+ maxLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
13
+ min?: VictoryStyleObject;
14
+ minLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
15
+ median?: VictoryStyleObject;
16
+ medianLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
17
+ q1?: VictoryStyleObject;
18
+ q1Labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
19
+ q3?: VictoryStyleObject;
20
+ q3Labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
21
+ boxes?: VictoryStyleObject;
22
+ whiskers?: VictoryStyleObject;
23
+ }
24
+ export interface VictoryBoxPlotLabelOrientationInterface {
25
+ max?: OrientationTypes;
26
+ min?: OrientationTypes;
27
+ median?: OrientationTypes;
28
+ q1?: OrientationTypes;
29
+ q3?: OrientationTypes;
30
+ }
31
+ export interface VictoryBoxPlotProps extends VictoryCommonProps, VictoryDatableProps {
32
+ boxWidth?: number;
33
+ datum?: any;
34
+ domain?: DomainPropType;
35
+ domainPadding?: DomainPaddingPropType;
36
+ events?: EventPropTypeInterface<string, StringOrNumberOrCallback>[];
37
+ eventKey?: StringOrNumberOrCallback;
38
+ horizontal?: boolean;
39
+ labelOrientation?: OrientationTypes | VictoryBoxPlotLabelOrientationInterface;
40
+ labels?: boolean;
41
+ max?: StringOrNumberOrCallback | string[];
42
+ maxComponent?: React.ReactElement;
43
+ maxLabelComponent?: React.ReactElement;
44
+ maxLabels?: VictoryBoxPlotLabelType;
45
+ median?: StringOrNumberOrCallback | string[];
46
+ medianComponent?: React.ReactElement;
47
+ medianLabelComponent?: React.ReactElement;
48
+ medianLabels?: VictoryBoxPlotLabelType;
49
+ min?: StringOrNumberOrCallback | string[];
50
+ minComponent?: React.ReactElement;
51
+ minLabelComponent?: React.ReactElement;
52
+ minLabels?: VictoryBoxPlotLabelType;
53
+ q1?: StringOrNumberOrCallback | string[];
54
+ q1Component?: React.ReactElement;
55
+ q1LabelComponent?: React.ReactElement;
56
+ q1Labels?: VictoryBoxPlotLabelType;
57
+ q3?: StringOrNumberOrCallback | string[];
58
+ q3Component?: React.ReactElement;
59
+ q3LabelComponent?: React.ReactElement;
60
+ q3Labels?: VictoryBoxPlotLabelType;
61
+ style?: VictoryBoxPlotStyleInterface;
62
+ text?: StringOrNumberOrCallback | string[];
63
+ whiskerWidth?: number;
64
+ }
65
+ interface VictoryBoxPlotBase extends EventsMixinClass<VictoryBoxPlotProps> {
66
+ }
67
+ declare class VictoryBoxPlotBase extends React.Component<VictoryBoxPlotProps> {
68
+ static animationWhitelist: Array<keyof VictoryBoxPlotProps>;
69
+ static displayName: string;
70
+ static role: string;
71
+ static defaultTransitions: import("victory-core").AnimatePropTypeInterface;
72
+ static propTypes: {
73
+ boxWidth: PropTypes.Requireable<number>;
74
+ events: PropTypes.Requireable<(PropTypes.InferProps<{
75
+ target: PropTypes.Requireable<string>;
76
+ eventKey: PropTypes.Requireable<string | number | any[]>;
77
+ eventHandlers: PropTypes.Requireable<object>;
78
+ }> | null | undefined)[]>;
79
+ horizontal: PropTypes.Requireable<boolean>;
80
+ labelOrientation: PropTypes.Requireable<string | PropTypes.InferProps<{
81
+ q1: PropTypes.Requireable<string>;
82
+ q3: PropTypes.Requireable<string>;
83
+ min: PropTypes.Requireable<string>;
84
+ max: PropTypes.Requireable<string>;
85
+ median: PropTypes.Requireable<string>;
86
+ }>>;
87
+ labels: PropTypes.Requireable<boolean>;
88
+ max: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>;
89
+ maxComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
90
+ maxLabelComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
91
+ maxLabels: PropTypes.Requireable<boolean | any[] | ((...args: any[]) => any)>;
92
+ median: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>;
93
+ medianComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
94
+ medianLabelComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
95
+ medianLabels: PropTypes.Requireable<boolean | any[] | ((...args: any[]) => any)>;
96
+ min: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>;
97
+ minComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
98
+ minLabelComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
99
+ minLabels: PropTypes.Requireable<boolean | any[] | ((...args: any[]) => any)>;
100
+ q1: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>;
101
+ q1Component: PropTypes.Requireable<PropTypes.ReactElementLike>;
102
+ q1LabelComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
103
+ q1Labels: PropTypes.Requireable<boolean | any[] | ((...args: any[]) => any)>;
104
+ q3: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>;
105
+ q3Component: PropTypes.Requireable<PropTypes.ReactElementLike>;
106
+ q3LabelComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
107
+ q3Labels: PropTypes.Requireable<boolean | any[] | ((...args: any[]) => any)>;
108
+ style: PropTypes.Requireable<PropTypes.InferProps<{
109
+ boxes: PropTypes.Requireable<object>;
110
+ labels: PropTypes.Requireable<object>;
111
+ parent: PropTypes.Requireable<object>;
112
+ max: PropTypes.Requireable<object>;
113
+ maxLabels: PropTypes.Requireable<object>;
114
+ median: PropTypes.Requireable<object>;
115
+ medianLabels: PropTypes.Requireable<object>;
116
+ min: PropTypes.Requireable<object>;
117
+ minLabels: PropTypes.Requireable<object>;
118
+ q1: PropTypes.Requireable<object>;
119
+ q1Labels: PropTypes.Requireable<object>;
120
+ q3: PropTypes.Requireable<object>;
121
+ q3Labels: PropTypes.Requireable<object>;
122
+ whiskers: PropTypes.Requireable<object>;
123
+ }>>;
124
+ whiskerWidth: PropTypes.Requireable<number>;
125
+ categories?: React.Validator<import("victory-core").CategoryPropType | null | undefined> | undefined;
126
+ data?: React.Validator<readonly any[] | null | undefined> | undefined;
127
+ dataComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
128
+ domain?: React.Validator<import("victory-core").ForAxes<import("victory-core").DomainTuple> | null | undefined> | undefined;
129
+ domainPadding?: React.Validator<import("victory-core").ForAxes<import("victory-core").PaddingType> | null | undefined> | undefined;
130
+ samples?: React.Validator<number | null | undefined> | undefined;
131
+ sortKey?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
132
+ sortOrder?: React.Validator<import("victory-core").SortOrderPropType | null | undefined> | undefined;
133
+ x?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
134
+ y?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
135
+ y0?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
136
+ theme?: React.Validator<import("victory-core").VictoryThemeDefinition | null | undefined> | undefined;
137
+ animate?: React.Validator<boolean | import("victory-core").AnimatePropTypeInterface | null | undefined> | undefined;
138
+ colorScale?: React.Validator<import("victory-core").ColorScalePropType | null | undefined> | undefined;
139
+ containerComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
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 {};
268
241
  //# sourceMappingURL=victory-box-plot.d.ts.map
@@ -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