Commit 61923ffb authored by Aron Carroll's avatar Aron Carroll

Remove _colorize method from heatmap

parent 6afff414
...@@ -147,13 +147,6 @@ class Annotator.Plugin.Heatmap extends Annotator.Plugin ...@@ -147,13 +147,6 @@ class Annotator.Plugin.Heatmap extends Annotator.Plugin
return 1 return 1
return 0 return 0
_colorize: (v) ->
c = d3.scale.pow().exponent(2)
.domain([0, 1])
.range(['#f7fbff', '#08306b'])
.interpolate(d3.interpolateHcl)
c(v).toString()
_collectVirtualAnnotations: (startPage, endPage) -> _collectVirtualAnnotations: (startPage, endPage) ->
results = [] results = []
for page in [startPage .. endPage] for page in [startPage .. endPage]
...@@ -396,7 +389,7 @@ class Annotator.Plugin.Heatmap extends Annotator.Plugin ...@@ -396,7 +389,7 @@ class Annotator.Plugin.Heatmap extends Annotator.Plugin
else else
annotations = @buckets[bucket].slice() annotations = @buckets[bucket].slice()
annotator.selectAnnotations annotations, annotator.selectAnnotations annotations,
(d3.event.ctrlKey or d3.event.metaKey), (event.ctrlKey or event.metaKey),
.get() .get()
tabs = $(tabs) tabs = $(tabs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment