aboutsummaryrefslogtreecommitdiff
path: root/src/Main.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-01-29 12:20:13 -0500
committerbob <bcz@cs.brown.edu>2019-01-29 12:20:13 -0500
commited982a553d1831353e312ae8137afa95ef84ebe5 (patch)
tree6a6510f1cfe9aaa0bef3ae071eebeb63592bb1e0 /src/Main.tsx
parent0402105238f24785a1229dbbb37f2e4dba958f88 (diff)
semi working docking, but zooming is now broken.
Diffstat (limited to 'src/Main.tsx')
-rw-r--r--src/Main.tsx10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Main.tsx b/src/Main.tsx
index 6ccb940f4..1b5d95132 100644
--- a/src/Main.tsx
+++ b/src/Main.tsx
@@ -54,14 +54,14 @@ runInAction(() => {
let doc3 = Documents.ImageDocument("https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Cat03.jpg/1200px-Cat03.jpg", {
x: 450, y: 500
});
- let docset = new Array<Document>(doc1, doc2);
+ let docset = new Array<Document>(doc1, doc2, doc3);
let doc4 = Documents.CollectionDocument(docset, {
x: 0, y: 400
});
let doc5 = Documents.ImageDocument("https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Cat03.jpg/1200px-Cat03.jpg", {
x: 650, y: 500, width: 600, height: 600
});
- let doc6 = Documents.DockDocument("", {
+ let doc6 = Documents.DockDocument(docset, {
x: 350, y: 100
});
let mainNodes = mainContainer.GetFieldT(KeyStore.Data, ListField);
@@ -71,8 +71,10 @@ runInAction(() => {
}
// mainNodes.Data.push(doc1);
// mainNodes.Data.push(doc2);
- // mainNodes.Data.push(doc4);
+ mainNodes.Data.push(doc4);
// mainNodes.Data.push(doc3);
- // mainNodes.Data.push(doc5);
+ mainNodes.Data.push(doc5);
+ mainNodes.Data.push(doc1);
+ mainNodes.Data.push(doc2);
mainNodes.Data.push(doc6);
}); \ No newline at end of file