mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
docs and notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
80dc0869c4
commit
53e1b73607
@ -621,9 +621,12 @@ actions.Actions({
|
|||||||
function(target, to){ this.data.shiftImage(target, to) }],
|
function(target, to){ this.data.shiftImage(target, to) }],
|
||||||
|
|
||||||
shiftImageUp: ['Edit|Image/Shift image up',
|
shiftImageUp: ['Edit|Image/Shift image up',
|
||||||
'If implicitly shifting current image (i.e. no arguments), focus '
|
core.doc`Shift image up...
|
||||||
+'will shift to the next or previous image in the current '
|
|
||||||
+'ribbon depending on current direction.',
|
NOTE: If implicitly shifting current image (i.e. no arguments), focus
|
||||||
|
will shift to the next or previous image in the current
|
||||||
|
ribbon depending on current direction.
|
||||||
|
`,
|
||||||
{undo: undoShift('shiftImageDown')},
|
{undo: undoShift('shiftImageDown')},
|
||||||
function(target){
|
function(target){
|
||||||
// by default we need to focus another image in the same ribbon...
|
// by default we need to focus another image in the same ribbon...
|
||||||
@ -646,9 +649,12 @@ actions.Actions({
|
|||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
shiftImageDown: ['Edit|Image/Shift image down',
|
shiftImageDown: ['Edit|Image/Shift image down',
|
||||||
'If implicitly shifting current image (i.e. no arguments), focus '
|
core.doc`Shift image down...
|
||||||
+'will shift to the next or previous image in the current '
|
|
||||||
+'ribbon depending on current direction.',
|
NOTE: If implicitly shifting current image (i.e. no arguments), focus
|
||||||
|
will shift to the next or previous image in the current
|
||||||
|
ribbon depending on current direction.
|
||||||
|
`,
|
||||||
{undo: undoShift('shiftImageUp')},
|
{undo: undoShift('shiftImageUp')},
|
||||||
function(target){
|
function(target){
|
||||||
// by default we need to focus another image in the same ribbon...
|
// by default we need to focus another image in the same ribbon...
|
||||||
|
|||||||
@ -276,7 +276,7 @@ var IntrospectionActions = actions.Actions({
|
|||||||
|
|
||||||
// check if action is callable by user...
|
// check if action is callable by user...
|
||||||
isUserCallable: ['- System/',
|
isUserCallable: ['- System/',
|
||||||
doc`Test if an action is used callable.
|
doc`Test if an action is callable by user.
|
||||||
|
|
||||||
.isUserCallable(<action-name>)
|
.isUserCallable(<action-name>)
|
||||||
`,
|
`,
|
||||||
|
|||||||
@ -609,15 +609,16 @@ module.ViewerActions = actions.Actions({
|
|||||||
.centerRibbon(target)
|
.centerRibbon(target)
|
||||||
}],
|
}],
|
||||||
|
|
||||||
// This is called by the window resize event handler...
|
|
||||||
//
|
|
||||||
// NOTE: since the centering is passive (done in CSS) we do not need
|
|
||||||
// to do anything here, but this is needed for legacy or
|
|
||||||
// compatibility code that needs to update stuff when resizing
|
|
||||||
// viewer...
|
|
||||||
// To see the list of handlers call:
|
|
||||||
// .getHandlerDocStr('resizingWindow')
|
|
||||||
resizingWindow: ['- Interface/',
|
resizingWindow: ['- Interface/',
|
||||||
|
core.doc`This is called by the window resize event handler...
|
||||||
|
|
||||||
|
NOTE: since the centering is passive (done in CSS) we do not need
|
||||||
|
to do anything here, but this is needed for legacy or
|
||||||
|
compatibility code that needs to update stuff when resizing
|
||||||
|
viewer...
|
||||||
|
To see the list of handlers call:
|
||||||
|
.getHandlerDocStr('resizingWindow')
|
||||||
|
`,
|
||||||
core.notUserCallable(function(){
|
core.notUserCallable(function(){
|
||||||
// This is the window resize event...
|
// This is the window resize event...
|
||||||
})],
|
})],
|
||||||
@ -695,44 +696,45 @@ module.ViewerActions = actions.Actions({
|
|||||||
}],
|
}],
|
||||||
|
|
||||||
|
|
||||||
// Zooming/scaling root action...
|
|
||||||
//
|
|
||||||
// Protocol:
|
|
||||||
// - a compliant action must be wrapped in the .resizing action
|
|
||||||
// - a compliant action must pass the sizing unit, value and
|
|
||||||
// overflow to the wrapping action.
|
|
||||||
//
|
|
||||||
// Supported units:
|
|
||||||
// - scale
|
|
||||||
// - screenwidth
|
|
||||||
// - screenheight
|
|
||||||
//
|
|
||||||
// Example:
|
|
||||||
// actionName: ['...',
|
|
||||||
// function(value){
|
|
||||||
// this.resizing.chainCall(this, function(){
|
|
||||||
//
|
|
||||||
// // action code...
|
|
||||||
//
|
|
||||||
// },
|
|
||||||
// // action unit...
|
|
||||||
// 'scale',
|
|
||||||
// // action value...
|
|
||||||
// scale)
|
|
||||||
// }],
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// This will enable clients to attach to a single in/out point.
|
|
||||||
//
|
|
||||||
// NOTE: to account for CSS transitions use .resizingDone()
|
|
||||||
// NOTE: not intended for direct use...
|
|
||||||
//
|
|
||||||
// XXX hide from user action list... (???)
|
// XXX hide from user action list... (???)
|
||||||
// XXX need to check if a transition is running and delay timeout...
|
// XXX need to check if a transition is running and delay timeout...
|
||||||
resizing: ['- Zoom/scale root protocol action (not for direct use)',
|
resizing: ['- Zoom/Scale root protocol action (not for direct use)',
|
||||||
'This is called by zoom/scale protocol compliant actions and '
|
core.doc`Zooming/scaling root action...
|
||||||
+'intended for use as an trigger for handlers, and not as '
|
|
||||||
+'a user-callable acation.',
|
This is called by zoom/scale protocol compliant actions and
|
||||||
|
intended for use as an trigger for handlers, and not as
|
||||||
|
a user-callable action.
|
||||||
|
|
||||||
|
Protocol:
|
||||||
|
- a compliant action must be wrapped in the .resizing action
|
||||||
|
- a compliant action must pass the sizing unit, value and
|
||||||
|
overflow to the wrapping action.
|
||||||
|
|
||||||
|
Supported units:
|
||||||
|
- scale
|
||||||
|
- screenwidth
|
||||||
|
- screenheight
|
||||||
|
|
||||||
|
Example:
|
||||||
|
actionName: ['Action doc...',
|
||||||
|
function(value){
|
||||||
|
this.resizing.chainCall(this, function(){
|
||||||
|
|
||||||
|
// action code...
|
||||||
|
|
||||||
|
},
|
||||||
|
// action unit...
|
||||||
|
'scale',
|
||||||
|
// action value...
|
||||||
|
value)
|
||||||
|
}],
|
||||||
|
|
||||||
|
|
||||||
|
This will enable clients to attach to a single in/out point.
|
||||||
|
|
||||||
|
NOTE: to account for CSS transitions use .resizingDone()
|
||||||
|
NOTE: not intended for direct use...
|
||||||
|
`,
|
||||||
core.notUserCallable(function(unit, size, overflow){
|
core.notUserCallable(function(unit, size, overflow){
|
||||||
// This is a resizing protocol root function.
|
// This is a resizing protocol root function.
|
||||||
//
|
//
|
||||||
@ -766,17 +768,18 @@ module.ViewerActions = actions.Actions({
|
|||||||
}
|
}
|
||||||
})],
|
})],
|
||||||
|
|
||||||
// Zooming/scaling post-transition action...
|
resizingDone: ['- Zoom/scale post-transition protocol action (not for direct use)',
|
||||||
//
|
core.doc`Zooming/scaling post-transition action...
|
||||||
// NOTE: this will be called at least timeout after last resize action...
|
|
||||||
// NOTE: if several resize actions are called less than timeout apart
|
This is called after zoom/scale protocol compliant actions are
|
||||||
// this will be called only once, after the last action.
|
done and intended for use as an trigger for handlers, and
|
||||||
// NOTE: not intended for direct use...
|
not as a user-callable action.
|
||||||
resizingDone: ['- Zoom/scale post-transition protocol action '
|
|
||||||
+'(not for direct use)',
|
NOTE: this will be called at least timeout after last resize action...
|
||||||
'This is called after zoom/scale protocol compliant actions are '
|
NOTE: if several resize actions are called less than timeout apart
|
||||||
+'done and intended for use as an trigger for handlers, and '
|
this will be called only once, after the last action.
|
||||||
+'not as a user-callable acation.',
|
NOTE: not intended for direct use...
|
||||||
|
`,
|
||||||
core.notUserCallable(function(){
|
core.notUserCallable(function(){
|
||||||
// This is resizing protocol post resize action.
|
// This is resizing protocol post resize action.
|
||||||
//
|
//
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user