@tinkatinka/static-map 1.5.1 → 1.5.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.
- package/dist/index.d.ts +5 -5
- package/dist/index.js +1 -0
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -18,8 +18,8 @@ export interface StrokeOptions {
|
|
|
18
18
|
export interface FillOptions {
|
|
19
19
|
fillStyle: string | CanvasGradient | CanvasPattern;
|
|
20
20
|
}
|
|
21
|
-
export
|
|
22
|
-
export
|
|
21
|
+
export type StrokeFillOptions = SetOptional<StrokeOptions, 'strokeStyle'> & SetOptional<FillOptions, 'fillStyle'>;
|
|
22
|
+
export type StaticMapOverlay = StaticMapImage | StaticMapLine | StaticMapCircle | StaticMapText | StaticMapScale;
|
|
23
23
|
export interface StaticMapImage {
|
|
24
24
|
src: string;
|
|
25
25
|
bounds: LatLngBounds;
|
|
@@ -28,7 +28,7 @@ export interface StaticMapLine {
|
|
|
28
28
|
points: LatLng[];
|
|
29
29
|
options: StaticMapLineOptions;
|
|
30
30
|
}
|
|
31
|
-
export
|
|
31
|
+
export type StaticMapLineOptions = StrokeOptions;
|
|
32
32
|
export interface StaticMapCircle {
|
|
33
33
|
center: LatLng;
|
|
34
34
|
options: StaticMapCircleOptions;
|
|
@@ -46,8 +46,8 @@ export interface StaticMapTextOptions extends CanvasTextDrawingStyles, StrokeFil
|
|
|
46
46
|
py: number;
|
|
47
47
|
maxWidth?: number;
|
|
48
48
|
}
|
|
49
|
-
export
|
|
50
|
-
export
|
|
49
|
+
export type LengthUnits = 'metric' | 'imperial';
|
|
50
|
+
export type LayoutPosition = 'topleft' | 'topright' | 'bottomleft' | 'bottomright';
|
|
51
51
|
export interface StaticMapScale {
|
|
52
52
|
options: StaticMapScaleOptions;
|
|
53
53
|
}
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinkatinka/static-map",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "Render static map images",
|
|
5
5
|
"author": "Florian Gmeiner <florian@tinkatinka.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
"lodash.merge": "^4.6.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@types/jest": "^
|
|
41
|
-
"@types/jest-image-snapshot": "^
|
|
40
|
+
"@types/jest": "^29.4.0",
|
|
41
|
+
"@types/jest-image-snapshot": "^6.1.0",
|
|
42
42
|
"@types/lodash.merge": "^4.6.6",
|
|
43
43
|
"@types/node": "^18.0.0",
|
|
44
44
|
"@typescript-eslint/eslint-plugin": "^5.1.0",
|
|
45
45
|
"eslint": "^8.0.1",
|
|
46
46
|
"eslint-plugin-import": "^2.23.4",
|
|
47
|
-
"jest": "^
|
|
48
|
-
"jest-image-snapshot": "^
|
|
49
|
-
"ts-jest": "^
|
|
50
|
-
"type-fest": "^
|
|
47
|
+
"jest": "^29.5.0",
|
|
48
|
+
"jest-image-snapshot": "^6.1.0",
|
|
49
|
+
"ts-jest": "^29.0.5",
|
|
50
|
+
"type-fest": "^3.6.1",
|
|
51
51
|
"typescript": "^4.3.4"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|