[api-minor] Deprecate the enhanceTextSelection functionality

This commit is contained in:
Jonas Jenwald 2022-07-07 16:05:36 +02:00
parent 403ed07ad9
commit 815c28da0e

View File

@ -18,6 +18,7 @@ import {
createPromiseCapability,
Util,
} from "../shared/util.js";
import { deprecated } from "./display_utils.js";
/**
* Text layer render parameters.
@ -569,6 +570,11 @@ class TextLayerRenderTask {
textContentItemsStr,
enhanceTextSelection,
}) {
if (enhanceTextSelection) {
deprecated(
"The `enhanceTextSelection` functionality will be removed in the future."
);
}
this._textContent = textContent;
this._textContentStream = textContentStream;
this._container = container;