import { DEFAULT_CONTAINER_HEIGHT, DEFAULT_CONTAINER_WIDTH } from "./container.js";
const COLLAPSED_NODE_SIZE = 96;
const EXPANDED_RECTANGLE_WIDTH = 288;
const getCollapsedShape = (originalShape)=>'rectangle' === originalShape ? 'square' : originalShape;
const getExpandedShape = (collapsedShape)=>'square' === collapsedShape ? 'rectangle' : collapsedShape ?? void 0;
const getCollapsedSize = ()=>({
        width: COLLAPSED_NODE_SIZE,
        height: COLLAPSED_NODE_SIZE
    });
const getExpandedSize = (shape)=>{
    if ('container' === shape) return {
        width: DEFAULT_CONTAINER_WIDTH,
        height: DEFAULT_CONTAINER_HEIGHT
    };
    return {
        width: 'rectangle' === shape ? EXPANDED_RECTANGLE_WIDTH : COLLAPSED_NODE_SIZE,
        height: COLLAPSED_NODE_SIZE
    };
};
export { COLLAPSED_NODE_SIZE, EXPANDED_RECTANGLE_WIDTH, getCollapsedShape, getCollapsedSize, getExpandedShape, getExpandedSize };
