rasem
rasem copied to clipboard
rasem is a pure ruby gem that allows you to describe your SVG images in ruby code
This PR tries to improve the README, fixing one typo and adding capitalization elsewhere.
Any progress on the export to PNG feature? :)
I love this gem; I end up pulling it out of the toolbox for something about every six months. **Problem** Following the example at https://stackoverflow.com/questions/30229943/hand-drawing-crayon-style-for-svg-path, I tried to create a...
``` i = Rasem::SVGImage.new(100, 100) do line(0, 0, 100, 100) end TypeError: no implicit conversion of Symbol into Integer from /.rvm/gems/ruby-2.3.3/gems/rasem-0.7.1/lib/rasem/svg_image.rb:426:in `[]' from /.rvm/gems/ruby-2.3.3/gems/rasem-0.7.1/lib/rasem/svg_image.rb:426:in `initialize' from (irb):17:in `new' from (irb):17...
For SVGs we generate, we need to have attributes on the root node, e.g., `viewBox`, `class`, and `style`. I don't see a documented or spec'ed way to do this.
Rasem prefixes every generated SVG with a XML- and DOCTYPE-header. ``` xml ``` There should be an option to disable this header when outputting directly into HTML code (i.e. embedding...
http://www.w3.org/TR/SVG11/paths.html
can not use the transform "style" to do things like rotation and scaling. I forked and added code to "write_style(style)" It works with text but still need to test with...
Hi Ahmet, your gem is look like awesome! I want to ask how to edit world map svg image with your gem? Can i open any file with it? And...
When the .rasem file has a syntax error or runtime error, we need the stack trace to point to the error in this file rather than a backtrace pointing to...