차트 설정 수정

This commit is contained in:
Macbook
2026-06-01 01:35:31 +09:00
parent 332019866a
commit f2208aab99
28 changed files with 546 additions and 333 deletions
+2
View File
@@ -35,6 +35,8 @@ export function formatPlotColor(hex6: string, alphaPercent: number): string {
}
export function plotColorCss(value: string): string {
const v = value.trim();
if (/^rgba?\(/i.test(v) || /^hsla?\(/i.test(v)) return v;
const { hex6, alpha } = parsePlotColor(value);
if (alpha >= 100) return hex6;
const r = parseInt(hex6.slice(1, 3), 16);