victory-histogram 37.3.2 → 37.3.4
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 +4 -0
- package/dist/victory-histogram.js +570 -249
- package/dist/victory-histogram.min.js +1 -1
- package/es/victory-histogram.d.ts +7 -7
- package/lib/victory-histogram.d.ts +7 -7
- package/package.json +4 -32
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { EventPropTypeInterface, NumberOrCallback, StringOrNumberOrCallback, VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps, VictoryStyleInterface, EventsMixinClass } from "victory-core";
|
|
3
|
-
export
|
|
3
|
+
export type VictoryHistogramTargetType = "data" | "labels" | "parent";
|
|
4
4
|
export interface VictoryHistogramProps extends Omit<VictoryCommonProps, "polar">, Omit<VictoryDatableProps, "y" | "y0">, VictoryMultiLabelableProps {
|
|
5
5
|
binSpacing?: number;
|
|
6
6
|
bins?: number | number[] | Date[];
|
|
@@ -96,9 +96,9 @@ export declare const VictoryHistogram: {
|
|
|
96
96
|
getAllEvents(props: any): any;
|
|
97
97
|
getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
|
|
98
98
|
renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
99
|
-
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement
|
|
99
|
+
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement;
|
|
100
100
|
renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
101
|
-
renderData(props: any, shouldRenderDatum?: (
|
|
101
|
+
renderData(props: any, shouldRenderDatum?: (datum: any) => boolean): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
102
102
|
context: unknown;
|
|
103
103
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
104
104
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
@@ -115,17 +115,17 @@ export declare const VictoryHistogram: {
|
|
|
115
115
|
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
116
116
|
componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
117
117
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
118
|
-
componentEvents: import("@/victory-core/lib/victory-util/events").ComponentEvent
|
|
118
|
+
componentEvents: Array<import("@/victory-core/lib/victory-util/events").ComponentEvent>;
|
|
119
119
|
getSharedEventState: (key: string, value: string) => unknown;
|
|
120
120
|
baseProps: Record<string, object>;
|
|
121
121
|
dataKeys: string[];
|
|
122
122
|
hasEvents: unknown;
|
|
123
123
|
events: unknown;
|
|
124
124
|
};
|
|
125
|
-
getBaseProps?(props: import("victory-core").EventMixinCommonProps):
|
|
126
|
-
role?:
|
|
125
|
+
getBaseProps?(props: import("victory-core").EventMixinCommonProps): import("victory-core").EventMixinCalculatedValues["baseProps"];
|
|
126
|
+
role?: import("victory-core").VictoryComponentRole;
|
|
127
127
|
expectedComponents?: string[] | undefined;
|
|
128
|
-
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode
|
|
128
|
+
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: Array<React.ReactNode>, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
|
|
129
129
|
animationWhitelist?: string[] | undefined;
|
|
130
130
|
} & typeof VictoryHistogramBase;
|
|
131
131
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { EventPropTypeInterface, NumberOrCallback, StringOrNumberOrCallback, VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps, VictoryStyleInterface, EventsMixinClass } from "victory-core";
|
|
3
|
-
export
|
|
3
|
+
export type VictoryHistogramTargetType = "data" | "labels" | "parent";
|
|
4
4
|
export interface VictoryHistogramProps extends Omit<VictoryCommonProps, "polar">, Omit<VictoryDatableProps, "y" | "y0">, VictoryMultiLabelableProps {
|
|
5
5
|
binSpacing?: number;
|
|
6
6
|
bins?: number | number[] | Date[];
|
|
@@ -96,9 +96,9 @@ export declare const VictoryHistogram: {
|
|
|
96
96
|
getAllEvents(props: any): any;
|
|
97
97
|
getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
|
|
98
98
|
renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
99
|
-
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement
|
|
99
|
+
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement;
|
|
100
100
|
renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
101
|
-
renderData(props: any, shouldRenderDatum?: (
|
|
101
|
+
renderData(props: any, shouldRenderDatum?: (datum: any) => boolean): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
102
102
|
context: unknown;
|
|
103
103
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
104
104
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
@@ -115,17 +115,17 @@ export declare const VictoryHistogram: {
|
|
|
115
115
|
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
116
116
|
componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
117
117
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
118
|
-
componentEvents: import("@/victory-core/lib/victory-util/events").ComponentEvent
|
|
118
|
+
componentEvents: Array<import("@/victory-core/lib/victory-util/events").ComponentEvent>;
|
|
119
119
|
getSharedEventState: (key: string, value: string) => unknown;
|
|
120
120
|
baseProps: Record<string, object>;
|
|
121
121
|
dataKeys: string[];
|
|
122
122
|
hasEvents: unknown;
|
|
123
123
|
events: unknown;
|
|
124
124
|
};
|
|
125
|
-
getBaseProps?(props: import("victory-core").EventMixinCommonProps):
|
|
126
|
-
role?:
|
|
125
|
+
getBaseProps?(props: import("victory-core").EventMixinCommonProps): import("victory-core").EventMixinCalculatedValues["baseProps"];
|
|
126
|
+
role?: import("victory-core").VictoryComponentRole;
|
|
127
127
|
expectedComponents?: string[] | undefined;
|
|
128
|
-
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode
|
|
128
|
+
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: Array<React.ReactNode>, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
|
|
129
129
|
animationWhitelist?: string[] | undefined;
|
|
130
130
|
} & typeof VictoryHistogramBase;
|
|
131
131
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-histogram",
|
|
3
|
-
"version": "37.3.
|
|
3
|
+
"version": "37.3.4",
|
|
4
4
|
"description": "Histogram Component for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"lodash": "^4.17.19",
|
|
24
24
|
"react-fast-compare": "^3.2.0",
|
|
25
|
-
"victory-bar": "37.3.
|
|
26
|
-
"victory-core": "37.3.
|
|
27
|
-
"victory-vendor": "37.3.
|
|
25
|
+
"victory-bar": "37.3.4",
|
|
26
|
+
"victory-core": "37.3.4",
|
|
27
|
+
"victory-vendor": "37.3.4"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"react": ">=16.6.0"
|
|
@@ -194,32 +194,6 @@
|
|
|
194
194
|
"pnpm-lock.yaml"
|
|
195
195
|
]
|
|
196
196
|
},
|
|
197
|
-
"format": {
|
|
198
|
-
"command": "nps format:pkg",
|
|
199
|
-
"files": [
|
|
200
|
-
"src/**",
|
|
201
|
-
"*.json",
|
|
202
|
-
"../../.prettierignore",
|
|
203
|
-
"../../.prettierrc.json"
|
|
204
|
-
],
|
|
205
|
-
"output": [],
|
|
206
|
-
"packageLocks": [
|
|
207
|
-
"pnpm-lock.yaml"
|
|
208
|
-
]
|
|
209
|
-
},
|
|
210
|
-
"format:fix": {
|
|
211
|
-
"command": "pnpm run format || nps format:pkg:fix",
|
|
212
|
-
"files": [
|
|
213
|
-
"src/**",
|
|
214
|
-
"*.json",
|
|
215
|
-
"../../.prettierignore",
|
|
216
|
-
"../../.prettierrc.json"
|
|
217
|
-
],
|
|
218
|
-
"output": [],
|
|
219
|
-
"packageLocks": [
|
|
220
|
-
"pnpm-lock.yaml"
|
|
221
|
-
]
|
|
222
|
-
},
|
|
223
197
|
"lint": {
|
|
224
198
|
"command": "eslint src",
|
|
225
199
|
"files": [
|
|
@@ -287,8 +261,6 @@
|
|
|
287
261
|
"check": "wireit",
|
|
288
262
|
"types:check": "wireit",
|
|
289
263
|
"types:create": "wireit",
|
|
290
|
-
"format": "wireit",
|
|
291
|
-
"format:fix": "wireit",
|
|
292
264
|
"lint": "wireit",
|
|
293
265
|
"lint:fix": "wireit",
|
|
294
266
|
"jest": "wireit"
|