Sha256: e5ab35215151c30a46195e8857b434548c26be1b639d71e0421874b979c6be44
Contents?: true
Size: 621 Bytes
Versions: 2
Compression:
Stored size: 621 Bytes
Contents
JQVMap.prototype.zoomOut = function () { var map = this; var sliderDelta = (jQuery('#zoom').innerHeight() - 6 * 2 - 15 * 2 - 3 * 2 - 7 - 6) / (this.zoomMaxStep - this.zoomCurStep); if (map.zoomCurStep > 1) { map.transX += (map.width / (map.scale / map.zoomStep) - map.width / map.scale) / 2; map.transY += (map.height / (map.scale / map.zoomStep) - map.height / map.scale) / 2; map.setScale(map.scale / map.zoomStep); map.zoomCurStep--; var $slider = jQuery('#zoomSlider'); $slider.css('top', parseInt($slider.css('top'), 10) + sliderDelta); map.container.trigger('zoomOut'); } };
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_modular_admin-1.0.0 | app/assets/node_modules/jqvmap/src/JQVMap/zoomOut.js |
rails_modular_admin-0.4.0 | app/assets/node_modules/jqvmap/src/JQVMap/zoomOut.js |