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

Method getFont

src/model/mixin/textStyle.ts:58–65  ·  view source on GitHub ↗

* Create font string from fontStyle, fontWeight, fontSize, fontFamily * @return {string}

(this: Model<LabelFontOption>)

Source from the content-addressed store, hash-verified

56 * @return {string}
57 */
58 getFont(this: Model<LabelFontOption>) {
59 return getFont({
60 fontStyle: this.getShallow('fontStyle'),
61 fontWeight: this.getShallow('fontWeight'),
62 fontSize: this.getShallow('fontSize'),
63 fontFamily: this.getShallow('fontFamily')
64 }, this.ecModel);
65 }
66
67 getTextRect(this: Model<LabelRectRelatedOption> & TextStyleMixin, text: string): graphicUtil.BoundingRect {
68 const style: TextStyleProps = {

Callers 8

fontFunction · 0.80
assembleFontFunction · 0.80
renderInnerMethod · 0.80
axisNameFunction · 0.80
buildLabelElOptionFunction · 0.80
_renderHandleMethod · 0.80

Calls 2

getFontFunction · 0.90
getShallowMethod · 0.80

Tested by

no test coverage detected