alexbol99 / flatten-js

Javascript library for 2d geometry
MIT License
551 stars 58 forks source link

fillOpacity is not being used when applying svg() on Box type ( translated to Rect ) #141

Closed abs59il closed 1 year ago

abs59il commented 1 year ago

see https://github.com/alexbol99/flatten-js/blob/master/src/classes/box.js

line 228

let {stroke, strokeWidth, fill, id, className} = attrs;

line 235

return <rect x="${this.xmin}" y="${this.ymin}" width=${width} height=${height} stroke="${stroke || "black"}" stroke-width="${strokeWidth || 1}" fill="${fill || "none"}" ${id_str} ${class_str} />;
alexbol99 commented 1 year ago

Hi, @abs59il , Bug fix in release v1.3.6