날짜포멧 수정
This commit is contained in:
@@ -116,6 +116,8 @@ export interface ChartSlotHandle {
|
||||
/** 거래량 pane on/off */
|
||||
setVolumeVisible: (visible: boolean) => void;
|
||||
setPaneSeparatorOptions: (opts: ChartPaneSeparatorOptions) => void;
|
||||
/** 차트 시간축·크로스헤어 날짜 형식 */
|
||||
setChartTimeFormat: (format: string, timeframe?: Timeframe) => void;
|
||||
}
|
||||
|
||||
// ── Props ─────────────────────────────────────────────────────────────────
|
||||
@@ -323,7 +325,11 @@ const ChartSlot = forwardRef<ChartSlotHandle, ChartSlotProps>(function ChartSlot
|
||||
setPaneSeparatorOptions: (opts: ChartPaneSeparatorOptions) => {
|
||||
managerRef.current?.setPaneSeparatorOptions(opts);
|
||||
},
|
||||
}), []);
|
||||
setChartTimeFormat: (format: string, tf?: Timeframe) => {
|
||||
managerRef.current?.setChartTimeFormat(format);
|
||||
if (tf) managerRef.current?.setDisplayTimezone(displayTimezone ?? 'Asia/Seoul', tf, format);
|
||||
},
|
||||
}), [displayTimezone]);
|
||||
|
||||
// 자석모드 변경 → ChartManager 크로스헤어 모드 즉시 반영
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user