@@ -51,8 +51,8 @@ export class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpec> exten
5151 static readonly mark : SeriesMarkMap = sankeySeriesMark ;
5252 static readonly builtInTheme = { sankey } ;
5353
54- private _nodeMark : IRectMark ;
55- private _linkMark : ILinkPathMark ;
54+ protected _nodeMark : IRectMark ;
55+ protected _linkMark : ILinkPathMark ;
5656
5757 private _nodeLayoutZIndex = LayoutZIndex . Node ;
5858 private _labelLayoutZIndex = LayoutZIndex . Label ;
@@ -65,7 +65,7 @@ export class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpec> exten
6565 protected _categoryField ! : string ;
6666 private _colorScale : IBaseScale ;
6767 private _nodeList : ( string | number ) [ ] ;
68- private _needClear : boolean ;
68+ protected _needClear : boolean ;
6969
7070 get direction ( ) {
7171 return this . _spec . direction ?? 'horizontal' ;
@@ -500,7 +500,7 @@ export class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpec> exten
500500 }
501501 } ;
502502
503- protected _handleClearEmpty = ( ) => {
503+ protected _handleClearEmpty ( ) {
504504 if ( ! this . _needClear ) {
505505 return ;
506506 }
@@ -529,9 +529,9 @@ export class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpec> exten
529529 } ) ;
530530
531531 this . _needClear = false ;
532- } ;
532+ }
533533
534- protected _handleNodeAdjacencyClick = ( graphic : IMarkGraphic ) => {
534+ protected _handleNodeAdjacencyClick ( graphic : IMarkGraphic ) {
535535 const nodeDatum = getDatumOfGraphic ( graphic ) as Datum ;
536536 const highlightNodes : string [ ] = [ nodeDatum . key ] ;
537537
@@ -573,9 +573,9 @@ export class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpec> exten
573573 }
574574
575575 this . _needClear = true ;
576- } ;
576+ }
577577
578- protected _handleLinkAdjacencyClick = ( graphic : IMarkGraphic ) => {
578+ protected _handleLinkAdjacencyClick ( graphic : IMarkGraphic ) {
579579 const curLinkDatum = getDatumOfGraphic ( graphic ) as Datum ;
580580 const highlightNodes : string [ ] = [ curLinkDatum . source , curLinkDatum . target ] ;
581581
@@ -601,9 +601,9 @@ export class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpec> exten
601601 }
602602
603603 this . _needClear = true ;
604- } ;
604+ }
605605
606- protected _handleNodeRelatedClick = ( graphic : IMarkGraphic ) => {
606+ protected _handleNodeRelatedClick ( graphic : IMarkGraphic ) {
607607 const nodeDatum = getDatumOfGraphic ( graphic ) as Datum ;
608608 const allNodeElements = this . _nodeMark . getGraphics ( ) ;
609609
@@ -824,9 +824,9 @@ export class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpec> exten
824824 }
825825
826826 this . _needClear = true ;
827- } ;
827+ }
828828
829- protected _handleLinkRelatedClick = ( graphic : IMarkGraphic ) => {
829+ protected _handleLinkRelatedClick ( graphic : IMarkGraphic ) {
830830 const allNodeElements = this . _nodeMark . getGraphics ( ) ;
831831
832832 if ( ! allNodeElements || ! allNodeElements . length ) {
@@ -966,9 +966,9 @@ export class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpec> exten
966966 }
967967
968968 this . _needClear = true ;
969- } ;
969+ }
970970
971- protected _highLightElements ( graphics : IMarkGraphic [ ] , highlightNodes : string [ ] ) {
971+ protected _highLightElements ( graphics : IMarkGraphic [ ] , highlightNodes : ( string | number ) [ ] ) {
972972 if ( ! graphics || ! graphics . length ) {
973973 return ;
974974 }
0 commit comments