|
@@ -88,10 +88,10 @@ var TREE_SHEET_HELPER = {
|
|
|
};
|
|
|
TreeNodeCellType.prototype = new GC.Spread.Sheets.CellTypes.Text();
|
|
|
TreeNodeCellType.prototype.paint = function (ctx, value, x, y, w, h, style, options) {
|
|
|
- // 画布,(x1, y1)起点(横, 竖), (x2, y2)终点(横, 竖), 颜色
|
|
|
+ // ������(x1, y1)���(��, ��), (x2, y2)�յ�(��, ��), ��ɫ
|
|
|
var drawLine = function (canvas, x1, y1, x2, y2, color) {
|
|
|
ctx.save();
|
|
|
- // 修正偏移量
|
|
|
+ // 锟斤拷锟斤拷偏锟斤拷锟斤拷
|
|
|
ctx.translate(0.5, 0.5);
|
|
|
ctx.beginPath();
|
|
|
ctx.moveTo(x1, y1);
|
|
@@ -111,7 +111,7 @@ var TREE_SHEET_HELPER = {
|
|
|
rect.right = Math.min(rect.right, x + w);
|
|
|
|
|
|
ctx.save();
|
|
|
- // 修正偏移量
|
|
|
+ // 锟斤拷锟斤拷偏锟斤拷锟斤拷
|
|
|
ctx.translate(0.5, 0.5);
|
|
|
ctx.strokeStyle = 'black';
|
|
|
ctx.beginPath();
|