diff options
author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-03-02 23:20:53 -0500 |
---|---|---|
committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-03-02 23:20:53 -0500 |
commit | 09928503be98d605052fba65dcd2f91f9b056f23 (patch) | |
tree | ba4e62f7d7cfe1b50fd20a90a1d5cad803a29c32 | |
parent | 172f60807639d49182014810493e059b674362a5 (diff) |
Some more formatting
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 0159bc5d2..e01e1d4cd 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -29,7 +29,7 @@ export interface DocumentViewProps { AddDocument?: (doc: Document) => void; RemoveDocument?: (doc: Document) => boolean; ScreenToLocalTransform: () => Transform; - isTopMost: boolean; //tfs: This shouldn't be necessary I don't think + isTopMost: boolean; ContentScaling: () => number; PanelWidth: () => number; PanelHeight: () => number; @@ -56,7 +56,6 @@ Example usage of this function: ) } */ - export function FakeJsxArgs(keys: string[], fields: string[] = []): JsxArgs { let Keys: { [name: string]: any } = {} let Fields: { [name: string]: any } = {} @@ -79,7 +78,8 @@ export function FakeJsxArgs(keys: string[], fields: string[] = []): JsxArgs { return args; } -@observer export class DocumentView extends React.Component<DocumentViewProps> { +@observer +export class DocumentView extends React.Component<DocumentViewProps> { private _mainCont = React.createRef<HTMLDivElement>(); private _documentBindings: any = null; private _downX: number = 0; @@ -238,7 +238,8 @@ export function FakeJsxArgs(keys: string[], fields: string[] = []): JsxArgs { style={{ width: nativeWidth > 0 ? nativeWidth.toString() + "px" : "100%", height: nativeHeight > 0 ? nativeHeight.toString() + "px" : "100%", - transformOrigin: "left top", transform: `scale(${scaling} , ${scaling})` + transformOrigin: "left top", + transform: `scale(${scaling} , ${scaling})` }} onContextMenu={this.onContextMenu} onPointerDown={this.onPointerDown} > |