public
Description: javascript lib for graphically Ruote rendering process definitions
Homepage: http://openwferu.rubyforge.org
Clone URL: git://github.com/jmettraux/ruote-fluo.git
added workitem
jmettraux (author)
Sun Jul 20 05:43:33 -0700 2008
commit  51eebf3b6e6cf466dfd86c339be108eebce6ec22
tree    85747b48bf97d246412dcd95dc4aec731f95a8b4
parent  b72c3512589989f15a5510e0a8371d5d21817564
...
80
81
82
83
84
85
86
...
91
92
93
94
 
95
96
97
98
99
...
80
81
82
 
83
84
85
...
90
91
92
 
93
94
 
95
96
97
0
@@ -80,7 +80,6 @@ get "/" do
0
         FluoCan.crop('fluo');
0
       };
0
       Tred.onOver = function (expid) {
0
- //document.body.appendChild(document.createTextNode(" ei:"+expid));
0
         FluoCan.highlight('fluo', expid);
0
       };
0
     </script>
0
@@ -91,9 +90,8 @@ get "/" do
0
     <canvas id="fluo" width="200" height="200"></canvas>
0
 
0
     <script>
0
- FluoCan.renderFlow('fluo', #{prep}, []);
0
+ FluoCan.renderFlow('fluo', #{prep}, [ '#{wi}' ]);
0
       FluoCan.crop('fluo');
0
- //Fluo.tagExpressionsWithWorkitems('fluo', [ '#{wi}' ]);
0
       //FluoCan.highlight('fluo', '0.0.1');
0
     </script>
0
   </div>
...
574
575
576
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
577
578
579
...
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
0
@@ -574,6 +574,21 @@ var FluoCan = function() {
0
     }
0
 
0
     getHandler(exp).render(c, exp, expid);
0
+
0
+ if (c.canvas.workitems.indexOf(expid) > -1) { // workitem
0
+ var w = getWidth(c, exp);
0
+ var h = getHeight(c, exp);
0
+ var ww = c.mozMeasureText("workitem") + 10;
0
+ var hh = 16;
0
+ c.save();
0
+ c.fillStyle = '#F4D850';
0
+ c.fillRect(w/2 - ww, h - hh, ww, hh);
0
+ c.fillStyle = 'black';
0
+ c.strokeRect(w/2 - ww, h - hh, ww, hh);
0
+ c.translate(w/2 - ww + 5, h - 3);
0
+ c.mozDrawText("workitem");
0
+ c.restore();
0
+ }
0
   }
0
 
0
   /*

Comments

    No one has commented yet.