victory-box-plot 37.0.2 → 37.0.3-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 +8 -0
- package/dist/victory-box-plot.js +285 -255
- 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 -139
- package/lib/helper-methods.d.ts +3 -3
- package/lib/index.d.ts +1 -1
- package/lib/victory-box-plot.d.ts +139 -139
- package/package.json +4 -7
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,140 +1,140 @@
|
|
|
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 {};
|
|
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 {};
|
|
140
140
|
//# sourceMappingURL=victory-box-plot.d.ts.map
|
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
|
|
@@ -1,140 +1,140 @@
|
|
|
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 {};
|
|
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 {};
|
|
140
140
|
//# 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": "37.0.
|
|
3
|
+
"version": "37.0.3-next.0",
|
|
4
4
|
"description": "Box Plot Component for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -21,17 +21,14 @@
|
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"lodash": "^4.17.19",
|
|
24
|
-
"victory-core": "^37.0.
|
|
25
|
-
"victory-vendor": "^37.0.
|
|
24
|
+
"victory-core": "^37.0.3-next.0",
|
|
25
|
+
"victory-vendor": "^37.0.3-next.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": ">=16.6.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"victory-chart": "
|
|
32
|
-
},
|
|
33
|
-
"publishConfig": {
|
|
34
|
-
"provenance": true
|
|
31
|
+
"victory-chart": "37.0.3-next.0"
|
|
35
32
|
},
|
|
36
33
|
"wireit": {
|
|
37
34
|
"### THESE WIREIT CONFIGS ARE GENERATED ####": {},
|