mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
added cropFlatten action...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
0d046bb90e
commit
e6a26104c3
@ -795,7 +795,9 @@ module.CropActions = actions.Actions({
|
|||||||
//
|
//
|
||||||
crop: ['- Crop/Crop image list',
|
crop: ['- Crop/Crop image list',
|
||||||
function(list, flatten){
|
function(list, flatten){
|
||||||
list = list || this.data.order
|
//list = list || this.data.order
|
||||||
|
list = list || this.data.getImages()
|
||||||
|
|
||||||
if(this.crop_stack == null){
|
if(this.crop_stack == null){
|
||||||
this.crop_stack = []
|
this.crop_stack = []
|
||||||
}
|
}
|
||||||
@ -862,7 +864,10 @@ module.CropActions = actions.Actions({
|
|||||||
|
|
||||||
// XXX save a crop (catalog)...
|
// XXX save a crop (catalog)...
|
||||||
// XXX
|
// XXX
|
||||||
|
|
||||||
|
// XXX not sure if we actually need this...
|
||||||
|
cropFlatten: ['Crop/Flatten',
|
||||||
|
function(list){ this.crop(list, true) }],
|
||||||
cropRibbon: ['Crop/Crop current ribbon',
|
cropRibbon: ['Crop/Crop current ribbon',
|
||||||
function(ribbon, flatten){
|
function(ribbon, flatten){
|
||||||
if(typeof(ribbon) == typeof(true)){
|
if(typeof(ribbon) == typeof(true)){
|
||||||
@ -872,7 +877,7 @@ module.CropActions = actions.Actions({
|
|||||||
ribbon = ribbon || 'current'
|
ribbon = ribbon || 'current'
|
||||||
this.crop(this.data.getImages(ribbon), flatten)
|
this.crop(this.data.getImages(ribbon), flatten)
|
||||||
}],
|
}],
|
||||||
cropRibbonAndAbove: ['Crop/Crop current and above ribbons',
|
cropRibbonAndAbove: ['Crop/Crop out ribbons bellow',
|
||||||
function(ribbon, flatten){
|
function(ribbon, flatten){
|
||||||
if(typeof(ribbon) == typeof(true)){
|
if(typeof(ribbon) == typeof(true)){
|
||||||
flatten = ribbon
|
flatten = ribbon
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user