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,47 +1,47 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BlockProps } from "../victory-theme/victory-theme";
|
|
3
|
-
import { OriginType } from "../victory-label/victory-label";
|
|
4
|
-
export interface VictoryClipContainerProps {
|
|
5
|
-
"aria-label"?: string;
|
|
6
|
-
children?: React.ReactElement | React.ReactElement[];
|
|
7
|
-
circleComponent?: React.ReactElement;
|
|
8
|
-
className?: string;
|
|
9
|
-
clipHeight?: number;
|
|
10
|
-
clipId?: number | string;
|
|
11
|
-
clipPadding?: BlockProps;
|
|
12
|
-
clipPathComponent?: React.ReactElement;
|
|
13
|
-
clipWidth?: number;
|
|
14
|
-
events?: React.DOMAttributes<any>;
|
|
15
|
-
groupComponent?: React.ReactElement;
|
|
16
|
-
origin?: OriginType;
|
|
17
|
-
polar?: boolean;
|
|
18
|
-
radius?: number;
|
|
19
|
-
rectComponent?: React.ReactElement;
|
|
20
|
-
translateX?: number;
|
|
21
|
-
translateY?: number;
|
|
22
|
-
}
|
|
23
|
-
export declare class VictoryClipContainer extends React.Component<VictoryClipContainerProps> {
|
|
24
|
-
static displayName: string;
|
|
25
|
-
static role: string;
|
|
26
|
-
static defaultProps: {
|
|
27
|
-
circleComponent: JSX.Element;
|
|
28
|
-
rectComponent: JSX.Element;
|
|
29
|
-
clipPathComponent: JSX.Element;
|
|
30
|
-
groupComponent: JSX.Element;
|
|
31
|
-
};
|
|
32
|
-
clipId: VictoryClipContainerProps["clipId"];
|
|
33
|
-
constructor(props: VictoryClipContainerProps);
|
|
34
|
-
calculateAttributes(props: any): {
|
|
35
|
-
x: number;
|
|
36
|
-
y: number;
|
|
37
|
-
width: number;
|
|
38
|
-
height: number;
|
|
39
|
-
};
|
|
40
|
-
renderClippedGroup(props: any, clipId: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
41
|
-
renderGroup(props: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
42
|
-
renderClipComponent(props: any, clipId: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
43
|
-
getClipValue(props: any, axis: any): any;
|
|
44
|
-
getTranslateValue(props: any, axis: any): any;
|
|
45
|
-
render(): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
46
|
-
}
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { BlockProps } from "../victory-theme/victory-theme";
|
|
3
|
+
import { OriginType } from "../victory-label/victory-label";
|
|
4
|
+
export interface VictoryClipContainerProps {
|
|
5
|
+
"aria-label"?: string;
|
|
6
|
+
children?: React.ReactElement | React.ReactElement[];
|
|
7
|
+
circleComponent?: React.ReactElement;
|
|
8
|
+
className?: string;
|
|
9
|
+
clipHeight?: number;
|
|
10
|
+
clipId?: number | string;
|
|
11
|
+
clipPadding?: BlockProps;
|
|
12
|
+
clipPathComponent?: React.ReactElement;
|
|
13
|
+
clipWidth?: number;
|
|
14
|
+
events?: React.DOMAttributes<any>;
|
|
15
|
+
groupComponent?: React.ReactElement;
|
|
16
|
+
origin?: OriginType;
|
|
17
|
+
polar?: boolean;
|
|
18
|
+
radius?: number;
|
|
19
|
+
rectComponent?: React.ReactElement;
|
|
20
|
+
translateX?: number;
|
|
21
|
+
translateY?: number;
|
|
22
|
+
}
|
|
23
|
+
export declare class VictoryClipContainer extends React.Component<VictoryClipContainerProps> {
|
|
24
|
+
static displayName: string;
|
|
25
|
+
static role: string;
|
|
26
|
+
static defaultProps: {
|
|
27
|
+
circleComponent: JSX.Element;
|
|
28
|
+
rectComponent: JSX.Element;
|
|
29
|
+
clipPathComponent: JSX.Element;
|
|
30
|
+
groupComponent: JSX.Element;
|
|
31
|
+
};
|
|
32
|
+
clipId: VictoryClipContainerProps["clipId"];
|
|
33
|
+
constructor(props: VictoryClipContainerProps);
|
|
34
|
+
calculateAttributes(props: any): {
|
|
35
|
+
x: number;
|
|
36
|
+
y: number;
|
|
37
|
+
width: number;
|
|
38
|
+
height: number;
|
|
39
|
+
};
|
|
40
|
+
renderClippedGroup(props: any, clipId: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
41
|
+
renderGroup(props: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
42
|
+
renderClipComponent(props: any, clipId: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
43
|
+
getClipValue(props: any, axis: any): any;
|
|
44
|
+
getTranslateValue(props: any, axis: any): any;
|
|
45
|
+
render(): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
46
|
+
}
|
|
47
47
|
//# sourceMappingURL=victory-clip-container.d.ts.map
|
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { OriginType } from "../victory-label/victory-label";
|
|
3
|
-
import { D3Scale } from "../types/prop-types";
|
|
4
|
-
import { VictoryThemeDefinition } from "../victory-theme/types";
|
|
5
|
-
export interface VictoryContainerProps {
|
|
6
|
-
"aria-describedby"?: string;
|
|
7
|
-
"aria-labelledby"?: string;
|
|
8
|
-
children?: React.ReactElement | React.ReactElement[];
|
|
9
|
-
className?: string;
|
|
10
|
-
containerId?: number | string;
|
|
11
|
-
containerRef?: React.Ref<HTMLElement>;
|
|
12
|
-
desc?: string;
|
|
13
|
-
events?: React.DOMAttributes<any>;
|
|
14
|
-
height?: number;
|
|
15
|
-
name?: string;
|
|
16
|
-
origin?: OriginType;
|
|
17
|
-
ouiaId?: number | string;
|
|
18
|
-
ouiaSafe?: boolean;
|
|
19
|
-
ouiaType?: string;
|
|
20
|
-
polar?: boolean;
|
|
21
|
-
portalComponent?: React.ReactElement;
|
|
22
|
-
portalZIndex?: number;
|
|
23
|
-
preserveAspectRatio?: string;
|
|
24
|
-
responsive?: boolean;
|
|
25
|
-
role?: string;
|
|
26
|
-
scale?: {
|
|
27
|
-
x?: D3Scale;
|
|
28
|
-
y?: D3Scale;
|
|
29
|
-
};
|
|
30
|
-
style?: React.CSSProperties;
|
|
31
|
-
tabIndex?: number;
|
|
32
|
-
theme?: VictoryThemeDefinition;
|
|
33
|
-
title?: string;
|
|
34
|
-
width?: number;
|
|
35
|
-
}
|
|
36
|
-
export declare class VictoryContainer<TProps extends VictoryContainerProps> extends React.Component<TProps> {
|
|
37
|
-
static displayName: string;
|
|
38
|
-
static role: string;
|
|
39
|
-
static defaultProps: {
|
|
40
|
-
className: string;
|
|
41
|
-
portalComponent: JSX.Element;
|
|
42
|
-
portalZIndex: number;
|
|
43
|
-
responsive: boolean;
|
|
44
|
-
role: string;
|
|
45
|
-
};
|
|
46
|
-
static contextType: React.Context<{
|
|
47
|
-
transitionTimer: import("..").Timer;
|
|
48
|
-
animationTimer: import("..").Timer;
|
|
49
|
-
}>;
|
|
50
|
-
private containerId;
|
|
51
|
-
private portalRef;
|
|
52
|
-
private containerRef;
|
|
53
|
-
private shouldHandleWheel;
|
|
54
|
-
constructor(props: TProps);
|
|
55
|
-
savePortalRef: (portal: any) => any;
|
|
56
|
-
portalUpdate: (key: any, el: any) => void;
|
|
57
|
-
portalRegister: () => number;
|
|
58
|
-
portalDeregister: (key: any) => void;
|
|
59
|
-
saveContainerRef: (container: HTMLElement) => HTMLElement;
|
|
60
|
-
handleWheel: (e: any) => any;
|
|
61
|
-
componentDidMount(): void;
|
|
62
|
-
componentWillUnmount(): void;
|
|
63
|
-
getIdForElement(elementName: any): string;
|
|
64
|
-
getChildren(props: any): any;
|
|
65
|
-
getOUIAProps(props: any): any;
|
|
66
|
-
renderContainer(props: any, svgProps: any, style: any): JSX.Element;
|
|
67
|
-
render(): JSX.Element;
|
|
68
|
-
}
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { OriginType } from "../victory-label/victory-label";
|
|
3
|
+
import { D3Scale } from "../types/prop-types";
|
|
4
|
+
import { VictoryThemeDefinition } from "../victory-theme/types";
|
|
5
|
+
export interface VictoryContainerProps {
|
|
6
|
+
"aria-describedby"?: string;
|
|
7
|
+
"aria-labelledby"?: string;
|
|
8
|
+
children?: React.ReactElement | React.ReactElement[];
|
|
9
|
+
className?: string;
|
|
10
|
+
containerId?: number | string;
|
|
11
|
+
containerRef?: React.Ref<HTMLElement>;
|
|
12
|
+
desc?: string;
|
|
13
|
+
events?: React.DOMAttributes<any>;
|
|
14
|
+
height?: number;
|
|
15
|
+
name?: string;
|
|
16
|
+
origin?: OriginType;
|
|
17
|
+
ouiaId?: number | string;
|
|
18
|
+
ouiaSafe?: boolean;
|
|
19
|
+
ouiaType?: string;
|
|
20
|
+
polar?: boolean;
|
|
21
|
+
portalComponent?: React.ReactElement;
|
|
22
|
+
portalZIndex?: number;
|
|
23
|
+
preserveAspectRatio?: string;
|
|
24
|
+
responsive?: boolean;
|
|
25
|
+
role?: string;
|
|
26
|
+
scale?: {
|
|
27
|
+
x?: D3Scale;
|
|
28
|
+
y?: D3Scale;
|
|
29
|
+
};
|
|
30
|
+
style?: React.CSSProperties;
|
|
31
|
+
tabIndex?: number;
|
|
32
|
+
theme?: VictoryThemeDefinition;
|
|
33
|
+
title?: string;
|
|
34
|
+
width?: number;
|
|
35
|
+
}
|
|
36
|
+
export declare class VictoryContainer<TProps extends VictoryContainerProps> extends React.Component<TProps> {
|
|
37
|
+
static displayName: string;
|
|
38
|
+
static role: string;
|
|
39
|
+
static defaultProps: {
|
|
40
|
+
className: string;
|
|
41
|
+
portalComponent: JSX.Element;
|
|
42
|
+
portalZIndex: number;
|
|
43
|
+
responsive: boolean;
|
|
44
|
+
role: string;
|
|
45
|
+
};
|
|
46
|
+
static contextType: React.Context<{
|
|
47
|
+
transitionTimer: import("..").Timer;
|
|
48
|
+
animationTimer: import("..").Timer;
|
|
49
|
+
}>;
|
|
50
|
+
private containerId;
|
|
51
|
+
private portalRef;
|
|
52
|
+
private containerRef;
|
|
53
|
+
private shouldHandleWheel;
|
|
54
|
+
constructor(props: TProps);
|
|
55
|
+
savePortalRef: (portal: any) => any;
|
|
56
|
+
portalUpdate: (key: any, el: any) => void;
|
|
57
|
+
portalRegister: () => number;
|
|
58
|
+
portalDeregister: (key: any) => void;
|
|
59
|
+
saveContainerRef: (container: HTMLElement) => HTMLElement;
|
|
60
|
+
handleWheel: (e: any) => any;
|
|
61
|
+
componentDidMount(): void;
|
|
62
|
+
componentWillUnmount(): void;
|
|
63
|
+
getIdForElement(elementName: any): string;
|
|
64
|
+
getChildren(props: any): any;
|
|
65
|
+
getOUIAProps(props: any): any;
|
|
66
|
+
renderContainer(props: any, svgProps: any, style: any): JSX.Element;
|
|
67
|
+
render(): JSX.Element;
|
|
68
|
+
}
|
|
69
69
|
//# sourceMappingURL=victory-container.d.ts.map
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { NumberOrCallback, StringOrCallback, StringOrNumberOrCallback } from "../types/callbacks";
|
|
3
|
-
import { ValueOrAccessor } from "../types/prop-types";
|
|
4
|
-
import { PaddingProps, VerticalAnchorType, VictoryLabelStyleObject } from "../victory-theme/victory-theme";
|
|
5
|
-
export declare type TextAnchorType = "start" | "middle" | "end" | "inherit";
|
|
6
|
-
export declare type OriginType = {
|
|
7
|
-
x: number;
|
|
8
|
-
y: number;
|
|
9
|
-
};
|
|
10
|
-
export declare type LabelOrientationType = "parallel" | "perpendicular" | "vertical";
|
|
11
|
-
export interface VictoryLabelProps {
|
|
12
|
-
angle?: StringOrNumberOrCallback;
|
|
13
|
-
ariaLabel?: StringOrCallback;
|
|
14
|
-
backgroundComponent?: React.ReactElement;
|
|
15
|
-
backgroundStyle?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
16
|
-
backgroundPadding?: PaddingProps | PaddingProps[];
|
|
17
|
-
capHeight?: StringOrNumberOrCallback;
|
|
18
|
-
children?: StringOrNumberOrCallback;
|
|
19
|
-
className?: string;
|
|
20
|
-
datum?: Record<string, any>;
|
|
21
|
-
data?: any[];
|
|
22
|
-
desc?: string;
|
|
23
|
-
direction?: string;
|
|
24
|
-
disableInlineStyles?: boolean;
|
|
25
|
-
events?: React.DOMAttributes<any>;
|
|
26
|
-
groupComponent?: React.ReactElement;
|
|
27
|
-
id?: StringOrNumberOrCallback;
|
|
28
|
-
inline?: boolean;
|
|
29
|
-
labelPlacement?: LabelOrientationType;
|
|
30
|
-
lineHeight?: StringOrNumberOrCallback | (string | number)[];
|
|
31
|
-
origin?: OriginType;
|
|
32
|
-
polar?: boolean;
|
|
33
|
-
renderInPortal?: boolean;
|
|
34
|
-
style?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
35
|
-
tabIndex?: NumberOrCallback;
|
|
36
|
-
text?: string[] | StringOrNumberOrCallback;
|
|
37
|
-
textComponent?: React.ReactElement;
|
|
38
|
-
textAnchor?: ValueOrAccessor<TextAnchorType>;
|
|
39
|
-
title?: string;
|
|
40
|
-
transform?: ValueOrAccessor<string | object>;
|
|
41
|
-
tspanComponent?: React.ReactElement;
|
|
42
|
-
verticalAnchor?: ValueOrAccessor<VerticalAnchorType>;
|
|
43
|
-
x?: number;
|
|
44
|
-
y?: number;
|
|
45
|
-
dx?: StringOrNumberOrCallback;
|
|
46
|
-
dy?: StringOrNumberOrCallback;
|
|
47
|
-
}
|
|
48
|
-
declare const defaultStyles: {
|
|
49
|
-
fill: string;
|
|
50
|
-
fontSize: number;
|
|
51
|
-
fontFamily: string;
|
|
52
|
-
stroke: string;
|
|
53
|
-
};
|
|
54
|
-
export declare const VictoryLabel: {
|
|
55
|
-
role: string;
|
|
56
|
-
defaultStyles: typeof defaultStyles;
|
|
57
|
-
} & React.FC<VictoryLabelProps>;
|
|
58
|
-
export {};
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { NumberOrCallback, StringOrCallback, StringOrNumberOrCallback } from "../types/callbacks";
|
|
3
|
+
import { ValueOrAccessor } from "../types/prop-types";
|
|
4
|
+
import { PaddingProps, VerticalAnchorType, VictoryLabelStyleObject } from "../victory-theme/victory-theme";
|
|
5
|
+
export declare type TextAnchorType = "start" | "middle" | "end" | "inherit";
|
|
6
|
+
export declare type OriginType = {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
};
|
|
10
|
+
export declare type LabelOrientationType = "parallel" | "perpendicular" | "vertical";
|
|
11
|
+
export interface VictoryLabelProps {
|
|
12
|
+
angle?: StringOrNumberOrCallback;
|
|
13
|
+
ariaLabel?: StringOrCallback;
|
|
14
|
+
backgroundComponent?: React.ReactElement;
|
|
15
|
+
backgroundStyle?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
16
|
+
backgroundPadding?: PaddingProps | PaddingProps[];
|
|
17
|
+
capHeight?: StringOrNumberOrCallback;
|
|
18
|
+
children?: StringOrNumberOrCallback;
|
|
19
|
+
className?: string;
|
|
20
|
+
datum?: Record<string, any>;
|
|
21
|
+
data?: any[];
|
|
22
|
+
desc?: string;
|
|
23
|
+
direction?: string;
|
|
24
|
+
disableInlineStyles?: boolean;
|
|
25
|
+
events?: React.DOMAttributes<any>;
|
|
26
|
+
groupComponent?: React.ReactElement;
|
|
27
|
+
id?: StringOrNumberOrCallback;
|
|
28
|
+
inline?: boolean;
|
|
29
|
+
labelPlacement?: LabelOrientationType;
|
|
30
|
+
lineHeight?: StringOrNumberOrCallback | (string | number)[];
|
|
31
|
+
origin?: OriginType;
|
|
32
|
+
polar?: boolean;
|
|
33
|
+
renderInPortal?: boolean;
|
|
34
|
+
style?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
35
|
+
tabIndex?: NumberOrCallback;
|
|
36
|
+
text?: string[] | StringOrNumberOrCallback;
|
|
37
|
+
textComponent?: React.ReactElement;
|
|
38
|
+
textAnchor?: ValueOrAccessor<TextAnchorType>;
|
|
39
|
+
title?: string;
|
|
40
|
+
transform?: ValueOrAccessor<string | object>;
|
|
41
|
+
tspanComponent?: React.ReactElement;
|
|
42
|
+
verticalAnchor?: ValueOrAccessor<VerticalAnchorType>;
|
|
43
|
+
x?: number;
|
|
44
|
+
y?: number;
|
|
45
|
+
dx?: StringOrNumberOrCallback;
|
|
46
|
+
dy?: StringOrNumberOrCallback;
|
|
47
|
+
}
|
|
48
|
+
declare const defaultStyles: {
|
|
49
|
+
fill: string;
|
|
50
|
+
fontSize: number;
|
|
51
|
+
fontFamily: string;
|
|
52
|
+
stroke: string;
|
|
53
|
+
};
|
|
54
|
+
export declare const VictoryLabel: {
|
|
55
|
+
role: string;
|
|
56
|
+
defaultStyles: typeof defaultStyles;
|
|
57
|
+
} & React.FC<VictoryLabelProps>;
|
|
58
|
+
export {};
|
|
59
59
|
//# sourceMappingURL=victory-label.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface PortalContextValue {
|
|
3
|
-
portalRegister(): number;
|
|
4
|
-
portalUpdate(key: number, element: React.ReactElement): void;
|
|
5
|
-
portalDeregister(key: number): void;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* The React context object consumers may use to access the context of the
|
|
9
|
-
* portal.
|
|
10
|
-
*/
|
|
11
|
-
export declare const PortalContext: React.Context<PortalContextValue>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface PortalContextValue {
|
|
3
|
+
portalRegister(): number;
|
|
4
|
+
portalUpdate(key: number, element: React.ReactElement): void;
|
|
5
|
+
portalDeregister(key: number): void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The React context object consumers may use to access the context of the
|
|
9
|
+
* portal.
|
|
10
|
+
*/
|
|
11
|
+
export declare const PortalContext: React.Context<PortalContextValue>;
|
|
12
12
|
//# sourceMappingURL=portal-context.d.ts.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { PortalContextValue } from "./portal-context";
|
|
3
|
-
export interface PortalProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
height?: number;
|
|
6
|
-
style?: React.CSSProperties;
|
|
7
|
-
viewBox?: string;
|
|
8
|
-
width?: number;
|
|
9
|
-
}
|
|
10
|
-
export declare class Portal extends React.Component<PortalProps> implements PortalContextValue {
|
|
11
|
-
static displayName: string;
|
|
12
|
-
private readonly map;
|
|
13
|
-
private index;
|
|
14
|
-
constructor(props: PortalProps);
|
|
15
|
-
portalRegister: () => number;
|
|
16
|
-
portalUpdate: (key: number, element: React.ReactElement) => void;
|
|
17
|
-
portalDeregister: (key: number) => void;
|
|
18
|
-
getChildren(): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
19
|
-
render(): JSX.Element;
|
|
20
|
-
}
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { PortalContextValue } from "./portal-context";
|
|
3
|
+
export interface PortalProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
height?: number;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
viewBox?: string;
|
|
8
|
+
width?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare class Portal extends React.Component<PortalProps> implements PortalContextValue {
|
|
11
|
+
static displayName: string;
|
|
12
|
+
private readonly map;
|
|
13
|
+
private index;
|
|
14
|
+
constructor(props: PortalProps);
|
|
15
|
+
portalRegister: () => number;
|
|
16
|
+
portalUpdate: (key: number, element: React.ReactElement) => void;
|
|
17
|
+
portalDeregister: (key: number) => void;
|
|
18
|
+
getChildren(): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
19
|
+
render(): JSX.Element;
|
|
20
|
+
}
|
|
21
21
|
//# sourceMappingURL=portal.d.ts.map
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { PortalContext } from "./portal-context";
|
|
3
|
-
export interface VictoryPortalProps {
|
|
4
|
-
children?: React.ReactElement;
|
|
5
|
-
groupComponent?: React.ReactElement;
|
|
6
|
-
}
|
|
7
|
-
export interface VictoryPortal {
|
|
8
|
-
context: React.ContextType<typeof PortalContext>;
|
|
9
|
-
}
|
|
10
|
-
export declare class VictoryPortal extends React.Component<VictoryPortalProps> {
|
|
11
|
-
static displayName: string;
|
|
12
|
-
static role: string;
|
|
13
|
-
static defaultProps: {
|
|
14
|
-
groupComponent: JSX.Element;
|
|
15
|
-
};
|
|
16
|
-
static contextType: React.Context<import("./portal-context").PortalContextValue>;
|
|
17
|
-
private checkedContext;
|
|
18
|
-
private portalKey;
|
|
19
|
-
renderInPlace: boolean;
|
|
20
|
-
element: React.ReactElement;
|
|
21
|
-
componentDidMount(): void;
|
|
22
|
-
componentDidUpdate(): void;
|
|
23
|
-
componentWillUnmount(): void;
|
|
24
|
-
renderPortal(child: React.ReactElement): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
25
|
-
render(): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
26
|
-
}
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { PortalContext } from "./portal-context";
|
|
3
|
+
export interface VictoryPortalProps {
|
|
4
|
+
children?: React.ReactElement;
|
|
5
|
+
groupComponent?: React.ReactElement;
|
|
6
|
+
}
|
|
7
|
+
export interface VictoryPortal {
|
|
8
|
+
context: React.ContextType<typeof PortalContext>;
|
|
9
|
+
}
|
|
10
|
+
export declare class VictoryPortal extends React.Component<VictoryPortalProps> {
|
|
11
|
+
static displayName: string;
|
|
12
|
+
static role: string;
|
|
13
|
+
static defaultProps: {
|
|
14
|
+
groupComponent: JSX.Element;
|
|
15
|
+
};
|
|
16
|
+
static contextType: React.Context<import("./portal-context").PortalContextValue>;
|
|
17
|
+
private checkedContext;
|
|
18
|
+
private portalKey;
|
|
19
|
+
renderInPlace: boolean;
|
|
20
|
+
element: React.ReactElement;
|
|
21
|
+
componentDidMount(): void;
|
|
22
|
+
componentDidUpdate(): void;
|
|
23
|
+
componentWillUnmount(): void;
|
|
24
|
+
renderPortal(child: React.ReactElement): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
25
|
+
render(): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
26
|
+
}
|
|
27
27
|
//# sourceMappingURL=victory-portal.d.ts.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
3
|
-
export interface ArcProps extends VictoryCommonPrimitiveProps {
|
|
4
|
-
closedPath?: boolean;
|
|
5
|
-
cx?: number;
|
|
6
|
-
cy?: number;
|
|
7
|
-
datum?: any;
|
|
8
|
-
endAngle?: number;
|
|
9
|
-
pathComponent?: React.ReactElement;
|
|
10
|
-
r?: number;
|
|
11
|
-
startAngle?: number;
|
|
12
|
-
type?: string;
|
|
13
|
-
}
|
|
14
|
-
export declare const Arc: (initialProps: ArcProps) => React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
3
|
+
export interface ArcProps extends VictoryCommonPrimitiveProps {
|
|
4
|
+
closedPath?: boolean;
|
|
5
|
+
cx?: number;
|
|
6
|
+
cy?: number;
|
|
7
|
+
datum?: any;
|
|
8
|
+
endAngle?: number;
|
|
9
|
+
pathComponent?: React.ReactElement;
|
|
10
|
+
r?: number;
|
|
11
|
+
startAngle?: number;
|
|
12
|
+
type?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const Arc: (initialProps: ArcProps) => React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
15
15
|
//# sourceMappingURL=arc.d.ts.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
3
|
-
export interface BackgroundProps extends VictoryCommonPrimitiveProps {
|
|
4
|
-
circleComponent?: React.ReactElement;
|
|
5
|
-
height?: number;
|
|
6
|
-
rectComponent?: React.ReactElement;
|
|
7
|
-
rx?: number;
|
|
8
|
-
ry?: number;
|
|
9
|
-
width?: number;
|
|
10
|
-
x?: number;
|
|
11
|
-
y?: number;
|
|
12
|
-
}
|
|
13
|
-
export declare const Background: (initialProps: BackgroundProps) => React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
3
|
+
export interface BackgroundProps extends VictoryCommonPrimitiveProps {
|
|
4
|
+
circleComponent?: React.ReactElement;
|
|
5
|
+
height?: number;
|
|
6
|
+
rectComponent?: React.ReactElement;
|
|
7
|
+
rx?: number;
|
|
8
|
+
ry?: number;
|
|
9
|
+
width?: number;
|
|
10
|
+
x?: number;
|
|
11
|
+
y?: number;
|
|
12
|
+
}
|
|
13
|
+
export declare const Background: (initialProps: BackgroundProps) => React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
14
14
|
//# sourceMappingURL=background.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
3
|
-
export interface BorderProps extends VictoryCommonPrimitiveProps {
|
|
4
|
-
width?: number;
|
|
5
|
-
height?: number;
|
|
6
|
-
rectComponent?: React.ReactElement;
|
|
7
|
-
x?: number;
|
|
8
|
-
y?: number;
|
|
9
|
-
}
|
|
10
|
-
export declare const Border: (initialProps: BorderProps) => React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
3
|
+
export interface BorderProps extends VictoryCommonPrimitiveProps {
|
|
4
|
+
width?: number;
|
|
5
|
+
height?: number;
|
|
6
|
+
rectComponent?: React.ReactElement;
|
|
7
|
+
x?: number;
|
|
8
|
+
y?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const Border: (initialProps: BorderProps) => React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
11
11
|
//# sourceMappingURL=border.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { VictoryPrimitiveShapeProps } from "./types";
|
|
3
|
-
export declare const Circle: React.ForwardRefExoticComponent<VictoryPrimitiveShapeProps & React.RefAttributes<SVGCircleElement>>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { VictoryPrimitiveShapeProps } from "./types";
|
|
3
|
+
export declare const Circle: React.ForwardRefExoticComponent<VictoryPrimitiveShapeProps & React.RefAttributes<SVGCircleElement>>;
|
|
4
4
|
//# sourceMappingURL=circle.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
3
|
-
export interface ClipPathProps extends VictoryCommonPrimitiveProps {
|
|
4
|
-
children?: React.ReactNode[] | React.ReactNode;
|
|
5
|
-
clipId?: number | string;
|
|
6
|
-
}
|
|
7
|
-
export declare const ClipPath: (props: ClipPathProps) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
3
|
+
export interface ClipPathProps extends VictoryCommonPrimitiveProps {
|
|
4
|
+
children?: React.ReactNode[] | React.ReactNode;
|
|
5
|
+
clipId?: number | string;
|
|
6
|
+
}
|
|
7
|
+
export declare const ClipPath: (props: ClipPathProps) => JSX.Element;
|
|
8
8
|
//# sourceMappingURL=clip-path.d.ts.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export * from "./arc";
|
|
2
|
-
export * from "./background";
|
|
3
|
-
export * from "./border";
|
|
4
|
-
export * from "./circle";
|
|
5
|
-
export * from "./clip-path";
|
|
6
|
-
export * from "./line";
|
|
7
|
-
export * from "./line-segment";
|
|
8
|
-
export * from "./path";
|
|
9
|
-
export * from "./point";
|
|
10
|
-
export * from "./rect";
|
|
11
|
-
export * from "./text";
|
|
12
|
-
export * from "./tspan";
|
|
13
|
-
export * from "./types";
|
|
14
|
-
export * from "./whisker";
|
|
1
|
+
export * from "./arc";
|
|
2
|
+
export * from "./background";
|
|
3
|
+
export * from "./border";
|
|
4
|
+
export * from "./circle";
|
|
5
|
+
export * from "./clip-path";
|
|
6
|
+
export * from "./line";
|
|
7
|
+
export * from "./line-segment";
|
|
8
|
+
export * from "./path";
|
|
9
|
+
export * from "./point";
|
|
10
|
+
export * from "./rect";
|
|
11
|
+
export * from "./text";
|
|
12
|
+
export * from "./tspan";
|
|
13
|
+
export * from "./types";
|
|
14
|
+
export * from "./whisker";
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
3
|
-
export interface LineSegmentProps extends VictoryCommonPrimitiveProps {
|
|
4
|
-
datum?: any;
|
|
5
|
-
lineComponent?: React.ReactElement;
|
|
6
|
-
x1?: number;
|
|
7
|
-
x2?: number;
|
|
8
|
-
y1?: number;
|
|
9
|
-
y2?: number;
|
|
10
|
-
}
|
|
11
|
-
export declare const LineSegment: (initialProps: LineSegmentProps) => React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
3
|
+
export interface LineSegmentProps extends VictoryCommonPrimitiveProps {
|
|
4
|
+
datum?: any;
|
|
5
|
+
lineComponent?: React.ReactElement;
|
|
6
|
+
x1?: number;
|
|
7
|
+
x2?: number;
|
|
8
|
+
y1?: number;
|
|
9
|
+
y2?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const LineSegment: (initialProps: LineSegmentProps) => React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
12
12
|
//# sourceMappingURL=line-segment.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { VictoryPrimitiveShapeProps } from "./types";
|
|
3
|
-
export declare const Line: React.ForwardRefExoticComponent<VictoryPrimitiveShapeProps & React.RefAttributes<SVGLineElement>>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { VictoryPrimitiveShapeProps } from "./types";
|
|
3
|
+
export declare const Line: React.ForwardRefExoticComponent<VictoryPrimitiveShapeProps & React.RefAttributes<SVGLineElement>>;
|
|
4
4
|
//# sourceMappingURL=line.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { VictoryPrimitiveShapeProps } from "./types";
|
|
3
|
-
export declare const Path: React.ForwardRefExoticComponent<VictoryPrimitiveShapeProps & React.RefAttributes<SVGPathElement>>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { VictoryPrimitiveShapeProps } from "./types";
|
|
3
|
+
export declare const Path: React.ForwardRefExoticComponent<VictoryPrimitiveShapeProps & React.RefAttributes<SVGPathElement>>;
|
|
4
4
|
//# sourceMappingURL=path.d.ts.map
|