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