Class BpmnCanvasExperimental
Constructorsconstructor new Bpmn Canvas ( __namedParameters ) : BpmnCanvas Experimental
Methodsarc To arc To ( rx , ry , angle , largeArcFlag , sweepFlag , x , y ) : void Experimental
Parameters rx : number ry : number angle : number largeArcFlag : number sweepFlag : number x : number y : number Returns void begin begin ( ) : void Experimental
Returns void close close ( ) : void Experimental
Returns void curve To curve To ( x1 , y1 , x2 , y2 , x3 , y3 ) : void Experimental
Parameters x1 : number y1 : number x2 : number y2 : number x3 : number y3 : number Returns void ellipse ellipse ( x , y , w , h ) : void Experimental
Parameters x : number y : number w : number h : number Returns void fill fill ( ) : void Experimental
Returns void fill And Stroke fill And Stroke ( ) : void Experimental
Returns void line To line To ( x , y ) : void Experimental
Returns void move To move To ( x , y ) : void Experimental
Returns void rect rect ( x , y , w , h ) : void Experimental
Parameters x : number y : number w : number h : number Returns void rotate On Icon Center rotate On Icon Center ( theta ) : void Experimental
Returns void roundrect roundrect ( x , y , w , h , dx , dy ) : void Experimental
Parameters x : number y : number w : number h : number dx : number dy : number Returns void set Fill Color set Fill Color ( fillColor ) : void Experimental
Returns void set Icon Origin For Icon Bottom Centered set Icon Origin For Icon Bottom Centered ( bottomMargin ? ) : void Experimental
Parameters bottomMargin : number = StyleDefault.SHAPE_ACTIVITY_BOTTOM_MARGIN Returns void set Icon Origin For Icon Centered set Icon Origin For Icon Centered ( ) : void Experimental
Returns void set Icon Origin To Shape Top Left set Icon Origin To Shape Top Left ( topMargin ? , leftMargin ? ) : void Experimental
Parameters topMargin : number = StyleDefault.SHAPE_ACTIVITY_TOP_MARGIN leftMargin : number = StyleDefault.SHAPE_ACTIVITY_LEFT_MARGIN Returns void set Round Line Join set Round Line Join ( ) : void Experimental
Returns void set Stroke Color set Stroke Color ( color ) : void Experimental
Returns void stroke stroke ( ) : void Experimental
Returns void translate Icon Origin translate Icon Origin ( dx , dy ) : void Experimental
Returns void
Wrapper of
mxAbstractCanvas2D
to simplify method calls when painting icons/markers of BPMN shapes.It can scale dimensions passed to the method of the original
mxAbstractCanvas2D
.WARN: You may use it to customize the BPMN Theme as suggested in the examples. But be aware that the way the default BPMN theme can be modified is subject to change.
Example
The vanilla canvas calls when a scale factor must be applied to position
Example
With
BpmnCanvas