MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / renderText

Function renderText

libs/echarts/echarts.simple.js:8425–8429  ·  view source on GitHub ↗

* @param {CanvasRenderingContext2D} ctx * @param {string} text * @param {module:zrender/graphic/Style} style * @param {Object|boolean} [rect] {x, y, width, height} * If set false, rect text is not used. * @param {Element|module:zrender/graphic/helper/constant.WILL_BE_RESTORED}

(hostEl, ctx, text, style, rect, prevEl)

Source from the content-addressed store, hash-verified

8423 * @param {Element|module:zrender/graphic/helper/constant.WILL_BE_RESTORED} [prevEl] For ctx prop cache.
8424 */
8425function renderText(hostEl, ctx, text, style, rect, prevEl) {
8426 style.rich
8427 ? renderRichText(hostEl, ctx, text, style, rect, prevEl)
8428 : renderPlainText(hostEl, ctx, text, style, rect, prevEl);
8429}
8430
8431// Avoid setting to ctx according to prevEl if possible for
8432// performance in scenarios of large amount text.

Callers 1

echarts.simple.jsFile · 0.70

Calls 2

renderRichTextFunction · 0.70
renderPlainTextFunction · 0.70

Tested by

no test coverage detected