DmitryBaranovskiy / raphael

JavaScript Vector Library
https://dmitrybaranovskiy.github.io/raphael/
MIT License
11.25k stars 1.67k forks source link

Added other supported CSS properties on RGB convert function. #1152

Closed JasinRefiku closed 3 months ago

JasinRefiku commented 4 months ago

I've noticed that some of the CSS properties are not supported at this scope.

One of the use cases I needed was that I had a g element, and I need to have the possibility for the texts to have their stroke/fill inherited, unfortunately with the current state, that's not possible.

DISCLAIMER: I couldn't run tests, feel free to make any change whatsoever.

ibrierley commented 4 months ago

I'd be tempted to use Snap.svg if you need g elements tbh, it's pretty much compatible with Raphael having the same author and makes life a lot easier.

JasinRefiku commented 4 months ago

I would perhaps use it, though, unfortunately, it's a team-ran project, we're already in deep, can't really suggest switching stuff on a deadline.

DmitryBaranovskiy commented 3 months ago

Raphael is not an SVG manipulation library, but rather an adaptor. And while I understand that its adaptor role is obsolete, this change will brake the core functionality of the library.