aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
authorFawn <fangrui_tong@brown.edu>2019-06-12 16:20:46 -0400
committerFawn <fangrui_tong@brown.edu>2019-06-12 16:20:46 -0400
commite1fd270f1806ffd51174c835b335ceb4ebb2fe56 (patch)
treeb1882eca27303e7160a31c66e3752bed3710f85d /src/client/documents/Documents.ts
parent2c3b54d6e07c37a4f5fd52a49d6d60e7a8e5d2d2 (diff)
created remove handlers for link metadata and groups
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r--src/client/documents/Documents.ts14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index 9f1501265..9517cbbda 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -89,9 +89,13 @@ export namespace DocUtils {
// let protoSrc = source.proto ? source.proto : source;
// let protoTarg = target.proto ? target.proto : target;
UndoManager.RunInBatch(() => {
- let groupDoc = Docs.TextDocument();
- groupDoc.proto!.type = "*";
- groupDoc.proto!.metadata = Docs.TextDocument();
+ // let groupDoc1 = Docs.TextDocument();
+ // groupDoc1.proto!.type = "*";
+ // groupDoc1.proto!.metadata = Docs.TextDocument();
+
+ // let groupDoc2 = Docs.TextDocument();
+ // groupDoc2.proto!.type = "*";
+ // groupDoc2.proto!.metadata = Docs.TextDocument();
let linkDoc = Docs.TextDocument({ width: 100, height: 30, borderRounding: -1 });
//let linkDoc = new Doc;
@@ -99,11 +103,11 @@ export namespace DocUtils {
// linkDoc.proto!.linkDescription = "";
linkDoc.proto!.anchor1 = source;
linkDoc.proto!.anchor1Page = source.curPage;
- linkDoc.proto!.anchor1Groups = new List<Doc>([groupDoc]);
+ linkDoc.proto!.anchor1Groups = new List<Doc>([]);
linkDoc.proto!.anchor2 = target;
linkDoc.proto!.anchor2Page = target.curPage;
- linkDoc.proto!.anchor2Groups = new List<Doc>([groupDoc]);
+ linkDoc.proto!.anchor2Groups = new List<Doc>([]);
// linkDoc.proto!.linkedTo = target;
// linkDoc.proto!.linkedToPage = target.curPage;