Handle

Source on GitHub

The Handle type represents the attributes of a handle.

export type Handle = {
  id?: string | null;
  nodeId: string;
  x: number;
  y: number;
  position: Position;
  type: 'source' | 'target';
  width: number;
  height: number;
};

Fields

#id?
string | null
#nodeId
string
#x
number
#y
number
#width
number
#height
number
#type
"source" | "target"
#position
Position