MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / element

Function element

atomic-cli/src/commands/query/graph_inspector.js:10–15  ·  view source on GitHub ↗
(tag, text, className)

Source from the content-addressed store, hash-verified

8 function endpoint(value) { return typeof value === 'object' && value ? value.id : value; }
9 function compact(value) { return String(value).replace('https://atomic.dev/ns/workflow#', 'atomic:'); }
10 function element(tag, text, className) {
11 var el = doc.createElement(tag);
12 if (text !== undefined) el.textContent = text;
13 if (className) el.className = className;
14 return el;
15 }
16 graphData.links.forEach(function(edge) {
17 var source = endpoint(edge.source);
18 var target = endpoint(edge.target);

Callers 7

createGraphInspectorFunction · 0.85
sectionFunction · 0.85
fieldFunction · 0.85
tokenTableFunction · 0.85
usageDetailsFunction · 0.85
relationshipsFunction · 0.85
selectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected