starchild-widget
Version:
Starchild Widget
20 lines • 851 B
TypeScript
import { Position, Size, ComponentType } from '../../types';
/**
* Position utility functions
* Note: Storage functionality has been migrated to position store, only calculation-related utility functions are kept here
*/
export declare const getDefaultComponentPosition: (componentType: ComponentType) => Position;
export declare const constrainToViewport: (position: Position, elementSize: {
width: number;
height: number;
}) => Position;
export declare const getDefaultSearchSize: () => Size;
export declare const getSearchSizeConstraints: () => {
minWidth: number;
minHeight: number;
maxWidth: number;
maxHeight: number;
};
export declare const constrainSize: (size: Size) => Size;
export declare const getCenterPositionForSize: (size: Size, currentPosition?: Position) => Position;
//# sourceMappingURL=position.d.ts.map