victory-cursor-container 36.6.2 → 36.6.5
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 +25 -0
- package/dist/victory-cursor-container.js +0 -23
- package/es/cursor-helpers.js +1 -2
- package/es/index.js +1 -2
- package/es/victory-cursor-container.d.ts +2 -2
- package/es/victory-cursor-container.js +1 -2
- package/lib/cursor-helpers.js +1 -2
- package/lib/index.js +1 -2
- package/lib/victory-cursor-container.d.ts +2 -2
- package/lib/victory-cursor-container.js +1 -2
- package/package.json +12 -4
- package/src/victory-cursor-container.tsx +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# victory-cursor-container
|
|
2
2
|
|
|
3
|
+
## 36.6.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`6f4972123`](https://github.com/FormidableLabs/victory/commit/6f49721238332bb5ee879571a45b34a04e44d416)]:
|
|
8
|
+
- victory-core@36.6.5
|
|
9
|
+
|
|
10
|
+
## 36.6.4
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Allow data accessors to accept any data types (fixes [#2360](https://github.com/FormidableLabs/victory/issues/2360)) ([#2436](https://github.com/FormidableLabs/victory/pull/2436))
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [[`9a6319cff`](https://github.com/FormidableLabs/victory/commit/9a6319cffbc480711b8c286dcae00575081170f0)]:
|
|
17
|
+
- victory-core@36.6.4
|
|
18
|
+
|
|
19
|
+
## 36.6.3
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Do not generate \*.js.map sourcemaps (fixes [#2346](https://github.com/FormidableLabs/victory/issues/2346)) ([#2432](https://github.com/FormidableLabs/victory/pull/2432))
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [[`4bfc65df5`](https://github.com/FormidableLabs/victory/commit/4bfc65df5a10aa6a10084882ed5c6d0d894dec6f)]:
|
|
26
|
+
- victory-core@36.6.3
|
|
27
|
+
|
|
3
28
|
## 36.6.2
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -6152,7 +6152,6 @@ VictoryContainer.defaultProps = {
|
|
|
6152
6152
|
role: "img"
|
|
6153
6153
|
};
|
|
6154
6154
|
VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
|
|
6155
|
-
//# sourceMappingURL=victory-container.js.map
|
|
6156
6155
|
|
|
6157
6156
|
/***/ }),
|
|
6158
6157
|
|
|
@@ -6794,7 +6793,6 @@ VictoryLabel.defaultProps = {
|
|
|
6794
6793
|
// Magic number from d3.
|
|
6795
6794
|
lineHeight: 1
|
|
6796
6795
|
};
|
|
6797
|
-
//# sourceMappingURL=victory-label.js.map
|
|
6798
6796
|
|
|
6799
6797
|
/***/ }),
|
|
6800
6798
|
|
|
@@ -6819,7 +6817,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6819
6817
|
*/
|
|
6820
6818
|
var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
|
|
6821
6819
|
PortalContext.displayName = "PortalContext";
|
|
6822
|
-
//# sourceMappingURL=portal-context.js.map
|
|
6823
6820
|
|
|
6824
6821
|
/***/ }),
|
|
6825
6822
|
|
|
@@ -6931,7 +6928,6 @@ Portal.propTypes = {
|
|
|
6931
6928
|
viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
6932
6929
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
|
|
6933
6930
|
};
|
|
6934
|
-
//# sourceMappingURL=portal.js.map
|
|
6935
6931
|
|
|
6936
6932
|
/***/ }),
|
|
6937
6933
|
|
|
@@ -7075,7 +7071,6 @@ VictoryPortal.defaultProps = {
|
|
|
7075
7071
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
|
|
7076
7072
|
};
|
|
7077
7073
|
VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalContext;
|
|
7078
|
-
//# sourceMappingURL=victory-portal.js.map
|
|
7079
7074
|
|
|
7080
7075
|
/***/ }),
|
|
7081
7076
|
|
|
@@ -7169,7 +7164,6 @@ LineSegment.defaultProps = {
|
|
|
7169
7164
|
role: "presentation",
|
|
7170
7165
|
shapeRendering: "auto"
|
|
7171
7166
|
};
|
|
7172
|
-
//# sourceMappingURL=line-segment.js.map
|
|
7173
7167
|
|
|
7174
7168
|
/***/ }),
|
|
7175
7169
|
|
|
@@ -7212,7 +7206,6 @@ var Line = function (props) {
|
|
|
7212
7206
|
vectorEffect: "non-scaling-stroke"
|
|
7213
7207
|
}, rest));
|
|
7214
7208
|
};
|
|
7215
|
-
//# sourceMappingURL=line.js.map
|
|
7216
7209
|
|
|
7217
7210
|
/***/ }),
|
|
7218
7211
|
|
|
@@ -7255,7 +7248,6 @@ var Rect = function (props) {
|
|
|
7255
7248
|
vectorEffect: "non-scaling-stroke"
|
|
7256
7249
|
}, rest));
|
|
7257
7250
|
};
|
|
7258
|
-
//# sourceMappingURL=rect.js.map
|
|
7259
7251
|
|
|
7260
7252
|
/***/ }),
|
|
7261
7253
|
|
|
@@ -7299,7 +7291,6 @@ Text.propTypes = {
|
|
|
7299
7291
|
desc: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
7300
7292
|
title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
|
7301
7293
|
};
|
|
7302
|
-
//# sourceMappingURL=text.js.map
|
|
7303
7294
|
|
|
7304
7295
|
/***/ }),
|
|
7305
7296
|
|
|
@@ -7324,7 +7315,6 @@ var TSpan = function (props) {
|
|
|
7324
7315
|
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", props)
|
|
7325
7316
|
);
|
|
7326
7317
|
};
|
|
7327
|
-
//# sourceMappingURL=tspan.js.map
|
|
7328
7318
|
|
|
7329
7319
|
/***/ }),
|
|
7330
7320
|
|
|
@@ -7408,7 +7398,6 @@ function getMinValue(arr) {
|
|
|
7408
7398
|
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
7409
7399
|
: Math.min.apply(Math, _toConsumableArray(array));
|
|
7410
7400
|
}
|
|
7411
|
-
//# sourceMappingURL=collection.js.map
|
|
7412
7401
|
|
|
7413
7402
|
/***/ }),
|
|
7414
7403
|
|
|
@@ -7558,7 +7547,6 @@ var CommonProps = {
|
|
|
7558
7547
|
baseProps: baseProps,
|
|
7559
7548
|
primitiveProps: primitiveProps
|
|
7560
7549
|
};
|
|
7561
|
-
//# sourceMappingURL=common-props.js.map
|
|
7562
7550
|
|
|
7563
7551
|
/***/ }),
|
|
7564
7552
|
|
|
@@ -7955,7 +7943,6 @@ function isHorizontal(props) {
|
|
|
7955
7943
|
|
|
7956
7944
|
return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
|
|
7957
7945
|
}
|
|
7958
|
-
//# sourceMappingURL=helpers.js.map
|
|
7959
7946
|
|
|
7960
7947
|
/***/ }),
|
|
7961
7948
|
|
|
@@ -8213,7 +8200,6 @@ function getProps(props, index) {
|
|
|
8213
8200
|
var tooltipTheme = theme && theme.tooltip || {};
|
|
8214
8201
|
return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, labelProps, _helpers__WEBPACK_IMPORTED_MODULE_1__.omit(tooltipTheme, ["style"]));
|
|
8215
8202
|
}
|
|
8216
|
-
//# sourceMappingURL=label-helpers.js.map
|
|
8217
8203
|
|
|
8218
8204
|
/***/ }),
|
|
8219
8205
|
|
|
@@ -8239,7 +8225,6 @@ function warn(message) {
|
|
|
8239
8225
|
}
|
|
8240
8226
|
}
|
|
8241
8227
|
}
|
|
8242
|
-
//# sourceMappingURL=log.js.map
|
|
8243
8228
|
|
|
8244
8229
|
/***/ }),
|
|
8245
8230
|
|
|
@@ -8512,7 +8497,6 @@ var regExp = makeChainable(function (props, propName, componentName) {
|
|
|
8512
8497
|
|
|
8513
8498
|
return null;
|
|
8514
8499
|
});
|
|
8515
|
-
//# sourceMappingURL=prop-types.js.map
|
|
8516
8500
|
|
|
8517
8501
|
/***/ }),
|
|
8518
8502
|
|
|
@@ -8684,7 +8668,6 @@ function getType(scale) {
|
|
|
8684
8668
|
})[0];
|
|
8685
8669
|
return scaleType ? scaleType.name : undefined;
|
|
8686
8670
|
}
|
|
8687
|
-
//# sourceMappingURL=scale.js.map
|
|
8688
8671
|
|
|
8689
8672
|
/***/ }),
|
|
8690
8673
|
|
|
@@ -8818,7 +8801,6 @@ function getBounds(props) {
|
|
|
8818
8801
|
y: makeBound(point1.y, point2.y)
|
|
8819
8802
|
};
|
|
8820
8803
|
}
|
|
8821
|
-
//# sourceMappingURL=selection.js.map
|
|
8822
8804
|
|
|
8823
8805
|
/***/ }),
|
|
8824
8806
|
|
|
@@ -8890,7 +8872,6 @@ function getColorScale(name) {
|
|
|
8890
8872
|
};
|
|
8891
8873
|
return name ? scales[name] : scales.grayscale;
|
|
8892
8874
|
}
|
|
8893
|
-
//# sourceMappingURL=style.js.map
|
|
8894
8875
|
|
|
8895
8876
|
/***/ }),
|
|
8896
8877
|
|
|
@@ -9198,7 +9179,6 @@ var _approximateTextSizeInternal = {
|
|
|
9198
9179
|
var approximateTextSize = function (text, style) {
|
|
9199
9180
|
return _approximateTextSizeInternal.impl(text, style);
|
|
9200
9181
|
};
|
|
9201
|
-
//# sourceMappingURL=textsize.js.map
|
|
9202
9182
|
|
|
9203
9183
|
/***/ }),
|
|
9204
9184
|
|
|
@@ -9229,7 +9209,6 @@ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cre
|
|
|
9229
9209
|
});
|
|
9230
9210
|
TimerContext.displayName = "TimerContext";
|
|
9231
9211
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
|
|
9232
|
-
//# sourceMappingURL=timer-context.js.map
|
|
9233
9212
|
|
|
9234
9213
|
/***/ }),
|
|
9235
9214
|
|
|
@@ -9332,7 +9311,6 @@ var Timer = /*#__PURE__*/function () {
|
|
|
9332
9311
|
}();
|
|
9333
9312
|
|
|
9334
9313
|
|
|
9335
|
-
//# sourceMappingURL=timer.js.map
|
|
9336
9314
|
|
|
9337
9315
|
/***/ }),
|
|
9338
9316
|
|
|
@@ -9475,7 +9453,6 @@ var getSafeUserProps = function (props) {
|
|
|
9475
9453
|
var withSafeUserProps = function (component, props) {
|
|
9476
9454
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
|
|
9477
9455
|
};
|
|
9478
|
-
//# sourceMappingURL=user-props.js.map
|
|
9479
9456
|
|
|
9480
9457
|
/***/ }),
|
|
9481
9458
|
|
package/es/cursor-helpers.js
CHANGED
package/es/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import PropTypes from "prop-types";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { VictoryContainer, VictoryContainerProps, CoordinatesPropType, VictoryLabelProps,
|
|
3
|
+
import { VictoryContainer, VictoryContainerProps, CoordinatesPropType, VictoryLabelProps, ValueOrAccessor } from "victory-core";
|
|
4
4
|
export declare type CursorCoordinatesPropType = CoordinatesPropType | number;
|
|
5
5
|
export interface VictoryCursorContainerProps extends VictoryContainerProps {
|
|
6
6
|
cursorComponent?: React.ReactElement;
|
|
7
7
|
cursorDimension?: "x" | "y";
|
|
8
|
-
cursorLabel?:
|
|
8
|
+
cursorLabel?: ValueOrAccessor<VictoryLabelProps["text"]>;
|
|
9
9
|
cursorLabelComponent?: React.ReactElement;
|
|
10
10
|
cursorLabelOffset?: CursorCoordinatesPropType;
|
|
11
11
|
defaultCursorValue?: CursorCoordinatesPropType;
|
|
@@ -233,5 +233,4 @@ export function cursorContainerMixin(Base) {
|
|
|
233
233
|
}];
|
|
234
234
|
}, _class;
|
|
235
235
|
}
|
|
236
|
-
export var VictoryCursorContainer = cursorContainerMixin(VictoryContainer);
|
|
237
|
-
//# sourceMappingURL=victory-cursor-container.js.map
|
|
236
|
+
export var VictoryCursorContainer = cursorContainerMixin(VictoryContainer);
|
package/lib/cursor-helpers.js
CHANGED
package/lib/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import PropTypes from "prop-types";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { VictoryContainer, VictoryContainerProps, CoordinatesPropType, VictoryLabelProps,
|
|
3
|
+
import { VictoryContainer, VictoryContainerProps, CoordinatesPropType, VictoryLabelProps, ValueOrAccessor } from "victory-core";
|
|
4
4
|
export declare type CursorCoordinatesPropType = CoordinatesPropType | number;
|
|
5
5
|
export interface VictoryCursorContainerProps extends VictoryContainerProps {
|
|
6
6
|
cursorComponent?: React.ReactElement;
|
|
7
7
|
cursorDimension?: "x" | "y";
|
|
8
|
-
cursorLabel?:
|
|
8
|
+
cursorLabel?: ValueOrAccessor<VictoryLabelProps["text"]>;
|
|
9
9
|
cursorLabelComponent?: React.ReactElement;
|
|
10
10
|
cursorLabelOffset?: CursorCoordinatesPropType;
|
|
11
11
|
defaultCursorValue?: CursorCoordinatesPropType;
|
|
@@ -253,5 +253,4 @@ function cursorContainerMixin(Base) {
|
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
var VictoryCursorContainer = cursorContainerMixin(_victoryCore.VictoryContainer);
|
|
256
|
-
exports.VictoryCursorContainer = VictoryCursorContainer;
|
|
257
|
-
//# sourceMappingURL=victory-cursor-container.js.map
|
|
256
|
+
exports.VictoryCursorContainer = VictoryCursorContainer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-cursor-container",
|
|
3
|
-
"version": "36.6.
|
|
3
|
+
"version": "36.6.5",
|
|
4
4
|
"description": "Interactive Cursor Component for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"lodash": "^4.17.19",
|
|
24
24
|
"prop-types": "^15.8.1",
|
|
25
|
-
"victory-core": "^36.6.
|
|
25
|
+
"victory-core": "^36.6.5"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": ">=16.6.0"
|
|
@@ -48,7 +48,9 @@
|
|
|
48
48
|
"files": [
|
|
49
49
|
"src/**",
|
|
50
50
|
"!src/**/*.test.*",
|
|
51
|
-
"../../.babelrc.build.js"
|
|
51
|
+
"../../.babelrc.build.js",
|
|
52
|
+
"../../.babelrc.js",
|
|
53
|
+
"../../package-scripts.js"
|
|
52
54
|
],
|
|
53
55
|
"output": [
|
|
54
56
|
"es/**/*.js",
|
|
@@ -66,7 +68,9 @@
|
|
|
66
68
|
"files": [
|
|
67
69
|
"src/**",
|
|
68
70
|
"!src/**/*.test.*",
|
|
69
|
-
"../../.babelrc.build.js"
|
|
71
|
+
"../../.babelrc.build.js",
|
|
72
|
+
"../../.babelrc.js",
|
|
73
|
+
"../../package-scripts.js"
|
|
70
74
|
],
|
|
71
75
|
"output": [
|
|
72
76
|
"lib/**/*.js",
|
|
@@ -91,6 +95,8 @@
|
|
|
91
95
|
"src/**",
|
|
92
96
|
"!src/**/*.test.*",
|
|
93
97
|
"../../.babelrc.build.js",
|
|
98
|
+
"../../.babelrc.js",
|
|
99
|
+
"../../package-scripts.js",
|
|
94
100
|
"../../config/webpack.config.js",
|
|
95
101
|
"../../config/webpack.config.dev.js"
|
|
96
102
|
],
|
|
@@ -111,6 +117,8 @@
|
|
|
111
117
|
"src/**",
|
|
112
118
|
"!src/**/*.test.*",
|
|
113
119
|
"../../.babelrc.build.js",
|
|
120
|
+
"../../.babelrc.js",
|
|
121
|
+
"../../package-scripts.js",
|
|
114
122
|
"../../config/webpack.config.js"
|
|
115
123
|
],
|
|
116
124
|
"output": [
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
VictoryContainerProps,
|
|
9
9
|
CoordinatesPropType,
|
|
10
10
|
VictoryLabelProps,
|
|
11
|
-
|
|
11
|
+
ValueOrAccessor,
|
|
12
12
|
} from "victory-core";
|
|
13
13
|
import { defaults, assign, isObject } from "lodash";
|
|
14
14
|
import { CursorHelpers } from "./cursor-helpers";
|
|
@@ -18,7 +18,7 @@ export type CursorCoordinatesPropType = CoordinatesPropType | number;
|
|
|
18
18
|
export interface VictoryCursorContainerProps extends VictoryContainerProps {
|
|
19
19
|
cursorComponent?: React.ReactElement;
|
|
20
20
|
cursorDimension?: "x" | "y";
|
|
21
|
-
cursorLabel?:
|
|
21
|
+
cursorLabel?: ValueOrAccessor<VictoryLabelProps["text"]>;
|
|
22
22
|
cursorLabelComponent?: React.ReactElement;
|
|
23
23
|
cursorLabelOffset?: CursorCoordinatesPropType;
|
|
24
24
|
defaultCursorValue?: CursorCoordinatesPropType;
|