|
|
|
@ -1395,13 +1395,15 @@ Licensed under the MIT license.
|
|
|
|
if ($.inArray(axis, samePosition) == samePosition.length - 1)
|
|
|
|
if ($.inArray(axis, samePosition) == samePosition.length - 1)
|
|
|
|
axisMargin = 0; // outermost
|
|
|
|
axisMargin = 0; // outermost
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Determine whether the axis is the first (innermost) on its side
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
innermost = $.inArray(axis, $.grep(all, function (a) {
|
|
|
|
|
|
|
|
return a && a.reserveSpace;
|
|
|
|
|
|
|
|
})) == 0;
|
|
|
|
|
|
|
|
|
|
|
|
// determine tick length - if we're innermost, we can use "full"
|
|
|
|
// determine tick length - if we're innermost, we can use "full"
|
|
|
|
if (tickLength == null) {
|
|
|
|
|
|
|
|
var sameDirection = $.grep(all, function (a) {
|
|
|
|
|
|
|
|
return a && a.reserveSpace;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
innermost = $.inArray(axis, sameDirection) == 0;
|
|
|
|
if (tickLength == null) {
|
|
|
|
if (innermost)
|
|
|
|
if (innermost)
|
|
|
|
tickLength = "full";
|
|
|
|
tickLength = "full";
|
|
|
|
else
|
|
|
|
else
|
|
|
|
|