@jjlmoya/utils-science 1.8.0 → 1.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jjlmoya/utils-science",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -8,6 +8,9 @@ interface Props {
8
8
  const { ui } = Astro.props;
9
9
  ---
10
10
 
11
+ <link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
12
+ <script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
13
+
11
14
  <div class="asteroid-app" id="asteroid-app">
12
15
  <div id="asteroid-game-map" class="asteroid-game-map" style="touch-action: none;"></div>
13
16
 
@@ -167,8 +170,6 @@ const { ui } = Astro.props;
167
170
  </div>
168
171
 
169
172
  <script>
170
- import "leaflet/dist/leaflet.css";
171
- import L from "leaflet";
172
173
  import { ImpactPhysics, type Composition } from "./logic/impactPhysics";
173
174
  import { VERDICT_CONFIGS } from "./constants";
174
175
  import { getCompositionColor } from "./utils";
@@ -0,0 +1,26 @@
1
+ declare namespace L {
2
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
3
+ interface Map {}
4
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
5
+ interface LayerGroup {}
6
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
7
+ interface Marker {}
8
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
9
+ interface DivIcon {}
10
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
11
+ interface LeafletEvent {}
12
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
13
+ interface LatLng {}
14
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
15
+ function map(element: string | HTMLElement, options?: any): Map;
16
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
17
+ function tileLayer(url: string, options?: any): any;
18
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
19
+ function marker(latlng: LatLng, options?: any): Marker;
20
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
21
+ function circle(latlng: LatLng, options?: any): any;
22
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
23
+ function layerGroup(layers?: any): LayerGroup;
24
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
25
+ function divIcon(options?: any): DivIcon;
26
+ }