1 /** 2 * @fileOverview Contains the jMatrixBrowse constants. 3 * @version 0.1 4 * @author Pulkit Goyal <pulkit110@gmail.com> 5 */ 6 7 var jMatrixBrowseNs = jMatrixBrowseNs || {}; 8 9 /** 10 * Constants for jMatrixBrowse. 11 * 12 * @class Constants 13 * @memberOf jMatrixBrowseNs 14 */ 15 jMatrixBrowseNs.Constants = { 16 // Overflow Types. 17 OVERFLOW_LEFT : 1, 18 OVERFLOW_RIGHT : 2, 19 OVERFLOW_TOP : 3, 20 OVERFLOW_BOTTOM : 4, 21 OVERFLOW_NONE : -1, 22 23 CLASS_BASE : 'jmatrixbrowse', 24 N_BACKGROUND_CELLS : 1, 25 26 // Default option values 27 DEFAULT_OPTIONS : { 28 str_initialWindowPosition: '0,0', 29 str_initialWindowSize: '10,10', 30 boo_snap: false, 31 boo_animate: false, 32 minVelocityForAnimation: 4, 33 animationDuration: 2000 34 }, 35 36 // Background Loading 37 DEFAULT_DATA_RELOAD_STRATEGY: 1, 38 RELOAD_HTML_REPLACEMENT: 1, 39 RELOAD_CELL_REPLACEMENT: 2, 40 RELOAD_CELL_POSITION: 3, 41 BACKGROUND_DATA_RELOAD_DELAY: 2000, // milliseconds to wait before sending another request to api 42 43 // Zooming 44 ZOOM_LEVEL_DIFFERENCE: 2, 45 ZOOM_MAX_WINDOW_SIZE: { 46 height: 10, 47 width: 20 48 } 49 }; 50