1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-14 11:23:17 +02:00
pigallery2/frontend/app/model/IRenderable.ts
2017-07-10 22:00:22 +02:00

17 lines
350 B
TypeScript

export interface IRenderable {
getDimension(): Dimension;
}
export interface Dimension {
top: number;
left: number;
width: number;
height: number;
}
export module Dimension {
export const toString = (dim: Dimension) => {
return {top: dim.top + "px", left: dim.left + "px", width: dim.width + "px", height: dim.height + "px"};
}
}