Skip to content

Commit 73656c8

Browse files
committed
add forgotten file
1 parent 2d8be7a commit 73656c8

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/schema.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Leaflet-HTML definitions
2+
interface TypedAttribute {
3+
name: string;
4+
format: "json" | "number" | "string";
5+
default: string;
6+
}
7+
8+
type Definition = [string, TypedAttribute[]];
9+
10+
export const ELEMENT_DEFINITIONS: Definition[] = [
11+
[
12+
"l-map",
13+
[
14+
{ name: "center", format: "json", default: "[0, 0]" },
15+
{ name: "zoom", format: "number", default: "0" },
16+
],
17+
],
18+
["l-tile-layer", [{ name: "url-template", format: "string", default: "" }]],
19+
["l-circle", [{ name: "lat-lng", format: "json", default: "[0, 0]" }]],
20+
];

0 commit comments

Comments
 (0)