Lines Matching +full:x +full:- +full:view

18  *   <div class="well"><!-- --></div>
19 * <div class="surface"><!-- --></div>
22 * <a href="#" class="zoomOut">-</a>
28 * that have scrolled out of view.
30 * The "surface" node is the transparent mouse-responsive layer of the
36 * <meta http-equiv="imagetoolbar" content="no" />
38 * Copyright (c) 2005 Michal Migurski <mike-gsv@teczno.com>
59 * @author Michal Migurski <mike-gsv@teczno.com>
62 * NOTE: if artifacts are appearing, then positions include half-pixels
89 … this.zoomLevel = (typeof options.initialZoom == 'undefined' ? -1 : parseInt(options.initialZoom));
95 this.imgsize = { 'x': 0, 'y': 0 }; property
96 this.imgsize.x = (typeof options.imageWidth == 'undefined' ? -1 : parseInt(options.imageWidth));
97 … this.imgsize.y = (typeof options.imageHeight == 'undefined' ? -1 : parseInt(options.imageHeight));
98 this.scaleSize = { 'x': 0, 'y': 0 }; property
107 this.x = 0;
109 this.border = -1;
110 this.mark = { 'x': 0, 'y': 0 }; property
153 PanoJS.TILE_PREFIX = 'tile-';
158 PanoJS.INITIAL_PAN = { 'x': .5, 'y': .5 }; property
170 ….search(/KHTML|Opera/i) >= 0 ? 'pointer' : (document.attachEvent ? 'url(grab.cur)' : '-moz-grab'));
171 …ch(/KHTML|Opera/i) >= 0 ? 'move' : (document.attachEvent ? 'url(grabbing.cur)' : '-moz-grabbing'));
216 calcWidth = Math.max(calcWidth - 2 * border, 0);
217 calcHeight = Math.max(calcHeight - 2 * border, 0);
219 calcWidth--;
223 calcHeight--;
255 this.zoomLevel = -1;
263 var diff = this.zoomLevel - this.maxZoomLevel;
273 this.x = Math.floor(this.scaleSize.x * 0.5 - this.width * 0.5) * -1;
274 this.y = Math.floor(this.scaleSize.y * 0.5 - this.height * 0.5) * -1;
311 var inv = Math.max(this.imgsize.x, this.imgsize.y) /
313 this.scaleSize.x = this.imgsize.x / inv;
359 * Position the tiles based on the x, y coordinates of the
366 motion = { 'x': 0, 'y': 0 }; property
373 tile.posx = (tile.xIndex * this.tileSize) + this.x + motion.x;
379 // tile moved out of view to the right
380 // consider the tile coming into view from the left
382 tile.xIndex -= this.tiles.length;
383 tile.posx = (tile.xIndex * this.tileSize) + this.x + motion.x;
391 // tile may have moved out of view from the left
392 // if so, consider the tile coming into view from the right
393 while (tile.posx < -this.tileSize) {
395 tile.posx = (tile.xIndex * this.tileSize) + this.x + motion.x;
404 // tile moved out of view to the bottom
405 // consider the tile coming into view from the top
407 tile.yIndex -= this.tiles[c].length;
416 // tile may have moved out of view to the top
417 // if so, consider the tile coming into view from the bottom
418 while (tile.posy < -this.tileSize) {
446 // reset the x, y coordinates of the viewer according to motion
448 this.x += motion.x;
470 var right = tile.xIndex >= Math.ceil(this.scaleSize.x / this.tileSize);
570 new PanoJS.ZoomEvent(this.x, this.y, this.zoomLevel, percentage)
580 coords = { 'x': 0, 'y': 0 }; property
586 this.x + (coords.x - this.mark.x),
587 this.y + (coords.y - this.mark.y)
610 var coords = { 'x': Math.floor(this.width / 2), 'y': Math.floor(this.height / 2) }; property
613 'x': (coords.x - this.x), property
614 'y': (coords.y - this.y)
618 'x': Math.floor(before.x * Math.pow(2, direction)), property
622 this.x = coords.x - after.x;
623 this.y = coords.y - after.y;
666 this.positionTiles({ 'x': (coords.x - this.mark.x), 'y': (coords.y - this.mark.y) }); property
672 * This method is typically triggered as the result of a double-click
674 * of the viewable area and the specified (viewer-relative) coordinates.
680 coords.x += this.x;
685 'x': Math.floor((this.width / 2) - coords.x), property
686 'y': Math.floor((this.height / 2) - coords.y)
689 if (motion.x == 0 && motion.y == 0) {
695 var x, y;
697 if (target.x == 0) {
698 x = 0;
702 var slope = Math.abs(target.y / target.x);
703x = Math.round(Math.pow(Math.pow(this.slideAcceleration, 2) / (1 + Math.pow(slope, 2)), .5));
704 y = Math.round(slope * x);
708 'x': Math.min(x, Math.abs(target.x)) * (target.x < 0 ? -1 : 1), property
709 'y': Math.min(y, Math.abs(target.y)) * (target.y < 0 ? -1 : 1)
721 'x': coords.x + motion.x, property
747 'x': Math.floor(this.width / 2), property
762 'x': Math.floor(this.width / 2), property
767 this.x += (after.x - before.x);
768 this.y += (after.y - before.y);
783 …'x': (e.pageX || (e.clientX + (document.documentElement.scrollLeft || document.body.scrollLeft)))
784 ….pageY || (e.clientY + (document.documentElement.scrollTop || document.body.scrollTop))) - this.top
796 'x': (coords.x - this.mark.x), property
797 'y': (coords.y - this.mark.y)
800 this.x += motion.x;
802 this.mark = { 'x': 0, 'y': 0 }; property
822 return (coords.x < this.x ||
824 coords.x > (this.tileSize * Math.pow(2, this.zoomLevel) + this.x) ||
848 zoom + '-' + xIndex + '-' + yIndex +
855 // only grab on left-click
899 self.zoom(-1);
928 'z-index': 999
951 viewer.positionTiles({'x': 0, 'y': -PanoJS.MOVE_THROTTLE}, true); property
953 viewer.positionTiles({'x': -PanoJS.MOVE_THROTTLE, 'y': 0}, true); property
955 viewer.positionTiles({'x': 0, 'y': PanoJS.MOVE_THROTTLE}, true); property
957 viewer.positionTiles({'x': PanoJS.MOVE_THROTTLE, 'y': 0}, true); property
966 viewer.zoom(-1);
972 PanoJS.MoveEvent = function (x, y) { argument
973 this.x = x;
977 PanoJS.ZoomEvent = function (x, y, level, percentage) { argument
978 this.x = x;