aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNaafiyan Ahmed <naafiyan@gmail.com>2022-05-02 17:09:23 -0400
committerNaafiyan Ahmed <naafiyan@gmail.com>2022-05-02 17:09:23 -0400
commit3d75e7e6bf95f3545edc959fb7eb296ec0ec8c61 (patch)
tree45587c1df984c53d23e7e2b78bd827e0a7fd7684 /src
parent8147fd7d80746114a2245237e4dab2c89e2d49a2 (diff)
working on getting subgroups to work
Diffstat (limited to 'src')
-rw-r--r--src/client/views/InkTranscription.tsx8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/client/views/InkTranscription.tsx b/src/client/views/InkTranscription.tsx
index f7260c5b4..3d505878c 100644
--- a/src/client/views/InkTranscription.tsx
+++ b/src/client/views/InkTranscription.tsx
@@ -176,11 +176,12 @@ export class InkTranscription extends React.Component {
// iterate through the keys of wordInkDocMap
wordInkDocMap.forEach((inkDocs: Doc[], word: string) => {
- const selected = wordInkDocMap.get(word);
+ const selected = inkDocs.slice();
if (!selected) {
return;
}
- // loop through selected an get the bound
+ const marqViewRef = this.ffView._marqueeViewRef.current;
+ // loop through selected an get the bound
const bounds: { x: number, y: number, width?: number, height?: number }[] = []
selected.map(action(d => {
@@ -192,7 +193,6 @@ export class InkTranscription extends React.Component {
}))
const aggregBounds = aggregateBounds(bounds, 0, 0);
- const marqViewRef = this.ffView._marqueeViewRef.current;
// set the vals for bounds in marqueeView
if (marqViewRef) {
@@ -225,8 +225,6 @@ export class InkTranscription extends React.Component {
newCollection.width = newCollection[WidthSym]();
newCollection.title = word;
}
-
-
// nda - bug: when deleting a stroke before leaving writing mode, delete the stroke from unprocessed ink docs
newCollection && this.ffView.props.addDocument?.(newCollection);
});