From ea688991fea204d7b97c6c4f23b4ecd81189f2b0 Mon Sep 17 00:00:00 2001 From: Monika Hedman Date: Sat, 2 Mar 2019 17:23:37 -0500 Subject: nav cleaning --- src/client/views/collections/CollectionFreeFormView.tsx | 1 - src/client/views/nodes/DocumentView.tsx | 12 ------------ 2 files changed, 13 deletions(-) (limited to 'src/client') diff --git a/src/client/views/collections/CollectionFreeFormView.tsx b/src/client/views/collections/CollectionFreeFormView.tsx index 1b39dcae5..c81da5a57 100644 --- a/src/client/views/collections/CollectionFreeFormView.tsx +++ b/src/client/views/collections/CollectionFreeFormView.tsx @@ -35,7 +35,6 @@ export class CollectionFreeFormView extends CollectionViewBase { private _downX: number = 0; @observable private _downY: number = 0; - private _borderColor: string = "red" //determines whether the blinking cursor for indicating whether a text will be made on key down is visible @observable 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 { - public Id: string = Utils.GenerateGuid(); - - @observable - public Border: string = "white" - - @action - public switchColor() { - this.Border = "red" - } - private _mainCont = React.createRef(); private _documentBindings: any = null; private _downX: number = 0; @@ -109,7 +99,6 @@ export class DocumentView extends React.Component { @computed get layoutFields(): Key[] { return this.props.Document.GetData(KeyStore.LayoutFields, ListField, new Array()); } 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 { ...this.props, isSelected: this.isSelected, select: this.select, - documentSize: this.size, focus: this.props.focus }; for (const key of this.layoutKeys) { -- cgit v1.2.3-70-g09d2