victory-histogram 36.9.0 → 36.9.1-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # victory-histogram
2
2
 
3
+ ## 36.9.1-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - victory-core@36.9.1-next.0
8
+ - victory-bar@36.9.1-next.0
9
+ - victory-vendor@36.9.1-next.0
10
+
3
11
  ## 36.9.0
4
12
 
5
13
  ### Minor Changes
@@ -1,6 +1,6 @@
1
- import { VictoryHistogramProps } from "./victory-histogram";
2
- export declare const getFormattedData: (...args: any[]) => any;
3
- export declare const getData: (props: VictoryHistogramProps) => any;
4
- export declare const getDomain: (props: VictoryHistogramProps, axis: "x" | "y") => any;
5
- export declare const getBaseProps: (initialProps: any, fallbackProps: any) => any;
1
+ import { VictoryHistogramProps } from "./victory-histogram";
2
+ export declare const getFormattedData: (...args: any[]) => any;
3
+ export declare const getData: (props: VictoryHistogramProps) => any;
4
+ export declare const getDomain: (props: VictoryHistogramProps, axis: "x" | "y") => any;
5
+ export declare const getBaseProps: (initialProps: any, fallbackProps: any) => any;
6
6
  //# sourceMappingURL=helper-methods.d.ts.map
package/es/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./victory-histogram";
1
+ export * from "./victory-histogram";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,133 +1,133 @@
1
- import React from "react";
2
- import { EventPropTypeInterface, NumberOrCallback, StringOrNumberOrCallback, VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps, VictoryStyleInterface, EventsMixinClass } from "victory-core";
3
- export declare type VictoryHistogramTargetType = "data" | "labels" | "parent";
4
- export interface VictoryHistogramProps extends Omit<VictoryCommonProps, "polar">, Omit<VictoryDatableProps, "y" | "y0">, VictoryMultiLabelableProps {
5
- binSpacing?: number;
6
- bins?: number | number[] | Date[];
7
- cornerRadius?: NumberOrCallback | {
8
- top?: NumberOrCallback;
9
- topLeft?: NumberOrCallback;
10
- topRight?: NumberOrCallback;
11
- bottom?: NumberOrCallback;
12
- bottomLeft?: NumberOrCallback;
13
- bottomRight?: NumberOrCallback;
14
- };
15
- events?: EventPropTypeInterface<VictoryHistogramTargetType, number | string | number[] | string[]>[];
16
- eventKey?: StringOrNumberOrCallback;
17
- horizontal?: boolean;
18
- style?: VictoryStyleInterface;
19
- }
20
- interface VictoryHistogramBase extends EventsMixinClass<VictoryHistogramProps> {
21
- }
22
- /**
23
- * Draw SVG histogram charts with React. VictoryHistogram is a composable component, so it doesn't include axes
24
- * Check out VictoryChart for complete histogram charts and more.
25
- */
26
- declare class VictoryHistogramBase extends React.Component<VictoryHistogramProps> {
27
- static animationWhitelist: string[];
28
- static displayName: string;
29
- static role: string;
30
- static defaultTransitions: {
31
- onLoad: {
32
- duration: number;
33
- before: () => {
34
- _y: number;
35
- _y1: number;
36
- _y0: number;
37
- };
38
- after: (datum: any) => {
39
- _y: any;
40
- _y1: any;
41
- _y0: any;
42
- };
43
- };
44
- onExit: {
45
- duration: number;
46
- before: () => {
47
- _y: number;
48
- yOffset: number;
49
- };
50
- };
51
- onEnter: {
52
- duration: number;
53
- before: () => {
54
- _y: number;
55
- _y1: number;
56
- _y0: number;
57
- };
58
- after: (datum: any) => {
59
- _y: any;
60
- _y1: any;
61
- _y0: any;
62
- };
63
- };
64
- };
65
- static getFormattedData: (...args: any[]) => any;
66
- static defaultProps: VictoryHistogramProps;
67
- static getDomain: (props: VictoryHistogramProps, axis: "y" | "x") => any;
68
- static getData: (props: VictoryHistogramProps) => any;
69
- static getBaseProps: (props: VictoryHistogramProps) => any;
70
- static expectedComponents: Partial<keyof VictoryHistogramProps>[];
71
- shouldAnimate(): boolean;
72
- render(): React.ReactElement;
73
- }
74
- export declare const VictoryHistogram: {
75
- new (props: import("victory-core").EventMixinCommonProps): {
76
- state: {};
77
- getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
78
- getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
79
- getEvents: (p: any, target: any, eventKey: any) => any;
80
- externalMutations: {} | undefined;
81
- calculatedState: {};
82
- globalEvents: {};
83
- prevGlobalEventKeys: string[];
84
- boundGlobalEvents: {};
85
- shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
86
- componentDidMount(): void;
87
- componentDidUpdate(prevProps: any): void;
88
- componentWillUnmount(): void;
89
- addGlobalListener(key: any): void;
90
- removeGlobalListener(key: any): void;
91
- getStateChanges(props: any): {};
92
- applyExternalMutations(props: any, externalMutations: any): void;
93
- getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
94
- getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
95
- cacheValues(obj: any): void;
96
- getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
97
- getAllEvents(props: any): any;
98
- getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
99
- renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
100
- animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
101
- renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
102
- renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
103
- context: unknown;
104
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
105
- forceUpdate(callback?: (() => void) | undefined): void;
106
- render(): React.ReactNode;
107
- readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
108
- refs: {
109
- [key: string]: React.ReactInstance;
110
- };
111
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
112
- getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
113
- componentWillMount?(): void;
114
- UNSAFE_componentWillMount?(): void;
115
- componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
116
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
117
- componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
118
- UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
119
- componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
120
- getSharedEventState: (key: string, value: string) => unknown;
121
- baseProps: Record<string, object>;
122
- dataKeys: string[];
123
- hasEvents: unknown;
124
- events: unknown;
125
- };
126
- getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
127
- role?: string | undefined;
128
- expectedComponents?: string[] | undefined;
129
- getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
130
- animationWhitelist?: string[] | undefined;
131
- } & typeof VictoryHistogramBase;
132
- export {};
1
+ import React from "react";
2
+ import { EventPropTypeInterface, NumberOrCallback, StringOrNumberOrCallback, VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps, VictoryStyleInterface, EventsMixinClass } from "victory-core";
3
+ export declare type VictoryHistogramTargetType = "data" | "labels" | "parent";
4
+ export interface VictoryHistogramProps extends Omit<VictoryCommonProps, "polar">, Omit<VictoryDatableProps, "y" | "y0">, VictoryMultiLabelableProps {
5
+ binSpacing?: number;
6
+ bins?: number | number[] | Date[];
7
+ cornerRadius?: NumberOrCallback | {
8
+ top?: NumberOrCallback;
9
+ topLeft?: NumberOrCallback;
10
+ topRight?: NumberOrCallback;
11
+ bottom?: NumberOrCallback;
12
+ bottomLeft?: NumberOrCallback;
13
+ bottomRight?: NumberOrCallback;
14
+ };
15
+ events?: EventPropTypeInterface<VictoryHistogramTargetType, number | string | number[] | string[]>[];
16
+ eventKey?: StringOrNumberOrCallback;
17
+ horizontal?: boolean;
18
+ style?: VictoryStyleInterface;
19
+ }
20
+ interface VictoryHistogramBase extends EventsMixinClass<VictoryHistogramProps> {
21
+ }
22
+ /**
23
+ * Draw SVG histogram charts with React. VictoryHistogram is a composable component, so it doesn't include axes
24
+ * Check out VictoryChart for complete histogram charts and more.
25
+ */
26
+ declare class VictoryHistogramBase extends React.Component<VictoryHistogramProps> {
27
+ static animationWhitelist: string[];
28
+ static displayName: string;
29
+ static role: string;
30
+ static defaultTransitions: {
31
+ onLoad: {
32
+ duration: number;
33
+ before: () => {
34
+ _y: number;
35
+ _y1: number;
36
+ _y0: number;
37
+ };
38
+ after: (datum: any) => {
39
+ _y: any;
40
+ _y1: any;
41
+ _y0: any;
42
+ };
43
+ };
44
+ onExit: {
45
+ duration: number;
46
+ before: () => {
47
+ _y: number;
48
+ yOffset: number;
49
+ };
50
+ };
51
+ onEnter: {
52
+ duration: number;
53
+ before: () => {
54
+ _y: number;
55
+ _y1: number;
56
+ _y0: number;
57
+ };
58
+ after: (datum: any) => {
59
+ _y: any;
60
+ _y1: any;
61
+ _y0: any;
62
+ };
63
+ };
64
+ };
65
+ static getFormattedData: (...args: any[]) => any;
66
+ static defaultProps: VictoryHistogramProps;
67
+ static getDomain: (props: VictoryHistogramProps, axis: "y" | "x") => any;
68
+ static getData: (props: VictoryHistogramProps) => any;
69
+ static getBaseProps: (props: VictoryHistogramProps) => any;
70
+ static expectedComponents: Partial<keyof VictoryHistogramProps>[];
71
+ shouldAnimate(): boolean;
72
+ render(): React.ReactElement;
73
+ }
74
+ export declare const VictoryHistogram: {
75
+ new (props: import("victory-core").EventMixinCommonProps): {
76
+ state: {};
77
+ getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
78
+ getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
79
+ getEvents: (p: any, target: any, eventKey: any) => any;
80
+ externalMutations: {} | undefined;
81
+ calculatedState: {};
82
+ globalEvents: {};
83
+ prevGlobalEventKeys: string[];
84
+ boundGlobalEvents: {};
85
+ shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
86
+ componentDidMount(): void;
87
+ componentDidUpdate(prevProps: any): void;
88
+ componentWillUnmount(): void;
89
+ addGlobalListener(key: any): void;
90
+ removeGlobalListener(key: any): void;
91
+ getStateChanges(props: any): {};
92
+ applyExternalMutations(props: any, externalMutations: any): void;
93
+ getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
94
+ getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
95
+ cacheValues(obj: any): void;
96
+ getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
97
+ getAllEvents(props: any): any;
98
+ getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
99
+ renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
100
+ animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
101
+ renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
102
+ renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
103
+ context: unknown;
104
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
105
+ forceUpdate(callback?: (() => void) | undefined): void;
106
+ render(): React.ReactNode;
107
+ readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
108
+ refs: {
109
+ [key: string]: React.ReactInstance;
110
+ };
111
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
112
+ getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
113
+ componentWillMount?(): void;
114
+ UNSAFE_componentWillMount?(): void;
115
+ componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
116
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
117
+ componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
118
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
119
+ componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
120
+ getSharedEventState: (key: string, value: string) => unknown;
121
+ baseProps: Record<string, object>;
122
+ dataKeys: string[];
123
+ hasEvents: unknown;
124
+ events: unknown;
125
+ };
126
+ getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
127
+ role?: string | undefined;
128
+ expectedComponents?: string[] | undefined;
129
+ getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
130
+ animationWhitelist?: string[] | undefined;
131
+ } & typeof VictoryHistogramBase;
132
+ export {};
133
133
  //# sourceMappingURL=victory-histogram.d.ts.map
@@ -1,6 +1,6 @@
1
- import { VictoryHistogramProps } from "./victory-histogram";
2
- export declare const getFormattedData: (...args: any[]) => any;
3
- export declare const getData: (props: VictoryHistogramProps) => any;
4
- export declare const getDomain: (props: VictoryHistogramProps, axis: "x" | "y") => any;
5
- export declare const getBaseProps: (initialProps: any, fallbackProps: any) => any;
1
+ import { VictoryHistogramProps } from "./victory-histogram";
2
+ export declare const getFormattedData: (...args: any[]) => any;
3
+ export declare const getData: (props: VictoryHistogramProps) => any;
4
+ export declare const getDomain: (props: VictoryHistogramProps, axis: "x" | "y") => any;
5
+ export declare const getBaseProps: (initialProps: any, fallbackProps: any) => any;
6
6
  //# sourceMappingURL=helper-methods.d.ts.map
package/lib/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./victory-histogram";
1
+ export * from "./victory-histogram";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,133 +1,133 @@
1
- import React from "react";
2
- import { EventPropTypeInterface, NumberOrCallback, StringOrNumberOrCallback, VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps, VictoryStyleInterface, EventsMixinClass } from "victory-core";
3
- export declare type VictoryHistogramTargetType = "data" | "labels" | "parent";
4
- export interface VictoryHistogramProps extends Omit<VictoryCommonProps, "polar">, Omit<VictoryDatableProps, "y" | "y0">, VictoryMultiLabelableProps {
5
- binSpacing?: number;
6
- bins?: number | number[] | Date[];
7
- cornerRadius?: NumberOrCallback | {
8
- top?: NumberOrCallback;
9
- topLeft?: NumberOrCallback;
10
- topRight?: NumberOrCallback;
11
- bottom?: NumberOrCallback;
12
- bottomLeft?: NumberOrCallback;
13
- bottomRight?: NumberOrCallback;
14
- };
15
- events?: EventPropTypeInterface<VictoryHistogramTargetType, number | string | number[] | string[]>[];
16
- eventKey?: StringOrNumberOrCallback;
17
- horizontal?: boolean;
18
- style?: VictoryStyleInterface;
19
- }
20
- interface VictoryHistogramBase extends EventsMixinClass<VictoryHistogramProps> {
21
- }
22
- /**
23
- * Draw SVG histogram charts with React. VictoryHistogram is a composable component, so it doesn't include axes
24
- * Check out VictoryChart for complete histogram charts and more.
25
- */
26
- declare class VictoryHistogramBase extends React.Component<VictoryHistogramProps> {
27
- static animationWhitelist: string[];
28
- static displayName: string;
29
- static role: string;
30
- static defaultTransitions: {
31
- onLoad: {
32
- duration: number;
33
- before: () => {
34
- _y: number;
35
- _y1: number;
36
- _y0: number;
37
- };
38
- after: (datum: any) => {
39
- _y: any;
40
- _y1: any;
41
- _y0: any;
42
- };
43
- };
44
- onExit: {
45
- duration: number;
46
- before: () => {
47
- _y: number;
48
- yOffset: number;
49
- };
50
- };
51
- onEnter: {
52
- duration: number;
53
- before: () => {
54
- _y: number;
55
- _y1: number;
56
- _y0: number;
57
- };
58
- after: (datum: any) => {
59
- _y: any;
60
- _y1: any;
61
- _y0: any;
62
- };
63
- };
64
- };
65
- static getFormattedData: (...args: any[]) => any;
66
- static defaultProps: VictoryHistogramProps;
67
- static getDomain: (props: VictoryHistogramProps, axis: "y" | "x") => any;
68
- static getData: (props: VictoryHistogramProps) => any;
69
- static getBaseProps: (props: VictoryHistogramProps) => any;
70
- static expectedComponents: Partial<keyof VictoryHistogramProps>[];
71
- shouldAnimate(): boolean;
72
- render(): React.ReactElement;
73
- }
74
- export declare const VictoryHistogram: {
75
- new (props: import("victory-core").EventMixinCommonProps): {
76
- state: {};
77
- getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
78
- getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
79
- getEvents: (p: any, target: any, eventKey: any) => any;
80
- externalMutations: {} | undefined;
81
- calculatedState: {};
82
- globalEvents: {};
83
- prevGlobalEventKeys: string[];
84
- boundGlobalEvents: {};
85
- shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
86
- componentDidMount(): void;
87
- componentDidUpdate(prevProps: any): void;
88
- componentWillUnmount(): void;
89
- addGlobalListener(key: any): void;
90
- removeGlobalListener(key: any): void;
91
- getStateChanges(props: any): {};
92
- applyExternalMutations(props: any, externalMutations: any): void;
93
- getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
94
- getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
95
- cacheValues(obj: any): void;
96
- getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
97
- getAllEvents(props: any): any;
98
- getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
99
- renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
100
- animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
101
- renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
102
- renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
103
- context: unknown;
104
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
105
- forceUpdate(callback?: (() => void) | undefined): void;
106
- render(): React.ReactNode;
107
- readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
108
- refs: {
109
- [key: string]: React.ReactInstance;
110
- };
111
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
112
- getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
113
- componentWillMount?(): void;
114
- UNSAFE_componentWillMount?(): void;
115
- componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
116
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
117
- componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
118
- UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
119
- componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
120
- getSharedEventState: (key: string, value: string) => unknown;
121
- baseProps: Record<string, object>;
122
- dataKeys: string[];
123
- hasEvents: unknown;
124
- events: unknown;
125
- };
126
- getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
127
- role?: string | undefined;
128
- expectedComponents?: string[] | undefined;
129
- getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
130
- animationWhitelist?: string[] | undefined;
131
- } & typeof VictoryHistogramBase;
132
- export {};
1
+ import React from "react";
2
+ import { EventPropTypeInterface, NumberOrCallback, StringOrNumberOrCallback, VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps, VictoryStyleInterface, EventsMixinClass } from "victory-core";
3
+ export declare type VictoryHistogramTargetType = "data" | "labels" | "parent";
4
+ export interface VictoryHistogramProps extends Omit<VictoryCommonProps, "polar">, Omit<VictoryDatableProps, "y" | "y0">, VictoryMultiLabelableProps {
5
+ binSpacing?: number;
6
+ bins?: number | number[] | Date[];
7
+ cornerRadius?: NumberOrCallback | {
8
+ top?: NumberOrCallback;
9
+ topLeft?: NumberOrCallback;
10
+ topRight?: NumberOrCallback;
11
+ bottom?: NumberOrCallback;
12
+ bottomLeft?: NumberOrCallback;
13
+ bottomRight?: NumberOrCallback;
14
+ };
15
+ events?: EventPropTypeInterface<VictoryHistogramTargetType, number | string | number[] | string[]>[];
16
+ eventKey?: StringOrNumberOrCallback;
17
+ horizontal?: boolean;
18
+ style?: VictoryStyleInterface;
19
+ }
20
+ interface VictoryHistogramBase extends EventsMixinClass<VictoryHistogramProps> {
21
+ }
22
+ /**
23
+ * Draw SVG histogram charts with React. VictoryHistogram is a composable component, so it doesn't include axes
24
+ * Check out VictoryChart for complete histogram charts and more.
25
+ */
26
+ declare class VictoryHistogramBase extends React.Component<VictoryHistogramProps> {
27
+ static animationWhitelist: string[];
28
+ static displayName: string;
29
+ static role: string;
30
+ static defaultTransitions: {
31
+ onLoad: {
32
+ duration: number;
33
+ before: () => {
34
+ _y: number;
35
+ _y1: number;
36
+ _y0: number;
37
+ };
38
+ after: (datum: any) => {
39
+ _y: any;
40
+ _y1: any;
41
+ _y0: any;
42
+ };
43
+ };
44
+ onExit: {
45
+ duration: number;
46
+ before: () => {
47
+ _y: number;
48
+ yOffset: number;
49
+ };
50
+ };
51
+ onEnter: {
52
+ duration: number;
53
+ before: () => {
54
+ _y: number;
55
+ _y1: number;
56
+ _y0: number;
57
+ };
58
+ after: (datum: any) => {
59
+ _y: any;
60
+ _y1: any;
61
+ _y0: any;
62
+ };
63
+ };
64
+ };
65
+ static getFormattedData: (...args: any[]) => any;
66
+ static defaultProps: VictoryHistogramProps;
67
+ static getDomain: (props: VictoryHistogramProps, axis: "y" | "x") => any;
68
+ static getData: (props: VictoryHistogramProps) => any;
69
+ static getBaseProps: (props: VictoryHistogramProps) => any;
70
+ static expectedComponents: Partial<keyof VictoryHistogramProps>[];
71
+ shouldAnimate(): boolean;
72
+ render(): React.ReactElement;
73
+ }
74
+ export declare const VictoryHistogram: {
75
+ new (props: import("victory-core").EventMixinCommonProps): {
76
+ state: {};
77
+ getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
78
+ getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
79
+ getEvents: (p: any, target: any, eventKey: any) => any;
80
+ externalMutations: {} | undefined;
81
+ calculatedState: {};
82
+ globalEvents: {};
83
+ prevGlobalEventKeys: string[];
84
+ boundGlobalEvents: {};
85
+ shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
86
+ componentDidMount(): void;
87
+ componentDidUpdate(prevProps: any): void;
88
+ componentWillUnmount(): void;
89
+ addGlobalListener(key: any): void;
90
+ removeGlobalListener(key: any): void;
91
+ getStateChanges(props: any): {};
92
+ applyExternalMutations(props: any, externalMutations: any): void;
93
+ getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
94
+ getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
95
+ cacheValues(obj: any): void;
96
+ getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
97
+ getAllEvents(props: any): any;
98
+ getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
99
+ renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
100
+ animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
101
+ renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
102
+ renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
103
+ context: unknown;
104
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
105
+ forceUpdate(callback?: (() => void) | undefined): void;
106
+ render(): React.ReactNode;
107
+ readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
108
+ refs: {
109
+ [key: string]: React.ReactInstance;
110
+ };
111
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
112
+ getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
113
+ componentWillMount?(): void;
114
+ UNSAFE_componentWillMount?(): void;
115
+ componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
116
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
117
+ componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
118
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
119
+ componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
120
+ getSharedEventState: (key: string, value: string) => unknown;
121
+ baseProps: Record<string, object>;
122
+ dataKeys: string[];
123
+ hasEvents: unknown;
124
+ events: unknown;
125
+ };
126
+ getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
127
+ role?: string | undefined;
128
+ expectedComponents?: string[] | undefined;
129
+ getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
130
+ animationWhitelist?: string[] | undefined;
131
+ } & typeof VictoryHistogramBase;
132
+ export {};
133
133
  //# sourceMappingURL=victory-histogram.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-histogram",
3
- "version": "36.9.0",
3
+ "version": "36.9.1-next.0",
4
4
  "description": "Histogram Component for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -22,19 +22,16 @@
22
22
  "dependencies": {
23
23
  "lodash": "^4.17.19",
24
24
  "react-fast-compare": "^3.2.0",
25
- "victory-bar": "^36.9.0",
26
- "victory-core": "^36.9.0",
27
- "victory-vendor": "^36.9.0"
25
+ "victory-bar": "^36.9.1-next.0",
26
+ "victory-core": "^36.9.1-next.0",
27
+ "victory-vendor": "^36.9.1-next.0"
28
28
  },
29
29
  "devDependencies": {
30
- "victory-histogram": "*"
30
+ "victory-histogram": "36.9.1-next.0"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "react": ">=16.6.0"
34
34
  },
35
- "publishConfig": {
36
- "provenance": true
37
- },
38
35
  "wireit": {
39
36
  "### THESE WIREIT CONFIGS ARE GENERATED ####": {},
40
37
  "### DO NOT MODIFY THESE MANUALLY ####": {},