@@ -599,28 +599,36 @@ class BasicMouseHandler implements DataGrid.IMouseHandler {
599
599
grid . scrollBy ( dx , dy ) ;
600
600
}
601
601
602
- /**
603
- * Convert a resize handle into a cursor.
604
- */
605
- cursorForHandle ( handle : ResizeHandle ) : string {
606
- return Private . cursorMap [ handle ] ;
607
- }
602
+ /**
603
+ * Convert a resize handle into a cursor.
604
+ */
605
+ cursorForHandle ( handle : ResizeHandle ) : string {
606
+ return Private . cursorMap [ handle ] ;
607
+ }
608
+
609
+ /**
610
+ * Get the current pressData
611
+ */
612
+ get pressData ( ) : PressData . PressData | null {
613
+ return this . _pressData ;
614
+ }
608
615
609
616
private _disposed = false ;
610
- private _pressData : Private . PressData | null ;
617
+ private _pressData : PressData . PressData | null = null ;
611
618
}
612
619
613
620
/**
614
621
* A type alias for the resize handle types.
615
622
*/
616
- export
617
- type ResizeHandle = 'top' | 'left' | 'right' | 'bottom' | 'none' ;
623
+ export
624
+ type ResizeHandle = 'top' | 'left' | 'right' | 'bottom' | 'none' ;
618
625
619
626
620
627
/**
621
- * The namespace for the module implementation details .
628
+ * The namespace for the pressdata .
622
629
*/
623
- namespace Private {
630
+ export
631
+ namespace PressData {
624
632
/**
625
633
* A type alias for the row resize data.
626
634
*/
@@ -744,7 +752,13 @@ namespace Private {
744
752
*/
745
753
export
746
754
type PressData = RowResizeData | ColumnResizeData | SelectData ;
755
+ }
747
756
757
+ /**
758
+ * The namespace for the module implementation details.
759
+ */
760
+ export
761
+ namespace Private {
748
762
/**
749
763
* Get the resize handle for a grid hit test.
750
764
*/
@@ -826,7 +840,7 @@ namespace Private {
826
840
* @param data - The select data of interest.
827
841
*/
828
842
export
829
- function autoselect ( grid : DataGrid , data : SelectData ) : void {
843
+ function autoselect ( grid : DataGrid , data : PressData . SelectData ) : void {
830
844
// Bail early if the timeout has been reset.
831
845
if ( data . timeout < 0 ) {
832
846
return ;
0 commit comments