terra-draw 1.6.0 → 1.6.2

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.
@@ -11,6 +11,9 @@ export declare class RotateFeatureBehavior extends TerraDrawModeBehavior {
11
11
  private readonly coordinatePoints;
12
12
  constructor(config: BehaviorConfig, selectionPoints: SelectionPointBehavior, midPoints: MidPointBehavior, coordinatePoints: CoordinatePointBehavior);
13
13
  private lastBearing;
14
+ private selectedGeometry;
15
+ private selectedGeometryCentroid;
16
+ private selectedGeometryWebMercatorCentroid;
14
17
  reset(): void;
15
18
  rotate(event: TerraDrawMouseEvent, selectedId: FeatureId, validateFeature?: Validation): false | undefined;
16
19
  }
@@ -1,16 +1,11 @@
1
1
  import { TerraDrawMouseEvent, Validation } from "../../../common";
2
2
  import { BehaviorConfig, TerraDrawModeBehavior } from "../../base.behavior";
3
- import { SelectionPointBehavior } from "./selection-point.behavior";
4
- import { MidPointBehavior } from "./midpoint.behavior";
5
3
  import { FeatureId } from "../../../store/store";
6
- import { CoordinatePointBehavior } from "./coordinate-point.behavior";
4
+ import { DragCoordinateResizeBehavior } from "./drag-coordinate-resize.behavior";
7
5
  export declare class ScaleFeatureBehavior extends TerraDrawModeBehavior {
8
6
  readonly config: BehaviorConfig;
9
- private readonly selectionPoints;
10
- private readonly midPoints;
11
- private readonly coordinatePoints;
12
- constructor(config: BehaviorConfig, selectionPoints: SelectionPointBehavior, midPoints: MidPointBehavior, coordinatePoints: CoordinatePointBehavior);
13
- private lastDistance;
7
+ private readonly dragCoordinateResizeBehavior;
8
+ constructor(config: BehaviorConfig, dragCoordinateResizeBehavior: DragCoordinateResizeBehavior);
9
+ scale(event: TerraDrawMouseEvent, featureId: FeatureId, validation?: Validation): void;
14
10
  reset(): void;
15
- scale(event: TerraDrawMouseEvent, selectedId: FeatureId, validateFeature?: Validation): false | undefined;
16
11
  }