svg-join icon indicating copy to clipboard operation
svg-join copied to clipboard

added symbolPrefix

Open epikhighs opened this issue 8 years ago • 2 comments

allowing a prefix to the symbol IDs was an option in the other SVG libs I used. So I thought I'd add one here.

epikhighs avatar Apr 25 '17 01:04 epikhighs

@epikhighs, what about using the same CSS prefix (svg_) for symbol naming? Or does your use case require a different option?

Climenty avatar Apr 25 '17 09:04 Climenty

I thought about that, but there's a default value for css prefix that seemed to be applied even if i don't specify the css prefix option. So then, that would change the behavior to warrant a major version bump right? This solution would keep backwards compatibility.

but yeah, I would think that most people would use the same prefix for css and svg Ids

epikhighs avatar Apr 25 '17 09:04 epikhighs