Improve layer typings
This commit is contained in:
@@ -37,7 +37,8 @@ import Layer from './Layer.js';
|
||||
* property on the layer object; for example, setting `title: 'My Title'` in the
|
||||
* options means that `title` is observable, and has get/set accessors.
|
||||
*
|
||||
* @extends {Layer<import("../source/Image.js").default>}
|
||||
* @template {import("../source/Image.js").default} ImageSourceType
|
||||
* @extends {Layer<ImageSourceType>}
|
||||
* @api
|
||||
*/
|
||||
class BaseImageLayer extends Layer {
|
||||
|
||||
@@ -42,7 +42,8 @@ import {assign} from '../obj.js';
|
||||
* property on the layer object; for example, setting `title: 'My Title'` in the
|
||||
* options means that `title` is observable, and has get/set accessors.
|
||||
*
|
||||
* @extends {Layer<import("../source/Tile.js").default>}
|
||||
* @template {import("../source/Tile.js").default} TileSourceType
|
||||
* @extends {Layer<TileSourceType>}
|
||||
* @api
|
||||
*/
|
||||
class BaseTileLayer extends Layer {
|
||||
|
||||
@@ -172,6 +172,7 @@ const INTERVALS = [
|
||||
* Note that the view projection must define both extent and worldExtent.
|
||||
*
|
||||
* @fires import("../render/Event.js").RenderEvent
|
||||
* @extends {VectorLayer<import("../source/Vector.js").default>}
|
||||
* @api
|
||||
*/
|
||||
class Graticule extends VectorLayer {
|
||||
|
||||
@@ -61,6 +61,7 @@ const DEFAULT_GRADIENT = ['#00f', '#0ff', '#0f0', '#ff0', '#f00'];
|
||||
* options means that `title` is observable, and has get/set accessors.
|
||||
*
|
||||
* @fires import("../render/Event.js").RenderEvent
|
||||
* @extends {VectorLayer<import("../source/Vector.js").default>}
|
||||
* @api
|
||||
*/
|
||||
class Heatmap extends VectorLayer {
|
||||
|
||||
@@ -12,6 +12,8 @@ import CanvasImageLayerRenderer from '../renderer/canvas/ImageLayer.js';
|
||||
* property on the layer object; for example, setting `title: 'My Title'` in the
|
||||
* options means that `title` is observable, and has get/set accessors.
|
||||
*
|
||||
* @template {import("../source/Image.js").default} ImageSourceType
|
||||
* @extends {BaseImageLayer<ImageSourceType>}
|
||||
* @api
|
||||
*/
|
||||
class ImageLayer extends BaseImageLayer {
|
||||
|
||||
@@ -12,6 +12,8 @@ import CanvasTileLayerRenderer from '../renderer/canvas/TileLayer.js';
|
||||
* property on the layer object; for example, setting `title: 'My Title'` in the
|
||||
* options means that `title` is observable, and has get/set accessors.
|
||||
*
|
||||
* @template {import("../source/Tile.js").default} TileSourceType
|
||||
* @extends {BaseTileLayer<TileSourceType>}
|
||||
* @api
|
||||
*/
|
||||
class TileLayer extends BaseTileLayer {
|
||||
|
||||
@@ -11,7 +11,8 @@ import CanvasVectorLayerRenderer from '../renderer/canvas/VectorLayer.js';
|
||||
* property on the layer object; for example, setting `title: 'My Title'` in the
|
||||
* options means that `title` is observable, and has get/set accessors.
|
||||
*
|
||||
* @extends {BaseVectorLayer<import("../source/Vector.js").default>}
|
||||
* @template {import("../source/Vector.js").default} VectorSourceType
|
||||
* @extends {BaseVectorLayer<VectorSourceType>}
|
||||
* @api
|
||||
*/
|
||||
class VectorLayer extends BaseVectorLayer {
|
||||
|
||||
@@ -51,6 +51,8 @@ import {assign} from '../obj.js';
|
||||
* property on the layer object; for example, setting `title: 'My Title'` in the
|
||||
* options means that `title` is observable, and has get/set accessors.
|
||||
*
|
||||
* @template {import("../source/Vector.js").default} VectorSourceType
|
||||
* @extends {BaseVectorLayer<VectorSourceType>}
|
||||
* @api
|
||||
*/
|
||||
class VectorImageLayer extends BaseVectorLayer {
|
||||
|
||||
@@ -66,6 +66,8 @@ import {parseLiteralStyle} from '../webgl/ShaderBuilder.js';
|
||||
* property on the layer object; for example, setting `title: 'My Title'` in the
|
||||
* options means that `title` is observable, and has get/set accessors.
|
||||
*
|
||||
* @template {import("../source/Vector.js").default} VectorSourceType
|
||||
* @extends {Layer<VectorSourceType>}
|
||||
* @fires import("../render/Event.js").RenderEvent
|
||||
*/
|
||||
class WebGLPointsLayer extends Layer {
|
||||
|
||||
Reference in New Issue
Block a user