Add @api stable annotations for ol.geom.MultiLineString
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.RawMultiLineString} coordinates Coordinates.
|
* @param {ol.geom.RawMultiLineString} coordinates Coordinates.
|
||||||
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
|
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.MultiLineString = function(coordinates, opt_layout) {
|
ol.geom.MultiLineString = function(coordinates, opt_layout) {
|
||||||
|
|
||||||
@@ -55,7 +55,7 @@ goog.inherits(ol.geom.MultiLineString, ol.geom.SimpleGeometry);
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.geom.LineString} lineString LineString.
|
* @param {ol.geom.LineString} lineString LineString.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.MultiLineString.prototype.appendLineString = function(lineString) {
|
ol.geom.MultiLineString.prototype.appendLineString = function(lineString) {
|
||||||
goog.asserts.assert(lineString.getLayout() == this.layout);
|
goog.asserts.assert(lineString.getLayout() == this.layout);
|
||||||
@@ -72,7 +72,7 @@ ol.geom.MultiLineString.prototype.appendLineString = function(lineString) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.MultiLineString.prototype.clone = function() {
|
ol.geom.MultiLineString.prototype.clone = function() {
|
||||||
var multiLineString = new ol.geom.MultiLineString(null);
|
var multiLineString = new ol.geom.MultiLineString(null);
|
||||||
@@ -122,7 +122,7 @@ ol.geom.MultiLineString.prototype.closestPointXY =
|
|||||||
* @param {boolean=} opt_extrapolate Extrapolate.
|
* @param {boolean=} opt_extrapolate Extrapolate.
|
||||||
* @param {boolean=} opt_interpolate Interpolate.
|
* @param {boolean=} opt_interpolate Interpolate.
|
||||||
* @return {ol.Coordinate} Coordinate.
|
* @return {ol.Coordinate} Coordinate.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.MultiLineString.prototype.getCoordinateAtM =
|
ol.geom.MultiLineString.prototype.getCoordinateAtM =
|
||||||
function(m, opt_extrapolate, opt_interpolate) {
|
function(m, opt_extrapolate, opt_interpolate) {
|
||||||
@@ -140,7 +140,7 @@ ol.geom.MultiLineString.prototype.getCoordinateAtM =
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {ol.geom.RawMultiLineString} Coordinates.
|
* @return {ol.geom.RawMultiLineString} Coordinates.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.MultiLineString.prototype.getCoordinates = function() {
|
ol.geom.MultiLineString.prototype.getCoordinates = function() {
|
||||||
return ol.geom.flat.inflate.coordinatess(
|
return ol.geom.flat.inflate.coordinatess(
|
||||||
@@ -159,7 +159,7 @@ ol.geom.MultiLineString.prototype.getEnds = function() {
|
|||||||
/**
|
/**
|
||||||
* @param {number} index Index.
|
* @param {number} index Index.
|
||||||
* @return {ol.geom.LineString} LineString.
|
* @return {ol.geom.LineString} LineString.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.MultiLineString.prototype.getLineString = function(index) {
|
ol.geom.MultiLineString.prototype.getLineString = function(index) {
|
||||||
goog.asserts.assert(0 <= index && index < this.ends_.length);
|
goog.asserts.assert(0 <= index && index < this.ends_.length);
|
||||||
@@ -175,7 +175,7 @@ ol.geom.MultiLineString.prototype.getLineString = function(index) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {Array.<ol.geom.LineString>} LineStrings.
|
* @return {Array.<ol.geom.LineString>} LineStrings.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.MultiLineString.prototype.getLineStrings = function() {
|
ol.geom.MultiLineString.prototype.getLineStrings = function() {
|
||||||
var flatCoordinates = this.flatCoordinates;
|
var flatCoordinates = this.flatCoordinates;
|
||||||
@@ -236,7 +236,7 @@ ol.geom.MultiLineString.prototype.getSimplifiedGeometryInternal =
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.MultiLineString.prototype.getType = function() {
|
ol.geom.MultiLineString.prototype.getType = function() {
|
||||||
return ol.geom.GeometryType.MULTI_LINE_STRING;
|
return ol.geom.GeometryType.MULTI_LINE_STRING;
|
||||||
@@ -246,7 +246,7 @@ ol.geom.MultiLineString.prototype.getType = function() {
|
|||||||
/**
|
/**
|
||||||
* @param {ol.geom.RawMultiLineString} coordinates Coordinates.
|
* @param {ol.geom.RawMultiLineString} coordinates Coordinates.
|
||||||
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
|
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.MultiLineString.prototype.setCoordinates =
|
ol.geom.MultiLineString.prototype.setCoordinates =
|
||||||
function(coordinates, opt_layout) {
|
function(coordinates, opt_layout) {
|
||||||
|
|||||||
Reference in New Issue
Block a user