MCPcopy
hub / github.com/apache/echarts / parseAttributes

Function parseAttributes

extension-src/dataTool/gexf.ts:63–71  ·  view source on GitHub ↗
(parent)

Source from the content-addressed store, hash-verified

61}
62
63function parseAttributes(parent) {
64 return parent ? zrUtil.map(getChildrenByTagName(parent, 'attribute'), function (attribDom) {
65 return {
66 id: getAttr(attribDom, 'id'),
67 title: getAttr(attribDom, 'title'),
68 type: getAttr(attribDom, 'type')
69 };
70 }) : [];
71}
72
73function parseNodes(parent, attributesMap) {
74 return parent ? zrUtil.map(getChildrenByTagName(parent, 'node'), function (nodeDom) {

Callers 1

parseFunction · 0.85

Calls 3

getChildrenByTagNameFunction · 0.85
getAttrFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…