Class: PointTool

OSDPaperjsAnnotation.PointTool(paperScope)

Represents the PointTool class that allows users to create and manipulate Point features on the Paper.js project. This tool provides functionality for creating points on the map, moving them, and updating their properties.

Constructor

new PointTool(paperScope)

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:

Extends

  • AnnotationUITool

Classes

PointToolbar