Skip to content

Commit

Permalink
prep for divergence
Browse files Browse the repository at this point in the history
  • Loading branch information
dxnn committed May 23, 2015
1 parent afa6bc8 commit 9bd86a1
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
<title>Data structure visualizer</title>
<title>Underview: a data structure visualizer</title>
<script src="mori.js"></script>
<script src="Immutable.min.js"></script>
<script src="underview.js"></script>
Expand Down
16 changes: 13 additions & 3 deletions index2.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down
15 changes: 11 additions & 4 deletions underview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -245,7 +244,11 @@ UV.build_scheduler = function(renderer) {
}


/// UV helper functions
/**********
UV helper functions
**********/

UV.noop = function() {}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9bd86a1

Please sign in to comment.