Merge pull request #9236 from fredj/cleanup
Move params list to the constructor function
This commit is contained in:
@@ -22,7 +22,9 @@ const tmpTransform = createTransform();
|
|||||||
* Lightweight, read-only, {@link module:ol/Feature~Feature} and {@link module:ol/geom/Geometry~Geometry} like
|
* Lightweight, read-only, {@link module:ol/Feature~Feature} and {@link module:ol/geom/Geometry~Geometry} like
|
||||||
* structure, optimized for vector tile rendering and styling. Geometry access
|
* structure, optimized for vector tile rendering and styling. Geometry access
|
||||||
* through the API is limited to getting the type and extent of the geometry.
|
* through the API is limited to getting the type and extent of the geometry.
|
||||||
*
|
*/
|
||||||
|
class RenderFeature {
|
||||||
|
/**
|
||||||
* @param {GeometryType} type Geometry type.
|
* @param {GeometryType} type Geometry type.
|
||||||
* @param {Array<number>} flatCoordinates Flat coordinates. These always need
|
* @param {Array<number>} flatCoordinates Flat coordinates. These always need
|
||||||
* to be right-handed for polygons.
|
* to be right-handed for polygons.
|
||||||
@@ -30,7 +32,6 @@ const tmpTransform = createTransform();
|
|||||||
* @param {Object<string, *>} properties Properties.
|
* @param {Object<string, *>} properties Properties.
|
||||||
* @param {number|string|undefined} id Feature id.
|
* @param {number|string|undefined} id Feature id.
|
||||||
*/
|
*/
|
||||||
class RenderFeature {
|
|
||||||
constructor(type, flatCoordinates, ends, properties, id) {
|
constructor(type, flatCoordinates, ends, properties, id) {
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
|
|||||||
Reference in New Issue
Block a user