Named export for ol/asserts

This commit is contained in:
Frederic Junod
2017-12-17 18:10:59 +01:00
parent 7202573f82
commit 9349ba5403
33 changed files with 89 additions and 92 deletions

View File

@@ -1,7 +1,7 @@
/**
* @module ol/transform
*/
import _ol_asserts_ from './asserts.js';
import {assert} from './asserts.js';
var _ol_transform_ = {};
@@ -204,7 +204,7 @@ _ol_transform_.compose = function(transform, dx1, dy1, sx, sy, angle, dx2, dy2)
*/
_ol_transform_.invert = function(transform) {
var det = _ol_transform_.determinant(transform);
_ol_asserts_.assert(det !== 0, 32); // Transformation matrix cannot be inverted
assert(det !== 0, 32); // Transformation matrix cannot be inverted
var a = transform[0];
var b = transform[1];