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
4fed7317
Commit
4fed7317
authored
Jan 02, 2013
by
Jehan Tremback
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
put heatmap in container
parent
ba8f646e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
24 deletions
+27
-24
app.scss
h/css/app.scss
+9
-8
heatmap.coffee
h/js/plugin/heatmap.coffee
+18
-16
No files found.
h/css/app.scss
View file @
4fed7317
...
...
@@ -30,13 +30,15 @@ svg { -webkit-tap-highlight-color: rgba(255, 255, 255, 0); }
}
.annotator-heatmap
{
background
:
hsla
(
0
,
0
,
0
,
.1
);
border
:
solid
thin
rgba
(
$grayLighter
,
.4
);
left
:
17px
;
height
:
100%
;
position
:
fixed
;
top
:
0
;
width
:
$heatmap-width
;
svg
{
background
:
hsla
(
0
,
0
,
0
,
.1
);
border
:
solid
thin
rgba
(
$grayLighter
,
.4
);
left
:
17px
;
height
:
100%
;
position
:
fixed
;
top
:
0
;
width
:
$heatmap-width
;
}
}
...
...
@@ -49,7 +51,6 @@ svg { -webkit-tap-highlight-color: rgba(255, 255, 255, 0); }
-webkit-overflow-scrolling
:
touch
;
padding
:
1em
;
position
:
absolute
;
height
:
100%
;
width
:
100%
;
...
...
h/js/plugin/heatmap.coffee
View file @
4fed7317
...
...
@@ -5,22 +5,24 @@ class Annotator.Plugin.Heatmap extends Annotator.Plugin
# heatmap svg skeleton
html
:
"""
<svg class="annotator-heatmap"
xmlns="http://www.w3.org/2000/svg"
version="1.1">
<defs>
<linearGradient id="heatmap-gradient" x2="0" y2="100%">
</linearGradient>
<filter id="heatmap-blur">
<feGaussianBlur stdDeviation="0 2"></feGaussianBlur>
</filter>
</defs>
<rect x="0" y="0" width="100%" height="100%"
fill="url('#heatmap-gradient')"
filter="url('#heatmap-blur')" >
</rect>
</svg>
"""
<div class="annotator-heatmap">
<svg
xmlns="http://www.w3.org/2000/svg"
version="1.1">
<defs>
<linearGradient id="heatmap-gradient" x2="0" y2="100%">
</linearGradient>
<filter id="heatmap-blur">
<feGaussianBlur stdDeviation="0 2"></feGaussianBlur>
</filter>
</defs>
<rect x="0" y="0" width="100%" height="100%"
fill="url('#heatmap-gradient')"
filter="url('#heatmap-blur')" >
</rect>
</svg>
</div>
"""
# buckets of annotations that overlap
buckets
:
[]
...
...
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