@jjlmoya/utils-science 1.7.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,5 +1,4 @@
|
|
|
1
1
|
---
|
|
2
|
-
import "leaflet/dist/leaflet.css";
|
|
3
2
|
import { Icon } from "astro-icon/components";
|
|
4
3
|
|
|
5
4
|
interface Props {
|
|
@@ -9,6 +8,9 @@ interface Props {
|
|
|
9
8
|
const { ui } = Astro.props;
|
|
10
9
|
---
|
|
11
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
|
+
|
|
12
14
|
<div class="asteroid-app" id="asteroid-app">
|
|
13
15
|
<div id="asteroid-game-map" class="asteroid-game-map" style="touch-action: none;"></div>
|
|
14
16
|
|
|
@@ -168,7 +170,6 @@ const { ui } = Astro.props;
|
|
|
168
170
|
</div>
|
|
169
171
|
|
|
170
172
|
<script>
|
|
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
|
+
}
|