Skip to content

CircleSnail gets smaller the with increasing thickness #174

@danielwinkler

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.

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