diff options
author | bob <bcz@cs.brown.edu> | 2019-09-25 12:11:08 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-09-25 12:11:08 -0400 |
commit | 0a5b90021c0f48a3c5c6801b96b2c8834639a695 (patch) | |
tree | 0a074fa7995a4ff62148c6086dcdf9759dfd2bae /src/client/util/SelectionManager.ts | |
parent | b57741dbed846313e1b9d0dad3b6c8add2566277 (diff) | |
parent | b69106994f5450e2ac2c515f28dacceb2e13b78b (diff) |
Merge branch 'master' into pdf_refactor
Diffstat (limited to 'src/client/util/SelectionManager.ts')
-rw-r--r-- | src/client/util/SelectionManager.ts | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/client/util/SelectionManager.ts b/src/client/util/SelectionManager.ts index 4c97a1056..a02a270ee 100644 --- a/src/client/util/SelectionManager.ts +++ b/src/client/util/SelectionManager.ts @@ -88,20 +88,4 @@ export namespace SelectionManager { export function SelectedDocuments(): Array<DocumentView> { return manager.SelectedDocuments.slice(); } - export function ViewsSortedHorizontally(): DocumentView[] { - let sorted = SelectionManager.SelectedDocuments().slice().sort((doc1, doc2) => { - if (NumCast(doc1.props.Document.x) > NumCast(doc2.props.Document.x)) return 1; - if (NumCast(doc1.props.Document.x) < NumCast(doc2.props.Document.x)) return -1; - return 0; - }); - return sorted; - } - export function ViewsSortedVertically(): DocumentView[] { - let sorted = SelectionManager.SelectedDocuments().slice().sort((doc1, doc2) => { - if (NumCast(doc1.props.Document.y) > NumCast(doc2.props.Document.y)) return 1; - if (NumCast(doc1.props.Document.y) < NumCast(doc2.props.Document.y)) return -1; - return 0; - }); - return sorted; - } } |