|
@@ -2392,6 +2392,7 @@ const SpreadJsObj = {
|
|
CircleTagCellType.prototype = new spreadNS.CellTypes.RowHeader();
|
|
CircleTagCellType.prototype = new spreadNS.CellTypes.RowHeader();
|
|
const proto = CircleTagCellType.prototype;
|
|
const proto = CircleTagCellType.prototype;
|
|
proto.indent = setting.indent || 16;
|
|
proto.indent = setting.indent || 16;
|
|
|
|
+ proto.size = setting.size || 6;
|
|
proto.getTagColor = setting.getColor;
|
|
proto.getTagColor = setting.getColor;
|
|
proto.basePaint = proto.paint;
|
|
proto.basePaint = proto.paint;
|
|
proto.paint = function (canvas, value, x, y, w, h, style, options) {
|
|
proto.paint = function (canvas, value, x, y, w, h, style, options) {
|
|
@@ -2411,7 +2412,7 @@ const SpreadJsObj = {
|
|
let color = this.getTagColor(options.row, node);
|
|
let color = this.getTagColor(options.row, node);
|
|
color = color instanceof Array ? color : [color];
|
|
color = color instanceof Array ? color : [color];
|
|
for (let i = color.length - 1; i >= 0; i--) {
|
|
for (let i = color.length - 1; i >= 0; i--) {
|
|
- drawCircle2(canvas, x + w - this.indent + 5 + i*5 , y + h/2, 6, backColor, color[i]);
|
|
|
|
|
|
+ drawCircle2(canvas, x + w - this.indent + 5 + i*5 , y + h/2, this.size, backColor, color[i]);
|
|
}
|
|
}
|
|
};
|
|
};
|
|
/**
|
|
/**
|