Class JXG.Image
↳ JXG.Image
Image:
It inherits from @see GeometryElement.
Defined in: Image.js.
Constructor Attributes | Constructor Name and Description |
---|---|
JXG.Image(board, url, coords, size, attributes)
Construct and handle images
|
Method Attributes | Method Name and Description |
---|---|
hasPoint(x, y)
Checks whether (x,y) is over or near the image;
|
|
setPositionDirectly(method, x, y, x, y)
Sets x and y coordinate of the image.
|
|
<private> |
update()
Recalculate the coordinates of lower left corner and the width amd the height.
|
Send an update request to the renderer.
|
Class Detail
JXG.Image(board, url, coords, size, attributes)
Construct and handle images
- Parameters:
- board
- url
- coords
- size
- attributes
Method Detail
hasPoint(x, y)
Checks whether (x,y) is over or near the image;
- Parameters:
- {int} x
- Coordinate in x direction, screen coordinates.
- {int} y
- Coordinate in y direction, screen coordinates.
- Returns:
- Always returns false
setPositionDirectly(method, x, y, x, y)
Sets x and y coordinate of the image.
- Parameters:
- {number} method
- The type of coordinates used here. Possible values are JXG.COORDS_BY_USER and JXG.COORDS_BY_SCREEN.
- {number} x
- x coordinate in screen/user units
- {number} y
- y coordinate in screen/user units
- {number} x
- optional: previous x coordinate in screen/user units (ignored)
- {number} y
- optional: previous y coordinate in screen/user units (ignored)
<private>
update()
Recalculate the coordinates of lower left corner and the width amd the height.
updateRenderer()
Send an update request to the renderer.