openfl / svg

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

Build of project works on native windows and mac targets but fails on html5 target. #15

Closed dimumurray closed 8 years ago

dimumurray commented 10 years ago

I'm getting the following errors whenever I attempt to build the html5 target via lime.

.../format/gfx/GfxBytes.hx:249: characters 38-53 : flash.display.CapsStyle should be EnumValue .../format/gfx/GfxBytes.hx:249: characters 38-53 : For function argument 'e' .../format/gfx/GfxBytes.hx:250: characters 38-54 : flash.display.JointStyle should be EnumValue .../format/gfx/GfxBytes.hx:250: characters 38-54 : For function argument 'e'

I got it to work (sort of) by editing GfxBytes.hx and commenting out lines 249 and 250. However, all my open path segments were rendered as closed paths. In addition, the stroke was at full opacity where I had it at around 50%.

Here's the SVG file I tried to load with the svg library: map_00_optimized.svg

jgranick commented 8 years ago

Compiling on latest libraries