/[pub]/test/html-whatpm/table-script.js
Suika

Contents of /test/html-whatpm/table-script.js

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download) (as text)
Tue May 6 08:47:09 2008 UTC (18 years, 2 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +6 -2 lines
File MIME type: application/javascript
Error occurred while calculating annotation data.
++ ChangeLog	6 May 2008 08:47:05 -0000
	* cc.cgi: Use table object returned by the checker; don't
	form a table by itself.

	* table-script.js: Use different coloring for empty data cells.

	* cc.cgi, table.cgi: Remove table reference for JSON convertion.

2008-05-06  Wakaba  <wakaba@suika.fam.cx>

1 function tableToCanvas (table, parent, idPrefix) {
2 var canvas = document.createElement ('canvas');
3 parent.appendChild (canvas);
4 if (window.G_vmlCanvasManager) {
5 canvas = G_vmlCanvasManager.initElement (canvas);
6 }
7 var c2d = canvas.getContext ('2d');
8
9 var param = {
10 columnLeft: 20,
11 columnWidth: 20,
12 columnSpacing: 5,
13 columnGroupTop: 10,
14 columnTop: 15,
15 rowTop: 20,
16 rowHeight: 20,
17 rowSpacing: 5,
18 rowGroupLeft: 10,
19 rowGroupFillLeft: 20, /* Must be same as columnLeft */
20 rowLeft: 15,
21 cellTop: 20,
22 cellLeft: 20, /* Must be same as columnLeft */
23 cellBottom: 20,
24 cellRight: 20,
25 explicitColumnGroupStrokeStyle: 'black',
26 explicitColumnStrokeStyle: 'black',
27 impliedColumnStrokeStyle: '#C0C0C0',
28 explicitHeaderRowGroupStrokeStyle: 'black',
29 explicitHeaderRowGroupFillStyle: 'rgba(220, 220, 220, 0.3)',
30 explicitBodyRowGroupStrokeStyle: 'black',
31 explicitBodyRowGroupFillStyle: 'rgba(0, 0, 0, 0)',
32 explicitFooterRowGroupStrokeStyle: 'black',
33 explicitFooterRowGroupFillStyle: 'rgba(220, 220, 220, 0.3)',
34 e