higlass
Version:
HiGlass Hi-C / genomic / large data viewer
96 lines (95 loc) • 3.27 kB
TypeScript
export default Annotations2dTrack;
declare class Annotations2dTrack extends TiledPixiTrack<any> {
constructor(context: any, options: any);
drawnAnnotations: {};
drawnAnnoGfx: {};
selectedAnno: {
graphics: any;
uid: any;
} | null;
publish: any;
subscribe: any;
unsubscribe: any;
sT: number;
annoSelectedBound: (uid: any) => void;
get minX(): number;
get maxX(): any;
get minY(): number;
get maxY(): any;
get maxSize(): any;
/**
* Point projection from the data to the view (pixel) coordinates
* @param {number} x Data X coordinate
* @param {number} y Data Y coordinate
* @return {array} Tuple [x,y] containing the translated view coordinates.
*/
projection([x, y]: number): array;
/**
* The local tile identifier
*
* @param {Array} tile Array containing [zoomLevel, xPos, yPos]
* @return {String} Joined ID string
*/
tileToLocalId(tile: any[]): string;
/**
* The tile identifier used on the server
*
* @param {Array} tile Array containing [zoomLevel, xPos, yPos]
* @return {String} Joined ID string
*/
tileToRemoteId(tile: any[]): string;
localToRemoteId(remoteId: any): any;
/**
* Set which tiles are visible right now.
*
* @param tiles: A set of tiles which will be considered the currently visible
* tile positions.
*/
setVisibleTiles(tilePositions: any): void;
calculateVisibleTiles(): void;
zoomLevel: number | undefined;
xTiles: number[] | undefined;
yTiles: number[] | undefined;
drawTile(tile: any, force?: boolean, silent?: boolean): void;
prepAnnotation(graphics: any, uid: any, startX: any, startY: any, width: any, height: any, td: any): {
graphics: any;
id: any;
uid: any;
annotation: {
x: any;
y: any;
width: any;
height: any;
};
dataPos: any[];
importance: any;
info: any;
};
drawAnnotation({ graphics, id, uid, annotation, dataPos, importance, info }: {
graphics: any;
id: any;
uid: any;
annotation: any;
dataPos: any;
importance: any;
info: any;
}, silent: any): void;
_drawRect(graphics: any, viewPos: any, uid: any): void;
context(graphics: any, viewPos: any, uid: any): (proc: any) => any;
click(graphics: any, viewPos: any, uid: any, event: any, payload: any): void;
mouseDown(): void;
mouseUp(graphics: any, viewPos: any, uid: any, event: any, payload: any): void;
hover(graphics: any, viewPos: any, uid: any): void;
hoveredAnno: any;
focus(graphics: any, viewPos: any, uid: any): void;
blur(graphics: any, viewPos: any, uid: any): void;
select(graphics: any, viewPos: any, uid: any, silent?: boolean): void;
unselect(): void;
annoSelected(uid: any): void;
exportSVG(): HTMLElement[];
setBorderStyle(graphics: any, color?: any, width?: any, alpha?: any): void;
setFill(graphics: any, color?: any, alpha?: any): void;
setPosition(newPosition: any): void;
zoomed(newXScale: any, newYScale: any): void;
}
import TiledPixiTrack from './TiledPixiTrack';