* @function LevelRenderer.Tool.Color.prototype.trim * @description 移除颜色中多余空格。 * @param {string} color - 颜色。 * @returns {string} 无空格颜色
(color)
| 608 | * @returns {string} 无空格颜色 |
| 609 | */ |
| 610 | trim(color) { |
| 611 | return String(color).replace(/\s+/g, ''); |
| 612 | } |
| 613 | |
| 614 | /** |
| 615 | * @function LevelRenderer.Tool.Color.prototype.normalize |
no outgoing calls
no test coverage detected