aboutsummaryrefslogtreecommitdiff
path: root/src/stores/NodeCollectionStore.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores/NodeCollectionStore.ts')
-rw-r--r--src/stores/NodeCollectionStore.ts25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/stores/NodeCollectionStore.ts b/src/stores/NodeCollectionStore.ts
deleted file mode 100644
index ac4f515f1..000000000
--- a/src/stores/NodeCollectionStore.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import { computed, observable, action } from "mobx";
-import { NodeStore } from "./NodeStore";
-import { Document } from "../fields/Document";
-
-export class NodeCollectionStore extends NodeStore {
-
- @observable
- public Scale: number = 1;
-
- @observable
- public Nodes: NodeStore[] = new Array<NodeStore>();
-
- @observable
- public Docs: Document[] = [];
-
- @computed
- public get Transform(): string {
- return "translate(" + this.X + "px," + this.Y + "px) scale(" + this.Scale + "," + this.Scale + ")";
- }
-
- @action
- public AddNodes(stores: NodeStore[]): void {
- stores.forEach(store => this.Nodes.push(store));
- }
-} \ No newline at end of file