@nekobird/controls
Version:
A collection of opinionated user-interface controls.
17 lines (16 loc) • 533 B
TypeScript
import { Point } from '@nekobird/rocket';
import { SortableList } from './sortable-list';
export declare class ActiveItem {
sortable: SortableList;
element?: HTMLElement;
pointToItemOffset?: Point;
currentGroup?: HTMLElement;
isActive: boolean;
constructor(sortable: SortableList);
create(item: HTMLElement): void;
setInitialPointToItemOffset({ x, y }: Point): void;
move(pointer: Point): void;
updateCurrentGroup(): void;
destroy(): void;
readonly activeGroup: HTMLElement | false;
}