victory-histogram 37.3.1 → 37.3.3
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 +584 -296
- package/dist/victory-histogram.min.js +1 -1
- package/es/victory-histogram.d.ts +7 -7
- package/es/victory-histogram.js +1 -1
- package/lib/victory-histogram.d.ts +7 -7
- package/lib/victory-histogram.js +1 -1
- package/package.json +8 -40
- package/src/victory-histogram.tsx +1 -1
|
@@ -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/es/victory-histogram.js
CHANGED
|
@@ -9,7 +9,7 @@ const fallbackProps = {
|
|
|
9
9
|
};
|
|
10
10
|
const defaultData = [];
|
|
11
11
|
|
|
12
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Draw SVG histogram charts with React. VictoryHistogram is a composable component, so it doesn't include axes
|
|
@@ -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/lib/victory-histogram.js
CHANGED
|
@@ -16,7 +16,7 @@ const fallbackProps = {
|
|
|
16
16
|
};
|
|
17
17
|
const defaultData = [];
|
|
18
18
|
|
|
19
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Draw SVG histogram charts with React. VictoryHistogram is a composable component, so it doesn't include axes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-histogram",
|
|
3
|
-
"version": "37.3.
|
|
3
|
+
"version": "37.3.3",
|
|
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.3",
|
|
26
|
+
"victory-core": "37.3.3",
|
|
27
|
+
"victory-vendor": "37.3.3"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"react": ">=16.6.0"
|
|
@@ -194,38 +194,10 @@
|
|
|
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
|
-
"command": "
|
|
198
|
+
"command": "eslint src",
|
|
225
199
|
"files": [
|
|
226
|
-
"src/**"
|
|
227
|
-
"../../.eslintignore",
|
|
228
|
-
"../../.eslintrc.js"
|
|
200
|
+
"src/**"
|
|
229
201
|
],
|
|
230
202
|
"output": [],
|
|
231
203
|
"dependencies": [
|
|
@@ -240,11 +212,9 @@
|
|
|
240
212
|
]
|
|
241
213
|
},
|
|
242
214
|
"lint:fix": {
|
|
243
|
-
"command": "
|
|
215
|
+
"command": "eslint --fix src",
|
|
244
216
|
"files": [
|
|
245
|
-
"src/**"
|
|
246
|
-
"../../.eslintignore",
|
|
247
|
-
"../../.eslintrc.js"
|
|
217
|
+
"src/**"
|
|
248
218
|
],
|
|
249
219
|
"output": [],
|
|
250
220
|
"dependencies": [
|
|
@@ -291,8 +261,6 @@
|
|
|
291
261
|
"check": "wireit",
|
|
292
262
|
"types:check": "wireit",
|
|
293
263
|
"types:create": "wireit",
|
|
294
|
-
"format": "wireit",
|
|
295
|
-
"format:fix": "wireit",
|
|
296
264
|
"lint": "wireit",
|
|
297
265
|
"lint:fix": "wireit",
|
|
298
266
|
"jest": "wireit"
|
|
@@ -57,7 +57,7 @@ const fallbackProps: Partial<VictoryHistogramProps> = {
|
|
|
57
57
|
|
|
58
58
|
const defaultData = [];
|
|
59
59
|
|
|
60
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-
|
|
60
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
61
61
|
interface VictoryHistogramBase
|
|
62
62
|
extends EventsMixinClass<VictoryHistogramProps> {}
|
|
63
63
|
|