HumanSignal / label-studio-frontend

Data labeling react app that is backend agnostic and can be embedded into your applications — distributed as an NPM package
https://labelstud.io/
Apache License 2.0
413 stars 316 forks source link

fix: LEAP-388: Simplify SVG data URL generation #1715

Closed hlomzik closed 3 months ago

hlomzik commented 3 months ago

encodeSVG() is too complex for expected outcome, so it was simplified.

PR fulfills these requirements

Describe the reason for change

https://github.com/HumanSignal/label-studio-frontend/security/code-scanning/10 Initial idea was to use SVG parser to parse+generate SVG again, but it turned out as a simplier problem

What feature flags were used to cover this change?

None

This change affects (describe how if yes)

Does this PR introduce a breaking change?

What level of testing was included in the change?

hlomzik commented 3 months ago

Close this PR in favor of monorepo https://github.com/HumanSignal/label-studio/pull/5595