Lines Matching refs:ticks
86 * @description The X tick offset the drag node should snap to on each drag move. False for no ticks. Default: false
94 * @description The Y tick offset the drag node should snap to on each drag move. False for no ticks. Default: false
102 * @description An array of page coordinates to use as X ticks for drag movement.
110 * @description An array of page coordinates to use as Y ticks for drag movement.
517 * @param {Number} ticks The array containing our custom tick positions.
522 _calcTickArray: function(pos, ticks, off1, off2) {
523 var i = 0, len = ticks.length, next = 0,
526 if (!ticks || (ticks.length === 0)) {
528 } else if (ticks[0] >= pos) {
529 return ticks[0];
533 if (ticks[next] && ticks[next] >= pos) {
534 diff1 = pos - ticks[i];
535 diff2 = ticks[next] - pos;
536 ret = (diff2 > diff1) ? ticks[i] : ticks[next];
539 if (ticks[i]) {
540 ret = ticks[i];
542 ret = ticks[len - 1];
550 return ticks[ticks.length - 1];