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

Function getCleanedElOption

src/component/graphic/GraphicView.ts:482–493  ·  view source on GitHub ↗
(
    elOption: GraphicComponentElementOption
)

Source from the content-addressed store, hash-verified

480}
481// Remove unnecessary props to avoid potential problems.
482function getCleanedElOption(
483 elOption: GraphicComponentElementOption
484): Omit<GraphicComponentElementOption, 'textContent'> {
485 elOption = zrUtil.extend({}, elOption);
486 zrUtil.each(
487 ['id', 'parentId', '$action', 'hv', 'bounding', 'textContent', 'clipPath'].concat(layoutUtil.LOCATION_PARAMS),
488 function (name) {
489 delete (elOption as any)[name];
490 }
491 );
492 return elOption;
493}
494
495function setEventData(
496 el: Element,

Callers 1

_updateElementsMethod · 0.85

Calls 1

eachMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…