Fix style TypeScript errors

This commit is contained in:
Kevin Schmidt
2018-09-14 15:57:21 -06:00
parent 7912c5d711
commit 124fccf127
8 changed files with 30 additions and 12 deletions
+2 -1
View File
@@ -87,6 +87,7 @@
* ```
*/
import {assert} from '../asserts.js';
import Geometry from '../geom/Geometry.js';
import GeometryType from '../geom/GeometryType.js';
import CircleStyle from '../style/Circle.js';
import Fill from '../style/Fill.js';
@@ -214,7 +215,7 @@ class Style {
*/
clone() {
let geometry = this.getGeometry();
if (geometry && geometry.clone) {
if (geometry instanceof Geometry) {
geometry = geometry.clone();
}
return new Style({