| 
									
										
										
										
											2017-05-15 17:26:30 +03:00
										 |  |  | /********************************************************************** | 
					
						
							|  |  |  | *  | 
					
						
							|  |  |  | * | 
					
						
							|  |  |  | * | 
					
						
							|  |  |  | **********************************************************************/ | 
					
						
							|  |  |  | ((typeof define)[0]=='u'?function(f){module.exports=f(require)}:define) | 
					
						
							|  |  |  | (function(require){ var module={} // make module AMD/node compatible...
 | 
					
						
							|  |  |  | /*********************************************************************/ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-05-16 00:26:37 +03:00
										 |  |  | var object = require('lib/object') | 
					
						
							| 
									
										
										
										
											2017-05-15 17:26:30 +03:00
										 |  |  | var actions = require('lib/actions') | 
					
						
							|  |  |  | var features = require('lib/features') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | var core = require('features/core') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /*********************************************************************/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | var ReactActions = actions.Actions({ | 
					
						
							| 
									
										
										
										
											2017-05-16 01:46:51 +03:00
										 |  |  | 	load: [ | 
					
						
							|  |  |  | 		function(){ | 
					
						
							|  |  |  | 			// XXX
 | 
					
						
							|  |  |  | 		}], | 
					
						
							|  |  |  | 	reload: [ | 
					
						
							|  |  |  | 		function(){ | 
					
						
							|  |  |  | 			// XXX
 | 
					
						
							|  |  |  | 		}], | 
					
						
							|  |  |  | 	refresh: [ | 
					
						
							|  |  |  | 		function(){ | 
					
						
							|  |  |  | 			// XXX
 | 
					
						
							|  |  |  | 		}], | 
					
						
							|  |  |  | 	clear: [ | 
					
						
							|  |  |  | 		function(){ | 
					
						
							|  |  |  | 			// XXX
 | 
					
						
							|  |  |  | 		}], | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	resizing: [ | 
					
						
							| 
									
										
										
										
											2018-02-13 01:14:35 +03:00
										 |  |  | 		core.Event(function(unit, size, overflow){ | 
					
						
							| 
									
										
										
										
											2017-05-16 01:46:51 +03:00
										 |  |  | 			// This is a resizing protocol root function.
 | 
					
						
							|  |  |  | 			//
 | 
					
						
							|  |  |  | 			// This will never be used directly, but will wrap protocol user
 | 
					
						
							|  |  |  | 			// functions.
 | 
					
						
							|  |  |  | 			//
 | 
					
						
							|  |  |  | 			// As an example see: .viewScale(..)
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			// XXX stop current animation...
 | 
					
						
							|  |  |  | 			// XXX
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			// XXX call .resizingDone(..) when animations done...
 | 
					
						
							|  |  |  | 			// XXX
 | 
					
						
							|  |  |  | 		})], | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	viewScale: ['- Zoom/', | 
					
						
							|  |  |  | 		function(scale){  | 
					
						
							|  |  |  | 			if(scale == null || scale == '?'){ | 
					
						
							|  |  |  | 				return // XXX get scale...
 | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			this.resizing.chainCall(this, function(){ | 
					
						
							|  |  |  | 				// XXX set scale...
 | 
					
						
							|  |  |  | 			}, 'scale', scale) | 
					
						
							|  |  |  | 		}], | 
					
						
							|  |  |  | 	fitImage: ['Zoom/Fit image', | 
					
						
							|  |  |  | 		function(count, overflow){  | 
					
						
							|  |  |  | 			if(count == '?'){ | 
					
						
							|  |  |  | 				return // XXX get size...
 | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			this.resizing.chainCall(this, function(){ | 
					
						
							|  |  |  | 				// XXX
 | 
					
						
							|  |  |  | 			}, 'screenwidth', count, overflow) | 
					
						
							|  |  |  | 		}], | 
					
						
							|  |  |  | 	fitRibbon: ['Zoom/Fit ribbon vertically', | 
					
						
							|  |  |  | 		function(count, whole){  | 
					
						
							|  |  |  | 			if(count == '?'){ | 
					
						
							|  |  |  | 				return // XXX get size...
 | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			this.resizing.chainCall(this, function(){ | 
					
						
							|  |  |  | 				// XXX set size...
 | 
					
						
							|  |  |  | 			}, 'screenheight', count, whole) | 
					
						
							|  |  |  | 		}], | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	centerImage: ['- Interface/Center an image in ribbon horizontally', | 
					
						
							|  |  |  | 		function(target, align, offset, scale){  | 
					
						
							|  |  |  | 			// XXX
 | 
					
						
							|  |  |  | 		}], | 
					
						
							|  |  |  | 	centerRibbon: ['- Interface/Center a ribbon vertically', | 
					
						
							|  |  |  | 		function(target){  | 
					
						
							|  |  |  | 			// XXX
 | 
					
						
							|  |  |  | 		}], | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	ribbonRotation: ['- Interface|Ribbon/',  | 
					
						
							|  |  |  | 		function(angle){  | 
					
						
							|  |  |  | 			// XXX
 | 
					
						
							|  |  |  | 		}], | 
					
						
							| 
									
										
										
										
											2017-05-15 17:26:30 +03:00
										 |  |  | }) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | var React =  | 
					
						
							|  |  |  | module.React = core.ImageGridFeatures.Feature({ | 
					
						
							|  |  |  | 	title: '', | 
					
						
							|  |  |  | 	doc: '', | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	tag: 'ui-react-render', | 
					
						
							|  |  |  | 	exclusive: ['ui-render'], | 
					
						
							|  |  |  | 	depends: [ | 
					
						
							|  |  |  | 		// XXX
 | 
					
						
							|  |  |  | 	], | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	actions: ReactActions,  | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-05-16 01:46:51 +03:00
										 |  |  | 	handlers: [ | 
					
						
							|  |  |  | 		// XXX
 | 
					
						
							|  |  |  | 	], | 
					
						
							| 
									
										
										
										
											2017-05-15 17:26:30 +03:00
										 |  |  | }) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /********************************************************************** | 
					
						
							|  |  |  | * vim:set ts=4 sw=4 :                               */ return module }) |