diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-10-23 23:35:01 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-10-23 23:35:01 -0400 |
commit | 910e4d8a22a312d2ca0b8a970ff434604f7c6f91 (patch) | |
tree | a74313b0464300c79520b7679cfb3066e449c4c7 /src/new_fields/Doc.ts | |
parent | c861f31a93ad246b9200b328a63df15da795f050 (diff) |
several fixes to audio documents to make linking work better and to customize the audio controls UI
Diffstat (limited to 'src/new_fields/Doc.ts')
-rw-r--r-- | src/new_fields/Doc.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts index 08cb66d5f..6aad4a6be 100644 --- a/src/new_fields/Doc.ts +++ b/src/new_fields/Doc.ts @@ -669,6 +669,8 @@ export namespace Doc { return doc; } + export function LinkEndpoint(linkDoc: Doc, anchorDoc: Doc) { return Doc.AreProtosEqual(anchorDoc, Cast(linkDoc.anchor1, Doc) as Doc) ? "layoutKey1" : "layoutKey2"; } + export function linkFollowUnhighlight() { Doc.UnhighlightAll(); document.removeEventListener("pointerdown", linkFollowUnhighlight); |