Add @api stable annotations for ol.geom.Point
This commit is contained in:
@@ -17,7 +17,7 @@ goog.require('ol.math');
|
|||||||
* @extends {ol.geom.SimpleGeometry}
|
* @extends {ol.geom.SimpleGeometry}
|
||||||
* @param {ol.geom.RawPoint} coordinates Coordinates.
|
* @param {ol.geom.RawPoint} coordinates Coordinates.
|
||||||
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
|
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.Point = function(coordinates, opt_layout) {
|
ol.geom.Point = function(coordinates, opt_layout) {
|
||||||
goog.base(this);
|
goog.base(this);
|
||||||
@@ -29,7 +29,7 @@ goog.inherits(ol.geom.Point, ol.geom.SimpleGeometry);
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.Point.prototype.clone = function() {
|
ol.geom.Point.prototype.clone = function() {
|
||||||
var point = new ol.geom.Point(null);
|
var point = new ol.geom.Point(null);
|
||||||
@@ -62,7 +62,7 @@ ol.geom.Point.prototype.closestPointXY =
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {ol.geom.RawPoint} Coordinates.
|
* @return {ol.geom.RawPoint} Coordinates.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.Point.prototype.getCoordinates = function() {
|
ol.geom.Point.prototype.getCoordinates = function() {
|
||||||
return goog.isNull(this.flatCoordinates) ? [] : this.flatCoordinates.slice();
|
return goog.isNull(this.flatCoordinates) ? [] : this.flatCoordinates.slice();
|
||||||
@@ -85,7 +85,7 @@ ol.geom.Point.prototype.getExtent = function(opt_extent) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.Point.prototype.getType = function() {
|
ol.geom.Point.prototype.getType = function() {
|
||||||
return ol.geom.GeometryType.POINT;
|
return ol.geom.GeometryType.POINT;
|
||||||
@@ -95,7 +95,7 @@ ol.geom.Point.prototype.getType = function() {
|
|||||||
/**
|
/**
|
||||||
* @param {ol.geom.RawPoint} coordinates Coordinates.
|
* @param {ol.geom.RawPoint} coordinates Coordinates.
|
||||||
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
|
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.Point.prototype.setCoordinates = function(coordinates, opt_layout) {
|
ol.geom.Point.prototype.setCoordinates = function(coordinates, opt_layout) {
|
||||||
if (goog.isNull(coordinates)) {
|
if (goog.isNull(coordinates)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user