You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When loading a new state into Neuroglancer, it can either get the coordinate dimensions directly from the state.dimensions or infer them the base dimension set in the layer info. Sometimes this inference is useful, as there is no generic way to infer correct dimensions without navigating auth and looking up an info file which could easily vary by source type.
However, if you load a neuroglancer state without explicit dimensions, the viewer scales (crossSectionScale and projectionScale) get set to huge values (124999999.99999999 and 624999999999.9999, respectively) even if these values were already explicitly set in the state.
For example, if I paste the following state with explicit scales into Neuroglancer:
When loading a new state into Neuroglancer, it can either get the coordinate dimensions directly from the
state.dimensions
or infer them the base dimension set in the layer info. Sometimes this inference is useful, as there is no generic way to infer correct dimensions without navigating auth and looking up an info file which could easily vary by source type.However, if you load a neuroglancer state without explicit dimensions, the viewer scales (
crossSectionScale
andprojectionScale
) get set to huge values (124999999.99999999 and 624999999999.9999, respectively) even if these values were already explicitly set in the state.For example, if I paste the following state with explicit scales into Neuroglancer:
on loading, the state becomes the following, with a correct set of dimensions and default position but a non-useful pair of scale values.
Since scales are relative to the layer dimensions anyway, I don't see why they should be adjusted by dimensions being set.
The text was updated successfully, but these errors were encountered: