MCPcopy
hub / github.com/apache/echarts / createTextStyle

Function createTextStyle

src/label/labelStyle.ts:325–339  ·  view source on GitHub ↗
(
    textStyleModel: LabelCommonModel<TNuance>,
    specifiedTextStyle?: TextStyleProps, // Fixed style in the code. Can't be set by model.
    opt?: Parameters<typeof setTextStyleCommon>[2],
    isNotNormal?: boolean,
    isAttached?: boolean // If text is attached on an element. If so, auto color will handling in zrender.
)

Source from the content-addressed store, hash-verified

323 * Set basic textStyle properties.
324 */
325export function createTextStyle<
326 TNuance extends TextCommonOptionNuanceBase = TextCommonOptionNuanceDefault
327>(
328 textStyleModel: LabelCommonModel<TNuance>,
329 specifiedTextStyle?: TextStyleProps, // Fixed style in the code. Can't be set by model.
330 opt?: Parameters<typeof setTextStyleCommon>[2],
331 isNotNormal?: boolean,
332 isAttached?: boolean // If text is attached on an element. If so, auto color will handling in zrender.
333): TextStyleProps {
334 const textStyle: TextStyleProps = {};
335 setTextStyleCommon(textStyle, textStyleModel, opt, isNotNormal, isAttached);
336 specifiedTextStyle && extend(textStyle, specifiedTextStyle);
337 // textStyle.host && textStyle.host.dirty && textStyle.host.dirty(false);
338 return textStyle;
339}
340export function createTextConfig(
341 textStyleModel: Model<LabelOption<{positionExtra: 'outside'}>>,
342 opt?: Pick<

Callers 15

_updateLabelMethod · 0.90
_renderTicksMethod · 0.90
_renderTitleAndDetailMethod · 0.90
_renderContentMethod · 0.90
_createItemMethod · 0.90
_renderAxisLabelMethod · 0.90
_renderEndsTextMethod · 0.90
_createHandleMethod · 0.90
_createIndicatorMethod · 0.90
doRenderMethod · 0.90
_renderEndsTextMethod · 0.90
_renderYearTextMethod · 0.90

Calls 2

setTextStyleCommonFunction · 0.85
extendFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…