MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / getFont

Function getFont

libs/echarts/echarts.simple.js:17886–17895  ·  view source on GitHub ↗
(opt, ecModel)

Source from the content-addressed store, hash-verified

17884}
17885
17886function getFont(opt, ecModel) {
17887 var gTextStyleModel = ecModel && ecModel.getModel('textStyle');
17888 return trim([
17889 // FIXME in node-canvas fontWeight is before fontStyle
17890 opt.fontStyle || gTextStyleModel && gTextStyleModel.getShallow('fontStyle') || '',
17891 opt.fontWeight || gTextStyleModel && gTextStyleModel.getShallow('fontWeight') || '',
17892 (opt.fontSize || gTextStyleModel && gTextStyleModel.getShallow('fontSize') || 12) + 'px',
17893 opt.fontFamily || gTextStyleModel && gTextStyleModel.getShallow('fontFamily') || 'sans-serif'
17894 ].join(' '));
17895}
17896
17897function animateOrSetProps(isUpdate, el, props, animatableModel, dataIndex, cb) {
17898 if (typeof dataIndex === 'function') {

Callers 1

echarts.simple.jsFile · 0.70

Calls 2

trimFunction · 0.70
getModelMethod · 0.45

Tested by

no test coverage detected