svg icon indicating copy to clipboard operation
svg copied to clipboard

Provides SVG parsing and rendering for OpenFL and Haxe

Results 26 svg issues
Sort by recently updated
recently updated
newest added

Inkscape, the foremost open source SVG editor, always inserts a [`viewBox`](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/viewBox) attribute when it creates a new SVG. This library ignores `viewBox`, causing it to scale these images incorrectly. ---...

May be connected to the third point in openfl/svg#18

**Describe the bug** The contours of a simplistic black-and-white SVG get heavily distorted on rendering, though the general shape is still somewhat recognizable. As if some of the key points...

Gives the ability to use defined symbols within SVG and use repeatable patterns.

Is it possible to use it without openfl since it's huge dependency for those using it in command line applications ? Can't it render to a RGBA 8-bit depth or...

Add a minimally reproducable test program to the project, written with OpenFL, which demonstrates the use of SVG-based images.

https://github.com/openfl/svg/blob/5842f1c636c848e31ef9f72b5962bf78a6611b21/test.hxml#L6 I had to change this line to `-cp format` to get it to build. After that, tests succeeded except for: ``` Class: MacroTest . Class: SvgGenerationTest ...!....... FAIL: massive.munit.AssertionException:...

Given this SVG: ``` ``` expected outcome: ![img](https://s3.amazonaws.com/kjljiolkjm/2.png) got: ![img](https://s3.amazonaws.com/kjljiolkjm/1.png) running: haxe 3.4.7 openfl 8.8.0 lime 7.2.1 svg [master]

```haxe package; import format.SVG; import openfl.display.Sprite; import openfl.Assets; class Main extends Sprite { public function new () { super(); var svg = new SVG(Assets.getText("assets/flixel-different-colors.svg")); svg.render(graphics, 0, 0, 150, 150); }...