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

Function partialGetter

components/dash-table/src/dash-table/derived/edges/data.ts:22–56  ·  view source on GitHub ↗
(
    columns: Columns,
    styles: IConvertedStyle[],
    data: Data,
    offset: IViewportOffset,
    listViewStyle: boolean
)

Source from the content-addressed store, hash-verified

20const SELECTED_PRIORITY = Number.MAX_SAFE_INTEGER - 1;
21
22const partialGetter = (
23 columns: Columns,
24 styles: IConvertedStyle[],
25 data: Data,
26 offset: IViewportOffset,
27 listViewStyle: boolean
28) => {
29 if (data.length === 0 || columns.length === 0) {
30 return;
31 }
32
33 const edges = new EdgesMatrices(
34 data.length,
35 columns.length,
36 Environment.defaultEdge,
37 true,
38 !listViewStyle
39 );
40
41 traverse2(data, columns, (datum, column, i, j) =>
42 edges.setEdges(
43 i,
44 j,
45 getDataCellEdges(
46 datum,
47 i + offset.rows,
48 column,
49 false,
50 false
51 )(styles)
52 )
53 );
54
55 return edges;
56};
57
58const getter = (
59 baseline: EdgesMatrices | undefined,

Callers

nothing calls this directly

Calls 3

setEdgesMethod · 0.95
traverse2Function · 0.90
getDataCellEdgesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…