Added fill to HTML5 export

This commit is contained in:
Skyler Lehmkuhl 2012-01-12 16:03:04 -05:00
parent a165293bb6
commit 896dd379a9
2 changed files with 2 additions and 1 deletions

View File

@ -387,7 +387,7 @@ function Shape() {
cr.bezierCurveTo(this._shapedata[i][1],this._shapedata[i][2],this._shapedata[i][3],this._shapedata[i][4],this._shapedata[i][5],this._shapedata[i][6])
}
}
if (self.filled) {
if (this.filled) {
cr.stroke()
cr.fill()
} else {

View File

@ -1177,6 +1177,7 @@ class Shape (object):
def print_html(self):
retval = "var "+self.name+" = new Shape();\n"+self.name+"._shapedata = "+str(self.shapedata)+";\n"
retval += self.name+".fill = \""+self.fillcolor.rgb+"\";\n"+self.name+".line = \""+self.linecolor.rgb+"\";\n"
retval += self.name+".filled = "+str(self.filled).lower()+";\n"
return retval
class framewrapper (object):