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

Function getStroke

libs/echarts/echarts.simple.js:8897–8904  ·  view source on GitHub ↗

* @param {string} [stroke] If specified, do not check style.textStroke. * @param {string} [lineWidth] If specified, do not check style.textStroke. * @param {number} style

(stroke, lineWidth)

Source from the content-addressed store, hash-verified

8895 * @param {number} style
8896 */
8897function getStroke(stroke, lineWidth) {
8898 return (stroke == null || lineWidth <= 0 || stroke === 'transparent' || stroke === 'none')
8899 ? null
8900 // TODO pattern and gradient?
8901 : (stroke.image || stroke.colorStops)
8902 ? '#000'
8903 : stroke;
8904}
8905
8906function getFill(fill) {
8907 return (fill == null || fill === 'none')

Callers 3

renderPlainTextFunction · 0.70
placeTokenFunction · 0.70
echarts.simple.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected