spadged / alivepdf

Automatically exported from code.google.com/p/alivepdf
0 stars 0 forks source link

AlivePDF 0.15 Beta - Grid documentation or constructor detail error? #278

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The documentation for Grid() details the following:

Grid    ()  Constructor
public function Grid(data:Array, width:Number, height:Number, 
headerColor:IColor, backgroundColor:IColor, cellColor:IColor, 
alternateRowColor:Boolean, borderColor:IColor, borderAlpha:Number = 1, 
joints:String = 0 j)

However, when used and error is generated on the last 4 elements as if 
indicating the last 4 elements are incorrect / out of sequence - however they 
are correct based on the documentation:

<sourcefile>(212): col: 134 Error: Implicit coercion of a value of type Boolean 
to an unrelated type org.alivepdf.colors:IColor.
var grid:Grid = new Grid (tempAC.toArray(), wid, 200, new RGBColor (0xCCCCCC), 
new RGBColor (0xFFFFFF), new RGBColor (0xFFFFFF), true, new RGBColor ( 0x0 ), 
1, Joint.MITER );
                                                                                                                                 ^
<sourcefile>(212): col: 144 Error: Implicit coercion of a value of type 
org.alivepdf.colors:RGBColor to an unrelated type Number.
var grid:Grid = new Grid (tempAC.toArray(), wid, 200, new RGBColor (0xCCCCCC), 
new RGBColor (0xFFFFFF), new RGBColor (0xFFFFFF), true, new RGBColor ( 0x0 ), 
1, Joint.MITER );
                                                                                                                                           ^
<sourcefile>(212): col: 162 Error: Implicit coercion of a value of type int to 
an unrelated type String.
var grid:Grid = new Grid (tempAC.toArray(), wid, 200, new RGBColor (0xCCCCCC), 
new RGBColor (0xFFFFFF), new RGBColor (0xFFFFFF), true, new RGBColor ( 0x0 ), 
1, Joint.MITER );
                                                                                                                                                             ^
<sourcefile>(212): col: 171 Error: Implicit coercion of a value of type String 
to an unrelated type Array.
var grid:Grid = new Grid (tempAC.toArray(), wid, 200, new RGBColor (0xCCCCCC), 
new RGBColor (0xFFFFFF), new RGBColor (0xFFFFFF), true, new RGBColor ( 0x0 ), 
1, Joint.MITER );
                                                                                                                                                                      ^

Can you advise what the correct syntax is for grid() in 0.15 beta?

Original issue reported on code.google.com by alex.bra...@gmail.com on 6 Sep 2010 at 12:54

GoogleCodeExporter commented 9 years ago
Issue also exists with 0.1.5 RC, however for this specific function, the code 
above works with 0.4.8, so I am thinking a regression bug?

Original comment by alex.bra...@gmail.com on 7 Sep 2010 at 8:49