diff options
author | Monika Hedman <monika_hedman@brown.edu> | 2019-03-02 17:23:37 -0500 |
---|---|---|
committer | Monika Hedman <monika_hedman@brown.edu> | 2019-03-02 17:23:37 -0500 |
commit | ea688991fea204d7b97c6c4f23b4ecd81189f2b0 (patch) | |
tree | 3dfb64839434e53f92979aeb113adab48b0f4e50 /src/client/views/nodes/DocumentView.tsx | |
parent | e058c3261b63530f30998ad61e6fb023fcc480af (diff) |
nav cleaning
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 9244ca08d..6ee313522 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -87,16 +87,6 @@ export function FakeJsxArgs(keys: string[], fields: string[] = []): JsxArgs { @observer export class DocumentView extends React.Component<DocumentViewProps> { - public Id: string = Utils.GenerateGuid(); - - @observable - public Border: string = "white" - - @action - public switchColor() { - this.Border = "red" - } - private _mainCont = React.createRef<HTMLDivElement>(); private _documentBindings: any = null; private _downX: number = 0; @@ -109,7 +99,6 @@ export class DocumentView extends React.Component<DocumentViewProps> { @computed get layoutFields(): Key[] { return this.props.Document.GetData(KeyStore.LayoutFields, ListField, new Array<Key>()); } screenRect = (): ClientRect | DOMRect => this._mainCont.current ? this._mainCont.current.getBoundingClientRect() : new DOMRect(); - size = (): { width: number, height: number } => this._mainCont.current ? { width: this._mainCont.current.clientWidth, height: this._mainCont.current.clientHeight } : { width: 0, height: 0 }; onPointerDown = (e: React.PointerEvent): void => { this._downX = e.clientX; @@ -248,7 +237,6 @@ export class DocumentView extends React.Component<DocumentViewProps> { ...this.props, isSelected: this.isSelected, select: this.select, - documentSize: this.size, focus: this.props.focus }; for (const key of this.layoutKeys) { |