UNPKG

aurelia-split-pane

Version:
19 lines (18 loc) 856 B
import { ComponentAttached, ComponentDetached, ComponentUnbind, TemplatingEngine } from 'aurelia-framework'; export declare type Direction = 'horizontal' | 'vertical'; export declare class SplitPane implements ComponentAttached, ComponentDetached, ComponentUnbind { direction: Direction; private readonly dividers; private readonly element; private readonly templatingEngine; constructor(element: any, templatingEngine: TemplatingEngine); attached(): void; detached(): void; unbind(): void; /** * Iterates through the element's children and sets each <code>flex-basis</code> style property to the * size of the [bounding rectangle]{@link Element#getBoundingClientRect}, to prepare for the property being * modified during a [drag]{@link SplitPaneDivider#drag}. */ setChildrenFlexBasis(): void; }