webamp
Version:
Winamp 2 implemented in HTML5 and JavaScript
24 lines (23 loc) • 517 B
TypeScript
import { WindowInfo } from "./types";
interface PositionDiff {
[key: string]: {
x: number;
y: number;
};
}
export interface SizeDiff {
[key: string]: {
width: number;
height: number;
};
}
export declare function getPositionDiff(graph: Graph, sizeDiff: SizeDiff): PositionDiff;
interface Edges {
below?: string;
right?: string;
}
export interface Graph {
[id: string]: Edges;
}
export declare function generateGraph(windows: WindowInfo[]): Graph;
export {};