UNPKG

@xlit/grid

Version:

xlit draggable grid layout custom element

13 lines (12 loc) 311 B
import { Rect } from './types.js'; export declare class Item implements Rect { readonly key: string; static nextId(): string; x: number; y: number; w: number; h: number; constructor(key: string, { x, y, w, h }?: Partial<Rect>); clone(): Item; collide(item: Item): boolean; }