@types/mapbox__point-geometry 0.1.3 → 1.0.0
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.
mapbox__point-geometry/README.md
CHANGED
|
@@ -1,59 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
> `npm install --save @types/mapbox__point-geometry`
|
|
3
|
-
|
|
4
|
-
# Summary
|
|
5
|
-
This package contains type definitions for @mapbox/point-geometry (https://github.com/mapbox/point-geometry).
|
|
6
|
-
|
|
7
|
-
# Details
|
|
8
|
-
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__point-geometry.
|
|
9
|
-
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__point-geometry/index.d.ts)
|
|
10
|
-
````ts
|
|
11
|
-
declare class Point {
|
|
12
|
-
x: number;
|
|
13
|
-
y: number;
|
|
14
|
-
constructor(x: number, y: number);
|
|
15
|
-
clone(): Point;
|
|
16
|
-
add(p: Point): Point;
|
|
17
|
-
_add(p: Point): Point;
|
|
18
|
-
sub(p: Point): Point;
|
|
19
|
-
_sub(p: Point): Point;
|
|
20
|
-
multiByPoint(p: Point): Point;
|
|
21
|
-
divByPoint(p: Point): Point;
|
|
22
|
-
mult(k: number): Point;
|
|
23
|
-
_mult(k: number): Point;
|
|
24
|
-
div(k: number): Point;
|
|
25
|
-
_div(k: number): Point;
|
|
26
|
-
rotate(k: number): Point;
|
|
27
|
-
_rotate(k: number): Point;
|
|
28
|
-
rotateAround(k: number, p: Point): Point;
|
|
29
|
-
_rotateAround(k: number, p: Point): Point;
|
|
30
|
-
matMult(m: number[]): Point;
|
|
31
|
-
_matMult(m: number[]): Point;
|
|
32
|
-
unit(): Point;
|
|
33
|
-
_unit(): Point;
|
|
34
|
-
perp(): Point;
|
|
35
|
-
_perp(): Point;
|
|
36
|
-
round(): Point;
|
|
37
|
-
_round(): Point;
|
|
38
|
-
mag(): number;
|
|
39
|
-
equals(other: Point): boolean;
|
|
40
|
-
dist(p: Point): number;
|
|
41
|
-
distSqr(p: Point): number;
|
|
42
|
-
angle(): number;
|
|
43
|
-
angleTo(b: Point): number;
|
|
44
|
-
angleWith(b: Point): number;
|
|
45
|
-
angleWithSep(x: number, y: number): number;
|
|
1
|
+
This is a stub types definition for @types/mapbox__point-geometry (https://github.com/mapbox/point-geometry).
|
|
46
2
|
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export = Point;
|
|
51
|
-
|
|
52
|
-
````
|
|
53
|
-
|
|
54
|
-
### Additional Details
|
|
55
|
-
* Last updated: Wed, 18 Oct 2023 05:47:08 GMT
|
|
56
|
-
* Dependencies: none
|
|
57
|
-
|
|
58
|
-
# Credits
|
|
59
|
-
These definitions were written by [Mathieu Maes](https://github.com/webberig), and [Harel Mazor](https://github.com/HarelM).
|
|
3
|
+
@mapbox/point-geometry provides its own type definitions, so you don't need @types/mapbox__point-geometry installed!
|
|
@@ -1,30 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/mapbox__point-geometry",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "TypeScript definitions for @mapbox/point-geometry",
|
|
5
|
-
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__point-geometry",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"contributors": [
|
|
8
|
-
{
|
|
9
|
-
"name": "Mathieu Maes",
|
|
10
|
-
"githubUsername": "webberig",
|
|
11
|
-
"url": "https://github.com/webberig"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"name": "Harel Mazor",
|
|
15
|
-
"githubUsername": "HarelM",
|
|
16
|
-
"url": "https://github.com/HarelM"
|
|
17
|
-
}
|
|
18
|
-
],
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Stub TypeScript definitions entry for @mapbox/point-geometry, which provides its own types definitions",
|
|
19
5
|
"main": "",
|
|
20
|
-
"types": "index.d.ts",
|
|
21
|
-
"repository": {
|
|
22
|
-
"type": "git",
|
|
23
|
-
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
|
24
|
-
"directory": "types/mapbox__point-geometry"
|
|
25
|
-
},
|
|
26
6
|
"scripts": {},
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"@mapbox/point-geometry": "*"
|
|
10
|
+
},
|
|
11
|
+
"deprecated": "This is a stub types definition. @mapbox/point-geometry provides its own type definitions, so you do not need this installed."
|
|
30
12
|
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
declare class Point {
|
|
2
|
-
x: number;
|
|
3
|
-
y: number;
|
|
4
|
-
constructor(x: number, y: number);
|
|
5
|
-
clone(): Point;
|
|
6
|
-
add(p: Point): Point;
|
|
7
|
-
_add(p: Point): Point;
|
|
8
|
-
sub(p: Point): Point;
|
|
9
|
-
_sub(p: Point): Point;
|
|
10
|
-
multiByPoint(p: Point): Point;
|
|
11
|
-
divByPoint(p: Point): Point;
|
|
12
|
-
mult(k: number): Point;
|
|
13
|
-
_mult(k: number): Point;
|
|
14
|
-
div(k: number): Point;
|
|
15
|
-
_div(k: number): Point;
|
|
16
|
-
rotate(k: number): Point;
|
|
17
|
-
_rotate(k: number): Point;
|
|
18
|
-
rotateAround(k: number, p: Point): Point;
|
|
19
|
-
_rotateAround(k: number, p: Point): Point;
|
|
20
|
-
matMult(m: number[]): Point;
|
|
21
|
-
_matMult(m: number[]): Point;
|
|
22
|
-
unit(): Point;
|
|
23
|
-
_unit(): Point;
|
|
24
|
-
perp(): Point;
|
|
25
|
-
_perp(): Point;
|
|
26
|
-
round(): Point;
|
|
27
|
-
_round(): Point;
|
|
28
|
-
mag(): number;
|
|
29
|
-
equals(other: Point): boolean;
|
|
30
|
-
dist(p: Point): number;
|
|
31
|
-
distSqr(p: Point): number;
|
|
32
|
-
angle(): number;
|
|
33
|
-
angleTo(b: Point): number;
|
|
34
|
-
angleWith(b: Point): number;
|
|
35
|
-
angleWithSep(x: number, y: number): number;
|
|
36
|
-
|
|
37
|
-
static convert<T extends unknown>(a: T): T extends number[] ? Point : T extends Point ? Point : T;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export = Point;
|