Skip to content

Altering Arc Animation Errors #28

@legodps

Description

@legodps

In animating a change of path that involved an arc, it appears that the arc changing the large-arc flag from 0 to 1 or vice versa causes problems as the browser attempts to render decimal values:

Is there a way I can tell it to just flip from 0 to 1 at the halfway mark? Once it reaches 1 or 0 it renders fine, its just the transition.

react-dom.development.js:2691 Error: attribute d: Expected arc flag ('0' or '1'), "…98 A 160 160 0 0.002050046856617…".
react-dom.development.js:2691 Error: attribute d: Expected arc flag ('0' or '1'), "…93 A 160 160 0 0.001723949084852…".
react-dom.development.js:2691 Error: attribute d: Expected arc flag ('0' or '1'), "…33 A 160 160 0 0.001479574213010…".
react-dom.development.js:2691 Error: attribute d: Expected arc flag ('0' or '1'), "…31 A 160 160 0 0.001231605338725…".
react-dom.development.js:2691 Error: attribute d: Expected arc flag ('0' or '1'), "…05 A 160 160 0 0.001046304425757…".
react-dom.development.js:2691 Error: attribute d: Expected arc flag ('0' or '1'), "…08 A 160 160 0 0.000879870421927…".
react-dom.development.js:2691 Error: attribute d: Expected arc flag ('0' or '1'), "…47 A 160 160 0 0.000628588289482…".
react-dom.development.js:2691 Error: attribute d: Expected arc flag ('0' or '1'), "…06 A 160 160 0 0.000534014347596…".
react-dom.development.js:2691 Error: attribute d: Expected arc flag ('0' or '1'), "…44 A 160 160 0 0.000377636839004…".
react-dom.development.js:2691 Error: attribute d: Expected arc flag ('0' or '1'), "…18 A 160 160 0 0.000317566739405…".
react-dom.development.js:2691 Error: attribute d: Expected arc flag ('0' or '1'), "…14 A 160 160 0 0.000264344238383…".
react-dom.development.js:2691 Error: attribute d: Expected arc flag ('0' or '1'), "…22 A 160 160 0 0.000222295428390…".
react-dom.development.js:2691 Error: attribute d: Expected arc flag ('0' or '1'), "…45 A 160 160 0 0.000192738596108…".
react-dom.development.js:2691 Error: attribute d: Expected arc flag ('0' or '1'), "…06 A 160 160 0 0.000160436614413…".
react-dom.development.js:2691 Error: attribute d: Expected arc flag ('0' or '1'), "…79 A 160 160 0 0.000134916217643…".
react-dom.development.js:2691 Error: attribute d: Expected arc flag ('0' or '1'), "…65 A 160 160 0 0.000114617426763…".
react-dom.development.js:2691 Error: attribute d: Expected arc flag ('0' or '1'), "…18 A 160 160 0 0.000094440800089…".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions