Commit 0df6bc4a authored by David Schnur's avatar David Schnur

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.
parent 27c70111
...@@ -1273,7 +1273,8 @@ Licensed under the MIT license. ...@@ -1273,7 +1273,8 @@ Licensed under the MIT license.
var opts = axis.options, ticks = axis.ticks || [], var opts = axis.options, ticks = axis.ticks || [],
axisw = opts.labelWidth || 0, axish = opts.labelHeight || 0, 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"; font = opts.font || "flot-tick-label tickLabel";
for (var i = 0; i < ticks.length; ++i) { for (var i = 0; i < ticks.length; ++i) {
...@@ -2014,7 +2015,8 @@ Licensed under the MIT license. ...@@ -2014,7 +2015,8 @@ Licensed under the MIT license.
return; return;
var box = axis.box, 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", font = axis.options.font || "flot-tick-label tickLabel",
tick, x, y, halign, valign; tick, x, y, halign, valign;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment