diff options
author | kimdahey <claire_kim1@brown.edu> | 2019-11-12 16:09:38 -0500 |
---|---|---|
committer | kimdahey <claire_kim1@brown.edu> | 2019-11-12 16:09:38 -0500 |
commit | 190ab79a986981580d39fcf42b0875f76876fccc (patch) | |
tree | 9fe613d248859bf06423271e831c090d7d3d7eb2 /src/client/documents/Documents.ts | |
parent | 461af95c312fc7aff85551c014fb93dc7a89cecd (diff) | |
parent | ecbe527575bab2cb5f1ced278039ec0a6fc50809 (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into claire_settings
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r-- | src/client/documents/Documents.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index d1fcabc4a..ba9f87025 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -257,6 +257,9 @@ export namespace Docs { return PrototypeMap.get(type)!; } + /** + * A collection of all links in the database. Ideally, this would be a search, but for now all links are cached here. + */ export function MainLinkDocument() { return Prototypes.get(DocumentType.LINKDOC); } @@ -703,6 +706,7 @@ export namespace DocUtils { linkDocProto.title = title === "" ? source.doc.title + " to " + target.doc.title : title; linkDocProto.linkDescription = description; + linkDocProto.isPrototype = true; linkDocProto.anchor1 = source.doc; linkDocProto.anchor2 = target.doc; @@ -714,7 +718,6 @@ export namespace DocUtils { linkDocProto.anchor2Timecode = target.doc.currentTimecode; linkDocProto.layoutKey1 = DocuLinkBox.LayoutString("anchor1"); linkDocProto.layoutKey2 = DocuLinkBox.LayoutString("anchor2"); - linkDocProto.borderRounding = "20"; linkDocProto.width = linkDocProto.height = 0; linkDocProto.isBackground = true; linkDocProto.isButton = true; |