Skip to content

Commit

Permalink
DataGrid mouse handler: Expose pressData for subclasses
Browse files Browse the repository at this point in the history
Signed-off-by: martinRenou <[email protected]>
  • Loading branch information
martinRenou committed Jan 4, 2021
1 parent b268386 commit 21aa0e2
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions packages/datagrid/src/basicmousehandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -599,12 +599,19 @@ class BasicMouseHandler implements DataGrid.IMouseHandler {
grid.scrollBy(dx, dy);
}

/**
* Convert a resize handle into a cursor.
*/
cursorForHandle(handle: ResizeHandle): string {
return Private.cursorMap[handle];
}
/**
* Convert a resize handle into a cursor.
*/
cursorForHandle(handle: ResizeHandle): string {
return Private.cursorMap[handle];
}

/**
* Get the current pressData
*/
get pressData (): Private.PressData | null {
return this._pressData;
}

private _disposed = false;
private _pressData: Private.PressData | null;
Expand All @@ -613,8 +620,8 @@ cursorForHandle(handle: ResizeHandle): string {
/**
* A type alias for the resize handle types.
*/
export
type ResizeHandle = 'top' | 'left' | 'right' | 'bottom' | 'none';
export
type ResizeHandle = 'top' | 'left' | 'right' | 'bottom' | 'none';


/**
Expand Down

0 comments on commit 21aa0e2

Please sign in to comment.