mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-12-17 08:41:40 +00:00
splitData(...) and mergeData(...) now working (needs more testing)...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
ea00d8425b
commit
4d06451602
@ -794,6 +794,7 @@ function mergeData(a, b){
|
|||||||
|
|
||||||
// XXX signature: splitData(data, gid1[, gid2[, ...]])
|
// XXX signature: splitData(data, gid1[, gid2[, ...]])
|
||||||
// XXX this is a bit brain-dead at the moment...
|
// XXX this is a bit brain-dead at the moment...
|
||||||
|
// XXX do we need to check if supplied gids exist in data???
|
||||||
function splitData(data, gid1){
|
function splitData(data, gid1){
|
||||||
var gids = []
|
var gids = []
|
||||||
var res = []
|
var res = []
|
||||||
@ -838,7 +839,7 @@ function splitData(data, gid1){
|
|||||||
res[j].ribbons.push(r.slice(prev, cur))
|
res[j].ribbons.push(r.slice(prev, cur))
|
||||||
}
|
}
|
||||||
// tail section...
|
// tail section...
|
||||||
res[j+1].ribbons.push(r.slice(cur))
|
res[j].ribbons.push(r.slice(cur))
|
||||||
}
|
}
|
||||||
|
|
||||||
return res
|
return res
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user