d3-celestial icon indicating copy to clipboard operation
d3-celestial copied to clipboard

disableAnimations doesn't apply to showConstellation

Open astroanu opened this issue 3 years ago • 3 comments

when calling showConstellation while disableAnimations is turned on, the view keeps animating the zooming in. Can this also be configured to follow disableAnimations configuration ?

What i'm trying to achieve is an api where it pops out an image based on the given request. The animation makes the request slow as it has to wait until the animation is complete.

astroanu avatar Oct 23 '20 05:10 astroanu

I managed to solve it partially by making ANIMINTERVAL_Z =1 yea it's hardcoded in the unminified file

i was able generate images just fine, but it still takes around 5-7 seconds for the entire request to complete.

alt text

i'll be adding credit to your project on each image :)

astroanu avatar Oct 23 '20 08:10 astroanu

Until now disableAnimations was just a quick fix by setting ANIMDISTANCE to infinite. That did not affect all animations. The latest update (0.7.35) fixes that issue at the root and the setting should now disable all kinds of animations.

ofrohn avatar Nov 05 '20 19:11 ofrohn

thanks, i'll check with the latest

astroanu avatar Nov 06 '20 02:11 astroanu