@zag-js/splitter
Version:
Core logic for the splitter widget implemented as a state machine
19 lines (15 loc) • 533 B
TypeScript
import { NormalizedPanelData } from '../splitter.types.js';
import '@zag-js/core';
import '@zag-js/types';
import './registry.js';
/**
* 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 };