@@ -20,7 +20,8 @@ import {
2020 normalizeGraphLayerStylesheet ,
2121 type GraphLayerEdgeStyle ,
2222 type GraphLayerNodeStyle ,
23- type GraphLayerStylesheet
23+ type GraphLayerStylesheet ,
24+ type NormalizedGraphLayerStylesheet
2425} from '../style/graph-layer-stylesheet' ;
2526
2627// node layers
@@ -185,18 +186,18 @@ export class GraphLayer extends CompositeLayer<GraphLayerProps> {
185186 this . _removeGraphEngine ( ) ;
186187 }
187188
188- private _getResolvedStylesheet ( ) {
189+ private _getResolvedStylesheet ( ) : NormalizedGraphLayerStylesheet {
189190 const { stylesheet, nodeStyle, edgeStyle} = this . props ;
190191
191192 const usingNodeStyle = typeof nodeStyle !== 'undefined' ;
192193 if ( usingNodeStyle && ! NODE_STYLE_DEPRECATION_WARNED ) {
193- log . warn ( NODE_STYLE_DEPRECATION_MESSAGE ) ( ) ;
194+ log . warn ( NODE_STYLE_DEPRECATION_MESSAGE ) ;
194195 NODE_STYLE_DEPRECATION_WARNED = true ;
195196 }
196197
197198 const usingEdgeStyle = typeof edgeStyle !== 'undefined' ;
198199 if ( usingEdgeStyle && ! EDGE_STYLE_DEPRECATION_WARNED ) {
199- log . warn ( EDGE_STYLE_DEPRECATION_MESSAGE ) ( ) ;
200+ log . warn ( EDGE_STYLE_DEPRECATION_MESSAGE ) ;
200201 EDGE_STYLE_DEPRECATION_WARNED = true ;
201202 }
202203
@@ -241,7 +242,7 @@ export class GraphLayer extends CompositeLayer<GraphLayerProps> {
241242 const { pickable = true , visible = true , data = ( nodes ) => nodes , ...restStyle } = style ;
242243 const LayerType = NODE_LAYER_MAP [ style . type ] ;
243244 if ( ! LayerType ) {
244- log . error ( `Invalid node type: ${ style . type } ` ) ( ) ;
245+ log . error ( `Invalid node type: ${ style . type } ` ) ;
245246 throw new Error ( `Invalid node type: ${ style . type } ` ) ;
246247 }
247248 const stylesheet = new GraphStyleEngine ( restStyle , {
@@ -304,7 +305,7 @@ export class GraphLayer extends CompositeLayer<GraphLayerProps> {
304305 const decoratorLayers = decorators . filter ( Boolean ) . flatMap ( ( decoratorStyle , idx2 ) => {
305306 const DecoratorLayer = EDGE_DECORATOR_LAYER_MAP [ decoratorStyle . type ] ;
306307 if ( ! DecoratorLayer ) {
307- log . error ( `Invalid edge decorator type: ${ decoratorStyle . type } ` ) ( ) ;
308+ log . error ( `Invalid edge decorator type: ${ decoratorStyle . type } ` ) ;
308309 throw new Error ( `Invalid edge decorator type: ${ decoratorStyle . type } ` ) ;
309310 }
310311 const decoratorStylesheet = new GraphStyleEngine ( decoratorStyle , {
0 commit comments