New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

terra-draw

Package Overview
Dependencies
Maintainers
1
Versions
81
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.15 to 0.0.1-alpha.16

dist/adapters/common/adapter-listener.d.ts

13

CHANGELOG.md

@@ -5,2 +5,15 @@ # Changelog

### [0.0.1-alpha.16](https://github.com/JamesLMilner/terra-draw/compare/v0.0.1-alpha.15...v0.0.1-alpha.16) (2023-02-19)
### Features
* add great circle line mode ([72136a0](https://github.com/JamesLMilner/terra-draw/commit/72136a044ed3a7c9192e92fbb383e64243ce8bd6))
### Chore
* add local scratch folder to allow for experimentation ([828e1dd](https://github.com/JamesLMilner/terra-draw/commit/828e1ddfa575a8a9703c63c3bf8d1f11535e3fef))
* fix scratch pad folder location for local development ([107db58](https://github.com/JamesLMilner/terra-draw/commit/107db581a94852925f7b647f77b67b67f0a7598d))
### [0.0.1-alpha.15](https://github.com/JamesLMilner/terra-draw/compare/v0.0.1-alpha.14...v0.0.1-alpha.15) (2023-02-05)

@@ -7,0 +20,0 @@

18

dist/adapters/google-maps.adapter.d.ts

@@ -16,20 +16,12 @@ /// <reference types="google.maps" />

private _map;
private _onMouseMoveListener;
private _onMouseMoveCallback;
private _onClickListener;
private _onRightClickListener;
private _onClickCallback;
private _onKeyUpListener;
private _onDragStartListener;
private _onDragListener;
private _onDragEndListener;
private _layers;
getMapContainer: () => HTMLElement;
unproject: (x: number, y: number) => {
lng: number;
lat: number;
};
setDoubleClickToZoom: TerraDrawModeRegisterConfig["setDoubleClickToZoom"];
unproject: TerraDrawModeRegisterConfig["unproject"];
project: TerraDrawModeRegisterConfig["project"];
setCursor: TerraDrawModeRegisterConfig["setCursor"];
private circlePath;
private currentModeCallbacks;
private listeners;
private dragState;
register(callbacks: TerraDrawCallbacks): void;

@@ -36,0 +28,0 @@ unregister(): void;

@@ -10,2 +10,3 @@ import { TerraDrawCallbacks, TerraDrawAdapter, TerraDrawModeRegisterConfig, TerraDrawAdapterStyling, TerraDrawChanges } from "../common";

});
private listeners;
private _heldKeys;

@@ -15,11 +16,7 @@ private _lib;

private _map;
private _onMouseMoveListener;
private _onClickListener;
private _onKeyUpListener;
private _onKeyDownListener;
private _onDragStartListener;
private _onDragListener;
private _onDragEndListener;
private _layer;
private _panes;
private dragState;
private currentModeCallbacks;
setDoubleClickToZoom: TerraDrawModeRegisterConfig["setDoubleClickToZoom"];
project: TerraDrawModeRegisterConfig["project"];

@@ -26,0 +23,0 @@ unproject: TerraDrawModeRegisterConfig["unproject"];

@@ -7,4 +7,6 @@ import { TerraDrawCallbacks, TerraDrawAdapter, TerraDrawModeRegisterConfig, TerraDrawAdapterStyling, TerraDrawChanges } from "../common";

map: mapboxgl.Map;
coordinatePrecision: number;
coordinatePrecision?: number;
});
private dragState;
setDoubleClickToZoom: TerraDrawModeRegisterConfig["setDoubleClickToZoom"];
unproject: TerraDrawModeRegisterConfig["unproject"];

@@ -14,12 +16,7 @@ project: TerraDrawModeRegisterConfig["project"];

getMapContainer: () => HTMLElement;
private _listeners;
private _currentModeCallbacks;
private _heldKeys;
private _coordinatePrecision;
private _map;
private _onMouseMoveListener;
private _onClickListener;
private _onDragStartListener;
private _onDragListener;
private _onDragEndListener;
private _onKeyDownListener;
private _onKeyUpListener;
private _rendered;

@@ -26,0 +23,0 @@ private _addGeoJSONSource;

import { StoreChangeHandler, GeoJSONStore, GeoJSONStoreFeatures } from "./store/store";
export declare type HexColor = `#${string}`;
export type HexColor = `#${string}`;
export interface TerraDrawAdapterStyling {

@@ -27,8 +27,8 @@ pointColor: HexColor;

}
declare type SetCursor = (cursor: "unset" | "grab" | "grabbing" | "crosshair" | "pointer") => void;
export declare type Project = (lng: number, lat: number) => {
type SetCursor = (cursor: "unset" | "grab" | "grabbing" | "crosshair" | "pointer") => void;
export type Project = (lng: number, lat: number) => {
x: number;
y: number;
};
export declare type Unproject = (x: number, y: number) => {
export type Unproject = (x: number, y: number) => {
lat: number;

@@ -40,2 +40,3 @@ lng: number;

store: GeoJSONStore;
setDoubleClickToZoom: (enabled: boolean) => void;
setCursor: SetCursor;

@@ -48,3 +49,3 @@ onChange: StoreChangeHandler;

}
export declare type TerraDrawModeState = "unregistered" | "registered" | "started" | "stopped";
export type TerraDrawModeState = "unregistered" | "registered" | "started" | "stopped";
export interface TerraDrawMode {

@@ -81,3 +82,3 @@ mode: string;

}
declare type TerraDrawStylingFunction = {
type TerraDrawStylingFunction = {
[mode: string]: (feature: GeoJSONStoreFeatures) => TerraDrawAdapterStyling;

@@ -89,2 +90,3 @@ };

setCursor: SetCursor;
setDoubleClickToZoom: (enabled: boolean) => void;
getMapContainer: () => HTMLElement;

@@ -91,0 +93,0 @@ register(callbacks: TerraDrawCallbacks): void;

@@ -6,3 +6,4 @@ import { Feature, Polygon, Position } from "geojson";

radiusKilometers: number;
coordinatePrecision: number;
steps?: number;
}): Feature<Polygon>;
import { Project, Unproject } from "../common";
import { GeoJSONStore } from "../store/store";
export declare type BehaviorConfig = {
export type BehaviorConfig = {
store: GeoJSONStore;

@@ -5,0 +5,0 @@ mode: string;

import { BehaviorConfig, TerraDrawModeBehavior } from "./base.behavior";
import { TerraDrawModeRegisterConfig, TerraDrawModeState } from "../common";
import { GeoJSONStore, GeoJSONStoreFeatures } from "../store/store";
declare type CustomStyling = Record<string, string | number>;
type CustomStyling = Record<string, string | number>;
export declare abstract class TerraDrawBaseDrawMode<T extends CustomStyling> {

@@ -17,2 +17,3 @@ protected _state: TerraDrawModeState;

protected store: GeoJSONStore;
protected setDoubleClickToZoom: TerraDrawModeRegisterConfig["setDoubleClickToZoom"];
protected unproject: TerraDrawModeRegisterConfig["unproject"];

@@ -19,0 +20,0 @@ protected project: TerraDrawModeRegisterConfig["project"];

import { TerraDrawMouseEvent, TerraDrawAdapterStyling, TerraDrawKeyboardEvent, HexColor } from "../../common";
import { GeoJSONStoreFeatures } from "../../store/store";
import { TerraDrawBaseDrawMode } from "../base.mode";
declare type TerraDrawCircleModeKeyEvents = {
cancel: KeyboardEvent["key"];
finish: KeyboardEvent["key"];
type TerraDrawCircleModeKeyEvents = {
cancel: KeyboardEvent["key"] | null;
finish: KeyboardEvent["key"] | null;
};
declare type FreehandPolygonStyling = {
type FreehandPolygonStyling = {
fillColor: HexColor;

@@ -22,17 +22,28 @@ outlineColor: HexColor;

styles?: Partial<FreehandPolygonStyling>;
keyEvents?: TerraDrawCircleModeKeyEvents;
keyEvents?: TerraDrawCircleModeKeyEvents | null;
});
private close;
/** @internal */
start(): void;
/** @internal */
stop(): void;
/** @internal */
onClick(event: TerraDrawMouseEvent): void;
/** @internal */
onMouseMove(event: TerraDrawMouseEvent): void;
/** @internal */
onKeyDown(): void;
/** @internal */
onKeyUp(event: TerraDrawKeyboardEvent): void;
/** @internal */
onDragStart(): void;
/** @internal */
onDrag(): void;
/** @internal */
onDragEnd(): void;
/** @internal */
cleanUp(): void;
/** @internal */
styleFeature(feature: GeoJSONStoreFeatures): TerraDrawAdapterStyling;
}
export {};
import { TerraDrawMouseEvent, TerraDrawAdapterStyling, TerraDrawKeyboardEvent, HexColor } from "../../common";
import { TerraDrawBaseDrawMode } from "../base.mode";
import { GeoJSONStoreFeatures } from "../../store/store";
declare type TerraDrawFreehandModeKeyEvents = {
cancel: KeyboardEvent["key"];
finish: KeyboardEvent["key"];
type TerraDrawFreehandModeKeyEvents = {
cancel: KeyboardEvent["key"] | null;
finish: KeyboardEvent["key"] | null;
};
declare type FreehandPolygonStyling = {
type FreehandPolygonStyling = {
fillColor: HexColor;

@@ -28,17 +28,28 @@ outlineColor: HexColor;

minDistance?: number;
keyEvents?: TerraDrawFreehandModeKeyEvents;
keyEvents?: TerraDrawFreehandModeKeyEvents | null;
});
private close;
/** @internal */
start(): void;
/** @internal */
stop(): void;
/** @internal */
onMouseMove(event: TerraDrawMouseEvent): void;
/** @internal */
onClick(event: TerraDrawMouseEvent): void;
/** @internal */
onKeyDown(): void;
/** @internal */
onKeyUp(event: TerraDrawKeyboardEvent): void;
/** @internal */
onDragStart(): void;
/** @internal */
onDrag(): void;
/** @internal */
onDragEnd(): void;
/** @internal */
cleanUp(): void;
/** @internal */
styleFeature(feature: GeoJSONStoreFeatures): TerraDrawAdapterStyling;
}
export {};

@@ -5,7 +5,7 @@ import { TerraDrawMouseEvent, TerraDrawAdapterStyling, TerraDrawKeyboardEvent, HexColor } from "../../common";

import { GeoJSONStoreFeatures } from "../../store/store";
declare type TerraDrawLineStringModeKeyEvents = {
cancel: KeyboardEvent["key"];
finish: KeyboardEvent["key"];
type TerraDrawLineStringModeKeyEvents = {
cancel: KeyboardEvent["key"] | null;
finish: KeyboardEvent["key"] | null;
};
declare type LineStringStyling = {
type LineStringStyling = {
lineStringWidth: number;

@@ -32,18 +32,30 @@ lineStringColor: HexColor;

styles?: Partial<LineStringStyling>;
keyEvents?: TerraDrawLineStringModeKeyEvents;
keyEvents?: TerraDrawLineStringModeKeyEvents | null;
});
private close;
/** @internal */
registerBehaviors(config: BehaviorConfig): void;
/** @internal */
start(): void;
/** @internal */
stop(): void;
/** @internal */
onMouseMove(event: TerraDrawMouseEvent): void;
/** @internal */
onClick(event: TerraDrawMouseEvent): void;
/** @internal */
onKeyDown(): void;
/** @internal */
onKeyUp(event: TerraDrawKeyboardEvent): void;
/** @internal */
onDragStart(): void;
/** @internal */
onDrag(): void;
/** @internal */
onDragEnd(): void;
/** @internal */
cleanUp(): void;
/** @internal */
styleFeature(feature: GeoJSONStoreFeatures): TerraDrawAdapterStyling;
}
export {};
import { TerraDrawMouseEvent, TerraDrawAdapterStyling, HexColor } from "../../common";
import { GeoJSONStoreFeatures } from "../../store/store";
import { TerraDrawBaseDrawMode } from "../base.mode";
declare type PointModeStyling = {
type PointModeStyling = {
pointWidth: number;
pointColor: HexColor;
pointOutlineColor: HexColor;
pointOutlineWidth: number;
};

@@ -14,14 +15,25 @@ export declare class TerraDrawPointMode extends TerraDrawBaseDrawMode<PointModeStyling> {

});
/** @internal */
start(): void;
/** @internal */
stop(): void;
/** @internal */
onClick(event: TerraDrawMouseEvent): void;
/** @internal */
onMouseMove(): void;
/** @internal */
onKeyDown(): void;
/** @internal */
onKeyUp(): void;
/** @internal */
cleanUp(): void;
/** @internal */
onDragStart(): void;
/** @internal */
onDrag(): void;
/** @internal */
onDragEnd(): void;
/** @internal */
styleFeature(feature: GeoJSONStoreFeatures): TerraDrawAdapterStyling;
}
export {};

@@ -5,7 +5,7 @@ import { TerraDrawMouseEvent, TerraDrawAdapterStyling, TerraDrawKeyboardEvent, HexColor } from "../../common";

import { GeoJSONStoreFeatures } from "../../store/store";
declare type TerraDrawPolygonModeKeyEvents = {
cancel: KeyboardEvent["key"];
finish: KeyboardEvent["key"];
type TerraDrawPolygonModeKeyEvents = {
cancel?: KeyboardEvent["key"] | null;
finish?: KeyboardEvent["key"] | null;
};
declare type PolygonStyling = {
type PolygonStyling = {
fillColor: HexColor;

@@ -36,18 +36,30 @@ outlineColor: HexColor;

styles?: Partial<PolygonStyling>;
keyEvents?: TerraDrawPolygonModeKeyEvents;
keyEvents?: TerraDrawPolygonModeKeyEvents | null;
});
private close;
/** @internal */
registerBehaviors(config: BehaviorConfig): void;
/** @internal */
start(): void;
/** @internal */
stop(): void;
/** @internal */
onMouseMove(event: TerraDrawMouseEvent): void;
/** @internal */
onClick(event: TerraDrawMouseEvent): void;
/** @internal */
onKeyUp(event: TerraDrawKeyboardEvent): void;
/** @internal */
onKeyDown(): void;
/** @internal */
onDragStart(): void;
/** @internal */
onDrag(): void;
/** @internal */
onDragEnd(): void;
/** @internal */
cleanUp(): void;
/** @internal */
styleFeature(feature: GeoJSONStoreFeatures): TerraDrawAdapterStyling;
}
export {};
import { TerraDrawAdapterStyling } from "../../common";
import { TerraDrawBaseDrawMode } from "../base.mode";
import { BehaviorConfig } from "../base.behavior";
declare type RenderModeStylingExt<T extends TerraDrawAdapterStyling> = {};
declare type RenderModeStyling = RenderModeStylingExt<TerraDrawAdapterStyling>;
type RenderModeStylingExt<T extends TerraDrawAdapterStyling> = {};
type RenderModeStyling = RenderModeStylingExt<TerraDrawAdapterStyling>;
export declare class TerraDrawRenderMode extends TerraDrawBaseDrawMode<RenderModeStyling> {

@@ -11,14 +11,25 @@ mode: string;

});
/** @internal */
registerBehaviors(behaviorConfig: BehaviorConfig): void;
/** @internal */
start(): void;
/** @internal */
stop(): void;
/** @internal */
onKeyUp(): void;
/** @internal */
onKeyDown(): void;
/** @internal */
onClick(): void;
/** @internal */
onDragStart(): void;
/** @internal */
onDrag(): void;
/** @internal */
onDragEnd(): void;
/** @internal */
onMouseMove(): void;
/** @internal */
styleFeature(): TerraDrawAdapterStyling;
}
export {};

@@ -5,9 +5,9 @@ import { TerraDrawMouseEvent, TerraDrawKeyboardEvent, HexColor, TerraDrawAdapterStyling } from "../../common";

import { GeoJSONStoreFeatures } from "../../store/store";
declare type TerraDrawSelectModeKeyEvents = {
deselect: KeyboardEvent["key"];
delete: KeyboardEvent["key"];
rotate: KeyboardEvent["key"];
scale: KeyboardEvent["key"];
type TerraDrawSelectModeKeyEvents = {
deselect: KeyboardEvent["key"] | null;
delete: KeyboardEvent["key"] | null;
rotate: KeyboardEvent["key"] | null;
scale: KeyboardEvent["key"] | null;
};
declare type ModeFlags = {
type ModeFlags = {
feature?: {

@@ -24,3 +24,3 @@ draggable?: boolean;

};
declare type SelectionStyling = {
type SelectionStyling = {
selectedColor: HexColor;

@@ -60,3 +60,3 @@ selectedPointOutlineColor: HexColor;

};
keyEvents?: TerraDrawSelectModeKeyEvents;
keyEvents?: TerraDrawSelectModeKeyEvents | null;
dragEventThrottle?: number;

@@ -69,14 +69,25 @@ });

private onLeftClick;
/** @internal */
start(): void;
/** @internal */
stop(): void;
/** @internal */
onClick(event: TerraDrawMouseEvent): void;
/** @internal */
onKeyDown(): void;
/** @internal */
onKeyUp(event: TerraDrawKeyboardEvent): void;
/** @internal */
cleanUp(): void;
/** @internal */
onDragStart(event: TerraDrawMouseEvent, setMapDraggability: (enabled: boolean) => void): void;
/** @internal */
onDrag(event: TerraDrawMouseEvent): void;
/** @internal */
onDragEnd(_: TerraDrawMouseEvent, setMapDraggability: (enabled: boolean) => void): void;
/** @internal */
onMouseMove(event: TerraDrawMouseEvent): void;
/** @internal */
styleFeature(feature: GeoJSONStoreFeatures): TerraDrawAdapterStyling;
}
export {};
import { TerraDrawAdapterStyling } from "../../common";
import { TerraDrawBaseDrawMode } from "../base.mode";
declare type StaticModeStylingExt<T extends TerraDrawAdapterStyling> = {};
declare type StaticModeStyling = StaticModeStylingExt<TerraDrawAdapterStyling>;
type StaticModeStylingExt<T extends TerraDrawAdapterStyling> = {};
type StaticModeStyling = StaticModeStylingExt<TerraDrawAdapterStyling>;
export declare class TerraDrawStaticMode extends TerraDrawBaseDrawMode<StaticModeStyling> {

@@ -6,0 +6,0 @@ mode: string;

@@ -1,2 +0,2 @@

export declare type CompareFunction<T> = (a: T, b: T) => number;
export type CompareFunction<T> = (a: T, b: T) => number;
export declare function quickselect<T>(arr: T[], k: number, left: number, right: number, compare: CompareFunction<T>): void;

@@ -1,2 +0,2 @@

export declare type Node = {
export type Node = {
children: Node[];

@@ -3,0 +3,0 @@ height: number;

import { Feature, Point, Polygon, LineString } from "geojson";
declare type JSON = string | number | boolean | null | JSONArray | JSONObject;
type JSON = string | number | boolean | null | JSONArray | JSONObject;
export interface JSONObject {
[member: string]: JSON;
}
declare type JSONArray = Array<JSON>;
declare type DefinedProperties = Record<string, JSON>;
export declare type GeoJSONStoreGeometries = Polygon | LineString | Point;
export declare type BBoxPolygon = Feature<Polygon, DefinedProperties>;
export declare type GeoJSONStoreFeatures = Feature<GeoJSONStoreGeometries, DefinedProperties>;
export declare type StoreChangeEvents = "delete" | "create" | "update";
export declare type StoreChangeHandler = (ids: string[], change: StoreChangeEvents) => void;
export declare type GeoJSONStoreConfig = {
type JSONArray = Array<JSON>;
type DefinedProperties = Record<string, JSON>;
export type GeoJSONStoreGeometries = Polygon | LineString | Point;
export type BBoxPolygon = Feature<Polygon, DefinedProperties>;
export type GeoJSONStoreFeatures = Feature<GeoJSONStoreGeometries, DefinedProperties>;
export type StoreChangeEvents = "delete" | "create" | "update";
export type StoreChangeHandler = (ids: string[], change: StoreChangeEvents) => void;
export type GeoJSONStoreConfig = {
data?: GeoJSONStoreFeatures[];

@@ -47,3 +47,5 @@ tracked?: boolean;

copyAll(): GeoJSONStoreFeatures[];
clear(): void;
size(): number;
}
export {};
import { TerraDrawGoogleMapsAdapter } from "./adapters/google-maps.adapter";
import { TerraDrawLeafletAdapter } from "./adapters/leaflet.adapter";
import { TerraDrawMapboxGLAdapter } from "./adapters/mapbox-gl.adapter";
import { TerraDrawMapLibreGLAdapter } from "./adapters/maplibre-gl.adapter";
import { TerraDrawOpenLayersAdapter } from "./adapters/openlayers.adapter";
import { TerraDrawMode, TerraDrawAdapter, TerraDrawAdapterStyling } from "./common";
import { TerraDrawCircleMode } from "./modes/circle/circle.mode";
import { TerraDrawFreehandMode } from "./modes/freehand/freehand.mode";
import { TerraDrawGreatCircleMode } from "./modes/greatcircle/great-circle.mode";
import { TerraDrawLineStringMode } from "./modes/linestring/linestring.mode";
import { TerraDrawPointMode } from "./modes/point/point.mode";
import { TerraDrawPolygonMode } from "./modes/polygon/polygon.mode";
import { TerraDrawRectangleMode } from "./modes/rectangle/rectangle.mode";
import { TerraDrawRenderMode } from "./modes/render/render.mode";
import { TerraDrawSelectMode } from "./modes/select/select.mode";
import { GeoJSONStoreFeatures } from "./store/store";
declare type ChangeListener = (ids: string[], type: string) => void;
declare type SelectListener = (id: string) => void;
declare type DeselectListener = () => void;
type ChangeListener = (ids: string[], type: string) => void;
type SelectListener = (id: string) => void;
type DeselectListener = () => void;
interface TerraDrawEventListeners {

@@ -21,3 +25,3 @@ change: ChangeListener;

}
declare type TerraDrawEvents = keyof TerraDrawEventListeners;
type TerraDrawEvents = keyof TerraDrawEventListeners;
declare class TerraDraw {

@@ -37,14 +41,91 @@ private _modes;

});
private checkEnabled;
private getModeStyles;
/**
* Allows the setting of a style for a given mode
*
* @param mode - The mode you wish to set a style for
* @param styles - The styles you wish to set for the mode - this is
* the same as the initialisation style schema
*
* @alpha
*/
setModeStyles(mode: string, styles: TerraDrawAdapterStyling): void;
/**
* Allows the user to get a snapshot (copy) of all given features
*
* @returns An array of all given Feature Geometries in the instances store
*
* @alpha
*/
getSnapshot(): GeoJSONStoreFeatures[];
/**
* Removes all data from the current store
*
* @alpha
*/
clear(): void;
/**
* A property used to determine whether the instance is active or not. You
* can use the start method to set this to true, and stop method to set this to false.
* This is a read only property.
*
* @return true or false depending on if the instance is stopped or started
* @readonly
* @alpha
*/
get enabled(): boolean;
/**
* enabled is a read only property and will throw and error if you try and set it.
*
* @alpha
*/
set enabled(_: boolean);
getCurrentMode(): string;
changeMode(mode: string): void;
/**
* A method for getting the current mode name
*
* @return the current mode name
*
* @alpha
*/
getMode(): string;
/**
* A method for setting the current mode by name. Under the hood this will stop
* the previous mode and start the new one.
* @param mode - The mode name you wish to start
*
* @alpha
*/
setMode(mode: string): void;
/**
* A method starting the current mode if it has not been started already
*
* @alpha
*/
start(): void;
/**
* A a method for stopping the current mode
*
* @alpha
*/
stop(): void;
/**
* Registers a Terra Draw event
*
* @param event - The name of the event you wish to listen for
* @param callback - The callback with you wish to be called when this event occurs
*
* @alpha
*/
on<T extends TerraDrawEvents>(event: T, callback: TerraDrawEventListeners[T]): void;
/**
* Unregisters a Terra Draw event
*
* @param event - The name of the event you wish to unregister
* @param callback - The callback you originally provided to the 'on' method
*
* @alpha
*/
off<T extends TerraDrawEvents>(event: TerraDrawEvents, callback: TerraDrawEventListeners[T]): void;
}
export { TerraDraw, TerraDrawSelectMode, TerraDrawPointMode, TerraDrawLineStringMode, TerraDrawPolygonMode, TerraDrawCircleMode, TerraDrawFreehandMode, TerraDrawRenderMode, TerraDrawGoogleMapsAdapter, TerraDrawMapboxGLAdapter, TerraDrawLeafletAdapter, };
export { TerraDraw, TerraDrawSelectMode, TerraDrawPointMode, TerraDrawLineStringMode, TerraDrawGreatCircleMode, TerraDrawPolygonMode, TerraDrawCircleMode, TerraDrawFreehandMode, TerraDrawRenderMode, TerraDrawRectangleMode, TerraDrawGoogleMapsAdapter, TerraDrawMapboxGLAdapter, TerraDrawLeafletAdapter, TerraDrawMapLibreGLAdapter, TerraDrawOpenLayersAdapter };
{
"name": "terra-draw",
"version": "0.0.1-alpha.15",
"version": "0.0.1-alpha.16",
"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