import { TextLayer , TextLayerProps } from '@deck.gl/layers' ; import { GeomNode } from 'msagl-js/dist/src' ; export default class NodeLayer < D , P extends TextLayerProps < D > = TextLayerProps < D > > extends TextLayer < D , P > { getBoundingRect ( node ) { return [ - node . width / 2 , - node . height / 2 , node . width , node . height ] ; } }