Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

use Wrapper.getDomainFromChildren in zoom helpers #476

Merged
merged 1 commit into from
Jun 3, 2017

Conversation

chrisbolin
Copy link
Contributor

Fixes FormidableLabs/victory#597: ZoomContainer only calculates the originalDomain once. Therefore if new data is added the ZoomContainer wouldn't recognize it.

I don't notice a degradation in performance, but we could easily memoize getDomain and see what that gets us.

@boygirl
Copy link
Contributor

boygirl commented Jun 3, 2017

@chrisbolin works well for me! Approved!

@chrisbolin chrisbolin merged commit f4bdec7 into master Jun 3, 2017
@chrisbolin chrisbolin deleted the 597-zoom-domain-calc branch June 3, 2017 19:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants