diff options
| author | Naafiyan Ahmed <naafiyan@gmail.com> | 2022-06-09 12:46:25 -0400 |
|---|---|---|
| committer | Naafiyan Ahmed <naafiyan@gmail.com> | 2022-06-09 12:46:25 -0400 |
| commit | 7d38e4a98a0382cdd032d63d375707f19362873d (patch) | |
| tree | 415273805b218e07a4ad9e4c547e26469c4b0e13 /src/client/views/InkTranscription.tsx | |
| parent | 9de05a8fc6d1cda01662f9bce3a5f6764d280be3 (diff) | |
| parent | 331cb0bec8089c4435126542ed3181fe227eff51 (diff) | |
cleaned up code in InkTranscription
Diffstat (limited to 'src/client/views/InkTranscription.tsx')
| -rw-r--r-- | src/client/views/InkTranscription.tsx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/client/views/InkTranscription.tsx b/src/client/views/InkTranscription.tsx index 75e246cda..291352aa3 100644 --- a/src/client/views/InkTranscription.tsx +++ b/src/client/views/InkTranscription.tsx @@ -4,11 +4,10 @@ import * as React from 'react'; import { Doc, DocListCast, HeightSym, WidthSym } from '../../fields/Doc'; import { InkData, InkField, InkTool } from "../../fields/InkField"; import { Cast, DateCast, NumCast } from '../../fields/Types'; -import { DocumentType } from "../documents/DocumentTypes"; -import './InkTranscription.scss'; import { aggregateBounds } from '../../Utils'; -import { CollectionFreeFormView } from './collections/collectionFreeForm'; +import { DocumentType } from "../documents/DocumentTypes"; import { DocumentManager } from "../util/DocumentManager"; +import { CollectionFreeFormView } from './collections/collectionFreeForm'; import { InkingStroke } from './InkingStroke'; import { CurrentUserUtils } from '../util/CurrentUserUtils'; @@ -25,7 +24,6 @@ export class InkTranscription extends React.Component { @observable _textRef: any; private lastJiix: any; private currGroup?: Doc; - private containingLayout?: Doc; constructor(props: Readonly<{}>) { super(props); @@ -130,7 +128,6 @@ export class InkTranscription extends React.Component { }); this.currGroup = groupDoc; - this.containingLayout = containingLayout; const pointerData = { "events": strokes.map((stroke, i) => this.inkJSON(stroke, times[i])) }; const processGestures = false; @@ -196,7 +193,6 @@ export class InkTranscription extends React.Component { if (exports) { if (exports['application/x-latex']) { const latex = exports['application/x-latex']; - if (this.currGroup) { this.currGroup.text = latex; this.currGroup.title = latex; |
