MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / getWidth

Method getWidth

src/common/commontypes/Bounds.js:195–197  ·  view source on GitHub ↗

* @function Bounds.prototype.getWidth * @description 获取 bounds 的宽度。 * @example * var bounds = new Bounds(-180,-90,100,80); * //width = 280; * var width = bounds.getWidth(); * @returns {number} 获取当前 bounds 的宽度(right 减去 left)。

()

Source from the content-addressed store, hash-verified

193 * @returns {number} 获取当前 bounds 的宽度(right 减去 left)。
194 */
195 getWidth() {
196 return (this.right - this.left);
197 }
198
199 /**
200 * @function Bounds.prototype.getHeight

Callers 15

getSizeMethod · 0.95
RenderSpec.jsFile · 0.45
PainterSpec.jsFile · 0.45
StyleUtilsSpec.jsFile · 0.45
StyleUtils2Spec.jsFile · 0.45
Util.jsFile · 0.45
wrapDateLineMethod · 0.45
containsLonLatMethod · 0.45
intersectsBoundsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected