terra-draw
Advanced tools
Comparing version 0.0.1-alpha.58 to 0.0.1-alpha.59
@@ -7,3 +7,3 @@ import { TerraDrawMouseEvent } from "../../../common"; | ||
import { FeatureId } from "../../../store/store"; | ||
export type ResizeOptions = "center-fixed" | "opposite-corner-fixed"; | ||
export type ResizeOptions = "center-fixed" | "opposite-fixed" | "opposite" | "center" | "center-planar" | "opposite-planar"; | ||
export declare class DragCoordinateResizeBehavior extends TerraDrawModeBehavior { | ||
@@ -14,3 +14,4 @@ readonly config: BehaviorConfig; | ||
private readonly midPoints; | ||
constructor(config: BehaviorConfig, pixelDistance: PixelDistanceBehavior, selectionPoints: SelectionPointBehavior, midPoints: MidPointBehavior); | ||
private readonly minDistanceFromSelectionPoint; | ||
constructor(config: BehaviorConfig, pixelDistance: PixelDistanceBehavior, selectionPoints: SelectionPointBehavior, midPoints: MidPointBehavior, minDistanceFromSelectionPoint: number); | ||
private draggedCoordinate; | ||
@@ -20,4 +21,9 @@ private getClosestCoordinate; | ||
private lastDistance; | ||
private lastDistanceX; | ||
private lastDistanceY; | ||
drag(event: TerraDrawMouseEvent, resizeOption: ResizeOptions): boolean; | ||
private validateScale; | ||
private scalePlanar; | ||
private getCenterOrigin; | ||
private getBBox; | ||
private getOppositeOrigin; | ||
@@ -24,0 +30,0 @@ isDragging(): boolean; |
@@ -84,3 +84,3 @@ import L from "leaflet"; | ||
draggable: true, | ||
resizable: "opposite-corner-fixed", | ||
resizable: "opposite-fixed", | ||
}, | ||
@@ -87,0 +87,0 @@ }, |
{ | ||
"name": "terra-draw", | ||
"version": "0.0.1-alpha.58", | ||
"version": "0.0.1-alpha.59", | ||
"description": "Frictionless map drawing across mapping provider", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4097106
9231