Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
61923ffb
Commit
61923ffb
authored
Sep 18, 2014
by
Aron Carroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove _colorize method from heatmap
parent
6afff414
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
heatmap.coffee
h/static/scripts/plugin/heatmap.coffee
+1
-8
No files found.
h/static/scripts/plugin/heatmap.coffee
View file @
61923ffb
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment