Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
fix(green label size fix): fix
Browse files Browse the repository at this point in the history
n=
  • Loading branch information
tubiaoge committed Aug 31, 2020
1 parent 5a95304 commit b0734b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/global/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ let cellRender = function(r, c, start_r, start_c, end_r, end_c, value, luckyshee

//若单元格有批注(单元格右上角红色小三角标示)
if(cell.ps != null){
let ps_w = 6*Store.zoomRatio, ps_h = 6*Store.zoomRatio; //红色小三角宽高
let ps_w = 8*Store.zoomRatio, ps_h = 8*Store.zoomRatio; //红色小三角宽高

luckysheetTableContent.beginPath();
luckysheetTableContent.moveTo(
Expand All @@ -1265,15 +1265,15 @@ let cellRender = function(r, c, start_r, start_c, end_r, end_c, value, luckyshee

luckysheetTableContent.beginPath();
luckysheetTableContent.moveTo(
(start_c + offsetLeft + ps_w),
(start_c + offsetLeft + ps_w-1),
(start_r + offsetTop)
);
luckysheetTableContent.lineTo(
(start_c + offsetLeft),
(start_c + offsetLeft-1),
(start_r + offsetTop)
);
luckysheetTableContent.lineTo(
(start_c + offsetLeft),
(start_c + offsetLeft-1),
(start_r + offsetTop + ps_h)
);
luckysheetTableContent.fillStyle = "#487f1e";
Expand Down

0 comments on commit b0734b5

Please sign in to comment.