victory-core 36.6.1 → 36.6.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 +7 -0
- package/dist/victory-core.js +2 -2
- package/es/victory-util/selection.d.ts +1 -1
- package/es/victory-util/selection.js +1 -1
- package/es/victory-util/with-container.d.ts +1 -1
- package/lib/victory-util/selection.d.ts +1 -1
- package/lib/victory-util/selection.js +6 -2
- package/lib/victory-util/with-container.d.ts +1 -1
- package/package.json +2 -2
- package/src/victory-util/selection.ts +3 -1
- package/src/victory-util/with-container.tsx +2 -2
package/CHANGELOG.md
CHANGED
package/dist/victory-core.js
CHANGED
|
@@ -8914,7 +8914,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8914
8914
|
/* harmony export */ "getParentSVG": () => (/* binding */ getParentSVG),
|
|
8915
8915
|
/* harmony export */ "getSVGEventCoordinates": () => (/* binding */ getSVGEventCoordinates)
|
|
8916
8916
|
/* harmony export */ });
|
|
8917
|
-
/* harmony import */ var
|
|
8917
|
+
/* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./collection */ "./victory-util/collection.tsx");
|
|
8918
8918
|
|
|
8919
8919
|
|
|
8920
8920
|
// Private Functions
|
|
@@ -9021,7 +9021,7 @@ function getBounds(props) {
|
|
|
9021
9021
|
var point2 = getDataCoordinates(props, scale, x2, y2);
|
|
9022
9022
|
|
|
9023
9023
|
var makeBound = function (a, b) {
|
|
9024
|
-
return [
|
|
9024
|
+
return [_collection__WEBPACK_IMPORTED_MODULE_0__.getMinValue([a, b]), _collection__WEBPACK_IMPORTED_MODULE_0__.getMaxValue([a, b])];
|
|
9025
9025
|
};
|
|
9026
9026
|
|
|
9027
9027
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { VictoryCommonProps } from "./
|
|
2
|
+
import { VictoryCommonProps } from "./common-props";
|
|
3
3
|
import type { DomainPropType, ScaleXYPropType } from "../types/prop-types";
|
|
4
4
|
export declare function getParentSVG(evt: Pick<React.SyntheticEvent, "target"> & Partial<Pick<React.SyntheticEvent, "nativeEvent">>): SVGElement;
|
|
5
5
|
export declare function getSVGEventCoordinates(evt: React.SyntheticEvent, svg?: SVGElement): SVGCoordinateType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { VictoryProviderProps } from "../victory-state";
|
|
3
3
|
import { VictoryCommonProps } from "./common-props";
|
|
4
|
-
export declare function withContainer<Props extends VictoryCommonProps>(WrappedComponent:
|
|
4
|
+
export declare function withContainer<Props extends VictoryCommonProps>(WrappedComponent: React.FC<Props>, initialProviderProps?: Partial<VictoryProviderProps>): React.FC<Props>;
|
|
5
5
|
//# sourceMappingURL=with-container.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { VictoryCommonProps } from "./
|
|
2
|
+
import { VictoryCommonProps } from "./common-props";
|
|
3
3
|
import type { DomainPropType, ScaleXYPropType } from "../types/prop-types";
|
|
4
4
|
export declare function getParentSVG(evt: Pick<React.SyntheticEvent, "target"> & Partial<Pick<React.SyntheticEvent, "nativeEvent">>): SVGElement;
|
|
5
5
|
export declare function getSVGEventCoordinates(evt: React.SyntheticEvent, svg?: SVGElement): SVGCoordinateType;
|
|
@@ -9,7 +9,11 @@ exports.getDomainCoordinates = getDomainCoordinates;
|
|
|
9
9
|
exports.getParentSVG = getParentSVG;
|
|
10
10
|
exports.getSVGEventCoordinates = getSVGEventCoordinates;
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var Collection = _interopRequireWildcard(require("./collection"));
|
|
13
|
+
|
|
14
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
+
|
|
16
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
17
|
|
|
14
18
|
// Private Functions
|
|
15
19
|
function transformTarget(target, matrix, dimension) {
|
|
@@ -119,7 +123,7 @@ function getBounds(props) {
|
|
|
119
123
|
var point2 = getDataCoordinates(props, scale, x2, y2);
|
|
120
124
|
|
|
121
125
|
var makeBound = function (a, b) {
|
|
122
|
-
return [
|
|
126
|
+
return [Collection.getMinValue([a, b]), Collection.getMaxValue([a, b])];
|
|
123
127
|
};
|
|
124
128
|
|
|
125
129
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { VictoryProviderProps } from "../victory-state";
|
|
3
3
|
import { VictoryCommonProps } from "./common-props";
|
|
4
|
-
export declare function withContainer<Props extends VictoryCommonProps>(WrappedComponent:
|
|
4
|
+
export declare function withContainer<Props extends VictoryCommonProps>(WrappedComponent: React.FC<Props>, initialProviderProps?: Partial<VictoryProviderProps>): React.FC<Props>;
|
|
5
5
|
//# sourceMappingURL=with-container.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-core",
|
|
3
|
-
"version": "36.6.
|
|
3
|
+
"version": "36.6.2",
|
|
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.6.
|
|
26
|
+
"victory-vendor": "^36.6.2"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"react": ">=16.6.0"
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
2
|
+
import * as Collection from "./collection";
|
|
3
|
+
import { VictoryCommonProps } from "./common-props";
|
|
4
|
+
|
|
3
5
|
import type { DomainPropType, ScaleXYPropType } from "../types/prop-types";
|
|
4
6
|
|
|
5
7
|
// Private Functions
|
|
@@ -11,9 +11,9 @@ const defaultProviderProps = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export function withContainer<Props extends VictoryCommonProps>(
|
|
14
|
-
WrappedComponent:
|
|
14
|
+
WrappedComponent: React.FC<Props>,
|
|
15
15
|
initialProviderProps: Partial<VictoryProviderProps> = {},
|
|
16
|
-
) {
|
|
16
|
+
): React.FC<Props> {
|
|
17
17
|
return (props: Props) => {
|
|
18
18
|
const providerProps = {
|
|
19
19
|
...defaultProviderProps,
|