* @function StyleUtils.getDefaultStyle * @description 获取默认风格 * @param {string} type - 类型参数。 * @returns {string}
(type)
| 580 | * @returns {string} |
| 581 | */ |
| 582 | static getDefaultStyle(type) { |
| 583 | var style = {}; |
| 584 | var canvasStyle = DeafultCanvasStyle[type]; |
| 585 | for (var prop in canvasStyle) { |
| 586 | var val = canvasStyle[prop]; |
| 587 | style[prop] = val; |
| 588 | } |
| 589 | return style; |
| 590 | } |
| 591 | |
| 592 | /** |
| 593 | * @function StyleUtils.getDefaultStyle |
no outgoing calls
no test coverage detected