Add back legacy styles for tick label containers.

These styles are deprecated, but we'll continue to use them until the
release of version 1.0.0, for backwards-compatibility.
pull/1/head
David Schnur 13 years ago
parent 27c701112d
commit 0df6bc4a66

@ -1273,7 +1273,8 @@ Licensed under the MIT license.
var opts = axis.options, ticks = axis.ticks || [],
axisw = opts.labelWidth || 0, axish = opts.labelHeight || 0,
layer = "flot-" + axis.direction + "-axis flot-" + axis.direction + axis.n + "-axis",
legacyStyles = axis.direction + "Axis " + axis.direction + axis.n + "Axis",
layer = "flot-" + axis.direction + "-axis flot-" + axis.direction + axis.n + "-axis " + legacyStyles,
font = opts.font || "flot-tick-label tickLabel";
for (var i = 0; i < ticks.length; ++i) {
@ -2014,11 +2015,12 @@ Licensed under the MIT license.
return;
var box = axis.box,
layer = "flot-" + axis.direction + "-axis flot-" + axis.direction + axis.n + "-axis",
legacyStyles = axis.direction + "Axis " + axis.direction + axis.n + "Axis",
layer = "flot-" + axis.direction + "-axis flot-" + axis.direction + axis.n + "-axis " + legacyStyles,
font = axis.options.font || "flot-tick-label tickLabel",
tick, x, y, halign, valign;
surface.removeText(layer);
surface.removeText(layer);
for (var i = 0; i < axis.ticks.length; ++i) {

Loading…
Cancel
Save