openfl / svg

Provides SVG parsing and rendering for OpenFL and Haxe
MIT License
68 stars 30 forks source link

Use `openfl` instead of `flash` packages #58

Closed askmeaboutlo0m closed 7 years ago

askmeaboutlo0m commented 7 years ago

Fixes compilation errors when this library is used from a macro somewhere. This patch simply replaces the uses of the flash package with openfl.

To reproduce the error, git checkout 2f6e46ba7a9fee71e11cd771f74af748684eee6e and try to run the tests. They should fail to compile with:

HaxeWrapper.hx:73: format/SVG.hx:4: characters 7-29 : You cannot access the
flash package while in a macro (for flash.display.Graphics)

This would resolve #57.