From 9bd86a1c899c113214774ee6ee8868d7e2e3bc05 Mon Sep 17 00:00:00 2001 From: dann toliver Date: Sat, 23 May 2015 01:30:23 -0400 Subject: [PATCH] prep for divergence --- index.html | 2 +- index2.html | 16 +++++++++++++--- underview.js | 15 +++++++++++---- 3 files changed, 25 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index 36feae3..066256e 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ - Data structure visualizer + Underview: a data structure visualizer diff --git a/index2.html b/index2.html index 020df71..4acc213 100644 --- a/index2.html +++ b/index2.html @@ -206,9 +206,16 @@ /* - hot pink for pointers - neon blue for nulls - ghostly orange for strings + - spacing for subsections + - try for linked lists + - find a vlist implementation + - linked canvases: to data display, from compact timeline + + + sliders for colors: + - hot pink for pointers + - neon blue for nulls + - ghostly orange for strings @@ -230,6 +237,9 @@ /////// +data1 = mori.hash_map() +data2 = new Immutable.Map() + go = function() {var n = rand(350000) + 1 data2 = data2.set('a'+n, n) data1 = mori.assoc(data1, 'a'+n, n) diff --git a/underview.js b/underview.js index d34739d..561cbb2 100644 --- a/underview.js +++ b/underview.js @@ -204,9 +204,8 @@ UV.build_renderer = function(pipeline, context) { // pipeline is a l } -/// a scheduler for scheduling things -UV.build_scheduler = function(renderer) { +UV.build_scheduler = function(renderer) { // builds a scheduler for scheduling things var going = false var delay = 30 var stepper @@ -245,7 +244,11 @@ UV.build_scheduler = function(renderer) { } -/// UV helper functions +/********** + + UV helper functions + +**********/ UV.noop = function() {} @@ -286,7 +289,11 @@ UV.helpers.draw_column = function(data, offset, context) { // effectfully aff } -/// general helpers -- these are injected into the global scope +/********** + + These helper functions are injected into the global scope ¯\_(ツ)_/¯ + +**********/ function flatten(data) { // TODO: handle cyclic data structures