mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
added crop before/after...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
9f8564494c
commit
718c746068
@ -1560,8 +1560,19 @@ module.CropActions = actions.Actions({
|
|||||||
// XXX save a crop (catalog)..
|
// XXX save a crop (catalog)..
|
||||||
// XXX
|
// XXX
|
||||||
|
|
||||||
|
cropBefore: ['Crop/Crop current and $befor$e',
|
||||||
|
function(image, flatten){
|
||||||
|
image = image || this.current
|
||||||
|
var list = this.data.getImages()
|
||||||
|
return this.crop(list.slice(0, list.indexOf(image)+1), flatten) }],
|
||||||
|
cropAfter: ['Crop/Crop current and $after',
|
||||||
|
function(image, flatten){
|
||||||
|
image = image || this.current
|
||||||
|
var list = this.data.getImages()
|
||||||
|
return this.crop(list.slice(list.indexOf(image)), flatten) }],
|
||||||
|
|
||||||
// XXX not sure if we actually need this...
|
// XXX not sure if we actually need this...
|
||||||
cropFlatten: ['Crop/Flatten',
|
cropFlatten: ['Crop/$Flatten',
|
||||||
{browseMode: function(){
|
{browseMode: function(){
|
||||||
return this.data.ribbon_order.length <= 1 && 'disabled' }},
|
return this.data.ribbon_order.length <= 1 && 'disabled' }},
|
||||||
function(list){ this.data.length > 0 && this.crop(list, true) }],
|
function(list){ this.data.length > 0 && this.crop(list, true) }],
|
||||||
@ -1608,7 +1619,7 @@ module.CropActions = actions.Actions({
|
|||||||
|
|
||||||
this.crop(crop, flatten)
|
this.crop(crop, flatten)
|
||||||
}],
|
}],
|
||||||
cropOutRibbonsBelow: ['Crop/Crop out ribbons $bellow',
|
cropOutRibbonsBelow: ['Crop/Crop out ribbons be$low',
|
||||||
function(ribbon, flatten){
|
function(ribbon, flatten){
|
||||||
if(this.data.length == 0){
|
if(this.data.length == 0){
|
||||||
return
|
return
|
||||||
@ -1635,7 +1646,7 @@ module.CropActions = actions.Actions({
|
|||||||
|
|
||||||
this.crop(data.getImages(images), flatten)
|
this.crop(data.getImages(images), flatten)
|
||||||
}],
|
}],
|
||||||
|
|
||||||
// XXX should this be here???
|
// XXX should this be here???
|
||||||
cropTagged: ['- Tag|Crop/Crop tagged images',
|
cropTagged: ['- Tag|Crop/Crop tagged images',
|
||||||
function(query, flatten){
|
function(query, flatten){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user