MCPcopy Index your code
hub / github.com/plotly/dash / convertStyle

Function convertStyle

components/dash-table/src/dash-table/derived/style/index.ts:105–118  ·  view source on GitHub ↗
(style: Style)

Source from the content-addressed store, hash-verified

103}
104
105function convertStyle(style: Style): CSSProperties {
106 // eslint-disable-next-line @typescript-eslint/ban-ts-comment
107 // @ts-ignore
108 return R.reduce<[string, StyleProperty?], any>(
109 (res, [key, value]) => {
110 if (converter.has(key)) {
111 res[converter.get(key) as string] = value;
112 }
113 return res;
114 },
115 {},
116 R.toPairs(style)
117 );
118}
119
120export const derivedRelevantCellStyles = memoizeOneFactory(
121 (cell: Style, dataCell: Style, cells: Cells, dataCells: DataCells) =>

Callers 2

convertElementFunction · 0.85
index.tsFile · 0.85

Calls 2

reduceMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…