(style, canvas)
| 866 | } |
| 867 | |
| 868 | handleSvgColor(style, canvas) { |
| 869 | const { fillColor, fillOpacity, strokeColor, strokeOpacity, strokeWidth } = style; |
| 870 | const context = canvas.getContext('2d'); |
| 871 | if (style.text) { |
| 872 | this._drawTextWithCanvas({ context, canvas, style }); |
| 873 | return; |
| 874 | } |
| 875 | if (fillColor) { |
| 876 | context.fillStyle = ColorsPickerUtil.getColorWithOpacity(fillColor, fillOpacity); |
| 877 | context.fill(); |
| 878 | } |
| 879 | |
| 880 | if (strokeColor || strokeWidth) { |
| 881 | context.strokeStyle = ColorsPickerUtil.getColorWithOpacity(strokeColor, strokeOpacity); |
| 882 | context.lineWidth = strokeWidth; |
| 883 | context.stroke(); |
| 884 | } |
| 885 | } |
| 886 | |
| 887 | _createPointsData(lineData, layerInfo, properties) { |
| 888 | let data = []; |
no test coverage detected