diff options
| author | James Hu <51237606+jameshu111@users.noreply.github.com> | 2023-05-04 10:36:59 -0400 | 
|---|---|---|
| committer | James Hu <51237606+jameshu111@users.noreply.github.com> | 2023-05-04 10:36:59 -0400 | 
| commit | 725bf38dc018cb218d8a88605234e95a2beee446 (patch) | |
| tree | 9150905cf1b67b06c03fdd8d10ac6da6e8246832 /src/client/views/PreviewCursor.tsx | |
| parent | 96465f2dccc974a821fa912c90def988b76808e5 (diff) | |
| parent | 1c24114bbe8f69f61948f7531277305457926498 (diff) | |
Merge branch 'master' into james-server-stats
Diffstat (limited to 'src/client/views/PreviewCursor.tsx')
| -rw-r--r-- | src/client/views/PreviewCursor.tsx | 24 | 
1 files changed, 3 insertions, 21 deletions
diff --git a/src/client/views/PreviewCursor.tsx b/src/client/views/PreviewCursor.tsx index 95ae65d7a..c7a603897 100644 --- a/src/client/views/PreviewCursor.tsx +++ b/src/client/views/PreviewCursor.tsx @@ -19,16 +19,7 @@ export class PreviewCursor extends React.Component<{}> {      static _addDocument: (doc: Doc | Doc[]) => boolean;      static _addLiveTextDoc: (doc: Doc) => void;      static _nudge?: undefined | ((x: number, y: number) => boolean); -    static _slowLoadDocuments?: ( -        files: File[] | string, -        options: DocumentOptions, -        generatedDocuments: Doc[], -        text: string, -        completed: ((doc: Doc[]) => void) | undefined, -        clientX: number, -        clientY: number, -        addDocument: (doc: Doc | Doc[]) => boolean -    ) => Promise<void>; +    static _slowLoadDocuments?: (files: File[] | string, options: DocumentOptions, generatedDocuments: Doc[], text: string, completed: ((doc: Doc[]) => void) | undefined, addDocument: (doc: Doc | Doc[]) => boolean) => Promise<void>;      @observable static _clickPoint = [0, 0];      @observable public static Visible = false;      constructor(props: any) { @@ -57,7 +48,7 @@ export class PreviewCursor extends React.Component<{}> {                          x: newPoint[0],                          y: newPoint[1],                      }; -                    PreviewCursor._slowLoadDocuments?.(plain.split('v=')[1].split('&')[0], options, generatedDocuments, '', undefined, newPoint[0], newPoint[1], PreviewCursor._addDocument).then(batch.end); +                    PreviewCursor._slowLoadDocuments?.(plain.split('v=')[1].split('&')[0], options, generatedDocuments, '', undefined, PreviewCursor._addDocument).then(batch.end);                  } else if (re.test(plain)) {                      const url = plain;                      undoBatch(() => @@ -185,16 +176,7 @@ export class PreviewCursor extends React.Component<{}> {          getTransform: () => Transform,          addDocument: undefined | ((doc: Doc | Doc[]) => boolean),          nudge: undefined | ((nudgeX: number, nudgeY: number) => boolean), -        slowLoadDocuments: ( -            files: File[] | string, -            options: DocumentOptions, -            generatedDocuments: Doc[], -            text: string, -            completed: ((doc: Doc[]) => void) | undefined, -            clientX: number, -            clientY: number, -            addDocument: (doc: Doc | Doc[]) => boolean -        ) => Promise<void> +        slowLoadDocuments: (files: File[] | string, options: DocumentOptions, generatedDocuments: Doc[], text: string, completed: ((doc: Doc[]) => void) | undefined, addDocument: (doc: Doc | Doc[]) => boolean) => Promise<void>      ) {          this._clickPoint = [x, y];          this._onKeyPress = onKeyPress;  | 
