victory-errorbar 37.3.0 → 37.3.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 +8 -0
- package/dist/victory-errorbar.js +14 -35
- package/dist/victory-errorbar.min.js +1 -1
- package/es/error-bar.js +1 -2
- package/es/victory-errorbar.d.ts +3 -3
- package/es/victory-errorbar.js +1 -1
- package/lib/error-bar.js +1 -3
- package/lib/victory-errorbar.d.ts +3 -3
- package/lib/victory-errorbar.js +1 -1
- package/package.json +6 -10
- package/src/error-bar.tsx +1 -2
- package/src/victory-errorbar.tsx +1 -3
package/es/error-bar.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _defaults from "lodash/defaults";
|
|
2
|
-
/* eslint-disable max-statements */
|
|
3
2
|
import React from "react";
|
|
4
3
|
import { Helpers, Line, UserProps } from "victory-core";
|
|
5
4
|
const renderBorder = (props, error, type) => {
|
|
@@ -96,7 +95,7 @@ const evaluateProps = props => {
|
|
|
96
95
|
|
|
97
96
|
// ErrorProps for calculateError
|
|
98
97
|
|
|
99
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-
|
|
98
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
100
99
|
|
|
101
100
|
const defaultProps = {
|
|
102
101
|
groupComponent: /*#__PURE__*/React.createElement("g", null),
|
package/es/victory-errorbar.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { EventPropTypeInterface, StringOrNumberOrCallback, StringOrNumberOrList, VictoryDatableProps, VictoryCommonProps,
|
|
2
|
+
import { EventPropTypeInterface, StringOrNumberOrCallback, StringOrNumberOrList, VictoryDatableProps, VictoryCommonProps, VictoryMultiLabelableProps, VictoryStyleInterface, EventsMixinClass } from "victory-core";
|
|
3
3
|
export declare type VictoryErrorBarTTargetType = "data" | "labels" | "parent";
|
|
4
4
|
export declare type ErrorType = StringOrNumberOrList | ((...args: any[]) => StringOrNumberOrList);
|
|
5
|
-
export interface VictoryErrorBarProps extends Omit<VictoryCommonProps, "polar">, VictoryDatableProps,
|
|
5
|
+
export interface VictoryErrorBarProps extends Omit<VictoryCommonProps, "polar">, VictoryDatableProps, VictoryMultiLabelableProps {
|
|
6
6
|
borderWidth?: number;
|
|
7
7
|
errorX?: ErrorType;
|
|
8
8
|
errorY?: ErrorType;
|
|
@@ -69,7 +69,7 @@ export declare const VictoryErrorBar: {
|
|
|
69
69
|
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
70
70
|
componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
71
71
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
72
|
-
componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
|
|
72
|
+
componentEvents: import("@/victory-core/lib/victory-util/events").ComponentEvent[];
|
|
73
73
|
getSharedEventState: (key: string, value: string) => unknown;
|
|
74
74
|
baseProps: Record<string, object>;
|
|
75
75
|
dataKeys: string[];
|
package/es/victory-errorbar.js
CHANGED
|
@@ -29,7 +29,7 @@ const defaultData = [{
|
|
|
29
29
|
errorY: 0.4
|
|
30
30
|
}];
|
|
31
31
|
|
|
32
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-
|
|
32
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
33
33
|
|
|
34
34
|
class VictoryErrorBarBase extends React.Component {
|
|
35
35
|
static animationWhitelist = ["data", "domain", "height", "padding", "samples", "style", "width", "errorX", "errorY", "borderWidth"];
|
package/lib/error-bar.js
CHANGED
|
@@ -8,8 +8,6 @@ var _defaults2 = _interopRequireDefault(require("lodash/defaults"));
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _victoryCore = require("victory-core");
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
/* eslint-disable max-statements */
|
|
12
|
-
|
|
13
11
|
const renderBorder = (props, error, type) => {
|
|
14
12
|
const vertical = type === "right" || type === "left";
|
|
15
13
|
return /*#__PURE__*/_react.default.cloneElement(props.lineComponent, {
|
|
@@ -104,7 +102,7 @@ const evaluateProps = props => {
|
|
|
104
102
|
|
|
105
103
|
// ErrorProps for calculateError
|
|
106
104
|
|
|
107
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-
|
|
105
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
108
106
|
|
|
109
107
|
const defaultProps = {
|
|
110
108
|
groupComponent: /*#__PURE__*/_react.default.createElement("g", null),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { EventPropTypeInterface, StringOrNumberOrCallback, StringOrNumberOrList, VictoryDatableProps, VictoryCommonProps,
|
|
2
|
+
import { EventPropTypeInterface, StringOrNumberOrCallback, StringOrNumberOrList, VictoryDatableProps, VictoryCommonProps, VictoryMultiLabelableProps, VictoryStyleInterface, EventsMixinClass } from "victory-core";
|
|
3
3
|
export declare type VictoryErrorBarTTargetType = "data" | "labels" | "parent";
|
|
4
4
|
export declare type ErrorType = StringOrNumberOrList | ((...args: any[]) => StringOrNumberOrList);
|
|
5
|
-
export interface VictoryErrorBarProps extends Omit<VictoryCommonProps, "polar">, VictoryDatableProps,
|
|
5
|
+
export interface VictoryErrorBarProps extends Omit<VictoryCommonProps, "polar">, VictoryDatableProps, VictoryMultiLabelableProps {
|
|
6
6
|
borderWidth?: number;
|
|
7
7
|
errorX?: ErrorType;
|
|
8
8
|
errorY?: ErrorType;
|
|
@@ -69,7 +69,7 @@ export declare const VictoryErrorBar: {
|
|
|
69
69
|
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
70
70
|
componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
71
71
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
72
|
-
componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
|
|
72
|
+
componentEvents: import("@/victory-core/lib/victory-util/events").ComponentEvent[];
|
|
73
73
|
getSharedEventState: (key: string, value: string) => unknown;
|
|
74
74
|
baseProps: Record<string, object>;
|
|
75
75
|
dataKeys: string[];
|
package/lib/victory-errorbar.js
CHANGED
|
@@ -36,7 +36,7 @@ const defaultData = [{
|
|
|
36
36
|
errorY: 0.4
|
|
37
37
|
}];
|
|
38
38
|
|
|
39
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
40
40
|
|
|
41
41
|
class VictoryErrorBarBase extends _react.default.Component {
|
|
42
42
|
static animationWhitelist = ["data", "domain", "height", "padding", "samples", "style", "width", "errorX", "errorY", "borderWidth"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-errorbar",
|
|
3
|
-
"version": "37.3.
|
|
3
|
+
"version": "37.3.2",
|
|
4
4
|
"description": "Error Bar Component for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"lodash": "^4.17.19",
|
|
24
|
-
"victory-core": "37.3.
|
|
24
|
+
"victory-core": "37.3.2"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"victory-vendor": "*"
|
|
@@ -210,11 +210,9 @@
|
|
|
210
210
|
]
|
|
211
211
|
},
|
|
212
212
|
"lint": {
|
|
213
|
-
"command": "
|
|
213
|
+
"command": "eslint src",
|
|
214
214
|
"files": [
|
|
215
|
-
"src/**"
|
|
216
|
-
"../../.eslintignore",
|
|
217
|
-
"../../.eslintrc.js"
|
|
215
|
+
"src/**"
|
|
218
216
|
],
|
|
219
217
|
"output": [],
|
|
220
218
|
"dependencies": [
|
|
@@ -227,11 +225,9 @@
|
|
|
227
225
|
]
|
|
228
226
|
},
|
|
229
227
|
"lint:fix": {
|
|
230
|
-
"command": "
|
|
228
|
+
"command": "eslint --fix src",
|
|
231
229
|
"files": [
|
|
232
|
-
"src/**"
|
|
233
|
-
"../../.eslintignore",
|
|
234
|
-
"../../.eslintrc.js"
|
|
230
|
+
"src/**"
|
|
235
231
|
],
|
|
236
232
|
"output": [],
|
|
237
233
|
"dependencies": [
|
package/src/error-bar.tsx
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable max-statements */
|
|
2
1
|
import React from "react";
|
|
3
2
|
import { defaults } from "lodash";
|
|
4
3
|
|
|
@@ -105,7 +104,7 @@ export interface ErrorProps {
|
|
|
105
104
|
top?: { error: any; errorIndex: number };
|
|
106
105
|
}
|
|
107
106
|
|
|
108
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-
|
|
107
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
109
108
|
interface ErrorBar extends EventsMixinClass<ErrorBarProps> {}
|
|
110
109
|
|
|
111
110
|
const defaultProps = {
|
package/src/victory-errorbar.tsx
CHANGED
|
@@ -12,7 +12,6 @@ import {
|
|
|
12
12
|
StringOrNumberOrList,
|
|
13
13
|
VictoryDatableProps,
|
|
14
14
|
VictoryCommonProps,
|
|
15
|
-
VictoryLabelableProps,
|
|
16
15
|
VictoryMultiLabelableProps,
|
|
17
16
|
VictoryStyleInterface,
|
|
18
17
|
EventsMixinClass,
|
|
@@ -41,7 +40,6 @@ export type ErrorType =
|
|
|
41
40
|
export interface VictoryErrorBarProps
|
|
42
41
|
extends Omit<VictoryCommonProps, "polar">,
|
|
43
42
|
VictoryDatableProps,
|
|
44
|
-
VictoryLabelableProps,
|
|
45
43
|
VictoryMultiLabelableProps {
|
|
46
44
|
borderWidth?: number;
|
|
47
45
|
errorX?: ErrorType;
|
|
@@ -53,7 +51,7 @@ export interface VictoryErrorBarProps
|
|
|
53
51
|
style?: VictoryStyleInterface;
|
|
54
52
|
}
|
|
55
53
|
|
|
56
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-
|
|
54
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
57
55
|
interface VictoryErrorBarBase extends EventsMixinClass<VictoryErrorBarProps> {}
|
|
58
56
|
|
|
59
57
|
class VictoryErrorBarBase extends React.Component<VictoryErrorBarProps> {
|