@2gis/general
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -8,3 +8,3 @@ import { BBox, PriorityGroup, Sprite, Marker } from './types'; | ||
constructor(); | ||
generalize(bounds: BBox, priorityGroups: PriorityGroup[], sprites: Sprite[], markers: Marker[]): Promise<{}>; | ||
generalize(bounds: BBox, priorityGroups: PriorityGroup[], sprites: Sprite[], markers: Marker[]): Promise<void>; | ||
clear(): void; | ||
@@ -11,0 +11,0 @@ private pack(markers); |
export { General } from './General'; | ||
export { Marker, PriorityGroup, BBox } from './types'; | ||
export { Marker, Sprite, PriorityGroup, BBox } from './types'; |
{ | ||
"name": "@2gis/general", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Fast marker generalization algorithm", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
@@ -16,3 +16,3 @@ # General [![Build Status](https://travis-ci.org/2gis/general.svg?branch=master)](https://travis-ci.org/2gis/general) | ||
![generalbeforeandafter](https://2gis.github.io/general/img/generalbeforeandafter.png) | ||
![generalbeforeandafter](https://2gis.github.io/general/img/generalbeforeandafter.png)\ | ||
_Пример отображения маркеров на карте до и после генерализации_ | ||
@@ -58,3 +58,3 @@ | ||
![margin](https://2gis.github.io/general/img/margin.png) | ||
![margin](https://2gis.github.io/general/img/margin.png)\ | ||
_Слева параметр margin равен 0, справа – 40_ | ||
@@ -67,3 +67,3 @@ | ||
![degradation](https://2gis.github.io/general/img/degradation.png) | ||
![degradation](https://2gis.github.io/general/img/degradation.png)\ | ||
_Слева параметр degradation равен 0, справа - 40_ | ||
@@ -70,0 +70,0 @@ |
@@ -45,3 +45,3 @@ import { stride, pack, unpack } from './markerArray'; | ||
markers: Marker[], | ||
): Promise<{}> { | ||
): Promise<void> { | ||
const message: JobMessage = { | ||
@@ -48,0 +48,0 @@ bounds, |
@@ -7,4 +7,5 @@ export { | ||
Marker, | ||
Sprite, | ||
PriorityGroup, | ||
BBox, | ||
} from './types'; |
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
212976
23
674