Documentation / @finchart/core / syncCrosshair
Function: syncCrosshair()
syncCrosshair(
a,b, ...more): () =>void
Defined in: packages/core/src/extensions/sync.ts:76
무대들의 커서 시간을 묶는다 — 한 무대를 호버하면 나머지에 시간 유령 커서(timeCursor: 세로선 + x 배지)가 선다.
옮기는 것은 데이터 x뿐이다: y는 무대마다 스케일이 달라 의미가 없고, magnet 스냅은 그리기의 일이라 원시 x를 보낸다 — 수신 무대는 자기 봉 그리드와 자기 표기로 말한다(타임프레임이 달라도 같은 시각을 가리킨다).
유령은 아무것도 emit하지 않으므로 되울림 문제가 없다 — syncX의 플래그조차 필요 없다. 커서가 무대를 떠나면(pane null) 전부 걷힌다.
ts
const release = syncCrosshair(btcPlot, ethPlot, xrpPlot);Parameters
a
CursorSync
b
CursorSync
more
...CursorSync[]
Returns
() => void