mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
some refactoring...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
bc867eae80
commit
afdcb8f49d
65
ui/data4.js
65
ui/data4.js
@ -101,40 +101,41 @@ var DataClassPrototype = {
|
||||
|
||||
// Data object methods and API...
|
||||
//
|
||||
// DATA format:
|
||||
//
|
||||
// .current (gid)
|
||||
// gid of the current image
|
||||
//
|
||||
// .base (gid)
|
||||
// gid of the base ribbon
|
||||
//
|
||||
// .order
|
||||
// List of image gids setting the image order
|
||||
//
|
||||
// format:
|
||||
// [ gid, .. ]
|
||||
//
|
||||
// NOTE: this list may contain gids not loaded at the moment, a
|
||||
// common case for this is when data is cropped.
|
||||
//
|
||||
// .ribbon_order
|
||||
// List of ribbon gids setting the ribbon order.
|
||||
//
|
||||
// format:
|
||||
// [ gid, .. ]
|
||||
//
|
||||
// .ribbons
|
||||
// Dict of ribbons, indexed by ribbon gid, each ribbon is a sparse
|
||||
// list of image gids.
|
||||
//
|
||||
// format:
|
||||
// { gid: [ gid, .. ], .. }
|
||||
//
|
||||
// NOTE: ribbons are sparse...
|
||||
//
|
||||
var DataPrototype = {
|
||||
|
||||
/****************************************************** Format ***/
|
||||
//
|
||||
// .current (gid)
|
||||
// gid of the current image
|
||||
//
|
||||
// .base (gid)
|
||||
// gid of the base ribbon
|
||||
//
|
||||
// .order
|
||||
// List of image gids setting the image order
|
||||
//
|
||||
// format:
|
||||
// [ gid, .. ]
|
||||
//
|
||||
// NOTE: this list may contain gids not loaded at the moment,
|
||||
// a common case for this is when data is cropped.
|
||||
//
|
||||
// .ribbon_order
|
||||
// List of ribbon gids setting the ribbon order.
|
||||
//
|
||||
// format:
|
||||
// [ gid, .. ]
|
||||
//
|
||||
// .ribbons
|
||||
// Dict of ribbons, indexed by ribbon gid, each ribbon is a
|
||||
// sparse list of image gids.
|
||||
//
|
||||
// format:
|
||||
// { gid: [ gid, .. ], .. }
|
||||
//
|
||||
// NOTE: ribbons are sparse...
|
||||
//
|
||||
//
|
||||
/******************************************************* Utils ***/
|
||||
|
||||
// Make a sparse list of image gids...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user