Get rid of olx.js and typedef.js typedefs for ol

This commit is contained in:
Andreas Hocevar
2018-03-08 18:42:57 +01:00
parent 8f0ffe2043
commit 95d6251dbb
198 changed files with 2262 additions and 2698 deletions

View File

@@ -3,9 +3,28 @@
*/
import PluginType from './PluginType.js';
/**
* @typedef {Object} MapRendererPlugin
* @property {function(module:ol/renderer/Type):boolean} handles Determine if
* this renderer handles the provided layer.
* @property {function(Element, module:ol/PluggableMap~PluggableMap):module:ol/renderer/Map~Map} create
* Create the map renderer.
*/
/**
* @typedef {Object} LayerRendererPlugin
* @property {function(module:ol/renderer/Type, module:ol/layer/Layer~Layer):boolean} handles
* Determine if this renderer handles the provided layer.
* @property {function(module:ol/renderer/Map~Map, module:ol/layer/Layer~Layer):module:ol/renderer/Layer~Layer} create
* Create a layer renderer.
*/
/**
* The registry of map renderer plugins.
* @type {Array<olx.MapRendererPlugin>}
* @type {Array<module:ol/plugins~MapRendererPlugin>}
* @private
*/
const mapRendererPlugins = [];
@@ -39,7 +58,7 @@ export function getLayerRendererPlugins() {
/**
* Register a plugin.
* @param {ol.PluginType} type The plugin type.
* @param {module:ol/PluginType~PluginType} type The plugin type.
* @param {*} plugin The plugin.
*/
export function register(type, plugin) {
@@ -64,7 +83,7 @@ export function register(type, plugin) {
/**
* Register multiple plugins.
* @param {ol.PluginType} type The plugin type.
* @param {module:ol/PluginType~PluginType} type The plugin type.
* @param {Array} plugins The plugins.
*/
export function registerMultiple(type, plugins) {