You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
378 B

4 months ago
import type { NodeLikeData } from '../types';
/**
* <zh/> /
*
* <en/> Determine whether the node/combo is collapsed
* @param nodeLike - <zh/>/ | <en/>Node/Combo data
* @returns <zh/> | <en/>Whether it is collapsed
*/
export function isCollapsed(nodeLike: NodeLikeData) {
return !!nodeLike.style?.collapsed;
}