blob: f8418d5c002a72e73734638605d45e66d7c49d9a (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
import { Field } from "./Field"
import { Utils } from "../Utils";
import { observable } from "mobx";
export class Key extends Field {
private name: string;
get Name(): string {
return this.name;
}
constructor(name: string) {
super(Utils.GenerateDeterministicGuid(name));
this.name = name;
}
TrySetValue(value: any): boolean {
throw new Error("Method not implemented.");
}
GetValue() {
return this.Name;
}
Copy(): Field {
return this;
}
}
export namespace KeyStore {
export let Prototype = new Key("Prototype");
export let X = new Key("X");
export let Y = new Key("Y");
export let PanX = new Key("PanX");
export let PanY = new Key("PanY");
export let Scale = new Key("Scale");
export let Width = new Key("Width");
export let Height = new Key("Height");
export let Data = new Key("Data");
export let Layout = new Key("Layout");
export let LayoutKeys = new Key("LayoutKeys");
export let LayoutFields = new Key("LayoutFields");
}
|