Move olx.source.AttributionOption out of externs/olx.js

This commit is contained in:
Frederic Junod
2016-04-05 09:01:24 +02:00
parent 5302882fba
commit db9c6a99c8
6 changed files with 45 additions and 45 deletions

View File

@@ -4,6 +4,13 @@ goog.require('ol.TileRange');
goog.require('ol.math');
/**
* @typedef {string|Array.<string>|ol.Attribution|Array.<ol.Attribution>}
* @api
*/
ol.AttributionLike;
/**
* @classdesc
* An attribution for a layer source.

View File

@@ -12,7 +12,7 @@ goog.require('ol.source.Source');
/**
* @typedef {{attributions: (olx.source.AttributionOption|undefined),
* @typedef {{attributions: (ol.AttributionLike|undefined),
* extent: (null|ol.Extent|undefined),
* logo: (string|olx.LogoOptions|undefined),
* projection: ol.proj.ProjectionLike,

View File

@@ -21,7 +21,7 @@ ol.source.State = {
/**
* @typedef {{attributions: (olx.source.AttributionOption|undefined),
* @typedef {{attributions: (ol.AttributionLike|undefined),
* logo: (string|olx.LogoOptions|undefined),
* projection: ol.proj.ProjectionLike,
* state: (ol.source.State|undefined),
@@ -84,7 +84,7 @@ goog.inherits(ol.source.Source, ol.Object);
/**
* Turns various ways of defining an attribution to an array of `ol.Attributions`.
*
* @param {olx.source.AttributionOption|undefined}
* @param {ol.AttributionLike|undefined}
* attributionLike The attributions as string, array of strings,
* `ol.Attribution`, array of `ol.Attribution` or undefined.
* @return {Array.<ol.Attribution>} The array of `ol.Attribution` or null if
@@ -191,7 +191,7 @@ ol.source.Source.prototype.refresh = function() {
/**
* Set the attributions of the source.
* @param {olx.source.AttributionOption|undefined} attributions Attributions.
* @param {ol.AttributionLike|undefined} attributions Attributions.
* Can be passed as `string`, `Array<string>`, `{@link ol.Attribution}`,
* `Array<{@link ol.Attribution}>` or `undefined`.
* @api

View File

@@ -17,7 +17,7 @@ goog.require('ol.tilegrid.TileGrid');
/**
* @typedef {{attributions: (olx.source.AttributionOption|undefined),
* @typedef {{attributions: (ol.AttributionLike|undefined),
* cacheSize: (number|undefined),
* extent: (ol.Extent|undefined),
* logo: (string|olx.LogoOptions|undefined),

View File

@@ -11,7 +11,7 @@ goog.require('ol.source.TileEvent');
/**
* @typedef {{attributions: (olx.source.AttributionOption|undefined),
* @typedef {{attributions: (ol.AttributionLike|undefined),
* cacheSize: (number|undefined),
* extent: (ol.Extent|undefined),
* logo: (string|olx.LogoOptions|undefined),