Skip to content

"Log" mode for transitioning scalings #1

Description

@wellcaffeinated

when interpolating values that represent a "zoom" or a scale, you need to transition the exponent, not the value.

Example:

If transitioning a graph scale from 100% to 1%, we don't want to do:

{ domain: [0, 1] } => { domain: [0, 0.01] }

instead we want:

{ scale: 0 } => { scale: -2 }
domain = [0, Math.pow(10, scale)]

Add a log mode for these transitions

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions