Skip to content

Commit 815c28d

Browse files
committed
[api-minor] Deprecate the enhanceTextSelection functionality
1 parent 403ed07 commit 815c28d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/display/text_layer.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
createPromiseCapability,
1919
Util,
2020
} from "../shared/util.js";
21+
import { deprecated } from "./display_utils.js";
2122

2223
/**
2324
* Text layer render parameters.
@@ -569,6 +570,11 @@ class TextLayerRenderTask {
569570
textContentItemsStr,
570571
enhanceTextSelection,
571572
}) {
573+
if (enhanceTextSelection) {
574+
deprecated(
575+
"The `enhanceTextSelection` functionality will be removed in the future."
576+
);
577+
}
572578
this._textContent = textContent;
573579
this._textContentStream = textContentStream;
574580
this._container = container;

0 commit comments

Comments
 (0)