mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-30 10:50:08 +00:00
minor tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
bc05998e4b
commit
424cfc2512
16
ui/data.js
16
ui/data.js
@ -45,13 +45,23 @@
|
|||||||
// data.json.
|
// data.json.
|
||||||
// the file is optional.
|
// the file is optional.
|
||||||
// - data, marks, bookmarks, tags are now saved only if updated
|
// - data, marks, bookmarks, tags are now saved only if updated
|
||||||
|
// 2.3 - Minor update to sorting restrictions
|
||||||
|
// - now MARKED and BOOKMARKS do not need to be sorted
|
||||||
|
// explicitly in json, they are now sorted as a side-effect
|
||||||
|
// of being sparse.
|
||||||
|
// This negates some restrictions posed in 2.1, including
|
||||||
|
// conversion of 2.0 data.
|
||||||
|
// NOTE: TAGS gid sets are still compact lists, thus are
|
||||||
|
// actively maintained sorted.
|
||||||
|
// ...still thinking of whether making them sparse will
|
||||||
|
// take up too much memory.
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// NOTE: Gen1 and Gen3 refer to code generations rather than data format
|
// NOTE: Gen1 and Gen3 refer to code generations rather than data format
|
||||||
// iterations, Gen2 is skipped here as it is a different project
|
// iterations, Gen2 is skipped here as it is a different project
|
||||||
// (PortableMag) started on the same code base as ImageGrid.Viewer
|
// (PortableMag) started on the same code base as ImageGrid.Viewer
|
||||||
// generation 1 and advanced from there...
|
// generation 1 and advanced from there...
|
||||||
var DATA_VERSION = '2.2'
|
var DATA_VERSION = '2.3'
|
||||||
|
|
||||||
|
|
||||||
var CONFIG = {
|
var CONFIG = {
|
||||||
@ -751,9 +761,9 @@ function getGIDRibbonIndex(gid, data){
|
|||||||
// with caution.
|
// with caution.
|
||||||
//
|
//
|
||||||
// getRibbonGIDs(<gids>[, <ribbon-index>])
|
// getRibbonGIDs(<gids>[, <ribbon-index>])
|
||||||
// <gids> is list of gids.
|
|
||||||
// return a filtered list of gids, containing only gids from target
|
// return a filtered list of gids, containing only gids from target
|
||||||
// ribbon.
|
// ribbon.
|
||||||
|
// <gids> is list of gids.
|
||||||
// <ribbon-index> is getGIDRibbonIndex(..) compatible value or number,
|
// <ribbon-index> is getGIDRibbonIndex(..) compatible value or number,
|
||||||
// if it is not given, then current ribbon is used.
|
// if it is not given, then current ribbon is used.
|
||||||
//
|
//
|
||||||
@ -777,7 +787,7 @@ function getRibbonGIDs(a, b, data){
|
|||||||
return res.indexOf(e) >= 0
|
return res.indexOf(e) >= 0
|
||||||
})
|
})
|
||||||
|
|
||||||
// a is an getGIDRibbonIndex(..) compatible...
|
// a is a gid/image/... (getGIDRibbonIndex(..) compatible value)
|
||||||
} else {
|
} else {
|
||||||
var res = data.ribbons[getGIDRibbonIndex(a, data)]
|
var res = data.ribbons[getGIDRibbonIndex(a, data)]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,8 +11,6 @@
|
|||||||
* basic align, animation and modes
|
* basic align, animation and modes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* TODO group all actions into an object, referencing the viewer...
|
|
||||||
* ...this will make this reusable multiple times.
|
|
||||||
* TODO wrap the actions into an object and make all queries relative to
|
* TODO wrap the actions into an object and make all queries relative to
|
||||||
* a single root viewer...
|
* a single root viewer...
|
||||||
* ...this will make the code reusable multiple times...
|
* ...this will make the code reusable multiple times...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user