victory-errorbar 37.3.1 → 37.3.3
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 +308 -283
- package/dist/victory-errorbar.min.js +1 -1
- package/es/error-bar.d.ts +4 -1
- package/es/error-bar.js +3 -4
- package/es/helper-methods.js +4 -4
- package/es/victory-errorbar.d.ts +8 -8
- package/es/victory-errorbar.js +1 -1
- package/lib/error-bar.d.ts +4 -1
- package/lib/error-bar.js +3 -5
- package/lib/helper-methods.js +4 -4
- package/lib/victory-errorbar.d.ts +8 -8
- package/lib/victory-errorbar.js +1 -1
- package/package.json +6 -38
- package/src/error-bar.tsx +2 -3
- package/src/helper-methods.tsx +2 -1
- package/src/victory-errorbar.tsx +1 -2
package/es/error-bar.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { VictoryCommonPrimitiveProps } from "victory-core";
|
|
2
|
+
import { VictoryCommonPrimitiveProps, EventsMixinClass } from "victory-core";
|
|
3
3
|
export interface ErrorBarProps extends VictoryCommonPrimitiveProps {
|
|
4
4
|
borderWidth?: number;
|
|
5
5
|
datum?: any;
|
|
@@ -28,5 +28,8 @@ export interface ErrorProps {
|
|
|
28
28
|
errorIndex: number;
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
+
interface ErrorBar extends EventsMixinClass<ErrorBarProps> {
|
|
32
|
+
}
|
|
31
33
|
export declare const ErrorBar: any;
|
|
34
|
+
export {};
|
|
32
35
|
//# sourceMappingURL=error-bar.d.ts.map
|
package/es/error-bar.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import _defaults from "lodash/defaults";
|
|
2
|
-
/* eslint-disable max-statements */
|
|
3
1
|
import React from "react";
|
|
2
|
+
import defaults from "lodash/defaults";
|
|
4
3
|
import { Helpers, Line, UserProps } from "victory-core";
|
|
5
4
|
const renderBorder = (props, error, type) => {
|
|
6
5
|
const vertical = type === "right" || type === "left";
|
|
@@ -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),
|
|
@@ -105,7 +104,7 @@ const defaultProps = {
|
|
|
105
104
|
shapeRendering: "auto"
|
|
106
105
|
};
|
|
107
106
|
export const ErrorBar = initialProps => {
|
|
108
|
-
const props = evaluateProps(
|
|
107
|
+
const props = evaluateProps(defaults({}, initialProps, defaultProps));
|
|
109
108
|
const {
|
|
110
109
|
groupComponent
|
|
111
110
|
} = props;
|
package/es/helper-methods.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import assign from "lodash/assign";
|
|
2
|
+
import defaults from "lodash/defaults";
|
|
3
3
|
import { Helpers, LabelHelpers, Scale, Domain, Data, Collection } from "victory-core";
|
|
4
4
|
const getErrors = (props, datum, axis) => {
|
|
5
5
|
/**
|
|
@@ -143,7 +143,7 @@ const getLabelProps = (dataProps, text, style) => {
|
|
|
143
143
|
return labelProps;
|
|
144
144
|
}
|
|
145
145
|
const tooltipTheme = theme && theme.tooltip || {};
|
|
146
|
-
return
|
|
146
|
+
return defaults({}, labelProps, Helpers.omit(tooltipTheme, ["style"]));
|
|
147
147
|
};
|
|
148
148
|
export const getBaseProps = (initialProps, fallbackProps) => {
|
|
149
149
|
const modifiedProps = Helpers.modifyProps(initialProps, fallbackProps, "errorbar");
|
|
@@ -191,7 +191,7 @@ export const getBaseProps = (initialProps, fallbackProps) => {
|
|
|
191
191
|
const {
|
|
192
192
|
x,
|
|
193
193
|
y
|
|
194
|
-
} = Helpers.scalePoint(
|
|
194
|
+
} = Helpers.scalePoint(assign({}, props, {
|
|
195
195
|
scale
|
|
196
196
|
}), datum);
|
|
197
197
|
const formattedDatum = formatDataFromDomain(datum, domain);
|
package/es/victory-errorbar.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { EventPropTypeInterface, StringOrNumberOrCallback, StringOrNumberOrList, VictoryDatableProps, VictoryCommonProps, VictoryMultiLabelableProps, VictoryStyleInterface, EventsMixinClass } from "victory-core";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type VictoryErrorBarTTargetType = "data" | "labels" | "parent";
|
|
4
|
+
export type ErrorType = StringOrNumberOrList | ((...args: any[]) => StringOrNumberOrList);
|
|
5
5
|
export interface VictoryErrorBarProps extends Omit<VictoryCommonProps, "polar">, VictoryDatableProps, VictoryMultiLabelableProps {
|
|
6
6
|
borderWidth?: number;
|
|
7
7
|
errorX?: ErrorType;
|
|
@@ -50,9 +50,9 @@ export declare const VictoryErrorBar: {
|
|
|
50
50
|
getAllEvents(props: any): any;
|
|
51
51
|
getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
|
|
52
52
|
renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
53
|
-
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement
|
|
53
|
+
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement;
|
|
54
54
|
renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
55
|
-
renderData(props: any, shouldRenderDatum?: (
|
|
55
|
+
renderData(props: any, shouldRenderDatum?: (datum: any) => boolean): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
56
56
|
context: unknown;
|
|
57
57
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
58
58
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
@@ -69,17 +69,17 @@ 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: Array<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[];
|
|
76
76
|
hasEvents: unknown;
|
|
77
77
|
events: unknown;
|
|
78
78
|
};
|
|
79
|
-
getBaseProps?(props: import("victory-core").EventMixinCommonProps):
|
|
80
|
-
role?:
|
|
79
|
+
getBaseProps?(props: import("victory-core").EventMixinCommonProps): import("victory-core").EventMixinCalculatedValues["baseProps"];
|
|
80
|
+
role?: import("victory-core").VictoryComponentRole;
|
|
81
81
|
expectedComponents?: string[] | undefined;
|
|
82
|
-
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode
|
|
82
|
+
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: Array<React.ReactNode>, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
|
|
83
83
|
animationWhitelist?: string[] | undefined;
|
|
84
84
|
} & typeof VictoryErrorBarBase;
|
|
85
85
|
export {};
|
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.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { VictoryCommonPrimitiveProps } from "victory-core";
|
|
2
|
+
import { VictoryCommonPrimitiveProps, EventsMixinClass } from "victory-core";
|
|
3
3
|
export interface ErrorBarProps extends VictoryCommonPrimitiveProps {
|
|
4
4
|
borderWidth?: number;
|
|
5
5
|
datum?: any;
|
|
@@ -28,5 +28,8 @@ export interface ErrorProps {
|
|
|
28
28
|
errorIndex: number;
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
+
interface ErrorBar extends EventsMixinClass<ErrorBarProps> {
|
|
32
|
+
}
|
|
31
33
|
export declare const ErrorBar: any;
|
|
34
|
+
export {};
|
|
32
35
|
//# sourceMappingURL=error-bar.d.ts.map
|
package/lib/error-bar.js
CHANGED
|
@@ -4,12 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.ErrorBar = void 0;
|
|
7
|
-
var _defaults2 = _interopRequireDefault(require("lodash/defaults"));
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _defaults = _interopRequireDefault(require("lodash/defaults"));
|
|
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),
|
|
@@ -113,7 +111,7 @@ const defaultProps = {
|
|
|
113
111
|
shapeRendering: "auto"
|
|
114
112
|
};
|
|
115
113
|
const ErrorBar = initialProps => {
|
|
116
|
-
const props = evaluateProps((0,
|
|
114
|
+
const props = evaluateProps((0, _defaults.default)({}, initialProps, defaultProps));
|
|
117
115
|
const {
|
|
118
116
|
groupComponent
|
|
119
117
|
} = props;
|
package/lib/helper-methods.js
CHANGED
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getDomain = exports.getData = exports.getBaseProps = void 0;
|
|
7
|
-
var
|
|
8
|
-
var
|
|
7
|
+
var _assign = _interopRequireDefault(require("lodash/assign"));
|
|
8
|
+
var _defaults = _interopRequireDefault(require("lodash/defaults"));
|
|
9
9
|
var _victoryCore = require("victory-core");
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
const getErrors = (props, datum, axis) => {
|
|
@@ -152,7 +152,7 @@ const getLabelProps = (dataProps, text, style) => {
|
|
|
152
152
|
return labelProps;
|
|
153
153
|
}
|
|
154
154
|
const tooltipTheme = theme && theme.tooltip || {};
|
|
155
|
-
return (0,
|
|
155
|
+
return (0, _defaults.default)({}, labelProps, _victoryCore.Helpers.omit(tooltipTheme, ["style"]));
|
|
156
156
|
};
|
|
157
157
|
const getBaseProps = (initialProps, fallbackProps) => {
|
|
158
158
|
const modifiedProps = _victoryCore.Helpers.modifyProps(initialProps, fallbackProps, "errorbar");
|
|
@@ -200,7 +200,7 @@ const getBaseProps = (initialProps, fallbackProps) => {
|
|
|
200
200
|
const {
|
|
201
201
|
x,
|
|
202
202
|
y
|
|
203
|
-
} = _victoryCore.Helpers.scalePoint((0,
|
|
203
|
+
} = _victoryCore.Helpers.scalePoint((0, _assign.default)({}, props, {
|
|
204
204
|
scale
|
|
205
205
|
}), datum);
|
|
206
206
|
const formattedDatum = formatDataFromDomain(datum, domain);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { EventPropTypeInterface, StringOrNumberOrCallback, StringOrNumberOrList, VictoryDatableProps, VictoryCommonProps, VictoryMultiLabelableProps, VictoryStyleInterface, EventsMixinClass } from "victory-core";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type VictoryErrorBarTTargetType = "data" | "labels" | "parent";
|
|
4
|
+
export type ErrorType = StringOrNumberOrList | ((...args: any[]) => StringOrNumberOrList);
|
|
5
5
|
export interface VictoryErrorBarProps extends Omit<VictoryCommonProps, "polar">, VictoryDatableProps, VictoryMultiLabelableProps {
|
|
6
6
|
borderWidth?: number;
|
|
7
7
|
errorX?: ErrorType;
|
|
@@ -50,9 +50,9 @@ export declare const VictoryErrorBar: {
|
|
|
50
50
|
getAllEvents(props: any): any;
|
|
51
51
|
getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
|
|
52
52
|
renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
53
|
-
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement
|
|
53
|
+
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement;
|
|
54
54
|
renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
55
|
-
renderData(props: any, shouldRenderDatum?: (
|
|
55
|
+
renderData(props: any, shouldRenderDatum?: (datum: any) => boolean): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
56
56
|
context: unknown;
|
|
57
57
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
58
58
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
@@ -69,17 +69,17 @@ 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: Array<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[];
|
|
76
76
|
hasEvents: unknown;
|
|
77
77
|
events: unknown;
|
|
78
78
|
};
|
|
79
|
-
getBaseProps?(props: import("victory-core").EventMixinCommonProps):
|
|
80
|
-
role?:
|
|
79
|
+
getBaseProps?(props: import("victory-core").EventMixinCommonProps): import("victory-core").EventMixinCalculatedValues["baseProps"];
|
|
80
|
+
role?: import("victory-core").VictoryComponentRole;
|
|
81
81
|
expectedComponents?: string[] | undefined;
|
|
82
|
-
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode
|
|
82
|
+
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: Array<React.ReactNode>, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
|
|
83
83
|
animationWhitelist?: string[] | undefined;
|
|
84
84
|
} & typeof VictoryErrorBarBase;
|
|
85
85
|
export {};
|
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.3",
|
|
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.3"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"victory-vendor": "*"
|
|
@@ -183,38 +183,10 @@
|
|
|
183
183
|
"pnpm-lock.yaml"
|
|
184
184
|
]
|
|
185
185
|
},
|
|
186
|
-
"format": {
|
|
187
|
-
"command": "nps format:pkg",
|
|
188
|
-
"files": [
|
|
189
|
-
"src/**",
|
|
190
|
-
"*.json",
|
|
191
|
-
"../../.prettierignore",
|
|
192
|
-
"../../.prettierrc.json"
|
|
193
|
-
],
|
|
194
|
-
"output": [],
|
|
195
|
-
"packageLocks": [
|
|
196
|
-
"pnpm-lock.yaml"
|
|
197
|
-
]
|
|
198
|
-
},
|
|
199
|
-
"format:fix": {
|
|
200
|
-
"command": "pnpm run format || nps format:pkg:fix",
|
|
201
|
-
"files": [
|
|
202
|
-
"src/**",
|
|
203
|
-
"*.json",
|
|
204
|
-
"../../.prettierignore",
|
|
205
|
-
"../../.prettierrc.json"
|
|
206
|
-
],
|
|
207
|
-
"output": [],
|
|
208
|
-
"packageLocks": [
|
|
209
|
-
"pnpm-lock.yaml"
|
|
210
|
-
]
|
|
211
|
-
},
|
|
212
186
|
"lint": {
|
|
213
|
-
"command": "
|
|
187
|
+
"command": "eslint src",
|
|
214
188
|
"files": [
|
|
215
|
-
"src/**"
|
|
216
|
-
"../../.eslintignore",
|
|
217
|
-
"../../.eslintrc.js"
|
|
189
|
+
"src/**"
|
|
218
190
|
],
|
|
219
191
|
"output": [],
|
|
220
192
|
"dependencies": [
|
|
@@ -227,11 +199,9 @@
|
|
|
227
199
|
]
|
|
228
200
|
},
|
|
229
201
|
"lint:fix": {
|
|
230
|
-
"command": "
|
|
202
|
+
"command": "eslint --fix src",
|
|
231
203
|
"files": [
|
|
232
|
-
"src/**"
|
|
233
|
-
"../../.eslintignore",
|
|
234
|
-
"../../.eslintrc.js"
|
|
204
|
+
"src/**"
|
|
235
205
|
],
|
|
236
206
|
"output": [],
|
|
237
207
|
"dependencies": [
|
|
@@ -275,8 +245,6 @@
|
|
|
275
245
|
"check": "wireit",
|
|
276
246
|
"types:check": "wireit",
|
|
277
247
|
"types:create": "wireit",
|
|
278
|
-
"format": "wireit",
|
|
279
|
-
"format:fix": "wireit",
|
|
280
248
|
"lint": "wireit",
|
|
281
249
|
"lint:fix": "wireit",
|
|
282
250
|
"jest": "wireit"
|
package/src/error-bar.tsx
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/* eslint-disable max-statements */
|
|
2
1
|
import React from "react";
|
|
3
|
-
import
|
|
2
|
+
import defaults from "lodash/defaults";
|
|
4
3
|
|
|
5
4
|
import {
|
|
6
5
|
Helpers,
|
|
@@ -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/helper-methods.tsx
CHANGED
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,
|
|
@@ -52,7 +51,7 @@ export interface VictoryErrorBarProps
|
|
|
52
51
|
style?: VictoryStyleInterface;
|
|
53
52
|
}
|
|
54
53
|
|
|
55
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-
|
|
54
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
56
55
|
interface VictoryErrorBarBase extends EventsMixinClass<VictoryErrorBarProps> {}
|
|
57
56
|
|
|
58
57
|
class VictoryErrorBarBase extends React.Component<VictoryErrorBarProps> {
|