@@ -135,7 +135,7 @@ class FeatherGridMouseHandler extends BasicMouseHandler {
135135 const hitRegion = hit . region ;
136136 const buttonSize = HeaderRenderer . iconWidth * 1.5 ;
137137 const buttonPadding = HeaderRenderer . buttonPadding ;
138- let accel = Platform . accelKey ( event ) ;
138+ const accel = Platform . accelKey ( event ) ;
139139
140140 this . _mouseIsDown = true ;
141141
@@ -178,7 +178,7 @@ class FeatherGridMouseHandler extends BasicMouseHandler {
178178 const config = Private . createCellConfigObject ( grid , hit ) ;
179179
180180 // Retrieve cell renderer.
181- let renderer = grid . cellRenderers . get ( config ! ) ;
181+ const renderer = grid . cellRenderers . get ( config ! ) ;
182182
183183 // Only process hyperlink renderers.
184184 if ( renderer instanceof HyperlinkRenderer ) {
@@ -193,10 +193,13 @@ class FeatherGridMouseHandler extends BasicMouseHandler {
193193 // Emit message to open the hyperlink only if user hit Ctrl+Click.
194194 if ( accel ) {
195195 // Emit event that will be caught in case window.open is blocked
196- window . postMessage ( {
197- id : 'ipydatagrid::hyperlinkclick' ,
198- url,
199- } , '*' ) ;
196+ window . postMessage (
197+ {
198+ id : 'ipydatagrid::hyperlinkclick' ,
199+ url,
200+ } ,
201+ '*' ,
202+ ) ;
200203 // Reset cursor default after clicking
201204 const cursor = this . cursorForHandle ( 'none' ) ;
202205 grid . viewport . node . style . cursor = cursor ;
@@ -283,11 +286,11 @@ export class FeatherGrid extends Widget {
283286 messageHook ( handler : IMessageHandler , msg : Message ) : boolean {
284287 if ( handler === this . grid . viewport ) {
285288 // //@ts -ignore added so we don't have to add basicmousehandler.ts fork
286- const mouseHandler = this . grid
287- . mouseHandler as unknown as FeatherGridMouseHandler ;
289+ const mouseHandler = ( this . grid
290+ . mouseHandler as unknown ) as FeatherGridMouseHandler ;
288291
289292 if ( msg . type === 'column-resize-request' && mouseHandler . mouseIsDown ) {
290- const resizeMsg = msg as unknown as FeatherGridColumnResizeMessage ;
293+ const resizeMsg = ( msg as unknown ) as FeatherGridColumnResizeMessage ;
291294 const columnName : string = this . dataModel . columnIndexToName (
292295 resizeMsg . index ,
293296 resizeMsg . region ,
@@ -1016,8 +1019,7 @@ export class FeatherGrid extends Widget {
10161019 iconClass :
10171020 'ipydatagrid-filterMenuIcon ipydatagrid-filterMenuIcon-sortAsc' ,
10181021 execute : ( args ) : void => {
1019- const cellClick : FeatherGridContextMenu . CommandArgs =
1020- args as FeatherGridContextMenu . CommandArgs ;
1022+ const cellClick : FeatherGridContextMenu . CommandArgs = args as FeatherGridContextMenu . CommandArgs ;
10211023 const colIndex = this . _dataModel . getSchemaIndex (
10221024 cellClick . region ,
10231025 cellClick . columnIndex ,
@@ -1035,8 +1037,7 @@ export class FeatherGrid extends Widget {
10351037 iconClass :
10361038 'ipydatagrid-filterMenuIcon ipydatagrid-filterMenuIcon-sortDesc' ,
10371039 execute : ( args ) => {
1038- const cellClick : FeatherGridContextMenu . CommandArgs =
1039- args as FeatherGridContextMenu . CommandArgs ;
1040+ const cellClick : FeatherGridContextMenu . CommandArgs = args as FeatherGridContextMenu . CommandArgs ;
10401041 const colIndex = this . _dataModel . getSchemaIndex (
10411042 cellClick . region ,
10421043 cellClick . columnIndex ,
@@ -1066,8 +1067,8 @@ export class FeatherGrid extends Widget {
10661067 label : 'Clear Filters in All Columns' ,
10671068 mnemonic : - 1 ,
10681069 execute : ( args ) => {
1069- const activeTransforms : Transform . TransformSpec [ ] =
1070- this . _dataModel . activeTransforms ;
1070+ const activeTransforms : Transform . TransformSpec [ ] = this . _dataModel
1071+ . activeTransforms ;
10711072 const newTransforms = activeTransforms . filter (
10721073 ( val ) => val . type !== 'filter' ,
10731074 ) ;
0 commit comments