MCPcopy Create free account
hub / github.com/cyclejs/cyclejs / visitOperator

Function visitOperator

devtool/src/graphSerializer.ts:99–110  ·  view source on GitHub ↗
(graph: Dagre.Graph, idTable: IdTable, operator: InternalProducer)

Source from the content-addressed store, hash-verified

97}
98
99function visitOperator(graph: Dagre.Graph, idTable: IdTable, operator: InternalProducer) {
100 const id = idTable.getId(operator);
101 if (!graph.node(id)) {
102 graph.setNode(id, {
103 id,
104 type: 'operator',
105 label: operator.type,
106 width: OPERATOR_NODE_SIZE[0],
107 height: OPERATOR_NODE_SIZE[1],
108 });
109 }
110}
111
112function visitEdge(graph: Dagre.Graph,
113 idTable: IdTable,

Callers 1

traverseFunction · 0.85

Calls 1

getIdMethod · 0.80

Tested by

no test coverage detected