API REFERENCE

pinNode

Sankey / Chord / Network Graph — { node, link } selection details, each nullable; null on other types. Network Graph — hold a node at a plot-local position (as a drag does); null on other types or unknown ids.

정의

typescript
pinNode(id: string, x: number, y: number): Promise<NetworkGraphPinnedNode | null>
인수타입필수 여부
idstring필수
xnumber필수
ynumber필수

반환 타입: Promise<NetworkGraphPinnedNode | null>. 요소 등록이 끝난 뒤 메서드를 호출하고 Promise 결과를 await로 기다리세요.