(
transition: UpdateTransition,
t01: number,
zoomRange: ZoomRange | null
)
| 1707 | }; |
| 1708 | |
| 1709 | const computeUpdateSnapshotAtProgress = ( |
| 1710 | transition: UpdateTransition, |
| 1711 | t01: number, |
| 1712 | zoomRange: ZoomRange | null |
| 1713 | ): UpdateTransitionSnapshot => { |
| 1714 | const xBase = lerpDomain(transition.from.xBaseDomain, transition.to.xBaseDomain, t01); |
| 1715 | const xVisible = computeVisibleXDomain(xBase, zoomRange); |
| 1716 | const yBase = lerpDomain(transition.from.yBaseDomain, transition.to.yBaseDomain, t01); |
| 1717 | const series = interpolateSeriesForUpdate(transition.from.series, transition.to.series, t01, null); |
| 1718 | return { |
| 1719 | xBaseDomain: xBase, |
| 1720 | xVisibleDomain: { min: xVisible.min, max: xVisible.max }, |
| 1721 | yBaseDomain: yBase, |
| 1722 | series, |
| 1723 | }; |
| 1724 | }; |
| 1725 | |
| 1726 | // Prevent spamming console.warn for repeated misuse. |
| 1727 | const warnedPieAppendSeries = new Set<number>(); |
no test coverage detected