Merge pull request #15015 from jerry1100/fix-container-type

Extend TextLayerRenderParameters.container type to include HTMLElement.
This commit is contained in:
Jonas Jenwald 2022-06-10 17:05:47 +02:00 committed by GitHub
commit d45ce8d6a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,8 +27,8 @@ import {
* render (the object is returned by the page's `getTextContent` method). * render (the object is returned by the page's `getTextContent` method).
* @property {ReadableStream} [textContentStream] - Text content stream to * @property {ReadableStream} [textContentStream] - Text content stream to
* render (the stream is returned by the page's `streamTextContent` method). * render (the stream is returned by the page's `streamTextContent` method).
* @property {DocumentFragment} container - The DOM node that will contain the * @property {DocumentFragment | HTMLElement} container - The DOM node that
* text runs. * will contain the text runs.
* @property {import("./display_utils").PageViewport} viewport - The target * @property {import("./display_utils").PageViewport} viewport - The target
* viewport to properly layout the text runs. * viewport to properly layout the text runs.
* @property {Array<HTMLElement>} [textDivs] - HTML elements that correspond to * @property {Array<HTMLElement>} [textDivs] - HTML elements that correspond to