victory-brush-line 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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # victory-brush-line
2
2
 
3
+ ## 36.8.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Migrate victory-native to TypeScript ([#2739](https://github.com/FormidableLabs/victory/pull/2739))
8
+
3
9
  ## 36.8.5
4
10
 
5
11
  ### Patch Changes
@@ -29,7 +29,7 @@ export interface VictoryBrushLineProps {
29
29
  type?: string;
30
30
  width?: number;
31
31
  }
32
- export declare class VictoryBrushLine extends React.Component<VictoryBrushLineProps> {
32
+ export declare class VictoryBrushLine<T extends VictoryBrushLineProps> extends React.Component<T> {
33
33
  static propTypes: {
34
34
  allowDrag: PropTypes.Requireable<boolean>;
35
35
  allowDraw: PropTypes.Requireable<boolean>;
@@ -147,7 +147,7 @@ export declare class VictoryBrushLine extends React.Component<VictoryBrushLinePr
147
147
  };
148
148
  };
149
149
  }[];
150
- onMouseUp(evt: any, targetProps: any): {
150
+ onMouseUp: (evt: any, targetProps: any) => {
151
151
  mutation: () => {
152
152
  isPanning: boolean;
153
153
  isSelecting: boolean;
@@ -157,7 +157,7 @@ export declare class VictoryBrushLine extends React.Component<VictoryBrushLinePr
157
157
  activeBrushes: any;
158
158
  };
159
159
  }[];
160
- onMouseLeave(evt: any, targetProps: any): {
160
+ onMouseLeave: (evt: any, targetProps: any) => {
161
161
  mutation: () => {
162
162
  isPanning: boolean;
163
163
  isSelecting: boolean;
@@ -29,7 +29,7 @@ export interface VictoryBrushLineProps {
29
29
  type?: string;
30
30
  width?: number;
31
31
  }
32
- export declare class VictoryBrushLine extends React.Component<VictoryBrushLineProps> {
32
+ export declare class VictoryBrushLine<T extends VictoryBrushLineProps> extends React.Component<T> {
33
33
  static propTypes: {
34
34
  allowDrag: PropTypes.Requireable<boolean>;
35
35
  allowDraw: PropTypes.Requireable<boolean>;
@@ -147,7 +147,7 @@ export declare class VictoryBrushLine extends React.Component<VictoryBrushLinePr
147
147
  };
148
148
  };
149
149
  }[];
150
- onMouseUp(evt: any, targetProps: any): {
150
+ onMouseUp: (evt: any, targetProps: any) => {
151
151
  mutation: () => {
152
152
  isPanning: boolean;
153
153
  isSelecting: boolean;
@@ -157,7 +157,7 @@ export declare class VictoryBrushLine extends React.Component<VictoryBrushLinePr
157
157
  activeBrushes: any;
158
158
  };
159
159
  }[];
160
- onMouseLeave(evt: any, targetProps: any): {
160
+ onMouseLeave: (evt: any, targetProps: any) => {
161
161
  mutation: () => {
162
162
  isPanning: boolean;
163
163
  isSelecting: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-brush-line",
3
- "version": "36.8.5",
3
+ "version": "36.8.6",
4
4
  "description": "Interactive Brush Line Component for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -23,7 +23,7 @@
23
23
  "lodash": "^4.17.19",
24
24
  "prop-types": "^15.8.1",
25
25
  "react-fast-compare": "^3.2.0",
26
- "victory-core": "^36.8.5"
26
+ "victory-core": "^36.8.6"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "react": ">=16.6.0"
@@ -174,7 +174,9 @@ const fallbackProps = {
174
174
  },
175
175
  };
176
176
 
177
- export class VictoryBrushLine extends React.Component<VictoryBrushLineProps> {
177
+ export class VictoryBrushLine<
178
+ T extends VictoryBrushLineProps,
179
+ > extends React.Component<T> {
178
180
  static propTypes = {
179
181
  allowDrag: PropTypes.bool,
180
182
  allowDraw: PropTypes.bool,
@@ -466,7 +468,7 @@ export class VictoryBrushLine extends React.Component<VictoryBrushLineProps> {
466
468
  }
467
469
  return [];
468
470
  },
469
- onMouseUp(evt, targetProps) {
471
+ onMouseUp: (evt, targetProps) => {
470
472
  const {
471
473
  onBrushDomainChange,
472
474
  brushDomain,
@@ -494,7 +496,7 @@ export class VictoryBrushLine extends React.Component<VictoryBrushLineProps> {
494
496
  },
495
497
  ];
496
498
  },
497
- onMouseLeave(evt, targetProps) {
499
+ onMouseLeave: (evt, targetProps) => {
498
500
  const { brushDomain } = targetProps;
499
501
  return [
500
502
  {