@@ -8,20 +8,20 @@ import { drawOnCanvas, renderSVG } from "./EdgeCoordinateV3";
8
8
import { first , functor , isDefined , last , noop , strokeDashTypes } from "../utils" ;
9
9
10
10
interface EdgeIndicatorProps {
11
- yAccessor ?: any ; // func
12
- type ?: "horizontal" ;
13
- className ?: string ;
14
- fill ?: string | any ; // func
15
- lineStroke ?: string | any ; // func
16
- textFill ?: string | any ; // func
17
- itemType : "first" | "last" ;
18
- orient ?: "left" | "right" ;
19
- edgeAt ?: "left" | "right" ;
20
- displayFormat ?: any ; // func
21
- rectHeight ?: number ;
22
- rectWidth ?: number ;
23
- arrowWidth ?: number ;
24
- lineStrokeDasharray ?: strokeDashTypes ;
11
+ readonly yAccessor ?: any ; // func
12
+ readonly type ?: "horizontal" ;
13
+ readonly className ?: string ;
14
+ readonly fill ?: string | any ; // func
15
+ readonly lineStroke ?: string | any ; // func
16
+ readonly textFill ?: string | any ; // func
17
+ readonly itemType : "first" | "last" ;
18
+ readonly orient ?: "left" | "right" ;
19
+ readonly edgeAt ?: "left" | "right" ;
20
+ readonly displayFormat ?: any ; // func
21
+ readonly rectHeight ?: number ;
22
+ readonly rectWidth ?: number ;
23
+ readonly arrowWidth ?: number ;
24
+ readonly lineStrokeDasharray ?: strokeDashTypes ;
25
25
}
26
26
27
27
export class EdgeIndicator extends React . Component < EdgeIndicatorProps > {
@@ -64,7 +64,7 @@ export class EdgeIndicator extends React.Component<EdgeIndicatorProps> {
64
64
) ;
65
65
}
66
66
67
- private readonly drawOnCanvas = ( ctx , moreProps ) => {
67
+ private readonly drawOnCanvas = ( ctx : CanvasRenderingContext2D , moreProps ) => {
68
68
const edge = this . helper ( this . props , moreProps ) ;
69
69
const props = {
70
70
...this . props ,
0 commit comments