|
|
@@ -429,9 +429,9 @@ const pmShare = (function () {
|
|
|
}
|
|
|
//互动单元格
|
|
|
function getInteractionCell() {
|
|
|
- let workImg = document.getElementById('work_pic'),
|
|
|
- workImgWidth = 13,
|
|
|
- workImgHeight = 13,
|
|
|
+ let editImg = document.getElementById('edit_pic'),
|
|
|
+ editImgWidth = 13,
|
|
|
+ editImgHeight = 13,
|
|
|
copyImg = document.getElementById('copy_pic'),
|
|
|
copyImgWidth = 13,
|
|
|
copyImgHeight = 13;
|
|
|
@@ -455,11 +455,12 @@ const pmShare = (function () {
|
|
|
let acStyle = options.sheet.getActualStyle(options.row, options.col),
|
|
|
zoom = options.sheet.zoom();
|
|
|
let textLength = this.getAutoFitWidth(value, text, acStyle, zoom, {sheet: options.sheet, row: options.row, col: options.col, sheetArea: GC.Spread.Sheets.SheetArea.viewport});
|
|
|
- let nowX = Math.floor(x) + textLength + 3,
|
|
|
+ const imgIndent = 5;
|
|
|
+ let nowX = Math.floor(x) + textLength + imgIndent,
|
|
|
nowY = Math.floor((y + (y + h)) / 2) - 7;
|
|
|
if (node.data.allowCooperate) {
|
|
|
- ctx.drawImage(workImg, nowX, nowY, workImgWidth, workImgHeight);
|
|
|
- nowX += workImgWidth;
|
|
|
+ ctx.drawImage(editImg, nowX, nowY, editImgWidth, editImgHeight);
|
|
|
+ nowX += editImgWidth;
|
|
|
}
|
|
|
if (node.data.allowCopy) {
|
|
|
ctx.drawImage(copyImg, nowX, nowY, copyImgWidth, copyImgHeight);
|