|
|
|
|
@ -2417,16 +2417,13 @@ Licensed under the MIT license.
|
|
|
|
|
yrange.from = Math.max(yrange.from, yrange.axis.min);
|
|
|
|
|
yrange.to = Math.min(yrange.to, yrange.axis.max);
|
|
|
|
|
|
|
|
|
|
if (xrange.from === xrange.to && yrange.from === yrange.to) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// then draw
|
|
|
|
|
xrange.from = xrange.axis.p2c(xrange.from);
|
|
|
|
|
xrange.to = xrange.axis.p2c(xrange.to);
|
|
|
|
|
yrange.from = yrange.axis.p2c(yrange.from);
|
|
|
|
|
yrange.to = yrange.axis.p2c(yrange.to);
|
|
|
|
|
|
|
|
|
|
if (xrange.from !== xrange.to || xrange.from !== yrange.to) {
|
|
|
|
|
if (xrange.from === xrange.to || yrange.from === yrange.to) {
|
|
|
|
|
// draw line
|
|
|
|
|
ctx.beginPath();
|
|
|
|
|
@ -2448,6 +2445,7 @@ Licensed under the MIT license.
|
|
|
|
|
ctx.fill();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (m.text) {
|
|
|
|
|
// left aligned horizontal position:
|
|
|
|
|
|