mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-30 10:50:08 +00:00
more doc tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
0544ad5b05
commit
2a8d005f52
44
ui/data4.js
44
ui/data4.js
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
// General format info...
|
// General format info...
|
||||||
//
|
//
|
||||||
// version format:
|
// Version format:
|
||||||
// <major>.<minor>
|
// <major>.<minor>
|
||||||
//
|
//
|
||||||
// Major version change mean a significant incompatibility.
|
// Major version change mean a significant incompatibility.
|
||||||
@ -24,7 +24,7 @@
|
|||||||
// TAGS - tag data
|
// TAGS - tag data
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// Changes:
|
// Data format change history:
|
||||||
// none - Gen1 data format, mostly experimental,
|
// none - Gen1 data format, mostly experimental,
|
||||||
// - has no explicit version set,
|
// - has no explicit version set,
|
||||||
// - not used for real data.
|
// - not used for real data.
|
||||||
@ -66,7 +66,10 @@
|
|||||||
// 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, backporting some of the
|
||||||
|
// results eventually formed Gen3...
|
||||||
|
//
|
||||||
|
//
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -95,20 +98,39 @@ var DataClassPrototype = {
|
|||||||
|
|
||||||
// Data object methods and API...
|
// Data object methods and API...
|
||||||
//
|
//
|
||||||
var DataPrototype = {
|
// DATA format:
|
||||||
// DATA structure:
|
//
|
||||||
// .current
|
// .current (gid)
|
||||||
// gid
|
// gid of the current image
|
||||||
// .base
|
//
|
||||||
// gid
|
// .base (gid)
|
||||||
|
// gid of the base ribbon
|
||||||
|
//
|
||||||
// .order
|
// .order
|
||||||
|
// List of image gids setting the image order
|
||||||
|
//
|
||||||
|
// format:
|
||||||
// [ gid, .. ]
|
// [ gid, .. ]
|
||||||
|
//
|
||||||
|
// NOTE: this list may contain gids not loaded at the moment, a
|
||||||
|
// common case for this is when data is cropped.
|
||||||
|
//
|
||||||
// .ribbon_order
|
// .ribbon_order
|
||||||
|
// List of ribbon gids setting the ribbon order.
|
||||||
|
//
|
||||||
|
// format:
|
||||||
// [ gid, .. ]
|
// [ gid, .. ]
|
||||||
|
//
|
||||||
// .ribbons
|
// .ribbons
|
||||||
// { gid: [ gid, .. ] }
|
// Dict of ribbons, indexed by ribbon gid, each ribbon is a sparse
|
||||||
|
// list of image gids.
|
||||||
|
//
|
||||||
|
// format:
|
||||||
|
// { gid: [ gid, .. ], .. }
|
||||||
|
//
|
||||||
// NOTE: ribbons are sparse...
|
// NOTE: ribbons are sparse...
|
||||||
|
//
|
||||||
|
var DataPrototype = {
|
||||||
// util methods...
|
// util methods...
|
||||||
compactSparseList: function(list){
|
compactSparseList: function(list){
|
||||||
return list.filter(function(){return true})
|
return list.filter(function(){return true})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user