From c6976a2e03560ced52a14dd0a19f59f02c36ac14 Mon Sep 17 00:00:00 2001 From: Macbook Date: Tue, 2 Jun 2026 23:36:12 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9D=BC=EB=AA=A9=20=EA=B5=AC=EB=A6=84?= =?UTF-8?q?=20zOrder=C2=B7=EB=B0=B0=EC=B9=98=20=ED=9B=84=20=EA=B0=B1?= =?UTF-8?q?=EC=8B=A0=20=EB=B0=8F=20=EC=9E=98=EB=AA=BB=EB=90=9C=20=EA=B8=B0?= =?UTF-8?q?=EA=B0=84=20=ED=8C=8C=EB=9D=BC=EB=AF=B8=ED=84=B0=20=EB=B3=B5?= =?UTF-8?q?=EC=9B=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 프로덕션에서 구름이 다른 primitive/시리즈에 가려지지 않도록 bottom zOrder를 적용하고, 지표 배치·재로드 후 구름 데이터를 다시 적용한다. DB에 1로 저장된 기간은 기본값으로 복원한다. Co-authored-by: Cursor --- frontend/src/utils/ChartManager.ts | 11 +++++++++++ frontend/src/utils/IchimokuCloudPlugin.ts | 7 +++++++ frontend/src/utils/ichimokuConfig.ts | 3 ++- 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/frontend/src/utils/ChartManager.ts b/frontend/src/utils/ChartManager.ts index c766514..07ee578 100644 --- a/frontend/src/utils/ChartManager.ts +++ b/frontend/src/utils/ChartManager.ts @@ -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 { diff --git a/frontend/src/utils/IchimokuCloudPlugin.ts b/frontend/src/utils/IchimokuCloudPlugin.ts index ac5d5a9..6aa7d97 100644 --- a/frontend/src/utils/IchimokuCloudPlugin.ts +++ b/frontend/src/utils/IchimokuCloudPlugin.ts @@ -123,6 +123,9 @@ class CloudPaneView implements IPrimitivePaneView { this._plugin.getBearishVisible(), ); } + + /** BB·RSI 영역 등 다른 primitive/시리즈보다 아래에 그려 구름이 가려지지 않게 함 */ + zOrder(): 'bottom' { return 'bottom'; } } // ─── Plugin ──────────────────────────────────────────────────────────────── @@ -169,6 +172,10 @@ export class IchimokuCloudPlugin implements ISeriesPrimitive