From 2af870505bbd181ec0d121439da5dad9a0bcddcc Mon Sep 17 00:00:00 2001 From: Melissa Zhang Date: Fri, 15 May 2020 19:56:07 -0700 Subject: merge fixes --- src/client/documents/Documents.ts | 2 +- src/client/views/nodes/ComparisonBox.tsx | 17 ++++++++++------- src/client/views/nodes/DocumentContentsView.tsx | 25 +------------------------ 3 files changed, 12 insertions(+), 32 deletions(-) (limited to 'src') diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index 90a99b85a..b36c8c8bf 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -560,7 +560,7 @@ export namespace Docs { return InstanceFromProto(Prototypes.get(DocumentType.SCREENSHOT), "", options); } - export function ComparisonDocument(options: DocumentOptions = {}) { + export function ComparisonDocument(options: DocumentOptions = { title: "Comparison Box" }) { return InstanceFromProto(Prototypes.get(DocumentType.COMPARISON), "", options); } diff --git a/src/client/views/nodes/ComparisonBox.tsx b/src/client/views/nodes/ComparisonBox.tsx index 7b35b2811..eef72895f 100644 --- a/src/client/views/nodes/ComparisonBox.tsx +++ b/src/client/views/nodes/ComparisonBox.tsx @@ -4,11 +4,11 @@ import { faAsterisk, faBrain, faFileAudio, faImage, faPaintBrush, faTimes, faClo import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { action, computed, observable, runInAction, Lambda } from 'mobx'; import { observer } from "mobx-react"; -import { Doc } from '../../../new_fields/Doc'; -import { documentSchema } from '../../../new_fields/documentSchemas'; -import { Id } from '../../../new_fields/FieldSymbols'; -import { createSchema, makeInterface } from '../../../new_fields/Schema'; -import { NumCast, StrCast } from '../../../new_fields/Types'; +import { Doc } from '../../../fields/Doc'; +import { documentSchema } from '../../../fields/documentSchemas'; +import { Id } from '../../../fields/FieldSymbols'; +import { createSchema, makeInterface } from '../../../fields/Schema'; +import { NumCast, StrCast } from '../../../fields/Types'; import { DragManager } from '../../util/DragManager'; import { ViewBoxAnnotatableComponent } from '../DocComponent'; import { FieldView, FieldViewProps } from './FieldView'; @@ -127,7 +127,8 @@ export class ComparisonBox extends ViewBoxAnnotatableComponent + parentActive={this.props.active} /> + {/* getTransform={this.props.ScreenToLocalTransform} /> */}
this.clearBeforeDoc(e)}>
@@ -152,7 +153,9 @@ export class ComparisonBox extends ViewBoxAnnotatableComponent + parentActive={this.props.active} + // getTransform={this.props.ScreenToLocalTransform} + />
this.clearAfterDoc(e)}>
diff --git a/src/client/views/nodes/DocumentContentsView.tsx b/src/client/views/nodes/DocumentContentsView.tsx index c9db1ea01..ef56e6fcd 100644 --- a/src/client/views/nodes/DocumentContentsView.tsx +++ b/src/client/views/nodes/DocumentContentsView.tsx @@ -186,28 +186,6 @@ export class DocumentContentsView extends React.Component 1 ? splits[0] + splits[1].replace(/{([^{}]|(?R))*}/, replacer4) : ""; // might have been more elegant if javascript supported recursive patterns return (this.props.renderDepth > 12 || !layoutFrame || !this.layoutDoc) ? (null) : -<<<<<<< HEAD - this.props.forceLayout === "FormattedTextBox" && this.props.forceFieldKey ? - - : - { console.log(test); }} - />; -======= { console.log(test); }} />; ->>>>>>> 08b6bf8b51ab631c8cfe9c3e12bfb0ae2dd7b4c7 } } \ No newline at end of file -- cgit v1.2.3-70-g09d2