Lines Matching refs:direction

22200 	      var direction;
22205 direction = 'left';
22209 direction = 'up';
22213 direction = 'right';
22217 direction = 'down';
22223 direction: direction
22238 switch (opts.direction) {
22646 var direction = delta > 0 ? 1 : -1;
22654 newLinearZoomLevel += stepSize * direction;
23336 velocity, velocityX, velocityY, direction;
23346 direction = getDirection(deltaX, deltaY);
23354 direction = last.direction;
23360 input.direction = direction;
23983 var direction = input.offsetDirection;
24014 (hasPanY && direction & DIRECTION_HORIZONTAL) ||
24015 (hasPanX && direction & DIRECTION_VERTICAL)) {
24381 function directionStr(direction) { argument
24382 if (direction == DIRECTION_DOWN) {
24384 } else if (direction == DIRECTION_UP) {
24386 } else if (direction == DIRECTION_LEFT) {
24388 } else if (direction == DIRECTION_RIGHT) {
24491 direction: DIRECTION_ALL
24495 var direction = this.options.direction;
24497 if (direction & DIRECTION_HORIZONTAL) {
24500 if (direction & DIRECTION_VERTICAL) {
24510 var direction = input.direction;
24515 if (!(direction & options.direction)) {
24516 if (options.direction & DIRECTION_HORIZONTAL) {
24517direction = (x === 0) ? DIRECTION_NONE : (x < 0) ? DIRECTION_LEFT : DIRECTION_RIGHT;
24521 direction = (y === 0) ? DIRECTION_NONE : (y < 0) ? DIRECTION_UP : DIRECTION_DOWN;
24526 input.direction = direction;
24527 return hasMoved && distance > options.threshold && direction & options.direction;
24540 var direction = directionStr(input.direction);
24542 if (direction) {
24543 input.additionalEvent = this.options.event + direction;
24709 direction: DIRECTION_HORIZONTAL | DIRECTION_VERTICAL,
24718 var direction = this.options.direction;
24721 if (direction & (DIRECTION_HORIZONTAL | DIRECTION_VERTICAL)) {
24723 } else if (direction & DIRECTION_HORIZONTAL) {
24725 } else if (direction & DIRECTION_VERTICAL) {
24730 direction & input.offsetDirection &&
24737 var direction = directionStr(input.offsetDirection);
24738 if (direction) {
24739 this.manager.emit(this.options.event + direction, input);
24930 [SwipeRecognizer, {direction: DIRECTION_HORIZONTAL}],
24931 [PanRecognizer, {direction: DIRECTION_HORIZONTAL}, ['swipe']],
26054 direction = hints.direction || 'e',
26065 if (direction === 'n') {
26073 } else if (direction === 'w') {
26081 } else if (direction === 's') {
29273 direction, axis, dragPosition;
29275 direction = pointsAligned(segmentStart, segmentEnd);
29278 if (!direction) {
29283 axis = direction === 'v' ? 'x' : 'y';
35750 function resizeBounds$1(bounds, direction, delta) { argument
35761 if (direction.indexOf('n') !== -1) {
35764 } else if (direction.indexOf('s') !== -1) {
35768 if (direction.indexOf('e') !== -1) {
35770 } else if (direction.indexOf('w') !== -1) {
35832 function getMinResizeBounds(direction, currentBounds, minDimensions, childrenBounds) { argument
35837 top: /n/.test(direction) ? currentBox.bottom - minDimensions.height : currentBox.top,
35838 left: /w/.test(direction) ? currentBox.right - minDimensions.width : currentBox.left,
35839 bottom: /s/.test(direction) ? currentBox.top + minDimensions.height : currentBox.bottom,
35840 right: /e/.test(direction) ? currentBox.left + minDimensions.width : currentBox.right
36706 DistributeElements$1.prototype._setOrientation = function(direction) { argument
36707 var orientation = AXIS_DIMENSIONS[direction];
36931 keyboardMoveSelection.moveSelection(opts.direction, opts.accelerated);
37445 var direction = context.direction;
37465 if (isWest(direction)) {
37473 if (isNorth(direction)) {
37485 if (isWest(direction)) {
37493 if (isNorth(direction)) {
37573 function isNorth(direction) { argument
37574 return direction.indexOf('n') !== -1;
37577 function isWest(direction) { argument
37578 return direction.indexOf('w') !== -1;
38404 var direction = KEY_TO_DIRECTION[keyEvent.key];
38406 if (!direction) {
38416 self.moveSelection(direction, accelerated);
38429 this.moveSelection = function(direction, accelerated) { argument
38443 var delta = DIRECTIONS_DELTA[direction](speed);
38601 direction = context.direction,
38607 newBounds = resizeBounds$1(shape, direction, delta);
38710 direction;
38714 direction: contextOrDirection
38720 direction = context.direction;
38722 if (!direction) {
38726 dragging.init(event, getReferencePoint$1(shape, direction), 'resize', {
38728 cursor: getCursor(direction),
38738 direction = context.direction,
38752 return getMinResizeBounds(direction, shape, minDimensions, childrenBounds);
38772 function getReferencePoint$1(shape, direction) { argument
38781 if (direction.indexOf('n') !== -1) {
38783 } else if (direction.indexOf('s') !== -1) {
38787 if (direction.indexOf('e') !== -1) {
38789 } else if (direction.indexOf('w') !== -1) {
38796 function getCursor(direction) { argument
38799 if (direction === 'n' || direction === 's') {
38801 } else if (direction === 'e' || direction === 'w') {
38803 } else if (direction === 'nw' || direction === 'se') {
38939 ResizeHandles.prototype.makeDraggable = function(element, gfx, direction) { argument
38946 resize.activate(event, element, direction);
38955 ResizeHandles.prototype._createResizer = function(element, x, y, direction) { argument
38958 var offset = getHandleOffset(direction);
38964 classes(group).add(CLS_RESIZER + '-' + direction);
38999 ResizeHandles.prototype.createResizer = function(element, direction) { argument
39000 var point = getReferencePoint$1(element, direction);
39002 var resizer = this._createResizer(element, point.x, point.y, direction);
39004 this.makeDraggable(element, resizer, direction);
39023 forEach(directions, function(direction) { argument
39024 self.createResizer(shape, direction);
39050 function getHandleOffset(direction) { argument
39056 if (direction.indexOf('e') !== -1) {
39058 } else if (direction.indexOf('w') !== -1) {
39062 if (direction.indexOf('s') !== -1) {
39064 } else if (direction.indexOf('n') !== -1) {
43467 direction = context.direction,
43471 context.resizeConstraints = getParticipantResizeConstraints(shape, direction, balanced);
47185 function resizeBounds(bounds, direction, delta) { argument
47193 switch (direction) {
47223 throw new Error('unknown direction: ' + direction);
47309 direction = context.direction,
47327 self.makeSpace(movingShapes, resizingShapes, delta, direction, start);
47392 SpaceTool.prototype.makeSpace = function(movingShapes, resizingShapes, delta, direction, start) { argument
47393 return this._modeling.createSpace(movingShapes, resizingShapes, delta, direction, start);
47423 var direction = getDirection(axis, delta);
47433 direction: direction,
47438 …var spaceToolConstraints = getSpaceToolConstraints(elements, axis, direction, start, minDimensions…
47445 direction: direction,
47568 function getSpaceToolConstraints(elements, axis, direction, start, minDimensions) { argument
47604 resizingShapeBBox[ DIRECTION_TO_TRBL[ direction ] ] +
47605 nonMovingResizingChildrenBBox[ DIRECTION_TO_TRBL[ direction ] ];
47607 if (direction === 'n') {
47609 } else if (direction === 'w') {
47611 } else if (direction === 's') {
47613 } else if (direction === 'e') {
47622 movingChildrenBBox[ DIRECTION_TO_TRBL[ DIRECTION_TO_OPPOSITE[ direction ] ] ] +
47623 resizingShapeBBox[ DIRECTION_TO_TRBL[ DIRECTION_TO_OPPOSITE[ direction ] ] ];
47625 if (direction === 'n') {
47627 } else if (direction === 'w') {
47629 } else if (direction === 's') {
47631 } else if (direction === 'e') {
47639 if (direction === 'n') {
47645 } else if (direction === 'w') {
47651 } else if (direction === 's') {
47657 } else if (direction === 'e') {
47890 if (context.direction === 'e') {
47903 if (context.direction === 's') {
50470 direction = context.direction,
50485 this.resizeShapes(resizingShapes, delta, direction);
50491 direction,
50514 SpaceToolHandler.prototype.resizeShapes = function(shapes, delta, direction) { argument
50518 var newBounds = resizeBounds(shape, direction, delta);
50536 direction, argument
50549 axis = getAxisFromDirection(direction),
50558 if (shouldMoveWaypoint(waypoint, start, direction)) {
50564 if (waypoint.original && shouldMoveWaypoint(waypoint.original, start, direction)) {
50618 function getAxisFromDirection(direction) { argument
50619 switch (direction) {
50631 function shouldMoveWaypoint(waypoint, start, direction) { argument
50632 var relevantAxis = getAxisFromDirection(direction);
50634 if (/e|s/.test(direction)) {
50636 } else if (/n|w/.test(direction)) {
51263 …Modeling$1.prototype.createSpace = function(movingShapes, resizingShapes, delta, direction, start)… argument
51266 direction: direction, property in AnonymousFunctionf8d14cd15cd00.context
51785 direction = location === 'top' ? 'n' : 's';
51793 direction,
51969 direction,
51977 direction = trblDiff.bottom ? 's' : 'n';
51983 …ol.makeSpace(adjustments.movingShapes, adjustments.resizingShapes, { x: 0, y: change }, direction);
51991 direction = trblDiff.right ? 'e' : 'w';
51997 …ol.makeSpace(adjustments.movingShapes, adjustments.resizingShapes, { x: change, y: 0 }, direction);
52694 function canLayoutStraight(direction, targetOrientation) { argument
52702 }[direction].test(targetOrientation);
56410 var direction = getBoundaryAttachment(event, target);
56423 if (/top/.test(direction)) {
56425 } else if (/bottom/.test(direction)) {
56429 if (/left/.test(direction)) {
56431 } else if (/right/.test(direction)) {
56512 direction = context.direction,
56526 snapPoints = self.addSnapTargetPoints(snapPoints, shape, parent, direction);
56531 if (isHorizontal(direction)) {
56535 if (isVertical(direction)) {
56550 direction = context.direction,
56557 var snapOrigin = getSnapOrigin(shape, direction);
56567 ResizeSnapping.prototype.addSnapTargetPoints = function(snapPoints, shape, target, direction) { argument
56575 snapPoints.add('corner', getSnapOrigin(shape, direction));
56596 function getSnapOrigin(shape, direction) { argument
56605 if (direction.indexOf('n') !== -1) {
56607 } else if (direction.indexOf('s') !== -1) {
56611 if (direction.indexOf('e') !== -1) {
56613 } else if (direction.indexOf('w') !== -1) {
56636 function isHorizontal(direction) { argument
56637 return direction === 'n' || direction === 's';
56640 function isVertical(direction) { argument
56641 return direction === 'e' || direction === 'w';