* @protected
()
| 1444 | * @protected |
| 1445 | */ |
| 1446 | drawBackground() { |
| 1447 | const {ctx, options: {backgroundColor}, left, top, width, height} = this; |
| 1448 | if (backgroundColor) { |
| 1449 | ctx.save(); |
| 1450 | ctx.fillStyle = backgroundColor; |
| 1451 | ctx.fillRect(left, top, width, height); |
| 1452 | ctx.restore(); |
| 1453 | } |
| 1454 | } |
| 1455 | |
| 1456 | getLineWidthForValue(value) { |
| 1457 | const grid = this.options.grid; |