victory-scatter 37.0.1-next.2 → 37.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -3
- package/es/helper-methods.d.ts +4 -4
- package/es/index.d.ts +1 -1
- package/es/victory-scatter.d.ts +96 -96
- package/lib/helper-methods.d.ts +4 -4
- package/lib/index.d.ts +1 -1
- package/lib/victory-scatter.d.ts +96 -96
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
# victory-scatter
|
|
2
2
|
|
|
3
|
-
## 37.0.1
|
|
3
|
+
## 37.0.1
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
- victory-core@37.0.1-next.2
|
|
7
|
+
- Fix the signature of class static functions in components ([#2840](https://github.com/FormidableLabs/victory/pull/2840))
|
|
9
8
|
|
|
10
9
|
## 37.0.0
|
|
11
10
|
|
package/es/helper-methods.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const getSymbol: (data: any, props: any) => any;
|
|
2
|
-
export declare const getBubbleSize: (datum: any, props: any) => number;
|
|
3
|
-
export declare const getSize: (datum: any, props: any) => any;
|
|
4
|
-
export declare const getBaseProps: (initialProps: any, fallbackProps: any) => any;
|
|
1
|
+
export declare const getSymbol: (data: any, props: any) => any;
|
|
2
|
+
export declare const getBubbleSize: (datum: any, props: any) => number;
|
|
3
|
+
export declare const getSize: (datum: any, props: any) => any;
|
|
4
|
+
export declare const getBaseProps: (initialProps: any, fallbackProps: any) => any;
|
|
5
5
|
//# sourceMappingURL=helper-methods.d.ts.map
|
package/es/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./victory-scatter";
|
|
1
|
+
export * from "./victory-scatter";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/es/victory-scatter.d.ts
CHANGED
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Data, Domain, EventPropTypeInterface, ScatterSymbolType, StringOrNumberOrCallback, EventsMixinClass, VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps, VictoryStyleInterface } from "victory-core";
|
|
3
|
-
export declare type VictoryScatterTTargetType = "data" | "labels" | "parent";
|
|
4
|
-
export interface VictoryScatterProps extends VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps {
|
|
5
|
-
bubbleProperty?: string;
|
|
6
|
-
children?: React.ReactElement | React.ReactElement[];
|
|
7
|
-
events?: EventPropTypeInterface<VictoryScatterTTargetType, StringOrNumberOrCallback>[];
|
|
8
|
-
eventKey?: StringOrNumberOrCallback;
|
|
9
|
-
maxBubbleSize?: number;
|
|
10
|
-
minBubbleSize?: number;
|
|
11
|
-
size?: number | {
|
|
12
|
-
(data: any): number;
|
|
13
|
-
};
|
|
14
|
-
style?: VictoryStyleInterface;
|
|
15
|
-
symbol?: ScatterSymbolType | {
|
|
16
|
-
(data: any): ScatterSymbolType;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
interface VictoryScatterBase extends EventsMixinClass<VictoryScatterProps> {
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Draw area charts with React. VictoryArea is a composable component, so it doesn't include axes.
|
|
23
|
-
* Add VictoryArea as a child of VictoryChart for a complete chart.
|
|
24
|
-
*/
|
|
25
|
-
declare class VictoryScatterBase extends React.Component<VictoryScatterProps> {
|
|
26
|
-
static animationWhitelist: string[];
|
|
27
|
-
static displayName: string;
|
|
28
|
-
static role: string;
|
|
29
|
-
static defaultTransitions: import("victory-core").AnimatePropTypeInterface;
|
|
30
|
-
static defaultProps: VictoryScatterProps;
|
|
31
|
-
static getDomain: typeof Domain.getDomain;
|
|
32
|
-
static getData: typeof Data.getData;
|
|
33
|
-
static getBaseProps(props: any): any;
|
|
34
|
-
static expectedComponents: string[];
|
|
35
|
-
shouldAnimate(): boolean;
|
|
36
|
-
render(): React.ReactElement;
|
|
37
|
-
}
|
|
38
|
-
export declare const VictoryScatter: {
|
|
39
|
-
new (props: import("victory-core").EventMixinCommonProps): {
|
|
40
|
-
state: {};
|
|
41
|
-
getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
|
|
42
|
-
getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
|
|
43
|
-
getEvents: (p: any, target: any, eventKey: any) => any;
|
|
44
|
-
externalMutations: {} | undefined;
|
|
45
|
-
calculatedState: {};
|
|
46
|
-
globalEvents: {};
|
|
47
|
-
prevGlobalEventKeys: string[];
|
|
48
|
-
boundGlobalEvents: {};
|
|
49
|
-
shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
|
|
50
|
-
componentDidMount(): void;
|
|
51
|
-
componentDidUpdate(prevProps: any): void;
|
|
52
|
-
componentWillUnmount(): void;
|
|
53
|
-
addGlobalListener(key: any): void;
|
|
54
|
-
removeGlobalListener(key: any): void;
|
|
55
|
-
getStateChanges(props: any): {};
|
|
56
|
-
applyExternalMutations(props: any, externalMutations: any): void;
|
|
57
|
-
getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
|
|
58
|
-
getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
|
|
59
|
-
cacheValues(obj: any): void;
|
|
60
|
-
getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
|
|
61
|
-
getAllEvents(props: any): any;
|
|
62
|
-
getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
|
|
63
|
-
renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
64
|
-
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
65
|
-
renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
66
|
-
renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
67
|
-
context: unknown;
|
|
68
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
69
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
70
|
-
render(): React.ReactNode;
|
|
71
|
-
readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
|
|
72
|
-
refs: {
|
|
73
|
-
[key: string]: React.ReactInstance;
|
|
74
|
-
};
|
|
75
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
76
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
|
|
77
|
-
componentWillMount?(): void;
|
|
78
|
-
UNSAFE_componentWillMount?(): void;
|
|
79
|
-
componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
80
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
81
|
-
componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
82
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
83
|
-
componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
|
|
84
|
-
getSharedEventState: (key: string, value: string) => unknown;
|
|
85
|
-
baseProps: Record<string, object>;
|
|
86
|
-
dataKeys: string[];
|
|
87
|
-
hasEvents: unknown;
|
|
88
|
-
events: unknown;
|
|
89
|
-
};
|
|
90
|
-
getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
|
|
91
|
-
role?: string | undefined;
|
|
92
|
-
expectedComponents?: string[] | undefined;
|
|
93
|
-
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
|
|
94
|
-
animationWhitelist?: string[] | undefined;
|
|
95
|
-
} & typeof VictoryScatterBase;
|
|
96
|
-
export {};
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Data, Domain, EventPropTypeInterface, ScatterSymbolType, StringOrNumberOrCallback, EventsMixinClass, VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps, VictoryStyleInterface } from "victory-core";
|
|
3
|
+
export declare type VictoryScatterTTargetType = "data" | "labels" | "parent";
|
|
4
|
+
export interface VictoryScatterProps extends VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps {
|
|
5
|
+
bubbleProperty?: string;
|
|
6
|
+
children?: React.ReactElement | React.ReactElement[];
|
|
7
|
+
events?: EventPropTypeInterface<VictoryScatterTTargetType, StringOrNumberOrCallback>[];
|
|
8
|
+
eventKey?: StringOrNumberOrCallback;
|
|
9
|
+
maxBubbleSize?: number;
|
|
10
|
+
minBubbleSize?: number;
|
|
11
|
+
size?: number | {
|
|
12
|
+
(data: any): number;
|
|
13
|
+
};
|
|
14
|
+
style?: VictoryStyleInterface;
|
|
15
|
+
symbol?: ScatterSymbolType | {
|
|
16
|
+
(data: any): ScatterSymbolType;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
interface VictoryScatterBase extends EventsMixinClass<VictoryScatterProps> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Draw area charts with React. VictoryArea is a composable component, so it doesn't include axes.
|
|
23
|
+
* Add VictoryArea as a child of VictoryChart for a complete chart.
|
|
24
|
+
*/
|
|
25
|
+
declare class VictoryScatterBase extends React.Component<VictoryScatterProps> {
|
|
26
|
+
static animationWhitelist: string[];
|
|
27
|
+
static displayName: string;
|
|
28
|
+
static role: string;
|
|
29
|
+
static defaultTransitions: import("victory-core").AnimatePropTypeInterface;
|
|
30
|
+
static defaultProps: VictoryScatterProps;
|
|
31
|
+
static getDomain: typeof Domain.getDomain;
|
|
32
|
+
static getData: typeof Data.getData;
|
|
33
|
+
static getBaseProps(props: any): any;
|
|
34
|
+
static expectedComponents: string[];
|
|
35
|
+
shouldAnimate(): boolean;
|
|
36
|
+
render(): React.ReactElement;
|
|
37
|
+
}
|
|
38
|
+
export declare const VictoryScatter: {
|
|
39
|
+
new (props: import("victory-core").EventMixinCommonProps): {
|
|
40
|
+
state: {};
|
|
41
|
+
getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
|
|
42
|
+
getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
|
|
43
|
+
getEvents: (p: any, target: any, eventKey: any) => any;
|
|
44
|
+
externalMutations: {} | undefined;
|
|
45
|
+
calculatedState: {};
|
|
46
|
+
globalEvents: {};
|
|
47
|
+
prevGlobalEventKeys: string[];
|
|
48
|
+
boundGlobalEvents: {};
|
|
49
|
+
shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
|
|
50
|
+
componentDidMount(): void;
|
|
51
|
+
componentDidUpdate(prevProps: any): void;
|
|
52
|
+
componentWillUnmount(): void;
|
|
53
|
+
addGlobalListener(key: any): void;
|
|
54
|
+
removeGlobalListener(key: any): void;
|
|
55
|
+
getStateChanges(props: any): {};
|
|
56
|
+
applyExternalMutations(props: any, externalMutations: any): void;
|
|
57
|
+
getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
|
|
58
|
+
getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
|
|
59
|
+
cacheValues(obj: any): void;
|
|
60
|
+
getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
|
|
61
|
+
getAllEvents(props: any): any;
|
|
62
|
+
getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
|
|
63
|
+
renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
64
|
+
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
65
|
+
renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
66
|
+
renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
67
|
+
context: unknown;
|
|
68
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
69
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
70
|
+
render(): React.ReactNode;
|
|
71
|
+
readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
|
|
72
|
+
refs: {
|
|
73
|
+
[key: string]: React.ReactInstance;
|
|
74
|
+
};
|
|
75
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
76
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
|
|
77
|
+
componentWillMount?(): void;
|
|
78
|
+
UNSAFE_componentWillMount?(): void;
|
|
79
|
+
componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
80
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
81
|
+
componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
82
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
83
|
+
componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
|
|
84
|
+
getSharedEventState: (key: string, value: string) => unknown;
|
|
85
|
+
baseProps: Record<string, object>;
|
|
86
|
+
dataKeys: string[];
|
|
87
|
+
hasEvents: unknown;
|
|
88
|
+
events: unknown;
|
|
89
|
+
};
|
|
90
|
+
getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
|
|
91
|
+
role?: string | undefined;
|
|
92
|
+
expectedComponents?: string[] | undefined;
|
|
93
|
+
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
|
|
94
|
+
animationWhitelist?: string[] | undefined;
|
|
95
|
+
} & typeof VictoryScatterBase;
|
|
96
|
+
export {};
|
|
97
97
|
//# sourceMappingURL=victory-scatter.d.ts.map
|
package/lib/helper-methods.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const getSymbol: (data: any, props: any) => any;
|
|
2
|
-
export declare const getBubbleSize: (datum: any, props: any) => number;
|
|
3
|
-
export declare const getSize: (datum: any, props: any) => any;
|
|
4
|
-
export declare const getBaseProps: (initialProps: any, fallbackProps: any) => any;
|
|
1
|
+
export declare const getSymbol: (data: any, props: any) => any;
|
|
2
|
+
export declare const getBubbleSize: (datum: any, props: any) => number;
|
|
3
|
+
export declare const getSize: (datum: any, props: any) => any;
|
|
4
|
+
export declare const getBaseProps: (initialProps: any, fallbackProps: any) => any;
|
|
5
5
|
//# sourceMappingURL=helper-methods.d.ts.map
|
package/lib/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./victory-scatter";
|
|
1
|
+
export * from "./victory-scatter";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/victory-scatter.d.ts
CHANGED
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Data, Domain, EventPropTypeInterface, ScatterSymbolType, StringOrNumberOrCallback, EventsMixinClass, VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps, VictoryStyleInterface } from "victory-core";
|
|
3
|
-
export declare type VictoryScatterTTargetType = "data" | "labels" | "parent";
|
|
4
|
-
export interface VictoryScatterProps extends VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps {
|
|
5
|
-
bubbleProperty?: string;
|
|
6
|
-
children?: React.ReactElement | React.ReactElement[];
|
|
7
|
-
events?: EventPropTypeInterface<VictoryScatterTTargetType, StringOrNumberOrCallback>[];
|
|
8
|
-
eventKey?: StringOrNumberOrCallback;
|
|
9
|
-
maxBubbleSize?: number;
|
|
10
|
-
minBubbleSize?: number;
|
|
11
|
-
size?: number | {
|
|
12
|
-
(data: any): number;
|
|
13
|
-
};
|
|
14
|
-
style?: VictoryStyleInterface;
|
|
15
|
-
symbol?: ScatterSymbolType | {
|
|
16
|
-
(data: any): ScatterSymbolType;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
interface VictoryScatterBase extends EventsMixinClass<VictoryScatterProps> {
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Draw area charts with React. VictoryArea is a composable component, so it doesn't include axes.
|
|
23
|
-
* Add VictoryArea as a child of VictoryChart for a complete chart.
|
|
24
|
-
*/
|
|
25
|
-
declare class VictoryScatterBase extends React.Component<VictoryScatterProps> {
|
|
26
|
-
static animationWhitelist: string[];
|
|
27
|
-
static displayName: string;
|
|
28
|
-
static role: string;
|
|
29
|
-
static defaultTransitions: import("victory-core").AnimatePropTypeInterface;
|
|
30
|
-
static defaultProps: VictoryScatterProps;
|
|
31
|
-
static getDomain: typeof Domain.getDomain;
|
|
32
|
-
static getData: typeof Data.getData;
|
|
33
|
-
static getBaseProps(props: any): any;
|
|
34
|
-
static expectedComponents: string[];
|
|
35
|
-
shouldAnimate(): boolean;
|
|
36
|
-
render(): React.ReactElement;
|
|
37
|
-
}
|
|
38
|
-
export declare const VictoryScatter: {
|
|
39
|
-
new (props: import("victory-core").EventMixinCommonProps): {
|
|
40
|
-
state: {};
|
|
41
|
-
getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
|
|
42
|
-
getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
|
|
43
|
-
getEvents: (p: any, target: any, eventKey: any) => any;
|
|
44
|
-
externalMutations: {} | undefined;
|
|
45
|
-
calculatedState: {};
|
|
46
|
-
globalEvents: {};
|
|
47
|
-
prevGlobalEventKeys: string[];
|
|
48
|
-
boundGlobalEvents: {};
|
|
49
|
-
shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
|
|
50
|
-
componentDidMount(): void;
|
|
51
|
-
componentDidUpdate(prevProps: any): void;
|
|
52
|
-
componentWillUnmount(): void;
|
|
53
|
-
addGlobalListener(key: any): void;
|
|
54
|
-
removeGlobalListener(key: any): void;
|
|
55
|
-
getStateChanges(props: any): {};
|
|
56
|
-
applyExternalMutations(props: any, externalMutations: any): void;
|
|
57
|
-
getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
|
|
58
|
-
getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
|
|
59
|
-
cacheValues(obj: any): void;
|
|
60
|
-
getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
|
|
61
|
-
getAllEvents(props: any): any;
|
|
62
|
-
getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
|
|
63
|
-
renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
64
|
-
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
65
|
-
renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
66
|
-
renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
67
|
-
context: unknown;
|
|
68
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
69
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
70
|
-
render(): React.ReactNode;
|
|
71
|
-
readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
|
|
72
|
-
refs: {
|
|
73
|
-
[key: string]: React.ReactInstance;
|
|
74
|
-
};
|
|
75
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
76
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
|
|
77
|
-
componentWillMount?(): void;
|
|
78
|
-
UNSAFE_componentWillMount?(): void;
|
|
79
|
-
componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
80
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
81
|
-
componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
82
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
83
|
-
componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
|
|
84
|
-
getSharedEventState: (key: string, value: string) => unknown;
|
|
85
|
-
baseProps: Record<string, object>;
|
|
86
|
-
dataKeys: string[];
|
|
87
|
-
hasEvents: unknown;
|
|
88
|
-
events: unknown;
|
|
89
|
-
};
|
|
90
|
-
getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
|
|
91
|
-
role?: string | undefined;
|
|
92
|
-
expectedComponents?: string[] | undefined;
|
|
93
|
-
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
|
|
94
|
-
animationWhitelist?: string[] | undefined;
|
|
95
|
-
} & typeof VictoryScatterBase;
|
|
96
|
-
export {};
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Data, Domain, EventPropTypeInterface, ScatterSymbolType, StringOrNumberOrCallback, EventsMixinClass, VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps, VictoryStyleInterface } from "victory-core";
|
|
3
|
+
export declare type VictoryScatterTTargetType = "data" | "labels" | "parent";
|
|
4
|
+
export interface VictoryScatterProps extends VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps {
|
|
5
|
+
bubbleProperty?: string;
|
|
6
|
+
children?: React.ReactElement | React.ReactElement[];
|
|
7
|
+
events?: EventPropTypeInterface<VictoryScatterTTargetType, StringOrNumberOrCallback>[];
|
|
8
|
+
eventKey?: StringOrNumberOrCallback;
|
|
9
|
+
maxBubbleSize?: number;
|
|
10
|
+
minBubbleSize?: number;
|
|
11
|
+
size?: number | {
|
|
12
|
+
(data: any): number;
|
|
13
|
+
};
|
|
14
|
+
style?: VictoryStyleInterface;
|
|
15
|
+
symbol?: ScatterSymbolType | {
|
|
16
|
+
(data: any): ScatterSymbolType;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
interface VictoryScatterBase extends EventsMixinClass<VictoryScatterProps> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Draw area charts with React. VictoryArea is a composable component, so it doesn't include axes.
|
|
23
|
+
* Add VictoryArea as a child of VictoryChart for a complete chart.
|
|
24
|
+
*/
|
|
25
|
+
declare class VictoryScatterBase extends React.Component<VictoryScatterProps> {
|
|
26
|
+
static animationWhitelist: string[];
|
|
27
|
+
static displayName: string;
|
|
28
|
+
static role: string;
|
|
29
|
+
static defaultTransitions: import("victory-core").AnimatePropTypeInterface;
|
|
30
|
+
static defaultProps: VictoryScatterProps;
|
|
31
|
+
static getDomain: typeof Domain.getDomain;
|
|
32
|
+
static getData: typeof Data.getData;
|
|
33
|
+
static getBaseProps(props: any): any;
|
|
34
|
+
static expectedComponents: string[];
|
|
35
|
+
shouldAnimate(): boolean;
|
|
36
|
+
render(): React.ReactElement;
|
|
37
|
+
}
|
|
38
|
+
export declare const VictoryScatter: {
|
|
39
|
+
new (props: import("victory-core").EventMixinCommonProps): {
|
|
40
|
+
state: {};
|
|
41
|
+
getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
|
|
42
|
+
getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
|
|
43
|
+
getEvents: (p: any, target: any, eventKey: any) => any;
|
|
44
|
+
externalMutations: {} | undefined;
|
|
45
|
+
calculatedState: {};
|
|
46
|
+
globalEvents: {};
|
|
47
|
+
prevGlobalEventKeys: string[];
|
|
48
|
+
boundGlobalEvents: {};
|
|
49
|
+
shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
|
|
50
|
+
componentDidMount(): void;
|
|
51
|
+
componentDidUpdate(prevProps: any): void;
|
|
52
|
+
componentWillUnmount(): void;
|
|
53
|
+
addGlobalListener(key: any): void;
|
|
54
|
+
removeGlobalListener(key: any): void;
|
|
55
|
+
getStateChanges(props: any): {};
|
|
56
|
+
applyExternalMutations(props: any, externalMutations: any): void;
|
|
57
|
+
getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
|
|
58
|
+
getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
|
|
59
|
+
cacheValues(obj: any): void;
|
|
60
|
+
getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
|
|
61
|
+
getAllEvents(props: any): any;
|
|
62
|
+
getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
|
|
63
|
+
renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
64
|
+
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
65
|
+
renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
66
|
+
renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
67
|
+
context: unknown;
|
|
68
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
69
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
70
|
+
render(): React.ReactNode;
|
|
71
|
+
readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
|
|
72
|
+
refs: {
|
|
73
|
+
[key: string]: React.ReactInstance;
|
|
74
|
+
};
|
|
75
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
76
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
|
|
77
|
+
componentWillMount?(): void;
|
|
78
|
+
UNSAFE_componentWillMount?(): void;
|
|
79
|
+
componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
80
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
81
|
+
componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
82
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
83
|
+
componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
|
|
84
|
+
getSharedEventState: (key: string, value: string) => unknown;
|
|
85
|
+
baseProps: Record<string, object>;
|
|
86
|
+
dataKeys: string[];
|
|
87
|
+
hasEvents: unknown;
|
|
88
|
+
events: unknown;
|
|
89
|
+
};
|
|
90
|
+
getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
|
|
91
|
+
role?: string | undefined;
|
|
92
|
+
expectedComponents?: string[] | undefined;
|
|
93
|
+
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
|
|
94
|
+
animationWhitelist?: string[] | undefined;
|
|
95
|
+
} & typeof VictoryScatterBase;
|
|
96
|
+
export {};
|
|
97
97
|
//# sourceMappingURL=victory-scatter.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-scatter",
|
|
3
|
-
"version": "37.0.1
|
|
3
|
+
"version": "37.0.1",
|
|
4
4
|
"description": "Scatter Component for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -21,11 +21,14 @@
|
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"lodash": "^4.17.19",
|
|
24
|
-
"victory-core": "^37.0.1
|
|
24
|
+
"victory-core": "^37.0.1"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": ">=16.6.0"
|
|
28
28
|
},
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"provenance": true
|
|
31
|
+
},
|
|
29
32
|
"wireit": {
|
|
30
33
|
"### THESE WIREIT CONFIGS ARE GENERATED ####": {},
|
|
31
34
|
"### DO NOT MODIFY THESE MANUALLY ####": {},
|