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

Method isInsideRect

src/common/overlay/levelRenderer/Area.js:613–615  ·  view source on GitHub ↗

* @function LevelRenderer.Tool.Areal.prototype.isInsideRect * @description 图形 Rect 是否包含鼠标位置, true表示坐标处在图形内。 * @returns {boolean} 图形是否包含鼠标位置, true表示坐标处在图形内。

(x0, y0, width, height, x, y)

Source from the content-addressed store, hash-verified

611 * @returns {boolean} 图形是否包含鼠标位置, true表示坐标处在图形内。
612 */
613 isInsideRect(x0, y0, width, height, x, y) {
614 return x >= x0 && x <= (x0 + width) && y >= y0 && y <= (y0 + height);
615 }
616
617 /**
618 * @function LevelRenderer.Tool.Areal.prototype.isInsideCircle

Callers 1

_mathMethodMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected