MCPcopy
hub / github.com/clientIO/joint / map

Method map

packages/joint-react/src/utils/cell/cell-map.ts:14–16  ·  view source on GitHub ↗
(selector: (item: V) => Item)

Source from the content-addressed store, hash-verified

12
13export class CellMap<V extends CellBase> extends Map<dia.Cell.ID, V> {
14 map<Item = V>(selector: (item: V) => Item): Item[] {
15 return [...this.values()].map(selector);
16 }
17
18 filter(predicate: (item: V) => boolean): V[] {
19 return [...this.values()].filter(predicate);

Callers 15

buildFunction · 0.80
parsePathToBindingFunction · 0.80
__updateBindingsFunction · 0.80
ComponentFunction · 0.80
createElementsFunction · 0.80
createLinksFunction · 0.80
setLinksFunction · 0.80
setElementsFunction · 0.80
cell-map.test.tsFile · 0.80
defaultSelectorFunction · 0.80
defaultSelectorFunction · 0.80

Calls

no outgoing calls

Tested by 1

layoutPortGroupFnFunction · 0.64