@maplat/ui 0.11.2 → 0.11.4
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/maplat-ui.es.js +8607 -8547
- package/dist/maplat-ui.umd.js +269 -269
- package/dist/ui_utils.d.ts +3 -0
- package/package.json +2 -16
- package/src/ui_init.ts +857 -704
- package/src/ui_marker.ts +3 -10
- package/src/ui_utils.ts +36 -0
package/dist/ui_utils.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as bsn from "bootstrap.native";
|
|
2
|
+
export declare function prepareModal(modalElm: Element | HTMLElement, options?: any): bsn.Modal;
|
|
1
3
|
export declare function resolveRelativeLink(file: string, fallbackPath: string | null): string;
|
|
2
4
|
export declare function ellips(mapDivDocument: HTMLElement): void;
|
|
3
5
|
export declare function isMaplatSource(source: unknown): source is {
|
|
@@ -7,3 +9,4 @@ export declare function isMaplatSource(source: unknown): source is {
|
|
|
7
9
|
};
|
|
8
10
|
};
|
|
9
11
|
export declare function isBasemap(source: unknown): boolean;
|
|
12
|
+
export declare function encBytes(bytes: number): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maplat/ui",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.4",
|
|
4
4
|
"description": "Maplat is the cool Historical Map/Illustrated Map Viewer.\nIt can transform each map coordinates with nonlinear but homeomorphic projection and makes possible that the maps can collaborate with GPS/accurate maps, without distorting original maps.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/maplat-ui.umd.js",
|
|
@@ -37,14 +37,12 @@
|
|
|
37
37
|
"@c4h/chuci": "0.2.4",
|
|
38
38
|
"@c4h/weiwudi": "^0.2.0",
|
|
39
39
|
"@maplat/core": "0.12.2",
|
|
40
|
-
"@maplat/transform": "^0.4.0",
|
|
41
40
|
"@turf/turf": "^7.3.1",
|
|
42
41
|
"@types/page": "^1.11.9",
|
|
43
42
|
"bootstrap.native": "^5.1.6",
|
|
44
43
|
"page": "^1.11.6",
|
|
45
44
|
"qrcode": "^1.5.4",
|
|
46
45
|
"swiper": "^6.8.4",
|
|
47
|
-
"tiny-emitter": "^2.1.0",
|
|
48
46
|
"workbox-core": "^7.4.0",
|
|
49
47
|
"workbox-expiration": "^7.4.0",
|
|
50
48
|
"workbox-precaching": "^7.4.0",
|
|
@@ -72,25 +70,13 @@
|
|
|
72
70
|
"ol": "^10.7.0",
|
|
73
71
|
"prettier": "^3.7.4",
|
|
74
72
|
"typescript": "^5.9.3",
|
|
75
|
-
"typescript-eslint": "^8.
|
|
73
|
+
"typescript-eslint": "^8.51.0",
|
|
76
74
|
"vite": "^6.4.1",
|
|
77
75
|
"vite-plugin-dts": "^4.5.4",
|
|
78
76
|
"vitest": "^3.2.4",
|
|
79
77
|
"workbox-build": "^7.4.0",
|
|
80
78
|
"workbox-window": "^7.4.0"
|
|
81
79
|
},
|
|
82
|
-
"overrides": {
|
|
83
|
-
"@babel/traverse": "7.23.2",
|
|
84
|
-
"glob-parent": "5.1.2",
|
|
85
|
-
"axios": "1.6.0",
|
|
86
|
-
"minimist": "1.2.8",
|
|
87
|
-
"glob": "^11.0.0",
|
|
88
|
-
"rimraf": "^6.0.0",
|
|
89
|
-
"inflight": "npm:inflight-purged@^2.0.0",
|
|
90
|
-
"@types/minimatch": "^5.1.2",
|
|
91
|
-
"source-map": "^0.7.4",
|
|
92
|
-
"sourcemap-codec": "^1.4.8"
|
|
93
|
-
},
|
|
94
80
|
"scripts": {
|
|
95
81
|
"dev": "concurrently \"pnpm watch:sw\" \"vite --host\"",
|
|
96
82
|
"build:sw": "esbuild src/service-worker/index.ts --bundle --outfile=dist/service-worker.js --format=iife --define:self.__WB_MANIFEST=[] && node -e \"require('fs').copyFileSync('dist/service-worker.js', 'public/service-worker.js')\"",
|