Documentation / @finchart/core / TimeCursor
Interface: TimeCursor
Defined in: packages/core/src/extensions/crosshair.ts:202
시간 유령 커서 — 다른 무대의 커서가 "지금 몇 시를 보는가"만 옮겨 온 세로선 + x 배지다(syncCrosshair의 재료). y는 무대마다 스케일이 달라 옮기지 않는다 — 가로선을 흉내 내면 거짓말이 된다.
데이터 x만 들고 있다 — 픽셀 변환은 그릴 때 매핑에게 묻는다(x.toPixel), pan/zoom에 저절로 맞고 봉 그리드가 다른 무대에서도 같은 시각을 가리킨다. 스타일은 십자선의 토큰을 같이 써서 화면에서 같은 계열로 읽힌다.
Extends
Methods
axisBadges()?
optionalaxisBadges(context):AxisBadge[]
Defined in: packages/core/src/plot/decoration.ts:99
축에 올릴 것을 서술한다 — 크로스헤어 값 박스, price line 라벨.
그리지 않고 서술하는 이유는 층이다. 눈금 라벨이 DOM일 때 캔버스에 그린 박스는 눈금을 덮을 수 없다 — 눈금을 그리는 쪽이 배지도 그려야 DOM·캔버스 어느 경로든 겹침이 맞는다. 라벨을 안 올리는 축의 배지는 버려진다 — 자리가 없는 곳에 그리면 데이터를 덮는다.
Parameters
context
Returns
Inherited from
PlotDecoration.axisBadges
draw()
draw(
target,context):void
Defined in: packages/core/src/plot/decoration.ts:90
Parameters
target
context
Returns
void
Inherited from
PlotDecoration.draw
follow()
follow(
x):void
Defined in: packages/core/src/extensions/crosshair.ts:204
따라갈 데이터 x — 커서가 떠났으면 null.
Parameters
x
number | null
Returns
void