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

Method isOutside

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

* @function LevelRenderer.Tool.Areal.prototype.isOutside * @description 图形是否不包含鼠标位置。 * @param {Object} shape - 图形。 * @param {number} area - 目标区域。 * @param {number} x - 横坐标。 * @param {number} y - 纵坐标。 * @returns {boolean} 图形是否不包含鼠标位置, true表示坐标处在图形外。

(shape, area, x, y)

Source from the content-addressed store, hash-verified

405 * @returns {boolean} 图形是否不包含鼠标位置, true表示坐标处在图形外。
406 */
407 isOutside(shape, area, x, y) {
408 return !this.isInside(shape, area, x, y);
409 }
410
411 /**
412 * @function LevelRenderer.Tool.Areal.prototype.isInsideLine

Callers 1

AreaSpec.jsFile · 0.80

Calls 1

isInsideMethod · 0.95

Tested by

no test coverage detected