feat: add SVG Spritesheet Merger to Dev Utilities#423
Open
erikurt9 wants to merge 1 commit into
Open
Conversation
|
@erikurt9 is attempting to deploy a commit to the shamilahmdt's projects Team on Vercel. A member of the Team first needs to authorize it. |
👋 Hello, @erikurt9!Thank you for your contribution to DevTasks. The maintainer has been notified and will review your pull request shortly. If any changes are needed, we will let you know in the comments below. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add SVG Spritesheet Merger to Dev Utilities
Closes #418
Summary
Adds a client-side utility that merges multiple standalone SVGs into a single, optimized
<symbol>-based spritesheet — no external libraries, fully offline.What's included
Upload & Collection
.svgfiles, plus a manual file picker.icon,icon-2,icon-3...).Spritesheet compiler
DOMParser, extracting itsviewBox(falling back towidth/height, then0 0 24 24) and inner markup.<symbol id="..." viewBox="...">node.<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">wrapper.Live preview grid
<use href="#id">references resolve for real.<svg><use href="#id" /></svg>.Code outputs
Blob+URL.createObjectURL).Integration
/devutilities/svg-spritesheet-mergerinsrc/App.jsx.src/config/sidebarSections.jsunder Dev Utilities.src/pages/DevUtilities/DevUtilities.jsxso it's searchable and shows on the overview page.Screenshots
Testing
npm run lintpassesnpm run buildpasses.svgfiles