diff options
author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-01-13 06:16:11 -0500 |
---|---|---|
committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-01-13 06:16:11 -0500 |
commit | e1ed82ff684877b56925016282a0e4d5bb4e1b4b (patch) | |
tree | 7f251def17dd86da9675bf0506f7db2c5d71148f /src/Main.tsx | |
parent | ee068ab30c43125efd2b0ab853531df9777f544f (diff) |
More controller stuff
Diffstat (limited to 'src/Main.tsx')
-rw-r--r-- | src/Main.tsx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Main.tsx b/src/Main.tsx index 99401bf65..51a3c8bbd 100644 --- a/src/Main.tsx +++ b/src/Main.tsx @@ -6,6 +6,8 @@ import { RootStore } from './stores/RootStore'; import { StaticTextNodeStore } from './stores/StaticTextNodeStore'; import { VideoNodeStore } from './stores/VideoNodeStore'; import { FreeFormCanvas } from './views/freeformcanvas/FreeFormCanvas'; +import { KeyController } from './controllers/KeyController'; +import { NumberController } from './controllers/NumberController'; const mainNodeCollection = new NodeCollectionStore(); @@ -29,4 +31,11 @@ for (let i = 0; i < numNodes; i++) { for (let i = 0; i < 20; i++) { nodes.push(new VideoNodeStore({ X: Math.random() * maxX, Y: Math.random() * maxY, Title: "Video Node Title", Url: "http://cs.brown.edu/people/peichman/downloads/cted.mp4" })); } + +let test1 = new KeyController("Test"), test2 = new KeyController("Test"); +let test3 = new NumberController(55); +console.log(test1 == test2); +console.log(test1 === test2); +console.log(test1.Equals(test2)); +console.log(test1.Equals(test3)); mainNodeCollection.AddNodes(nodes);
\ No newline at end of file |