mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
some minor refactoring...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
3958e5a6b3
commit
83d3df856c
@ -18,27 +18,6 @@ var core = require('features/core')
|
|||||||
|
|
||||||
/*********************************************************************/
|
/*********************************************************************/
|
||||||
// helper...
|
// helper...
|
||||||
// XXX should this be an action???
|
|
||||||
function updateImageProportions(){
|
|
||||||
// XXX
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------
|
|
||||||
|
|
||||||
var SingleImageActions = actions.Actions({
|
|
||||||
config: {
|
|
||||||
// NOTE: these will get overwritten if/when the user changes the scale...
|
|
||||||
'single-image-scale': null,
|
|
||||||
'ribbon-scale': null,
|
|
||||||
},
|
|
||||||
|
|
||||||
toggleSingleImage: ['Interface/Toggle single image view',
|
|
||||||
toggler.CSSClassToggler(
|
|
||||||
function(){ return this.ribbons.viewer },
|
|
||||||
'single-image-mode') ],
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
// XXX an ideal case would be:
|
// XXX an ideal case would be:
|
||||||
//
|
//
|
||||||
@ -105,6 +84,28 @@ var SingleImageActions = actions.Actions({
|
|||||||
// + - - - - - - - - - +
|
// + - - - - - - - - - +
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
// XXX should this be an action???
|
||||||
|
function updateImageProportions(){
|
||||||
|
// XXX
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------
|
||||||
|
|
||||||
|
var SingleImageActions = actions.Actions({
|
||||||
|
config: {
|
||||||
|
// NOTE: these will get overwritten if/when the user changes the scale...
|
||||||
|
'single-image-scale': null,
|
||||||
|
'ribbon-scale': null,
|
||||||
|
},
|
||||||
|
|
||||||
|
toggleSingleImage: ['Interface/Toggle single image view',
|
||||||
|
toggler.CSSClassToggler(
|
||||||
|
function(){ return this.ribbons.viewer },
|
||||||
|
'single-image-mode') ],
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
var SingleImageView =
|
var SingleImageView =
|
||||||
module.SingleImageView = core.ImageGridFeatures.Feature({
|
module.SingleImageView = core.ImageGridFeatures.Feature({
|
||||||
title: '',
|
title: '',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user