victory-tooltip 36.9.2-next.1 → 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 +1 -12
- package/LICENSE.txt +30 -0
- package/README.md +2 -2
- package/dist/victory-tooltip.js +114 -30608
- package/dist/victory-tooltip.min.js +1 -2
- package/es/flyout.d.ts +30 -30
- package/es/index.d.ts +2 -2
- package/es/victory-tooltip.d.ts +137 -137
- package/lib/flyout.d.ts +30 -30
- package/lib/index.d.ts +2 -2
- package/lib/victory-tooltip.d.ts +137 -137
- package/package.json +6 -3
- package/dist/victory-tooltip.min.js.LICENSE.txt +0 -19
package/lib/victory-tooltip.d.ts
CHANGED
|
@@ -1,138 +1,138 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { VictoryLabelableProps, VictoryLabelProps, VictoryLabelStyleObject, NumberOrCallback, PaddingOrCallback, VictoryStyleObject, OrientationTypes, VictoryThemeDefinition } from "victory-core";
|
|
3
|
-
export interface VictoryTooltipProps extends VictoryLabelableProps, VictoryLabelProps {
|
|
4
|
-
activateData?: boolean;
|
|
5
|
-
active?: boolean;
|
|
6
|
-
activePoints?: any[];
|
|
7
|
-
angle?: number;
|
|
8
|
-
center?: {
|
|
9
|
-
x?: number;
|
|
10
|
-
y?: number;
|
|
11
|
-
};
|
|
12
|
-
centerOffset?: {
|
|
13
|
-
x?: NumberOrCallback;
|
|
14
|
-
y?: NumberOrCallback;
|
|
15
|
-
};
|
|
16
|
-
constrainToVisibleArea?: boolean;
|
|
17
|
-
cornerRadius?: NumberOrCallback;
|
|
18
|
-
events?: any;
|
|
19
|
-
height?: number;
|
|
20
|
-
horizontal?: boolean;
|
|
21
|
-
flyoutComponent?: React.ReactElement;
|
|
22
|
-
flyoutHeight?: NumberOrCallback;
|
|
23
|
-
flyoutPadding?: PaddingOrCallback;
|
|
24
|
-
flyoutStyle?: VictoryStyleObject;
|
|
25
|
-
flyoutWidth?: NumberOrCallback;
|
|
26
|
-
id?: number | string;
|
|
27
|
-
index?: number | string;
|
|
28
|
-
orientation?: OrientationTypes | ((...args: any[]) => OrientationTypes);
|
|
29
|
-
pointerLength?: NumberOrCallback;
|
|
30
|
-
pointerOrientation?: OrientationTypes | ((...args: any[]) => OrientationTypes);
|
|
31
|
-
pointerWidth?: NumberOrCallback;
|
|
32
|
-
style?: (VictoryLabelStyleObject & {
|
|
33
|
-
angle?: number;
|
|
34
|
-
}) | VictoryLabelStyleObject[];
|
|
35
|
-
theme?: VictoryThemeDefinition;
|
|
36
|
-
width?: number;
|
|
37
|
-
}
|
|
38
|
-
declare type InternalEvaluatedProps = VictoryTooltipProps & {
|
|
39
|
-
centerOffset: {
|
|
40
|
-
x: number;
|
|
41
|
-
y: number;
|
|
42
|
-
};
|
|
43
|
-
cornerRadius?: number;
|
|
44
|
-
dx?: string | number;
|
|
45
|
-
dy?: string | number;
|
|
46
|
-
flyoutHeight: number;
|
|
47
|
-
flyoutPadding: {
|
|
48
|
-
top: number;
|
|
49
|
-
bottom: number;
|
|
50
|
-
left: number;
|
|
51
|
-
right: number;
|
|
52
|
-
};
|
|
53
|
-
flyoutWidth: number;
|
|
54
|
-
orientation: OrientationTypes;
|
|
55
|
-
pointerLength?: number;
|
|
56
|
-
pointerWidth?: number;
|
|
57
|
-
style: any;
|
|
58
|
-
text: string | string[];
|
|
59
|
-
};
|
|
60
|
-
declare type EventHandlers = Record<string, (props?: any) => {
|
|
61
|
-
target: string;
|
|
62
|
-
mutation: () => {
|
|
63
|
-
active?: boolean | undefined;
|
|
64
|
-
};
|
|
65
|
-
}[]>;
|
|
66
|
-
export declare class VictoryTooltip extends React.Component<VictoryTooltipProps> {
|
|
67
|
-
static displayName: string;
|
|
68
|
-
static role: string;
|
|
69
|
-
static defaultProps: {
|
|
70
|
-
active: boolean;
|
|
71
|
-
renderInPortal: boolean;
|
|
72
|
-
labelComponent: JSX.Element;
|
|
73
|
-
flyoutComponent: JSX.Element;
|
|
74
|
-
groupComponent: JSX.Element;
|
|
75
|
-
};
|
|
76
|
-
static defaultEvents: (props: VictoryTooltipProps) => {
|
|
77
|
-
target: string;
|
|
78
|
-
eventHandlers: EventHandlers;
|
|
79
|
-
}[];
|
|
80
|
-
id: string | number;
|
|
81
|
-
constructor(props: VictoryTooltipProps);
|
|
82
|
-
getDefaultOrientation(props: VictoryTooltipProps): OrientationTypes;
|
|
83
|
-
getPolarOrientation(props: VictoryTooltipProps): OrientationTypes;
|
|
84
|
-
getVerticalOrientations(degrees: number): OrientationTypes;
|
|
85
|
-
getStyles(props: any): {
|
|
86
|
-
style: any;
|
|
87
|
-
flyoutStyle: any;
|
|
88
|
-
};
|
|
89
|
-
getEvaluatedProps(props: VictoryTooltipProps): InternalEvaluatedProps;
|
|
90
|
-
getCalculatedValues(props: InternalEvaluatedProps): {
|
|
91
|
-
style: any;
|
|
92
|
-
flyoutStyle?: VictoryStyleObject;
|
|
93
|
-
labelSize: {
|
|
94
|
-
width: number;
|
|
95
|
-
height: number;
|
|
96
|
-
};
|
|
97
|
-
flyoutDimensions: {
|
|
98
|
-
height: number;
|
|
99
|
-
width: number;
|
|
100
|
-
};
|
|
101
|
-
flyoutCenter: {
|
|
102
|
-
x: number;
|
|
103
|
-
y: number;
|
|
104
|
-
};
|
|
105
|
-
transform?: string;
|
|
106
|
-
};
|
|
107
|
-
getTransform(props: any): string | undefined;
|
|
108
|
-
getDefaultAngle(props: any): number;
|
|
109
|
-
constrainTooltip(center: any, props: any, dimensions: any): {
|
|
110
|
-
x: number;
|
|
111
|
-
y: number;
|
|
112
|
-
};
|
|
113
|
-
getFlyoutCenter(props: any, dimensions: any): {
|
|
114
|
-
x: any;
|
|
115
|
-
y: any;
|
|
116
|
-
};
|
|
117
|
-
getLabelPadding(style: any): number;
|
|
118
|
-
getDimensions(props: any, labelSize: any): {
|
|
119
|
-
flyoutHeight: any;
|
|
120
|
-
flyoutWidth: any;
|
|
121
|
-
};
|
|
122
|
-
getLabelProps(props: InternalEvaluatedProps, calculatedValues: any): any;
|
|
123
|
-
getPointerOrientation(point: {
|
|
124
|
-
x: number;
|
|
125
|
-
y: number;
|
|
126
|
-
}, center: {
|
|
127
|
-
x: number;
|
|
128
|
-
y: number;
|
|
129
|
-
}, flyoutDimensions: {
|
|
130
|
-
height: number;
|
|
131
|
-
width: number;
|
|
132
|
-
}): string;
|
|
133
|
-
getFlyoutProps(props: InternalEvaluatedProps, calculatedValues: any): any;
|
|
134
|
-
renderTooltip(props: VictoryTooltipProps): React.ReactElement | null;
|
|
135
|
-
render(): React.ReactElement | null;
|
|
136
|
-
}
|
|
137
|
-
export {};
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { VictoryLabelableProps, VictoryLabelProps, VictoryLabelStyleObject, NumberOrCallback, PaddingOrCallback, VictoryStyleObject, OrientationTypes, VictoryThemeDefinition } from "victory-core";
|
|
3
|
+
export interface VictoryTooltipProps extends VictoryLabelableProps, VictoryLabelProps {
|
|
4
|
+
activateData?: boolean;
|
|
5
|
+
active?: boolean;
|
|
6
|
+
activePoints?: any[];
|
|
7
|
+
angle?: number;
|
|
8
|
+
center?: {
|
|
9
|
+
x?: number;
|
|
10
|
+
y?: number;
|
|
11
|
+
};
|
|
12
|
+
centerOffset?: {
|
|
13
|
+
x?: NumberOrCallback;
|
|
14
|
+
y?: NumberOrCallback;
|
|
15
|
+
};
|
|
16
|
+
constrainToVisibleArea?: boolean;
|
|
17
|
+
cornerRadius?: NumberOrCallback;
|
|
18
|
+
events?: any;
|
|
19
|
+
height?: number;
|
|
20
|
+
horizontal?: boolean;
|
|
21
|
+
flyoutComponent?: React.ReactElement;
|
|
22
|
+
flyoutHeight?: NumberOrCallback;
|
|
23
|
+
flyoutPadding?: PaddingOrCallback;
|
|
24
|
+
flyoutStyle?: VictoryStyleObject;
|
|
25
|
+
flyoutWidth?: NumberOrCallback;
|
|
26
|
+
id?: number | string;
|
|
27
|
+
index?: number | string;
|
|
28
|
+
orientation?: OrientationTypes | ((...args: any[]) => OrientationTypes);
|
|
29
|
+
pointerLength?: NumberOrCallback;
|
|
30
|
+
pointerOrientation?: OrientationTypes | ((...args: any[]) => OrientationTypes);
|
|
31
|
+
pointerWidth?: NumberOrCallback;
|
|
32
|
+
style?: (VictoryLabelStyleObject & {
|
|
33
|
+
angle?: number;
|
|
34
|
+
}) | VictoryLabelStyleObject[];
|
|
35
|
+
theme?: VictoryThemeDefinition;
|
|
36
|
+
width?: number;
|
|
37
|
+
}
|
|
38
|
+
declare type InternalEvaluatedProps = VictoryTooltipProps & {
|
|
39
|
+
centerOffset: {
|
|
40
|
+
x: number;
|
|
41
|
+
y: number;
|
|
42
|
+
};
|
|
43
|
+
cornerRadius?: number;
|
|
44
|
+
dx?: string | number;
|
|
45
|
+
dy?: string | number;
|
|
46
|
+
flyoutHeight: number;
|
|
47
|
+
flyoutPadding: {
|
|
48
|
+
top: number;
|
|
49
|
+
bottom: number;
|
|
50
|
+
left: number;
|
|
51
|
+
right: number;
|
|
52
|
+
};
|
|
53
|
+
flyoutWidth: number;
|
|
54
|
+
orientation: OrientationTypes;
|
|
55
|
+
pointerLength?: number;
|
|
56
|
+
pointerWidth?: number;
|
|
57
|
+
style: any;
|
|
58
|
+
text: string | string[];
|
|
59
|
+
};
|
|
60
|
+
declare type EventHandlers = Record<string, (props?: any) => {
|
|
61
|
+
target: string;
|
|
62
|
+
mutation: () => {
|
|
63
|
+
active?: boolean | undefined;
|
|
64
|
+
};
|
|
65
|
+
}[]>;
|
|
66
|
+
export declare class VictoryTooltip extends React.Component<VictoryTooltipProps> {
|
|
67
|
+
static displayName: string;
|
|
68
|
+
static role: string;
|
|
69
|
+
static defaultProps: {
|
|
70
|
+
active: boolean;
|
|
71
|
+
renderInPortal: boolean;
|
|
72
|
+
labelComponent: JSX.Element;
|
|
73
|
+
flyoutComponent: JSX.Element;
|
|
74
|
+
groupComponent: JSX.Element;
|
|
75
|
+
};
|
|
76
|
+
static defaultEvents: (props: VictoryTooltipProps) => {
|
|
77
|
+
target: string;
|
|
78
|
+
eventHandlers: EventHandlers;
|
|
79
|
+
}[];
|
|
80
|
+
id: string | number;
|
|
81
|
+
constructor(props: VictoryTooltipProps);
|
|
82
|
+
getDefaultOrientation(props: VictoryTooltipProps): OrientationTypes;
|
|
83
|
+
getPolarOrientation(props: VictoryTooltipProps): OrientationTypes;
|
|
84
|
+
getVerticalOrientations(degrees: number): OrientationTypes;
|
|
85
|
+
getStyles(props: any): {
|
|
86
|
+
style: any;
|
|
87
|
+
flyoutStyle: any;
|
|
88
|
+
};
|
|
89
|
+
getEvaluatedProps(props: VictoryTooltipProps): InternalEvaluatedProps;
|
|
90
|
+
getCalculatedValues(props: InternalEvaluatedProps): {
|
|
91
|
+
style: any;
|
|
92
|
+
flyoutStyle?: VictoryStyleObject;
|
|
93
|
+
labelSize: {
|
|
94
|
+
width: number;
|
|
95
|
+
height: number;
|
|
96
|
+
};
|
|
97
|
+
flyoutDimensions: {
|
|
98
|
+
height: number;
|
|
99
|
+
width: number;
|
|
100
|
+
};
|
|
101
|
+
flyoutCenter: {
|
|
102
|
+
x: number;
|
|
103
|
+
y: number;
|
|
104
|
+
};
|
|
105
|
+
transform?: string;
|
|
106
|
+
};
|
|
107
|
+
getTransform(props: any): string | undefined;
|
|
108
|
+
getDefaultAngle(props: any): number;
|
|
109
|
+
constrainTooltip(center: any, props: any, dimensions: any): {
|
|
110
|
+
x: number;
|
|
111
|
+
y: number;
|
|
112
|
+
};
|
|
113
|
+
getFlyoutCenter(props: any, dimensions: any): {
|
|
114
|
+
x: any;
|
|
115
|
+
y: any;
|
|
116
|
+
};
|
|
117
|
+
getLabelPadding(style: any): number;
|
|
118
|
+
getDimensions(props: any, labelSize: any): {
|
|
119
|
+
flyoutHeight: any;
|
|
120
|
+
flyoutWidth: any;
|
|
121
|
+
};
|
|
122
|
+
getLabelProps(props: InternalEvaluatedProps, calculatedValues: any): any;
|
|
123
|
+
getPointerOrientation(point: {
|
|
124
|
+
x: number;
|
|
125
|
+
y: number;
|
|
126
|
+
}, center: {
|
|
127
|
+
x: number;
|
|
128
|
+
y: number;
|
|
129
|
+
}, flyoutDimensions: {
|
|
130
|
+
height: number;
|
|
131
|
+
width: number;
|
|
132
|
+
}): string;
|
|
133
|
+
getFlyoutProps(props: InternalEvaluatedProps, calculatedValues: any): any;
|
|
134
|
+
renderTooltip(props: VictoryTooltipProps): React.ReactElement | null;
|
|
135
|
+
render(): React.ReactElement | null;
|
|
136
|
+
}
|
|
137
|
+
export {};
|
|
138
138
|
//# sourceMappingURL=victory-tooltip.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-tooltip",
|
|
3
|
-
"version": "36.9.2
|
|
3
|
+
"version": "36.9.2",
|
|
4
4
|
"description": "Tooltip Component for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"type": "git",
|
|
13
13
|
"url": "https://github.com/FormidableLabs/victory"
|
|
14
14
|
},
|
|
15
|
-
"homepage": "https://
|
|
15
|
+
"homepage": "https://commerce.nearform.com/open-source/victory",
|
|
16
16
|
"sideEffects": false,
|
|
17
17
|
"main": "lib/index.js",
|
|
18
18
|
"module": "es/index.js",
|
|
@@ -21,11 +21,14 @@
|
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"lodash": "^4.17.19",
|
|
24
|
-
"victory-core": "^36.9.2
|
|
24
|
+
"victory-core": "^36.9.2"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": ">=16.6.0"
|
|
28
28
|
},
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"provenance": true
|
|
31
|
+
},
|
|
29
32
|
"wireit": {
|
|
30
33
|
"### THESE WIREIT CONFIGS ARE GENERATED ####": {},
|
|
31
34
|
"### DO NOT MODIFY THESE MANUALLY ####": {},
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-dom.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @license React
|
|
13
|
-
* scheduler.production.min.js
|
|
14
|
-
*
|
|
15
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16
|
-
*
|
|
17
|
-
* This source code is licensed under the MIT license found in the
|
|
18
|
-
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/
|