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

Function fadeInElement

src/animation/universalTransition.ts:147–161  ·  view source on GitHub ↗
(newEl: Element, newSeries: SeriesModel, newIndex: number)

Source from the content-addressed store, hash-verified

145
146
147function fadeInElement(newEl: Element, newSeries: SeriesModel, newIndex: number) {
148 newEl.traverse(el => {
149 if (el instanceof Path) {
150 // TODO use fade in animation for target element.
151 initProps(el, {
152 style: {
153 opacity: 0
154 }
155 }, newSeries, {
156 dataIndex: newIndex,
157 isFrom: true
158 });
159 }
160 });
161}
162function removeEl(el: Element) {
163 if (el.parent) {
164 // Bake parent transform to element.

Callers 2

updateOneToOneFunction · 0.85
transitionBetweenFunction · 0.85

Calls 1

initPropsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…