@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 CHANGED
@@ -18,8 +18,8 @@ export interface StrokeOptions {
18
18
  export interface FillOptions {
19
19
  fillStyle: string | CanvasGradient | CanvasPattern;
20
20
  }
21
- export declare type StrokeFillOptions = SetOptional<StrokeOptions, 'strokeStyle'> & SetOptional<FillOptions, 'fillStyle'>;
22
- export declare type StaticMapOverlay = StaticMapImage | StaticMapLine | StaticMapCircle | StaticMapText | StaticMapScale;
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 declare type StaticMapLineOptions = StrokeOptions;
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 declare type LengthUnits = 'metric' | 'imperial';
50
- export declare type LayoutPosition = 'topleft' | 'topright' | 'bottomleft' | 'bottomright';
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
@@ -528,6 +528,7 @@ StaticMap.defaultTextOptions = {
528
528
  textBaseline: 'middle',
529
529
  direction: 'inherit',
530
530
  font: '12px sans-serif',
531
+ fontKerning: 'auto',
531
532
  lineWidth: 1.0,
532
533
  lineCap: 'round',
533
534
  lineJoin: 'round',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinkatinka/static-map",
3
- "version": "1.5.1",
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": "^28.0.0",
41
- "@types/jest-image-snapshot": "^5.1.0",
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": "^28.0.0",
48
- "jest-image-snapshot": "^5.1.0",
49
- "ts-jest": "^28.0.0",
50
- "type-fest": "^2.12.2",
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": {