MCPcopy Create free account
hub / github.com/google/agents-cli / svgEl

Function svgEl

docs/src/javascripts/lifecycle.js:86–90  ·  view source on GitHub ↗
(tag, attrs)

Source from the content-addressed store, hash-verified

84
85 // Helper: build an SVG element from a string template.
86 function svgEl(tag, attrs) {
87 const el = document.createElementNS("http://www.w3.org/2000/svg", tag);
88 for (const k in attrs) el.setAttribute(k, attrs[k]);
89 return el;
90 }
91 // Helper: build an HTML element from a tag + attrs object.
92 function htmlEl(tag, attrs, children) {
93 const el = document.createElement(tag);

Callers 5

initTeamFunction · 0.85
addBoxLabelsFunction · 0.85
initEvalLoopFunction · 0.85
initTraceFunction · 0.85
initRollingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected