victory-scatter 36.6.0 → 36.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/victory-scatter.js +3 -1
- package/es/victory-scatter.d.ts +142 -2
- package/lib/victory-scatter.d.ts +142 -2
- package/package.json +24 -15
- package/src/victory-scatter.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# victory-scatter
|
|
2
2
|
|
|
3
|
+
## 36.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- - Removed Template Literal Types to increase TS compatibility (fixes [#2418](https://github.com/FormidableLabs/victory/issues/2418)) ([#2420](https://github.com/FormidableLabs/victory/pull/2420))
|
|
8
|
+
- Improved type for `VictoryLabelProps["textAnchor"]` (fixes [#2361](https://github.com/FormidableLabs/victory/issues/2361))
|
|
9
|
+
- Fixed exported types for `VictoryAxis`, `VictoryBoxPlot`, `VictoryErrorBar`, and `VictoryScatter` (fixes [#2411](https://github.com/FormidableLabs/victory/issues/2411))
|
|
10
|
+
- Migrate `victory-cursor-container` to TS (fixes [#2402](https://github.com/FormidableLabs/victory/issues/2402))
|
|
11
|
+
- Updated dependencies [[`d1f281104`](https://github.com/FormidableLabs/victory/commit/d1f281104c7598c43e220dafd57546ab03daeeb5)]:
|
|
12
|
+
- victory-core@36.6.1
|
|
13
|
+
|
|
3
14
|
## 36.6.0
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/dist/victory-scatter.js
CHANGED
|
@@ -14368,7 +14368,9 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
14368
14368
|
var USER_PROPS_SAFELIST = {
|
|
14369
14369
|
startsWith: ["data-", "aria-"],
|
|
14370
14370
|
exactMatch: []
|
|
14371
|
-
};
|
|
14371
|
+
}; // Normally we'd use Template Literal Types, but we're avoiding it to maximize TS compatibility with TS < 4.1
|
|
14372
|
+
|
|
14373
|
+
// `data-${string}` | `aria-${string}`;
|
|
14372
14374
|
|
|
14373
14375
|
/**
|
|
14374
14376
|
* doesPropStartWith: Function that takes a prop's key and runs it against all
|
package/es/victory-scatter.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import PropTypes from "prop-types";
|
|
1
2
|
import React from "react";
|
|
2
|
-
import { EventPropTypeInterface, ScatterSymbolType, StringOrNumberOrCallback, VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps, VictoryStyleInterface } from "victory-core";
|
|
3
|
+
import { Data, Domain, EventPropTypeInterface, ScatterSymbolType, StringOrNumberOrCallback, EventsMixinClass, VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps, VictoryStyleInterface } from "victory-core";
|
|
3
4
|
export declare type VictoryScatterTTargetType = "data" | "labels" | "parent";
|
|
4
5
|
export interface VictoryScatterProps extends VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps {
|
|
5
6
|
bubbleProperty?: string;
|
|
@@ -16,5 +17,144 @@ export interface VictoryScatterProps extends VictoryCommonProps, VictoryDatableP
|
|
|
16
17
|
(data: any): ScatterSymbolType;
|
|
17
18
|
};
|
|
18
19
|
}
|
|
19
|
-
|
|
20
|
+
interface VictoryScatterBase extends EventsMixinClass<VictoryScatterProps> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Draw area charts with React. VictoryArea is a composable component, so it doesn't include axes.
|
|
24
|
+
* Add VictoryArea as a child of VictoryChart for a complete chart.
|
|
25
|
+
*/
|
|
26
|
+
declare class VictoryScatterBase extends React.Component<VictoryScatterProps> {
|
|
27
|
+
static animationWhitelist: string[];
|
|
28
|
+
static displayName: string;
|
|
29
|
+
static role: string;
|
|
30
|
+
static defaultTransitions: import("victory-core").AnimatePropTypeInterface;
|
|
31
|
+
static propTypes: {
|
|
32
|
+
bubbleProperty: PropTypes.Requireable<string>;
|
|
33
|
+
maxBubbleSize: PropTypes.Requireable<number | undefined>;
|
|
34
|
+
minBubbleSize: PropTypes.Requireable<number | undefined>;
|
|
35
|
+
size: PropTypes.Requireable<number | ((...args: any[]) => any)>;
|
|
36
|
+
symbol: PropTypes.Requireable<string | ((...args: any[]) => any)>;
|
|
37
|
+
categories?: React.Validator<import("victory-core").CategoryPropType | null | undefined> | undefined;
|
|
38
|
+
data?: React.Validator<readonly any[] | null | undefined> | undefined;
|
|
39
|
+
dataComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
|
|
40
|
+
domain?: React.Validator<import("victory-core").ForAxes<import("victory-core").DomainTuple> | null | undefined> | undefined;
|
|
41
|
+
domainPadding?: React.Validator<import("victory-core").ForAxes<import("victory-core").PaddingType> | null | undefined> | undefined;
|
|
42
|
+
samples?: React.Validator<number | null | undefined> | undefined;
|
|
43
|
+
sortKey?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
|
|
44
|
+
sortOrder?: React.Validator<import("victory-core").SortOrderPropType | null | undefined> | undefined;
|
|
45
|
+
x?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
|
|
46
|
+
y?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
|
|
47
|
+
y0?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
|
|
48
|
+
theme?: React.Validator<import("victory-core").VictoryThemeDefinition | null | undefined> | undefined;
|
|
49
|
+
animate?: React.Validator<boolean | import("victory-core").AnimatePropTypeInterface | null | undefined> | undefined;
|
|
50
|
+
colorScale?: React.Validator<import("victory-core").ColorScalePropType | null | undefined> | undefined;
|
|
51
|
+
containerComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
|
|
52
|
+
externalEventMutations?: React.Validator<import("victory-core").EventCallbackInterface<string | string[], import("victory-core").StringOrNumberOrList>[] | null | undefined> | undefined;
|
|
53
|
+
groupComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
|
|
54
|
+
height?: React.Validator<number | null | undefined> | undefined;
|
|
55
|
+
horizontal?: React.Validator<boolean | null | undefined> | undefined;
|
|
56
|
+
maxDomain?: React.Validator<number | {
|
|
57
|
+
x?: number | undefined;
|
|
58
|
+
y?: number | undefined;
|
|
59
|
+
} | null | undefined> | undefined;
|
|
60
|
+
minDomain?: React.Validator<number | {
|
|
61
|
+
x?: number | undefined;
|
|
62
|
+
y?: number | undefined;
|
|
63
|
+
} | null | undefined> | undefined;
|
|
64
|
+
name?: React.Validator<string | null | undefined> | undefined;
|
|
65
|
+
origin?: React.Validator<import("victory-core").OriginType | null | undefined> | undefined;
|
|
66
|
+
padding?: React.Validator<import("victory-core").PaddingProps | null | undefined> | undefined;
|
|
67
|
+
polar?: React.Validator<boolean | null | undefined> | undefined;
|
|
68
|
+
range?: React.Validator<import("victory-core").ForAxes<import("victory-core").RangeTuple> | null | undefined> | undefined;
|
|
69
|
+
scale?: React.Validator<import("victory-core").D3Scale<any> | import("victory-core").ScaleName | {
|
|
70
|
+
x?: import("victory-core").D3Scale<any> | import("victory-core").ScaleName | undefined;
|
|
71
|
+
y?: import("victory-core").D3Scale<any> | import("victory-core").ScaleName | undefined;
|
|
72
|
+
} | null | undefined> | undefined;
|
|
73
|
+
sharedEvents?: React.Validator<{
|
|
74
|
+
events: any[];
|
|
75
|
+
getEventState: Function;
|
|
76
|
+
} | null | undefined> | undefined;
|
|
77
|
+
singleQuadrantDomainPadding?: React.Validator<boolean | {
|
|
78
|
+
x?: boolean | undefined;
|
|
79
|
+
y?: boolean | undefined;
|
|
80
|
+
} | null | undefined> | undefined;
|
|
81
|
+
standalone?: React.Validator<boolean | null | undefined> | undefined;
|
|
82
|
+
width?: React.Validator<number | null | undefined> | undefined;
|
|
83
|
+
};
|
|
84
|
+
static defaultProps: {
|
|
85
|
+
containerComponent: JSX.Element;
|
|
86
|
+
dataComponent: JSX.Element;
|
|
87
|
+
labelComponent: JSX.Element;
|
|
88
|
+
groupComponent: JSX.Element;
|
|
89
|
+
samples: number;
|
|
90
|
+
sortOrder: string;
|
|
91
|
+
standalone: boolean;
|
|
92
|
+
theme: import("victory-core").VictoryThemeDefinition;
|
|
93
|
+
};
|
|
94
|
+
static getDomain: typeof Domain.getDomain;
|
|
95
|
+
static getData: typeof Data.getData;
|
|
96
|
+
static getBaseProps: (props: any) => any;
|
|
97
|
+
static expectedComponents: string[];
|
|
98
|
+
shouldAnimate(): boolean;
|
|
99
|
+
render(): React.ReactElement;
|
|
100
|
+
}
|
|
101
|
+
export declare const VictoryScatter: {
|
|
102
|
+
new (props: import("victory-core").EventMixinCommonProps): {
|
|
103
|
+
state: {};
|
|
104
|
+
getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
|
|
105
|
+
getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
|
|
106
|
+
getEvents: (p: any, target: any, eventKey: any) => any;
|
|
107
|
+
externalMutations: {} | undefined;
|
|
108
|
+
calculatedState: {};
|
|
109
|
+
globalEvents: {};
|
|
110
|
+
prevGlobalEventKeys: string[];
|
|
111
|
+
boundGlobalEvents: {};
|
|
112
|
+
shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
|
|
113
|
+
componentDidMount(): void;
|
|
114
|
+
componentDidUpdate(prevProps: any): void;
|
|
115
|
+
componentWillUnmount(): void;
|
|
116
|
+
addGlobalListener(key: any): void;
|
|
117
|
+
removeGlobalListener(key: any): void;
|
|
118
|
+
getStateChanges(props: any): {};
|
|
119
|
+
applyExternalMutations(props: any, externalMutations: any): void;
|
|
120
|
+
getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
|
|
121
|
+
getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
|
|
122
|
+
cacheValues(obj: any): void;
|
|
123
|
+
getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
|
|
124
|
+
getAllEvents(props: any): any;
|
|
125
|
+
getComponentProps(component: any, type: any, index: any): any;
|
|
126
|
+
renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
127
|
+
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
128
|
+
renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
129
|
+
renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
130
|
+
context: unknown;
|
|
131
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
132
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
133
|
+
render(): React.ReactNode;
|
|
134
|
+
readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
|
|
135
|
+
refs: {
|
|
136
|
+
[key: string]: React.ReactInstance;
|
|
137
|
+
};
|
|
138
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
139
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
|
|
140
|
+
componentWillMount?(): void;
|
|
141
|
+
UNSAFE_componentWillMount?(): void;
|
|
142
|
+
componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
143
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
144
|
+
componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
145
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
146
|
+
componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
|
|
147
|
+
getSharedEventState: (key: string, value: string) => unknown;
|
|
148
|
+
baseProps: Record<string, object>;
|
|
149
|
+
dataKeys: string[];
|
|
150
|
+
hasEvents: unknown;
|
|
151
|
+
events: unknown;
|
|
152
|
+
};
|
|
153
|
+
getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
|
|
154
|
+
role?: string | undefined;
|
|
155
|
+
expectedComponents?: string[] | undefined;
|
|
156
|
+
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
|
|
157
|
+
animationWhitelist?: string[] | undefined;
|
|
158
|
+
} & typeof VictoryScatterBase;
|
|
159
|
+
export {};
|
|
20
160
|
//# sourceMappingURL=victory-scatter.d.ts.map
|
package/lib/victory-scatter.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import PropTypes from "prop-types";
|
|
1
2
|
import React from "react";
|
|
2
|
-
import { EventPropTypeInterface, ScatterSymbolType, StringOrNumberOrCallback, VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps, VictoryStyleInterface } from "victory-core";
|
|
3
|
+
import { Data, Domain, EventPropTypeInterface, ScatterSymbolType, StringOrNumberOrCallback, EventsMixinClass, VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps, VictoryStyleInterface } from "victory-core";
|
|
3
4
|
export declare type VictoryScatterTTargetType = "data" | "labels" | "parent";
|
|
4
5
|
export interface VictoryScatterProps extends VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps {
|
|
5
6
|
bubbleProperty?: string;
|
|
@@ -16,5 +17,144 @@ export interface VictoryScatterProps extends VictoryCommonProps, VictoryDatableP
|
|
|
16
17
|
(data: any): ScatterSymbolType;
|
|
17
18
|
};
|
|
18
19
|
}
|
|
19
|
-
|
|
20
|
+
interface VictoryScatterBase extends EventsMixinClass<VictoryScatterProps> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Draw area charts with React. VictoryArea is a composable component, so it doesn't include axes.
|
|
24
|
+
* Add VictoryArea as a child of VictoryChart for a complete chart.
|
|
25
|
+
*/
|
|
26
|
+
declare class VictoryScatterBase extends React.Component<VictoryScatterProps> {
|
|
27
|
+
static animationWhitelist: string[];
|
|
28
|
+
static displayName: string;
|
|
29
|
+
static role: string;
|
|
30
|
+
static defaultTransitions: import("victory-core").AnimatePropTypeInterface;
|
|
31
|
+
static propTypes: {
|
|
32
|
+
bubbleProperty: PropTypes.Requireable<string>;
|
|
33
|
+
maxBubbleSize: PropTypes.Requireable<number | undefined>;
|
|
34
|
+
minBubbleSize: PropTypes.Requireable<number | undefined>;
|
|
35
|
+
size: PropTypes.Requireable<number | ((...args: any[]) => any)>;
|
|
36
|
+
symbol: PropTypes.Requireable<string | ((...args: any[]) => any)>;
|
|
37
|
+
categories?: React.Validator<import("victory-core").CategoryPropType | null | undefined> | undefined;
|
|
38
|
+
data?: React.Validator<readonly any[] | null | undefined> | undefined;
|
|
39
|
+
dataComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
|
|
40
|
+
domain?: React.Validator<import("victory-core").ForAxes<import("victory-core").DomainTuple> | null | undefined> | undefined;
|
|
41
|
+
domainPadding?: React.Validator<import("victory-core").ForAxes<import("victory-core").PaddingType> | null | undefined> | undefined;
|
|
42
|
+
samples?: React.Validator<number | null | undefined> | undefined;
|
|
43
|
+
sortKey?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
|
|
44
|
+
sortOrder?: React.Validator<import("victory-core").SortOrderPropType | null | undefined> | undefined;
|
|
45
|
+
x?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
|
|
46
|
+
y?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
|
|
47
|
+
y0?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
|
|
48
|
+
theme?: React.Validator<import("victory-core").VictoryThemeDefinition | null | undefined> | undefined;
|
|
49
|
+
animate?: React.Validator<boolean | import("victory-core").AnimatePropTypeInterface | null | undefined> | undefined;
|
|
50
|
+
colorScale?: React.Validator<import("victory-core").ColorScalePropType | null | undefined> | undefined;
|
|
51
|
+
containerComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
|
|
52
|
+
externalEventMutations?: React.Validator<import("victory-core").EventCallbackInterface<string | string[], import("victory-core").StringOrNumberOrList>[] | null | undefined> | undefined;
|
|
53
|
+
groupComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
|
|
54
|
+
height?: React.Validator<number | null | undefined> | undefined;
|
|
55
|
+
horizontal?: React.Validator<boolean | null | undefined> | undefined;
|
|
56
|
+
maxDomain?: React.Validator<number | {
|
|
57
|
+
x?: number | undefined;
|
|
58
|
+
y?: number | undefined;
|
|
59
|
+
} | null | undefined> | undefined;
|
|
60
|
+
minDomain?: React.Validator<number | {
|
|
61
|
+
x?: number | undefined;
|
|
62
|
+
y?: number | undefined;
|
|
63
|
+
} | null | undefined> | undefined;
|
|
64
|
+
name?: React.Validator<string | null | undefined> | undefined;
|
|
65
|
+
origin?: React.Validator<import("victory-core").OriginType | null | undefined> | undefined;
|
|
66
|
+
padding?: React.Validator<import("victory-core").PaddingProps | null | undefined> | undefined;
|
|
67
|
+
polar?: React.Validator<boolean | null | undefined> | undefined;
|
|
68
|
+
range?: React.Validator<import("victory-core").ForAxes<import("victory-core").RangeTuple> | null | undefined> | undefined;
|
|
69
|
+
scale?: React.Validator<import("victory-core").D3Scale<any> | import("victory-core").ScaleName | {
|
|
70
|
+
x?: import("victory-core").D3Scale<any> | import("victory-core").ScaleName | undefined;
|
|
71
|
+
y?: import("victory-core").D3Scale<any> | import("victory-core").ScaleName | undefined;
|
|
72
|
+
} | null | undefined> | undefined;
|
|
73
|
+
sharedEvents?: React.Validator<{
|
|
74
|
+
events: any[];
|
|
75
|
+
getEventState: Function;
|
|
76
|
+
} | null | undefined> | undefined;
|
|
77
|
+
singleQuadrantDomainPadding?: React.Validator<boolean | {
|
|
78
|
+
x?: boolean | undefined;
|
|
79
|
+
y?: boolean | undefined;
|
|
80
|
+
} | null | undefined> | undefined;
|
|
81
|
+
standalone?: React.Validator<boolean | null | undefined> | undefined;
|
|
82
|
+
width?: React.Validator<number | null | undefined> | undefined;
|
|
83
|
+
};
|
|
84
|
+
static defaultProps: {
|
|
85
|
+
containerComponent: JSX.Element;
|
|
86
|
+
dataComponent: JSX.Element;
|
|
87
|
+
labelComponent: JSX.Element;
|
|
88
|
+
groupComponent: JSX.Element;
|
|
89
|
+
samples: number;
|
|
90
|
+
sortOrder: string;
|
|
91
|
+
standalone: boolean;
|
|
92
|
+
theme: import("victory-core").VictoryThemeDefinition;
|
|
93
|
+
};
|
|
94
|
+
static getDomain: typeof Domain.getDomain;
|
|
95
|
+
static getData: typeof Data.getData;
|
|
96
|
+
static getBaseProps: (props: any) => any;
|
|
97
|
+
static expectedComponents: string[];
|
|
98
|
+
shouldAnimate(): boolean;
|
|
99
|
+
render(): React.ReactElement;
|
|
100
|
+
}
|
|
101
|
+
export declare const VictoryScatter: {
|
|
102
|
+
new (props: import("victory-core").EventMixinCommonProps): {
|
|
103
|
+
state: {};
|
|
104
|
+
getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
|
|
105
|
+
getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
|
|
106
|
+
getEvents: (p: any, target: any, eventKey: any) => any;
|
|
107
|
+
externalMutations: {} | undefined;
|
|
108
|
+
calculatedState: {};
|
|
109
|
+
globalEvents: {};
|
|
110
|
+
prevGlobalEventKeys: string[];
|
|
111
|
+
boundGlobalEvents: {};
|
|
112
|
+
shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
|
|
113
|
+
componentDidMount(): void;
|
|
114
|
+
componentDidUpdate(prevProps: any): void;
|
|
115
|
+
componentWillUnmount(): void;
|
|
116
|
+
addGlobalListener(key: any): void;
|
|
117
|
+
removeGlobalListener(key: any): void;
|
|
118
|
+
getStateChanges(props: any): {};
|
|
119
|
+
applyExternalMutations(props: any, externalMutations: any): void;
|
|
120
|
+
getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
|
|
121
|
+
getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
|
|
122
|
+
cacheValues(obj: any): void;
|
|
123
|
+
getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
|
|
124
|
+
getAllEvents(props: any): any;
|
|
125
|
+
getComponentProps(component: any, type: any, index: any): any;
|
|
126
|
+
renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
127
|
+
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
128
|
+
renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
129
|
+
renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
130
|
+
context: unknown;
|
|
131
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
132
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
133
|
+
render(): React.ReactNode;
|
|
134
|
+
readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
|
|
135
|
+
refs: {
|
|
136
|
+
[key: string]: React.ReactInstance;
|
|
137
|
+
};
|
|
138
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
139
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
|
|
140
|
+
componentWillMount?(): void;
|
|
141
|
+
UNSAFE_componentWillMount?(): void;
|
|
142
|
+
componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
143
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
144
|
+
componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
145
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
146
|
+
componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
|
|
147
|
+
getSharedEventState: (key: string, value: string) => unknown;
|
|
148
|
+
baseProps: Record<string, object>;
|
|
149
|
+
dataKeys: string[];
|
|
150
|
+
hasEvents: unknown;
|
|
151
|
+
events: unknown;
|
|
152
|
+
};
|
|
153
|
+
getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
|
|
154
|
+
role?: string | undefined;
|
|
155
|
+
expectedComponents?: string[] | undefined;
|
|
156
|
+
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
|
|
157
|
+
animationWhitelist?: string[] | undefined;
|
|
158
|
+
} & typeof VictoryScatterBase;
|
|
159
|
+
export {};
|
|
20
160
|
//# sourceMappingURL=victory-scatter.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-scatter",
|
|
3
|
-
"version": "36.6.
|
|
3
|
+
"version": "36.6.1",
|
|
4
4
|
"description": "Scatter Component for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"lodash": "^4.17.19",
|
|
24
24
|
"prop-types": "^15.8.1",
|
|
25
|
-
"victory-core": "^36.6.
|
|
25
|
+
"victory-core": "^36.6.1"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": ">=16.6.0"
|
|
@@ -126,6 +126,14 @@
|
|
|
126
126
|
"pnpm-lock.yaml"
|
|
127
127
|
]
|
|
128
128
|
},
|
|
129
|
+
"check": {
|
|
130
|
+
"dependencies": [
|
|
131
|
+
"types:check",
|
|
132
|
+
"jest",
|
|
133
|
+
"format",
|
|
134
|
+
"lint"
|
|
135
|
+
]
|
|
136
|
+
},
|
|
129
137
|
"types:check": {
|
|
130
138
|
"command": "nps types:pkg:check",
|
|
131
139
|
"files": [
|
|
@@ -178,6 +186,19 @@
|
|
|
178
186
|
"pnpm-lock.yaml"
|
|
179
187
|
]
|
|
180
188
|
},
|
|
189
|
+
"format:fix": {
|
|
190
|
+
"command": "pnpm run format || nps format:pkg:fix",
|
|
191
|
+
"files": [
|
|
192
|
+
"src/**",
|
|
193
|
+
"*.json",
|
|
194
|
+
"../../.prettierignore",
|
|
195
|
+
"../../.prettierrc.json"
|
|
196
|
+
],
|
|
197
|
+
"output": [],
|
|
198
|
+
"packageLocks": [
|
|
199
|
+
"pnpm-lock.yaml"
|
|
200
|
+
]
|
|
201
|
+
},
|
|
181
202
|
"lint": {
|
|
182
203
|
"command": "nps lint:pkg",
|
|
183
204
|
"files": [
|
|
@@ -195,19 +216,6 @@
|
|
|
195
216
|
"pnpm-lock.yaml"
|
|
196
217
|
]
|
|
197
218
|
},
|
|
198
|
-
"format:fix": {
|
|
199
|
-
"command": "pnpm run format || nps format:pkg:fix",
|
|
200
|
-
"files": [
|
|
201
|
-
"src/**",
|
|
202
|
-
"*.json",
|
|
203
|
-
"../../.prettierignore",
|
|
204
|
-
"../../.prettierrc.json"
|
|
205
|
-
],
|
|
206
|
-
"output": [],
|
|
207
|
-
"packageLocks": [
|
|
208
|
-
"pnpm-lock.yaml"
|
|
209
|
-
]
|
|
210
|
-
},
|
|
211
219
|
"lint:fix": {
|
|
212
220
|
"command": "pnpm run lint || nps lint:pkg:fix",
|
|
213
221
|
"files": [
|
|
@@ -254,6 +262,7 @@
|
|
|
254
262
|
"build:dist": "wireit",
|
|
255
263
|
"build:dist:dev": "wireit",
|
|
256
264
|
"build:dist:min": "wireit",
|
|
265
|
+
"check": "wireit",
|
|
257
266
|
"types:check": "wireit",
|
|
258
267
|
"types:create": "wireit",
|
|
259
268
|
"format": "wireit",
|
package/src/victory-scatter.tsx
CHANGED
|
@@ -125,7 +125,7 @@ class VictoryScatterBase extends React.Component<VictoryScatterProps> {
|
|
|
125
125
|
return !!this.props.animate;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
render() {
|
|
128
|
+
render(): React.ReactElement {
|
|
129
129
|
const { animationWhitelist, role } = VictoryScatter;
|
|
130
130
|
const props = Helpers.modifyProps(this.props, fallbackProps, role);
|
|
131
131
|
|