Add SVG data
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 787
- Forks
- 216
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 6
Description
It would be helpful to have also SVG related data.
Optimizers like svgo heavily use such data, see https://github.com/svg/svgo/blob/master/plugins/_collections.js .
Some svgo plugins also define extra data:
- https://github.com/svg/svgo/blob/master/plugins/removeUselessStrokeAndFill.js
- https://github.com/svg/svgo/blob/master/plugins/removeUnusedNS.js
- https://github.com/svg/svgo/blob/master/plugins/removeUnknownsAndDefaults.js
- https://github.com/svg/svgo/blob/master/plugins/_path.js
- https://github.com/svg/svgo/blob/master/plugins/_transforms.js
- https://github.com/svg/svgo/blob/master/plugins/convertStyleToAttrs.js
- https://github.com/svg/svgo/blob/master/plugins/cleanupNumericValues.js
- https://github.com/svg/svgo/blob/master/plugins/cleanupListOfValues.js
Further interesting data for SVG: Which attributes allow color-, dimension-, number-, string-, url-values?
This avoids blindly iterating over all values and trying to match them with multiple regexps for example.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the repository's existing data structures and entry points for related web-platform data. Compare the linked SVGO collection and plugin files, then define the SVG metadata and value categories that fit the project's conventions. Done means the requested SVG data is represented consistently and covers the identified optimizer-related cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data, web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100