mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-11-04 05:10:07 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			151 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			JavaScript
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			151 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			JavaScript
		
	
	
		
			Executable File
		
	
	
	
	
/**********************************************************************
 | 
						|
* 
 | 
						|
*
 | 
						|
*
 | 
						|
**********************************************************************/
 | 
						|
((typeof define)[0]=='u'?function(f){module.exports=f(require)}:define)
 | 
						|
(function(require){ var module={} // make module AMD/node compatible...
 | 
						|
/*********************************************************************/
 | 
						|
 | 
						|
var actions = require('lib/actions')
 | 
						|
var features = require('lib/features')
 | 
						|
 | 
						|
var core = require('features/core')
 | 
						|
 | 
						|
 | 
						|
 | 
						|
/*********************************************************************/
 | 
						|
// Meta features...
 | 
						|
//
 | 
						|
// XXX need to make a set of basic configurations:
 | 
						|
// 		- commandline		- everything but no UI
 | 
						|
// 		- viewer-minimal	- basic browser compatible viewer
 | 
						|
// 		- viewer			- full viewer
 | 
						|
// 		- editor			- editing capability
 | 
						|
//
 | 
						|
 | 
						|
core.ImageGridFeatures.Feature('viewer-commandline', [
 | 
						|
	'lifecycle',
 | 
						|
	'commandline',
 | 
						|
])
 | 
						|
 | 
						|
 | 
						|
core.ImageGridFeatures.Feature('viewer-minimal', [
 | 
						|
	'lifecycle',
 | 
						|
	'base-full',
 | 
						|
 | 
						|
	'peer',
 | 
						|
 | 
						|
	'image-marks',
 | 
						|
	'image-bookmarks',
 | 
						|
 | 
						|
	'fs',
 | 
						|
	'sharp',
 | 
						|
 | 
						|
	'metadata',
 | 
						|
])
 | 
						|
 | 
						|
 | 
						|
core.ImageGridFeatures.Feature('viewer-testing', [
 | 
						|
	'viewer-commandline',
 | 
						|
	'viewer-minimal',
 | 
						|
 | 
						|
	'peer',
 | 
						|
 | 
						|
	'workspace',
 | 
						|
	'ui',
 | 
						|
	'keyboard',
 | 
						|
 | 
						|
	// features...
 | 
						|
	'ui-ribbon-auto-align',
 | 
						|
	
 | 
						|
	'ui-cursor',
 | 
						|
	'ui-animation',
 | 
						|
 | 
						|
	'ui-single-image',
 | 
						|
	//'ui-partial-ribbons',
 | 
						|
	// XXX this is still experimental but seems to already work faster...
 | 
						|
	'ui-partial-ribbons-2',
 | 
						|
 | 
						|
	'marks',
 | 
						|
	'ui-range',
 | 
						|
 | 
						|
	// local storage + url...
 | 
						|
	'config-local-storage',
 | 
						|
	'ui-url-hash',
 | 
						|
	'url-history',
 | 
						|
 | 
						|
 | 
						|
	'external-editor',
 | 
						|
 | 
						|
	'ui-preview-filters',
 | 
						|
 | 
						|
	// chrome...
 | 
						|
	'ui-app-buttons',
 | 
						|
	'ui-buttons',
 | 
						|
	'ui-progress',
 | 
						|
	'ui-status-log',
 | 
						|
	'ui-scale',
 | 
						|
	'ui-animation',
 | 
						|
	'ui-bounds-indicators',
 | 
						|
	'ui-current-image-indicator',
 | 
						|
		// NOTE: only one of these can be set...
 | 
						|
		'ui-current-image-indicator-hide-on-fast-screen-nav',
 | 
						|
		//'ui-current-image-indicator-hide-on-screen-nav',
 | 
						|
	//'ui-base-ribbon-indicator',
 | 
						|
	'ui-passive-base-ribbon-indicator',
 | 
						|
	'ui-status-bar',
 | 
						|
	'ui-url-history',
 | 
						|
 | 
						|
	'ui-browse-actions',
 | 
						|
		'ui-context-action-menu',
 | 
						|
		'ui-widget-test',
 | 
						|
 | 
						|
	// slideshow...
 | 
						|
	'ui-slideshow',
 | 
						|
 | 
						|
	// ui control...
 | 
						|
	//'ui-clickable',
 | 
						|
	//'ui-direct-control-jquery',
 | 
						|
	// XXX BUG: on touch down and first move this gets offset by a distance
 | 
						|
	// 		not sure why...
 | 
						|
	// 		...seems to be related to scaling
 | 
						|
	//'ui-direct-control-gsap',
 | 
						|
	//'ui-direct-control-hammer',
 | 
						|
	//'ui-indirect-control',
 | 
						|
	'ui-control',
 | 
						|
 | 
						|
	// experimental and optional features...
 | 
						|
	//'auto-single-image',
 | 
						|
	//'auto-ribbon',
 | 
						|
	
 | 
						|
	'ui-app-control',
 | 
						|
 | 
						|
	// XXX not yet fully tested...
 | 
						|
	'journal',
 | 
						|
 | 
						|
 | 
						|
	'fail-safe-devtools',
 | 
						|
 | 
						|
	'-experiments',
 | 
						|
])
 | 
						|
 | 
						|
/*
 | 
						|
core.ImageGridFeatures.Feature('viewer-minimal', [
 | 
						|
	'base',
 | 
						|
	'ui',
 | 
						|
	'ui-ribbon-align-to-order',
 | 
						|
	'ui-animation',
 | 
						|
	'ui-bounds-indicators',
 | 
						|
	'ui-current-image-indicator',
 | 
						|
		'ui-current-image-indicator-hide-on-fast-screen-nav',
 | 
						|
		//'ui-current-image-indicator-hide-on-screen-nav',
 | 
						|
	'ui-action-tree',
 | 
						|
])
 | 
						|
*/
 | 
						|
 | 
						|
 | 
						|
 | 
						|
/**********************************************************************
 | 
						|
* vim:set ts=4 sw=4 :                               */ return module })
 |