Merge pull request #15145 from Snuffleupagus/deprecated-enhanceTextSelection
[api-minor] Deprecate the `enhanceTextSelection` functionality
This commit is contained in:
commit
220f980e12
@ -18,6 +18,7 @@ import {
|
|||||||
createPromiseCapability,
|
createPromiseCapability,
|
||||||
Util,
|
Util,
|
||||||
} from "../shared/util.js";
|
} from "../shared/util.js";
|
||||||
|
import { deprecated } from "./display_utils.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Text layer render parameters.
|
* Text layer render parameters.
|
||||||
@ -569,6 +570,11 @@ class TextLayerRenderTask {
|
|||||||
textContentItemsStr,
|
textContentItemsStr,
|
||||||
enhanceTextSelection,
|
enhanceTextSelection,
|
||||||
}) {
|
}) {
|
||||||
|
if (enhanceTextSelection) {
|
||||||
|
deprecated(
|
||||||
|
"The `enhanceTextSelection` functionality will be removed in the future."
|
||||||
|
);
|
||||||
|
}
|
||||||
this._textContent = textContent;
|
this._textContent = textContent;
|
||||||
this._textContentStream = textContentStream;
|
this._textContentStream = textContentStream;
|
||||||
this._container = container;
|
this._container = container;
|
||||||
|
Loading…
Reference in New Issue
Block a user