mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
288b72a048
commit
507cb3df5a
@ -62,6 +62,7 @@ VALUE.prototype.hook = function(elem, prop){
|
|||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
|
|
||||||
var VirtualDOMRibbonsClassPrototype = {
|
var VirtualDOMRibbonsClassPrototype = {
|
||||||
|
// XXX ???
|
||||||
}
|
}
|
||||||
|
|
||||||
// XXX need a way to link this to the context...
|
// XXX need a way to link this to the context...
|
||||||
@ -72,17 +73,28 @@ var VirtualDOMRibbonsPrototype = {
|
|||||||
// XXX this is a circular ref -- I do not like it...
|
// XXX this is a circular ref -- I do not like it...
|
||||||
imagegrid: null,
|
imagegrid: null,
|
||||||
|
|
||||||
|
// XXX ???
|
||||||
|
count: null,
|
||||||
|
scale: null,
|
||||||
|
target: null,
|
||||||
|
|
||||||
// constructors...
|
// constructors...
|
||||||
// XXX get vertical offset and scale...
|
// XXX should these be here or be stateless and in VirtualDOMRibbonsClassPrototype???
|
||||||
|
// XXX calc offset (x)...
|
||||||
|
// XXX get scale...
|
||||||
|
// XXX calc/get count if not given explicitly...
|
||||||
|
// XXX Q: do we need to set align target and current image separately...
|
||||||
|
// XXX use a dict for args...
|
||||||
makeView: function(target, count, scale){
|
makeView: function(target, count, scale){
|
||||||
var data = this.imagegrid.data
|
var data = this.imagegrid.data
|
||||||
var images = this.imagegrid.images
|
var images = this.imagegrid.images
|
||||||
|
|
||||||
// XXX calculate count...
|
// XXX calculate count (use config)...
|
||||||
count = count || 30
|
count = count || this.imagegrid.screenwidth * 5
|
||||||
|
|
||||||
// XXX offset and scale...
|
// XXX get scale...
|
||||||
var s = scale || this.imagegrid.scale
|
var s = scale || this.imagegrid.scale
|
||||||
|
// XXX calc offset...
|
||||||
var x = 0
|
var x = 0
|
||||||
|
|
||||||
var ribbons = data.ribbon_order
|
var ribbons = data.ribbon_order
|
||||||
@ -104,9 +116,9 @@ var VirtualDOMRibbonsPrototype = {
|
|||||||
ribbons)
|
ribbons)
|
||||||
])
|
])
|
||||||
},
|
},
|
||||||
// XXX calc/get count if not given explicitly...
|
|
||||||
// XXX calc offset (y)...
|
// XXX calc offset (y)...
|
||||||
// XXX should we setup handlers here???
|
// XXX should we setup handlers here???
|
||||||
|
// XXX use a dict for args...
|
||||||
makeRibbon: function(gid, count, target){
|
makeRibbon: function(gid, count, target){
|
||||||
var data = this.imagegrid.data
|
var data = this.imagegrid.data
|
||||||
var images = this.imagegrid.images
|
var images = this.imagegrid.images
|
||||||
@ -138,8 +150,9 @@ var VirtualDOMRibbonsPrototype = {
|
|||||||
},
|
},
|
||||||
imgs)
|
imgs)
|
||||||
},
|
},
|
||||||
// XXX handle previews -- hook???
|
|
||||||
// NOTE: at this point this does not account for previews at all...
|
// NOTE: at this point this does not account for previews at all...
|
||||||
|
// XXX handle previews -- hook???
|
||||||
|
// XXX use a dict for args...
|
||||||
makeImage: function(gid){
|
makeImage: function(gid){
|
||||||
var data = this.imagegrid.data
|
var data = this.imagegrid.data
|
||||||
var images = this.imagegrid.images || {}
|
var images = this.imagegrid.images || {}
|
||||||
@ -170,6 +183,7 @@ var VirtualDOMRibbonsPrototype = {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
// XXX get marks...
|
// XXX get marks...
|
||||||
|
// XXX use a dict for args...
|
||||||
makeImageMarks: function(gid){
|
makeImageMarks: function(gid){
|
||||||
// XXX get marks...
|
// XXX get marks...
|
||||||
var marks = []
|
var marks = []
|
||||||
@ -185,6 +199,7 @@ var VirtualDOMRibbonsPrototype = {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
__init__: function(imagegrid){
|
__init__: function(imagegrid){
|
||||||
this.imagegrid = imagegrid
|
this.imagegrid = imagegrid
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user