You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
890 B
TypeScript
14 lines
890 B
TypeScript
3 months ago
|
import { ContainerProvider, ParentSize, ResizingHandle } from './types';
|
||
|
export declare const IDENTITY: unique symbol;
|
||
|
export declare function getElSize(el: Element): {
|
||
|
width: number;
|
||
|
height: number;
|
||
|
};
|
||
|
export declare function addEvent<K extends keyof HTMLElementEventMap>(el: HTMLElement, event: K, handler: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any): void;
|
||
|
export declare function removeEvent<K extends keyof HTMLElementEventMap>(el: HTMLElement, event: K, handler: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any): void;
|
||
|
export declare function filterHandles(handles: ResizingHandle[]): ResizingHandle[];
|
||
|
export declare function getId(): string;
|
||
|
export declare function getReferenceLineMap(containerProvider: ContainerProvider, parentSize: ParentSize, id?: string): Record<"col" | "row", {
|
||
|
[propName: number]: Record<"max" | "value" | "min", number>;
|
||
|
}>;
|