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

@2gis/general

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@2gis/general - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

yarn.lock

2

dist/src/General.d.ts

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

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