[Editor] Disable the thickness slider for non-free highlight
This commit is contained in:
parent
964bfe522b
commit
b5e446213e
@ -237,6 +237,7 @@ class HighlightEditor extends AnnotationEditor {
|
|||||||
AnnotationEditorParamsType.HIGHLIGHT_THICKNESS,
|
AnnotationEditorParamsType.HIGHLIGHT_THICKNESS,
|
||||||
this.#thickness || HighlightEditor._defaultThickness,
|
this.#thickness || HighlightEditor._defaultThickness,
|
||||||
],
|
],
|
||||||
|
[AnnotationEditorParamsType.HIGHLIGHT_FREE, this.#isFreeHighlight],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,6 +89,7 @@ const AnnotationEditorParamsType = {
|
|||||||
HIGHLIGHT_COLOR: 31,
|
HIGHLIGHT_COLOR: 31,
|
||||||
HIGHLIGHT_DEFAULT_COLOR: 32,
|
HIGHLIGHT_DEFAULT_COLOR: 32,
|
||||||
HIGHLIGHT_THICKNESS: 33,
|
HIGHLIGHT_THICKNESS: 33,
|
||||||
|
HIGHLIGHT_FREE: 34,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Permission flags from Table 22, Section 7.6.3.2 of the PDF specification.
|
// Permission flags from Table 22, Section 7.6.3.2 of the PDF specification.
|
||||||
|
@ -84,6 +84,9 @@ class AnnotationEditorParams {
|
|||||||
case AnnotationEditorParamsType.HIGHLIGHT_THICKNESS:
|
case AnnotationEditorParamsType.HIGHLIGHT_THICKNESS:
|
||||||
editorFreeHighlightThickness.value = value;
|
editorFreeHighlightThickness.value = value;
|
||||||
break;
|
break;
|
||||||
|
case AnnotationEditorParamsType.HIGHLIGHT_FREE:
|
||||||
|
editorFreeHighlightThickness.disabled = !value;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user