diff options
author | bobzel <zzzman@gmail.com> | 2023-04-07 10:42:16 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-04-07 10:42:16 -0400 |
commit | 986c5bdc899954c4609f71405d3334147be721fe (patch) | |
tree | 98fb4b67e0438f29e5372e9e35fa0cf8f00798bb /src/fields/Doc.ts | |
parent | e9633592cdd11df4d4d240dc42c254f60d16b572 (diff) |
experimetnal changes to datavizbox to allow brushing data items and better highlighting of selections. Also working on drawing link lines between chart aliases.
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r-- | src/fields/Doc.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts index cc024d83a..e89f5db52 100644 --- a/src/fields/Doc.ts +++ b/src/fields/Doc.ts @@ -1335,6 +1335,7 @@ export namespace Doc { } export function LinkEndpoint(linkDoc: Doc, anchorDoc: Doc) { + if (linkDoc.anchor2 === anchorDoc || (linkDoc.anchor2 as Doc).annotationOn) return '2'; return Doc.AreProtosEqual(anchorDoc, (linkDoc.anchor1 as Doc).annotationOn as Doc) || Doc.AreProtosEqual(anchorDoc, linkDoc.anchor1 as Doc) ? '1' : '2'; } |