terra-draw 0.0.1-alpha.60 → 0.0.1-alpha.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,6 +17,7 @@ interface Cursors {
17
17
  interface TerraDrawCircleModeOptions<T extends CustomStyling> extends BaseModeOptions<T> {
18
18
  keyEvents?: TerraDrawCircleModeKeyEvents | null;
19
19
  cursors?: Cursors;
20
+ minimumRadiusKilometers?: number;
20
21
  }
21
22
  export declare class TerraDrawCircleMode extends TerraDrawBaseDrawMode<CirclePolygonStyling> {
22
23
  mode: string;
@@ -25,6 +26,16 @@ export declare class TerraDrawCircleMode extends TerraDrawBaseDrawMode<CirclePol
25
26
  private currentCircleId;
26
27
  private keyEvents;
27
28
  private cursors;
29
+ private minimumRadiusKilometers;
30
+ /**
31
+ * Create a new circle mode instance
32
+ * @param options - Options to customize the behavior of the circle mode
33
+ * @param options.keyEvents - Key events to cancel or finish the mode
34
+ * @param options.cursors - Cursors to use for the mode
35
+ * @param options.minimumRadiusKilometers - Minimum radius for the circle
36
+ * @param options.styles - Custom styling for the circle
37
+ * @param options.pointerDistance - Distance in pixels to consider a pointer close to a vertex
38
+ */
28
39
  constructor(options?: TerraDrawCircleModeOptions<CirclePolygonStyling>);
29
40
  private close;
30
41
  /** @internal */
@@ -15,9 +15,6 @@ export declare class DragCoordinateResizeBehavior extends TerraDrawModeBehavior
15
15
  private draggedCoordinate;
16
16
  private getClosestCoordinate;
17
17
  getDraggableIndex(event: TerraDrawMouseEvent, selectedId: FeatureId): number;
18
- private lastDistance;
19
- private lastDistanceX;
20
- private lastDistanceY;
21
18
  drag(event: TerraDrawMouseEvent, resizeOption: ResizeOptions): boolean;
22
19
  private validateScale;
23
20
  private scalePlanar;