Clear Up
SharpKit Reference

Paper.getElementByPoint Method (JsNumber, JsNumber)

Returns you topmost element under given point.

Namespace: SharpKit.Raphael

Class: Paper

Syntax

public Element getElementByPoint(JsNumber x, JsNumber y)

Parameters

x
Type: SharpKit.JavaScript.JsNumber
x coordinate from the top left corner of the window
y
Type: SharpKit.JavaScript.JsNumber
y coordinate from the top left corner of the window

Return Value

Type: SharpKit.Raphael.Element
Raphaël element object

Examples

usage
paper.getElementByPoint(mouseX, mouseY).attr({stroke: "#f00"});
            
© Copyright 2005-2011 SharpKit. All rights reserved.