(tag, text, className)
| 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); |
no outgoing calls
no test coverage detected