mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
[Editor] Add an option to use the new 'add an image' flow (bug 1907207)
UX team designed in a new flow we'll implement soon and we want to be able to make an experiment to be able to compare current flow vs the new one.
This commit is contained in:
parent
2d254375a8
commit
dfccc8ffd9
5 changed files with 25 additions and 0 deletions
|
@ -562,6 +562,8 @@ class AnnotationEditorUIManager {
|
|||
|
||||
#enableHighlightFloatingButton = false;
|
||||
|
||||
#enableUpdatedAddImage = false;
|
||||
|
||||
#filterFactory = null;
|
||||
|
||||
#focusMainContainerTimeoutId = null;
|
||||
|
@ -779,6 +781,7 @@ class AnnotationEditorUIManager {
|
|||
pageColors,
|
||||
highlightColors,
|
||||
enableHighlightFloatingButton,
|
||||
enableUpdatedAddImage,
|
||||
mlManager
|
||||
) {
|
||||
this._signal = this.#abortController.signal;
|
||||
|
@ -798,6 +801,7 @@ class AnnotationEditorUIManager {
|
|||
this.#pageColors = pageColors;
|
||||
this.#highlightColors = highlightColors || null;
|
||||
this.#enableHighlightFloatingButton = enableHighlightFloatingButton;
|
||||
this.#enableUpdatedAddImage = enableUpdatedAddImage;
|
||||
this.#mlManager = mlManager || null;
|
||||
this.viewParameters = {
|
||||
realScale: PixelsPerInch.PDF_TO_CSS_UNITS,
|
||||
|
@ -855,6 +859,10 @@ class AnnotationEditorUIManager {
|
|||
return !!this.#mlManager?.isEnabledFor(name);
|
||||
}
|
||||
|
||||
get useNewAltTextFlow() {
|
||||
return this.#enableUpdatedAddImage;
|
||||
}
|
||||
|
||||
get hcmFilter() {
|
||||
return shadow(
|
||||
this,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue