Update API to use IViewportRange and IViewportCellPosition

This commit is contained in:
Jon Bockhorst
2019-10-17 12:25:42 -05:00
parent 040f9f49d9
commit 08475eb495
3 changed files with 29 additions and 21 deletions
+9 -6
View File
@@ -43,15 +43,18 @@ export interface IViewport extends IDisposable {
onThemeChange(colors: IColorSet): void;
}
export interface ILinkLocation {
startColumn: number;
startRow: number;
endColumn: number;
endRow: number;
export interface IViewportRange {
start: IViewportCellPosition;
end: IViewportCellPosition;
}
export interface IViewportCellPosition {
col: number;
row: number;
}
export type LinkMatcherHandler = (event: MouseEvent, uri: string) => void;
export type LinkMatcherHoverTooltipCallback = (event: MouseEvent, uri: string, position: ILinkLocation) => void;
export type LinkMatcherHoverTooltipCallback = (event: MouseEvent, uri: string, position: IViewportRange) => void;
export type LinkMatcherValidationCallback = (uri: string, callback: (isValid: boolean) => void) => void;
export interface ILinkMatcher {