terra-draw
Advanced tools
Comparing version 0.0.1-alpha.7 to 0.0.1-alpha.8
@@ -6,2 +6,3 @@ import { TerraDrawMouseEvent, TerraDrawAdapterStyling, TerraDrawKeyboardEvent, HexColor } from "../../common"; | ||
cancel: KeyboardEvent["key"]; | ||
finish: KeyboardEvent["key"]; | ||
}; | ||
@@ -24,2 +25,3 @@ declare type FreehandPolygonStyling = { | ||
}); | ||
private close; | ||
start(): void; | ||
@@ -26,0 +28,0 @@ stop(): void; |
@@ -6,2 +6,3 @@ import { TerraDrawMouseEvent, TerraDrawAdapterStyling, TerraDrawKeyboardEvent, HexColor } from "../../common"; | ||
cancel: KeyboardEvent["key"]; | ||
finish: KeyboardEvent["key"]; | ||
}; | ||
@@ -26,2 +27,3 @@ declare type FreehandPolygonStyling = { | ||
}); | ||
private close; | ||
start(): void; | ||
@@ -28,0 +30,0 @@ stop(): void; |
@@ -7,2 +7,3 @@ import { TerraDrawMouseEvent, TerraDrawAdapterStyling, TerraDrawKeyboardEvent, HexColor } from "../../common"; | ||
cancel: KeyboardEvent["key"]; | ||
finish: KeyboardEvent["key"]; | ||
}; | ||
@@ -12,2 +13,6 @@ declare type LineStringStyling = { | ||
lineStringColor: HexColor; | ||
closingPointColor: HexColor; | ||
closingPointWidth: number; | ||
closingPointOutlineColor: HexColor; | ||
closingPointOutlineWidth: number; | ||
}; | ||
@@ -18,2 +23,3 @@ export declare class TerraDrawLineStringMode extends TerraDrawBaseDrawMode<LineStringStyling> { | ||
private currentId; | ||
private closingPointId; | ||
private allowSelfIntersections; | ||
@@ -30,2 +36,3 @@ private keyEvents; | ||
}); | ||
private close; | ||
registerBehaviors(config: BehaviorConfig): void; | ||
@@ -32,0 +39,0 @@ start(): void; |
@@ -7,2 +7,3 @@ import { TerraDrawMouseEvent, TerraDrawAdapterStyling, TerraDrawKeyboardEvent, HexColor } from "../../common"; | ||
cancel: KeyboardEvent["key"]; | ||
finish: KeyboardEvent["key"]; | ||
}; | ||
@@ -37,2 +38,3 @@ declare type PolygonStyling = { | ||
}); | ||
private close; | ||
registerBehaviors(config: BehaviorConfig): void; | ||
@@ -39,0 +41,0 @@ start(): void; |
{ | ||
"name": "terra-draw", | ||
"version": "0.0.1-alpha.7", | ||
"version": "0.0.1-alpha.8", | ||
"description": "Frictionless map drawing across mapping provider", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -1,2 +0,2 @@ | ||
<img src="docs/logo.png" alt="Terra Draw Logo" width="400"/> | ||
<img src="https://terradraw.io/imgs/logo.png" alt="Terra Draw Logo" width="400"/> | ||
@@ -9,2 +9,12 @@ ![Terra Draw CI Badge](https://github.com/JamesLMilner/terra-draw/actions/workflows/ci.yml/badge.svg) | ||
### Install | ||
You can install the Terra Draw into your project like so: | ||
```shell | ||
npm install terra-draw | ||
``` | ||
Be aware Terra Draw is currently in alpha, the initial API is still being finalised | ||
### Development | ||
@@ -18,4 +28,8 @@ | ||
### Project Website | ||
You can checkout the offical Terra Draw website at [terradraw.io](https://www.terradraw.io). If you are interested in contributing to the website please see [this repository](https://www.github.com/JamesLMilner/terra-draw-website). | ||
### License | ||
MIT |
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
1587192
2298
34