@types/mapboxgl-spiderifier 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,17 +15,18 @@ export function popupOffsetForSpiderLeg(spiderLeg: SpiderLeg, offset?: number):
15
15
 
16
16
  export interface SpiderLegOffsets {
17
17
  top: SpiderLegOffset;
18
- "top-left": SpiderlegOffset;
19
- "top-right": SpiderlegOffset;
20
- bottom: SpiderlegOffset;
21
- "bottom-left": SpiderlegOffset;
22
- "bottom-right": SpiderlegOffset;
23
- left: SpiderlegOffset;
24
- right: SpiderlegOffset;
18
+ "top-left": SpiderLegOffset;
19
+ "top-right": SpiderLegOffset;
20
+ bottom: SpiderLegOffset;
21
+ "bottom-left": SpiderLegOffset;
22
+ "bottom-right": SpiderLegOffset;
23
+ left: SpiderLegOffset;
24
+ right: SpiderLegOffset;
25
+ [_: string]: SpiderLegOffset;
25
26
  }
26
27
  export type SpiderLegOffset = [number, number];
27
28
 
28
- class MapboxglSpiderifier {
29
+ declare class MapboxglSpiderifier {
29
30
  constructor(map: Map, options: Options);
30
31
 
31
32
  each: (spiderLeg: SpiderLeg) => void;
@@ -43,6 +44,8 @@ export interface Options {
43
44
  /**
44
45
  * number of markers till which the spider will be circular and beyond this threshold,
45
46
  * it will spider in spiral.
47
+ *
48
+ * 0 -> always spiral; Infinity -> always circle
46
49
  * Default: 9
47
50
  */
48
51
  circleSpiralSwitchover?: number;
@@ -50,9 +53,6 @@ export interface Options {
50
53
  initializeLeg?: (spiderLeg: SpiderLeg) => void;
51
54
  onClick?: (event: MouseEvent, spiderLeg: SpiderLeg) => void;
52
55
  // --- <SPIDER TUNING Params>
53
- // circleSpiralSwitchover: show spiral instead of circle from this marker count upwards
54
- // 0 -> always spiral; Infinity -> always circle
55
- circleSpiralSwitchover?: number; // Default: 9,
56
56
  circleFootSeparation?: number; // Default: 25, // related to circumference of circle
57
57
  spiralFootSeparation?: number; // Default: 28, // related to size of spiral (experiment!)
58
58
  spiralLengthStart?: number; // Default: 15, // ditto
@@ -85,8 +85,8 @@ export interface SpiderLeg {
85
85
  ````
86
86
 
87
87
  ### Additional Details
88
- * Last updated: Thu, 25 Jan 2024 16:07:26 GMT
89
- * Dependencies: none
88
+ * Last updated: Mon, 29 Jan 2024 22:06:49 GMT
89
+ * Dependencies: [@types/mapbox-gl](https://npmjs.com/package/@types/mapbox-gl)
90
90
 
91
91
  # Credits
92
92
  These definitions were written by [manoj kumar](https://github.com/bewithjonam), and [Lance Gliser](https://github.com/lancegliser).
@@ -5,17 +5,18 @@ export function popupOffsetForSpiderLeg(spiderLeg: SpiderLeg, offset?: number):
5
5
 
6
6
  export interface SpiderLegOffsets {
7
7
  top: SpiderLegOffset;
8
- "top-left": SpiderlegOffset;
9
- "top-right": SpiderlegOffset;
10
- bottom: SpiderlegOffset;
11
- "bottom-left": SpiderlegOffset;
12
- "bottom-right": SpiderlegOffset;
13
- left: SpiderlegOffset;
14
- right: SpiderlegOffset;
8
+ "top-left": SpiderLegOffset;
9
+ "top-right": SpiderLegOffset;
10
+ bottom: SpiderLegOffset;
11
+ "bottom-left": SpiderLegOffset;
12
+ "bottom-right": SpiderLegOffset;
13
+ left: SpiderLegOffset;
14
+ right: SpiderLegOffset;
15
+ [_: string]: SpiderLegOffset;
15
16
  }
16
17
  export type SpiderLegOffset = [number, number];
17
18
 
18
- class MapboxglSpiderifier {
19
+ declare class MapboxglSpiderifier {
19
20
  constructor(map: Map, options: Options);
20
21
 
21
22
  each: (spiderLeg: SpiderLeg) => void;
@@ -33,6 +34,8 @@ export interface Options {
33
34
  /**
34
35
  * number of markers till which the spider will be circular and beyond this threshold,
35
36
  * it will spider in spiral.
37
+ *
38
+ * 0 -> always spiral; Infinity -> always circle
36
39
  * Default: 9
37
40
  */
38
41
  circleSpiralSwitchover?: number;
@@ -40,9 +43,6 @@ export interface Options {
40
43
  initializeLeg?: (spiderLeg: SpiderLeg) => void;
41
44
  onClick?: (event: MouseEvent, spiderLeg: SpiderLeg) => void;
42
45
  // --- <SPIDER TUNING Params>
43
- // circleSpiralSwitchover: show spiral instead of circle from this marker count upwards
44
- // 0 -> always spiral; Infinity -> always circle
45
- circleSpiralSwitchover?: number; // Default: 9,
46
46
  circleFootSeparation?: number; // Default: 25, // related to circumference of circle
47
47
  spiralFootSeparation?: number; // Default: 28, // related to size of spiral (experiment!)
48
48
  spiralLengthStart?: number; // Default: 15, // ditto
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/mapboxgl-spiderifier",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "TypeScript definitions for mapboxgl-spiderifier",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapboxgl-spiderifier",
6
6
  "license": "MIT",
@@ -24,7 +24,9 @@
24
24
  "directory": "types/mapboxgl-spiderifier"
25
25
  },
26
26
  "scripts": {},
27
- "dependencies": {},
28
- "typesPublisherContentHash": "ed43d1081e0fe88ec748a6139190c799652f1f75eb1feeadfaaf82621b10145d",
27
+ "dependencies": {
28
+ "@types/mapbox-gl": "*"
29
+ },
30
+ "typesPublisherContentHash": "d6d65129a0b162837a623f90e9588873bcb172f7cd85607f8f6751297d90ceb6",
29
31
  "typeScriptVersion": "4.6"
30
32
  }