Commit a86bad27 authored by olau@iola.dk's avatar olau@iola.dk

Rename computeAxisBox... to allocateAxisBox


git-svn-id: https://flot.googlecode.com/svn/trunk@304 1e0a6537-2640-0410-bfb7-f154510ff394
parent 6e99181b
...@@ -860,7 +860,7 @@ ...@@ -860,7 +860,7 @@
axis.labelHeight = h; axis.labelHeight = h;
} }
function computeAxisBoxFirstPhase(axis) { function allocateAxisBoxFirstPhase(axis) {
// find the bounding box of the axis by looking at label // find the bounding box of the axis by looking at label
// widths/heights and ticks, make room by diminishing the // widths/heights and ticks, make room by diminishing the
// plotOffset // plotOffset
...@@ -929,7 +929,7 @@ ...@@ -929,7 +929,7 @@
axis.innermost = innermost; axis.innermost = innermost;
} }
function computeAxisBoxSecondPhase(axis) { function allocateAxisBoxSecondPhase(axis) {
// set remaining bounding box coordinates // set remaining bounding box coordinates
if (axis.direction == "x") { if (axis.direction == "x") {
axis.box.left = plotOffset.left; axis.box.left = plotOffset.left;
...@@ -973,7 +973,7 @@ ...@@ -973,7 +973,7 @@
// with all dimensions in house, we can compute the // with all dimensions in house, we can compute the
// axis boxes, start from the outside (reverse order) // axis boxes, start from the outside (reverse order)
for (i = allocatedAxes.length - 1; i >= 0; --i) for (i = allocatedAxes.length - 1; i >= 0; --i)
computeAxisBoxFirstPhase(allocatedAxes[i]); allocateAxisBoxFirstPhase(allocatedAxes[i]);
// make sure we've got enough space for things that // make sure we've got enough space for things that
// might stick out // might stick out
...@@ -997,7 +997,7 @@ ...@@ -997,7 +997,7 @@
if (options.grid.show) { if (options.grid.show) {
$.each(allocatedAxes, function (_, axis) { $.each(allocatedAxes, function (_, axis) {
computeAxisBoxSecondPhase(axis); allocateAxisBoxSecondPhase(axis);
}); });
insertAxisLabels(); insertAxisLabels();
......
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