Move binarySearchFirstItem back to the web/-folder (PR 15237 follow-up)

This was moved into the `src/display/`-folder in PR 15110, for the initial editor-a11y patch. However, with the changes in PR 15237 we're again only using `binarySearchFirstItem` in the `web/`-folder and it thus seem reasonable to move it back there.
The primary reason for moving it back is that `binarySearchFirstItem` is currently exposed in the public API, and we always want to avoid that unless it's either PDF-related functionality or code that simply must be shared between the `src/`- and `web/`-folders. In this case, `binarySearchFirstItem` is a general helper function that doesn't really satisfy either of those alternatives.
This commit is contained in:
Jonas Jenwald 2022-08-14 11:24:38 +02:00
parent 2b66ed5fef
commit 0024165f1f
7 changed files with 79 additions and 83 deletions

View file

@ -13,7 +13,7 @@
* limitations under the License.
*/
import { binarySearchFirstItem } from "pdfjs-lib";
import { binarySearchFirstItem } from "./ui_utils.js";
/**
* This class aims to provide some methods: