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

Method trim

src/common/overlay/levelRenderer/Color.js:610–612  ·  view source on GitHub ↗

* @function LevelRenderer.Tool.Color.prototype.trim * @description 移除颜色中多余空格。 * @param {string} color - 颜色。 * @returns {string} 无空格颜色

(color)

Source from the content-addressed store, hash-verified

608 * @returns {string} 无空格颜色
609 */
610 trim(color) {
611 return String(color).replace(/\s+/g, '');
612 }
613
614 /**
615 * @function LevelRenderer.Tool.Color.prototype.normalize

Callers 15

toArrayMethod · 0.95
normalizeMethod · 0.95
BaseTypesSpec.jsFile · 0.80
ColorUtilSpec.jsFile · 0.80
ColorSpec.jsFile · 0.80
jquery.jsFile · 0.80
_initViewFunction · 0.80
_linkageFeatureFunction · 0.80
dashStyleMethod · 0.80
_getDataflowInfoMethod · 0.80
_getDataFromIportalMethod · 0.80
_excelData2FeatureMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected