Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

terra-draw

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terra-draw - npm Package Compare versions

Comparing version 0.0.1-alpha.58 to 0.0.1-alpha.59

10

dist/modes/select/behaviors/drag-coordinate-resize.behavior.d.ts

@@ -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;

2

e2e/src/index.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc