Worked on Zooming feature,when its zoom at 200% and user drags n drops new shapes it shud be at 200%
This commit is contained in:
@@ -1,10 +1,16 @@
|
|||||||
bpmnAnnotation = function (_30ab ) {
|
bpmnAnnotation = function (_30ab ) {
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
if(typeof _30ab.anno_width != 'undefined' && typeof _30ab.anno_height != 'undefined')
|
//Getting width and height from DB
|
||||||
|
if(typeof _30ab.anno_width != 'undefined' && typeof _30ab.anno_height != 'undefined')
|
||||||
this.setDimension(_30ab.anno_width, _30ab.anno_height);
|
this.setDimension(_30ab.anno_width, _30ab.anno_height);
|
||||||
else
|
else
|
||||||
this.setDimension(110, 60);
|
this.setDimension(110, 60);
|
||||||
this.setAnnotationName(_30ab.annotationName); //It will set the Default Task Name with appropriate count While dragging a task on the canvas
|
|
||||||
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomAnnotationWidth != 'undefined' || typeof workflow.zoomAnnotationHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomAnnotationWidth, workflow.zoomAnnotationHeight);
|
||||||
|
|
||||||
|
this.setAnnotationName(_30ab.annotationName); //It will set the Default Task Name with appropriate count While dragging a task on the canvas
|
||||||
};
|
};
|
||||||
|
|
||||||
bpmnAnnotation.prototype = new VectorFigure;
|
bpmnAnnotation.prototype = new VectorFigure;
|
||||||
@@ -82,7 +88,14 @@ bpmnAnnotation.prototype.paint = function () {
|
|||||||
var padtop = 0.18*this.getHeight();
|
var padtop = 0.18*this.getHeight();
|
||||||
var rectwidth = this.getWidth() - padleft;
|
var rectwidth = this.getWidth() - padleft;
|
||||||
var rectheight = this.getHeight() - 2*padtop;
|
var rectheight = this.getHeight() - 2*padtop;
|
||||||
this.bpmnText.setFont('verdana', '11px', Font.PLAIN);
|
|
||||||
|
//Setting text size to zoom font size if Zoomed
|
||||||
|
if(typeof workflow.zoomAnnotationTextSize != 'undefined')
|
||||||
|
var fontSize = workflow.zoomAnnotationTextSize;
|
||||||
|
else
|
||||||
|
fontSize = '11px';
|
||||||
|
|
||||||
|
this.bpmnText.setFont('verdana', fontSize, Font.PLAIN);
|
||||||
this.bpmnText.drawStringAnno(this.annotationName,0,padtop,rectwidth,rectheight,'left');
|
this.bpmnText.drawStringAnno(this.annotationName,0,padtop,rectwidth,rectheight,'left');
|
||||||
//bpmnText.drawStringRect(this.taskName,this.getWidth()/2-20,this.getHeight()/2-11,200,'left');
|
//bpmnText.drawStringRect(this.taskName,this.getWidth()/2-20,this.getHeight()/2-11,200,'left');
|
||||||
//tempcoord = this.coord_converter(this.getWidth(), this.getHeight(), this.taskName.length);
|
//tempcoord = this.coord_converter(this.getWidth(), this.getHeight(), this.taskName.length);
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventBoundaryTimerInter=function(){
|
bpmnEventBoundaryTimerInter=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(30,30);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(30,30);
|
||||||
this.stroke = 2;
|
this.stroke = 2;
|
||||||
};
|
};
|
||||||
bpmnEventBoundaryTimerInter.prototype=new VectorFigure;
|
bpmnEventBoundaryTimerInter.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventCancelEnd=function(){
|
bpmnEventCancelEnd=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(30,30);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(30,30);
|
||||||
this.stroke=3;
|
this.stroke=3;
|
||||||
};
|
};
|
||||||
bpmnEventCancelEnd.prototype=new VectorFigure;
|
bpmnEventCancelEnd.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventCancelInter=function(){
|
bpmnEventCancelInter=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(45,45);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(45,45);
|
||||||
this.stroke=2;
|
this.stroke=2;
|
||||||
};
|
};
|
||||||
bpmnEventCancelInter.prototype=new VectorFigure;
|
bpmnEventCancelInter.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventCompEnd=function(){
|
bpmnEventCompEnd=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(30,30);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(30,30);
|
||||||
this.stroke=3
|
this.stroke=3
|
||||||
};
|
};
|
||||||
bpmnEventCompEnd.prototype=new VectorFigure;
|
bpmnEventCompEnd.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventCompInter=function(){
|
bpmnEventCompInter=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(30,30);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(30,30);
|
||||||
this.stroke=2
|
this.stroke=2
|
||||||
};
|
};
|
||||||
bpmnEventCompInter.prototype=new VectorFigure;
|
bpmnEventCompInter.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventEmptyEnd=function(){
|
bpmnEventEmptyEnd=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(30,30);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(30,30);
|
||||||
this.stroke=3;
|
this.stroke=3;
|
||||||
};
|
};
|
||||||
bpmnEventEmptyEnd.prototype=new VectorFigure;
|
bpmnEventEmptyEnd.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventEmptyInter=function(width,_30ab){
|
bpmnEventEmptyInter=function(width,_30ab){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(30,30);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(30,30);
|
||||||
this.stroke=2;
|
this.stroke=2;
|
||||||
};
|
};
|
||||||
bpmnEventEmptyInter.prototype=new VectorFigure;
|
bpmnEventEmptyInter.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventEmptyStart=function(){
|
bpmnEventEmptyStart=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(30,30);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(30,30);
|
||||||
this.stroke=2;
|
this.stroke=2;
|
||||||
};
|
};
|
||||||
bpmnEventEmptyStart.prototype=new VectorFigure;
|
bpmnEventEmptyStart.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventEndSignal=function(){
|
bpmnEventEndSignal=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(30,30);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(30,30);
|
||||||
this.stroke=2;
|
this.stroke=2;
|
||||||
};
|
};
|
||||||
bpmnEventEndSignal.prototype=new VectorFigure;
|
bpmnEventEndSignal.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventErrorEnd=function(){
|
bpmnEventErrorEnd=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(30,30);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(30,30);
|
||||||
this.stroke=4;
|
this.stroke=4;
|
||||||
};
|
};
|
||||||
bpmnEventErrorEnd.prototype=new VectorFigure;
|
bpmnEventErrorEnd.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventErrorInter=function(){
|
bpmnEventErrorInter=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(45,45);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(45,45);
|
||||||
this.stroke=2;
|
this.stroke=2;
|
||||||
};
|
};
|
||||||
bpmnEventErrorInter.prototype=new VectorFigure;
|
bpmnEventErrorInter.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventInterSignal=function(){
|
bpmnEventInterSignal=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(30,30);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(30,30);
|
||||||
this.stroke=2;
|
this.stroke=2;
|
||||||
};
|
};
|
||||||
bpmnEventInterSignal.prototype=new VectorFigure;
|
bpmnEventInterSignal.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventLinkEnd=function(){
|
bpmnEventLinkEnd=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(45,45);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(45,45);
|
||||||
this.stroke=3;
|
this.stroke=3;
|
||||||
};
|
};
|
||||||
bpmnEventLinkEnd.prototype=new VectorFigure;
|
bpmnEventLinkEnd.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventLinkInter=function(){
|
bpmnEventLinkInter=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(30,30);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(30,30);
|
||||||
this.stroke=2;
|
this.stroke=2;
|
||||||
};
|
};
|
||||||
bpmnEventLinkInter.prototype=new VectorFigure;
|
bpmnEventLinkInter.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventLinkStart=function(){
|
bpmnEventLinkStart=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(45,45);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(45,45);
|
||||||
this.stroke=2
|
this.stroke=2
|
||||||
};
|
};
|
||||||
bpmnEventLinkStart.prototype=new VectorFigure;
|
bpmnEventLinkStart.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventMessageEnd=function(){
|
bpmnEventMessageEnd=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(30,30);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(30,30);
|
||||||
this.stroke = 3;
|
this.stroke = 3;
|
||||||
};
|
};
|
||||||
bpmnEventMessageEnd.prototype=new VectorFigure;
|
bpmnEventMessageEnd.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventMessageInter=function(){
|
bpmnEventMessageInter=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(30,30);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(30,30);
|
||||||
this.stroke=2;
|
this.stroke=2;
|
||||||
};
|
};
|
||||||
bpmnEventMessageInter.prototype=new VectorFigure;
|
bpmnEventMessageInter.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventMessageRecInter=function(){
|
bpmnEventMessageRecInter=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(30,30);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(30,30);
|
||||||
this.stroke=2;
|
this.stroke=2;
|
||||||
};
|
};
|
||||||
bpmnEventMessageRecInter.prototype=new VectorFigure;
|
bpmnEventMessageRecInter.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventMessageSendInter=function(){
|
bpmnEventMessageSendInter=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(30,30);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(30,30);
|
||||||
this.stroke=2;
|
this.stroke=2;
|
||||||
};
|
};
|
||||||
bpmnEventMessageSendInter.prototype=new VectorFigure;
|
bpmnEventMessageSendInter.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventMessageStart=function(){
|
bpmnEventMessageStart=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(30,30);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(30,30);
|
||||||
this.stroke = 3;
|
this.stroke = 3;
|
||||||
};
|
};
|
||||||
bpmnEventMessageStart.prototype=new VectorFigure;
|
bpmnEventMessageStart.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventMulStart=function(){
|
bpmnEventMulStart=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(30,30);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(30,30);
|
||||||
this.stroke= 2;
|
this.stroke= 2;
|
||||||
};
|
};
|
||||||
bpmnEventMulStart.prototype=new VectorFigure;
|
bpmnEventMulStart.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventMultipleEnd=function(){
|
bpmnEventMultipleEnd=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(30,30);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(30,30);
|
||||||
this.stroke=2;
|
this.stroke=2;
|
||||||
};
|
};
|
||||||
bpmnEventMultipleEnd.prototype=new VectorFigure;
|
bpmnEventMultipleEnd.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventMultipleInter=function(){
|
bpmnEventMultipleInter=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(30,30);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(30,30);
|
||||||
this.stroke=2
|
this.stroke=2
|
||||||
};
|
};
|
||||||
bpmnEventMultipleInter.prototype=new VectorFigure;
|
bpmnEventMultipleInter.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventRuleInter=function(){
|
bpmnEventRuleInter=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(30,30);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(30,30);
|
||||||
this.stroke = 2;
|
this.stroke = 2;
|
||||||
};
|
};
|
||||||
bpmnEventRuleInter.prototype=new VectorFigure;
|
bpmnEventRuleInter.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventRuleStart=function(){
|
bpmnEventRuleStart=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(30,30);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(30,30);
|
||||||
this.stroke = 2;
|
this.stroke = 2;
|
||||||
};
|
};
|
||||||
bpmnEventRuleStart.prototype=new VectorFigure;
|
bpmnEventRuleStart.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventSignalStart=function(){
|
bpmnEventSignalStart=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(30,30);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(30,30);
|
||||||
this.stroke=2;
|
this.stroke=2;
|
||||||
};
|
};
|
||||||
bpmnEventSignalStart.prototype=new VectorFigure;
|
bpmnEventSignalStart.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventTerminate=function(){
|
bpmnEventTerminate=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(30,30);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(30,30);
|
||||||
this.stroke=2;
|
this.stroke=2;
|
||||||
};
|
};
|
||||||
bpmnEventTerminate.prototype=new VectorFigure;
|
bpmnEventTerminate.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventTimerInter=function(){
|
bpmnEventTimerInter=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(30,30);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(30,30);
|
||||||
this.stroke = 2;
|
this.stroke = 2;
|
||||||
};
|
};
|
||||||
bpmnEventTimerInter.prototype=new VectorFigure;
|
bpmnEventTimerInter.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnEventTimerStart=function(){
|
bpmnEventTimerStart=function(){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(30,30);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth, workflow.zoomHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(30,30);
|
||||||
this.stroke = 2;
|
this.stroke = 2;
|
||||||
};
|
};
|
||||||
bpmnEventTimerStart.prototype=new VectorFigure;
|
bpmnEventTimerStart.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnGatewayComplex=function(width,_30ab){
|
bpmnGatewayComplex=function(width,_30ab){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(40,40);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth+10, workflow.zoomHeight+10);
|
||||||
|
else
|
||||||
|
this.setDimension(40,40);
|
||||||
this.stroke=2;
|
this.stroke=2;
|
||||||
};
|
};
|
||||||
bpmnGatewayComplex.prototype=new VectorFigure;
|
bpmnGatewayComplex.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
bpmnGatewayExclusiveData=function(width,_30ab){
|
bpmnGatewayExclusiveData=function(width,_30ab){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.stroke =2;
|
this.stroke =2;
|
||||||
this.setDimension(40,40);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth+10, workflow.zoomHeight+10);
|
||||||
|
else
|
||||||
|
this.setDimension(40,40);
|
||||||
};
|
};
|
||||||
bpmnGatewayExclusiveData.prototype=new VectorFigure;
|
bpmnGatewayExclusiveData.prototype=new VectorFigure;
|
||||||
bpmnGatewayExclusiveData.prototype.type="bpmnGatewayExclusiveData";
|
bpmnGatewayExclusiveData.prototype.type="bpmnGatewayExclusiveData";
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnGatewayExclusiveEvent=function(width,_30ab){
|
bpmnGatewayExclusiveEvent=function(width,_30ab){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(40,40);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth+10, workflow.zoomHeight+10);
|
||||||
|
else
|
||||||
|
this.setDimension(40,40);
|
||||||
this.stroke=2;
|
this.stroke=2;
|
||||||
};
|
};
|
||||||
bpmnGatewayExclusiveEvent.prototype=new VectorFigure;
|
bpmnGatewayExclusiveEvent.prototype=new VectorFigure;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnGatewayInclusive=function(width,_30ab){
|
bpmnGatewayInclusive=function(width,_30ab){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(40,40);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth+10, workflow.zoomHeight+10);
|
||||||
|
else
|
||||||
|
this.setDimension(40,40);
|
||||||
};
|
};
|
||||||
bpmnGatewayInclusive.prototype=new VectorFigure;
|
bpmnGatewayInclusive.prototype=new VectorFigure;
|
||||||
bpmnGatewayInclusive.prototype.type="bpmnGatewayInclusive";
|
bpmnGatewayInclusive.prototype.type="bpmnGatewayInclusive";
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnGatewayParallel=function(width,_30ab){
|
bpmnGatewayParallel=function(width,_30ab){
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(40,40);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomWidth != 'undefined' || typeof workflow.zoomHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomWidth+10, workflow.zoomHeight+10);
|
||||||
|
else
|
||||||
|
this.setDimension(40,40);
|
||||||
};
|
};
|
||||||
bpmnGatewayParallel.prototype=new VectorFigure;
|
bpmnGatewayParallel.prototype=new VectorFigure;
|
||||||
bpmnGatewayParallel.prototype.type="bpmnGatewayParallel";
|
bpmnGatewayParallel.prototype.type="bpmnGatewayParallel";
|
||||||
|
|||||||
@@ -2128,7 +2128,7 @@ MyWorkflow.prototype.zoom = function(sType)
|
|||||||
{
|
{
|
||||||
var figures = workflow.getDocument().getFigures();
|
var figures = workflow.getDocument().getFigures();
|
||||||
|
|
||||||
var lines=workflow.getLines();
|
var lines=workflow.getLines();
|
||||||
var size=lines.getSize();
|
var size=lines.getSize();
|
||||||
for(var i=0;i<size;i++){
|
for(var i=0;i<size;i++){
|
||||||
var startX = lines.data[i].startX;
|
var startX = lines.data[i].startX;
|
||||||
@@ -2172,11 +2172,22 @@ MyWorkflow.prototype.zoom = function(sType)
|
|||||||
{
|
{
|
||||||
width += 5;
|
width += 5;
|
||||||
height += 5;
|
height += 5;
|
||||||
|
workflow.zoomWidth = width;
|
||||||
|
workflow.zoomHeight = height;
|
||||||
|
}
|
||||||
|
else if(fig.type.match(/Annotation/))
|
||||||
|
{
|
||||||
|
width += 20;
|
||||||
|
height += 20;
|
||||||
|
workflow.zoomAnnotationWidth = width;
|
||||||
|
workflow.zoomAnnotationHeight = height;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
width += 20;
|
width += 20;
|
||||||
height += 20;
|
height += 20;
|
||||||
|
workflow.zoomTaskWidth = width;
|
||||||
|
workflow.zoomTaskHeight = height;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -2185,15 +2196,26 @@ MyWorkflow.prototype.zoom = function(sType)
|
|||||||
{
|
{
|
||||||
width -= 5;
|
width -= 5;
|
||||||
height -= 5;
|
height -= 5;
|
||||||
|
workflow.zoomWidth = width;
|
||||||
|
workflow.zoomHeight = height;
|
||||||
|
}
|
||||||
|
else if(fig.type.match(/Annotation/))
|
||||||
|
{
|
||||||
|
width -= 20;
|
||||||
|
height -= 20;
|
||||||
|
workflow.zoomAnnotationWidth = width;
|
||||||
|
workflow.zoomAnnotationHeight = height;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
width -= 20;
|
width -= 20;
|
||||||
height -= 20;
|
height -= 20;
|
||||||
|
workflow.zoomTaskWidth = width;
|
||||||
|
workflow.zoomTaskHeight = height;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(sType == 'in' && fig.type != 'bpmnAnnotation')
|
if(sType == 'in' && fig.type != 'bpmnAnnotation')
|
||||||
{
|
{
|
||||||
@@ -2235,7 +2257,7 @@ MyWorkflow.prototype.zoom = function(sType)
|
|||||||
//Setting font minimum limit
|
//Setting font minimum limit
|
||||||
if(fig.size < 11)
|
if(fig.size < 11)
|
||||||
fig.size = 11;
|
fig.size = 11;
|
||||||
|
workflow.zoomTaskTextSize = fig.size;
|
||||||
eval("fig.bpmnText.setFont('verdana','"+fig.size+"px', Font.PLAIN)");
|
eval("fig.bpmnText.setFont('verdana','"+fig.size+"px', Font.PLAIN)");
|
||||||
fig.bpmnText.drawStringRect(fig.taskName, padleft, padtop, fig.rectWidth, rectheight, 'center');
|
fig.bpmnText.drawStringRect(fig.taskName, padleft, padtop, fig.rectWidth, rectheight, 'center');
|
||||||
fig.bpmnText.paint();
|
fig.bpmnText.paint();
|
||||||
@@ -2269,6 +2291,7 @@ MyWorkflow.prototype.zoom = function(sType)
|
|||||||
if(fig.size < 11)
|
if(fig.size < 11)
|
||||||
fig.size = 11;
|
fig.size = 11;
|
||||||
|
|
||||||
|
workflow.zoomAnnotationTextSize = fig.size;
|
||||||
eval("fig.bpmnText.setFont('verdana','"+fig.size+"px', Font.PLAIN)");
|
eval("fig.bpmnText.setFont('verdana','"+fig.size+"px', Font.PLAIN)");
|
||||||
fig.bpmnText.drawStringRect(text,20,20,fig.rectWidth,'left');
|
fig.bpmnText.drawStringRect(text,20,20,fig.rectWidth,'left');
|
||||||
fig.bpmnText.paint();
|
fig.bpmnText.paint();
|
||||||
|
|||||||
@@ -324,7 +324,7 @@ ProcessMapContext.prototype.processPermission= function()
|
|||||||
{ name: 'OP_CASE_STATUS',type: 'string'}
|
{ name: 'OP_CASE_STATUS',type: 'string'}
|
||||||
]);
|
]);
|
||||||
|
|
||||||
var PermissionStore = new Ext.data.JsonStore({
|
var PermissionStore = new Ext.data.JsonStore({
|
||||||
root : 'data',
|
root : 'data',
|
||||||
totalProperty: 'totalCount',
|
totalProperty: 'totalCount',
|
||||||
idProperty : 'gridIndex',
|
idProperty : 'gridIndex',
|
||||||
@@ -2111,7 +2111,8 @@ ProcessMapContext.prototype.ExtVariables = function()
|
|||||||
getObjectGridRow.colModel.config[3].editor.setValue(rowLabel);
|
getObjectGridRow.colModel.config[3].editor.setValue(rowLabel);
|
||||||
//Assigning / updating Condition for a row
|
//Assigning / updating Condition for a row
|
||||||
else
|
else
|
||||||
getObjectGridRow[0].set(FieldSelected,rowLabel);
|
getObjectGridRow[0].set(FieldSelected,rowLabel);
|
||||||
|
|
||||||
if(FieldSelected=='CTO_CONDITION')
|
if(FieldSelected=='CTO_CONDITION')
|
||||||
{
|
{
|
||||||
Ext.Ajax.request({
|
Ext.Ajax.request({
|
||||||
@@ -2347,4 +2348,4 @@ ProcessMapContext.prototype.ExtVariables = function()
|
|||||||
items: [varForm]
|
items: [varForm]
|
||||||
});
|
});
|
||||||
window.show();
|
window.show();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
bpmnSubProcess = function (_30ab) {
|
bpmnSubProcess = function (_30ab) {
|
||||||
VectorFigure.call(this);
|
VectorFigure.call(this);
|
||||||
this.setDimension(165, 50);
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomTaskWidth != 'undefined' || typeof workflow.zoomTaskHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomTaskWidth, workflow.zoomTaskHeight);
|
||||||
|
else
|
||||||
|
this.setDimension(165, 50);
|
||||||
this.subProcessName = _30ab.subProcessName; //It will set the Default Task Name with appropriate count While dragging a task on the canvas
|
this.subProcessName = _30ab.subProcessName; //It will set the Default Task Name with appropriate count While dragging a task on the canvas
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -5,10 +5,16 @@ bpmnTask = function (_30ab) {
|
|||||||
{
|
{
|
||||||
this.boundaryEvent = _30ab.boundaryEvent;
|
this.boundaryEvent = _30ab.boundaryEvent;
|
||||||
}
|
}
|
||||||
|
//Getting width and height from DB
|
||||||
if(typeof _30ab.task_width != 'undefined' && typeof _30ab.task_height != 'undefined')
|
if(typeof _30ab.task_width != 'undefined' && typeof _30ab.task_height != 'undefined')
|
||||||
this.setDimension(_30ab.task_width, _30ab.task_height);
|
this.setDimension(_30ab.task_width, _30ab.task_height);
|
||||||
else
|
else
|
||||||
this.setDimension(165, 40);
|
this.setDimension(165, 40);
|
||||||
|
|
||||||
|
//Setting width and height values as per the zoom ratio
|
||||||
|
if(typeof workflow.zoomTaskWidth != 'undefined' || typeof workflow.zoomTaskHeight != 'undefined')
|
||||||
|
this.setDimension(workflow.zoomTaskWidth, workflow.zoomTaskHeight);
|
||||||
|
|
||||||
|
|
||||||
this.taskName = _30ab.taskName; //It will set the Default Task Name with appropriate count While dragging a task on the canvas
|
this.taskName = _30ab.taskName; //It will set the Default Task Name with appropriate count While dragging a task on the canvas
|
||||||
};
|
};
|
||||||
@@ -99,7 +105,14 @@ bpmnTask.prototype.paint = function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var rectheight = this.getHeight() - padtop -7;
|
var rectheight = this.getHeight() - padtop -7;
|
||||||
this.bpmnText.setFont('verdana', '11px', Font.PLAIN);
|
|
||||||
|
//Setting text size to zoom font size if Zoomed
|
||||||
|
// if(typeof workflow.zoomTaskTextSize != 'undefined')
|
||||||
|
// var fontSize = workflow.zoomTaskTextSize;
|
||||||
|
// else
|
||||||
|
var fontSize = 11;
|
||||||
|
|
||||||
|
this.bpmnText.setFont('verdana', +fontSize+'px', Font.PLAIN);
|
||||||
this.bpmnText.drawStringRect(this.taskName, padleft, padtop, this.rectWidth, rectheight, 'center');
|
this.bpmnText.drawStringRect(this.taskName, padleft, padtop, this.rectWidth, rectheight, 'center');
|
||||||
// tempcoord = this.coord_converter(this.getWidth(), this.getHeight(), this.taskName.length);
|
// tempcoord = this.coord_converter(this.getWidth(), this.getHeight(), this.taskName.length);
|
||||||
// bpmnText.drawTextString(this.taskName, this.getWidth(), this.getHeight(), tempcoord.temp_x, tempcoord.temp_y);
|
// bpmnText.drawTextString(this.taskName, this.getWidth(), this.getHeight(), tempcoord.temp_x, tempcoord.temp_y);
|
||||||
|
|||||||
Reference in New Issue
Block a user