Named exports from ol/color module

This commit is contained in:
Marc Jansen
2017-12-19 13:56:54 +01:00
parent afa99f5788
commit 295c2973b5
11 changed files with 95 additions and 108 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
/**
* @module ol/colorlike
*/
import _ol_color_ from './color.js';
import {asString} from './color.js';
/**
@@ -13,7 +13,7 @@ export function asColorLike(color) {
if (isColorLike(color)) {
return /** @type {string|CanvasPattern|CanvasGradient} */ (color);
} else {
return _ol_color_.asString(/** @type {ol.Color} */ (color));
return asString(/** @type {ol.Color} */ (color));
}
}