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
98d001bd
Commit
98d001bd
authored
Aug 27, 2020
by
Robert Knight
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a couple of comments in response to PR feedback
parent
49c5b09b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
sidebar.js
src/annotator/sidebar.js
+8
-0
No files found.
src/annotator/sidebar.js
View file @
98d001bd
...
...
@@ -64,7 +64,10 @@ export default class Sidebar extends Host {
}
this
.
_gestureState
=
{
// Initial position at the start of a drag/pan resize event (in pixels).
initial
:
/** @type {number|null} */
(
null
),
// Final position at end of drag resize event.
final
:
/** @type {number|null} */
(
null
),
};
this
.
_setupGestures
();
...
...
@@ -320,6 +323,11 @@ export default class Sidebar extends Host {
}
}
/**
* Hide or show highlights associated with annotations in the document.
*
* @param {boolean} shouldShowHighlights
*/
setAllVisibleHighlights
(
shouldShowHighlights
)
{
this
.
crossframe
.
call
(
'setVisibleHighlights'
,
shouldShowHighlights
);
}
...
...
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