Rename computeAxisBox... to allocateAxisBox

git-svn-id: https://flot.googlecode.com/svn/trunk@304 1e0a6537-2640-0410-bfb7-f154510ff394
pull/1/head
olau@iola.dk 15 years ago
parent 6e99181b33
commit a86bad27dd

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

Loading…
Cancel
Save