Skip to content

CircleSnail gets smaller the with increasing thickness #174

Description

@danielwinkler

Use case:
Show CircleSnail while loading, afterwards exchange with Circle that shows some progress.

When using the same size and thickness properties, they do not align properly (tested on 4.0.0).
It seems the CircleSnail creates a circle that shrinks with increasing thickness:

const radius = size / 2 - thickness; const offset = { top: thickness, left: thickness, };

I'd assume, to fix that we could use thickness * 0.5 in the above calculation.

If this is intended, maybe create another flag that lets us decide on the behavior.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions