-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add button 'Copy SVG to clipboard' #12
Comments
I also figured out, that the order of the attributes is important in function 'resetSVG()':
Otherwise I get '2px' as color name - strange. Some how a bug inside c# XElement. My working code for copy to clipboard looks like this:
|
Sure, I could add this. It's suspicious if the style depends on the order. They're separate properties so I wouldn't have thought it would matter - unlike, for instance, CSS border, which is a shorthand for a bunch of border properties, so it's conceivable that setting a new border could overwrite an earlier, more specific border-color. But SVG stroke and stroke-width are separate. What are you pasting the SVGs into? |
Yes it is really wired, I assume it depends on C# XElement, because i can't find a problem in my code ;-) |
It would be useful to copy the generated SVG to the clipboard instead of saving it, because pasting the SVG into the target program is much quicker...
This could be useful: https://stackoverflow.com/questions/400212/how-do-i-copy-to-the-clipboard-in-javascript
The text was updated successfully, but these errors were encountered: