accomadesc 0.4.35 → 0.4.36
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/LeafletMap.svelte +11 -2
- package/dist/PhotoGallery.svelte +3 -1
- package/package.json +15 -15
package/dist/LeafletMap.svelte
CHANGED
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
// Bundlers break leaflet's automatic marker-image path detection (it scans
|
|
6
6
|
// for a leaflet script/link tag), so markers 404 as relative
|
|
7
7
|
// `marker-icon.png` (P23 on the published site). Pin the bundled URLs.
|
|
8
|
+
// Build the icon with `L.icon` rather than `Icon.Default.mergeOptions`:
|
|
9
|
+
// the default icon prepends its auto-detected `imagePath` to `iconUrl`,
|
|
10
|
+
// which doubles these already-resolved URLs in dev:
|
|
11
|
+
// /node_modules/.../images//node_modules/.../images/marker-icon-2x.png
|
|
8
12
|
import markerIconUrl from 'leaflet/dist/images/marker-icon.png';
|
|
9
13
|
import markerIconRetinaUrl from 'leaflet/dist/images/marker-icon-2x.png';
|
|
10
14
|
import markerShadowUrl from 'leaflet/dist/images/marker-shadow.png';
|
|
@@ -29,10 +33,15 @@
|
|
|
29
33
|
};
|
|
30
34
|
const leafletModule = await import('leaflet');
|
|
31
35
|
const L = leafletModule.default;
|
|
32
|
-
L.
|
|
36
|
+
const markerIcon = L.icon({
|
|
33
37
|
iconUrl: markerIconUrl,
|
|
34
38
|
iconRetinaUrl: markerIconRetinaUrl,
|
|
35
39
|
shadowUrl: markerShadowUrl,
|
|
40
|
+
iconSize: [25, 41],
|
|
41
|
+
iconAnchor: [12, 41],
|
|
42
|
+
popupAnchor: [1, -34],
|
|
43
|
+
tooltipAnchor: [16, -28],
|
|
44
|
+
shadowSize: [41, 41],
|
|
36
45
|
});
|
|
37
46
|
|
|
38
47
|
if (mapElement) {
|
|
@@ -41,7 +50,7 @@
|
|
|
41
50
|
attribution:
|
|
42
51
|
'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
|
|
43
52
|
}).addTo(theMap);
|
|
44
|
-
L.marker([lat, long]).addTo(theMap);
|
|
53
|
+
L.marker([lat, long], { icon: markerIcon }).addTo(theMap);
|
|
45
54
|
}
|
|
46
55
|
});
|
|
47
56
|
|
package/dist/PhotoGallery.svelte
CHANGED
|
@@ -29,7 +29,9 @@
|
|
|
29
29
|
let numberOfCols = $derived(
|
|
30
30
|
Math.max(
|
|
31
31
|
1,
|
|
32
|
-
Math.floor(
|
|
32
|
+
Math.floor(
|
|
33
|
+
width / (gridPhotoWidth && Number.isInteger(gridPhotoWidth) ? gridPhotoWidth : 300),
|
|
34
|
+
),
|
|
33
35
|
),
|
|
34
36
|
);
|
|
35
37
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "accomadesc",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.36",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -32,28 +32,28 @@
|
|
|
32
32
|
"luxon": "^3.7.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@playwright/test": "^1.
|
|
36
|
-
"@sveltejs/adapter-auto": "^8.0.
|
|
37
|
-
"@sveltejs/adapter-static": "^4.0.
|
|
38
|
-
"@sveltejs/kit": "^3.
|
|
39
|
-
"@sveltejs/package": "^3.0.
|
|
35
|
+
"@playwright/test": "^1.65.1",
|
|
36
|
+
"@sveltejs/adapter-auto": "^8.0.1",
|
|
37
|
+
"@sveltejs/adapter-static": "^4.0.1",
|
|
38
|
+
"@sveltejs/kit": "^3.2.0",
|
|
39
|
+
"@sveltejs/package": "^3.0.2",
|
|
40
40
|
"@sveltejs/vite-plugin-svelte": "^7.3.1",
|
|
41
41
|
"@testing-library/dom": "^10.4.2",
|
|
42
42
|
"@testing-library/jest-dom": "^7.0.1",
|
|
43
43
|
"@testing-library/svelte": "^5.4.2",
|
|
44
44
|
"@types/luxon": "^3.7.6",
|
|
45
|
-
"@types/node": "^26.6.
|
|
46
|
-
"@vitest/ui": "^5.0
|
|
45
|
+
"@types/node": "^26.6.6",
|
|
46
|
+
"@vitest/ui": "^5.1.0",
|
|
47
47
|
"gdpr-cooco-banner": "^0.0.13",
|
|
48
|
-
"jsdom": "^
|
|
49
|
-
"prettier": "^3.
|
|
48
|
+
"jsdom": "^31.0.1",
|
|
49
|
+
"prettier": "^3.10.1",
|
|
50
50
|
"prettier-plugin-svelte": "^4.1.1",
|
|
51
51
|
"publint": "^0.3.25",
|
|
52
|
-
"svelte": "^5.57.
|
|
53
|
-
"svelte-check": "^4.7.
|
|
54
|
-
"typescript": "6
|
|
55
|
-
"vite": "^8.3.
|
|
56
|
-
"vitest": "^5.0
|
|
52
|
+
"svelte": "^5.57.3",
|
|
53
|
+
"svelte-check": "^4.7.8",
|
|
54
|
+
"typescript": "6",
|
|
55
|
+
"vite": "^8.3.8",
|
|
56
|
+
"vitest": "^5.1.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"@sveltejs/kit": "^3.0.1",
|