moved port zooming code from bpmnShapes.js to draw2d
This commit is contained in:
@@ -1661,13 +1661,16 @@ Oval.prototype.type="Oval";
|
||||
Oval.prototype.paint=function(){
|
||||
VectorFigure.prototype.paint.call(this);
|
||||
this.graphics.setStroke(this.stroke);
|
||||
var zoomfactor=1;
|
||||
if(typeof workflow.zoomfactor != 'undefined' && workflow.zoomfactor != '')
|
||||
zoomfactor = workflow.zoomfactor;
|
||||
if(this.bgColor!=null){
|
||||
this.graphics.setColor(this.bgColor.getHTMLStyle());
|
||||
this.graphics.fillOval(0,0,this.getWidth()+2,this.getHeight()+2);
|
||||
this.graphics.fillOval(0,0,(this.getWidth()+2)*zoomfactor,(this.getHeight()+2)*zoomfactor);
|
||||
}
|
||||
if(this.lineColor!=null){
|
||||
this.graphics.setColor(this.lineColor.getHTMLStyle());
|
||||
this.graphics.drawOval(0,0,this.getWidth()+2,this.getHeight()+2);
|
||||
this.graphics.drawOval(0,0,(this.getWidth()+2)*zoomfactor,(this.getHeight()+2)*zoomfactor);
|
||||
}
|
||||
this.graphics.paint();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user