import { ComputedRef, UnwrapRef, Ref } from 'vue'; import { ShapeStyle, NodeLabelStyle, OppositeNode } from '../common/configs'; export interface NodeStateDatum { id: string; shape: ComputedRef; staticShape: ComputedRef; label: ComputedRef; labelText: ComputedRef; selected: boolean; hovered: boolean; draggable: ComputedRef; selectable: ComputedRef; zIndex: ComputedRef; oppositeNodeIds: Ref>; oppositeNodes: ComputedRef>; } export type NodeState = UnwrapRef; export type NodeStates = Record;