aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-12-18 18:04:05 -0500
committerbob <bcz@cs.brown.edu>2019-12-18 18:04:05 -0500
commit38ac68df092948790962fa2545e72d63ea41fee1 (patch)
tree7f95606e6e77af1b65857aa3df40f5167fa845a2 /src
parent8ada1b069d4183fb85d19c67a151cad186625f26 (diff)
disabled showing link lines when brushing over containing documents. now you have to brush over an actual link anchor
Diffstat (limited to 'src')
-rw-r--r--src/client/util/DocumentManager.ts11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/client/util/DocumentManager.ts b/src/client/util/DocumentManager.ts
index 9824ea983..85303176f 100644
--- a/src/client/util/DocumentManager.ts
+++ b/src/client/util/DocumentManager.ts
@@ -104,11 +104,12 @@ export class DocumentManager {
public get LinkedDocumentViews() {
const pairs = DocumentManager.Instance.DocumentViews.filter(dv =>
(dv.isSelected() || Doc.IsBrushed(dv.props.Document)) // draw links from DocumentViews that are selected or brushed OR
- || DocumentManager.Instance.DocumentViews.some(dv2 => { // Documentviews which
- const rest = DocListCast(dv2.props.Document.links).some(l => Doc.AreProtosEqual(l, dv.props.Document));// are link doc anchors
- const init = (dv2.isSelected() || Doc.IsBrushed(dv2.props.Document)) && dv2.Document.type !== DocumentType.AUDIO; // on a view that is selected or brushed
- return init && rest;
- })
+ // || DocumentManager.Instance.DocumentViews.some(dv2 => { // Documentviews which
+ // const rest = DocListCast(dv2.props.Document.links).some(l => Doc.AreProtosEqual(l, dv.props.Document));// are link doc anchors
+ // const init = (dv2.isSelected() || Doc.IsBrushed(dv2.props.Document)) && dv2.Document.type !== DocumentType.AUDIO; // on a view that is selected or brushed
+ // return init && rest;
+ // }
+ // )
).reduce((pairs, dv) => {
const linksList = LinkManager.Instance.getAllRelatedLinks(dv.props.Document);
pairs.push(...linksList.reduce((pairs, link) => {