victory-bar 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 CHANGED
@@ -1,12 +1,10 @@
1
1
  # victory-bar
2
2
 
3
- ## 37.0.1-next.2
3
+ ## 37.0.1
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - 22ac23249: Fix the signature of class static functions in components
8
- - victory-core@37.0.1-next.2
9
- - victory-vendor@37.0.1-next.2
7
+ - Fix the signature of class static functions in components ([#2840](https://github.com/FormidableLabs/victory/pull/2840))
10
8
 
11
9
  ## 37.0.0
12
10
 
@@ -1,7 +1,7 @@
1
- import { VictoryStyleObject } from "victory-core";
2
- import { BarProps } from "./bar";
3
- import { VictoryBarCornerRadiusKey } from "./victory-bar";
4
- export declare const getBarWidth: (barWidth: BarProps["barWidth"], props: BarProps) => any;
5
- export declare const getCornerRadius: (cornerRadius: BarProps["cornerRadius"], props: BarProps) => Partial<Record<VictoryBarCornerRadiusKey, import("victory-core").NumberOrCallback>>;
6
- export declare const getStyle: (style: VictoryStyleObject | undefined, props: BarProps) => any;
1
+ import { VictoryStyleObject } from "victory-core";
2
+ import { BarProps } from "./bar";
3
+ import { VictoryBarCornerRadiusKey } from "./victory-bar";
4
+ export declare const getBarWidth: (barWidth: BarProps["barWidth"], props: BarProps) => any;
5
+ export declare const getCornerRadius: (cornerRadius: BarProps["cornerRadius"], props: BarProps) => Partial<Record<VictoryBarCornerRadiusKey, import("victory-core").NumberOrCallback>>;
6
+ export declare const getStyle: (style: VictoryStyleObject | undefined, props: BarProps) => any;
7
7
  //# sourceMappingURL=bar-helper-methods.d.ts.map
package/es/bar.d.ts CHANGED
@@ -1,20 +1,20 @@
1
- import React from "react";
2
- import { NumberOrCallback, VictoryCommonPrimitiveProps } from "victory-core";
3
- import { VictoryBarAlignmentType, VictoryBarCornerRadiusObject } from "./victory-bar";
4
- export interface BarProps extends VictoryCommonPrimitiveProps {
5
- alignment?: VictoryBarAlignmentType;
6
- barOffset?: number[];
7
- barRatio?: number;
8
- barWidth?: NumberOrCallback;
9
- cornerRadius?: NumberOrCallback | VictoryBarCornerRadiusObject;
10
- datum?: any;
11
- getPath?: (props: BarProps) => string;
12
- horizontal?: boolean;
13
- pathComponent?: React.ReactElement;
14
- width?: number;
15
- x?: number;
16
- y?: number;
17
- y0?: number;
18
- }
19
- export declare const Bar: React.ForwardRefExoticComponent<BarProps & React.RefAttributes<SVGPathElement>>;
1
+ import React from "react";
2
+ import { NumberOrCallback, VictoryCommonPrimitiveProps } from "victory-core";
3
+ import { VictoryBarAlignmentType, VictoryBarCornerRadiusObject } from "./victory-bar";
4
+ export interface BarProps extends VictoryCommonPrimitiveProps {
5
+ alignment?: VictoryBarAlignmentType;
6
+ barOffset?: number[];
7
+ barRatio?: number;
8
+ barWidth?: NumberOrCallback;
9
+ cornerRadius?: NumberOrCallback | VictoryBarCornerRadiusObject;
10
+ datum?: any;
11
+ getPath?: (props: BarProps) => string;
12
+ horizontal?: boolean;
13
+ pathComponent?: React.ReactElement;
14
+ width?: number;
15
+ x?: number;
16
+ y?: number;
17
+ y0?: number;
18
+ }
19
+ export declare const Bar: React.ForwardRefExoticComponent<BarProps & React.RefAttributes<SVGPathElement>>;
20
20
  //# sourceMappingURL=bar.d.ts.map
@@ -1,91 +1,91 @@
1
- /**
2
- * A point in the 2d plane
3
- */
4
- export declare const point: (x: number, y: number) => {
5
- x: number;
6
- y: number;
7
- distance(p1: {
8
- x: number;
9
- y: number;
10
- }): number;
11
- add(p1: {
12
- x: number;
13
- y: number;
14
- }): any;
15
- subtract(p1: {
16
- x: number;
17
- y: number;
18
- }): any;
19
- scalarMult(n: number): any;
20
- scalarDivide(n: number): any;
21
- equals(p1: {
22
- x: number;
23
- y: number;
24
- }): boolean;
25
- };
26
- declare type Center = ReturnType<typeof point>;
27
- /**
28
- * A circle in the 2d plane
29
- */
30
- export declare const circle: (center: Center, radius: number) => {
31
- center: {
32
- x: number;
33
- y: number;
34
- distance(p1: {
35
- x: number;
36
- y: number;
37
- }): number;
38
- add(p1: {
39
- x: number;
40
- y: number;
41
- }): any;
42
- subtract(p1: {
43
- x: number;
44
- y: number;
45
- }): any;
46
- scalarMult(n: number): any;
47
- scalarDivide(n: number): any;
48
- equals(p1: {
49
- x: number;
50
- y: number;
51
- }): boolean;
52
- };
53
- radius: number;
54
- hasIntersection(circle1: {
55
- center: Center;
56
- radius: number;
57
- }): boolean;
58
- equals(circle1: {
59
- center: Center;
60
- radius: number;
61
- }): boolean;
62
- intersection(circle1: {
63
- center: Center;
64
- radius: number;
65
- }): {
66
- x: number;
67
- y: number;
68
- distance(p1: {
69
- x: number;
70
- y: number;
71
- }): number;
72
- add(p1: {
73
- x: number;
74
- y: number;
75
- }): any;
76
- subtract(p1: {
77
- x: number;
78
- y: number;
79
- }): any;
80
- scalarMult(n: number): any;
81
- scalarDivide(n: number): any;
82
- equals(p1: {
83
- x: number;
84
- y: number;
85
- }): boolean;
86
- }[];
87
- solveX(y: number): number[];
88
- solveY(x: number): number[];
89
- };
90
- export {};
1
+ /**
2
+ * A point in the 2d plane
3
+ */
4
+ export declare const point: (x: number, y: number) => {
5
+ x: number;
6
+ y: number;
7
+ distance(p1: {
8
+ x: number;
9
+ y: number;
10
+ }): number;
11
+ add(p1: {
12
+ x: number;
13
+ y: number;
14
+ }): any;
15
+ subtract(p1: {
16
+ x: number;
17
+ y: number;
18
+ }): any;
19
+ scalarMult(n: number): any;
20
+ scalarDivide(n: number): any;
21
+ equals(p1: {
22
+ x: number;
23
+ y: number;
24
+ }): boolean;
25
+ };
26
+ declare type Center = ReturnType<typeof point>;
27
+ /**
28
+ * A circle in the 2d plane
29
+ */
30
+ export declare const circle: (center: Center, radius: number) => {
31
+ center: {
32
+ x: number;
33
+ y: number;
34
+ distance(p1: {
35
+ x: number;
36
+ y: number;
37
+ }): number;
38
+ add(p1: {
39
+ x: number;
40
+ y: number;
41
+ }): any;
42
+ subtract(p1: {
43
+ x: number;
44
+ y: number;
45
+ }): any;
46
+ scalarMult(n: number): any;
47
+ scalarDivide(n: number): any;
48
+ equals(p1: {
49
+ x: number;
50
+ y: number;
51
+ }): boolean;
52
+ };
53
+ radius: number;
54
+ hasIntersection(circle1: {
55
+ center: Center;
56
+ radius: number;
57
+ }): boolean;
58
+ equals(circle1: {
59
+ center: Center;
60
+ radius: number;
61
+ }): boolean;
62
+ intersection(circle1: {
63
+ center: Center;
64
+ radius: number;
65
+ }): {
66
+ x: number;
67
+ y: number;
68
+ distance(p1: {
69
+ x: number;
70
+ y: number;
71
+ }): number;
72
+ add(p1: {
73
+ x: number;
74
+ y: number;
75
+ }): any;
76
+ subtract(p1: {
77
+ x: number;
78
+ y: number;
79
+ }): any;
80
+ scalarMult(n: number): any;
81
+ scalarDivide(n: number): any;
82
+ equals(p1: {
83
+ x: number;
84
+ y: number;
85
+ }): boolean;
86
+ }[];
87
+ solveX(y: number): number[];
88
+ solveY(x: number): number[];
89
+ };
90
+ export {};
91
91
  //# sourceMappingURL=geometry-helper-methods.d.ts.map
@@ -1,8 +1,8 @@
1
- export declare const getBarPosition: (props: any, datum: any) => {
2
- x: any;
3
- x0: any;
4
- y: any;
5
- y0: any;
6
- };
7
- export declare const getBaseProps: (initialProps: any, fallbackProps: any) => any;
1
+ export declare const getBarPosition: (props: any, datum: any) => {
2
+ x: any;
3
+ x0: any;
4
+ y: any;
5
+ y0: any;
6
+ };
7
+ export declare const getBaseProps: (initialProps: any, fallbackProps: any) => any;
8
8
  //# sourceMappingURL=helper-methods.d.ts.map
package/es/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export * from "./victory-bar";
2
- export * from "./bar";
3
- export { getBarPosition } from "./helper-methods";
4
- export { getVerticalBarPath, getHorizontalBarPath, getVerticalPolarBarPath, getCustomBarPath, getPolarBarPath, getBarPath, } from "./path-helper-methods";
5
- export { getBarWidth, getStyle, getCornerRadius } from "./bar-helper-methods";
1
+ export * from "./victory-bar";
2
+ export * from "./bar";
3
+ export { getBarPosition } from "./helper-methods";
4
+ export { getVerticalBarPath, getHorizontalBarPath, getVerticalPolarBarPath, getCustomBarPath, getPolarBarPath, getBarPath, } from "./path-helper-methods";
5
+ export { getBarWidth, getStyle, getCornerRadius } from "./bar-helper-methods";
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1,8 +1,8 @@
1
- import { BarProps } from "./bar";
2
- export declare const getCustomBarPath: (props: BarProps, width: number) => string | undefined;
3
- export declare const getVerticalBarPath: (props: any, width: any, cornerRadius: any) => string;
4
- export declare const getHorizontalBarPath: (props: any, width: any, cornerRadius: any) => string;
5
- export declare const getVerticalPolarBarPath: (props: BarProps, cornerRadius: any) => string;
6
- export declare const getBarPath: (props: BarProps, width: number, cornerRadius: any) => string | undefined;
7
- export declare const getPolarBarPath: (props: BarProps, cornerRadius: any) => string;
1
+ import { BarProps } from "./bar";
2
+ export declare const getCustomBarPath: (props: BarProps, width: number) => string | undefined;
3
+ export declare const getVerticalBarPath: (props: any, width: any, cornerRadius: any) => string;
4
+ export declare const getHorizontalBarPath: (props: any, width: any, cornerRadius: any) => string;
5
+ export declare const getVerticalPolarBarPath: (props: BarProps, cornerRadius: any) => string;
6
+ export declare const getBarPath: (props: BarProps, width: number, cornerRadius: any) => string | undefined;
7
+ export declare const getPolarBarPath: (props: BarProps, cornerRadius: any) => string;
8
8
  //# sourceMappingURL=path-helper-methods.d.ts.map
@@ -1,130 +1,130 @@
1
- import React from "react";
2
- import { Data, Domain, EventPropTypeInterface, NumberOrCallback, StringOrNumberOrCallback, VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps, VictoryStyleInterface, EventsMixinClass } from "victory-core";
3
- export declare type VictoryBarCornerRadiusKey = "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
4
- export declare type VictoryBarCornerRadiusObject = Partial<Record<VictoryBarCornerRadiusKey, NumberOrCallback>>;
5
- export declare type VictoryBarTTargetType = "data" | "labels" | "parent";
6
- export declare type VictoryBarAlignmentType = "start" | "middle" | "end";
7
- export interface VictoryBarProps extends VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps {
8
- alignment?: VictoryBarAlignmentType;
9
- barRatio?: number;
10
- barWidth?: NumberOrCallback;
11
- cornerRadius?: NumberOrCallback | VictoryBarCornerRadiusObject;
12
- events?: EventPropTypeInterface<VictoryBarTTargetType, number | string | number[] | string[]>[];
13
- eventKey?: StringOrNumberOrCallback;
14
- getPath?: (props: VictoryBarProps) => string;
15
- horizontal?: boolean;
16
- style?: VictoryStyleInterface;
17
- }
18
- interface VictoryBarBase extends EventsMixinClass<VictoryBarProps> {
19
- }
20
- /**
21
- * Draw SVG bar charts with React. VictoryBar is a composable component, so it doesn"t include axes
22
- * Check out VictoryChart for complete bar charts and more.
23
- */
24
- declare class VictoryBarBase extends React.Component<VictoryBarProps> {
25
- static animationWhitelist: (keyof VictoryBarProps)[];
26
- static displayName: string;
27
- static role: string;
28
- static defaultTransitions: {
29
- onLoad: {
30
- duration: number;
31
- before: () => {
32
- _y: number;
33
- _y1: number;
34
- _y0: number;
35
- };
36
- after: (datum: any) => {
37
- _y: any;
38
- _y1: any;
39
- _y0: any;
40
- };
41
- };
42
- onExit: {
43
- duration: number;
44
- before: () => {
45
- _y: number;
46
- yOffset: number;
47
- };
48
- };
49
- onEnter: {
50
- duration: number;
51
- before: () => {
52
- _y: number;
53
- _y1: number;
54
- _y0: number;
55
- };
56
- after: (datum: any) => {
57
- _y: any;
58
- _y1: any;
59
- _y0: any;
60
- };
61
- };
62
- };
63
- static defaultProps: VictoryBarProps;
64
- static getDomain: typeof Domain.getDomainWithZero;
65
- static getData: typeof Data.getData;
66
- static getBaseProps(props: VictoryBarProps): any;
67
- static expectedComponents: (keyof VictoryBarProps)[];
68
- shouldAnimate(): boolean;
69
- render(): React.ReactElement;
70
- }
71
- export declare const VictoryBar: {
72
- new (props: import("victory-core").EventMixinCommonProps): {
73
- state: {};
74
- getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
75
- getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
76
- getEvents: (p: any, target: any, eventKey: any) => any;
77
- externalMutations: {} | undefined;
78
- calculatedState: {};
79
- globalEvents: {};
80
- prevGlobalEventKeys: string[];
81
- boundGlobalEvents: {};
82
- shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
83
- componentDidMount(): void;
84
- componentDidUpdate(prevProps: any): void;
85
- componentWillUnmount(): void;
86
- addGlobalListener(key: any): void;
87
- removeGlobalListener(key: any): void;
88
- getStateChanges(props: any): {};
89
- applyExternalMutations(props: any, externalMutations: any): void;
90
- getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
91
- getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
92
- cacheValues(obj: any): void;
93
- getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
94
- getAllEvents(props: any): any;
95
- getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
96
- renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
97
- animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
98
- renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
99
- renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
100
- context: unknown;
101
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
102
- forceUpdate(callback?: (() => void) | undefined): void;
103
- render(): React.ReactNode;
104
- readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
105
- refs: {
106
- [key: string]: React.ReactInstance;
107
- };
108
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
109
- getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
110
- componentWillMount?(): void;
111
- UNSAFE_componentWillMount?(): void;
112
- componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
113
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
114
- componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
115
- UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
116
- componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
117
- getSharedEventState: (key: string, value: string) => unknown;
118
- baseProps: Record<string, object>;
119
- dataKeys: string[];
120
- hasEvents: unknown;
121
- events: unknown;
122
- };
123
- getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
124
- role?: string | undefined;
125
- expectedComponents?: string[] | undefined;
126
- getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
127
- animationWhitelist?: string[] | undefined;
128
- } & typeof VictoryBarBase;
129
- export {};
1
+ import React from "react";
2
+ import { Data, Domain, EventPropTypeInterface, NumberOrCallback, StringOrNumberOrCallback, VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps, VictoryStyleInterface, EventsMixinClass } from "victory-core";
3
+ export declare type VictoryBarCornerRadiusKey = "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
4
+ export declare type VictoryBarCornerRadiusObject = Partial<Record<VictoryBarCornerRadiusKey, NumberOrCallback>>;
5
+ export declare type VictoryBarTTargetType = "data" | "labels" | "parent";
6
+ export declare type VictoryBarAlignmentType = "start" | "middle" | "end";
7
+ export interface VictoryBarProps extends VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps {
8
+ alignment?: VictoryBarAlignmentType;
9
+ barRatio?: number;
10
+ barWidth?: NumberOrCallback;
11
+ cornerRadius?: NumberOrCallback | VictoryBarCornerRadiusObject;
12
+ events?: EventPropTypeInterface<VictoryBarTTargetType, number | string | number[] | string[]>[];
13
+ eventKey?: StringOrNumberOrCallback;
14
+ getPath?: (props: VictoryBarProps) => string;
15
+ horizontal?: boolean;
16
+ style?: VictoryStyleInterface;
17
+ }
18
+ interface VictoryBarBase extends EventsMixinClass<VictoryBarProps> {
19
+ }
20
+ /**
21
+ * Draw SVG bar charts with React. VictoryBar is a composable component, so it doesn"t include axes
22
+ * Check out VictoryChart for complete bar charts and more.
23
+ */
24
+ declare class VictoryBarBase extends React.Component<VictoryBarProps> {
25
+ static animationWhitelist: (keyof VictoryBarProps)[];
26
+ static displayName: string;
27
+ static role: string;
28
+ static defaultTransitions: {
29
+ onLoad: {
30
+ duration: number;
31
+ before: () => {
32
+ _y: number;
33
+ _y1: number;
34
+ _y0: number;
35
+ };
36
+ after: (datum: any) => {
37
+ _y: any;
38
+ _y1: any;
39
+ _y0: any;
40
+ };
41
+ };
42
+ onExit: {
43
+ duration: number;
44
+ before: () => {
45
+ _y: number;
46
+ yOffset: number;
47
+ };
48
+ };
49
+ onEnter: {
50
+ duration: number;
51
+ before: () => {
52
+ _y: number;
53
+ _y1: number;
54
+ _y0: number;
55
+ };
56
+ after: (datum: any) => {
57
+ _y: any;
58
+ _y1: any;
59
+ _y0: any;
60
+ };
61
+ };
62
+ };
63
+ static defaultProps: VictoryBarProps;
64
+ static getDomain: typeof Domain.getDomainWithZero;
65
+ static getData: typeof Data.getData;
66
+ static getBaseProps(props: VictoryBarProps): any;
67
+ static expectedComponents: (keyof VictoryBarProps)[];
68
+ shouldAnimate(): boolean;
69
+ render(): React.ReactElement;
70
+ }
71
+ export declare const VictoryBar: {
72
+ new (props: import("victory-core").EventMixinCommonProps): {
73
+ state: {};
74
+ getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
75
+ getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
76
+ getEvents: (p: any, target: any, eventKey: any) => any;
77
+ externalMutations: {} | undefined;
78
+ calculatedState: {};
79
+ globalEvents: {};
80
+ prevGlobalEventKeys: string[];
81
+ boundGlobalEvents: {};
82
+ shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
83
+ componentDidMount(): void;
84
+ componentDidUpdate(prevProps: any): void;
85
+ componentWillUnmount(): void;
86
+ addGlobalListener(key: any): void;
87
+ removeGlobalListener(key: any): void;
88
+ getStateChanges(props: any): {};
89
+ applyExternalMutations(props: any, externalMutations: any): void;
90
+ getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
91
+ getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
92
+ cacheValues(obj: any): void;
93
+ getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
94
+ getAllEvents(props: any): any;
95
+ getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
96
+ renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
97
+ animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
98
+ renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
99
+ renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
100
+ context: unknown;
101
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
102
+ forceUpdate(callback?: (() => void) | undefined): void;
103
+ render(): React.ReactNode;
104
+ readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
105
+ refs: {
106
+ [key: string]: React.ReactInstance;
107
+ };
108
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
109
+ getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
110
+ componentWillMount?(): void;
111
+ UNSAFE_componentWillMount?(): void;
112
+ componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
113
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
114
+ componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
115
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
116
+ componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
117
+ getSharedEventState: (key: string, value: string) => unknown;
118
+ baseProps: Record<string, object>;
119
+ dataKeys: string[];
120
+ hasEvents: unknown;
121
+ events: unknown;
122
+ };
123
+ getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
124
+ role?: string | undefined;
125
+ expectedComponents?: string[] | undefined;
126
+ getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
127
+ animationWhitelist?: string[] | undefined;
128
+ } & typeof VictoryBarBase;
129
+ export {};
130
130
  //# sourceMappingURL=victory-bar.d.ts.map
@@ -1,7 +1,7 @@
1
- import { VictoryStyleObject } from "victory-core";
2
- import { BarProps } from "./bar";
3
- import { VictoryBarCornerRadiusKey } from "./victory-bar";
4
- export declare const getBarWidth: (barWidth: BarProps["barWidth"], props: BarProps) => any;
5
- export declare const getCornerRadius: (cornerRadius: BarProps["cornerRadius"], props: BarProps) => Partial<Record<VictoryBarCornerRadiusKey, import("victory-core").NumberOrCallback>>;
6
- export declare const getStyle: (style: VictoryStyleObject | undefined, props: BarProps) => any;
1
+ import { VictoryStyleObject } from "victory-core";
2
+ import { BarProps } from "./bar";
3
+ import { VictoryBarCornerRadiusKey } from "./victory-bar";
4
+ export declare const getBarWidth: (barWidth: BarProps["barWidth"], props: BarProps) => any;
5
+ export declare const getCornerRadius: (cornerRadius: BarProps["cornerRadius"], props: BarProps) => Partial<Record<VictoryBarCornerRadiusKey, import("victory-core").NumberOrCallback>>;
6
+ export declare const getStyle: (style: VictoryStyleObject | undefined, props: BarProps) => any;
7
7
  //# sourceMappingURL=bar-helper-methods.d.ts.map
package/lib/bar.d.ts CHANGED
@@ -1,20 +1,20 @@
1
- import React from "react";
2
- import { NumberOrCallback, VictoryCommonPrimitiveProps } from "victory-core";
3
- import { VictoryBarAlignmentType, VictoryBarCornerRadiusObject } from "./victory-bar";
4
- export interface BarProps extends VictoryCommonPrimitiveProps {
5
- alignment?: VictoryBarAlignmentType;
6
- barOffset?: number[];
7
- barRatio?: number;
8
- barWidth?: NumberOrCallback;
9
- cornerRadius?: NumberOrCallback | VictoryBarCornerRadiusObject;
10
- datum?: any;
11
- getPath?: (props: BarProps) => string;
12
- horizontal?: boolean;
13
- pathComponent?: React.ReactElement;
14
- width?: number;
15
- x?: number;
16
- y?: number;
17
- y0?: number;
18
- }
19
- export declare const Bar: React.ForwardRefExoticComponent<BarProps & React.RefAttributes<SVGPathElement>>;
1
+ import React from "react";
2
+ import { NumberOrCallback, VictoryCommonPrimitiveProps } from "victory-core";
3
+ import { VictoryBarAlignmentType, VictoryBarCornerRadiusObject } from "./victory-bar";
4
+ export interface BarProps extends VictoryCommonPrimitiveProps {
5
+ alignment?: VictoryBarAlignmentType;
6
+ barOffset?: number[];
7
+ barRatio?: number;
8
+ barWidth?: NumberOrCallback;
9
+ cornerRadius?: NumberOrCallback | VictoryBarCornerRadiusObject;
10
+ datum?: any;
11
+ getPath?: (props: BarProps) => string;
12
+ horizontal?: boolean;
13
+ pathComponent?: React.ReactElement;
14
+ width?: number;
15
+ x?: number;
16
+ y?: number;
17
+ y0?: number;
18
+ }
19
+ export declare const Bar: React.ForwardRefExoticComponent<BarProps & React.RefAttributes<SVGPathElement>>;
20
20
  //# sourceMappingURL=bar.d.ts.map
@@ -1,91 +1,91 @@
1
- /**
2
- * A point in the 2d plane
3
- */
4
- export declare const point: (x: number, y: number) => {
5
- x: number;
6
- y: number;
7
- distance(p1: {
8
- x: number;
9
- y: number;
10
- }): number;
11
- add(p1: {
12
- x: number;
13
- y: number;
14
- }): any;
15
- subtract(p1: {
16
- x: number;
17
- y: number;
18
- }): any;
19
- scalarMult(n: number): any;
20
- scalarDivide(n: number): any;
21
- equals(p1: {
22
- x: number;
23
- y: number;
24
- }): boolean;
25
- };
26
- declare type Center = ReturnType<typeof point>;
27
- /**
28
- * A circle in the 2d plane
29
- */
30
- export declare const circle: (center: Center, radius: number) => {
31
- center: {
32
- x: number;
33
- y: number;
34
- distance(p1: {
35
- x: number;
36
- y: number;
37
- }): number;
38
- add(p1: {
39
- x: number;
40
- y: number;
41
- }): any;
42
- subtract(p1: {
43
- x: number;
44
- y: number;
45
- }): any;
46
- scalarMult(n: number): any;
47
- scalarDivide(n: number): any;
48
- equals(p1: {
49
- x: number;
50
- y: number;
51
- }): boolean;
52
- };
53
- radius: number;
54
- hasIntersection(circle1: {
55
- center: Center;
56
- radius: number;
57
- }): boolean;
58
- equals(circle1: {
59
- center: Center;
60
- radius: number;
61
- }): boolean;
62
- intersection(circle1: {
63
- center: Center;
64
- radius: number;
65
- }): {
66
- x: number;
67
- y: number;
68
- distance(p1: {
69
- x: number;
70
- y: number;
71
- }): number;
72
- add(p1: {
73
- x: number;
74
- y: number;
75
- }): any;
76
- subtract(p1: {
77
- x: number;
78
- y: number;
79
- }): any;
80
- scalarMult(n: number): any;
81
- scalarDivide(n: number): any;
82
- equals(p1: {
83
- x: number;
84
- y: number;
85
- }): boolean;
86
- }[];
87
- solveX(y: number): number[];
88
- solveY(x: number): number[];
89
- };
90
- export {};
1
+ /**
2
+ * A point in the 2d plane
3
+ */
4
+ export declare const point: (x: number, y: number) => {
5
+ x: number;
6
+ y: number;
7
+ distance(p1: {
8
+ x: number;
9
+ y: number;
10
+ }): number;
11
+ add(p1: {
12
+ x: number;
13
+ y: number;
14
+ }): any;
15
+ subtract(p1: {
16
+ x: number;
17
+ y: number;
18
+ }): any;
19
+ scalarMult(n: number): any;
20
+ scalarDivide(n: number): any;
21
+ equals(p1: {
22
+ x: number;
23
+ y: number;
24
+ }): boolean;
25
+ };
26
+ declare type Center = ReturnType<typeof point>;
27
+ /**
28
+ * A circle in the 2d plane
29
+ */
30
+ export declare const circle: (center: Center, radius: number) => {
31
+ center: {
32
+ x: number;
33
+ y: number;
34
+ distance(p1: {
35
+ x: number;
36
+ y: number;
37
+ }): number;
38
+ add(p1: {
39
+ x: number;
40
+ y: number;
41
+ }): any;
42
+ subtract(p1: {
43
+ x: number;
44
+ y: number;
45
+ }): any;
46
+ scalarMult(n: number): any;
47
+ scalarDivide(n: number): any;
48
+ equals(p1: {
49
+ x: number;
50
+ y: number;
51
+ }): boolean;
52
+ };
53
+ radius: number;
54
+ hasIntersection(circle1: {
55
+ center: Center;
56
+ radius: number;
57
+ }): boolean;
58
+ equals(circle1: {
59
+ center: Center;
60
+ radius: number;
61
+ }): boolean;
62
+ intersection(circle1: {
63
+ center: Center;
64
+ radius: number;
65
+ }): {
66
+ x: number;
67
+ y: number;
68
+ distance(p1: {
69
+ x: number;
70
+ y: number;
71
+ }): number;
72
+ add(p1: {
73
+ x: number;
74
+ y: number;
75
+ }): any;
76
+ subtract(p1: {
77
+ x: number;
78
+ y: number;
79
+ }): any;
80
+ scalarMult(n: number): any;
81
+ scalarDivide(n: number): any;
82
+ equals(p1: {
83
+ x: number;
84
+ y: number;
85
+ }): boolean;
86
+ }[];
87
+ solveX(y: number): number[];
88
+ solveY(x: number): number[];
89
+ };
90
+ export {};
91
91
  //# sourceMappingURL=geometry-helper-methods.d.ts.map
@@ -1,8 +1,8 @@
1
- export declare const getBarPosition: (props: any, datum: any) => {
2
- x: any;
3
- x0: any;
4
- y: any;
5
- y0: any;
6
- };
7
- export declare const getBaseProps: (initialProps: any, fallbackProps: any) => any;
1
+ export declare const getBarPosition: (props: any, datum: any) => {
2
+ x: any;
3
+ x0: any;
4
+ y: any;
5
+ y0: any;
6
+ };
7
+ export declare const getBaseProps: (initialProps: any, fallbackProps: any) => any;
8
8
  //# sourceMappingURL=helper-methods.d.ts.map
package/lib/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export * from "./victory-bar";
2
- export * from "./bar";
3
- export { getBarPosition } from "./helper-methods";
4
- export { getVerticalBarPath, getHorizontalBarPath, getVerticalPolarBarPath, getCustomBarPath, getPolarBarPath, getBarPath, } from "./path-helper-methods";
5
- export { getBarWidth, getStyle, getCornerRadius } from "./bar-helper-methods";
1
+ export * from "./victory-bar";
2
+ export * from "./bar";
3
+ export { getBarPosition } from "./helper-methods";
4
+ export { getVerticalBarPath, getHorizontalBarPath, getVerticalPolarBarPath, getCustomBarPath, getPolarBarPath, getBarPath, } from "./path-helper-methods";
5
+ export { getBarWidth, getStyle, getCornerRadius } from "./bar-helper-methods";
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1,8 +1,8 @@
1
- import { BarProps } from "./bar";
2
- export declare const getCustomBarPath: (props: BarProps, width: number) => string | undefined;
3
- export declare const getVerticalBarPath: (props: any, width: any, cornerRadius: any) => string;
4
- export declare const getHorizontalBarPath: (props: any, width: any, cornerRadius: any) => string;
5
- export declare const getVerticalPolarBarPath: (props: BarProps, cornerRadius: any) => string;
6
- export declare const getBarPath: (props: BarProps, width: number, cornerRadius: any) => string | undefined;
7
- export declare const getPolarBarPath: (props: BarProps, cornerRadius: any) => string;
1
+ import { BarProps } from "./bar";
2
+ export declare const getCustomBarPath: (props: BarProps, width: number) => string | undefined;
3
+ export declare const getVerticalBarPath: (props: any, width: any, cornerRadius: any) => string;
4
+ export declare const getHorizontalBarPath: (props: any, width: any, cornerRadius: any) => string;
5
+ export declare const getVerticalPolarBarPath: (props: BarProps, cornerRadius: any) => string;
6
+ export declare const getBarPath: (props: BarProps, width: number, cornerRadius: any) => string | undefined;
7
+ export declare const getPolarBarPath: (props: BarProps, cornerRadius: any) => string;
8
8
  //# sourceMappingURL=path-helper-methods.d.ts.map
@@ -1,130 +1,130 @@
1
- import React from "react";
2
- import { Data, Domain, EventPropTypeInterface, NumberOrCallback, StringOrNumberOrCallback, VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps, VictoryStyleInterface, EventsMixinClass } from "victory-core";
3
- export declare type VictoryBarCornerRadiusKey = "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
4
- export declare type VictoryBarCornerRadiusObject = Partial<Record<VictoryBarCornerRadiusKey, NumberOrCallback>>;
5
- export declare type VictoryBarTTargetType = "data" | "labels" | "parent";
6
- export declare type VictoryBarAlignmentType = "start" | "middle" | "end";
7
- export interface VictoryBarProps extends VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps {
8
- alignment?: VictoryBarAlignmentType;
9
- barRatio?: number;
10
- barWidth?: NumberOrCallback;
11
- cornerRadius?: NumberOrCallback | VictoryBarCornerRadiusObject;
12
- events?: EventPropTypeInterface<VictoryBarTTargetType, number | string | number[] | string[]>[];
13
- eventKey?: StringOrNumberOrCallback;
14
- getPath?: (props: VictoryBarProps) => string;
15
- horizontal?: boolean;
16
- style?: VictoryStyleInterface;
17
- }
18
- interface VictoryBarBase extends EventsMixinClass<VictoryBarProps> {
19
- }
20
- /**
21
- * Draw SVG bar charts with React. VictoryBar is a composable component, so it doesn"t include axes
22
- * Check out VictoryChart for complete bar charts and more.
23
- */
24
- declare class VictoryBarBase extends React.Component<VictoryBarProps> {
25
- static animationWhitelist: (keyof VictoryBarProps)[];
26
- static displayName: string;
27
- static role: string;
28
- static defaultTransitions: {
29
- onLoad: {
30
- duration: number;
31
- before: () => {
32
- _y: number;
33
- _y1: number;
34
- _y0: number;
35
- };
36
- after: (datum: any) => {
37
- _y: any;
38
- _y1: any;
39
- _y0: any;
40
- };
41
- };
42
- onExit: {
43
- duration: number;
44
- before: () => {
45
- _y: number;
46
- yOffset: number;
47
- };
48
- };
49
- onEnter: {
50
- duration: number;
51
- before: () => {
52
- _y: number;
53
- _y1: number;
54
- _y0: number;
55
- };
56
- after: (datum: any) => {
57
- _y: any;
58
- _y1: any;
59
- _y0: any;
60
- };
61
- };
62
- };
63
- static defaultProps: VictoryBarProps;
64
- static getDomain: typeof Domain.getDomainWithZero;
65
- static getData: typeof Data.getData;
66
- static getBaseProps(props: VictoryBarProps): any;
67
- static expectedComponents: (keyof VictoryBarProps)[];
68
- shouldAnimate(): boolean;
69
- render(): React.ReactElement;
70
- }
71
- export declare const VictoryBar: {
72
- new (props: import("victory-core").EventMixinCommonProps): {
73
- state: {};
74
- getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
75
- getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
76
- getEvents: (p: any, target: any, eventKey: any) => any;
77
- externalMutations: {} | undefined;
78
- calculatedState: {};
79
- globalEvents: {};
80
- prevGlobalEventKeys: string[];
81
- boundGlobalEvents: {};
82
- shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
83
- componentDidMount(): void;
84
- componentDidUpdate(prevProps: any): void;
85
- componentWillUnmount(): void;
86
- addGlobalListener(key: any): void;
87
- removeGlobalListener(key: any): void;
88
- getStateChanges(props: any): {};
89
- applyExternalMutations(props: any, externalMutations: any): void;
90
- getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
91
- getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
92
- cacheValues(obj: any): void;
93
- getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
94
- getAllEvents(props: any): any;
95
- getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
96
- renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
97
- animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
98
- renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
99
- renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
100
- context: unknown;
101
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
102
- forceUpdate(callback?: (() => void) | undefined): void;
103
- render(): React.ReactNode;
104
- readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
105
- refs: {
106
- [key: string]: React.ReactInstance;
107
- };
108
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
109
- getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
110
- componentWillMount?(): void;
111
- UNSAFE_componentWillMount?(): void;
112
- componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
113
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
114
- componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
115
- UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
116
- componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
117
- getSharedEventState: (key: string, value: string) => unknown;
118
- baseProps: Record<string, object>;
119
- dataKeys: string[];
120
- hasEvents: unknown;
121
- events: unknown;
122
- };
123
- getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
124
- role?: string | undefined;
125
- expectedComponents?: string[] | undefined;
126
- getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
127
- animationWhitelist?: string[] | undefined;
128
- } & typeof VictoryBarBase;
129
- export {};
1
+ import React from "react";
2
+ import { Data, Domain, EventPropTypeInterface, NumberOrCallback, StringOrNumberOrCallback, VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps, VictoryStyleInterface, EventsMixinClass } from "victory-core";
3
+ export declare type VictoryBarCornerRadiusKey = "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
4
+ export declare type VictoryBarCornerRadiusObject = Partial<Record<VictoryBarCornerRadiusKey, NumberOrCallback>>;
5
+ export declare type VictoryBarTTargetType = "data" | "labels" | "parent";
6
+ export declare type VictoryBarAlignmentType = "start" | "middle" | "end";
7
+ export interface VictoryBarProps extends VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps {
8
+ alignment?: VictoryBarAlignmentType;
9
+ barRatio?: number;
10
+ barWidth?: NumberOrCallback;
11
+ cornerRadius?: NumberOrCallback | VictoryBarCornerRadiusObject;
12
+ events?: EventPropTypeInterface<VictoryBarTTargetType, number | string | number[] | string[]>[];
13
+ eventKey?: StringOrNumberOrCallback;
14
+ getPath?: (props: VictoryBarProps) => string;
15
+ horizontal?: boolean;
16
+ style?: VictoryStyleInterface;
17
+ }
18
+ interface VictoryBarBase extends EventsMixinClass<VictoryBarProps> {
19
+ }
20
+ /**
21
+ * Draw SVG bar charts with React. VictoryBar is a composable component, so it doesn"t include axes
22
+ * Check out VictoryChart for complete bar charts and more.
23
+ */
24
+ declare class VictoryBarBase extends React.Component<VictoryBarProps> {
25
+ static animationWhitelist: (keyof VictoryBarProps)[];
26
+ static displayName: string;
27
+ static role: string;
28
+ static defaultTransitions: {
29
+ onLoad: {
30
+ duration: number;
31
+ before: () => {
32
+ _y: number;
33
+ _y1: number;
34
+ _y0: number;
35
+ };
36
+ after: (datum: any) => {
37
+ _y: any;
38
+ _y1: any;
39
+ _y0: any;
40
+ };
41
+ };
42
+ onExit: {
43
+ duration: number;
44
+ before: () => {
45
+ _y: number;
46
+ yOffset: number;
47
+ };
48
+ };
49
+ onEnter: {
50
+ duration: number;
51
+ before: () => {
52
+ _y: number;
53
+ _y1: number;
54
+ _y0: number;
55
+ };
56
+ after: (datum: any) => {
57
+ _y: any;
58
+ _y1: any;
59
+ _y0: any;
60
+ };
61
+ };
62
+ };
63
+ static defaultProps: VictoryBarProps;
64
+ static getDomain: typeof Domain.getDomainWithZero;
65
+ static getData: typeof Data.getData;
66
+ static getBaseProps(props: VictoryBarProps): any;
67
+ static expectedComponents: (keyof VictoryBarProps)[];
68
+ shouldAnimate(): boolean;
69
+ render(): React.ReactElement;
70
+ }
71
+ export declare const VictoryBar: {
72
+ new (props: import("victory-core").EventMixinCommonProps): {
73
+ state: {};
74
+ getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
75
+ getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
76
+ getEvents: (p: any, target: any, eventKey: any) => any;
77
+ externalMutations: {} | undefined;
78
+ calculatedState: {};
79
+ globalEvents: {};
80
+ prevGlobalEventKeys: string[];
81
+ boundGlobalEvents: {};
82
+ shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
83
+ componentDidMount(): void;
84
+ componentDidUpdate(prevProps: any): void;
85
+ componentWillUnmount(): void;
86
+ addGlobalListener(key: any): void;
87
+ removeGlobalListener(key: any): void;
88
+ getStateChanges(props: any): {};
89
+ applyExternalMutations(props: any, externalMutations: any): void;
90
+ getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
91
+ getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
92
+ cacheValues(obj: any): void;
93
+ getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
94
+ getAllEvents(props: any): any;
95
+ getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
96
+ renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
97
+ animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
98
+ renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
99
+ renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
100
+ context: unknown;
101
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
102
+ forceUpdate(callback?: (() => void) | undefined): void;
103
+ render(): React.ReactNode;
104
+ readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
105
+ refs: {
106
+ [key: string]: React.ReactInstance;
107
+ };
108
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
109
+ getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
110
+ componentWillMount?(): void;
111
+ UNSAFE_componentWillMount?(): void;
112
+ componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
113
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
114
+ componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
115
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
116
+ componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
117
+ getSharedEventState: (key: string, value: string) => unknown;
118
+ baseProps: Record<string, object>;
119
+ dataKeys: string[];
120
+ hasEvents: unknown;
121
+ events: unknown;
122
+ };
123
+ getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
124
+ role?: string | undefined;
125
+ expectedComponents?: string[] | undefined;
126
+ getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
127
+ animationWhitelist?: string[] | undefined;
128
+ } & typeof VictoryBarBase;
129
+ export {};
130
130
  //# sourceMappingURL=victory-bar.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-bar",
3
- "version": "37.0.1-next.2",
3
+ "version": "37.0.1",
4
4
  "description": "Bar Component for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -21,14 +21,17 @@
21
21
  "license": "MIT",
22
22
  "dependencies": {
23
23
  "lodash": "^4.17.19",
24
- "victory-core": "^37.0.1-next.2",
25
- "victory-vendor": "^37.0.1-next.2"
24
+ "victory-core": "^37.0.1",
25
+ "victory-vendor": "^37.0.1"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": ">=16.6.0"
29
29
  },
30
30
  "devDependencies": {
31
- "victory-chart": "37.0.1-next.2"
31
+ "victory-chart": "*"
32
+ },
33
+ "publishConfig": {
34
+ "provenance": true
32
35
  },
33
36
  "wireit": {
34
37
  "### THESE WIREIT CONFIGS ARE GENERATED ####": {},