@autobusal/utilities 1.0.1 → 1.1.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.
package/index.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { createDate, prepareDate, getFormattedShort, differenceYears, futureDate } from './date';
2
2
  import { Validate, Display } from './form';
3
- import { getPosition, autobusMarker } from './map';
4
3
  import { error, notify, success } from './notify';
5
4
  import { getAllowed, getLanguages, getPayments } from './options';
6
5
  import { getSex, getOptionsSex } from './passengers';
@@ -14,8 +13,6 @@ export {
14
13
  error,
15
14
  notify,
16
15
  success,
17
- getPosition,
18
- autobusMarker,
19
16
  createDate,
20
17
  prepareDate,
21
18
  getFormattedShort,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/utilities",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "main": "index.ts"
6
6
  }
package/map/index.ts DELETED
@@ -1,23 +0,0 @@
1
- import L, { LatLngExpression } from 'leaflet';
2
- import markerIcon from './marker-icon.png';
3
- import markerShadow from './marker-shadow.png';
4
-
5
- export const getPosition = (position: string[] | undefined): LatLngExpression => {
6
- if (position === undefined) {
7
- return [0, 0];
8
- }
9
-
10
- return [
11
- Number(position[0]),
12
- Number(position[1])
13
- ];
14
- };
15
-
16
- export const autobusMarker = new L.Icon({
17
- iconUrl: markerIcon,
18
- iconSize: [25, 41], // icon size
19
- iconAnchor: [12, 41], // point of the icon which will correspond to marker's location
20
- popupAnchor: [1, -34], // point from which the popup should open relative to the iconAnchor
21
- shadowUrl: markerShadow,
22
- shadowSize: [41, 41] // shadow size
23
- });
Binary file
Binary file