Added fill to HTML5 export
This commit is contained in:
parent
a165293bb6
commit
896dd379a9
2
base.js
2
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])
|
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.stroke()
|
||||||
cr.fill()
|
cr.fill()
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -1177,6 +1177,7 @@ class Shape (object):
|
||||||
def print_html(self):
|
def print_html(self):
|
||||||
retval = "var "+self.name+" = new Shape();\n"+self.name+"._shapedata = "+str(self.shapedata)+";\n"
|
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+".fill = \""+self.fillcolor.rgb+"\";\n"+self.name+".line = \""+self.linecolor.rgb+"\";\n"
|
||||||
|
retval += self.name+".filled = "+str(self.filled).lower()+";\n"
|
||||||
return retval
|
return retval
|
||||||
|
|
||||||
class framewrapper (object):
|
class framewrapper (object):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue