From 55fe0bb6b098e2fd17c8ba9bbf14def9d786fb52 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 23 Aug 2013 03:09:45 +0400 Subject: [PATCH] starting work on alignDataToRibbon(...)... Signed-off-by: Alex A. Naanou --- ui/data.js | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/ui/data.js b/ui/data.js index 43a20fb2..5eb92961 100755 --- a/ui/data.js +++ b/ui/data.js @@ -861,6 +861,41 @@ function splitData(data, gid1){ } +// +// 1) Locate bounds... +// +// | oooooooooooo | +// ...ooooooooo|ooooooooooooooooooo|ooooooooooooooooo... < current +// oooo|oooooooooooooooooooooooo|ooooooo +// +// The sections are split by precedence relative to the first and +// last elements of the ribbon above the current... +// i.e. the first section contains all the elements less than the +// first, the third is greater than the last, and the mid-section +// contains all elements that are in-between (inclusive). +// +// +// 2) Split and realign sections... +// +// ...ooooooooo| oooooooooooo |ooooooooooooooooo... < current +// oooo| ooooooooooooooooooo |ooooooo +// |oooooooooooooooooooooooo| +// +// The central section is shifted down (dropped), by 1 in this case. +// +// +// 3) Merge... +// +// ...ooooooooo|oooooooooooo|oooooooooooooooooooooooo... < current +// oooo|ooooooooooooooooooo|ooooooo +// |oooooooooooooooooooooooo| +// +// +function alignDataToRibbon(ribbon){ + // XXX +} + + /********************************************************************** * Format conversion