mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
refining virtual block actions...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
527e5e9784
commit
0b60d6679b
@ -45,6 +45,14 @@ var VirtualBlocksActions = actions.Actions({
|
|||||||
makeVirtualBlock: ['- $Virtual block/',
|
makeVirtualBlock: ['- $Virtual block/',
|
||||||
core.doc`
|
core.doc`
|
||||||
|
|
||||||
|
.makeVirtualBlock(reference, offset, data)
|
||||||
|
-> this
|
||||||
|
|
||||||
|
.makeVirtualBlock(reference, 'after', data)
|
||||||
|
.makeVirtualBlock(reference, 'before', data)
|
||||||
|
-> this
|
||||||
|
|
||||||
|
|
||||||
Virtual Block Format (Image):
|
Virtual Block Format (Image):
|
||||||
{
|
{
|
||||||
// block type...
|
// block type...
|
||||||
@ -133,6 +141,14 @@ var VirtualBlocksActions = actions.Actions({
|
|||||||
makeVirtualBlankBefore: ['Virtual block/51:Add blank $before',
|
makeVirtualBlankBefore: ['Virtual block/51:Add blank $before',
|
||||||
{ browseMode: 'makeVirtualBlank', },
|
{ browseMode: 'makeVirtualBlank', },
|
||||||
'makeVirtualBlank: $0 "before"'],
|
'makeVirtualBlank: $0 "before"'],
|
||||||
|
|
||||||
|
cloneVirtualBlock: ['Virtual block/Clone block...',
|
||||||
|
function(ref, offset, img){
|
||||||
|
var img = Object.assign({},
|
||||||
|
this.images[this.data.getImage(ref)] || {},
|
||||||
|
img || {})
|
||||||
|
delete img.gid
|
||||||
|
this.makeVirtualBlock(ref, offset, img) }],
|
||||||
})
|
})
|
||||||
|
|
||||||
var VirtualBlocks =
|
var VirtualBlocks =
|
||||||
@ -357,6 +373,19 @@ var VirtualBlocksEditUIActions = actions.Actions({
|
|||||||
})
|
})
|
||||||
.close(function(){
|
.close(function(){
|
||||||
that.refresh(gid) }) })],
|
that.refresh(gid) }) })],
|
||||||
|
|
||||||
|
// XXX virtual block templates...
|
||||||
|
cloneVirtualBlockFromTemplate: ['Virtual block/Clone from...',
|
||||||
|
function(){
|
||||||
|
}],
|
||||||
|
saveVirtualBlockAs Template: ['Virtual block/Save as template',
|
||||||
|
function(gid){
|
||||||
|
}],
|
||||||
|
|
||||||
|
// XXX list existing non-blank v-blocks...
|
||||||
|
cloneVirtualBlockFrom: ['Virtual block/Clone from...',
|
||||||
|
function(){
|
||||||
|
}],
|
||||||
})
|
})
|
||||||
|
|
||||||
// NOTE: this is independent of 'virtual-blocks'...
|
// NOTE: this is independent of 'virtual-blocks'...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user