require(["esri/geometry/ScreenPoint"], function(ScreenPoint) { /* code goes here */ });
Class: esri/geometry/ScreenPoint
Inheritance: 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 Object
optional

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.
NameTypeSummaryClass
String

The name of the class.

more details
more detailsAccessor
Number

X-coordinate in pixels relative to the top-left corner of the view.

more details
more detailsScreenPoint
Number

Y-coordinate in pixels relative to the top-left corner of the view.

more details
more detailsScreenPoint

Property Details

declaredClassStringreadonly inherited
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

NameReturn TypeSummaryClass
ScreenPoint

Creates a deep clone of ScreenPoint object.

more details
more detailsScreenPoint

Method Details

clone(){ScreenPoint}

Creates a deep clone of ScreenPoint object.

Returns:
TypeDescription
ScreenPointA new instance of a ScreenPoint object equal to the object used to call .clone().

API Reference search results

NameTypeModule
Loading...