MCPcopy Create free account
hub / github.com/apitable/apitable / getColorValue

Function getColorValue

packages/core/src/model/color.ts:40–42  ·  view source on GitHub ↗
(color: string, alpha: number)

Source from the content-addressed store, hash-verified

38};
39
40export const getColorValue = (color: string, alpha: number) => {
41 return rgba2hex(Color(color).alpha(alpha).string());
42};
43
44/**
45 * get single or multiple color object, transformed by color number

Callers 3

CellButtonFunction · 0.90
index.tsxFile · 0.90
getFieldOptionColorFunction · 0.85

Calls 2

rgba2hexFunction · 0.70
ColorClass · 0.50

Tested by

no test coverage detected