Преглед на файлове

提交失败重新提交

zhongzewei преди 8 години
родител
ревизия
afd0ce8573
променени са 2 файла, в които са добавени 3 реда и са изтрити 4 реда
  1. 0 1
      public/web/tree_sheet_controller.js
  2. 3 3
      public/web/tree_sheet_helper.js

+ 0 - 1
public/web/tree_sheet_controller.js

@@ -17,7 +17,6 @@ var TREE_SHEET_CONTROLLER = {
             var that = this;
             TREE_SHEET_HELPER.loadSheetHeader(this.setting, this.sheet);
             TREE_SHEET_HELPER.showTreeData(this.setting, this.sheet, this.tree);
-
             this.sheet.bind(GC.Spread.Sheets.Events.SelectionChanged, function (e, info) {
                 that.setTreeSelected(that.tree.findNode(info.sheet.getTag(info.newSelections[0].row, info.newSelections[0].col)));
             });

+ 3 - 3
public/web/tree_sheet_helper.js

@@ -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();