aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf/AnchorMenu.tsx
diff options
context:
space:
mode:
authoralyssaf16 <alyssa_feinberg@brown.edu>2024-06-24 13:05:02 -0400
committeralyssaf16 <alyssa_feinberg@brown.edu>2024-06-24 13:05:02 -0400
commit20611e69b3f4afca5d35a440278f4dcbbda523c7 (patch)
tree1feb494964e6b72d8686253e8b1a593a12d7a8e2 /src/client/views/pdf/AnchorMenu.tsx
parent6920c387edc480341771edb02f0ac1097c85ae25 (diff)
language menu
Diffstat (limited to 'src/client/views/pdf/AnchorMenu.tsx')
-rw-r--r--src/client/views/pdf/AnchorMenu.tsx9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/client/views/pdf/AnchorMenu.tsx b/src/client/views/pdf/AnchorMenu.tsx
index dcd76979f..31941a299 100644
--- a/src/client/views/pdf/AnchorMenu.tsx
+++ b/src/client/views/pdf/AnchorMenu.tsx
@@ -134,7 +134,7 @@ export class AnchorMenu extends AntimodeMenu<AntimodeMenuProps> {
* Transfers the flashcard text generated by GPT on flashcards and creates a collection out them.
*/
- transferToFlashcard = (text: string) => {
+ transferToFlashcard = (text: string, x: number, y: number) => {
// put each question generated by GPT on the front of the flashcard
var senArr = text.trim().split('Question: ');
var collectionArr: Doc[] = [];
@@ -154,9 +154,10 @@ export class AnchorMenu extends AntimodeMenu<AntimodeMenuProps> {
});
console.log(collectionArr);
- newCol.x = this._x;
- newCol.y = this._y;
- newCol.zIndex = 100;
+ newCol.x = x;
+ newCol.y = y;
+ console.log(this._x);
+ newCol.zIndex = 1000;
this.addToCollection?.(newCol);
this._loading = false;