차트 설정 수정
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user