Add @api stable annotations for ol.geom.LineString
This commit is contained in:
@@ -22,7 +22,7 @@ goog.require('ol.geom.flat.simplify');
|
|||||||
* @extends {ol.geom.SimpleGeometry}
|
* @extends {ol.geom.SimpleGeometry}
|
||||||
* @param {ol.geom.RawLineString} coordinates Coordinates.
|
* @param {ol.geom.RawLineString} coordinates Coordinates.
|
||||||
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
|
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.LineString = function(coordinates, opt_layout) {
|
ol.geom.LineString = function(coordinates, opt_layout) {
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@ goog.inherits(ol.geom.LineString, ol.geom.SimpleGeometry);
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.Coordinate} coordinate Coordinate.
|
* @param {ol.Coordinate} coordinate Coordinate.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.LineString.prototype.appendCoordinate = function(coordinate) {
|
ol.geom.LineString.prototype.appendCoordinate = function(coordinate) {
|
||||||
goog.asserts.assert(coordinate.length == this.stride);
|
goog.asserts.assert(coordinate.length == this.stride);
|
||||||
@@ -76,7 +76,7 @@ ol.geom.LineString.prototype.appendCoordinate = function(coordinate) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.LineString.prototype.clone = function() {
|
ol.geom.LineString.prototype.clone = function() {
|
||||||
var lineString = new ol.geom.LineString(null);
|
var lineString = new ol.geom.LineString(null);
|
||||||
@@ -117,7 +117,7 @@ ol.geom.LineString.prototype.closestPointXY =
|
|||||||
* @param {number} m M.
|
* @param {number} m M.
|
||||||
* @param {boolean=} opt_extrapolate Extrapolate.
|
* @param {boolean=} opt_extrapolate Extrapolate.
|
||||||
* @return {ol.Coordinate} Coordinate.
|
* @return {ol.Coordinate} Coordinate.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.LineString.prototype.getCoordinateAtM = function(m, opt_extrapolate) {
|
ol.geom.LineString.prototype.getCoordinateAtM = function(m, opt_extrapolate) {
|
||||||
if (this.layout != ol.geom.GeometryLayout.XYM &&
|
if (this.layout != ol.geom.GeometryLayout.XYM &&
|
||||||
@@ -132,7 +132,7 @@ ol.geom.LineString.prototype.getCoordinateAtM = function(m, opt_extrapolate) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {ol.geom.RawLineString} Coordinates.
|
* @return {ol.geom.RawLineString} Coordinates.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.LineString.prototype.getCoordinates = function() {
|
ol.geom.LineString.prototype.getCoordinates = function() {
|
||||||
return ol.geom.flat.inflate.coordinates(
|
return ol.geom.flat.inflate.coordinates(
|
||||||
@@ -142,7 +142,7 @@ ol.geom.LineString.prototype.getCoordinates = function() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {number} Length (on projected plane).
|
* @return {number} Length (on projected plane).
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.LineString.prototype.getLength = function() {
|
ol.geom.LineString.prototype.getLength = function() {
|
||||||
return ol.geom.flat.length.lineString(
|
return ol.geom.flat.length.lineString(
|
||||||
@@ -182,7 +182,7 @@ ol.geom.LineString.prototype.getSimplifiedGeometryInternal =
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.LineString.prototype.getType = function() {
|
ol.geom.LineString.prototype.getType = function() {
|
||||||
return ol.geom.GeometryType.LINE_STRING;
|
return ol.geom.GeometryType.LINE_STRING;
|
||||||
@@ -192,7 +192,7 @@ ol.geom.LineString.prototype.getType = function() {
|
|||||||
/**
|
/**
|
||||||
* @param {ol.geom.RawLineString} coordinates Coordinates.
|
* @param {ol.geom.RawLineString} coordinates Coordinates.
|
||||||
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
|
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.LineString.prototype.setCoordinates =
|
ol.geom.LineString.prototype.setCoordinates =
|
||||||
function(coordinates, opt_layout) {
|
function(coordinates, opt_layout) {
|
||||||
|
|||||||
Reference in New Issue
Block a user