rename _ol_math_ imports

This commit is contained in:
Ron Young
2017-12-20 19:31:00 -06:00
parent 8ef8f59cd9
commit a11208d126
36 changed files with 180 additions and 183 deletions

View File

@@ -4,7 +4,7 @@
import {inherits} from '../index.js';
import _ol_Object_ from '../Object.js';
import _ol_layer_Property_ from '../layer/Property.js';
import _ol_math_ from '../math.js';
import {clamp} from '../math.js';
import _ol_obj_ from '../obj.js';
/**
@@ -76,7 +76,7 @@ _ol_layer_Base_.prototype.getType = function() {
* @return {ol.LayerState} Layer state.
*/
_ol_layer_Base_.prototype.getLayerState = function() {
this.state_.opacity = _ol_math_.clamp(this.getOpacity(), 0, 1);
this.state_.opacity = clamp(this.getOpacity(), 0, 1);
this.state_.sourceState = this.getSourceState();
this.state_.visible = this.getVisible();
this.state_.extent = this.getExtent();