fix: 일목 구름 zOrder·배치 후 갱신 및 잘못된 기간 파라미터 복원
프로덕션에서 구름이 다른 primitive/시리즈에 가려지지 않도록 bottom zOrder를 적용하고, 지표 배치·재로드 후 구름 데이터를 다시 적용한다. DB에 1로 저장된 기간은 기본값으로 복원한다. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -854,6 +854,16 @@ export class ChartManager {
|
||||
}
|
||||
if (configs.length > 0) {
|
||||
this._finalizeIndicatorPaneLayout();
|
||||
this._refreshAllIchimokuClouds();
|
||||
}
|
||||
}
|
||||
|
||||
/** 배치 로드 후 구름 데이터·렌더 갱신 (다른 오버레이 추가로 primitive 순서가 바뀐 경우 대비) */
|
||||
private _refreshAllIchimokuClouds(): void {
|
||||
for (const entry of this.indicators.values()) {
|
||||
if (entry.type !== 'IchimokuCloud' || !entry.cloudPlugin || !entry.config) continue;
|
||||
this._applyIchimokuCloudPlugin(entry.cloudPlugin, {}, entry.config);
|
||||
entry.cloudPlugin.updateAllViews();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -919,6 +929,7 @@ export class ChartManager {
|
||||
if (this._indicatorLoadStale(loadGen)) return;
|
||||
|
||||
this._finalizeIndicatorPaneLayout();
|
||||
this._refreshAllIchimokuClouds();
|
||||
}
|
||||
|
||||
removeIndicator(id: string): void {
|
||||
|
||||
Reference in New Issue
Block a user