InternalNode<NodeType>

内部ノードはユーザーノードの拡張です。内部的に使用され、ユーザーには直接公開されない追加情報(positionAbsolutehandleBoundsなど)が含まれています。

export type InternalNode<NodeType extends Node = Node> = {
  id: string;
  position: XYPosition;
  data: Node['data'];
  type?: Node['type'];
  sourcePosition?: Position;
  targetPosition?: Position;
  hidden?: boolean;
  selected?: boolean;
  dragging?: boolean;
  draggable?: boolean;
  selectable?: boolean;
  connectable?: boolean;
  resizing?: boolean;
  deletable?: boolean;
  dragHandle?: string;
  width?: number | null;
  height?: number | null;
  parentId?: string;
  zIndex?: number;
  extent?: 'parent' | CoordinateExtent;
  expandParent?: boolean;
  ariaLabel?: string;
  origin?: NodeOrigin;
  style?: string;
  class?: string;
  measured: {
    width?: number;
    height?: number;
  };
  internals: {
    positionAbsolute: XYPosition;
    z: number;
    /** Holds a reference to the original node object provided by the user.
     * Used as an optimization to avoid certain operations. */
    userNode: NodeType;
    handleBounds?: NodeHandleBounds;
  };
};

フィールド

#id
文字列
#position
XYPosition
#data
T
#type?
U
#sourcePosition?
Position
#targetPosition?
Position
#hidden?
ブール値
#selected?
ブール値
#dragging?
ブール値
#draggable?
ブール値
#selectable?
ブール値
#connectable?
ブール値
#resizing?
ブール値
#deletable?
ブール値
#dragHandle?
文字列
#width?
数値 | null
#height?
数値 | null
#parentId?
文字列
#zIndex?
数値
#extent?
"" | CoordinateExtent
#expandParent?
ブール値
#ariaLabel?
文字列
#origin?
NodeOrigin
#style?
文字列
#class?
文字列

備考