More efficient default fill color

This commit is contained in:
ahocevar
2019-03-19 13:57:10 +01:00
parent 3f7c52c29f
commit b33ceaa400
3 changed files with 6 additions and 8 deletions

View File

@@ -2,7 +2,6 @@
* @module ol/style/RegularShape
*/
import {asString} from '../color.js';
import {asColorLike} from '../colorlike.js';
import {createCanvasContext2D} from '../dom.js';
import ImageState from '../ImageState.js';
@@ -482,7 +481,7 @@ class RegularShape extends ImageStyle {
}
}
context.fillStyle = asString(defaultFillStyle);
context.fillStyle = defaultFillStyle;
context.fill();
if (this.stroke_) {
context.strokeStyle = renderOptions.strokeStyle;