Skip to content

Documentation / @finchart/core / syncX

Function: syncX()

syncX(a, b, ...more): () => void

Defined in: packages/core/src/extensions/sync.ts:50

무대들의 보는 x 구간을 묶는다 — 심볼 비교 화면의 배선이다.

재료는 전부 기존 계약이다: xDomainChange(데이터 x로 알린다) + setVisibleRange(데이터 x로 잡는다). 되울림은 가닥마다의 플래그로 끊는다 — 반영이 동기라 플래그가 프레임을 넘지 않는다.

ts
const release = syncX(btcPlot, ethPlot);            // 둘
const release = syncX(btcPlot, ethPlot, xrpPlot);   // 셋 이상 — 별 배선

셋 이상이면 첫 무대를 허브로 별을 짠다. 잎에서 온 변화는 허브에 동기로 반영되고, 허브의 xDomainChange가 나머지 잎을 당긴다.

Parameters

a

XSync

b

XSync

more

...XSync[]

Returns

() => void