Merge pull request #15145 from Snuffleupagus/deprecated-enhanceTextSelection

[api-minor] Deprecate the `enhanceTextSelection` functionality
This commit is contained in:
Tim van der Meij 2022-07-09 12:38:41 +02:00 committed by GitHub
commit 220f980e12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;