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

Function resolveEdges

components/dash-table/src/dash-table/derived/edges/index.ts:14–29  ·  view source on GitHub ↗
(
    styles: IConvertedStyle[],
    priority?: number
)

Source from the content-addressed store, hash-verified

12import {traverse2} from 'core/math/matrixZipMap';
13
14function resolveEdges(
15 styles: IConvertedStyle[],
16 priority?: number
17): BorderStyle {
18 const res: BorderStyle = {};
19
20 traverse2(styles, BORDER_PROPERTIES, (s, p, i) => {
21 const border = s.style[p] || s.style.border;
22
23 if (border) {
24 res[p] = [border, priority ?? i];
25 }
26 });
27
28 return res;
29}
30
31export const getDataCellEdges =
32 (

Callers 6

getDataCellEdgesFunction · 0.85
getDataOpCellEdgesFunction · 0.85
getFilterCellEdgesFunction · 0.85
getFilterOpCellEdgesFunction · 0.85
getHeaderCellEdgesFunction · 0.85
getHeaderOpCellEdgesFunction · 0.85

Calls 1

traverse2Function · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…