From 896dd379a977ffd500bedd70adce92585043949a Mon Sep 17 00:00:00 2001 From: Skyler Lehmkuhl Date: Thu, 12 Jan 2012 16:03:04 -0500 Subject: [PATCH] Added fill to HTML5 export --- base.js | 2 +- svlgui.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/base.js b/base.js index 3b6341d..2ffe24a 100644 --- a/base.js +++ b/base.js @@ -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 { diff --git a/svlgui.py b/svlgui.py index a002dd6..1d9b432 100644 --- a/svlgui.py +++ b/svlgui.py @@ -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):