mahal_map 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.
- package/.vscode/settings.json +3 -0
- package/README.md +41 -0
- package/dist/app/config/constants.d.ts +9 -0
- package/dist/app/config/constants.d.ts.map +1 -0
- package/dist/app/config/constants.js +9 -0
- package/dist/app/config/constants.js.map +1 -0
- package/dist/app/config/geojson-polyline.d.ts +3 -0
- package/dist/app/config/geojson-polyline.d.ts.map +1 -0
- package/dist/app/config/geojson-polyline.js +36 -0
- package/dist/app/config/geojson-polyline.js.map +1 -0
- package/dist/app/config/geometry-polyline.d.ts +3 -0
- package/dist/app/config/geometry-polyline.d.ts.map +1 -0
- package/dist/app/config/geometry-polyline.js +46 -0
- package/dist/app/config/geometry-polyline.js.map +1 -0
- package/dist/app/config/index.d.ts +4 -0
- package/dist/app/config/index.d.ts.map +1 -0
- package/dist/app/config/index.js +4 -0
- package/dist/app/config/index.js.map +1 -0
- package/dist/app/lib/axios/api/axios.d.ts +2 -0
- package/dist/app/lib/axios/api/axios.d.ts.map +1 -0
- package/dist/app/lib/axios/api/axios.js +13 -0
- package/dist/app/lib/axios/api/axios.js.map +1 -0
- package/dist/app/lib/axios/api/index.d.ts +2 -0
- package/dist/app/lib/axios/api/index.d.ts.map +1 -0
- package/dist/app/lib/axios/api/index.js +2 -0
- package/dist/app/lib/axios/api/index.js.map +1 -0
- package/dist/app/lib/axios/index.d.ts +2 -0
- package/dist/app/lib/axios/index.d.ts.map +1 -0
- package/dist/app/lib/axios/index.js +2 -0
- package/dist/app/lib/axios/index.js.map +1 -0
- package/dist/app/lib/checking-coordinates/index.d.ts +2 -0
- package/dist/app/lib/checking-coordinates/index.d.ts.map +1 -0
- package/dist/app/lib/checking-coordinates/index.js +2 -0
- package/dist/app/lib/checking-coordinates/index.js.map +1 -0
- package/dist/app/lib/checking-coordinates/utils.d.ts +5 -0
- package/dist/app/lib/checking-coordinates/utils.d.ts.map +1 -0
- package/dist/app/lib/checking-coordinates/utils.js +22 -0
- package/dist/app/lib/checking-coordinates/utils.js.map +1 -0
- package/dist/app/lib/index.d.ts +4 -0
- package/dist/app/lib/index.d.ts.map +1 -0
- package/dist/app/lib/index.js +4 -0
- package/dist/app/lib/index.js.map +1 -0
- package/dist/app/lib/saveKey/index.d.ts +2 -0
- package/dist/app/lib/saveKey/index.d.ts.map +1 -0
- package/dist/app/lib/saveKey/index.js +2 -0
- package/dist/app/lib/saveKey/index.js.map +1 -0
- package/dist/app/lib/saveKey/utils.d.ts +5 -0
- package/dist/app/lib/saveKey/utils.d.ts.map +1 -0
- package/dist/app/lib/saveKey/utils.js +15 -0
- package/dist/app/lib/saveKey/utils.js.map +1 -0
- package/dist/app/types/additional-param/index.d.ts +6 -0
- package/dist/app/types/additional-param/index.d.ts.map +1 -0
- package/dist/app/types/additional-param/index.js +2 -0
- package/dist/app/types/additional-param/index.js.map +1 -0
- package/dist/app/types/index.d.ts +5 -0
- package/dist/app/types/index.d.ts.map +1 -0
- package/dist/app/types/index.js +6 -0
- package/dist/app/types/index.js.map +1 -0
- package/dist/app/types/map/index.d.ts +10 -0
- package/dist/app/types/map/index.d.ts.map +1 -0
- package/dist/app/types/map/index.js +2 -0
- package/dist/app/types/map/index.js.map +1 -0
- package/dist/app/types/router-param/index.d.ts +33 -0
- package/dist/app/types/router-param/index.d.ts.map +1 -0
- package/dist/app/types/router-param/index.js +2 -0
- package/dist/app/types/router-param/index.js.map +1 -0
- package/dist/app/types/search-param/index.d.ts +13 -0
- package/dist/app/types/search-param/index.d.ts.map +1 -0
- package/dist/app/types/search-param/index.js +2 -0
- package/dist/app/types/search-param/index.js.map +1 -0
- package/dist/app/types/window/index.d.ts +1 -0
- package/dist/app/types/window/index.d.ts.map +1 -0
- package/dist/app/types/window/index.js +2 -0
- package/dist/app/types/window/index.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/map/utils.d.ts +5 -0
- package/dist/lib/map/utils.d.ts.map +1 -0
- package/dist/lib/map/utils.js +27 -0
- package/dist/lib/map/utils.js.map +1 -0
- package/dist/lib/routing/api.d.ts +3 -0
- package/dist/lib/routing/api.d.ts.map +1 -0
- package/dist/lib/routing/api.js +17 -0
- package/dist/lib/routing/api.js.map +1 -0
- package/dist/lib/routing/utils.d.ts +4 -0
- package/dist/lib/routing/utils.d.ts.map +1 -0
- package/dist/lib/routing/utils.js +28 -0
- package/dist/lib/routing/utils.js.map +1 -0
- package/dist/lib/search/api.d.ts +3 -0
- package/dist/lib/search/api.d.ts.map +1 -0
- package/dist/lib/search/api.js +13 -0
- package/dist/lib/search/api.js.map +1 -0
- package/dist/lib/search/utils.d.ts +4 -0
- package/dist/lib/search/utils.d.ts.map +1 -0
- package/dist/lib/search/utils.js +36 -0
- package/dist/lib/search/utils.js.map +1 -0
- package/dist/mahal_map.esm.js +2 -0
- package/dist/mahal_map.esm.js.map +1 -0
- package/dist/mahal_map.umd.js +2 -0
- package/dist/mahal_map.umd.js.map +1 -0
- package/index.html +465 -0
- package/package.json +60 -0
- package/rollup.config.js +36 -0
- package/src/app/config/constants.ts +15 -0
- package/src/app/config/geojson-polyline.ts +47 -0
- package/src/app/config/geometry-polyline.ts +58 -0
- package/src/app/config/index.ts +3 -0
- package/src/app/lib/axios/api/axios.ts +17 -0
- package/src/app/lib/axios/api/index.ts +1 -0
- package/src/app/lib/axios/index.ts +1 -0
- package/src/app/lib/checking-coordinates/index.ts +1 -0
- package/src/app/lib/checking-coordinates/utils.ts +20 -0
- package/src/app/lib/index.ts +3 -0
- package/src/app/lib/saveKey/index.ts +1 -0
- package/src/app/lib/saveKey/utils.ts +18 -0
- package/src/app/types/additional-param/index.ts +6 -0
- package/src/app/types/index.ts +5 -0
- package/src/app/types/map/index.ts +10 -0
- package/src/app/types/router-param/index.ts +33 -0
- package/src/app/types/search-param/index.ts +13 -0
- package/src/app/types/window/index.ts +7 -0
- package/src/index.d.ts +4 -0
- package/src/index.ts +26 -0
- package/src/lib/map/utils.ts +35 -0
- package/src/lib/routing/api.ts +17 -0
- package/src/lib/routing/utils.ts +37 -0
- package/src/lib/search/api.ts +13 -0
- package/src/lib/search/utils.ts +40 -0
- package/tsconfig.json +25 -0
package/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Mahal Map
|
|
2
|
+
|
|
3
|
+
Mahal Map - это JavaScript API-библиотека для работы с картами на основе MapLibre GL JS.
|
|
4
|
+
|
|
5
|
+
## Установка
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install maplibregl
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Использование
|
|
12
|
+
|
|
13
|
+
```javascript
|
|
14
|
+
import maplibregl from "maplibre-gl";
|
|
15
|
+
|
|
16
|
+
const map = MahalMap.map.createMap();
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Сборка проекта
|
|
20
|
+
|
|
21
|
+
Для сборки используйте Rollup:
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
npm run build
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Запуск в режиме разработки
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
npm run dev
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Зависимости
|
|
34
|
+
|
|
35
|
+
- `maplibre-gl` - библиотека для работы с картами
|
|
36
|
+
- `axios` - HTTP-клиент для работы с API
|
|
37
|
+
- `rollup` - инструмент для сборки JavaScript
|
|
38
|
+
|
|
39
|
+
## Лицензия
|
|
40
|
+
|
|
41
|
+
Проект распространяется под лицензией ISC.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const BASE_URL = "https://platform.mahal.tj/api/";
|
|
2
|
+
declare const LATLNGREGEX: RegExp;
|
|
3
|
+
declare const LNGLATREGEX: RegExp;
|
|
4
|
+
declare const REGEX: RegExp;
|
|
5
|
+
declare const DARK = "https://mtile.gram.tj/custom-styles/dark-style.json";
|
|
6
|
+
declare const LIGHT = "https://mtile.gram.tj/custom-styles/mapstyle.json";
|
|
7
|
+
declare const VECTOR = "https://mtile.gram.tj/custom-styles/style_maptiler_basic_hn.json";
|
|
8
|
+
export { BASE_URL, LATLNGREGEX, LNGLATREGEX, REGEX, DARK, LIGHT, VECTOR };
|
|
9
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/app/config/constants.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,QAAQ,mCAAmC,CAAC;AAClD,QAAA,MAAM,WAAW,QACiG,CAAC;AACnH,QAAA,MAAM,WAAW,QACiG,CAAC;AAEnH,QAAA,MAAM,KAAK,QACiF,CAAC;AAE7F,QAAA,MAAM,IAAI,wDAAwD,CAAC;AACnE,QAAA,MAAM,KAAK,sDAAsD,CAAC;AAClE,QAAA,MAAM,MAAM,qEACwD,CAAC;AAErE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const BASE_URL = "https://platform.mahal.tj/api/";
|
|
2
|
+
const LATLNGREGEX = /^([-+]?(?:[1-8]?\d(?:\.\d+)?|90(?:\.0+)?)),\s*([-+]?(?:180(?:\.0+)?|(?:(?:1[0-7]\d)|(?:[1-9]?\d))(?:\.\d+)?))$/;
|
|
3
|
+
const LNGLATREGEX = /^([-+]?(?:180(?:\.0+)?|(?:(?:1[0-7]\d)|(?:[1-9]?\d))(?:\.\d+)?)),\s*([-+]?(?:[1-8]?\d(?:\.\d+)?|90(?:\.0+)?))$/;
|
|
4
|
+
const REGEX = /^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?),\s*[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/;
|
|
5
|
+
const DARK = "https://mtile.gram.tj/custom-styles/dark-style.json";
|
|
6
|
+
const LIGHT = "https://mtile.gram.tj/custom-styles/mapstyle.json";
|
|
7
|
+
const VECTOR = "https://mtile.gram.tj/custom-styles/style_maptiler_basic_hn.json";
|
|
8
|
+
export { BASE_URL, LATLNGREGEX, LNGLATREGEX, REGEX, DARK, LIGHT, VECTOR };
|
|
9
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/app/config/constants.ts"],"names":[],"mappings":"AAAA,MAAM,QAAQ,GAAG,gCAAgC,CAAC;AAClD,MAAM,WAAW,GACf,gHAAgH,CAAC;AACnH,MAAM,WAAW,GACf,gHAAgH,CAAC;AAEnH,MAAM,KAAK,GACT,0FAA0F,CAAC;AAE7F,MAAM,IAAI,GAAG,qDAAqD,CAAC;AACnE,MAAM,KAAK,GAAG,mDAAmD,CAAC;AAClE,MAAM,MAAM,GACV,kEAAkE,CAAC;AAErE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geojson-polyline.d.ts","sourceRoot":"","sources":["../../../src/app/config/geojson-polyline.ts"],"names":[],"mappings":"AAAA,iBAAS,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,CAiCpD;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
function geojsonPolyline(encoded) {
|
|
2
|
+
let points = [];
|
|
3
|
+
let index = 0, len = encoded.length;
|
|
4
|
+
let lat = 0, lng = 0;
|
|
5
|
+
while (index < len) {
|
|
6
|
+
let b, shift = 0, result = 0;
|
|
7
|
+
do {
|
|
8
|
+
b = encoded.charCodeAt(index++) - 63;
|
|
9
|
+
result |= (b & 0x1f) << shift;
|
|
10
|
+
shift += 5;
|
|
11
|
+
} while (b >= 0x20);
|
|
12
|
+
let dlat = result & 1 ? ~(result >> 1) : result >> 1;
|
|
13
|
+
lat += dlat;
|
|
14
|
+
shift = 0;
|
|
15
|
+
result = 0;
|
|
16
|
+
do {
|
|
17
|
+
b = encoded.charCodeAt(index++) - 63;
|
|
18
|
+
result |= (b & 0x1f) << shift;
|
|
19
|
+
shift += 5;
|
|
20
|
+
} while (b >= 0x20);
|
|
21
|
+
let dlng = result & 1 ? ~(result >> 1) : result >> 1;
|
|
22
|
+
lng += dlng;
|
|
23
|
+
points.push([lng * 1e-5, lat * 1e-5]);
|
|
24
|
+
}
|
|
25
|
+
return points;
|
|
26
|
+
}
|
|
27
|
+
export { geojsonPolyline };
|
|
28
|
+
// Пример использования:
|
|
29
|
+
// geojsonPolyline("yzocFzynhVq}@n}@o}@nzD")
|
|
30
|
+
// Вернёт массив вида [
|
|
31
|
+
// [102.0, 0.5],
|
|
32
|
+
// [103.0, 1.0],
|
|
33
|
+
// [104.0, 0.5],
|
|
34
|
+
// [105.0, 0.0]
|
|
35
|
+
// ].
|
|
36
|
+
//# sourceMappingURL=geojson-polyline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geojson-polyline.js","sourceRoot":"","sources":["../../../src/app/config/geojson-polyline.ts"],"names":[],"mappings":"AAAA,SAAS,eAAe,CAAC,OAAe;IACtC,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,IAAI,KAAK,GAAG,CAAC,EACX,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC;IACvB,IAAI,GAAG,GAAG,CAAC,EACT,GAAG,GAAG,CAAC,CAAC;IAEV,OAAO,KAAK,GAAG,GAAG,EAAE,CAAC;QACnB,IAAI,CAAC,EACH,KAAK,GAAG,CAAC,EACT,MAAM,GAAG,CAAC,CAAC;QACb,GAAG,CAAC;YACF,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC,GAAG,EAAE,CAAC;YACrC,MAAM,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,KAAK,CAAC;YAC9B,KAAK,IAAI,CAAC,CAAC;QACb,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE;QACpB,IAAI,IAAI,GAAG,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC;QACrD,GAAG,IAAI,IAAI,CAAC;QAEZ,KAAK,GAAG,CAAC,CAAC;QACV,MAAM,GAAG,CAAC,CAAC;QACX,GAAG,CAAC;YACF,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC,GAAG,EAAE,CAAC;YACrC,MAAM,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,KAAK,CAAC;YAC9B,KAAK,IAAI,CAAC,CAAC;QACb,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE;QACpB,IAAI,IAAI,GAAG,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC;QACrD,GAAG,IAAI,IAAI,CAAC;QAEZ,MAAM,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC;IACxC,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,wBAAwB;AAExB,4CAA4C;AAE5C,uBAAuB;AACvB,oBAAoB;AACpB,oBAAoB;AACpB,oBAAoB;AACpB,mBAAmB;AACnB,OAAO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geometry-polyline.d.ts","sourceRoot":"","sources":["../../../src/app/config/geometry-polyline.ts"],"names":[],"mappings":"AAAA,iBAAS,gBAAgB,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,GAAG,MAAM,CAyBzD;AAoBD,eAAe,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
function geometryPolyline(coordinates) {
|
|
2
|
+
let encoded = '';
|
|
3
|
+
let prevLat = 0;
|
|
4
|
+
let prevLng = 0;
|
|
5
|
+
for (let i = 0; i < coordinates.length; i++) {
|
|
6
|
+
const [lng, lat] = coordinates[i];
|
|
7
|
+
// Умножаем координаты на 1e5 и округляем
|
|
8
|
+
const latE5 = Math.round(lat * 1e5);
|
|
9
|
+
const lngE5 = Math.round(lng * 1e5);
|
|
10
|
+
// Вычисляем разницу от предыдущих значений
|
|
11
|
+
const dLat = latE5 - prevLat;
|
|
12
|
+
const dLng = lngE5 - prevLng;
|
|
13
|
+
// Обновляем предыдущие значения
|
|
14
|
+
prevLat = latE5;
|
|
15
|
+
prevLng = lngE5;
|
|
16
|
+
// Добавляем к закодированной строке
|
|
17
|
+
encoded += encodeSignedNumber(dLat) + encodeSignedNumber(dLng);
|
|
18
|
+
}
|
|
19
|
+
return encoded;
|
|
20
|
+
}
|
|
21
|
+
function encodeSignedNumber(num) {
|
|
22
|
+
let sgnNum = num << 1;
|
|
23
|
+
if (num < 0) {
|
|
24
|
+
sgnNum = ~sgnNum;
|
|
25
|
+
}
|
|
26
|
+
return encodeNumber(sgnNum);
|
|
27
|
+
}
|
|
28
|
+
function encodeNumber(num) {
|
|
29
|
+
let encoded = '';
|
|
30
|
+
while (num >= 0x20) {
|
|
31
|
+
encoded += String.fromCharCode((0x20 | (num & 0x1f)) + 63);
|
|
32
|
+
num >>= 5;
|
|
33
|
+
}
|
|
34
|
+
encoded += String.fromCharCode(num + 63);
|
|
35
|
+
return encoded;
|
|
36
|
+
}
|
|
37
|
+
export default geometryPolyline;
|
|
38
|
+
// Пример использования:
|
|
39
|
+
// geometryPolyline([
|
|
40
|
+
// [102.0, 0.5],
|
|
41
|
+
// [103.0, 1.0],
|
|
42
|
+
// [104.0, 0.5],
|
|
43
|
+
// [105.0, 0.0]
|
|
44
|
+
// ])
|
|
45
|
+
// Вернёт строку вида "yzocFzynhVq}@n}@o}@nzD".
|
|
46
|
+
//# sourceMappingURL=geometry-polyline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geometry-polyline.js","sourceRoot":"","sources":["../../../src/app/config/geometry-polyline.ts"],"names":[],"mappings":"AAAA,SAAS,gBAAgB,CAAC,WAAuB;IAC7C,IAAI,OAAO,GAAG,EAAE,CAAC;IACjB,IAAI,OAAO,GAAG,CAAC,CAAC;IAChB,IAAI,OAAO,GAAG,CAAC,CAAC;IAEhB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAC1C,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;QAElC,yCAAyC;QACzC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;QACpC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;QAEpC,2CAA2C;QAC3C,MAAM,IAAI,GAAG,KAAK,GAAG,OAAO,CAAC;QAC7B,MAAM,IAAI,GAAG,KAAK,GAAG,OAAO,CAAC;QAE7B,gCAAgC;QAChC,OAAO,GAAG,KAAK,CAAC;QAChB,OAAO,GAAG,KAAK,CAAC;QAEhB,oCAAoC;QACpC,OAAO,IAAI,kBAAkB,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;IACnE,CAAC;IAED,OAAO,OAAO,CAAC;AACnB,CAAC;AAED,SAAS,kBAAkB,CAAC,GAAW;IACnC,IAAI,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC;IACtB,IAAI,GAAG,GAAG,CAAC,EAAE,CAAC;QACV,MAAM,GAAG,CAAC,MAAM,CAAC;IACrB,CAAC;IACD,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC;AAChC,CAAC;AAED,SAAS,YAAY,CAAC,GAAW;IAC7B,IAAI,OAAO,GAAG,EAAE,CAAC;IACjB,OAAO,GAAG,IAAI,IAAI,EAAE,CAAC;QACjB,OAAO,IAAI,MAAM,CAAC,YAAY,CAAC,CAAC,IAAI,GAAG,CAAC,GAAG,GAAG,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;QAC3D,GAAG,KAAK,CAAC,CAAC;IACd,CAAC;IACD,OAAO,IAAI,MAAM,CAAC,YAAY,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC;IACzC,OAAO,OAAO,CAAC;AACnB,CAAC;AAED,eAAe,gBAAgB,CAAA;AAG/B,wBAAwB;AAExB,qBAAqB;AACrB,oBAAoB;AACpB,oBAAoB;AACpB,oBAAoB;AACpB,mBAAmB;AACnB,OAAO;AAEP,+CAA+C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/app/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/app/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"axios.d.ts","sourceRoot":"","sources":["../../../../../src/app/lib/axios/api/axios.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,GAAG,+BAEd,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import axios from "axios";
|
|
2
|
+
import { BASE_URL } from "@app/config/index";
|
|
3
|
+
import { clearKey } from "@app/lib";
|
|
4
|
+
export const api = axios.create({
|
|
5
|
+
baseURL: BASE_URL,
|
|
6
|
+
});
|
|
7
|
+
api.interceptors.request.use((response) => response, (error) => {
|
|
8
|
+
if (error.request?.status === 401) {
|
|
9
|
+
clearKey();
|
|
10
|
+
}
|
|
11
|
+
return Promise.reject(error);
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=axios.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"axios.js","sourceRoot":"","sources":["../../../../../src/app/lib/axios/api/axios.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,MAAM,CAAC,MAAM,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC;IAC9B,OAAO,EAAE,QAAQ;CAClB,CAAC,CAAC;AAEH,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAC1B,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,EACtB,CAAC,KAAK,EAAE,EAAE;IACR,IAAI,KAAK,CAAC,OAAO,EAAE,MAAM,KAAK,GAAG,EAAE,CAAC;QAClC,QAAQ,EAAE,CAAC;IACb,CAAC;IACD,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC/B,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/app/lib/axios/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/app/lib/axios/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/app/lib/axios/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/app/lib/axios/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/app/lib/checking-coordinates/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/app/lib/checking-coordinates/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/app/lib/checking-coordinates/utils.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM;;;SAiBnD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LATLNGREGEX, LNGLATREGEX } from "@app/config/index";
|
|
2
|
+
export function checkCoordinates(coordinates) {
|
|
3
|
+
let lat, lng;
|
|
4
|
+
if (LATLNGREGEX.test(coordinates)) {
|
|
5
|
+
const match = coordinates.match(LATLNGREGEX);
|
|
6
|
+
if (match) {
|
|
7
|
+
[, lat, lng] = match; // Первый элемент — полное совпадение, пропускаем его
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
else if (LNGLATREGEX.test(coordinates)) {
|
|
11
|
+
const match = coordinates.match(LNGLATREGEX);
|
|
12
|
+
if (match) {
|
|
13
|
+
[, lng, lat] = match; // Меняем местами
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
console.log("Неверный формат координат");
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
return { lat, lng };
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/app/lib/checking-coordinates/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE7D,MAAM,UAAU,gBAAgB,CAAC,WAAmB;IAClD,IAAI,GAAG,EAAE,GAAG,CAAC;IACb,IAAI,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;QAClC,MAAM,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAC7C,IAAI,KAAK,EAAE,CAAC;YACV,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC,qDAAqD;QAC7E,CAAC;IACH,CAAC;SAAM,IAAI,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;QACzC,MAAM,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAC7C,IAAI,KAAK,EAAE,CAAC;YACV,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC,iBAAiB;QACzC,CAAC;IACH,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC;QACzC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AACtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/app/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/app/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/app/lib/saveKey/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/app/lib/saveKey/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/app/lib/saveKey/utils.ts"],"names":[],"mappings":"AAIA,iBAAS,OAAO,CAAC,KAAK,EAAE,MAAM,QAI7B;AAED,iBAAS,QAAQ,SAGhB;AAED,QAAA,MAAM,SAAS,cAAe,CAAC;AAE/B,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { api } from "@app/lib";
|
|
2
|
+
let apiKey = "";
|
|
3
|
+
function saveKey(param) {
|
|
4
|
+
if (param === "")
|
|
5
|
+
return;
|
|
6
|
+
apiKey = param;
|
|
7
|
+
api.defaults.headers.common["Authorization"] = `Bearer ${param}`;
|
|
8
|
+
}
|
|
9
|
+
function clearKey() {
|
|
10
|
+
apiKey = "";
|
|
11
|
+
api.defaults.headers.common["Authorization"] = "";
|
|
12
|
+
}
|
|
13
|
+
const getApiKey = () => apiKey;
|
|
14
|
+
export { saveKey, clearKey, getApiKey };
|
|
15
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/app/lib/saveKey/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAE/B,IAAI,MAAM,GAAW,EAAE,CAAC;AAExB,SAAS,OAAO,CAAC,KAAa;IAC5B,IAAI,KAAK,KAAK,EAAE;QAAE,OAAO;IACzB,MAAM,GAAG,KAAK,CAAC;IACf,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,GAAG,UAAU,KAAK,EAAE,CAAC;AACnE,CAAC;AAED,SAAS,QAAQ;IACf,MAAM,GAAG,EAAE,CAAC;IACZ,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,GAAG,EAAE,CAAC;AACpD,CAAC;AAED,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,MAAM,CAAC;AAE/B,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/app/types/additional-param/index.ts"],"names":[],"mappings":"AAAA,UAAU,oBAAoB;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb;AAED,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/app/types/additional-param/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/app/types/index.ts"],"names":[],"mappings":"AACA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/app/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/app/types/map/index.ts"],"names":[],"mappings":"AAAA,UAAU,gBAAgB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,YAAY,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/app/types/map/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
interface IRoute {
|
|
2
|
+
id: number;
|
|
3
|
+
type: string;
|
|
4
|
+
name: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
success: boolean;
|
|
7
|
+
coords: string;
|
|
8
|
+
route?: {
|
|
9
|
+
code: string;
|
|
10
|
+
routes: {
|
|
11
|
+
geometry: string | number[][];
|
|
12
|
+
legs: {
|
|
13
|
+
steps: [];
|
|
14
|
+
summary: string;
|
|
15
|
+
weight: number;
|
|
16
|
+
duration: number;
|
|
17
|
+
distance: number;
|
|
18
|
+
}[];
|
|
19
|
+
weight_name: string;
|
|
20
|
+
distance: number;
|
|
21
|
+
duration: number;
|
|
22
|
+
weight: number;
|
|
23
|
+
}[];
|
|
24
|
+
waypoints: {
|
|
25
|
+
hint: string;
|
|
26
|
+
distance: any;
|
|
27
|
+
name: string;
|
|
28
|
+
location: number[];
|
|
29
|
+
}[];
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export type { IRoute };
|
|
33
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/app/types/router-param/index.ts"],"names":[],"mappings":"AAAA,UAAU,MAAM;IACd,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE;YACN,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,CAAC;YAC9B,IAAI,EAAE;gBACJ,KAAK,EAAE,EAAE,CAAC;gBACV,OAAO,EAAE,MAAM,CAAC;gBAChB,MAAM,EAAE,MAAM,CAAC;gBACf,QAAQ,EAAE,MAAM,CAAC;gBACjB,QAAQ,EAAE,MAAM,CAAC;aAClB,EAAE,CAAC;YACJ,WAAW,EAAE,MAAM,CAAC;YACpB,QAAQ,EAAE,MAAM,CAAC;YACjB,QAAQ,EAAE,MAAM,CAAC;YACjB,MAAM,EAAE,MAAM,CAAC;SAChB,EAAE,CAAC;QACJ,SAAS,EAAE;YACT,IAAI,EAAE,MAAM,CAAC;YACb,QAAQ,EAAE,GAAG,CAAC;YACd,IAAI,EAAE,MAAM,CAAC;YACb,QAAQ,EAAE,MAAM,EAAE,CAAC;SACpB,EAAE,CAAC;KACL,CAAC;CACH;AAED,YAAY,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/app/types/router-param/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface ISearchParam {
|
|
2
|
+
id?: string;
|
|
3
|
+
text?: string;
|
|
4
|
+
lat?: string;
|
|
5
|
+
lng?: string;
|
|
6
|
+
radius?: string;
|
|
7
|
+
user_lat?: string;
|
|
8
|
+
user_lng?: string;
|
|
9
|
+
limit?: string;
|
|
10
|
+
page?: string;
|
|
11
|
+
}
|
|
12
|
+
export type { ISearchParam };
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/app/types/search-param/index.ts"],"names":[],"mappings":"AAAA,UAAU,YAAY;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,YAAY,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/app/types/search-param/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/app/types/window/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/app/types/window/index.ts"],"names":[],"mappings":"AAMA,eAAe,MAAM,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Map from "@lib/map/utils";
|
|
2
|
+
import * as keyUtils from "@app/lib/saveKey";
|
|
3
|
+
import * as searchUtils from "@lib/search/utils";
|
|
4
|
+
import * as routerUtils from "@lib/routing/utils";
|
|
5
|
+
export { Map, keyUtils, searchUtils, routerUtils };
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,WAAW,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as Map from "@lib/map/utils";
|
|
2
|
+
import * as keyUtils from "@app/lib/saveKey";
|
|
3
|
+
import * as searchUtils from "@lib/search/utils";
|
|
4
|
+
import * as routerUtils from "@lib/routing/utils";
|
|
5
|
+
export { Map, keyUtils, searchUtils, routerUtils };
|
|
6
|
+
function loadKeyFromScriptUrl() {
|
|
7
|
+
const scripts = document.getElementsByTagName("script");
|
|
8
|
+
for (const script of scripts) {
|
|
9
|
+
if (script.src.includes("mahal_map.umd.js")) {
|
|
10
|
+
const url = new URL(script.src);
|
|
11
|
+
const apikey = url.searchParams.get("apikey");
|
|
12
|
+
if (apikey) {
|
|
13
|
+
return apikey;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return "";
|
|
18
|
+
}
|
|
19
|
+
keyUtils.saveKey(loadKeyFromScriptUrl());
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,WAAW,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;AAEnD,SAAS,oBAAoB;IAC3B,MAAM,OAAO,GACX,QAAQ,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC;IAE1C,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,IAAI,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAAC;YAC5C,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,MAAM,MAAM,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YAE9C,IAAI,MAAM,EAAE,CAAC;gBACX,OAAO,MAAM,CAAC;YAChB,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,QAAQ,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/lib/map/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAMnD,iBAAS,SAAS,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAyBrD;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
|