@@ -3,7 +3,6 @@ import { Image, Path } from '@antv/g';
3
3
import type { PathArray } from '@antv/util' ;
4
4
import { isFunction , pick } from '@antv/util' ;
5
5
import type {
6
- BaseElementStyleProps ,
7
6
Edge ,
8
7
EdgeArrowStyleProps ,
9
8
EdgeBadgeStyleProps ,
@@ -26,7 +25,7 @@ import * as Symbol from '../../utils/symbol';
26
25
import { getWordWrapWidthByEnds } from '../../utils/text' ;
27
26
import { BaseElement } from '../base-element' ;
28
27
import { effect } from '../effect' ;
29
- import type { BadgeStyleProps , LabelStyleProps } from '../shapes' ;
28
+ import type { BadgeStyleProps , BaseShapeStyleProps , LabelStyleProps } from '../shapes' ;
30
29
import { Badge , Label } from '../shapes' ;
31
30
32
31
/**
@@ -35,7 +34,7 @@ import { Badge, Label } from '../shapes';
35
34
* <en/> Base style properties of the edge
36
35
*/
37
36
export interface BaseEdgeStyleProps
38
- extends BaseElementStyleProps ,
37
+ extends BaseShapeStyleProps ,
39
38
Prefix < 'label' , EdgeLabelStyleProps > ,
40
39
Prefix < 'halo' , PathStyleProps > ,
41
40
Prefix < 'badge' , EdgeBadgeStyleProps > ,
@@ -219,13 +218,13 @@ export abstract class BaseEdge extends BaseElement<BaseEdgeStyleProps> implement
219
218
}
220
219
221
220
protected get sourceNode ( ) {
222
- const { context , sourceNode : source } = this . parsedAttributes ;
223
- return context . element ! . getElement < Node > ( source ) ! ;
221
+ const { sourceNode : source } = this . parsedAttributes ;
222
+ return this . context . element ! . getElement < Node > ( source ) ! ;
224
223
}
225
224
226
225
protected get targetNode ( ) {
227
- const { context , targetNode : target } = this . parsedAttributes ;
228
- return context . element ! . getElement < Node > ( target ) ! ;
226
+ const { targetNode : target } = this . parsedAttributes ;
227
+ return this . context . element ! . getElement < Node > ( target ) ! ;
229
228
}
230
229
231
230
protected getKeyStyle ( attributes : ParsedBaseEdgeStyleProps ) : PathStyleProps {
0 commit comments