From 7943126ce9694af8e53d2997481c18ca0c17754c Mon Sep 17 00:00:00 2001 From: Tyler Schicke Date: Thu, 17 Jan 2019 04:27:26 -0500 Subject: Added editable text and image notes --- src/fields/Key.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/fields') diff --git a/src/fields/Key.ts b/src/fields/Key.ts index 42881c8a6..cd67e0a00 100644 --- a/src/fields/Key.ts +++ b/src/fields/Key.ts @@ -1,13 +1,18 @@ 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(private name:string){ + constructor(name:string){ super(Utils.GenerateDeterministicGuid(name)); + + this.name = name; } TrySetValue(value: any): boolean { @@ -32,6 +37,7 @@ export namespace KeyStore { export let Width = new Key("Width"); export let Height = new Key("Height"); export let Data = new Key("Data"); - export let View = new Key("View"); - export let ViewProps = new Key("ViewProps"); + export let Layout = new Key("Layout"); + export let LayoutKeys = new Key("LayoutKeys"); + export let LayoutFields = new Key("LayoutFields"); } \ No newline at end of file -- cgit v1.2.3-70-g09d2