Duplicate (filter) id of inline SVG

后端 未结 1 972
悲哀的现实
悲哀的现实 2021-01-21 08:39

When creating an inline SVG with filters, I have to define an ID for the filter.

When I automatically generates several inline SVG with slight differences, the f

1条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-21 09:19

    The workaround is to generate a unique or random filter ID for each SVG.

    Image 1 Hue = 100


    Image 2 Hue = 200

    That may sound simple but for me it's very unpractical. I would like to have a solution without filter IDs (I don't think this is possible) or with duplicate ID but without prevalence (maybe embedded into something?).

    0 讨论(0)
提交回复
热议问题