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
1d908688
Commit
1d908688
authored
Nov 08, 2022
by
Lyza Danger Gardner
Committed by
Lyza Gardner
Nov 10, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable clustered highlighting in the PDF integration
parent
3fa481a1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
pdf.js
src/annotator/integrations/pdf.js
+5
-0
highlights.scss
src/styles/annotator/highlights.scss
+3
-7
No files found.
src/annotator/integrations/pdf.js
View file @
1d908688
...
...
@@ -202,6 +202,11 @@ export class PDFIntegration extends TinyEmitter {
return
canDescribe
(
range
);
}
/* istanbul ignore next */
canStyleClusteredHighlights
()
{
return
true
;
}
/**
* Generate selectors for the text in `range`.
*
...
...
src/styles/annotator/highlights.scss
View file @
1d908688
...
...
@@ -31,14 +31,9 @@
}
// Configure highlight styling.
// Map `--hypothesis-*` root values to local `--highlight-*` values
.hypothesis-highlight
,
.hypothesis-svg-highlight
{
--highlight-color
:
var
(
--
hypothesis-highlight-color
);
--highlight-color-focused
:
var
(
--
hypothesis-highlight-focused-color
);
}
.hypothesis-highlight
{
--highlight-color
:
var
(
--
hypothesis-highlight-color
);
--highlight-blend-mode
:
var
(
--
hypothesis-highlight-blend-mode
);
--highlight-decoration
:
var
(
--
hypothesis-highlight-decoration
);
...
...
@@ -56,7 +51,8 @@
// Configure clustered highlight styling. The `.hypothesis-highlights-clustered`
// class is managed by `highlight-clusters`
.hypothesis-highlights-clustered
.hypothesis-highlight
{
.hypothesis-highlights-clustered
.hypothesis-highlight
,
.hypothesis-highlights-clustered
.hypothesis-svg-highlight
{
// When clustered highlights are active, use an opaque blue for focused
// annotations so we don't end up with a funny color mix
--highlight-color-focused
:
var
(
--
hypothesis-color-blue
);
...
...
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