ScreenPoint
require(["esri/geometry/ScreenPoint"], function(ScreenPoint) { /* code goes here */ });Class:
esri/geometry/ScreenPointInheritance: ScreenPoint Accessor
Since: ArcGIS API for JavaScript 4.0
ScreenPoint represents a point in terms of pixels relative to the top-left corner of the view.
Constructors
- new ScreenPoint(properties)
- Parameter:properties Objectoptional
See the properties for a list of all the properties that may be passed into the constructor.
Property Overview
Any properties can be set, retrieved or listened to. See the Working with Properties topic.
| Name | Type | Summary | Class | |
|---|---|---|---|---|
| String | The name of the class. more details | more details | Accessor | |
| Number | X-coordinate in pixels relative to the top-left corner of the view. more details | more details | ScreenPoint | |
| Number | Y-coordinate in pixels relative to the top-left corner of the view. more details | more details | ScreenPoint |
Property Details
- Since: ArcGIS API for JavaScript 4.7
The name of the class. The declared class name is formatted as
esri.folder.className.
X-coordinate in pixels relative to the top-left corner of the view.
- Default Value:0
Y-coordinate in pixels relative to the top-left corner of the view.
- Default Value:0
Method Overview
| Name | Return Type | Summary | Class | |
|---|---|---|---|---|
| ScreenPoint | Creates a deep clone of ScreenPoint object. more details | more details | ScreenPoint |
Method Details
- clone(){ScreenPoint}
Creates a deep clone of ScreenPoint object.
Returns:Type Description ScreenPoint A new instance of a ScreenPoint object equal to the object used to call .clone().
Loading...