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

Function createEl

src/component/graphic/GraphicView.ts:404–419  ·  view source on GitHub ↗
(
    id: string,
    targetElParent: graphicUtil.Group,
    graphicType: string,
    elMap: ElementMap
)

Source from the content-addressed store, hash-verified

402 return el;
403}
404function createEl(
405 id: string,
406 targetElParent: graphicUtil.Group,
407 graphicType: string,
408 elMap: ElementMap
409): Element {
410
411 const el = newEl(graphicType);
412
413 targetElParent.add(el);
414 elMap.set(id, el);
415 inner(el).id = id;
416 inner(el).isNew = true;
417
418 return el;
419}
420function removeEl(
421 elExisting: Element,
422 elOption: GraphicComponentElementOption,

Callers 1

_updateElementsMethod · 0.70

Calls 3

newElFunction · 0.85
innerFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…