victory-core 36.8.5 → 36.8.6
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 +6 -0
- package/dist/victory-core.js +1 -1
- package/dist/victory-core.min.js +1 -1
- package/es/victory-clip-container/victory-clip-container.d.ts +1 -1
- package/es/victory-container/victory-container.d.ts +2 -2
- package/es/victory-portal/portal.d.ts +1 -1
- package/es/victory-portal/victory-portal.d.ts +2 -2
- package/es/victory-portal/victory-portal.js +1 -1
- package/es/victory-primitives/arc.d.ts +1 -0
- package/lib/victory-clip-container/victory-clip-container.d.ts +1 -1
- package/lib/victory-container/victory-container.d.ts +2 -2
- package/lib/victory-portal/portal.d.ts +1 -1
- package/lib/victory-portal/victory-portal.d.ts +2 -2
- package/lib/victory-portal/victory-portal.js +1 -1
- package/lib/victory-primitives/arc.d.ts +1 -0
- package/package.json +2 -2
- package/src/victory-clip-container/victory-clip-container.tsx +1 -1
- package/src/victory-container/victory-container.tsx +4 -2
- package/src/victory-portal/portal.tsx +1 -1
- package/src/victory-portal/victory-portal.tsx +2 -2
- package/src/victory-primitives/arc.tsx +1 -0
|
@@ -59,7 +59,7 @@ export declare class VictoryClipContainer extends React.Component<VictoryClipCon
|
|
|
59
59
|
clipPathComponent: JSX.Element;
|
|
60
60
|
groupComponent: JSX.Element;
|
|
61
61
|
};
|
|
62
|
-
|
|
62
|
+
clipId: VictoryClipContainerProps["clipId"];
|
|
63
63
|
constructor(props: VictoryClipContainerProps);
|
|
64
64
|
calculateAttributes(props: any): {
|
|
65
65
|
x: number;
|
|
@@ -34,7 +34,7 @@ export interface VictoryContainerProps {
|
|
|
34
34
|
title?: string;
|
|
35
35
|
width?: number;
|
|
36
36
|
}
|
|
37
|
-
export declare class VictoryContainer extends React.Component<
|
|
37
|
+
export declare class VictoryContainer<TProps extends VictoryContainerProps> extends React.Component<TProps> {
|
|
38
38
|
static displayName: string;
|
|
39
39
|
static role: string;
|
|
40
40
|
static propTypes: {
|
|
@@ -82,7 +82,7 @@ export declare class VictoryContainer extends React.Component<VictoryContainerPr
|
|
|
82
82
|
private portalRef;
|
|
83
83
|
private containerRef;
|
|
84
84
|
private shouldHandleWheel;
|
|
85
|
-
constructor(props:
|
|
85
|
+
constructor(props: TProps);
|
|
86
86
|
savePortalRef: (portal: any) => any;
|
|
87
87
|
portalUpdate: (key: any, el: any) => void;
|
|
88
88
|
portalRegister: () => number;
|
|
@@ -23,7 +23,7 @@ export declare class Portal extends React.Component<PortalProps> implements Port
|
|
|
23
23
|
portalRegister: () => number;
|
|
24
24
|
portalUpdate: (key: number, element: React.ReactElement) => void;
|
|
25
25
|
portalDeregister: (key: number) => void;
|
|
26
|
-
|
|
26
|
+
getChildren(): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
27
27
|
render(): JSX.Element;
|
|
28
28
|
}
|
|
29
29
|
//# sourceMappingURL=portal.d.ts.map
|
|
@@ -20,9 +20,9 @@ export declare class VictoryPortal extends React.Component<VictoryPortalProps> {
|
|
|
20
20
|
};
|
|
21
21
|
static contextType: React.Context<import("./portal-context").PortalContextValue>;
|
|
22
22
|
private checkedContext;
|
|
23
|
-
private renderInPlace;
|
|
24
|
-
private element;
|
|
25
23
|
private portalKey;
|
|
24
|
+
renderInPlace: boolean;
|
|
25
|
+
element: React.ReactElement;
|
|
26
26
|
componentDidMount(): void;
|
|
27
27
|
componentDidUpdate(): void;
|
|
28
28
|
componentWillUnmount(): void;
|
|
@@ -41,9 +41,9 @@ export var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
41
41
|
|
|
42
42
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
43
43
|
_this.checkedContext = void 0;
|
|
44
|
+
_this.portalKey = void 0;
|
|
44
45
|
_this.renderInPlace = void 0;
|
|
45
46
|
_this.element = void 0;
|
|
46
|
-
_this.portalKey = void 0;
|
|
47
47
|
return _this;
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -10,6 +10,7 @@ export interface ArcProps extends VictoryCommonPrimitiveProps {
|
|
|
10
10
|
pathComponent?: React.ReactElement;
|
|
11
11
|
r?: number;
|
|
12
12
|
startAngle?: number;
|
|
13
|
+
type?: string;
|
|
13
14
|
}
|
|
14
15
|
export declare const Arc: {
|
|
15
16
|
(initialProps: ArcProps): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
@@ -59,7 +59,7 @@ export declare class VictoryClipContainer extends React.Component<VictoryClipCon
|
|
|
59
59
|
clipPathComponent: JSX.Element;
|
|
60
60
|
groupComponent: JSX.Element;
|
|
61
61
|
};
|
|
62
|
-
|
|
62
|
+
clipId: VictoryClipContainerProps["clipId"];
|
|
63
63
|
constructor(props: VictoryClipContainerProps);
|
|
64
64
|
calculateAttributes(props: any): {
|
|
65
65
|
x: number;
|
|
@@ -34,7 +34,7 @@ export interface VictoryContainerProps {
|
|
|
34
34
|
title?: string;
|
|
35
35
|
width?: number;
|
|
36
36
|
}
|
|
37
|
-
export declare class VictoryContainer extends React.Component<
|
|
37
|
+
export declare class VictoryContainer<TProps extends VictoryContainerProps> extends React.Component<TProps> {
|
|
38
38
|
static displayName: string;
|
|
39
39
|
static role: string;
|
|
40
40
|
static propTypes: {
|
|
@@ -82,7 +82,7 @@ export declare class VictoryContainer extends React.Component<VictoryContainerPr
|
|
|
82
82
|
private portalRef;
|
|
83
83
|
private containerRef;
|
|
84
84
|
private shouldHandleWheel;
|
|
85
|
-
constructor(props:
|
|
85
|
+
constructor(props: TProps);
|
|
86
86
|
savePortalRef: (portal: any) => any;
|
|
87
87
|
portalUpdate: (key: any, el: any) => void;
|
|
88
88
|
portalRegister: () => number;
|
|
@@ -23,7 +23,7 @@ export declare class Portal extends React.Component<PortalProps> implements Port
|
|
|
23
23
|
portalRegister: () => number;
|
|
24
24
|
portalUpdate: (key: number, element: React.ReactElement) => void;
|
|
25
25
|
portalDeregister: (key: number) => void;
|
|
26
|
-
|
|
26
|
+
getChildren(): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
27
27
|
render(): JSX.Element;
|
|
28
28
|
}
|
|
29
29
|
//# sourceMappingURL=portal.d.ts.map
|
|
@@ -20,9 +20,9 @@ export declare class VictoryPortal extends React.Component<VictoryPortalProps> {
|
|
|
20
20
|
};
|
|
21
21
|
static contextType: React.Context<import("./portal-context").PortalContextValue>;
|
|
22
22
|
private checkedContext;
|
|
23
|
-
private renderInPlace;
|
|
24
|
-
private element;
|
|
25
23
|
private portalKey;
|
|
24
|
+
renderInPlace: boolean;
|
|
25
|
+
element: React.ReactElement;
|
|
26
26
|
componentDidMount(): void;
|
|
27
27
|
componentDidUpdate(): void;
|
|
28
28
|
componentWillUnmount(): void;
|
|
@@ -59,9 +59,9 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
59
59
|
|
|
60
60
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
61
61
|
_this.checkedContext = void 0;
|
|
62
|
+
_this.portalKey = void 0;
|
|
62
63
|
_this.renderInPlace = void 0;
|
|
63
64
|
_this.element = void 0;
|
|
64
|
-
_this.portalKey = void 0;
|
|
65
65
|
return _this;
|
|
66
66
|
}
|
|
67
67
|
|
|
@@ -10,6 +10,7 @@ export interface ArcProps extends VictoryCommonPrimitiveProps {
|
|
|
10
10
|
pathComponent?: React.ReactElement;
|
|
11
11
|
r?: number;
|
|
12
12
|
startAngle?: number;
|
|
13
|
+
type?: string;
|
|
13
14
|
}
|
|
14
15
|
export declare const Arc: {
|
|
15
16
|
(initialProps: ArcProps): React.DetailedReactHTMLElement<any, HTMLElement>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-core",
|
|
3
|
-
"version": "36.8.
|
|
3
|
+
"version": "36.8.6",
|
|
4
4
|
"description": "Victory Core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"lodash": "^4.17.21",
|
|
24
24
|
"prop-types": "^15.8.1",
|
|
25
25
|
"react-fast-compare": "^3.2.0",
|
|
26
|
-
"victory-vendor": "^36.8.
|
|
26
|
+
"victory-vendor": "^36.8.6"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"react": ">=16.6.0"
|
|
@@ -73,7 +73,7 @@ export class VictoryClipContainer extends React.Component<VictoryClipContainerPr
|
|
|
73
73
|
clipPathComponent: <ClipPath />,
|
|
74
74
|
groupComponent: <g />,
|
|
75
75
|
};
|
|
76
|
-
|
|
76
|
+
public clipId: VictoryClipContainerProps["clipId"];
|
|
77
77
|
|
|
78
78
|
constructor(props: VictoryClipContainerProps) {
|
|
79
79
|
super(props);
|
|
@@ -43,7 +43,9 @@ export interface VictoryContainerProps {
|
|
|
43
43
|
width?: number;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
export class VictoryContainer
|
|
46
|
+
export class VictoryContainer<
|
|
47
|
+
TProps extends VictoryContainerProps,
|
|
48
|
+
> extends React.Component<TProps> {
|
|
47
49
|
static displayName = "VictoryContainer";
|
|
48
50
|
static role = "container";
|
|
49
51
|
static propTypes = {
|
|
@@ -96,7 +98,7 @@ export class VictoryContainer extends React.Component<VictoryContainerProps> {
|
|
|
96
98
|
private containerRef: HTMLElement;
|
|
97
99
|
private shouldHandleWheel: boolean;
|
|
98
100
|
|
|
99
|
-
constructor(props:
|
|
101
|
+
constructor(props: TProps) {
|
|
100
102
|
super(props);
|
|
101
103
|
this.containerId =
|
|
102
104
|
!isObject(props) || props.containerId === undefined
|
|
@@ -30,9 +30,9 @@ export class VictoryPortal extends React.Component<VictoryPortalProps> {
|
|
|
30
30
|
|
|
31
31
|
static contextType = PortalContext;
|
|
32
32
|
private checkedContext!: boolean;
|
|
33
|
-
private renderInPlace!: boolean;
|
|
34
|
-
private element!: React.ReactElement;
|
|
35
33
|
private portalKey!: number;
|
|
34
|
+
public renderInPlace!: boolean;
|
|
35
|
+
public element!: React.ReactElement;
|
|
36
36
|
|
|
37
37
|
componentDidMount() {
|
|
38
38
|
if (!this.checkedContext) {
|