victory-core 36.9.2-next.3 → 36.9.2
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 +22 -10
- package/README.md +1 -1
- package/dist/victory-core.js +124 -493
- package/dist/victory-core.min.js +1 -1
- package/es/index.d.ts +17 -17
- package/es/types/callbacks.d.ts +36 -36
- package/es/types/prop-types.d.ts +129 -129
- package/es/victory-accessible-group/victory-accessible-group.d.ts +10 -10
- package/es/victory-animation/util.d.ts +66 -66
- package/es/victory-animation/victory-animation.d.ts +34 -34
- package/es/victory-clip-container/victory-clip-container.d.ts +46 -46
- package/es/victory-container/victory-container.d.ts +68 -68
- package/es/victory-label/victory-label.d.ts +58 -58
- package/es/victory-portal/portal-context.d.ts +11 -11
- package/es/victory-portal/portal.d.ts +20 -20
- package/es/victory-portal/victory-portal.d.ts +26 -26
- package/es/victory-primitives/arc.d.ts +14 -14
- package/es/victory-primitives/background.d.ts +13 -13
- package/es/victory-primitives/border.d.ts +10 -10
- package/es/victory-primitives/circle.d.ts +3 -3
- package/es/victory-primitives/clip-path.d.ts +7 -7
- package/es/victory-primitives/index.d.ts +14 -14
- package/es/victory-primitives/line-segment.d.ts +11 -11
- package/es/victory-primitives/line.d.ts +3 -3
- package/es/victory-primitives/path.d.ts +3 -3
- package/es/victory-primitives/point.d.ts +13 -13
- package/es/victory-primitives/rect.d.ts +3 -3
- package/es/victory-primitives/text.d.ts +8 -8
- package/es/victory-primitives/tspan.d.ts +3 -3
- package/es/victory-primitives/types.d.ts +7 -7
- package/es/victory-primitives/whisker.d.ts +15 -15
- package/es/victory-theme/grayscale.d.ts +2 -2
- package/es/victory-theme/material.d.ts +2 -2
- package/es/victory-theme/types.d.ts +238 -238
- package/es/victory-theme/victory-theme.d.ts +5 -5
- package/es/victory-transition/victory-transition.d.ts +53 -53
- package/es/victory-util/add-events.d.ts +126 -126
- package/es/victory-util/add-events.js +4 -8
- package/es/victory-util/axis.d.ts +50 -50
- package/es/victory-util/axis.js +13 -6
- package/es/victory-util/collection.d.ts +15 -8
- package/es/victory-util/collection.js +16 -0
- package/es/victory-util/common-props.d.ts +79 -79
- package/es/victory-util/data.d.ts +74 -74
- package/es/victory-util/default-transitions.d.ts +4 -4
- package/es/victory-util/domain.d.ts +90 -90
- package/es/victory-util/events.d.ts +64 -64
- package/es/victory-util/helpers.d.ts +96 -91
- package/es/victory-util/helpers.js +12 -1
- package/es/victory-util/hooks/index.d.ts +2 -2
- package/es/victory-util/hooks/use-animation-state.d.ts +21 -21
- package/es/victory-util/hooks/use-previous-props.d.ts +1 -1
- package/es/victory-util/immutable.d.ts +11 -11
- package/es/victory-util/index.d.ts +26 -26
- package/es/victory-util/label-helpers.d.ts +26 -26
- package/es/victory-util/line-helpers.d.ts +4 -4
- package/es/victory-util/log.d.ts +1 -1
- package/es/victory-util/point-path-helpers.d.ts +9 -9
- package/es/victory-util/scale.d.ts +9 -9
- package/es/victory-util/selection.d.ts +28 -28
- package/es/victory-util/style.d.ts +18 -18
- package/es/victory-util/textsize.d.ts +35 -35
- package/es/victory-util/timer-context.d.ts +11 -11
- package/es/victory-util/timer.d.ts +16 -16
- package/es/victory-util/transitions.d.ts +48 -48
- package/es/victory-util/type-helpers.d.ts +9 -9
- package/es/victory-util/user-props.d.ts +26 -26
- package/es/victory-util/wrapper.d.ts +33 -37
- package/es/victory-util/wrapper.js +2 -2
- package/lib/index.d.ts +17 -17
- package/lib/types/callbacks.d.ts +36 -36
- package/lib/types/prop-types.d.ts +129 -129
- package/lib/victory-accessible-group/victory-accessible-group.d.ts +10 -10
- package/lib/victory-animation/util.d.ts +66 -66
- package/lib/victory-animation/victory-animation.d.ts +34 -34
- package/lib/victory-clip-container/victory-clip-container.d.ts +46 -46
- package/lib/victory-container/victory-container.d.ts +68 -68
- package/lib/victory-label/victory-label.d.ts +58 -58
- package/lib/victory-portal/portal-context.d.ts +11 -11
- package/lib/victory-portal/portal.d.ts +20 -20
- package/lib/victory-portal/victory-portal.d.ts +26 -26
- package/lib/victory-primitives/arc.d.ts +14 -14
- package/lib/victory-primitives/background.d.ts +13 -13
- package/lib/victory-primitives/border.d.ts +10 -10
- package/lib/victory-primitives/circle.d.ts +3 -3
- package/lib/victory-primitives/clip-path.d.ts +7 -7
- package/lib/victory-primitives/index.d.ts +14 -14
- package/lib/victory-primitives/line-segment.d.ts +11 -11
- package/lib/victory-primitives/line.d.ts +3 -3
- package/lib/victory-primitives/path.d.ts +3 -3
- package/lib/victory-primitives/point.d.ts +13 -13
- package/lib/victory-primitives/rect.d.ts +3 -3
- package/lib/victory-primitives/text.d.ts +8 -8
- package/lib/victory-primitives/tspan.d.ts +3 -3
- package/lib/victory-primitives/types.d.ts +7 -7
- package/lib/victory-primitives/whisker.d.ts +15 -15
- package/lib/victory-theme/grayscale.d.ts +2 -2
- package/lib/victory-theme/material.d.ts +2 -2
- package/lib/victory-theme/types.d.ts +238 -238
- package/lib/victory-theme/victory-theme.d.ts +5 -5
- package/lib/victory-transition/victory-transition.d.ts +53 -53
- package/lib/victory-util/add-events.d.ts +126 -126
- package/lib/victory-util/add-events.js +6 -6
- package/lib/victory-util/axis.d.ts +50 -50
- package/lib/victory-util/axis.js +13 -7
- package/lib/victory-util/collection.d.ts +15 -8
- package/lib/victory-util/collection.js +18 -0
- package/lib/victory-util/common-props.d.ts +79 -79
- package/lib/victory-util/data.d.ts +74 -74
- package/lib/victory-util/default-transitions.d.ts +4 -4
- package/lib/victory-util/domain.d.ts +90 -90
- package/lib/victory-util/events.d.ts +64 -64
- package/lib/victory-util/helpers.d.ts +96 -91
- package/lib/victory-util/helpers.js +13 -0
- package/lib/victory-util/hooks/index.d.ts +2 -2
- package/lib/victory-util/hooks/use-animation-state.d.ts +21 -21
- package/lib/victory-util/hooks/use-previous-props.d.ts +1 -1
- package/lib/victory-util/immutable.d.ts +11 -11
- package/lib/victory-util/index.d.ts +26 -26
- package/lib/victory-util/label-helpers.d.ts +26 -26
- package/lib/victory-util/line-helpers.d.ts +4 -4
- package/lib/victory-util/log.d.ts +1 -1
- package/lib/victory-util/point-path-helpers.d.ts +9 -9
- package/lib/victory-util/scale.d.ts +9 -9
- package/lib/victory-util/selection.d.ts +28 -28
- package/lib/victory-util/style.d.ts +18 -18
- package/lib/victory-util/textsize.d.ts +35 -35
- package/lib/victory-util/timer-context.d.ts +11 -11
- package/lib/victory-util/timer.d.ts +16 -16
- package/lib/victory-util/transitions.d.ts +48 -48
- package/lib/victory-util/type-helpers.d.ts +9 -9
- package/lib/victory-util/user-props.d.ts +26 -26
- package/lib/victory-util/wrapper.d.ts +33 -37
- package/lib/victory-util/wrapper.js +2 -2
- package/package.json +6 -3
- package/src/types/prop-types.ts +0 -7
- package/src/victory-container/victory-container.tsx +195 -171
- package/src/victory-portal/portal-context.ts +4 -5
- package/src/victory-portal/portal.tsx +42 -5
- package/src/victory-portal/victory-portal.tsx +71 -34
- package/src/victory-util/add-events.tsx +6 -4
- package/src/victory-util/axis.tsx +12 -3
- package/src/victory-util/collection.tsx +13 -0
- package/src/victory-util/helpers.ts +11 -0
- package/src/victory-util/index.ts +0 -1
- package/src/victory-util/wrapper.tsx +1 -0
- package/src/victory-util/merge-refs.ts +0 -13
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
3
|
-
import { ScatterSymbolType } from "./types";
|
|
4
|
-
export interface PointProps extends VictoryCommonPrimitiveProps {
|
|
5
|
-
datum?: any;
|
|
6
|
-
getPath?: (x: number, y: number, size: number) => string;
|
|
7
|
-
pathComponent?: React.ReactElement;
|
|
8
|
-
size?: number | Function;
|
|
9
|
-
symbol?: ScatterSymbolType | Function;
|
|
10
|
-
x?: number;
|
|
11
|
-
y?: number;
|
|
12
|
-
}
|
|
13
|
-
export declare const Point: (initialProps: PointProps) => React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
3
|
+
import { ScatterSymbolType } from "./types";
|
|
4
|
+
export interface PointProps extends VictoryCommonPrimitiveProps {
|
|
5
|
+
datum?: any;
|
|
6
|
+
getPath?: (x: number, y: number, size: number) => string;
|
|
7
|
+
pathComponent?: React.ReactElement;
|
|
8
|
+
size?: number | Function;
|
|
9
|
+
symbol?: ScatterSymbolType | Function;
|
|
10
|
+
x?: number;
|
|
11
|
+
y?: number;
|
|
12
|
+
}
|
|
13
|
+
export declare const Point: (initialProps: PointProps) => React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
14
14
|
//# sourceMappingURL=point.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { VictoryPrimitiveShapeProps } from "./types";
|
|
3
|
-
export declare const Rect: React.ForwardRefExoticComponent<VictoryPrimitiveShapeProps & React.RefAttributes<SVGRectElement>>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { VictoryPrimitiveShapeProps } from "./types";
|
|
3
|
+
export declare const Rect: React.ForwardRefExoticComponent<VictoryPrimitiveShapeProps & React.RefAttributes<SVGRectElement>>;
|
|
4
4
|
//# sourceMappingURL=rect.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
3
|
-
export interface TextProps extends VictoryCommonPrimitiveProps {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
desc?: string;
|
|
6
|
-
title?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const Text: (props: TextProps) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
3
|
+
export interface TextProps extends VictoryCommonPrimitiveProps {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
desc?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const Text: (props: TextProps) => JSX.Element;
|
|
9
9
|
//# sourceMappingURL=text.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
3
|
-
export declare const TSpan: (props: VictoryCommonPrimitiveProps) => JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
3
|
+
export declare const TSpan: (props: VictoryCommonPrimitiveProps) => JSX.Element;
|
|
4
4
|
//# sourceMappingURL=tspan.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
2
|
-
export declare type ScatterSymbolType = "circle" | "cross" | "diamond" | "plus" | "minus" | "square" | "star" | "triangleDown" | "triangleUp";
|
|
3
|
-
export interface VictoryPrimitiveShapeProps extends VictoryCommonPrimitiveProps {
|
|
4
|
-
desc?: string;
|
|
5
|
-
rx?: number;
|
|
6
|
-
ry?: number;
|
|
7
|
-
}
|
|
1
|
+
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
2
|
+
export declare type ScatterSymbolType = "circle" | "cross" | "diamond" | "plus" | "minus" | "square" | "star" | "triangleDown" | "triangleUp";
|
|
3
|
+
export interface VictoryPrimitiveShapeProps extends VictoryCommonPrimitiveProps {
|
|
4
|
+
desc?: string;
|
|
5
|
+
rx?: number;
|
|
6
|
+
ry?: number;
|
|
7
|
+
}
|
|
8
8
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
3
|
-
export declare type WhiskerAxes = {
|
|
4
|
-
x1?: number;
|
|
5
|
-
x2?: number;
|
|
6
|
-
y1?: number;
|
|
7
|
-
y2?: number;
|
|
8
|
-
};
|
|
9
|
-
export interface WhiskerProps extends VictoryCommonPrimitiveProps {
|
|
10
|
-
groupComponent?: React.ReactElement;
|
|
11
|
-
lineComponent?: React.ReactElement;
|
|
12
|
-
majorWhisker?: WhiskerAxes;
|
|
13
|
-
minorWhisker?: WhiskerAxes;
|
|
14
|
-
}
|
|
15
|
-
export declare const Whisker: (initialProps: WhiskerProps) => React.DetailedReactHTMLElement<{}, HTMLElement>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
3
|
+
export declare type WhiskerAxes = {
|
|
4
|
+
x1?: number;
|
|
5
|
+
x2?: number;
|
|
6
|
+
y1?: number;
|
|
7
|
+
y2?: number;
|
|
8
|
+
};
|
|
9
|
+
export interface WhiskerProps extends VictoryCommonPrimitiveProps {
|
|
10
|
+
groupComponent?: React.ReactElement;
|
|
11
|
+
lineComponent?: React.ReactElement;
|
|
12
|
+
majorWhisker?: WhiskerAxes;
|
|
13
|
+
minorWhisker?: WhiskerAxes;
|
|
14
|
+
}
|
|
15
|
+
export declare const Whisker: (initialProps: WhiskerProps) => React.DetailedReactHTMLElement<{}, HTMLElement>;
|
|
16
16
|
//# sourceMappingURL=whisker.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { VictoryThemeDefinition } from "./types";
|
|
2
|
-
export declare const grayscale: VictoryThemeDefinition;
|
|
1
|
+
import { VictoryThemeDefinition } from "./types";
|
|
2
|
+
export declare const grayscale: VictoryThemeDefinition;
|
|
3
3
|
//# sourceMappingURL=grayscale.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { VictoryThemeDefinition } from "./types";
|
|
2
|
-
export declare const material: VictoryThemeDefinition;
|
|
1
|
+
import { VictoryThemeDefinition } from "./types";
|
|
2
|
+
export declare const material: VictoryThemeDefinition;
|
|
3
3
|
//# sourceMappingURL=material.d.ts.map
|
|
@@ -1,239 +1,239 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { VictoryCommonThemeProps, VictoryDatableProps } from "../victory-util/common-props";
|
|
3
|
-
import { NumberOrCallback, OrientationOrCallback, PaddingOrCallback, StringOrNumberOrCallback } from "../types/callbacks";
|
|
4
|
-
export declare type BlockProps = {
|
|
5
|
-
top?: number;
|
|
6
|
-
bottom?: number;
|
|
7
|
-
left?: number;
|
|
8
|
-
right?: number;
|
|
9
|
-
};
|
|
10
|
-
export declare type PaddingProps = number | BlockProps;
|
|
11
|
-
export declare type OrientationTypes = "top" | "bottom" | "left" | "right";
|
|
12
|
-
export declare type VictoryStyleObject = {
|
|
13
|
-
[K in keyof React.CSSProperties]: StringOrNumberOrCallback;
|
|
14
|
-
};
|
|
15
|
-
export declare type LabelProps = React.CSSProperties & {
|
|
16
|
-
angle?: number;
|
|
17
|
-
verticalAnchor?: VerticalAnchorType;
|
|
18
|
-
};
|
|
19
|
-
export declare type VictoryLabelStyleObject = {
|
|
20
|
-
[K in keyof LabelProps]: StringOrNumberOrCallback;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Style interface used in components/themeing
|
|
24
|
-
*/
|
|
25
|
-
export interface VictoryStyleInterface {
|
|
26
|
-
parent?: VictoryStyleObject;
|
|
27
|
-
data?: VictoryStyleObject;
|
|
28
|
-
labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
29
|
-
border?: VictoryStyleObject;
|
|
30
|
-
}
|
|
31
|
-
export declare type TickProps = React.CSSProperties & {
|
|
32
|
-
size?: number;
|
|
33
|
-
};
|
|
34
|
-
export declare type VictoryTickStyleObject = {
|
|
35
|
-
[K in keyof TickProps]: StringOrNumberOrCallback;
|
|
36
|
-
};
|
|
37
|
-
export interface VictoryAxisCommonProps {
|
|
38
|
-
axisComponent?: React.ReactElement;
|
|
39
|
-
axisLabelComponent?: React.ReactElement;
|
|
40
|
-
axisValue?: number | string | object | Date;
|
|
41
|
-
dependentAxis?: boolean;
|
|
42
|
-
disableInlineStyles?: boolean;
|
|
43
|
-
gridComponent?: React.ReactElement;
|
|
44
|
-
invertAxis?: boolean;
|
|
45
|
-
style?: {
|
|
46
|
-
parent?: VictoryStyleObject;
|
|
47
|
-
axis?: VictoryStyleObject;
|
|
48
|
-
axisLabel?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
49
|
-
grid?: VictoryStyleObject;
|
|
50
|
-
ticks?: VictoryTickStyleObject;
|
|
51
|
-
tickLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
52
|
-
};
|
|
53
|
-
tickComponent?: React.ReactElement;
|
|
54
|
-
tickCount?: number;
|
|
55
|
-
tickLabelComponent?: React.ReactElement;
|
|
56
|
-
tickFormat?: any[] | {
|
|
57
|
-
(tick: any, index: number, ticks: any[]): string | number;
|
|
58
|
-
};
|
|
59
|
-
tickValues?: any[];
|
|
60
|
-
}
|
|
61
|
-
export declare type VerticalAnchorType = "start" | "middle" | "end";
|
|
62
|
-
export interface VictoryThemeDefinition {
|
|
63
|
-
area?: {
|
|
64
|
-
style?: {
|
|
65
|
-
data?: VictoryStyleObject;
|
|
66
|
-
labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
67
|
-
};
|
|
68
|
-
} & VictoryCommonThemeProps & VictoryDatableProps;
|
|
69
|
-
axis?: {
|
|
70
|
-
style?: {
|
|
71
|
-
axis?: VictoryStyleObject;
|
|
72
|
-
axisLabel?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
73
|
-
grid?: VictoryStyleObject;
|
|
74
|
-
ticks?: VictoryTickStyleObject;
|
|
75
|
-
tickLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
76
|
-
};
|
|
77
|
-
offsetX?: number;
|
|
78
|
-
offsetY?: number;
|
|
79
|
-
} & VictoryCommonThemeProps;
|
|
80
|
-
bar?: {
|
|
81
|
-
style?: {
|
|
82
|
-
data?: VictoryStyleObject;
|
|
83
|
-
labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
84
|
-
};
|
|
85
|
-
} & VictoryCommonThemeProps & VictoryDatableProps;
|
|
86
|
-
boxplot?: {
|
|
87
|
-
style?: {
|
|
88
|
-
max?: VictoryStyleObject;
|
|
89
|
-
maxLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
90
|
-
median?: VictoryStyleObject;
|
|
91
|
-
medianLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
92
|
-
min?: VictoryStyleObject;
|
|
93
|
-
minLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
94
|
-
q1?: VictoryStyleObject;
|
|
95
|
-
q1Labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
96
|
-
q3?: VictoryStyleObject;
|
|
97
|
-
q3Labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
98
|
-
};
|
|
99
|
-
boxWidth?: number;
|
|
100
|
-
} & VictoryCommonThemeProps;
|
|
101
|
-
candlestick?: {
|
|
102
|
-
style?: {
|
|
103
|
-
data?: VictoryStyleObject;
|
|
104
|
-
labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
105
|
-
};
|
|
106
|
-
candleColors?: {
|
|
107
|
-
positive?: string;
|
|
108
|
-
negative?: string;
|
|
109
|
-
};
|
|
110
|
-
} & VictoryCommonThemeProps;
|
|
111
|
-
chart?: VictoryCommonThemeProps;
|
|
112
|
-
dependentAxis?: {
|
|
113
|
-
style?: {
|
|
114
|
-
axis?: VictoryStyleObject;
|
|
115
|
-
axisLabel?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
116
|
-
grid?: VictoryStyleObject;
|
|
117
|
-
ticks?: VictoryTickStyleObject;
|
|
118
|
-
tickLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
119
|
-
};
|
|
120
|
-
offsetX?: number;
|
|
121
|
-
offsetY?: number;
|
|
122
|
-
orientation?: OrientationTypes;
|
|
123
|
-
} & VictoryCommonThemeProps;
|
|
124
|
-
errorbar?: {
|
|
125
|
-
borderWidth?: number;
|
|
126
|
-
style?: {
|
|
127
|
-
data?: VictoryStyleObject;
|
|
128
|
-
labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
129
|
-
};
|
|
130
|
-
} & VictoryCommonThemeProps;
|
|
131
|
-
group?: {
|
|
132
|
-
style?: {
|
|
133
|
-
data?: VictoryStyleObject;
|
|
134
|
-
labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
135
|
-
};
|
|
136
|
-
} & VictoryCommonThemeProps;
|
|
137
|
-
histogram?: {
|
|
138
|
-
style?: {
|
|
139
|
-
data?: VictoryStyleObject;
|
|
140
|
-
labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
141
|
-
};
|
|
142
|
-
} & VictoryCommonThemeProps;
|
|
143
|
-
independentAxis?: {
|
|
144
|
-
style?: {
|
|
145
|
-
axis?: VictoryStyleObject;
|
|
146
|
-
axisLabel?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
147
|
-
grid?: VictoryStyleObject;
|
|
148
|
-
ticks?: VictoryTickStyleObject;
|
|
149
|
-
tickLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
150
|
-
};
|
|
151
|
-
offsetX?: number;
|
|
152
|
-
offsetY?: number;
|
|
153
|
-
orientation?: OrientationTypes;
|
|
154
|
-
} & VictoryCommonThemeProps;
|
|
155
|
-
legend?: {
|
|
156
|
-
gutter?: number | BlockProps;
|
|
157
|
-
rowGutter?: number | BlockProps;
|
|
158
|
-
orientation?: string;
|
|
159
|
-
titleOrientation?: string;
|
|
160
|
-
style?: {
|
|
161
|
-
data?: VictoryStyleObject & {
|
|
162
|
-
type?: string;
|
|
163
|
-
};
|
|
164
|
-
border?: VictoryStyleObject;
|
|
165
|
-
labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
166
|
-
title?: VictoryLabelStyleObject;
|
|
167
|
-
};
|
|
168
|
-
itemsPerRow?: number;
|
|
169
|
-
x?: number;
|
|
170
|
-
y?: number;
|
|
171
|
-
centerTitle?: boolean;
|
|
172
|
-
borderPadding?: number | BlockProps;
|
|
173
|
-
} & VictoryCommonThemeProps;
|
|
174
|
-
line?: {
|
|
175
|
-
style?: {
|
|
176
|
-
data?: VictoryStyleObject;
|
|
177
|
-
labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
178
|
-
};
|
|
179
|
-
} & VictoryCommonThemeProps & VictoryDatableProps;
|
|
180
|
-
pie?: {
|
|
181
|
-
style?: {
|
|
182
|
-
data?: VictoryStyleObject;
|
|
183
|
-
labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
184
|
-
};
|
|
185
|
-
} & VictoryCommonThemeProps & VictoryDatableProps;
|
|
186
|
-
polarAxis?: {
|
|
187
|
-
style?: {
|
|
188
|
-
axis?: VictoryStyleObject;
|
|
189
|
-
axisLabel?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
190
|
-
grid?: VictoryStyleObject;
|
|
191
|
-
ticks?: VictoryTickStyleObject;
|
|
192
|
-
tickLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
193
|
-
};
|
|
194
|
-
} & VictoryCommonThemeProps;
|
|
195
|
-
polarDependentAxis?: {
|
|
196
|
-
style?: {
|
|
197
|
-
axis?: VictoryStyleObject;
|
|
198
|
-
axisLabel?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
199
|
-
grid?: VictoryStyleObject;
|
|
200
|
-
ticks?: VictoryTickStyleObject;
|
|
201
|
-
tickLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
202
|
-
};
|
|
203
|
-
} & VictoryCommonThemeProps;
|
|
204
|
-
polarIndependentAxis?: {
|
|
205
|
-
style?: {
|
|
206
|
-
axis?: VictoryStyleObject;
|
|
207
|
-
axisLabel?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
208
|
-
grid?: VictoryStyleObject;
|
|
209
|
-
ticks?: VictoryTickStyleObject;
|
|
210
|
-
tickLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
211
|
-
};
|
|
212
|
-
} & VictoryCommonThemeProps;
|
|
213
|
-
scatter?: {
|
|
214
|
-
style?: {
|
|
215
|
-
data?: VictoryStyleObject;
|
|
216
|
-
labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
217
|
-
};
|
|
218
|
-
} & VictoryCommonThemeProps & VictoryDatableProps;
|
|
219
|
-
stack?: VictoryCommonThemeProps;
|
|
220
|
-
tooltip?: {
|
|
221
|
-
style?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
222
|
-
flyoutStyle?: VictoryStyleObject;
|
|
223
|
-
cornerRadius?: NumberOrCallback;
|
|
224
|
-
pointerLength?: NumberOrCallback;
|
|
225
|
-
flyoutPadding?: PaddingOrCallback;
|
|
226
|
-
flyoutWidth?: NumberOrCallback;
|
|
227
|
-
flyoutHeight?: NumberOrCallback;
|
|
228
|
-
orientation?: OrientationOrCallback;
|
|
229
|
-
pointerOrientation?: OrientationOrCallback;
|
|
230
|
-
};
|
|
231
|
-
voronoi?: {
|
|
232
|
-
style?: {
|
|
233
|
-
data?: VictoryStyleObject;
|
|
234
|
-
labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
235
|
-
flyout?: VictoryStyleObject;
|
|
236
|
-
};
|
|
237
|
-
} & VictoryCommonThemeProps & VictoryDatableProps;
|
|
238
|
-
}
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { VictoryCommonThemeProps, VictoryDatableProps } from "../victory-util/common-props";
|
|
3
|
+
import { NumberOrCallback, OrientationOrCallback, PaddingOrCallback, StringOrNumberOrCallback } from "../types/callbacks";
|
|
4
|
+
export declare type BlockProps = {
|
|
5
|
+
top?: number;
|
|
6
|
+
bottom?: number;
|
|
7
|
+
left?: number;
|
|
8
|
+
right?: number;
|
|
9
|
+
};
|
|
10
|
+
export declare type PaddingProps = number | BlockProps;
|
|
11
|
+
export declare type OrientationTypes = "top" | "bottom" | "left" | "right";
|
|
12
|
+
export declare type VictoryStyleObject = {
|
|
13
|
+
[K in keyof React.CSSProperties]: StringOrNumberOrCallback;
|
|
14
|
+
};
|
|
15
|
+
export declare type LabelProps = React.CSSProperties & {
|
|
16
|
+
angle?: number;
|
|
17
|
+
verticalAnchor?: VerticalAnchorType;
|
|
18
|
+
};
|
|
19
|
+
export declare type VictoryLabelStyleObject = {
|
|
20
|
+
[K in keyof LabelProps]: StringOrNumberOrCallback;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Style interface used in components/themeing
|
|
24
|
+
*/
|
|
25
|
+
export interface VictoryStyleInterface {
|
|
26
|
+
parent?: VictoryStyleObject;
|
|
27
|
+
data?: VictoryStyleObject;
|
|
28
|
+
labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
29
|
+
border?: VictoryStyleObject;
|
|
30
|
+
}
|
|
31
|
+
export declare type TickProps = React.CSSProperties & {
|
|
32
|
+
size?: number;
|
|
33
|
+
};
|
|
34
|
+
export declare type VictoryTickStyleObject = {
|
|
35
|
+
[K in keyof TickProps]: StringOrNumberOrCallback;
|
|
36
|
+
};
|
|
37
|
+
export interface VictoryAxisCommonProps {
|
|
38
|
+
axisComponent?: React.ReactElement;
|
|
39
|
+
axisLabelComponent?: React.ReactElement;
|
|
40
|
+
axisValue?: number | string | object | Date;
|
|
41
|
+
dependentAxis?: boolean;
|
|
42
|
+
disableInlineStyles?: boolean;
|
|
43
|
+
gridComponent?: React.ReactElement;
|
|
44
|
+
invertAxis?: boolean;
|
|
45
|
+
style?: {
|
|
46
|
+
parent?: VictoryStyleObject;
|
|
47
|
+
axis?: VictoryStyleObject;
|
|
48
|
+
axisLabel?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
49
|
+
grid?: VictoryStyleObject;
|
|
50
|
+
ticks?: VictoryTickStyleObject;
|
|
51
|
+
tickLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
52
|
+
};
|
|
53
|
+
tickComponent?: React.ReactElement;
|
|
54
|
+
tickCount?: number;
|
|
55
|
+
tickLabelComponent?: React.ReactElement;
|
|
56
|
+
tickFormat?: any[] | {
|
|
57
|
+
(tick: any, index: number, ticks: any[]): string | number;
|
|
58
|
+
};
|
|
59
|
+
tickValues?: any[];
|
|
60
|
+
}
|
|
61
|
+
export declare type VerticalAnchorType = "start" | "middle" | "end";
|
|
62
|
+
export interface VictoryThemeDefinition {
|
|
63
|
+
area?: {
|
|
64
|
+
style?: {
|
|
65
|
+
data?: VictoryStyleObject;
|
|
66
|
+
labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
67
|
+
};
|
|
68
|
+
} & VictoryCommonThemeProps & VictoryDatableProps;
|
|
69
|
+
axis?: {
|
|
70
|
+
style?: {
|
|
71
|
+
axis?: VictoryStyleObject;
|
|
72
|
+
axisLabel?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
73
|
+
grid?: VictoryStyleObject;
|
|
74
|
+
ticks?: VictoryTickStyleObject;
|
|
75
|
+
tickLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
76
|
+
};
|
|
77
|
+
offsetX?: number;
|
|
78
|
+
offsetY?: number;
|
|
79
|
+
} & VictoryCommonThemeProps;
|
|
80
|
+
bar?: {
|
|
81
|
+
style?: {
|
|
82
|
+
data?: VictoryStyleObject;
|
|
83
|
+
labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
84
|
+
};
|
|
85
|
+
} & VictoryCommonThemeProps & VictoryDatableProps;
|
|
86
|
+
boxplot?: {
|
|
87
|
+
style?: {
|
|
88
|
+
max?: VictoryStyleObject;
|
|
89
|
+
maxLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
90
|
+
median?: VictoryStyleObject;
|
|
91
|
+
medianLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
92
|
+
min?: VictoryStyleObject;
|
|
93
|
+
minLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
94
|
+
q1?: VictoryStyleObject;
|
|
95
|
+
q1Labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
96
|
+
q3?: VictoryStyleObject;
|
|
97
|
+
q3Labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
98
|
+
};
|
|
99
|
+
boxWidth?: number;
|
|
100
|
+
} & VictoryCommonThemeProps;
|
|
101
|
+
candlestick?: {
|
|
102
|
+
style?: {
|
|
103
|
+
data?: VictoryStyleObject;
|
|
104
|
+
labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
105
|
+
};
|
|
106
|
+
candleColors?: {
|
|
107
|
+
positive?: string;
|
|
108
|
+
negative?: string;
|
|
109
|
+
};
|
|
110
|
+
} & VictoryCommonThemeProps;
|
|
111
|
+
chart?: VictoryCommonThemeProps;
|
|
112
|
+
dependentAxis?: {
|
|
113
|
+
style?: {
|
|
114
|
+
axis?: VictoryStyleObject;
|
|
115
|
+
axisLabel?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
116
|
+
grid?: VictoryStyleObject;
|
|
117
|
+
ticks?: VictoryTickStyleObject;
|
|
118
|
+
tickLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
119
|
+
};
|
|
120
|
+
offsetX?: number;
|
|
121
|
+
offsetY?: number;
|
|
122
|
+
orientation?: OrientationTypes;
|
|
123
|
+
} & VictoryCommonThemeProps;
|
|
124
|
+
errorbar?: {
|
|
125
|
+
borderWidth?: number;
|
|
126
|
+
style?: {
|
|
127
|
+
data?: VictoryStyleObject;
|
|
128
|
+
labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
129
|
+
};
|
|
130
|
+
} & VictoryCommonThemeProps;
|
|
131
|
+
group?: {
|
|
132
|
+
style?: {
|
|
133
|
+
data?: VictoryStyleObject;
|
|
134
|
+
labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
135
|
+
};
|
|
136
|
+
} & VictoryCommonThemeProps;
|
|
137
|
+
histogram?: {
|
|
138
|
+
style?: {
|
|
139
|
+
data?: VictoryStyleObject;
|
|
140
|
+
labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
141
|
+
};
|
|
142
|
+
} & VictoryCommonThemeProps;
|
|
143
|
+
independentAxis?: {
|
|
144
|
+
style?: {
|
|
145
|
+
axis?: VictoryStyleObject;
|
|
146
|
+
axisLabel?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
147
|
+
grid?: VictoryStyleObject;
|
|
148
|
+
ticks?: VictoryTickStyleObject;
|
|
149
|
+
tickLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
150
|
+
};
|
|
151
|
+
offsetX?: number;
|
|
152
|
+
offsetY?: number;
|
|
153
|
+
orientation?: OrientationTypes;
|
|
154
|
+
} & VictoryCommonThemeProps;
|
|
155
|
+
legend?: {
|
|
156
|
+
gutter?: number | BlockProps;
|
|
157
|
+
rowGutter?: number | BlockProps;
|
|
158
|
+
orientation?: string;
|
|
159
|
+
titleOrientation?: string;
|
|
160
|
+
style?: {
|
|
161
|
+
data?: VictoryStyleObject & {
|
|
162
|
+
type?: string;
|
|
163
|
+
};
|
|
164
|
+
border?: VictoryStyleObject;
|
|
165
|
+
labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
166
|
+
title?: VictoryLabelStyleObject;
|
|
167
|
+
};
|
|
168
|
+
itemsPerRow?: number;
|
|
169
|
+
x?: number;
|
|
170
|
+
y?: number;
|
|
171
|
+
centerTitle?: boolean;
|
|
172
|
+
borderPadding?: number | BlockProps;
|
|
173
|
+
} & VictoryCommonThemeProps;
|
|
174
|
+
line?: {
|
|
175
|
+
style?: {
|
|
176
|
+
data?: VictoryStyleObject;
|
|
177
|
+
labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
178
|
+
};
|
|
179
|
+
} & VictoryCommonThemeProps & VictoryDatableProps;
|
|
180
|
+
pie?: {
|
|
181
|
+
style?: {
|
|
182
|
+
data?: VictoryStyleObject;
|
|
183
|
+
labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
184
|
+
};
|
|
185
|
+
} & VictoryCommonThemeProps & VictoryDatableProps;
|
|
186
|
+
polarAxis?: {
|
|
187
|
+
style?: {
|
|
188
|
+
axis?: VictoryStyleObject;
|
|
189
|
+
axisLabel?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
190
|
+
grid?: VictoryStyleObject;
|
|
191
|
+
ticks?: VictoryTickStyleObject;
|
|
192
|
+
tickLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
193
|
+
};
|
|
194
|
+
} & VictoryCommonThemeProps;
|
|
195
|
+
polarDependentAxis?: {
|
|
196
|
+
style?: {
|
|
197
|
+
axis?: VictoryStyleObject;
|
|
198
|
+
axisLabel?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
199
|
+
grid?: VictoryStyleObject;
|
|
200
|
+
ticks?: VictoryTickStyleObject;
|
|
201
|
+
tickLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
202
|
+
};
|
|
203
|
+
} & VictoryCommonThemeProps;
|
|
204
|
+
polarIndependentAxis?: {
|
|
205
|
+
style?: {
|
|
206
|
+
axis?: VictoryStyleObject;
|
|
207
|
+
axisLabel?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
208
|
+
grid?: VictoryStyleObject;
|
|
209
|
+
ticks?: VictoryTickStyleObject;
|
|
210
|
+
tickLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
211
|
+
};
|
|
212
|
+
} & VictoryCommonThemeProps;
|
|
213
|
+
scatter?: {
|
|
214
|
+
style?: {
|
|
215
|
+
data?: VictoryStyleObject;
|
|
216
|
+
labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
217
|
+
};
|
|
218
|
+
} & VictoryCommonThemeProps & VictoryDatableProps;
|
|
219
|
+
stack?: VictoryCommonThemeProps;
|
|
220
|
+
tooltip?: {
|
|
221
|
+
style?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
222
|
+
flyoutStyle?: VictoryStyleObject;
|
|
223
|
+
cornerRadius?: NumberOrCallback;
|
|
224
|
+
pointerLength?: NumberOrCallback;
|
|
225
|
+
flyoutPadding?: PaddingOrCallback;
|
|
226
|
+
flyoutWidth?: NumberOrCallback;
|
|
227
|
+
flyoutHeight?: NumberOrCallback;
|
|
228
|
+
orientation?: OrientationOrCallback;
|
|
229
|
+
pointerOrientation?: OrientationOrCallback;
|
|
230
|
+
};
|
|
231
|
+
voronoi?: {
|
|
232
|
+
style?: {
|
|
233
|
+
data?: VictoryStyleObject;
|
|
234
|
+
labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
235
|
+
flyout?: VictoryStyleObject;
|
|
236
|
+
};
|
|
237
|
+
} & VictoryCommonThemeProps & VictoryDatableProps;
|
|
238
|
+
}
|
|
239
239
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from "./types";
|
|
2
|
-
export declare const VictoryTheme: {
|
|
3
|
-
grayscale: import("./types").VictoryThemeDefinition;
|
|
4
|
-
material: import("./types").VictoryThemeDefinition;
|
|
5
|
-
};
|
|
1
|
+
export * from "./types";
|
|
2
|
+
export declare const VictoryTheme: {
|
|
3
|
+
grayscale: import("./types").VictoryThemeDefinition;
|
|
4
|
+
material: import("./types").VictoryThemeDefinition;
|
|
5
|
+
};
|
|
6
6
|
//# sourceMappingURL=victory-theme.d.ts.map
|