Basic link support using mouse zone manager

This commit is contained in:
Daniel Imms
2017-09-03 11:20:29 -07:00
parent 2d1a1bfb76
commit 5619abe12d
5 changed files with 186 additions and 210 deletions
+11
View File
@@ -0,0 +1,11 @@
export interface IMouseZoneManager {
add(zone: IMouseZone): void;
clearAll(): void;
}
export interface IMouseZone {
x1: number;
x2: number;
hoverCallback: (e: MouseEvent) => any;
clickCallback: (e: MouseEvent) => any;
}