blob: 6a734cf44bbbb3b8f8240c61c0020a79197ea481 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import { computed, observable } from "mobx";
import { Utils } from "../Utils";
export class NodeStore {
public Id: string = Utils.GenerateGuid();
@observable
public X: number = 0;
@observable
public Y: number = 0;
@observable
public Width: number = 0;
@observable
public Height: number = 0;
@computed
public get Transform(): string {
return "translate(" + this.X + "px, " + this.Y + "px)";
}
}
|