Use 'module:ol/PluggableMap~FrameState' instead of 'olx.FrameState'

This commit is contained in:
Frederic Junod
2018-03-13 16:06:46 +01:00
parent 120307b193
commit 8c58bb4332
14 changed files with 54 additions and 54 deletions

View File

@@ -57,7 +57,7 @@ import {create as createTransform, apply as applyTransform} from './transform.js
/**
* @typedef {function(module:ol/PluggableMap~PluggableMap, ?olx.FrameState): boolean} PostRenderFunction
* @typedef {function(module:ol/PluggableMap~PluggableMap, ?module:ol/PluggableMap~FrameState): boolean} PostRenderFunction
*/
@@ -218,7 +218,7 @@ const PluggableMap = function(options) {
/**
* @private
* @type {?olx.FrameState}
* @type {?module:ol/PluggableMap~FrameState}
*/
this.frameState_ = null;
@@ -1224,7 +1224,7 @@ PluggableMap.prototype.renderFrame_ = function(time) {
const view = this.getView();
const extent = createEmpty();
const previousFrameState = this.frameState_;
/** @type {?olx.FrameState} */
/** @type {?module:ol/PluggableMap~FrameState} */
let frameState = null;
if (size !== undefined && hasArea(size) && view && view.isDef()) {
const viewHints = view.getHints(this.frameState_ ? this.frameState_.viewHints : undefined);
@@ -1241,7 +1241,7 @@ PluggableMap.prototype.renderFrame_ = function(time) {
focus[0] = Math.round(focus[0] / pixelResolution) * pixelResolution;
focus[1] = Math.round(focus[1] / pixelResolution) * pixelResolution;
}
frameState = /** @type {olx.FrameState} */ ({
frameState = /** @type {module:ol/PluggableMap~FrameState} */ ({
animate: false,
coordinateToPixelTransform: this.coordinateToPixelTransform_,
extent: extent,