(
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.
)
| 323 | * Set basic textStyle properties. |
| 324 | */ |
| 325 | export 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 | } |
| 340 | export function createTextConfig( |
| 341 | textStyleModel: Model<LabelOption<{positionExtra: 'outside'}>>, |
| 342 | opt?: Pick< |
no test coverage detected
searching dependent graphs…