From 119ae514060236894487ed8dd34400d6edf5ca02 Mon Sep 17 00:00:00 2001 From: Phyks Date: Mon, 7 Apr 2014 22:28:53 +0200 Subject: [PATCH] Added README --- examples/index.html | 13 ++++++++++++- timeline.js | 5 ++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/examples/index.html b/examples/index.html index bf503e5..a5c0435 100644 --- a/examples/index.html +++ b/examples/index.html @@ -8,8 +8,19 @@ } - +
+ diff --git a/timeline.js b/timeline.js index fdb0fee..09fee9e 100644 --- a/timeline.js +++ b/timeline.js @@ -16,6 +16,8 @@ // TODO : // * X legend // * Y axis +// * Better over handling +// * Sorting points when adding them var SVG = {}; SVG.ns = "http://www.w3.org/2000/svg"; @@ -88,7 +90,6 @@ SVG.clearGraphData = function (graph) { }; // Add points to the specified graph -// TODO : Sort with existing also SVG.addPoints = function (graph, data) { data.sort(function (a, b) { if(a.x < b.x) { @@ -269,7 +270,6 @@ SVG.init = function (arg) { SVG.x_callback = arg.x_callback; SVG.parent_holder.addEventListener('mousemove', function(e) { - // TODO : Better over effect ? var evt = e || window.event; var rect = false; @@ -287,7 +287,6 @@ SVG.init = function (arg) { }; // Handle the over effect -// TODO : Better solution ? SVG.overEffect = function(x, y) { if(!document.elementFromPoint(x, y)) { return;