aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
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;