forked from mapbox/togeojson
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE This rewrites much of the core of toGeoJSON to modernize and update it, as well as adding support for KML folder structures. This also adds **TypeScript types**. * Support folders, TypeScript * Add codeclimate config * Refactoring * Refactor out gpx internals * Refactor out extensions * Note Folder support in README, expand parsed objects * Bumps and dependency updates
- Loading branch information
Showing
52 changed files
with
11,050 additions
and
28,485 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: "2" | ||
checks: | ||
argument-count: | ||
config: | ||
threshold: 6 | ||
return-statements: | ||
config: | ||
threshold: 10 | ||
complex-logic: | ||
config: | ||
threshold: 10 | ||
file-lines: | ||
config: | ||
threshold: 200 | ||
method-complexity: | ||
config: | ||
threshold: 10 | ||
method-lines: | ||
config: | ||
threshold: 50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module.exports = { | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"rules": { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.DS_Store | ||
dist | ||
coverage | ||
node_modules/ | ||
npm-debug.log | ||
.nyc_output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
:root { | ||
--light-hl-0: #000000; | ||
--dark-hl-0: #D4D4D4; | ||
--light-hl-1: #A31515; | ||
--dark-hl-1: #CE9178; | ||
--light-hl-2: #001080; | ||
--dark-hl-2: #9CDCFE; | ||
--light-hl-3: #008000; | ||
--dark-hl-3: #6A9955; | ||
--light-hl-4: #0000FF; | ||
--dark-hl-4: #569CD6; | ||
--light-hl-5: #0070C1; | ||
--dark-hl-5: #4FC1FF; | ||
--light-hl-6: #795E26; | ||
--dark-hl-6: #DCDCAA; | ||
--light-hl-7: #AF00DB; | ||
--dark-hl-7: #C586C0; | ||
--light-hl-8: #800000; | ||
--dark-hl-8: #808080; | ||
--light-hl-9: #800000; | ||
--dark-hl-9: #569CD6; | ||
--light-hl-10: #000000FF; | ||
--dark-hl-10: #D4D4D4; | ||
--light-hl-11: #FF0000; | ||
--dark-hl-11: #9CDCFE; | ||
--light-hl-12: #0000FF; | ||
--dark-hl-12: #CE9178; | ||
--light-code-background: #F5F5F5; | ||
--dark-code-background: #1E1E1E; | ||
} | ||
|
||
@media (prefers-color-scheme: light) { :root { | ||
--hl-0: var(--light-hl-0); | ||
--hl-1: var(--light-hl-1); | ||
--hl-2: var(--light-hl-2); | ||
--hl-3: var(--light-hl-3); | ||
--hl-4: var(--light-hl-4); | ||
--hl-5: var(--light-hl-5); | ||
--hl-6: var(--light-hl-6); | ||
--hl-7: var(--light-hl-7); | ||
--hl-8: var(--light-hl-8); | ||
--hl-9: var(--light-hl-9); | ||
--hl-10: var(--light-hl-10); | ||
--hl-11: var(--light-hl-11); | ||
--hl-12: var(--light-hl-12); | ||
--code-background: var(--light-code-background); | ||
} } | ||
|
||
@media (prefers-color-scheme: dark) { :root { | ||
--hl-0: var(--dark-hl-0); | ||
--hl-1: var(--dark-hl-1); | ||
--hl-2: var(--dark-hl-2); | ||
--hl-3: var(--dark-hl-3); | ||
--hl-4: var(--dark-hl-4); | ||
--hl-5: var(--dark-hl-5); | ||
--hl-6: var(--dark-hl-6); | ||
--hl-7: var(--dark-hl-7); | ||
--hl-8: var(--dark-hl-8); | ||
--hl-9: var(--dark-hl-9); | ||
--hl-10: var(--dark-hl-10); | ||
--hl-11: var(--dark-hl-11); | ||
--hl-12: var(--dark-hl-12); | ||
--code-background: var(--dark-code-background); | ||
} } | ||
|
||
body.light { | ||
--hl-0: var(--light-hl-0); | ||
--hl-1: var(--light-hl-1); | ||
--hl-2: var(--light-hl-2); | ||
--hl-3: var(--light-hl-3); | ||
--hl-4: var(--light-hl-4); | ||
--hl-5: var(--light-hl-5); | ||
--hl-6: var(--light-hl-6); | ||
--hl-7: var(--light-hl-7); | ||
--hl-8: var(--light-hl-8); | ||
--hl-9: var(--light-hl-9); | ||
--hl-10: var(--light-hl-10); | ||
--hl-11: var(--light-hl-11); | ||
--hl-12: var(--light-hl-12); | ||
--code-background: var(--light-code-background); | ||
} | ||
|
||
body.dark { | ||
--hl-0: var(--dark-hl-0); | ||
--hl-1: var(--dark-hl-1); | ||
--hl-2: var(--dark-hl-2); | ||
--hl-3: var(--dark-hl-3); | ||
--hl-4: var(--dark-hl-4); | ||
--hl-5: var(--dark-hl-5); | ||
--hl-6: var(--dark-hl-6); | ||
--hl-7: var(--dark-hl-7); | ||
--hl-8: var(--dark-hl-8); | ||
--hl-9: var(--dark-hl-9); | ||
--hl-10: var(--dark-hl-10); | ||
--hl-11: var(--dark-hl-11); | ||
--hl-12: var(--dark-hl-12); | ||
--code-background: var(--dark-code-background); | ||
} | ||
|
||
.hl-0 { color: var(--hl-0); } | ||
.hl-1 { color: var(--hl-1); } | ||
.hl-2 { color: var(--hl-2); } | ||
.hl-3 { color: var(--hl-3); } | ||
.hl-4 { color: var(--hl-4); } | ||
.hl-5 { color: var(--hl-5); } | ||
.hl-6 { color: var(--hl-6); } | ||
.hl-7 { color: var(--hl-7); } | ||
.hl-8 { color: var(--hl-8); } | ||
.hl-9 { color: var(--hl-9); } | ||
.hl-10 { color: var(--hl-10); } | ||
.hl-11 { color: var(--hl-11); } | ||
.hl-12 { color: var(--hl-12); } | ||
pre, code { background: var(--code-background); } |
Oops, something went wrong.