Constructor
The constructor initializes the PointTool by calling the base class (AnnotationUITool) constructor and sets up the necessary event handlers.
It also creates and configures the cursor used to represent the point creation on the map.
Parameters:
Name |
Type |
Description |
paperScope |
Object
|
The Paper.js paper scope object, which is the context for working with Paper.js functionalities. |
Properties:
Name |
Type |
Description |
tool |
paper.Tool
|
The Paper.js Tool object associated with the PointTool. |
cursor |
paper.Item
|
The Paper.js item representing the cursor for point creation. |
dragging |
boolean
|
A flag indicating whether the user is currently dragging a point. |
- Source: