Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/henoc/svgeditor
VSCode extension for svg editor 🤗
https://github.com/henoc/svgeditor
svg svg-editor vscode
Last synced: about 1 month ago
JSON representation
VSCode extension for svg editor 🤗
- Host: GitHub
- URL: https://github.com/henoc/svgeditor
- Owner: henoc
- License: mit
- Created: 2017-10-20T08:58:38.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T19:10:24.000Z (about 2 years ago)
- Last Synced: 2023-03-01T12:41:57.328Z (almost 2 years ago)
- Topics: svg, svg-editor, vscode
- Language: TypeScript
- Homepage:
- Size: 4.56 MB
- Stars: 79
- Watchers: 7
- Forks: 7
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# SVG Editor
[![marketplace](https://badgen.net/vs-marketplace/v/henoc.svgeditor)](https://marketplace.visualstudio.com/items?itemName=henoc.svgeditor)
![license](https://badgen.net/badge/license/MIT/green)
[![donate/ofuse](https://badgen.net/badge/donate/ofuse/c95353)](https://ofuse.me/#users/7853)![sample](images/capture.png)
**ver 2.9**: Correct only the changed portions without auto formatting
Now your VSCode can mutate to an interactive visual & literal SVG editor 😎
You can create shapes using the SVG's coder or directly creating shapes with the shaping tool.
## Commands
|command|title|
|:---|:---|
|svgeditor.openSvgEditor|Open SVG Editor|
|svgeditor.newSvgEditor|New File with SVG Editor|
|svgeditor.reopenRelatedTextEditor|Reopen Text Editor Related to Current SVG Editor|## Configuration
|name|description|default|
|:---|:---|:---|
|svgeditor.filenameExtension|Initial filename extension of new untitled file.|svg|
|svgeditor.width|Initial width of new untitled file.|400px|
|svgeditor.height|Initial height of new untitled file.|400px|
|svgeditor.defaultUnit|Specifies the unit when creating some shapes.|null|
|svgeditor.decimalPlaces|The number of decimal places.|1|
|svgeditor.collectTransformMatrix|Collect two or more transform functions into a matrix.|true|
|svgeditor.additionalResourcePaths|Additional resource directory paths SVG Editor can access.||
|svgeditor.useStyleAttribute|Use style attribute instead of presentation attriubte when there are no previous specifications.|false|
|svgeditor.indentStyle|Indent style for auto-formatting.|space|
|svgeditor.indentSize|Indent size of spaces for auto-formatting.|4|## Keybindings
|operation|key|
|:---|:---|
|delete|backspace / delete|
|duplicate|ctrl+d|
|zoom in|oem_plus|
|zoom out|oem_minus|
|group|ctrl+g|
|ungroup|ctrl+u|
|font|f8|
|bring forward|pageup|
|send backward|pagedown|
|align left|ctrl+alt+numpad4|
|align right|ctrl+alt+numpad6|
|align bottom|ctrl+alt+numpad2|
|align top|ctrl+alt+numpad8|
|object to path|shift+ctrl+c|
|rotate clockwise|ctrl+]|
|rotate counterclockwise|ctrl+[|
|rotate clockwise by the angle step|]|
|rotate counterclockwise by the angle step|[|
|center vertical|ctrl+alt+h|
|center horizontal|ctrl+alt+t|## Current support tags and attributes
- *: id, class, style
- svg: xmlns, xmlns:xlink, version, viewBox, x, y, width, height
- circle: cx, cy, r, 🎨
- rect: x, y, width, height, rx, ry, 🎨
- ellipse: cx, cy, rx, ry, 🎨
- polyline/polygon: points, 🎨
- path: d, 🎨
- text: x, y, dx, dy, textLength, lengthAdjust, 🎨
- g: 🎨
- defs: 🎨
- linearGradient: 🎨
- radialGradient: 🎨
- stop: offset, stop-color, 🎨
- image: x, y, width, height, xlink:href, href, 🎨
- use: x, y, width, height, xlink:href, href, 🎨
- style
- script🎨(presentation attributes): fill, fill-rule, stroke, stroke-width, stroke-linecap, stroke-linejoin, stroke-dasharray, stroke-dashoffset, transform, font-family, font-size, font-style, font-weight
## Notice
### Image
Localtion (xlink:)href refers to is restricted with your workspace, extension and `svgeditor.additionalResourcePaths` directories due to `vscode-resource` scheme settings.
## Future plans
- [x] Embedded CSS
- [x] Gradient colors
- [x] Images
- [x] Correct only the changed portions without auto formatting
- [ ] Filters
- [ ] Animations## License
MIT