MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / getCentroid

Method getCentroid

src/common/commontypes/geometry/GeoText.js:77–79  ·  view source on GitHub ↗

* @function GeometryGeoText.prototype.getCentroid * @description 获取标签对象的质心。 * @returns {GeometryPoint} 标签对象的质心。

()

Source from the content-addressed store, hash-verified

75 * @returns {GeometryPoint} 标签对象的质心。
76 */
77 getCentroid() {
78 return new Point(this.x, this.y);
79 }
80
81 /**
82 * @function GeometryGeoText.prototype.clone

Callers 10

GeoTextSpec.jsFile · 0.80
LabelSpec.jsFile · 0.80
getLabelPxLocationMethod · 0.80
calculateLabelBoundsMethod · 0.80
WebMap.jsFile · 0.80
LabelThemeLayer.jsFile · 0.80
getLabelPxLocationMethod · 0.80
calculateLabelBoundsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected