@zag-js/splitter
Version:
Core logic for the splitter widget implemented as a state machine
19 lines (15 loc) • 535 B
text/typescript
import { NormalizedPanelData } from '../splitter.types.mjs';
import '@zag-js/core';
import '@zag-js/types';
import './registry.mjs';
/**
* This code was modified from react-resizable-panels by Brian Vaughn
* @see https://github.com/bvaughn/react-resizable-panels
*/
declare function preserveFixedPanelSizes({ panels, prevLayout, prevGroupSize, nextGroupSize, }: {
panels: NormalizedPanelData[];
prevLayout: number[];
prevGroupSize: number;
nextGroupSize: number;
}): number[];
export { preserveFixedPanelSizes };