Skip to content

Conversation

MatiPl01
Copy link
Member

Summary

This PR changes the format of the number passed to CPP used by CSS animations from a number or a string ('currentColor', 'transparent') to an object with the colorType property and the optional color value.

It is necessary to allow implementing support for more color types in SVG CSS animations (they use more than just the 'currentColor' one) and it seems to be cleaner than an union of number or strings.

@MatiPl01 MatiPl01 self-assigned this Oct 17, 2025
@MatiPl01 MatiPl01 force-pushed the @matipl01/svg-brush-css-value branch from 34183be to ef2ae7c Compare October 17, 2025 14:12
@MatiPl01 MatiPl01 force-pushed the @matipl01/css-colors-object-representation branch from 36afb32 to 6495352 Compare October 17, 2025 14:26
@MatiPl01 MatiPl01 requested a review from piaskowyk October 17, 2025 14:30
@MatiPl01 MatiPl01 changed the title chore: Change color representation from number or string to object chore: Change CSS color representation from number or string to object Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant