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

Function clone

src/animation/morphTransitionHelper.ts:95–105  ·  view source on GitHub ↗
(params)

Source from the content-addressed store, hash-verified

93
94const pathDividers: Record<UniversalTransitionOption['divideShape'], DividePath> = {
95 clone(params) {
96 const ret: Path[] = [];
97 // Fitting the alpha
98 const approxOpacity = 1 - Math.pow(1 - params.path.style.opacity, 1 / params.count);
99 for (let i = 0; i < params.count; i++) {
100 const cloned = clonePath(params.path);
101 cloned.setStyle('opacity', approxOpacity);
102 ret.push(cloned);
103 }
104 return ret;
105 },
106 // Use the default divider
107 split: null
108};

Callers 15

_renderThumbnailMethod · 0.85
renderMethod · 0.85
getConfigMethod · 0.85
setConfigMethod · 0.85
parseAxisBreakOptionFunction · 0.85
dataTransformFunction · 0.85
markLineTransformFunction · 0.85
_initDataMethod · 0.85
_doEnableBrushMethod · 0.85
setPanelsMethod · 0.85

Calls 1

setStyleMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…