diff --git a/README.md b/README.md index de2afd0..097e745 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # 1 简介 -使用 `vite2` 创建 React17 & Vue3 项目。 +使用 `Vite2` 创建 `React17`、`Vue3`、`Svelte` 项目。 -每个前端框架提供下列类 gis 库的 `Hello World` 代码。 +每个前端框架提供下列 gis 或类 gis 库的 `Hello World` 代码。 - openlayers@6.5 - cesium.js@1.81 @@ -50,7 +50,7 @@ window['CESIUM_BASE_URL'] = `path/to/cesium/Source/` # 2 Future -- 使用 svelte 试写一次 +- 使用原生 js+css+html 试写一次 diff --git a/react-ts-cesium181/package.json b/react-ts-cesium181/package.json index a1f1c9a..aa95535 100644 --- a/react-ts-cesium181/package.json +++ b/react-ts-cesium181/package.json @@ -7,12 +7,12 @@ "serve": "vite preview" }, "dependencies": { - "@types/cesium": "^1.67.13", "cesium": "^1.81.0", "react": "^17.0.0", "react-dom": "^17.0.0" }, "devDependencies": { + "@types/cesium": "^1.67.13", "@types/react": "^17.0.0", "@types/react-dom": "^17.0.0", "@vitejs/plugin-react-refresh": "^1.3.1", diff --git a/react-ts-leaflet/package.json b/react-ts-leaflet/package.json index af318dd..39adfbb 100644 --- a/react-ts-leaflet/package.json +++ b/react-ts-leaflet/package.json @@ -7,12 +7,12 @@ "serve": "vite preview" }, "dependencies": { - "@types/leaflet": "^1.7.0", "leaflet": "^1.7.1", "react": "^17.0.0", "react-dom": "^17.0.0" }, "devDependencies": { + "@types/leaflet": "^1.7.0", "@types/react": "^17.0.0", "@types/react-dom": "^17.0.0", "@vitejs/plugin-react-refresh": "^1.3.1", diff --git a/react-ts-mapboxgl/package.json b/react-ts-mapboxgl/package.json index 70b8751..f82e139 100644 --- a/react-ts-mapboxgl/package.json +++ b/react-ts-mapboxgl/package.json @@ -7,12 +7,12 @@ "serve": "vite preview" }, "dependencies": { - "@types/mapbox-gl": "1.13.0", "mapbox-gl": "1.13.1", "react": "^17.0.0", "react-dom": "^17.0.0" }, "devDependencies": { + "@types/mapbox-gl": "1.13", "@types/react": "^17.0.0", "@types/react-dom": "^17.0.0", "@vitejs/plugin-react-refresh": "^1.3.1", diff --git a/react-ts-mapboxgl/yarn.lock b/react-ts-mapboxgl/yarn.lock index fe0c3e5..ef7495d 100644 --- a/react-ts-mapboxgl/yarn.lock +++ b/react-ts-mapboxgl/yarn.lock @@ -264,13 +264,13 @@ "@types/geojson@*": version "7946.0.7" - resolved "https://registry.nlark.com/@types/geojson/download/@types/geojson-7946.0.7.tgz?cache=0&sync_timestamp=1621241246852&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fgeojson%2Fdownload%2F%40types%2Fgeojson-7946.0.7.tgz#c8fa532b60a0042219cdf173ca21a975ef0666ad" + resolved "https://registry.nlark.com/@types/geojson/download/@types/geojson-7946.0.7.tgz#c8fa532b60a0042219cdf173ca21a975ef0666ad" integrity sha1-yPpTK2CgBCIZzfFzyiGpde8GZq0= -"@types/mapbox-gl@1.13.0": - version "1.13.0" - resolved "https://registry.nlark.com/@types/mapbox-gl/download/@types/mapbox-gl-1.13.0.tgz?cache=0&sync_timestamp=1621241937883&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fmapbox-gl%2Fdownload%2F%40types%2Fmapbox-gl-1.13.0.tgz#914836d0ea5d1a433252c8debeef75d410c3d062" - integrity sha1-kUg20OpdGkMyUsjevu911BDD0GI= +"@types/mapbox-gl@1.13": + version "1.13.1" + resolved "https://registry.nlark.com/@types/mapbox-gl/download/@types/mapbox-gl-1.13.1.tgz?cache=0&sync_timestamp=1621241797834&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fmapbox-gl%2Fdownload%2F%40types%2Fmapbox-gl-1.13.1.tgz#bd8108f912f32c895117e2970b6d4fbbecbe42a1" + integrity sha1-vYEI+RLzLIlRF+KXC21Pu+y+QqE= dependencies: "@types/geojson" "*" diff --git a/react-ts-ol6/package.json b/react-ts-ol6/package.json index b6475e5..902b1b8 100644 --- a/react-ts-ol6/package.json +++ b/react-ts-ol6/package.json @@ -7,12 +7,12 @@ "serve": "vite preview" }, "dependencies": { - "@types/ol": "^6.5.0", "ol": "^6.5.0", "react": "^17.0.0", "react-dom": "^17.0.0" }, "devDependencies": { + "@types/ol": "^6.5.0", "@types/react": "^17.0.0", "@types/react-dom": "^17.0.0", "@vitejs/plugin-react-refresh": "^1.3.1", diff --git a/svelte-js-@arcgiscore/.gitignore b/svelte-js-@arcgiscore/.gitignore new file mode 100644 index 0000000..126fe84 --- /dev/null +++ b/svelte-js-@arcgiscore/.gitignore @@ -0,0 +1,4 @@ +/node_modules/ +/dist/ +/.vscode/ +.DS_Store diff --git a/svelte-js-@arcgiscore/index.html b/svelte-js-@arcgiscore/index.html new file mode 100644 index 0000000..3236489 --- /dev/null +++ b/svelte-js-@arcgiscore/index.html @@ -0,0 +1,12 @@ + + + + + + ArcGIS jsAPI4 with Svelte Js + + +
+ + + diff --git a/svelte-js-@arcgiscore/jsconfig.json b/svelte-js-@arcgiscore/jsconfig.json new file mode 100644 index 0000000..4258594 --- /dev/null +++ b/svelte-js-@arcgiscore/jsconfig.json @@ -0,0 +1,34 @@ +{ + "compilerOptions": { + "moduleResolution": "node", + "target": "esnext", + "module": "esnext", + /** + * svelte-preprocess cannot figure out whether you have + * a value or a type, so tell TypeScript to enforce using + * `import type` instead of `import` for Types. + */ + "importsNotUsedAsValues": "error", + "isolatedModules": true, + "resolveJsonModule": true, + /** + * To have warnings / errors of the Svelte compiler at the + * correct position, enable source maps by default. + */ + "sourceMap": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "baseUrl": ".", + /** + * Typecheck JS in `.svelte` and `.js` files by default. + * Disable this if you'd like to use dynamic types. + */ + "checkJs": true + }, + /** + * Use global.d.ts instead of compilerOptions.types + * to avoid limiting type declarations. + */ + "include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.svelte"] +} diff --git a/svelte-js-@arcgiscore/package.json b/svelte-js-@arcgiscore/package.json new file mode 100644 index 0000000..53d402f --- /dev/null +++ b/svelte-js-@arcgiscore/package.json @@ -0,0 +1,18 @@ +{ + "name": "svelte-js-arcgiscore4", + "version": "0.0.0", + "scripts": { + "dev": "vite", + "build": "vite build", + "serve": "vite preview" + }, + "devDependencies": { + "@sveltejs/vite-plugin-svelte": "^1.0.0-next.7", + "rollup-plugin-copy": "^3.4.0", + "svelte": "^3.37.0", + "vite": "^2.3.4" + }, + "dependencies": { + "@arcgis/core": "^4.19.3" + } +} diff --git a/svelte-js-@arcgiscore/src/App.svelte b/svelte-js-@arcgiscore/src/App.svelte new file mode 100644 index 0000000..6dd545c --- /dev/null +++ b/svelte-js-@arcgiscore/src/App.svelte @@ -0,0 +1,32 @@ + + +
+
+
+ + diff --git a/svelte-js-@arcgiscore/src/main.css b/svelte-js-@arcgiscore/src/main.css new file mode 100644 index 0000000..f37567b --- /dev/null +++ b/svelte-js-@arcgiscore/src/main.css @@ -0,0 +1,9 @@ +html, body { + margin: 0; + padding: 0; +} + +#app { + height: 100vh; + width: 100vw; +} \ No newline at end of file diff --git a/svelte-js-@arcgiscore/src/main.js b/svelte-js-@arcgiscore/src/main.js new file mode 100644 index 0000000..3bfce9c --- /dev/null +++ b/svelte-js-@arcgiscore/src/main.js @@ -0,0 +1,8 @@ +import App from './App.svelte' +import "./main.css" + +const app = new App({ + target: document.getElementById('app') +}) + +export default app diff --git a/svelte-js-@arcgiscore/src/vite-env.d.ts b/svelte-js-@arcgiscore/src/vite-env.d.ts new file mode 100644 index 0000000..4078e74 --- /dev/null +++ b/svelte-js-@arcgiscore/src/vite-env.d.ts @@ -0,0 +1,2 @@ +/// +/// diff --git a/svelte-js-@arcgiscore/vite.config.js b/svelte-js-@arcgiscore/vite.config.js new file mode 100644 index 0000000..3aabab0 --- /dev/null +++ b/svelte-js-@arcgiscore/vite.config.js @@ -0,0 +1,16 @@ +import { defineConfig } from 'vite' +import svelte from '@sveltejs/vite-plugin-svelte' +import copy from 'rollup-plugin-copy' + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [ + svelte(), + copy({ + targets: [ + { src: "node_modules/@arcgis/core/assets", dest: "public" } + ], + hook: 'writeBundle' + }) + ] +}) diff --git a/svelte-js-@arcgiscore/yarn.lock b/svelte-js-@arcgiscore/yarn.lock new file mode 100644 index 0000000..94550ff --- /dev/null +++ b/svelte-js-@arcgiscore/yarn.lock @@ -0,0 +1,571 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@arcgis/core@^4.19.3": + version "4.19.3" + resolved "https://registry.nlark.com/@arcgis/core/download/@arcgis/core-4.19.3.tgz#841fbcedc7f55d0f87735a270589dcb086589eb7" + integrity sha1-hB+87cf1XQ+Hc1onBYncsIZYnrc= + dependencies: + "@esri/arcgis-html-sanitizer" "~2.5.0" + "@esri/calcite-colors" "~5.0.0" + "@popperjs/core" "~2.6.0" + focus-trap "~6.3.0" + moment "~2.29.1" + sortablejs "~1.13.0" + +"@esri/arcgis-html-sanitizer@~2.5.0": + version "2.5.0" + resolved "https://registry.npm.taobao.org/@esri/arcgis-html-sanitizer/download/@esri/arcgis-html-sanitizer-2.5.0.tgz#45fb2a22ca98adf6890b294ba064211b1cb76c81" + integrity sha1-RfsqIsqYrfaJCylLoGQhGxy3bIE= + dependencies: + lodash.isplainobject "^4.0.6" + xss "^1.0.8" + +"@esri/calcite-colors@~5.0.0": + version "5.0.0" + resolved "https://registry.npm.taobao.org/@esri/calcite-colors/download/@esri/calcite-colors-5.0.0.tgz#41e96c65bad19441b93d2fae26b1e10edc02c35d" + integrity sha1-QelsZbrRlEG5PS+uJrHhDtwCw10= + +"@nodelib/fs.scandir@2.1.4": + version "2.1.4" + resolved "https://registry.npm.taobao.org/@nodelib/fs.scandir/download/@nodelib/fs.scandir-2.1.4.tgz?cache=0&sync_timestamp=1609074618762&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40nodelib%2Ffs.scandir%2Fdownload%2F%40nodelib%2Ffs.scandir-2.1.4.tgz#d4b3549a5db5de2683e0c1071ab4f140904bbf69" + integrity sha1-1LNUml213iaD4MEHGrTxQJBLv2k= + dependencies: + "@nodelib/fs.stat" "2.0.4" + run-parallel "^1.1.9" + +"@nodelib/fs.stat@2.0.4", "@nodelib/fs.stat@^2.0.2": + version "2.0.4" + resolved "https://registry.nlark.com/@nodelib/fs.stat/download/@nodelib/fs.stat-2.0.4.tgz#a3f2dd61bab43b8db8fa108a121cfffe4c676655" + integrity sha1-o/LdYbq0O424+hCKEhz//kxnZlU= + +"@nodelib/fs.walk@^1.2.3": + version "1.2.6" + resolved "https://registry.npm.taobao.org/@nodelib/fs.walk/download/@nodelib/fs.walk-1.2.6.tgz?cache=0&sync_timestamp=1609077165961&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40nodelib%2Ffs.walk%2Fdownload%2F%40nodelib%2Ffs.walk-1.2.6.tgz#cce9396b30aa5afe9e3756608f5831adcb53d063" + integrity sha1-zOk5azCqWv6eN1Zgj1gxrctT0GM= + dependencies: + "@nodelib/fs.scandir" "2.1.4" + fastq "^1.6.0" + +"@popperjs/core@~2.6.0": + version "2.6.0" + resolved "https://registry.npm.taobao.org/@popperjs/core/download/@popperjs/core-2.6.0.tgz?cache=0&sync_timestamp=1617290098226&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40popperjs%2Fcore%2Fdownload%2F%40popperjs%2Fcore-2.6.0.tgz#f022195afdfc942e088ee2101285a1d31c7d727f" + integrity sha1-8CIZWv38lC4IjuIQEoWh0xx9cn8= + +"@rollup/pluginutils@^4.1.0": + version "4.1.0" + resolved "https://registry.npm.taobao.org/@rollup/pluginutils/download/@rollup/pluginutils-4.1.0.tgz?cache=0&sync_timestamp=1603767889260&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40rollup%2Fpluginutils%2Fdownload%2F%40rollup%2Fpluginutils-4.1.0.tgz#0dcc61c780e39257554feb7f77207dceca13c838" + integrity sha1-Dcxhx4DjkldVT+t/dyB9zsoTyDg= + dependencies: + estree-walker "^2.0.1" + picomatch "^2.2.2" + +"@sveltejs/vite-plugin-svelte@^1.0.0-next.7": + version "1.0.0-next.10" + resolved "https://registry.nlark.com/@sveltejs/vite-plugin-svelte/download/@sveltejs/vite-plugin-svelte-1.0.0-next.10.tgz#15526067ea2edd334420b1e14602e29b370be25e" + integrity sha1-FVJgZ+ou3TNEILHhRgLimzcL4l4= + dependencies: + "@rollup/pluginutils" "^4.1.0" + chalk "^4.1.1" + debug "^4.3.2" + hash-sum "^2.0.0" + require-relative "^0.8.7" + slash "^4.0.0" + source-map "^0.7.3" + svelte-hmr "^0.14.2" + +"@types/fs-extra@^8.0.1": + version "8.1.1" + resolved "https://registry.nlark.com/@types/fs-extra/download/@types/fs-extra-8.1.1.tgz#1e49f22d09aa46e19b51c0b013cb63d0d923a068" + integrity sha1-HknyLQmqRuGbUcCwE8tj0NkjoGg= + dependencies: + "@types/node" "*" + +"@types/glob@^7.1.1": + version "7.1.3" + resolved "https://registry.nlark.com/@types/glob/download/@types/glob-7.1.3.tgz?cache=0&sync_timestamp=1621241272381&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fglob%2Fdownload%2F%40types%2Fglob-7.1.3.tgz#e6ba80f36b7daad2c685acd9266382e68985c183" + integrity sha1-5rqA82t9qtLGhazZJmOC5omFwYM= + dependencies: + "@types/minimatch" "*" + "@types/node" "*" + +"@types/minimatch@*": + version "3.0.4" + resolved "https://registry.nlark.com/@types/minimatch/download/@types/minimatch-3.0.4.tgz#f0ec25dbf2f0e4b18647313ac031134ca5b24b21" + integrity sha1-8Owl2/Lw5LGGRzE6wDETTKWySyE= + +"@types/node@*": + version "15.6.1" + resolved "https://registry.nlark.com/@types/node/download/@types/node-15.6.1.tgz?cache=0&sync_timestamp=1621901244878&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fnode%2Fdownload%2F%40types%2Fnode-15.6.1.tgz#32d43390d5c62c5b6ec486a9bc9c59544de39a08" + integrity sha1-MtQzkNXGLFtuxIapvJxZVE3jmgg= + +ansi-styles@^4.1.0: + version "4.3.0" + resolved "https://registry.nlark.com/ansi-styles/download/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" + integrity sha1-7dgDYornHATIWuegkG7a00tkiTc= + dependencies: + color-convert "^2.0.1" + +array-union@^2.1.0: + version "2.1.0" + resolved "https://registry.npm.taobao.org/array-union/download/array-union-2.1.0.tgz?cache=0&sync_timestamp=1614624407140&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Farray-union%2Fdownload%2Farray-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" + integrity sha1-t5hCCtvrHego2ErNii4j0+/oXo0= + +balanced-match@^1.0.0: + version "1.0.2" + resolved "https://registry.npm.taobao.org/balanced-match/download/balanced-match-1.0.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbalanced-match%2Fdownload%2Fbalanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" + integrity sha1-6D46fj8wCzTLnYf2FfoMvzV2kO4= + +brace-expansion@^1.1.7: + version "1.1.11" + resolved "https://registry.nlark.com/brace-expansion/download/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" + integrity sha1-PH/L9SnYcibz0vUrlm/1Jx60Qd0= + dependencies: + balanced-match "^1.0.0" + concat-map "0.0.1" + +braces@^3.0.1: + version "3.0.2" + resolved "https://registry.npm.taobao.org/braces/download/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" + integrity sha1-NFThpGLujVmeI23zNs2epPiv4Qc= + dependencies: + fill-range "^7.0.1" + +chalk@^4.1.1: + version "4.1.1" + resolved "https://registry.nlark.com/chalk/download/chalk-4.1.1.tgz?cache=0&sync_timestamp=1618995367379&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fchalk%2Fdownload%2Fchalk-4.1.1.tgz#c80b3fab28bf6371e6863325eee67e618b77e6ad" + integrity sha1-yAs/qyi/Y3HmhjMl7uZ+YYt35q0= + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.npm.taobao.org/color-convert/download/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" + integrity sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM= + dependencies: + color-name "~1.1.4" + +color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.nlark.com/color-name/download/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" + integrity sha1-wqCah6y95pVD3m9j+jmVyCbFNqI= + +colorette@^1.1.0, colorette@^1.2.2: + version "1.2.2" + resolved "https://registry.nlark.com/colorette/download/colorette-1.2.2.tgz#cbcc79d5e99caea2dbf10eb3a26fd8b3e6acfa94" + integrity sha1-y8x51emcrqLb8Q6zom/Ys+as+pQ= + +commander@^2.20.3: + version "2.20.3" + resolved "https://registry.nlark.com/commander/download/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" + integrity sha1-/UhehMA+tIgcIHIrpIA16FMa6zM= + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.nlark.com/concat-map/download/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= + +cssfilter@0.0.10: + version "0.0.10" + resolved "https://registry.npm.taobao.org/cssfilter/download/cssfilter-0.0.10.tgz#c6d2672632a2e5c83e013e6864a42ce8defd20ae" + integrity sha1-xtJnJjKi5cg+AT5oZKQs6N79IK4= + +debug@^4.3.2: + version "4.3.2" + resolved "https://registry.nlark.com/debug/download/debug-4.3.2.tgz?cache=0&sync_timestamp=1618847042350&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fdebug%2Fdownload%2Fdebug-4.3.2.tgz#f0a49c18ac8779e31d4a0c6029dfb76873c7428b" + integrity sha1-8KScGKyHeeMdSgxgKd+3aHPHQos= + dependencies: + ms "2.1.2" + +dir-glob@^3.0.1: + version "3.0.1" + resolved "https://registry.npm.taobao.org/dir-glob/download/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" + integrity sha1-Vtv3PZkqSpO6FYT0U0Bj/S5BcX8= + dependencies: + path-type "^4.0.0" + +esbuild@^0.11.23: + version "0.11.23" + resolved "https://registry.nlark.com/esbuild/download/esbuild-0.11.23.tgz?cache=0&sync_timestamp=1622080632605&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fesbuild%2Fdownload%2Fesbuild-0.11.23.tgz#c42534f632e165120671d64db67883634333b4b8" + integrity sha1-xCU09jLhZRIGcdZNtniDY0MztLg= + +estree-walker@^2.0.1: + version "2.0.2" + resolved "https://registry.npm.taobao.org/estree-walker/download/estree-walker-2.0.2.tgz?cache=0&sync_timestamp=1611956983677&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Festree-walker%2Fdownload%2Festree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac" + integrity sha1-UvAQF4wqTBF6d1fP6UKtt9LaTKw= + +fast-glob@^3.0.3: + version "3.2.5" + resolved "https://registry.npm.taobao.org/fast-glob/download/fast-glob-3.2.5.tgz?cache=0&sync_timestamp=1610876605854&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffast-glob%2Fdownload%2Ffast-glob-3.2.5.tgz#7939af2a656de79a4f1901903ee8adcaa7cb9661" + integrity sha1-eTmvKmVt55pPGQGQPuityqfLlmE= + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.0" + merge2 "^1.3.0" + micromatch "^4.0.2" + picomatch "^2.2.1" + +fastq@^1.6.0: + version "1.11.0" + resolved "https://registry.npm.taobao.org/fastq/download/fastq-1.11.0.tgz#bb9fb955a07130a918eb63c1f5161cc32a5d0858" + integrity sha1-u5+5VaBxMKkY62PB9RYcwypdCFg= + dependencies: + reusify "^1.0.4" + +fill-range@^7.0.1: + version "7.0.1" + resolved "https://registry.nlark.com/fill-range/download/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" + integrity sha1-GRmmp8df44ssfHflGYU12prN2kA= + dependencies: + to-regex-range "^5.0.1" + +focus-trap@~6.3.0: + version "6.3.0" + resolved "https://registry.nlark.com/focus-trap/download/focus-trap-6.3.0.tgz#31c08f0b6099705f71f6e0a16d88fbcc4c012586" + integrity sha1-McCPC2CZcF9x9uChbYj7zEwBJYY= + dependencies: + tabbable "^5.1.5" + +fs-extra@^8.1.0: + version "8.1.0" + resolved "https://registry.nlark.com/fs-extra/download/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0" + integrity sha1-SdQ8RaiM2Wd2aMt74bRu/bjS4cA= + dependencies: + graceful-fs "^4.2.0" + jsonfile "^4.0.0" + universalify "^0.1.0" + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.nlark.com/fs.realpath/download/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= + +fsevents@~2.3.1: + version "2.3.2" + resolved "https://registry.npm.taobao.org/fsevents/download/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" + integrity sha1-ilJveLj99GI7cJ4Ll1xSwkwC/Ro= + +function-bind@^1.1.1: + version "1.1.1" + resolved "https://registry.npm.taobao.org/function-bind/download/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" + integrity sha1-pWiZ0+o8m6uHS7l3O3xe3pL0iV0= + +glob-parent@^5.1.0: + version "5.1.2" + resolved "https://registry.nlark.com/glob-parent/download/glob-parent-5.1.2.tgz?cache=0&sync_timestamp=1620073321855&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fglob-parent%2Fdownload%2Fglob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" + integrity sha1-hpgyxYA0/mikCTwX3BXoNA2EAcQ= + dependencies: + is-glob "^4.0.1" + +glob@^7.1.3: + version "7.1.7" + resolved "https://registry.nlark.com/glob/download/glob-7.1.7.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fglob%2Fdownload%2Fglob-7.1.7.tgz#3b193e9233f01d42d0b3f78294bbeeb418f94a90" + integrity sha1-Oxk+kjPwHULQs/eClLvutBj5SpA= + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + +globby@10.0.1: + version "10.0.1" + resolved "https://registry.nlark.com/globby/download/globby-10.0.1.tgz#4782c34cb75dd683351335c5829cc3420e606b22" + integrity sha1-R4LDTLdd1oM1EzXFgpzDQg5gayI= + dependencies: + "@types/glob" "^7.1.1" + array-union "^2.1.0" + dir-glob "^3.0.1" + fast-glob "^3.0.3" + glob "^7.1.3" + ignore "^5.1.1" + merge2 "^1.2.3" + slash "^3.0.0" + +graceful-fs@^4.1.6, graceful-fs@^4.2.0: + version "4.2.6" + resolved "https://registry.nlark.com/graceful-fs/download/graceful-fs-4.2.6.tgz#ff040b2b0853b23c3d31027523706f1885d76bee" + integrity sha1-/wQLKwhTsjw9MQJ1I3BvGIXXa+4= + +has-flag@^4.0.0: + version "4.0.0" + resolved "https://registry.npm.taobao.org/has-flag/download/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" + integrity sha1-lEdx/ZyByBJlxNaUGGDaBrtZR5s= + +has@^1.0.3: + version "1.0.3" + resolved "https://registry.npm.taobao.org/has/download/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" + integrity sha1-ci18v8H2qoJB8W3YFOAR4fQeh5Y= + dependencies: + function-bind "^1.1.1" + +hash-sum@^2.0.0: + version "2.0.0" + resolved "https://registry.npm.taobao.org/hash-sum/download/hash-sum-2.0.0.tgz#81d01bb5de8ea4a214ad5d6ead1b523460b0b45a" + integrity sha1-gdAbtd6OpKIUrV1urRtSNGCwtFo= + +ignore@^5.1.1: + version "5.1.8" + resolved "https://registry.npm.taobao.org/ignore/download/ignore-5.1.8.tgz#f150a8b50a34289b33e22f5889abd4d8016f0e57" + integrity sha1-8VCotQo0KJsz4i9YiavU2AFvDlc= + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.npm.taobao.org/inflight/download/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2: + version "2.0.4" + resolved "https://registry.nlark.com/inherits/download/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" + integrity sha1-D6LGT5MpF8NDOg3tVTY6rjdBa3w= + +is-core-module@^2.2.0: + version "2.4.0" + resolved "https://registry.nlark.com/is-core-module/download/is-core-module-2.4.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fis-core-module%2Fdownload%2Fis-core-module-2.4.0.tgz#8e9fc8e15027b011418026e98f0e6f4d86305cc1" + integrity sha1-jp/I4VAnsBFBgCbpjw5vTYYwXME= + dependencies: + has "^1.0.3" + +is-extglob@^2.1.1: + version "2.1.1" + resolved "https://registry.npm.taobao.org/is-extglob/download/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" + integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI= + +is-glob@^4.0.1: + version "4.0.1" + resolved "https://registry.nlark.com/is-glob/download/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc" + integrity sha1-dWfb6fL14kZ7x3q4PEopSCQHpdw= + dependencies: + is-extglob "^2.1.1" + +is-number@^7.0.0: + version "7.0.0" + resolved "https://registry.npm.taobao.org/is-number/download/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" + integrity sha1-dTU0W4lnNNX4DE0GxQlVUnoU8Ss= + +is-plain-object@^3.0.0: + version "3.0.1" + resolved "https://registry.npm.taobao.org/is-plain-object/download/is-plain-object-3.0.1.tgz#662d92d24c0aa4302407b0d45d21f2251c85f85b" + integrity sha1-Zi2S0kwKpDAkB7DUXSHyJRyF+Fs= + +jsonfile@^4.0.0: + version "4.0.0" + resolved "https://registry.nlark.com/jsonfile/download/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" + integrity sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss= + optionalDependencies: + graceful-fs "^4.1.6" + +lodash.isplainobject@^4.0.6: + version "4.0.6" + resolved "https://registry.npm.taobao.org/lodash.isplainobject/download/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb" + integrity sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs= + +merge2@^1.2.3, merge2@^1.3.0: + version "1.4.1" + resolved "https://registry.npm.taobao.org/merge2/download/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" + integrity sha1-Q2iJL4hekHRVpv19xVwMnUBJkK4= + +micromatch@^4.0.2: + version "4.0.4" + resolved "https://registry.nlark.com/micromatch/download/micromatch-4.0.4.tgz#896d519dfe9db25fce94ceb7a500919bf881ebf9" + integrity sha1-iW1Rnf6dsl/OlM63pQCRm/iB6/k= + dependencies: + braces "^3.0.1" + picomatch "^2.2.3" + +minimatch@^3.0.4: + version "3.0.4" + resolved "https://registry.npm.taobao.org/minimatch/download/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" + integrity sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM= + dependencies: + brace-expansion "^1.1.7" + +moment@~2.29.1: + version "2.29.1" + resolved "https://registry.npm.taobao.org/moment/download/moment-2.29.1.tgz#b2be769fa31940be9eeea6469c075e35006fa3d3" + integrity sha1-sr52n6MZQL6e7qZGnAdeNQBvo9M= + +ms@2.1.2: + version "2.1.2" + resolved "https://registry.nlark.com/ms/download/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" + integrity sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk= + +nanoid@^3.1.23: + version "3.1.23" + resolved "https://registry.nlark.com/nanoid/download/nanoid-3.1.23.tgz#f744086ce7c2bc47ee0a8472574d5c78e4183a81" + integrity sha1-90QIbOfCvEfuCoRyV01ceOQYOoE= + +once@^1.3.0: + version "1.4.0" + resolved "https://registry.nlark.com/once/download/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= + dependencies: + wrappy "1" + +path-is-absolute@^1.0.0: + version "1.0.1" + resolved "https://registry.npm.taobao.org/path-is-absolute/download/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= + +path-parse@^1.0.6: + version "1.0.7" + resolved "https://registry.nlark.com/path-parse/download/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" + integrity sha1-+8EUtgykKzDZ2vWFjkvWi77bZzU= + +path-type@^4.0.0: + version "4.0.0" + resolved "https://registry.npm.taobao.org/path-type/download/path-type-4.0.0.tgz?cache=0&sync_timestamp=1611752107592&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpath-type%2Fdownload%2Fpath-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" + integrity sha1-hO0BwKe6OAr+CdkKjBgNzZ0DBDs= + +picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.2.3: + version "2.3.0" + resolved "https://registry.nlark.com/picomatch/download/picomatch-2.3.0.tgz?cache=0&sync_timestamp=1621648246651&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fpicomatch%2Fdownload%2Fpicomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972" + integrity sha1-8fBh3o9qS/AiiS4tEoI0+5gwKXI= + +postcss@^8.2.10: + version "8.3.0" + resolved "https://registry.nlark.com/postcss/download/postcss-8.3.0.tgz?cache=0&sync_timestamp=1621568644827&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fpostcss%2Fdownload%2Fpostcss-8.3.0.tgz#b1a713f6172ca427e3f05ef1303de8b65683325f" + integrity sha1-sacT9hcspCfj8F7xMD3otlaDMl8= + dependencies: + colorette "^1.2.2" + nanoid "^3.1.23" + source-map-js "^0.6.2" + +queue-microtask@^1.2.2: + version "1.2.3" + resolved "https://registry.nlark.com/queue-microtask/download/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" + integrity sha1-SSkii7xyTfrEPg77BYyve2z7YkM= + +require-relative@^0.8.7: + version "0.8.7" + resolved "https://registry.npm.taobao.org/require-relative/download/require-relative-0.8.7.tgz#7999539fc9e047a37928fa196f8e1563dabd36de" + integrity sha1-eZlTn8ngR6N5KPoZb44VY9q9Nt4= + +resolve@^1.19.0: + version "1.20.0" + resolved "https://registry.nlark.com/resolve/download/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975" + integrity sha1-YpoBP7P3B1XW8LeTXMHCxTeLGXU= + dependencies: + is-core-module "^2.2.0" + path-parse "^1.0.6" + +reusify@^1.0.4: + version "1.0.4" + resolved "https://registry.nlark.com/reusify/download/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" + integrity sha1-kNo4Kx4SbvwCFG6QhFqI2xKSXXY= + +rollup-plugin-copy@^3.4.0: + version "3.4.0" + resolved "https://registry.npm.taobao.org/rollup-plugin-copy/download/rollup-plugin-copy-3.4.0.tgz#f1228a3ffb66ffad8606e2f3fb7ff23141ed3286" + integrity sha1-8SKKP/tm/62GBuLz+3/yMUHtMoY= + dependencies: + "@types/fs-extra" "^8.0.1" + colorette "^1.1.0" + fs-extra "^8.1.0" + globby "10.0.1" + is-plain-object "^3.0.0" + +rollup@^2.38.5: + version "2.50.1" + resolved "https://registry.nlark.com/rollup/download/rollup-2.50.1.tgz?cache=0&sync_timestamp=1622014232980&other_urls=https%3A%2F%2Fregistry.nlark.com%2Frollup%2Fdownload%2Frollup-2.50.1.tgz#5d52d5c65ade19164d56efec98f16a461c6df38e" + integrity sha1-XVLVxlreGRZNVu/smPFqRhxt844= + optionalDependencies: + fsevents "~2.3.1" + +run-parallel@^1.1.9: + version "1.2.0" + resolved "https://registry.npm.taobao.org/run-parallel/download/run-parallel-1.2.0.tgz?cache=0&sync_timestamp=1612925943325&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Frun-parallel%2Fdownload%2Frun-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" + integrity sha1-ZtE2jae9+SHrnZW9GpIp5/IaQ+4= + dependencies: + queue-microtask "^1.2.2" + +slash@^3.0.0: + version "3.0.0" + resolved "https://registry.nlark.com/slash/download/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" + integrity sha1-ZTm+hwwWWtvVJAIg2+Nh8bxNRjQ= + +slash@^4.0.0: + version "4.0.0" + resolved "https://registry.nlark.com/slash/download/slash-4.0.0.tgz#2422372176c4c6c5addb5e2ada885af984b396a7" + integrity sha1-JCI3IXbExsWt214q2oha+YSzlqc= + +sortablejs@~1.13.0: + version "1.13.0" + resolved "https://registry.npm.taobao.org/sortablejs/download/sortablejs-1.13.0.tgz?cache=0&sync_timestamp=1610070448468&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsortablejs%2Fdownload%2Fsortablejs-1.13.0.tgz#3ab2473f8c69ca63569e80b1cd1b5669b51269e9" + integrity sha1-OrJHP4xpymNWnoCxzRtWabUSaek= + +source-map-js@^0.6.2: + version "0.6.2" + resolved "https://registry.npm.taobao.org/source-map-js/download/source-map-js-0.6.2.tgz#0bb5de631b41cfbda6cfba8bd05a80efdfd2385e" + integrity sha1-C7XeYxtBz72mz7qL0FqA79/SOF4= + +source-map@^0.7.3: + version "0.7.3" + resolved "https://registry.nlark.com/source-map/download/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383" + integrity sha1-UwL4FpAxc1ImVECS5kmB91F1A4M= + +supports-color@^7.1.0: + version "7.2.0" + resolved "https://registry.npm.taobao.org/supports-color/download/supports-color-7.2.0.tgz?cache=0&sync_timestamp=1618560983872&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsupports-color%2Fdownload%2Fsupports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" + integrity sha1-G33NyzK4E4gBs+R4umpRyqiWSNo= + dependencies: + has-flag "^4.0.0" + +svelte-hmr@^0.14.2: + version "0.14.4" + resolved "https://registry.nlark.com/svelte-hmr/download/svelte-hmr-0.14.4.tgz#b7ef2bfeef23916e0e912828c50645ca572ac355" + integrity sha1-t+8r/u8jkW4OkSgoxQZFylcqw1U= + +svelte@^3.37.0: + version "3.38.2" + resolved "https://registry.nlark.com/svelte/download/svelte-3.38.2.tgz#55e5c681f793ae349b5cc2fe58e5782af4275ef5" + integrity sha1-VeXGgfeTrjSbXML+WOV4KvQnXvU= + +tabbable@^5.1.5: + version "5.2.0" + resolved "https://registry.npm.taobao.org/tabbable/download/tabbable-5.2.0.tgz#4fba60991d8bb89d06e5d9455c92b453acf88fb2" + integrity sha1-T7pgmR2LuJ0G5dlFXJK0U6z4j7I= + +to-regex-range@^5.0.1: + version "5.0.1" + resolved "https://registry.nlark.com/to-regex-range/download/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" + integrity sha1-FkjESq58jZiKMmAY7XL1tN0DkuQ= + dependencies: + is-number "^7.0.0" + +universalify@^0.1.0: + version "0.1.2" + resolved "https://registry.nlark.com/universalify/download/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" + integrity sha1-tkb2m+OULavOzJ1mOcgNwQXvqmY= + +vite@^2.3.4: + version "2.3.4" + resolved "https://registry.nlark.com/vite/download/vite-2.3.4.tgz?cache=0&sync_timestamp=1621932554383&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fvite%2Fdownload%2Fvite-2.3.4.tgz#370118e0334725b898ff754ea43d5db4c5e120e3" + integrity sha1-NwEY4DNHJbiY/3VOpD1dtMXhIOM= + dependencies: + esbuild "^0.11.23" + postcss "^8.2.10" + resolve "^1.19.0" + rollup "^2.38.5" + optionalDependencies: + fsevents "~2.3.1" + +wrappy@1: + version "1.0.2" + resolved "https://registry.nlark.com/wrappy/download/wrappy-1.0.2.tgz?cache=0&sync_timestamp=1619133505879&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fwrappy%2Fdownload%2Fwrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= + +xss@^1.0.8: + version "1.0.9" + resolved "https://registry.nlark.com/xss/download/xss-1.0.9.tgz?cache=0&sync_timestamp=1620317390765&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fxss%2Fdownload%2Fxss-1.0.9.tgz#3ffd565571ff60d2e40db7f3b80b4677bec770d2" + integrity sha1-P/1WVXH/YNLkDbfzuAtGd77HcNI= + dependencies: + commander "^2.20.3" + cssfilter "0.0.10" diff --git a/svelte-js-openglobus/.gitignore b/svelte-js-openglobus/.gitignore new file mode 100644 index 0000000..126fe84 --- /dev/null +++ b/svelte-js-openglobus/.gitignore @@ -0,0 +1,4 @@ +/node_modules/ +/dist/ +/.vscode/ +.DS_Store diff --git a/svelte-js-openglobus/index.html b/svelte-js-openglobus/index.html new file mode 100644 index 0000000..077158d --- /dev/null +++ b/svelte-js-openglobus/index.html @@ -0,0 +1,12 @@ + + + + + + OpenGlobus App with Svelte Js + + +
+ + + diff --git a/svelte-js-openglobus/jsconfig.json b/svelte-js-openglobus/jsconfig.json new file mode 100644 index 0000000..4258594 --- /dev/null +++ b/svelte-js-openglobus/jsconfig.json @@ -0,0 +1,34 @@ +{ + "compilerOptions": { + "moduleResolution": "node", + "target": "esnext", + "module": "esnext", + /** + * svelte-preprocess cannot figure out whether you have + * a value or a type, so tell TypeScript to enforce using + * `import type` instead of `import` for Types. + */ + "importsNotUsedAsValues": "error", + "isolatedModules": true, + "resolveJsonModule": true, + /** + * To have warnings / errors of the Svelte compiler at the + * correct position, enable source maps by default. + */ + "sourceMap": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "baseUrl": ".", + /** + * Typecheck JS in `.svelte` and `.js` files by default. + * Disable this if you'd like to use dynamic types. + */ + "checkJs": true + }, + /** + * Use global.d.ts instead of compilerOptions.types + * to avoid limiting type declarations. + */ + "include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.svelte"] +} diff --git a/svelte-js-openglobus/package.json b/svelte-js-openglobus/package.json new file mode 100644 index 0000000..62418e2 --- /dev/null +++ b/svelte-js-openglobus/package.json @@ -0,0 +1,17 @@ +{ + "name": "svelte-js-openglobus", + "version": "0.0.0", + "scripts": { + "dev": "vite", + "build": "vite build", + "serve": "vite preview" + }, + "devDependencies": { + "@sveltejs/vite-plugin-svelte": "^1.0.0-next.7", + "svelte": "^3.37.0", + "vite": "^2.3.4" + }, + "dependencies": { + "@openglobus/og": "^0.8.10" + } +} diff --git a/svelte-js-openglobus/src/App.svelte b/svelte-js-openglobus/src/App.svelte new file mode 100644 index 0000000..23c45d1 --- /dev/null +++ b/svelte-js-openglobus/src/App.svelte @@ -0,0 +1,35 @@ + + +
+
+
+ + diff --git a/svelte-js-openglobus/src/main.css b/svelte-js-openglobus/src/main.css new file mode 100644 index 0000000..f37567b --- /dev/null +++ b/svelte-js-openglobus/src/main.css @@ -0,0 +1,9 @@ +html, body { + margin: 0; + padding: 0; +} + +#app { + height: 100vh; + width: 100vw; +} \ No newline at end of file diff --git a/svelte-js-openglobus/src/main.js b/svelte-js-openglobus/src/main.js new file mode 100644 index 0000000..2112127 --- /dev/null +++ b/svelte-js-openglobus/src/main.js @@ -0,0 +1,8 @@ +import App from './App.svelte' +import './main.css' + +const app = new App({ + target: document.getElementById('app') +}) + +export default app diff --git a/svelte-js-openglobus/src/vite-env.d.ts b/svelte-js-openglobus/src/vite-env.d.ts new file mode 100644 index 0000000..4078e74 --- /dev/null +++ b/svelte-js-openglobus/src/vite-env.d.ts @@ -0,0 +1,2 @@ +/// +/// diff --git a/svelte-js-openglobus/vite.config.js b/svelte-js-openglobus/vite.config.js new file mode 100644 index 0000000..d0fd69a --- /dev/null +++ b/svelte-js-openglobus/vite.config.js @@ -0,0 +1,7 @@ +import { defineConfig } from 'vite' +import svelte from '@sveltejs/vite-plugin-svelte' + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [svelte()] +}) diff --git a/svelte-js-openglobus/yarn.lock b/svelte-js-openglobus/yarn.lock new file mode 100644 index 0000000..9c0883f --- /dev/null +++ b/svelte-js-openglobus/yarn.lock @@ -0,0 +1,855 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@jimp/bmp@^0.6.8": + version "0.6.8" + resolved "https://registry.nlark.com/@jimp/bmp/download/@jimp/bmp-0.6.8.tgz#8abbfd9e26ba17a47fab311059ea9f7dd82005b6" + integrity sha1-irv9nia6F6R/qzEQWeqffdggBbY= + dependencies: + "@jimp/utils" "^0.6.8" + bmp-js "^0.1.0" + core-js "^2.5.7" + +"@jimp/core@^0.6.8": + version "0.6.8" + resolved "https://registry.nlark.com/@jimp/core/download/@jimp/core-0.6.8.tgz#6a41089792516f6e64a5302d12eb562aa7847c7b" + integrity sha1-akEIl5JRb25kpTAtEutWKqeEfHs= + dependencies: + "@jimp/utils" "^0.6.8" + any-base "^1.1.0" + buffer "^5.2.0" + core-js "^2.5.7" + exif-parser "^0.1.12" + file-type "^9.0.0" + load-bmfont "^1.3.1" + mkdirp "0.5.1" + phin "^2.9.1" + pixelmatch "^4.0.2" + tinycolor2 "^1.4.1" + +"@jimp/custom@^0.6.8": + version "0.6.8" + resolved "https://registry.nlark.com/@jimp/custom/download/@jimp/custom-0.6.8.tgz#0476d7b3f5da3121d98895a2e14f2899e602f2b6" + integrity sha1-BHbXs/XaMSHZiJWi4U8omeYC8rY= + dependencies: + "@jimp/core" "^0.6.8" + core-js "^2.5.7" + +"@jimp/gif@^0.6.8": + version "0.6.8" + resolved "https://registry.nlark.com/@jimp/gif/download/@jimp/gif-0.6.8.tgz#848dd4e6e1a56ca2b3ce528969e44dfa99a53b14" + integrity sha1-hI3U5uGlbKKzzlKJaeRN+pmlOxQ= + dependencies: + "@jimp/utils" "^0.6.8" + core-js "^2.5.7" + omggif "^1.0.9" + +"@jimp/jpeg@^0.6.8": + version "0.6.8" + resolved "https://registry.nlark.com/@jimp/jpeg/download/@jimp/jpeg-0.6.8.tgz?cache=0&sync_timestamp=1621904648661&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40jimp%2Fjpeg%2Fdownload%2F%40jimp%2Fjpeg-0.6.8.tgz#4cad85a6d1e15759acb56bddef29aa3473859f2c" + integrity sha1-TK2FptHhV1mstWvd7ymqNHOFnyw= + dependencies: + "@jimp/utils" "^0.6.8" + core-js "^2.5.7" + jpeg-js "^0.3.4" + +"@jimp/plugin-blit@^0.6.8": + version "0.6.8" + resolved "https://registry.nlark.com/@jimp/plugin-blit/download/@jimp/plugin-blit-0.6.8.tgz#646ebb631f35afc28c1e8908524bc43d1e9afa3d" + integrity sha1-ZG67Yx81r8KMHokIUkvEPR6a+j0= + dependencies: + "@jimp/utils" "^0.6.8" + core-js "^2.5.7" + +"@jimp/plugin-blur@^0.6.8": + version "0.6.8" + resolved "https://registry.nlark.com/@jimp/plugin-blur/download/@jimp/plugin-blur-0.6.8.tgz#7b753ae94f6099103f57c268c3b2679047eefe95" + integrity sha1-e3U66U9gmRA/V8Jow7JnkEfu/pU= + dependencies: + "@jimp/utils" "^0.6.8" + core-js "^2.5.7" + +"@jimp/plugin-color@^0.6.8": + version "0.6.8" + resolved "https://registry.nlark.com/@jimp/plugin-color/download/@jimp/plugin-color-0.6.8.tgz#4101cb1208879b331db6e43ea6b96eaf8dbaedbc" + integrity sha1-QQHLEgiHmzMdtuQ+prlur4267bw= + dependencies: + "@jimp/utils" "^0.6.8" + core-js "^2.5.7" + tinycolor2 "^1.4.1" + +"@jimp/plugin-contain@^0.6.8": + version "0.6.8" + resolved "https://registry.nlark.com/@jimp/plugin-contain/download/@jimp/plugin-contain-0.6.8.tgz#af95d33b63d0478943374ae15dd2607fc69cad14" + integrity sha1-r5XTO2PQR4lDN0rhXdJgf8acrRQ= + dependencies: + "@jimp/utils" "^0.6.8" + core-js "^2.5.7" + +"@jimp/plugin-cover@^0.6.8": + version "0.6.8" + resolved "https://registry.nlark.com/@jimp/plugin-cover/download/@jimp/plugin-cover-0.6.8.tgz?cache=0&sync_timestamp=1621904647793&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40jimp%2Fplugin-cover%2Fdownload%2F%40jimp%2Fplugin-cover-0.6.8.tgz#490e3186627a34d93cc015c4169bac9070d6ad17" + integrity sha1-SQ4xhmJ6NNk8wBXEFpuskHDWrRc= + dependencies: + "@jimp/utils" "^0.6.8" + core-js "^2.5.7" + +"@jimp/plugin-crop@^0.6.8": + version "0.6.8" + resolved "https://registry.nlark.com/@jimp/plugin-crop/download/@jimp/plugin-crop-0.6.8.tgz#ffec8951a2f3eccad1e3cff9afff5326bd980ce7" + integrity sha1-/+yJUaLz7MrR48/5r/9TJr2YDOc= + dependencies: + "@jimp/utils" "^0.6.8" + core-js "^2.5.7" + +"@jimp/plugin-displace@^0.6.8": + version "0.6.8" + resolved "https://registry.nlark.com/@jimp/plugin-displace/download/@jimp/plugin-displace-0.6.8.tgz#89df05ab7daaff6befc190bb8ac54ec8d57e533b" + integrity sha1-id8Fq32q/2vvwZC7isVOyNV+Uzs= + dependencies: + "@jimp/utils" "^0.6.8" + core-js "^2.5.7" + +"@jimp/plugin-dither@^0.6.8": + version "0.6.8" + resolved "https://registry.nlark.com/@jimp/plugin-dither/download/@jimp/plugin-dither-0.6.8.tgz#17e5b9f56575a871e329fef8b388e614b92d84f8" + integrity sha1-F+W59WV1qHHjKf74s4jmFLkthPg= + dependencies: + "@jimp/utils" "^0.6.8" + core-js "^2.5.7" + +"@jimp/plugin-flip@^0.6.8": + version "0.6.8" + resolved "https://registry.nlark.com/@jimp/plugin-flip/download/@jimp/plugin-flip-0.6.8.tgz#153df0c677f79d4078bb9e4c1f2ac392b96dc3a1" + integrity sha1-FT3wxnf3nUB4u55MHyrDkrltw6E= + dependencies: + "@jimp/utils" "^0.6.8" + core-js "^2.5.7" + +"@jimp/plugin-gaussian@^0.6.8": + version "0.6.8" + resolved "https://registry.nlark.com/@jimp/plugin-gaussian/download/@jimp/plugin-gaussian-0.6.8.tgz#100abc7ae1f19fe9c09ed41625b475aae7c6093c" + integrity sha1-EAq8euHxn+nAntQWJbR1qufGCTw= + dependencies: + "@jimp/utils" "^0.6.8" + core-js "^2.5.7" + +"@jimp/plugin-invert@^0.6.8": + version "0.6.8" + resolved "https://registry.nlark.com/@jimp/plugin-invert/download/@jimp/plugin-invert-0.6.8.tgz#f40bfaa3b592d21ff14ede0e49aabec88048cad0" + integrity sha1-9Av6o7WS0h/xTt4OSaq+yIBIytA= + dependencies: + "@jimp/utils" "^0.6.8" + core-js "^2.5.7" + +"@jimp/plugin-mask@^0.6.8": + version "0.6.8" + resolved "https://registry.nlark.com/@jimp/plugin-mask/download/@jimp/plugin-mask-0.6.8.tgz?cache=0&sync_timestamp=1621904648470&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40jimp%2Fplugin-mask%2Fdownload%2F%40jimp%2Fplugin-mask-0.6.8.tgz#e64405f7dacf0672bff74f3b95b724d9ac517f86" + integrity sha1-5kQF99rPBnK/9087lbck2axRf4Y= + dependencies: + "@jimp/utils" "^0.6.8" + core-js "^2.5.7" + +"@jimp/plugin-normalize@^0.6.8": + version "0.6.8" + resolved "https://registry.nlark.com/@jimp/plugin-normalize/download/@jimp/plugin-normalize-0.6.8.tgz?cache=0&sync_timestamp=1621904648844&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40jimp%2Fplugin-normalize%2Fdownload%2F%40jimp%2Fplugin-normalize-0.6.8.tgz#a0180f2b8835e3638cdc5e057b44ac63f60db6ba" + integrity sha1-oBgPK4g142OM3F4Fe0SsY/YNtro= + dependencies: + "@jimp/utils" "^0.6.8" + core-js "^2.5.7" + +"@jimp/plugin-print@^0.6.8": + version "0.6.8" + resolved "https://registry.nlark.com/@jimp/plugin-print/download/@jimp/plugin-print-0.6.8.tgz#66309549e01896473111e3a0ad2cee428638bd6e" + integrity sha1-ZjCVSeAYlkcxEeOgrSzuQoY4vW4= + dependencies: + "@jimp/utils" "^0.6.8" + core-js "^2.5.7" + load-bmfont "^1.4.0" + +"@jimp/plugin-resize@^0.6.8": + version "0.6.8" + resolved "https://registry.nlark.com/@jimp/plugin-resize/download/@jimp/plugin-resize-0.6.8.tgz#c26d9a973f7eec51ad9018fcbbac1146f7a73aa0" + integrity sha1-wm2alz9+7FGtkBj8u6wRRvenOqA= + dependencies: + "@jimp/utils" "^0.6.8" + core-js "^2.5.7" + +"@jimp/plugin-rotate@^0.6.8": + version "0.6.8" + resolved "https://registry.nlark.com/@jimp/plugin-rotate/download/@jimp/plugin-rotate-0.6.8.tgz?cache=0&sync_timestamp=1621904647335&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40jimp%2Fplugin-rotate%2Fdownload%2F%40jimp%2Fplugin-rotate-0.6.8.tgz#2afda247984eeebed95c1bb1b13ccd3be5973299" + integrity sha1-Kv2iR5hO7r7ZXBuxsTzNO+WXMpk= + dependencies: + "@jimp/utils" "^0.6.8" + core-js "^2.5.7" + +"@jimp/plugin-scale@^0.6.8": + version "0.6.8" + resolved "https://registry.nlark.com/@jimp/plugin-scale/download/@jimp/plugin-scale-0.6.8.tgz#5de403345859bb0b30bf3e242dedd8ceb6ecb96c" + integrity sha1-XeQDNFhZuwswvz4kLe3YzrbsuWw= + dependencies: + "@jimp/utils" "^0.6.8" + core-js "^2.5.7" + +"@jimp/plugins@^0.6.8": + version "0.6.8" + resolved "https://registry.nlark.com/@jimp/plugins/download/@jimp/plugins-0.6.8.tgz#5618170a986ced1ea795adcd9376122f2543b856" + integrity sha1-VhgXCphs7R6nla3Nk3YSLyVDuFY= + dependencies: + "@jimp/plugin-blit" "^0.6.8" + "@jimp/plugin-blur" "^0.6.8" + "@jimp/plugin-color" "^0.6.8" + "@jimp/plugin-contain" "^0.6.8" + "@jimp/plugin-cover" "^0.6.8" + "@jimp/plugin-crop" "^0.6.8" + "@jimp/plugin-displace" "^0.6.8" + "@jimp/plugin-dither" "^0.6.8" + "@jimp/plugin-flip" "^0.6.8" + "@jimp/plugin-gaussian" "^0.6.8" + "@jimp/plugin-invert" "^0.6.8" + "@jimp/plugin-mask" "^0.6.8" + "@jimp/plugin-normalize" "^0.6.8" + "@jimp/plugin-print" "^0.6.8" + "@jimp/plugin-resize" "^0.6.8" + "@jimp/plugin-rotate" "^0.6.8" + "@jimp/plugin-scale" "^0.6.8" + core-js "^2.5.7" + timm "^1.6.1" + +"@jimp/png@^0.6.8": + version "0.6.8" + resolved "https://registry.nlark.com/@jimp/png/download/@jimp/png-0.6.8.tgz#ee06cf078b381137ec7206c4bb1b4cfcbe15ca6f" + integrity sha1-7gbPB4s4ETfscgbEuxtM/L4Vym8= + dependencies: + "@jimp/utils" "^0.6.8" + core-js "^2.5.7" + pngjs "^3.3.3" + +"@jimp/tiff@^0.6.8": + version "0.6.8" + resolved "https://registry.nlark.com/@jimp/tiff/download/@jimp/tiff-0.6.8.tgz#79bd22ed435edbe29d02a2c8c9bf829f988ebacc" + integrity sha1-eb0i7UNe2+KdAqLIyb+Cn5iOusw= + dependencies: + core-js "^2.5.7" + utif "^2.0.1" + +"@jimp/types@^0.6.8": + version "0.6.8" + resolved "https://registry.nlark.com/@jimp/types/download/@jimp/types-0.6.8.tgz#4510eb635cd00b201745d70e38f791748baa7075" + integrity sha1-RRDrY1zQCyAXRdcOOPeRdIuqcHU= + dependencies: + "@jimp/bmp" "^0.6.8" + "@jimp/gif" "^0.6.8" + "@jimp/jpeg" "^0.6.8" + "@jimp/png" "^0.6.8" + "@jimp/tiff" "^0.6.8" + core-js "^2.5.7" + timm "^1.6.1" + +"@jimp/utils@^0.6.8": + version "0.6.8" + resolved "https://registry.nlark.com/@jimp/utils/download/@jimp/utils-0.6.8.tgz?cache=0&sync_timestamp=1621904647062&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40jimp%2Futils%2Fdownload%2F%40jimp%2Futils-0.6.8.tgz#09f794945631173567aa50f72ac28170de58a63d" + integrity sha1-CfeUlFYxFzVnqlD3KsKBcN5Ypj0= + dependencies: + core-js "^2.5.7" + +"@openglobus/og@^0.8.10": + version "0.8.10" + resolved "https://registry.nlark.com/@openglobus/og/download/@openglobus/og-0.8.10.tgz#f6b80df530adeb46d9ae0dc1572b42760cf39b40" + integrity sha1-9rgN9TCt60bZrg3BVytCdgzzm0A= + dependencies: + msdf-bmfont-xml "^2.5.4" + +"@rollup/pluginutils@^4.1.0": + version "4.1.0" + resolved "https://registry.npm.taobao.org/@rollup/pluginutils/download/@rollup/pluginutils-4.1.0.tgz?cache=0&sync_timestamp=1603767889260&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40rollup%2Fpluginutils%2Fdownload%2F%40rollup%2Fpluginutils-4.1.0.tgz#0dcc61c780e39257554feb7f77207dceca13c838" + integrity sha1-Dcxhx4DjkldVT+t/dyB9zsoTyDg= + dependencies: + estree-walker "^2.0.1" + picomatch "^2.2.2" + +"@sveltejs/vite-plugin-svelte@^1.0.0-next.7": + version "1.0.0-next.10" + resolved "https://registry.nlark.com/@sveltejs/vite-plugin-svelte/download/@sveltejs/vite-plugin-svelte-1.0.0-next.10.tgz#15526067ea2edd334420b1e14602e29b370be25e" + integrity sha1-FVJgZ+ou3TNEILHhRgLimzcL4l4= + dependencies: + "@rollup/pluginutils" "^4.1.0" + chalk "^4.1.1" + debug "^4.3.2" + hash-sum "^2.0.0" + require-relative "^0.8.7" + slash "^4.0.0" + source-map "^0.7.3" + svelte-hmr "^0.14.2" + +ansi-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.nlark.com/ansi-regex/download/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" + integrity sha1-7QMXwyIGT3lGbAKWa922Bas32Zg= + +ansi-styles@^4.1.0: + version "4.3.0" + resolved "https://registry.nlark.com/ansi-styles/download/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" + integrity sha1-7dgDYornHATIWuegkG7a00tkiTc= + dependencies: + color-convert "^2.0.1" + +any-base@^1.1.0: + version "1.1.0" + resolved "https://registry.npm.taobao.org/any-base/download/any-base-1.1.0.tgz#ae101a62bc08a597b4c9ab5b7089d456630549fe" + integrity sha1-rhAaYrwIpZe0yatbcInUVmMFSf4= + +arabic-persian-reshaper@^1.0.1: + version "1.0.1" + resolved "https://registry.nlark.com/arabic-persian-reshaper/download/arabic-persian-reshaper-1.0.1.tgz#2f3658a449fa21ed1cc11e35f8161a3a874fee1f" + integrity sha1-LzZYpEn6Ie0cwR41+BYaOodP7h8= + +base64-js@^1.3.1: + version "1.5.1" + resolved "https://registry.nlark.com/base64-js/download/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" + integrity sha1-GxtEAWClv3rUC2UPCVljSBkDkwo= + +bmp-js@^0.1.0: + version "0.1.0" + resolved "https://registry.npm.taobao.org/bmp-js/download/bmp-js-0.1.0.tgz#e05a63f796a6c1ff25f4771ec7adadc148c07233" + integrity sha1-4Fpj95amwf8l9Hcex62twUjAcjM= + +buffer-equal@0.0.1: + version "0.0.1" + resolved "https://registry.npm.taobao.org/buffer-equal/download/buffer-equal-0.0.1.tgz#91bc74b11ea405bc916bc6aa908faafa5b4aac4b" + integrity sha1-kbx0sR6kBbyRa8aqkI+q+ltKrEs= + +buffer@^5.2.0: + version "5.7.1" + resolved "https://registry.npm.taobao.org/buffer/download/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" + integrity sha1-umLnwTEzBTWCGXFghRqPZI6Z7tA= + dependencies: + base64-js "^1.3.1" + ieee754 "^1.1.13" + +chalk@^4.1.1: + version "4.1.1" + resolved "https://registry.nlark.com/chalk/download/chalk-4.1.1.tgz?cache=0&sync_timestamp=1618995367379&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fchalk%2Fdownload%2Fchalk-4.1.1.tgz#c80b3fab28bf6371e6863325eee67e618b77e6ad" + integrity sha1-yAs/qyi/Y3HmhjMl7uZ+YYt35q0= + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + +cli-progress@^2.1.1: + version "2.1.1" + resolved "https://registry.npm.taobao.org/cli-progress/download/cli-progress-2.1.1.tgz#45ee1b143487c19043a3262131ccb4676f87f032" + integrity sha1-Re4bFDSHwZBDoyYhMcy0Z2+H8DI= + dependencies: + colors "^1.1.2" + string-width "^2.1.1" + +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.npm.taobao.org/color-convert/download/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" + integrity sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM= + dependencies: + color-name "~1.1.4" + +color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.nlark.com/color-name/download/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" + integrity sha1-wqCah6y95pVD3m9j+jmVyCbFNqI= + +colorette@^1.2.2: + version "1.2.2" + resolved "https://registry.nlark.com/colorette/download/colorette-1.2.2.tgz#cbcc79d5e99caea2dbf10eb3a26fd8b3e6acfa94" + integrity sha1-y8x51emcrqLb8Q6zom/Ys+as+pQ= + +colors@^1.1.2: + version "1.4.0" + resolved "https://registry.npm.taobao.org/colors/download/colors-1.4.0.tgz?cache=0&sync_timestamp=1599054118809&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcolors%2Fdownload%2Fcolors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78" + integrity sha1-xQSRR51MG9rtLJztMs98fcI2D3g= + +commander@^2.19.0: + version "2.20.3" + resolved "https://registry.nlark.com/commander/download/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" + integrity sha1-/UhehMA+tIgcIHIrpIA16FMa6zM= + +core-js@^2.5.7: + version "2.6.12" + resolved "https://registry.nlark.com/core-js/download/core-js-2.6.12.tgz?cache=0&sync_timestamp=1621969909314&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fcore-js%2Fdownload%2Fcore-js-2.6.12.tgz#d9333dfa7b065e347cc5682219d6f690859cc2ec" + integrity sha1-2TM9+nsGXjR8xWgiGdb2kIWcwuw= + +debug@^4.3.2: + version "4.3.2" + resolved "https://registry.nlark.com/debug/download/debug-4.3.2.tgz?cache=0&sync_timestamp=1618847042350&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fdebug%2Fdownload%2Fdebug-4.3.2.tgz#f0a49c18ac8779e31d4a0c6029dfb76873c7428b" + integrity sha1-8KScGKyHeeMdSgxgKd+3aHPHQos= + dependencies: + ms "2.1.2" + +dom-walk@^0.1.0: + version "0.1.2" + resolved "https://registry.npm.taobao.org/dom-walk/download/dom-walk-0.1.2.tgz#0c548bef048f4d1f2a97249002236060daa3fd84" + integrity sha1-DFSL7wSPTR8qlySQAiNgYNqj/YQ= + +esbuild@^0.11.23: + version "0.11.23" + resolved "https://registry.nlark.com/esbuild/download/esbuild-0.11.23.tgz?cache=0&sync_timestamp=1622080632605&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fesbuild%2Fdownload%2Fesbuild-0.11.23.tgz#c42534f632e165120671d64db67883634333b4b8" + integrity sha1-xCU09jLhZRIGcdZNtniDY0MztLg= + +estree-walker@^2.0.1: + version "2.0.2" + resolved "https://registry.npm.taobao.org/estree-walker/download/estree-walker-2.0.2.tgz?cache=0&sync_timestamp=1611956983677&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Festree-walker%2Fdownload%2Festree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac" + integrity sha1-UvAQF4wqTBF6d1fP6UKtt9LaTKw= + +exif-parser@^0.1.12: + version "0.1.12" + resolved "https://registry.nlark.com/exif-parser/download/exif-parser-0.1.12.tgz#58a9d2d72c02c1f6f02a0ef4a9166272b7760922" + integrity sha1-WKnS1ywCwfbwKg70qRZicrd2CSI= + +file-type@^9.0.0: + version "9.0.0" + resolved "https://registry.nlark.com/file-type/download/file-type-9.0.0.tgz?cache=0&sync_timestamp=1620212346840&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ffile-type%2Fdownload%2Ffile-type-9.0.0.tgz#a68d5ad07f486414dfb2c8866f73161946714a18" + integrity sha1-po1a0H9IZBTfssiGb3MWGUZxShg= + +fsevents@~2.3.1: + version "2.3.2" + resolved "https://registry.npm.taobao.org/fsevents/download/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" + integrity sha1-ilJveLj99GI7cJ4Ll1xSwkwC/Ro= + +function-bind@^1.1.1: + version "1.1.1" + resolved "https://registry.npm.taobao.org/function-bind/download/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" + integrity sha1-pWiZ0+o8m6uHS7l3O3xe3pL0iV0= + +global@~4.4.0: + version "4.4.0" + resolved "https://registry.npm.taobao.org/global/download/global-4.4.0.tgz#3e7b105179006a323ed71aafca3e9c57a5cc6406" + integrity sha1-PnsQUXkAajI+1xqvyj6cV6XMZAY= + dependencies: + min-document "^2.19.0" + process "^0.11.10" + +handlebars@^4.7.2: + version "4.7.7" + resolved "https://registry.npm.taobao.org/handlebars/download/handlebars-4.7.7.tgz?cache=0&sync_timestamp=1613385269284&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fhandlebars%2Fdownload%2Fhandlebars-4.7.7.tgz#9ce33416aad02dbd6c8fafa8240d5d98004945a1" + integrity sha1-nOM0FqrQLb1sj6+oJA1dmABJRaE= + dependencies: + minimist "^1.2.5" + neo-async "^2.6.0" + source-map "^0.6.1" + wordwrap "^1.0.0" + optionalDependencies: + uglify-js "^3.1.4" + +has-flag@^4.0.0: + version "4.0.0" + resolved "https://registry.npm.taobao.org/has-flag/download/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" + integrity sha1-lEdx/ZyByBJlxNaUGGDaBrtZR5s= + +has@^1.0.3: + version "1.0.3" + resolved "https://registry.npm.taobao.org/has/download/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" + integrity sha1-ci18v8H2qoJB8W3YFOAR4fQeh5Y= + dependencies: + function-bind "^1.1.1" + +hash-sum@^2.0.0: + version "2.0.0" + resolved "https://registry.npm.taobao.org/hash-sum/download/hash-sum-2.0.0.tgz#81d01bb5de8ea4a214ad5d6ead1b523460b0b45a" + integrity sha1-gdAbtd6OpKIUrV1urRtSNGCwtFo= + +ieee754@^1.1.13: + version "1.2.1" + resolved "https://registry.nlark.com/ieee754/download/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" + integrity sha1-jrehCmP/8l0VpXsAFYbRd9Gw01I= + +is-core-module@^2.2.0: + version "2.4.0" + resolved "https://registry.nlark.com/is-core-module/download/is-core-module-2.4.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fis-core-module%2Fdownload%2Fis-core-module-2.4.0.tgz#8e9fc8e15027b011418026e98f0e6f4d86305cc1" + integrity sha1-jp/I4VAnsBFBgCbpjw5vTYYwXME= + dependencies: + has "^1.0.3" + +is-fullwidth-code-point@^2.0.0: + version "2.0.0" + resolved "https://registry.npm.taobao.org/is-fullwidth-code-point/download/is-fullwidth-code-point-2.0.0.tgz?cache=0&sync_timestamp=1618552489864&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fis-fullwidth-code-point%2Fdownload%2Fis-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" + integrity sha1-o7MKXE8ZkYMWeqq5O+764937ZU8= + +is-function@^1.0.1: + version "1.0.2" + resolved "https://registry.npm.taobao.org/is-function/download/is-function-1.0.2.tgz#4f097f30abf6efadac9833b17ca5dc03f8144e08" + integrity sha1-Twl/MKv2762smDOxfKXcA/gUTgg= + +is-invalid-path@^1.0.2: + version "1.0.2" + resolved "https://registry.npm.taobao.org/is-invalid-path/download/is-invalid-path-1.0.2.tgz#2f84731559f4936abcf1b227632719cf45c5dc0e" + integrity sha1-L4RzFVn0k2q88bInYycZz0XF3A4= + +jimp@^0.6.0: + version "0.6.8" + resolved "https://registry.nlark.com/jimp/download/jimp-0.6.8.tgz#63074984337cc469cd4030946e503e7c02a18b5c" + integrity sha1-YwdJhDN8xGnNQDCUblA+fAKhi1w= + dependencies: + "@jimp/custom" "^0.6.8" + "@jimp/plugins" "^0.6.8" + "@jimp/types" "^0.6.8" + core-js "^2.5.7" + regenerator-runtime "^0.13.3" + +jpeg-js@^0.3.4: + version "0.3.7" + resolved "https://registry.npm.taobao.org/jpeg-js/download/jpeg-js-0.3.7.tgz#471a89d06011640592d314158608690172b1028d" + integrity sha1-RxqJ0GARZAWS0xQVhghpAXKxAo0= + +js2xmlparser@^4.0.0: + version "4.0.1" + resolved "https://registry.npm.taobao.org/js2xmlparser/download/js2xmlparser-4.0.1.tgz#670ef71bc5661f089cc90481b99a05a1227ae3bd" + integrity sha1-Zw73G8VmHwicyQSBuZoFoSJ6470= + dependencies: + xmlcreate "^2.0.3" + +load-bmfont@^1.3.1, load-bmfont@^1.4.0: + version "1.4.1" + resolved "https://registry.npm.taobao.org/load-bmfont/download/load-bmfont-1.4.1.tgz#c0f5f4711a1e2ccff725a7b6078087ccfcddd3e9" + integrity sha1-wPX0cRoeLM/3Jae2B4CHzPzd0+k= + dependencies: + buffer-equal "0.0.1" + mime "^1.3.4" + parse-bmfont-ascii "^1.0.3" + parse-bmfont-binary "^1.0.5" + parse-bmfont-xml "^1.1.4" + phin "^2.9.1" + xhr "^2.0.1" + xtend "^4.0.0" + +map-limit@0.0.1: + version "0.0.1" + resolved "https://registry.npm.taobao.org/map-limit/download/map-limit-0.0.1.tgz#eb7961031c0f0e8d001bf2d56fab685d58822f38" + integrity sha1-63lhAxwPDo0AG/LVb6toXViCLzg= + dependencies: + once "~1.3.0" + +maxrects-packer@^2.4.0-alpha.0: + version "2.7.2" + resolved "https://registry.npm.taobao.org/maxrects-packer/download/maxrects-packer-2.7.2.tgz#47405e62353af117bab24874896839ec4f4e48db" + integrity sha1-R0BeYjU68Re6skh0iWg57E9OSNs= + +mime@^1.3.4: + version "1.6.0" + resolved "https://registry.npm.taobao.org/mime/download/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" + integrity sha1-Ms2eXGRVO9WNGaVor0Uqz/BJgbE= + +min-document@^2.19.0: + version "2.19.0" + resolved "https://registry.npm.taobao.org/min-document/download/min-document-2.19.0.tgz#7bd282e3f5842ed295bb748cdd9f1ffa2c824685" + integrity sha1-e9KC4/WELtKVu3SM3Z8f+iyCRoU= + dependencies: + dom-walk "^0.1.0" + +minimist@0.0.8: + version "0.0.8" + resolved "https://registry.nlark.com/minimist/download/minimist-0.0.8.tgz?cache=0&sync_timestamp=1618847017774&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fminimist%2Fdownload%2Fminimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" + integrity sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0= + +minimist@^1.2.5: + version "1.2.5" + resolved "https://registry.nlark.com/minimist/download/minimist-1.2.5.tgz?cache=0&sync_timestamp=1618847017774&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fminimist%2Fdownload%2Fminimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" + integrity sha1-Z9ZgFLZqaoqqDAg8X9WN9OTpdgI= + +mkdirp@0.5.1: + version "0.5.1" + resolved "https://registry.npm.taobao.org/mkdirp/download/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" + integrity sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM= + dependencies: + minimist "0.0.8" + +ms@2.1.2: + version "2.1.2" + resolved "https://registry.nlark.com/ms/download/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" + integrity sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk= + +msdf-bmfont-xml@^2.5.4: + version "2.5.4" + resolved "https://registry.nlark.com/msdf-bmfont-xml/download/msdf-bmfont-xml-2.5.4.tgz#79a335da054083cc619b0090af48be3dc3213376" + integrity sha1-eaM12gVAg8xhmwCQr0i+PcMhM3Y= + dependencies: + arabic-persian-reshaper "^1.0.1" + cli-progress "^2.1.1" + commander "^2.19.0" + handlebars "^4.7.2" + is-invalid-path "^1.0.2" + jimp "^0.6.0" + js2xmlparser "^4.0.0" + map-limit "0.0.1" + maxrects-packer "^2.4.0-alpha.0" + opentype.js "^0.11.0" + +nanoid@^3.1.23: + version "3.1.23" + resolved "https://registry.nlark.com/nanoid/download/nanoid-3.1.23.tgz#f744086ce7c2bc47ee0a8472574d5c78e4183a81" + integrity sha1-90QIbOfCvEfuCoRyV01ceOQYOoE= + +neo-async@^2.6.0: + version "2.6.2" + resolved "https://registry.nlark.com/neo-async/download/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" + integrity sha1-tKr7k+OustgXTKU88WOrfXMIMF8= + +omggif@^1.0.9: + version "1.0.10" + resolved "https://registry.nlark.com/omggif/download/omggif-1.0.10.tgz#ddaaf90d4a42f532e9e7cb3a95ecdd47f17c7b19" + integrity sha1-3ar5DUpC9TLp58s6lezdR/F8exk= + +once@~1.3.0: + version "1.3.3" + resolved "https://registry.nlark.com/once/download/once-1.3.3.tgz#b2e261557ce4c314ec8304f3fa82663e4297ca20" + integrity sha1-suJhVXzkwxTsgwTz+oJmPkKXyiA= + dependencies: + wrappy "1" + +opentype.js@^0.11.0: + version "0.11.0" + resolved "https://registry.npm.taobao.org/opentype.js/download/opentype.js-0.11.0.tgz#310f3fb85f09ca6cf22ac8cf540df67b418c3351" + integrity sha1-MQ8/uF8JymzyKsjPVA32e0GMM1E= + dependencies: + string.prototype.codepointat "^0.2.1" + tiny-inflate "^1.0.2" + +pako@^1.0.5: + version "1.0.11" + resolved "https://registry.nlark.com/pako/download/pako-1.0.11.tgz#6c9599d340d54dfd3946380252a35705a6b992bf" + integrity sha1-bJWZ00DVTf05RjgCUqNXBaa5kr8= + +parse-bmfont-ascii@^1.0.3: + version "1.0.6" + resolved "https://registry.npm.taobao.org/parse-bmfont-ascii/download/parse-bmfont-ascii-1.0.6.tgz#11ac3c3ff58f7c2020ab22769079108d4dfa0285" + integrity sha1-Eaw8P/WPfCAgqyJ2kHkQjU36AoU= + +parse-bmfont-binary@^1.0.5: + version "1.0.6" + resolved "https://registry.npm.taobao.org/parse-bmfont-binary/download/parse-bmfont-binary-1.0.6.tgz#d038b476d3e9dd9db1e11a0b0e53a22792b69006" + integrity sha1-0Di0dtPp3Z2x4RoLDlOiJ5K2kAY= + +parse-bmfont-xml@^1.1.4: + version "1.1.4" + resolved "https://registry.npm.taobao.org/parse-bmfont-xml/download/parse-bmfont-xml-1.1.4.tgz#015319797e3e12f9e739c4d513872cd2fa35f389" + integrity sha1-AVMZeX4+EvnnOcTVE4cs0vo184k= + dependencies: + xml-parse-from-string "^1.0.0" + xml2js "^0.4.5" + +parse-headers@^2.0.0: + version "2.0.3" + resolved "https://registry.npm.taobao.org/parse-headers/download/parse-headers-2.0.3.tgz#5e8e7512383d140ba02f0c7aa9f49b4399c92515" + integrity sha1-Xo51Ejg9FAugLwx6qfSbQ5nJJRU= + +path-parse@^1.0.6: + version "1.0.7" + resolved "https://registry.nlark.com/path-parse/download/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" + integrity sha1-+8EUtgykKzDZ2vWFjkvWi77bZzU= + +phin@^2.9.1: + version "2.9.3" + resolved "https://registry.nlark.com/phin/download/phin-2.9.3.tgz?cache=0&sync_timestamp=1622073969111&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fphin%2Fdownload%2Fphin-2.9.3.tgz#f9b6ac10a035636fb65dfc576aaaa17b8743125c" + integrity sha1-+basEKA1Y2+2XfxXaqqhe4dDElw= + +picomatch@^2.2.2: + version "2.3.0" + resolved "https://registry.nlark.com/picomatch/download/picomatch-2.3.0.tgz?cache=0&sync_timestamp=1621648246651&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fpicomatch%2Fdownload%2Fpicomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972" + integrity sha1-8fBh3o9qS/AiiS4tEoI0+5gwKXI= + +pixelmatch@^4.0.2: + version "4.0.2" + resolved "https://registry.npm.taobao.org/pixelmatch/download/pixelmatch-4.0.2.tgz#8f47dcec5011b477b67db03c243bc1f3085e8854" + integrity sha1-j0fc7FARtHe2fbA8JDvB8wheiFQ= + dependencies: + pngjs "^3.0.0" + +pngjs@^3.0.0, pngjs@^3.3.3: + version "3.4.0" + resolved "https://registry.npm.taobao.org/pngjs/download/pngjs-3.4.0.tgz?cache=0&sync_timestamp=1603551107900&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpngjs%2Fdownload%2Fpngjs-3.4.0.tgz#99ca7d725965fb655814eaf65f38f12bbdbf555f" + integrity sha1-mcp9clll+2VYFOr2XzjxK72/VV8= + +postcss@^8.2.10: + version "8.3.0" + resolved "https://registry.nlark.com/postcss/download/postcss-8.3.0.tgz?cache=0&sync_timestamp=1621568644827&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fpostcss%2Fdownload%2Fpostcss-8.3.0.tgz#b1a713f6172ca427e3f05ef1303de8b65683325f" + integrity sha1-sacT9hcspCfj8F7xMD3otlaDMl8= + dependencies: + colorette "^1.2.2" + nanoid "^3.1.23" + source-map-js "^0.6.2" + +process@^0.11.10: + version "0.11.10" + resolved "https://registry.npm.taobao.org/process/download/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" + integrity sha1-czIwDoQBYb2j5podHZGn1LwW8YI= + +regenerator-runtime@^0.13.3: + version "0.13.7" + resolved "https://registry.nlark.com/regenerator-runtime/download/regenerator-runtime-0.13.7.tgz#cac2dacc8a1ea675feaabaeb8ae833898ae46f55" + integrity sha1-ysLazIoepnX+qrrriugziYrkb1U= + +require-relative@^0.8.7: + version "0.8.7" + resolved "https://registry.npm.taobao.org/require-relative/download/require-relative-0.8.7.tgz#7999539fc9e047a37928fa196f8e1563dabd36de" + integrity sha1-eZlTn8ngR6N5KPoZb44VY9q9Nt4= + +resolve@^1.19.0: + version "1.20.0" + resolved "https://registry.nlark.com/resolve/download/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975" + integrity sha1-YpoBP7P3B1XW8LeTXMHCxTeLGXU= + dependencies: + is-core-module "^2.2.0" + path-parse "^1.0.6" + +rollup@^2.38.5: + version "2.50.1" + resolved "https://registry.nlark.com/rollup/download/rollup-2.50.1.tgz?cache=0&sync_timestamp=1622014232980&other_urls=https%3A%2F%2Fregistry.nlark.com%2Frollup%2Fdownload%2Frollup-2.50.1.tgz#5d52d5c65ade19164d56efec98f16a461c6df38e" + integrity sha1-XVLVxlreGRZNVu/smPFqRhxt844= + optionalDependencies: + fsevents "~2.3.1" + +sax@>=0.6.0: + version "1.2.4" + resolved "https://registry.npm.taobao.org/sax/download/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" + integrity sha1-KBYjTiN4vdxOU1T6tcqold9xANk= + +slash@^4.0.0: + version "4.0.0" + resolved "https://registry.nlark.com/slash/download/slash-4.0.0.tgz#2422372176c4c6c5addb5e2ada885af984b396a7" + integrity sha1-JCI3IXbExsWt214q2oha+YSzlqc= + +source-map-js@^0.6.2: + version "0.6.2" + resolved "https://registry.npm.taobao.org/source-map-js/download/source-map-js-0.6.2.tgz#0bb5de631b41cfbda6cfba8bd05a80efdfd2385e" + integrity sha1-C7XeYxtBz72mz7qL0FqA79/SOF4= + +source-map@^0.6.1: + version "0.6.1" + resolved "https://registry.nlark.com/source-map/download/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + integrity sha1-dHIq8y6WFOnCh6jQu95IteLxomM= + +source-map@^0.7.3: + version "0.7.3" + resolved "https://registry.nlark.com/source-map/download/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383" + integrity sha1-UwL4FpAxc1ImVECS5kmB91F1A4M= + +string-width@^2.1.1: + version "2.1.1" + resolved "https://registry.nlark.com/string-width/download/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" + integrity sha1-q5Pyeo3BPSjKyBXEYhQ6bZASrp4= + dependencies: + is-fullwidth-code-point "^2.0.0" + strip-ansi "^4.0.0" + +string.prototype.codepointat@^0.2.1: + version "0.2.1" + resolved "https://registry.npm.taobao.org/string.prototype.codepointat/download/string.prototype.codepointat-0.2.1.tgz#004ad44c8afc727527b108cd462b4d971cd469bc" + integrity sha1-AErUTIr8cnUnsQjNRitNlxzUabw= + +strip-ansi@^4.0.0: + version "4.0.0" + resolved "https://registry.npm.taobao.org/strip-ansi/download/strip-ansi-4.0.0.tgz?cache=0&sync_timestamp=1618553320591&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fstrip-ansi%2Fdownload%2Fstrip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" + integrity sha1-qEeQIusaw2iocTibY1JixQXuNo8= + dependencies: + ansi-regex "^3.0.0" + +supports-color@^7.1.0: + version "7.2.0" + resolved "https://registry.npm.taobao.org/supports-color/download/supports-color-7.2.0.tgz?cache=0&sync_timestamp=1618560983872&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsupports-color%2Fdownload%2Fsupports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" + integrity sha1-G33NyzK4E4gBs+R4umpRyqiWSNo= + dependencies: + has-flag "^4.0.0" + +svelte-hmr@^0.14.2: + version "0.14.4" + resolved "https://registry.nlark.com/svelte-hmr/download/svelte-hmr-0.14.4.tgz#b7ef2bfeef23916e0e912828c50645ca572ac355" + integrity sha1-t+8r/u8jkW4OkSgoxQZFylcqw1U= + +svelte@^3.37.0: + version "3.38.2" + resolved "https://registry.nlark.com/svelte/download/svelte-3.38.2.tgz#55e5c681f793ae349b5cc2fe58e5782af4275ef5" + integrity sha1-VeXGgfeTrjSbXML+WOV4KvQnXvU= + +timm@^1.6.1: + version "1.7.1" + resolved "https://registry.npm.taobao.org/timm/download/timm-1.7.1.tgz#96bab60c7d45b5a10a8a4d0f0117c6b7e5aff76f" + integrity sha1-lrq2DH1FtaEKik0PARfGt+Wv928= + +tiny-inflate@^1.0.2: + version "1.0.3" + resolved "https://registry.npm.taobao.org/tiny-inflate/download/tiny-inflate-1.0.3.tgz#122715494913a1805166aaf7c93467933eea26c4" + integrity sha1-EicVSUkToYBRZqr3yTRnkz7qJsQ= + +tinycolor2@^1.4.1: + version "1.4.2" + resolved "https://registry.npm.taobao.org/tinycolor2/download/tinycolor2-1.4.2.tgz#3f6a4d1071ad07676d7fa472e1fac40a719d8803" + integrity sha1-P2pNEHGtB2dtf6Ry4frECnGdiAM= + +uglify-js@^3.1.4: + version "3.13.8" + resolved "https://registry.nlark.com/uglify-js/download/uglify-js-3.13.8.tgz#7c2f9f2553f611f3ff592bdc19c6fb208dc60afb" + integrity sha1-fC+fJVP2EfP/WSvcGcb7II3GCvs= + +utif@^2.0.1: + version "2.0.1" + resolved "https://registry.npm.taobao.org/utif/download/utif-2.0.1.tgz#9e1582d9bbd20011a6588548ed3266298e711759" + integrity sha1-nhWC2bvSABGmWIVI7TJmKY5xF1k= + dependencies: + pako "^1.0.5" + +vite@^2.3.4: + version "2.3.4" + resolved "https://registry.nlark.com/vite/download/vite-2.3.4.tgz?cache=0&sync_timestamp=1621932554383&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fvite%2Fdownload%2Fvite-2.3.4.tgz#370118e0334725b898ff754ea43d5db4c5e120e3" + integrity sha1-NwEY4DNHJbiY/3VOpD1dtMXhIOM= + dependencies: + esbuild "^0.11.23" + postcss "^8.2.10" + resolve "^1.19.0" + rollup "^2.38.5" + optionalDependencies: + fsevents "~2.3.1" + +wordwrap@^1.0.0: + version "1.0.0" + resolved "https://registry.nlark.com/wordwrap/download/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" + integrity sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus= + +wrappy@1: + version "1.0.2" + resolved "https://registry.nlark.com/wrappy/download/wrappy-1.0.2.tgz?cache=0&sync_timestamp=1619133505879&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fwrappy%2Fdownload%2Fwrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= + +xhr@^2.0.1: + version "2.6.0" + resolved "https://registry.npm.taobao.org/xhr/download/xhr-2.6.0.tgz#b69d4395e792b4173d6b7df077f0fc5e4e2b249d" + integrity sha1-tp1DleeStBc9a33wd/D8Xk4rJJ0= + dependencies: + global "~4.4.0" + is-function "^1.0.1" + parse-headers "^2.0.0" + xtend "^4.0.0" + +xml-parse-from-string@^1.0.0: + version "1.0.1" + resolved "https://registry.npm.taobao.org/xml-parse-from-string/download/xml-parse-from-string-1.0.1.tgz#a9029e929d3dbcded169f3c6e28238d95a5d5a28" + integrity sha1-qQKekp09vN7RafPG4oI42VpdWig= + +xml2js@^0.4.5: + version "0.4.23" + resolved "https://registry.npm.taobao.org/xml2js/download/xml2js-0.4.23.tgz?cache=0&sync_timestamp=1599054229598&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fxml2js%2Fdownload%2Fxml2js-0.4.23.tgz#a0c69516752421eb2ac758ee4d4ccf58843eac66" + integrity sha1-oMaVFnUkIesqx1juTUzPWIQ+rGY= + dependencies: + sax ">=0.6.0" + xmlbuilder "~11.0.0" + +xmlbuilder@~11.0.0: + version "11.0.1" + resolved "https://registry.npm.taobao.org/xmlbuilder/download/xmlbuilder-11.0.1.tgz#be9bae1c8a046e76b31127726347d0ad7002beb3" + integrity sha1-vpuuHIoEbnazESdyY0fQrXACvrM= + +xmlcreate@^2.0.3: + version "2.0.3" + resolved "https://registry.npm.taobao.org/xmlcreate/download/xmlcreate-2.0.3.tgz#df9ecd518fd3890ab3548e1b811d040614993497" + integrity sha1-357NUY/TiQqzVI4bgR0EBhSZNJc= + +xtend@^4.0.0: + version "4.0.2" + resolved "https://registry.npm.taobao.org/xtend/download/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54" + integrity sha1-u3J3n1+kZRhrH0OPZ0+jR/2121Q= diff --git a/svelte-ts-cesium/.gitignore b/svelte-ts-cesium/.gitignore new file mode 100644 index 0000000..126fe84 --- /dev/null +++ b/svelte-ts-cesium/.gitignore @@ -0,0 +1,4 @@ +/node_modules/ +/dist/ +/.vscode/ +.DS_Store diff --git a/svelte-ts-cesium/index.html b/svelte-ts-cesium/index.html new file mode 100644 index 0000000..91bcd17 --- /dev/null +++ b/svelte-ts-cesium/index.html @@ -0,0 +1,16 @@ + + + + + + + Cesium App in Svelte Ts + + +
+ + + + diff --git a/svelte-ts-cesium/package.json b/svelte-ts-cesium/package.json new file mode 100644 index 0000000..348f98c --- /dev/null +++ b/svelte-ts-cesium/package.json @@ -0,0 +1,20 @@ +{ + "name": "svelte-ts-cesium", + "version": "0.0.0", + "scripts": { + "dev": "vite", + "build": "vite build", + "serve": "vite preview" + }, + "devDependencies": { + "@sveltejs/vite-plugin-svelte": "^1.0.0-next.7", + "@types/cesium": "^1.67.13", + "svelte": "^3.37.0", + "svelte-preprocess": "^4.7.2", + "typescript": "^4.2.4", + "vite": "^2.3.4" + }, + "dependencies": { + "cesium": "^1.81.0" + } +} diff --git a/svelte-ts-cesium/src/App.svelte b/svelte-ts-cesium/src/App.svelte new file mode 100644 index 0000000..e501676 --- /dev/null +++ b/svelte-ts-cesium/src/App.svelte @@ -0,0 +1,23 @@ + + +
+
+
+ + diff --git a/svelte-ts-cesium/src/main.css b/svelte-ts-cesium/src/main.css new file mode 100644 index 0000000..7e02ab5 --- /dev/null +++ b/svelte-ts-cesium/src/main.css @@ -0,0 +1,9 @@ +html, body { + margin: 0; + padding: 0; +} + +#app { + width: 100vw; + height: 100vh; +} \ No newline at end of file diff --git a/svelte-ts-cesium/src/main.ts b/svelte-ts-cesium/src/main.ts new file mode 100644 index 0000000..2112127 --- /dev/null +++ b/svelte-ts-cesium/src/main.ts @@ -0,0 +1,8 @@ +import App from './App.svelte' +import './main.css' + +const app = new App({ + target: document.getElementById('app') +}) + +export default app diff --git a/svelte-ts-cesium/src/vite-env.d.ts b/svelte-ts-cesium/src/vite-env.d.ts new file mode 100644 index 0000000..4078e74 --- /dev/null +++ b/svelte-ts-cesium/src/vite-env.d.ts @@ -0,0 +1,2 @@ +/// +/// diff --git a/svelte-ts-cesium/svelte.config.cjs b/svelte-ts-cesium/svelte.config.cjs new file mode 100644 index 0000000..0b32783 --- /dev/null +++ b/svelte-ts-cesium/svelte.config.cjs @@ -0,0 +1,7 @@ +const sveltePreprocess = require('svelte-preprocess') + +module.exports = { + // Consult https://github.com/sveltejs/svelte-preprocess + // for more information about preprocessors + preprocess: sveltePreprocess() +} diff --git a/svelte-ts-cesium/tsconfig.json b/svelte-ts-cesium/tsconfig.json new file mode 100644 index 0000000..15d55f6 --- /dev/null +++ b/svelte-ts-cesium/tsconfig.json @@ -0,0 +1,37 @@ +{ + "compilerOptions": { + "moduleResolution": "node", + "target": "esnext", + "module": "esnext", + /** + * svelte-preprocess cannot figure out whether you have + * a value or a type, so tell TypeScript to enforce using + * `import type` instead of `import` for Types. + */ + "importsNotUsedAsValues": "error", + "isolatedModules": true, + "resolveJsonModule": true, + /** + * To have warnings / errors of the Svelte compiler at the + * correct position, enable source maps by default. + */ + "sourceMap": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "baseUrl": ".", + /** + * Typecheck JS in `.svelte` and `.js` files by default. + * Disable checkJs if you'd like to use dynamic types in JS. + * Note that setting allowJs false does not prevent the use + * of JS in `.svelte` files. + */ + "allowJs": true, + "checkJs": true + }, + /** + * Use global.d.ts instead of compilerOptions.types + * to avoid limiting type declarations. + */ + "include": ["src/**/*.d.ts", "src/**/*.ts", "src/**/*.js", "src/**/*.svelte"] +} diff --git a/svelte-ts-cesium/vite.config.js b/svelte-ts-cesium/vite.config.js new file mode 100644 index 0000000..d0fd69a --- /dev/null +++ b/svelte-ts-cesium/vite.config.js @@ -0,0 +1,7 @@ +import { defineConfig } from 'vite' +import svelte from '@sveltejs/vite-plugin-svelte' + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [svelte()] +}) diff --git a/svelte-ts-cesium/yarn.lock b/svelte-ts-cesium/yarn.lock new file mode 100644 index 0000000..bd73c75 --- /dev/null +++ b/svelte-ts-cesium/yarn.lock @@ -0,0 +1,260 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@rollup/pluginutils@^4.1.0": + version "4.1.0" + resolved "https://registry.npm.taobao.org/@rollup/pluginutils/download/@rollup/pluginutils-4.1.0.tgz?cache=0&sync_timestamp=1603767889260&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40rollup%2Fpluginutils%2Fdownload%2F%40rollup%2Fpluginutils-4.1.0.tgz#0dcc61c780e39257554feb7f77207dceca13c838" + integrity sha1-Dcxhx4DjkldVT+t/dyB9zsoTyDg= + dependencies: + estree-walker "^2.0.1" + picomatch "^2.2.2" + +"@sveltejs/vite-plugin-svelte@^1.0.0-next.7": + version "1.0.0-next.10" + resolved "https://registry.nlark.com/@sveltejs/vite-plugin-svelte/download/@sveltejs/vite-plugin-svelte-1.0.0-next.10.tgz#15526067ea2edd334420b1e14602e29b370be25e" + integrity sha1-FVJgZ+ou3TNEILHhRgLimzcL4l4= + dependencies: + "@rollup/pluginutils" "^4.1.0" + chalk "^4.1.1" + debug "^4.3.2" + hash-sum "^2.0.0" + require-relative "^0.8.7" + slash "^4.0.0" + source-map "^0.7.3" + svelte-hmr "^0.14.2" + +"@types/cesium@^1.67.13": + version "1.67.13" + resolved "https://registry.nlark.com/@types/cesium/download/@types/cesium-1.67.13.tgz?cache=0&sync_timestamp=1621241252613&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fcesium%2Fdownload%2F%40types%2Fcesium-1.67.13.tgz#33f14d893257ab7fdf549cd36ae33a1421954b34" + integrity sha1-M/FNiTJXq3/fVJzTauM6FCGVSzQ= + +"@types/node@*": + version "15.6.1" + resolved "https://registry.nlark.com/@types/node/download/@types/node-15.6.1.tgz?cache=0&sync_timestamp=1621901244878&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fnode%2Fdownload%2F%40types%2Fnode-15.6.1.tgz#32d43390d5c62c5b6ec486a9bc9c59544de39a08" + integrity sha1-MtQzkNXGLFtuxIapvJxZVE3jmgg= + +"@types/pug@^2.0.4": + version "2.0.4" + resolved "https://registry.nlark.com/@types/pug/download/@types/pug-2.0.4.tgz#8772fcd0418e3cd2cc171555d73007415051f4b2" + integrity sha1-h3L80EGOPNLMFxVV1zAHQVBR9LI= + +"@types/sass@^1.16.0": + version "1.16.0" + resolved "https://registry.nlark.com/@types/sass/download/@types/sass-1.16.0.tgz?cache=0&sync_timestamp=1621242658800&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fsass%2Fdownload%2F%40types%2Fsass-1.16.0.tgz#b41ac1c17fa68ffb57d43e2360486ef526b3d57d" + integrity sha1-tBrBwX+mj/tX1D4jYEhu9Saz1X0= + dependencies: + "@types/node" "*" + +ansi-styles@^4.1.0: + version "4.3.0" + resolved "https://registry.nlark.com/ansi-styles/download/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" + integrity sha1-7dgDYornHATIWuegkG7a00tkiTc= + dependencies: + color-convert "^2.0.1" + +cesium@^1.81.0: + version "1.81.0" + resolved "https://registry.nlark.com/cesium/download/cesium-1.81.0.tgz#7115cb7fcc386ba6190ca666059375a77afac149" + integrity sha1-cRXLf8w4a6YZDKZmBZN1p3r6wUk= + +chalk@^4.1.1: + version "4.1.1" + resolved "https://registry.nlark.com/chalk/download/chalk-4.1.1.tgz?cache=0&sync_timestamp=1618995367379&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fchalk%2Fdownload%2Fchalk-4.1.1.tgz#c80b3fab28bf6371e6863325eee67e618b77e6ad" + integrity sha1-yAs/qyi/Y3HmhjMl7uZ+YYt35q0= + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.npm.taobao.org/color-convert/download/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" + integrity sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM= + dependencies: + color-name "~1.1.4" + +color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.nlark.com/color-name/download/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" + integrity sha1-wqCah6y95pVD3m9j+jmVyCbFNqI= + +colorette@^1.2.2: + version "1.2.2" + resolved "https://registry.nlark.com/colorette/download/colorette-1.2.2.tgz#cbcc79d5e99caea2dbf10eb3a26fd8b3e6acfa94" + integrity sha1-y8x51emcrqLb8Q6zom/Ys+as+pQ= + +debug@^4.3.2: + version "4.3.2" + resolved "https://registry.nlark.com/debug/download/debug-4.3.2.tgz?cache=0&sync_timestamp=1618847042350&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fdebug%2Fdownload%2Fdebug-4.3.2.tgz#f0a49c18ac8779e31d4a0c6029dfb76873c7428b" + integrity sha1-8KScGKyHeeMdSgxgKd+3aHPHQos= + dependencies: + ms "2.1.2" + +detect-indent@^6.0.0: + version "6.0.0" + resolved "https://registry.nlark.com/detect-indent/download/detect-indent-6.0.0.tgz?cache=0&sync_timestamp=1618847118351&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fdetect-indent%2Fdownload%2Fdetect-indent-6.0.0.tgz#0abd0f549f69fc6659a254fe96786186b6f528fd" + integrity sha1-Cr0PVJ9p/GZZolT+lnhhhrb1KP0= + +esbuild@^0.11.23: + version "0.11.23" + resolved "https://registry.nlark.com/esbuild/download/esbuild-0.11.23.tgz?cache=0&sync_timestamp=1622080632605&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fesbuild%2Fdownload%2Fesbuild-0.11.23.tgz#c42534f632e165120671d64db67883634333b4b8" + integrity sha1-xCU09jLhZRIGcdZNtniDY0MztLg= + +estree-walker@^2.0.1: + version "2.0.2" + resolved "https://registry.npm.taobao.org/estree-walker/download/estree-walker-2.0.2.tgz?cache=0&sync_timestamp=1611956983677&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Festree-walker%2Fdownload%2Festree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac" + integrity sha1-UvAQF4wqTBF6d1fP6UKtt9LaTKw= + +fsevents@~2.3.1: + version "2.3.2" + resolved "https://registry.npm.taobao.org/fsevents/download/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" + integrity sha1-ilJveLj99GI7cJ4Ll1xSwkwC/Ro= + +function-bind@^1.1.1: + version "1.1.1" + resolved "https://registry.npm.taobao.org/function-bind/download/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" + integrity sha1-pWiZ0+o8m6uHS7l3O3xe3pL0iV0= + +has-flag@^4.0.0: + version "4.0.0" + resolved "https://registry.npm.taobao.org/has-flag/download/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" + integrity sha1-lEdx/ZyByBJlxNaUGGDaBrtZR5s= + +has@^1.0.3: + version "1.0.3" + resolved "https://registry.npm.taobao.org/has/download/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" + integrity sha1-ci18v8H2qoJB8W3YFOAR4fQeh5Y= + dependencies: + function-bind "^1.1.1" + +hash-sum@^2.0.0: + version "2.0.0" + resolved "https://registry.npm.taobao.org/hash-sum/download/hash-sum-2.0.0.tgz#81d01bb5de8ea4a214ad5d6ead1b523460b0b45a" + integrity sha1-gdAbtd6OpKIUrV1urRtSNGCwtFo= + +is-core-module@^2.2.0: + version "2.4.0" + resolved "https://registry.nlark.com/is-core-module/download/is-core-module-2.4.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fis-core-module%2Fdownload%2Fis-core-module-2.4.0.tgz#8e9fc8e15027b011418026e98f0e6f4d86305cc1" + integrity sha1-jp/I4VAnsBFBgCbpjw5vTYYwXME= + dependencies: + has "^1.0.3" + +min-indent@^1.0.0: + version "1.0.1" + resolved "https://registry.npm.taobao.org/min-indent/download/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869" + integrity sha1-pj9oFnOzBXH76LwlaGrnRu76mGk= + +ms@2.1.2: + version "2.1.2" + resolved "https://registry.nlark.com/ms/download/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" + integrity sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk= + +nanoid@^3.1.23: + version "3.1.23" + resolved "https://registry.nlark.com/nanoid/download/nanoid-3.1.23.tgz#f744086ce7c2bc47ee0a8472574d5c78e4183a81" + integrity sha1-90QIbOfCvEfuCoRyV01ceOQYOoE= + +path-parse@^1.0.6: + version "1.0.7" + resolved "https://registry.nlark.com/path-parse/download/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" + integrity sha1-+8EUtgykKzDZ2vWFjkvWi77bZzU= + +picomatch@^2.2.2: + version "2.3.0" + resolved "https://registry.nlark.com/picomatch/download/picomatch-2.3.0.tgz?cache=0&sync_timestamp=1621648246651&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fpicomatch%2Fdownload%2Fpicomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972" + integrity sha1-8fBh3o9qS/AiiS4tEoI0+5gwKXI= + +postcss@^8.2.10: + version "8.3.0" + resolved "https://registry.nlark.com/postcss/download/postcss-8.3.0.tgz?cache=0&sync_timestamp=1621568644827&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fpostcss%2Fdownload%2Fpostcss-8.3.0.tgz#b1a713f6172ca427e3f05ef1303de8b65683325f" + integrity sha1-sacT9hcspCfj8F7xMD3otlaDMl8= + dependencies: + colorette "^1.2.2" + nanoid "^3.1.23" + source-map-js "^0.6.2" + +require-relative@^0.8.7: + version "0.8.7" + resolved "https://registry.npm.taobao.org/require-relative/download/require-relative-0.8.7.tgz#7999539fc9e047a37928fa196f8e1563dabd36de" + integrity sha1-eZlTn8ngR6N5KPoZb44VY9q9Nt4= + +resolve@^1.19.0: + version "1.20.0" + resolved "https://registry.nlark.com/resolve/download/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975" + integrity sha1-YpoBP7P3B1XW8LeTXMHCxTeLGXU= + dependencies: + is-core-module "^2.2.0" + path-parse "^1.0.6" + +rollup@^2.38.5: + version "2.50.1" + resolved "https://registry.nlark.com/rollup/download/rollup-2.50.1.tgz?cache=0&sync_timestamp=1622014232980&other_urls=https%3A%2F%2Fregistry.nlark.com%2Frollup%2Fdownload%2Frollup-2.50.1.tgz#5d52d5c65ade19164d56efec98f16a461c6df38e" + integrity sha1-XVLVxlreGRZNVu/smPFqRhxt844= + optionalDependencies: + fsevents "~2.3.1" + +slash@^4.0.0: + version "4.0.0" + resolved "https://registry.nlark.com/slash/download/slash-4.0.0.tgz#2422372176c4c6c5addb5e2ada885af984b396a7" + integrity sha1-JCI3IXbExsWt214q2oha+YSzlqc= + +source-map-js@^0.6.2: + version "0.6.2" + resolved "https://registry.npm.taobao.org/source-map-js/download/source-map-js-0.6.2.tgz#0bb5de631b41cfbda6cfba8bd05a80efdfd2385e" + integrity sha1-C7XeYxtBz72mz7qL0FqA79/SOF4= + +source-map@^0.7.3: + version "0.7.3" + resolved "https://registry.nlark.com/source-map/download/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383" + integrity sha1-UwL4FpAxc1ImVECS5kmB91F1A4M= + +strip-indent@^3.0.0: + version "3.0.0" + resolved "https://registry.nlark.com/strip-indent/download/strip-indent-3.0.0.tgz?cache=0&sync_timestamp=1620053310624&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fstrip-indent%2Fdownload%2Fstrip-indent-3.0.0.tgz#c32e1cee940b6b3432c771bc2c54bcce73cd3001" + integrity sha1-wy4c7pQLazQyx3G8LFS8znPNMAE= + dependencies: + min-indent "^1.0.0" + +supports-color@^7.1.0: + version "7.2.0" + resolved "https://registry.npm.taobao.org/supports-color/download/supports-color-7.2.0.tgz?cache=0&sync_timestamp=1618560983872&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsupports-color%2Fdownload%2Fsupports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" + integrity sha1-G33NyzK4E4gBs+R4umpRyqiWSNo= + dependencies: + has-flag "^4.0.0" + +svelte-hmr@^0.14.2: + version "0.14.4" + resolved "https://registry.nlark.com/svelte-hmr/download/svelte-hmr-0.14.4.tgz#b7ef2bfeef23916e0e912828c50645ca572ac355" + integrity sha1-t+8r/u8jkW4OkSgoxQZFylcqw1U= + +svelte-preprocess@^4.7.2: + version "4.7.3" + resolved "https://registry.nlark.com/svelte-preprocess/download/svelte-preprocess-4.7.3.tgz#454fa059c2400b15e7a3caeca18993cff9df0e96" + integrity sha1-RU+gWcJACxXno8rsoYmTz/nfDpY= + dependencies: + "@types/pug" "^2.0.4" + "@types/sass" "^1.16.0" + detect-indent "^6.0.0" + strip-indent "^3.0.0" + +svelte@^3.37.0: + version "3.38.2" + resolved "https://registry.nlark.com/svelte/download/svelte-3.38.2.tgz#55e5c681f793ae349b5cc2fe58e5782af4275ef5" + integrity sha1-VeXGgfeTrjSbXML+WOV4KvQnXvU= + +typescript@^4.2.4: + version "4.3.2" + resolved "https://registry.nlark.com/typescript/download/typescript-4.3.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ftypescript%2Fdownload%2Ftypescript-4.3.2.tgz#399ab18aac45802d6f2498de5054fcbbe716a805" + integrity sha1-OZqxiqxFgC1vJJjeUFT8u+cWqAU= + +vite@^2.3.4: + version "2.3.4" + resolved "https://registry.nlark.com/vite/download/vite-2.3.4.tgz?cache=0&sync_timestamp=1621932554383&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fvite%2Fdownload%2Fvite-2.3.4.tgz#370118e0334725b898ff754ea43d5db4c5e120e3" + integrity sha1-NwEY4DNHJbiY/3VOpD1dtMXhIOM= + dependencies: + esbuild "^0.11.23" + postcss "^8.2.10" + resolve "^1.19.0" + rollup "^2.38.5" + optionalDependencies: + fsevents "~2.3.1" diff --git a/svelte-ts-leaflet/.gitignore b/svelte-ts-leaflet/.gitignore new file mode 100644 index 0000000..126fe84 --- /dev/null +++ b/svelte-ts-leaflet/.gitignore @@ -0,0 +1,4 @@ +/node_modules/ +/dist/ +/.vscode/ +.DS_Store diff --git a/svelte-ts-leaflet/index.html b/svelte-ts-leaflet/index.html new file mode 100644 index 0000000..3803d1e --- /dev/null +++ b/svelte-ts-leaflet/index.html @@ -0,0 +1,12 @@ + + + + + + Leaflet 1.7 with Svelte Ts + + +
+ + + diff --git a/svelte-ts-leaflet/package.json b/svelte-ts-leaflet/package.json new file mode 100644 index 0000000..3cce8dc --- /dev/null +++ b/svelte-ts-leaflet/package.json @@ -0,0 +1,20 @@ +{ + "name": "svelte-ts-leaflet", + "version": "0.0.0", + "scripts": { + "dev": "vite", + "build": "vite build", + "serve": "vite preview" + }, + "devDependencies": { + "@sveltejs/vite-plugin-svelte": "^1.0.0-next.7", + "@types/leaflet": "^1.7.0", + "svelte": "^3.37.0", + "svelte-preprocess": "^4.7.2", + "typescript": "^4.2.4", + "vite": "^2.3.4" + }, + "dependencies": { + "leaflet": "^1.7.1" + } +} diff --git a/svelte-ts-leaflet/src/App.svelte b/svelte-ts-leaflet/src/App.svelte new file mode 100644 index 0000000..4791191 --- /dev/null +++ b/svelte-ts-leaflet/src/App.svelte @@ -0,0 +1,27 @@ + + +
+
+
+ + diff --git a/svelte-ts-leaflet/src/main.css b/svelte-ts-leaflet/src/main.css new file mode 100644 index 0000000..7e02ab5 --- /dev/null +++ b/svelte-ts-leaflet/src/main.css @@ -0,0 +1,9 @@ +html, body { + margin: 0; + padding: 0; +} + +#app { + width: 100vw; + height: 100vh; +} \ No newline at end of file diff --git a/svelte-ts-leaflet/src/main.ts b/svelte-ts-leaflet/src/main.ts new file mode 100644 index 0000000..3bfce9c --- /dev/null +++ b/svelte-ts-leaflet/src/main.ts @@ -0,0 +1,8 @@ +import App from './App.svelte' +import "./main.css" + +const app = new App({ + target: document.getElementById('app') +}) + +export default app diff --git a/svelte-ts-leaflet/src/vite-env.d.ts b/svelte-ts-leaflet/src/vite-env.d.ts new file mode 100644 index 0000000..4078e74 --- /dev/null +++ b/svelte-ts-leaflet/src/vite-env.d.ts @@ -0,0 +1,2 @@ +/// +/// diff --git a/svelte-ts-leaflet/svelte.config.cjs b/svelte-ts-leaflet/svelte.config.cjs new file mode 100644 index 0000000..0b32783 --- /dev/null +++ b/svelte-ts-leaflet/svelte.config.cjs @@ -0,0 +1,7 @@ +const sveltePreprocess = require('svelte-preprocess') + +module.exports = { + // Consult https://github.com/sveltejs/svelte-preprocess + // for more information about preprocessors + preprocess: sveltePreprocess() +} diff --git a/svelte-ts-leaflet/tsconfig.json b/svelte-ts-leaflet/tsconfig.json new file mode 100644 index 0000000..15d55f6 --- /dev/null +++ b/svelte-ts-leaflet/tsconfig.json @@ -0,0 +1,37 @@ +{ + "compilerOptions": { + "moduleResolution": "node", + "target": "esnext", + "module": "esnext", + /** + * svelte-preprocess cannot figure out whether you have + * a value or a type, so tell TypeScript to enforce using + * `import type` instead of `import` for Types. + */ + "importsNotUsedAsValues": "error", + "isolatedModules": true, + "resolveJsonModule": true, + /** + * To have warnings / errors of the Svelte compiler at the + * correct position, enable source maps by default. + */ + "sourceMap": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "baseUrl": ".", + /** + * Typecheck JS in `.svelte` and `.js` files by default. + * Disable checkJs if you'd like to use dynamic types in JS. + * Note that setting allowJs false does not prevent the use + * of JS in `.svelte` files. + */ + "allowJs": true, + "checkJs": true + }, + /** + * Use global.d.ts instead of compilerOptions.types + * to avoid limiting type declarations. + */ + "include": ["src/**/*.d.ts", "src/**/*.ts", "src/**/*.js", "src/**/*.svelte"] +} diff --git a/svelte-ts-leaflet/vite.config.js b/svelte-ts-leaflet/vite.config.js new file mode 100644 index 0000000..d0fd69a --- /dev/null +++ b/svelte-ts-leaflet/vite.config.js @@ -0,0 +1,7 @@ +import { defineConfig } from 'vite' +import svelte from '@sveltejs/vite-plugin-svelte' + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [svelte()] +}) diff --git a/svelte-ts-leaflet/yarn.lock b/svelte-ts-leaflet/yarn.lock new file mode 100644 index 0000000..ca1da6a --- /dev/null +++ b/svelte-ts-leaflet/yarn.lock @@ -0,0 +1,267 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@rollup/pluginutils@^4.1.0": + version "4.1.0" + resolved "https://registry.npm.taobao.org/@rollup/pluginutils/download/@rollup/pluginutils-4.1.0.tgz?cache=0&sync_timestamp=1603765619888&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40rollup%2Fpluginutils%2Fdownload%2F%40rollup%2Fpluginutils-4.1.0.tgz#0dcc61c780e39257554feb7f77207dceca13c838" + integrity sha1-Dcxhx4DjkldVT+t/dyB9zsoTyDg= + dependencies: + estree-walker "^2.0.1" + picomatch "^2.2.2" + +"@sveltejs/vite-plugin-svelte@^1.0.0-next.7": + version "1.0.0-next.10" + resolved "https://registry.nlark.com/@sveltejs/vite-plugin-svelte/download/@sveltejs/vite-plugin-svelte-1.0.0-next.10.tgz#15526067ea2edd334420b1e14602e29b370be25e" + integrity sha1-FVJgZ+ou3TNEILHhRgLimzcL4l4= + dependencies: + "@rollup/pluginutils" "^4.1.0" + chalk "^4.1.1" + debug "^4.3.2" + hash-sum "^2.0.0" + require-relative "^0.8.7" + slash "^4.0.0" + source-map "^0.7.3" + svelte-hmr "^0.14.2" + +"@types/geojson@*": + version "7946.0.7" + resolved "https://registry.nlark.com/@types/geojson/download/@types/geojson-7946.0.7.tgz#c8fa532b60a0042219cdf173ca21a975ef0666ad" + integrity sha1-yPpTK2CgBCIZzfFzyiGpde8GZq0= + +"@types/leaflet@^1.7.0": + version "1.7.0" + resolved "https://registry.nlark.com/@types/leaflet/download/@types/leaflet-1.7.0.tgz?cache=0&sync_timestamp=1621241672691&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fleaflet%2Fdownload%2F%40types%2Fleaflet-1.7.0.tgz#3700fb5d29a8214fbd496565b08ec28e40cee808" + integrity sha1-NwD7XSmoIU+9SWVlsI7CjkDO6Ag= + dependencies: + "@types/geojson" "*" + +"@types/node@*": + version "15.6.1" + resolved "https://registry.nlark.com/@types/node/download/@types/node-15.6.1.tgz#32d43390d5c62c5b6ec486a9bc9c59544de39a08" + integrity sha1-MtQzkNXGLFtuxIapvJxZVE3jmgg= + +"@types/pug@^2.0.4": + version "2.0.4" + resolved "https://registry.nlark.com/@types/pug/download/@types/pug-2.0.4.tgz?cache=0&sync_timestamp=1621242764636&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fpug%2Fdownload%2F%40types%2Fpug-2.0.4.tgz#8772fcd0418e3cd2cc171555d73007415051f4b2" + integrity sha1-h3L80EGOPNLMFxVV1zAHQVBR9LI= + +"@types/sass@^1.16.0": + version "1.16.0" + resolved "https://registry.nlark.com/@types/sass/download/@types/sass-1.16.0.tgz?cache=0&sync_timestamp=1621242658800&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fsass%2Fdownload%2F%40types%2Fsass-1.16.0.tgz#b41ac1c17fa68ffb57d43e2360486ef526b3d57d" + integrity sha1-tBrBwX+mj/tX1D4jYEhu9Saz1X0= + dependencies: + "@types/node" "*" + +ansi-styles@^4.1.0: + version "4.3.0" + resolved "https://registry.nlark.com/ansi-styles/download/ansi-styles-4.3.0.tgz?cache=0&sync_timestamp=1618995588464&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fansi-styles%2Fdownload%2Fansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" + integrity sha1-7dgDYornHATIWuegkG7a00tkiTc= + dependencies: + color-convert "^2.0.1" + +chalk@^4.1.1: + version "4.1.1" + resolved "https://registry.nlark.com/chalk/download/chalk-4.1.1.tgz#c80b3fab28bf6371e6863325eee67e618b77e6ad" + integrity sha1-yAs/qyi/Y3HmhjMl7uZ+YYt35q0= + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.nlark.com/color-convert/download/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" + integrity sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM= + dependencies: + color-name "~1.1.4" + +color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.npm.taobao.org/color-name/download/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" + integrity sha1-wqCah6y95pVD3m9j+jmVyCbFNqI= + +colorette@^1.2.2: + version "1.2.2" + resolved "https://registry.nlark.com/colorette/download/colorette-1.2.2.tgz?cache=0&sync_timestamp=1618846981554&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fcolorette%2Fdownload%2Fcolorette-1.2.2.tgz#cbcc79d5e99caea2dbf10eb3a26fd8b3e6acfa94" + integrity sha1-y8x51emcrqLb8Q6zom/Ys+as+pQ= + +debug@^4.3.2: + version "4.3.2" + resolved "https://registry.npm.taobao.org/debug/download/debug-4.3.2.tgz?cache=0&sync_timestamp=1614330710870&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdebug%2Fdownload%2Fdebug-4.3.2.tgz#f0a49c18ac8779e31d4a0c6029dfb76873c7428b" + integrity sha1-8KScGKyHeeMdSgxgKd+3aHPHQos= + dependencies: + ms "2.1.2" + +detect-indent@^6.0.0: + version "6.0.0" + resolved "https://registry.npm.taobao.org/detect-indent/download/detect-indent-6.0.0.tgz#0abd0f549f69fc6659a254fe96786186b6f528fd" + integrity sha1-Cr0PVJ9p/GZZolT+lnhhhrb1KP0= + +esbuild@^0.11.23: + version "0.11.23" + resolved "https://registry.nlark.com/esbuild/download/esbuild-0.11.23.tgz?cache=0&sync_timestamp=1622080632605&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fesbuild%2Fdownload%2Fesbuild-0.11.23.tgz#c42534f632e165120671d64db67883634333b4b8" + integrity sha1-xCU09jLhZRIGcdZNtniDY0MztLg= + +estree-walker@^2.0.1: + version "2.0.2" + resolved "https://registry.npm.taobao.org/estree-walker/download/estree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac" + integrity sha1-UvAQF4wqTBF6d1fP6UKtt9LaTKw= + +fsevents@~2.3.1: + version "2.3.2" + resolved "https://registry.nlark.com/fsevents/download/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" + integrity sha1-ilJveLj99GI7cJ4Ll1xSwkwC/Ro= + +function-bind@^1.1.1: + version "1.1.1" + resolved "https://registry.nlark.com/function-bind/download/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" + integrity sha1-pWiZ0+o8m6uHS7l3O3xe3pL0iV0= + +has-flag@^4.0.0: + version "4.0.0" + resolved "https://registry.npm.taobao.org/has-flag/download/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" + integrity sha1-lEdx/ZyByBJlxNaUGGDaBrtZR5s= + +has@^1.0.3: + version "1.0.3" + resolved "https://registry.nlark.com/has/download/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" + integrity sha1-ci18v8H2qoJB8W3YFOAR4fQeh5Y= + dependencies: + function-bind "^1.1.1" + +hash-sum@^2.0.0: + version "2.0.0" + resolved "https://registry.npm.taobao.org/hash-sum/download/hash-sum-2.0.0.tgz#81d01bb5de8ea4a214ad5d6ead1b523460b0b45a" + integrity sha1-gdAbtd6OpKIUrV1urRtSNGCwtFo= + +is-core-module@^2.2.0: + version "2.4.0" + resolved "https://registry.nlark.com/is-core-module/download/is-core-module-2.4.0.tgz#8e9fc8e15027b011418026e98f0e6f4d86305cc1" + integrity sha1-jp/I4VAnsBFBgCbpjw5vTYYwXME= + dependencies: + has "^1.0.3" + +leaflet@^1.7.1: + version "1.7.1" + resolved "https://registry.npm.taobao.org/leaflet/download/leaflet-1.7.1.tgz#10d684916edfe1bf41d688a3b97127c0322a2a19" + integrity sha1-ENaEkW7f4b9B1oijuXEnwDIqKhk= + +min-indent@^1.0.0: + version "1.0.1" + resolved "https://registry.npm.taobao.org/min-indent/download/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869" + integrity sha1-pj9oFnOzBXH76LwlaGrnRu76mGk= + +ms@2.1.2: + version "2.1.2" + resolved "https://registry.npm.taobao.org/ms/download/ms-2.1.2.tgz?cache=0&sync_timestamp=1607433899126&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fms%2Fdownload%2Fms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" + integrity sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk= + +nanoid@^3.1.23: + version "3.1.23" + resolved "https://registry.nlark.com/nanoid/download/nanoid-3.1.23.tgz?cache=0&sync_timestamp=1620673983269&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fnanoid%2Fdownload%2Fnanoid-3.1.23.tgz#f744086ce7c2bc47ee0a8472574d5c78e4183a81" + integrity sha1-90QIbOfCvEfuCoRyV01ceOQYOoE= + +path-parse@^1.0.6: + version "1.0.7" + resolved "https://registry.nlark.com/path-parse/download/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" + integrity sha1-+8EUtgykKzDZ2vWFjkvWi77bZzU= + +picomatch@^2.2.2: + version "2.3.0" + resolved "https://registry.nlark.com/picomatch/download/picomatch-2.3.0.tgz?cache=0&sync_timestamp=1621648246651&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fpicomatch%2Fdownload%2Fpicomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972" + integrity sha1-8fBh3o9qS/AiiS4tEoI0+5gwKXI= + +postcss@^8.2.10: + version "8.3.0" + resolved "https://registry.nlark.com/postcss/download/postcss-8.3.0.tgz#b1a713f6172ca427e3f05ef1303de8b65683325f" + integrity sha1-sacT9hcspCfj8F7xMD3otlaDMl8= + dependencies: + colorette "^1.2.2" + nanoid "^3.1.23" + source-map-js "^0.6.2" + +require-relative@^0.8.7: + version "0.8.7" + resolved "https://registry.npm.taobao.org/require-relative/download/require-relative-0.8.7.tgz#7999539fc9e047a37928fa196f8e1563dabd36de" + integrity sha1-eZlTn8ngR6N5KPoZb44VY9q9Nt4= + +resolve@^1.19.0: + version "1.20.0" + resolved "https://registry.npm.taobao.org/resolve/download/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975" + integrity sha1-YpoBP7P3B1XW8LeTXMHCxTeLGXU= + dependencies: + is-core-module "^2.2.0" + path-parse "^1.0.6" + +rollup@^2.38.5: + version "2.50.1" + resolved "https://registry.nlark.com/rollup/download/rollup-2.50.1.tgz?cache=0&sync_timestamp=1622014220106&other_urls=https%3A%2F%2Fregistry.nlark.com%2Frollup%2Fdownload%2Frollup-2.50.1.tgz#5d52d5c65ade19164d56efec98f16a461c6df38e" + integrity sha1-XVLVxlreGRZNVu/smPFqRhxt844= + optionalDependencies: + fsevents "~2.3.1" + +slash@^4.0.0: + version "4.0.0" + resolved "https://registry.nlark.com/slash/download/slash-4.0.0.tgz#2422372176c4c6c5addb5e2ada885af984b396a7" + integrity sha1-JCI3IXbExsWt214q2oha+YSzlqc= + +source-map-js@^0.6.2: + version "0.6.2" + resolved "https://registry.npm.taobao.org/source-map-js/download/source-map-js-0.6.2.tgz#0bb5de631b41cfbda6cfba8bd05a80efdfd2385e" + integrity sha1-C7XeYxtBz72mz7qL0FqA79/SOF4= + +source-map@^0.7.3: + version "0.7.3" + resolved "https://registry.nlark.com/source-map/download/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383" + integrity sha1-UwL4FpAxc1ImVECS5kmB91F1A4M= + +strip-indent@^3.0.0: + version "3.0.0" + resolved "https://registry.nlark.com/strip-indent/download/strip-indent-3.0.0.tgz#c32e1cee940b6b3432c771bc2c54bcce73cd3001" + integrity sha1-wy4c7pQLazQyx3G8LFS8znPNMAE= + dependencies: + min-indent "^1.0.0" + +supports-color@^7.1.0: + version "7.2.0" + resolved "https://registry.npm.taobao.org/supports-color/download/supports-color-7.2.0.tgz?cache=0&sync_timestamp=1618560959124&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsupports-color%2Fdownload%2Fsupports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" + integrity sha1-G33NyzK4E4gBs+R4umpRyqiWSNo= + dependencies: + has-flag "^4.0.0" + +svelte-hmr@^0.14.2: + version "0.14.4" + resolved "https://registry.nlark.com/svelte-hmr/download/svelte-hmr-0.14.4.tgz#b7ef2bfeef23916e0e912828c50645ca572ac355" + integrity sha1-t+8r/u8jkW4OkSgoxQZFylcqw1U= + +svelte-preprocess@^4.7.2: + version "4.7.3" + resolved "https://registry.nlark.com/svelte-preprocess/download/svelte-preprocess-4.7.3.tgz#454fa059c2400b15e7a3caeca18993cff9df0e96" + integrity sha1-RU+gWcJACxXno8rsoYmTz/nfDpY= + dependencies: + "@types/pug" "^2.0.4" + "@types/sass" "^1.16.0" + detect-indent "^6.0.0" + strip-indent "^3.0.0" + +svelte@^3.37.0: + version "3.38.2" + resolved "https://registry.nlark.com/svelte/download/svelte-3.38.2.tgz#55e5c681f793ae349b5cc2fe58e5782af4275ef5" + integrity sha1-VeXGgfeTrjSbXML+WOV4KvQnXvU= + +typescript@^4.2.4: + version "4.3.2" + resolved "https://registry.nlark.com/typescript/download/typescript-4.3.2.tgz?cache=0&sync_timestamp=1622050396175&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ftypescript%2Fdownload%2Ftypescript-4.3.2.tgz#399ab18aac45802d6f2498de5054fcbbe716a805" + integrity sha1-OZqxiqxFgC1vJJjeUFT8u+cWqAU= + +vite@^2.3.4: + version "2.3.4" + resolved "https://registry.nlark.com/vite/download/vite-2.3.4.tgz?cache=0&sync_timestamp=1621932433578&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fvite%2Fdownload%2Fvite-2.3.4.tgz#370118e0334725b898ff754ea43d5db4c5e120e3" + integrity sha1-NwEY4DNHJbiY/3VOpD1dtMXhIOM= + dependencies: + esbuild "^0.11.23" + postcss "^8.2.10" + resolve "^1.19.0" + rollup "^2.38.5" + optionalDependencies: + fsevents "~2.3.1" diff --git a/svelte-ts-mapboxgl/.gitignore b/svelte-ts-mapboxgl/.gitignore new file mode 100644 index 0000000..126fe84 --- /dev/null +++ b/svelte-ts-mapboxgl/.gitignore @@ -0,0 +1,4 @@ +/node_modules/ +/dist/ +/.vscode/ +.DS_Store diff --git a/svelte-ts-mapboxgl/index.html b/svelte-ts-mapboxgl/index.html new file mode 100644 index 0000000..a2d87c5 --- /dev/null +++ b/svelte-ts-mapboxgl/index.html @@ -0,0 +1,12 @@ + + + + + + MapboxGL 1.13 with Svelte Ts + + +
+ + + diff --git a/svelte-ts-mapboxgl/package.json b/svelte-ts-mapboxgl/package.json new file mode 100644 index 0000000..82d8eb9 --- /dev/null +++ b/svelte-ts-mapboxgl/package.json @@ -0,0 +1,20 @@ +{ + "name": "svelte-ts-mapboxgl", + "version": "0.0.0", + "scripts": { + "dev": "vite", + "build": "vite build", + "serve": "vite preview" + }, + "devDependencies": { + "@sveltejs/vite-plugin-svelte": "^1.0.0-next.7", + "@types/mapbox-gl": "1.13", + "svelte": "^3.37.0", + "svelte-preprocess": "^4.7.2", + "typescript": "^4.2.4", + "vite": "^2.3.4" + }, + "dependencies": { + "mapbox-gl": "1.13.1" + } +} diff --git a/svelte-ts-mapboxgl/src/App.svelte b/svelte-ts-mapboxgl/src/App.svelte new file mode 100644 index 0000000..66da590 --- /dev/null +++ b/svelte-ts-mapboxgl/src/App.svelte @@ -0,0 +1,29 @@ + + +
+
+
+ + diff --git a/svelte-ts-mapboxgl/src/main.css b/svelte-ts-mapboxgl/src/main.css new file mode 100644 index 0000000..7e02ab5 --- /dev/null +++ b/svelte-ts-mapboxgl/src/main.css @@ -0,0 +1,9 @@ +html, body { + margin: 0; + padding: 0; +} + +#app { + width: 100vw; + height: 100vh; +} \ No newline at end of file diff --git a/svelte-ts-mapboxgl/src/main.ts b/svelte-ts-mapboxgl/src/main.ts new file mode 100644 index 0000000..d8200ac --- /dev/null +++ b/svelte-ts-mapboxgl/src/main.ts @@ -0,0 +1,7 @@ +import App from './App.svelte' + +const app = new App({ + target: document.getElementById('app') +}) + +export default app diff --git a/svelte-ts-mapboxgl/src/vite-env.d.ts b/svelte-ts-mapboxgl/src/vite-env.d.ts new file mode 100644 index 0000000..4078e74 --- /dev/null +++ b/svelte-ts-mapboxgl/src/vite-env.d.ts @@ -0,0 +1,2 @@ +/// +/// diff --git a/svelte-ts-mapboxgl/svelte.config.cjs b/svelte-ts-mapboxgl/svelte.config.cjs new file mode 100644 index 0000000..0b32783 --- /dev/null +++ b/svelte-ts-mapboxgl/svelte.config.cjs @@ -0,0 +1,7 @@ +const sveltePreprocess = require('svelte-preprocess') + +module.exports = { + // Consult https://github.com/sveltejs/svelte-preprocess + // for more information about preprocessors + preprocess: sveltePreprocess() +} diff --git a/svelte-ts-mapboxgl/tsconfig.json b/svelte-ts-mapboxgl/tsconfig.json new file mode 100644 index 0000000..15d55f6 --- /dev/null +++ b/svelte-ts-mapboxgl/tsconfig.json @@ -0,0 +1,37 @@ +{ + "compilerOptions": { + "moduleResolution": "node", + "target": "esnext", + "module": "esnext", + /** + * svelte-preprocess cannot figure out whether you have + * a value or a type, so tell TypeScript to enforce using + * `import type` instead of `import` for Types. + */ + "importsNotUsedAsValues": "error", + "isolatedModules": true, + "resolveJsonModule": true, + /** + * To have warnings / errors of the Svelte compiler at the + * correct position, enable source maps by default. + */ + "sourceMap": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "baseUrl": ".", + /** + * Typecheck JS in `.svelte` and `.js` files by default. + * Disable checkJs if you'd like to use dynamic types in JS. + * Note that setting allowJs false does not prevent the use + * of JS in `.svelte` files. + */ + "allowJs": true, + "checkJs": true + }, + /** + * Use global.d.ts instead of compilerOptions.types + * to avoid limiting type declarations. + */ + "include": ["src/**/*.d.ts", "src/**/*.ts", "src/**/*.js", "src/**/*.svelte"] +} diff --git a/svelte-ts-mapboxgl/vite.config.js b/svelte-ts-mapboxgl/vite.config.js new file mode 100644 index 0000000..d0fd69a --- /dev/null +++ b/svelte-ts-mapboxgl/vite.config.js @@ -0,0 +1,7 @@ +import { defineConfig } from 'vite' +import svelte from '@sveltejs/vite-plugin-svelte' + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [svelte()] +}) diff --git a/svelte-ts-mapboxgl/yarn.lock b/svelte-ts-mapboxgl/yarn.lock new file mode 100644 index 0000000..e4e0aea --- /dev/null +++ b/svelte-ts-mapboxgl/yarn.lock @@ -0,0 +1,447 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@mapbox/geojson-rewind@^0.5.0": + version "0.5.1" + resolved "https://registry.nlark.com/@mapbox/geojson-rewind/download/@mapbox/geojson-rewind-0.5.1.tgz#adbe16dc683eb40e90934c51a5e28c7bbf44f4e1" + integrity sha1-rb4W3Gg+tA6Qk0xRpeKMe79E9OE= + dependencies: + get-stream "^6.0.1" + minimist "^1.2.5" + +"@mapbox/geojson-types@^1.0.2": + version "1.0.2" + resolved "https://registry.npm.taobao.org/@mapbox/geojson-types/download/@mapbox/geojson-types-1.0.2.tgz#9aecf642cb00eab1080a57c4f949a65b4a5846d6" + integrity sha1-muz2QssA6rEIClfE+UmmW0pYRtY= + +"@mapbox/jsonlint-lines-primitives@^2.0.2": + version "2.0.2" + resolved "https://registry.npm.taobao.org/@mapbox/jsonlint-lines-primitives/download/@mapbox/jsonlint-lines-primitives-2.0.2.tgz#ce56e539f83552b58d10d672ea4d6fc9adc7b234" + integrity sha1-zlblOfg1UrWNENZy6k1vya3HsjQ= + +"@mapbox/mapbox-gl-supported@^1.5.0": + version "1.5.0" + resolved "https://registry.npm.taobao.org/@mapbox/mapbox-gl-supported/download/@mapbox/mapbox-gl-supported-1.5.0.tgz#f60b6a55a5d8e5ee908347d2ce4250b15103dc8e" + integrity sha1-9gtqVaXY5e6Qg0fSzkJQsVED3I4= + +"@mapbox/point-geometry@0.1.0", "@mapbox/point-geometry@^0.1.0", "@mapbox/point-geometry@~0.1.0": + version "0.1.0" + resolved "https://registry.npm.taobao.org/@mapbox/point-geometry/download/@mapbox/point-geometry-0.1.0.tgz#8a83f9335c7860effa2eeeca254332aa0aeed8f2" + integrity sha1-ioP5M1x4YO/6Lu7KJUMyqgru2PI= + +"@mapbox/tiny-sdf@^1.1.1": + version "1.2.5" + resolved "https://registry.npm.taobao.org/@mapbox/tiny-sdf/download/@mapbox/tiny-sdf-1.2.5.tgz#424c620a96442b20402552be70a7f62a8407cc59" + integrity sha1-QkxiCpZEKyBAJVK+cKf2KoQHzFk= + +"@mapbox/unitbezier@^0.0.0": + version "0.0.0" + resolved "https://registry.npm.taobao.org/@mapbox/unitbezier/download/@mapbox/unitbezier-0.0.0.tgz#15651bd553a67b8581fb398810c98ad86a34524e" + integrity sha1-FWUb1VOme4WB+zmIEMmK2Go0Uk4= + +"@mapbox/vector-tile@^1.3.1": + version "1.3.1" + resolved "https://registry.npm.taobao.org/@mapbox/vector-tile/download/@mapbox/vector-tile-1.3.1.tgz#d3a74c90402d06e89ec66de49ec817ff53409666" + integrity sha1-06dMkEAtBuiexm3knsgX/1NAlmY= + dependencies: + "@mapbox/point-geometry" "~0.1.0" + +"@mapbox/whoots-js@^3.1.0": + version "3.1.0" + resolved "https://registry.npm.taobao.org/@mapbox/whoots-js/download/@mapbox/whoots-js-3.1.0.tgz#497c67a1cef50d1a2459ba60f315e448d2ad87fe" + integrity sha1-SXxnoc71DRokWbpg8xXkSNKth/4= + +"@rollup/pluginutils@^4.1.0": + version "4.1.0" + resolved "https://registry.npm.taobao.org/@rollup/pluginutils/download/@rollup/pluginutils-4.1.0.tgz?cache=0&sync_timestamp=1603767889260&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40rollup%2Fpluginutils%2Fdownload%2F%40rollup%2Fpluginutils-4.1.0.tgz#0dcc61c780e39257554feb7f77207dceca13c838" + integrity sha1-Dcxhx4DjkldVT+t/dyB9zsoTyDg= + dependencies: + estree-walker "^2.0.1" + picomatch "^2.2.2" + +"@sveltejs/vite-plugin-svelte@^1.0.0-next.7": + version "1.0.0-next.10" + resolved "https://registry.nlark.com/@sveltejs/vite-plugin-svelte/download/@sveltejs/vite-plugin-svelte-1.0.0-next.10.tgz#15526067ea2edd334420b1e14602e29b370be25e" + integrity sha1-FVJgZ+ou3TNEILHhRgLimzcL4l4= + dependencies: + "@rollup/pluginutils" "^4.1.0" + chalk "^4.1.1" + debug "^4.3.2" + hash-sum "^2.0.0" + require-relative "^0.8.7" + slash "^4.0.0" + source-map "^0.7.3" + svelte-hmr "^0.14.2" + +"@types/geojson@*": + version "7946.0.7" + resolved "https://registry.nlark.com/@types/geojson/download/@types/geojson-7946.0.7.tgz#c8fa532b60a0042219cdf173ca21a975ef0666ad" + integrity sha1-yPpTK2CgBCIZzfFzyiGpde8GZq0= + +"@types/mapbox-gl@1.13": + version "1.13.1" + resolved "https://registry.nlark.com/@types/mapbox-gl/download/@types/mapbox-gl-1.13.1.tgz?cache=0&sync_timestamp=1621241797834&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fmapbox-gl%2Fdownload%2F%40types%2Fmapbox-gl-1.13.1.tgz#bd8108f912f32c895117e2970b6d4fbbecbe42a1" + integrity sha1-vYEI+RLzLIlRF+KXC21Pu+y+QqE= + dependencies: + "@types/geojson" "*" + +"@types/node@*": + version "15.6.1" + resolved "https://registry.nlark.com/@types/node/download/@types/node-15.6.1.tgz?cache=0&sync_timestamp=1621901244878&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fnode%2Fdownload%2F%40types%2Fnode-15.6.1.tgz#32d43390d5c62c5b6ec486a9bc9c59544de39a08" + integrity sha1-MtQzkNXGLFtuxIapvJxZVE3jmgg= + +"@types/pug@^2.0.4": + version "2.0.4" + resolved "https://registry.nlark.com/@types/pug/download/@types/pug-2.0.4.tgz#8772fcd0418e3cd2cc171555d73007415051f4b2" + integrity sha1-h3L80EGOPNLMFxVV1zAHQVBR9LI= + +"@types/sass@^1.16.0": + version "1.16.0" + resolved "https://registry.nlark.com/@types/sass/download/@types/sass-1.16.0.tgz?cache=0&sync_timestamp=1621242658800&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fsass%2Fdownload%2F%40types%2Fsass-1.16.0.tgz#b41ac1c17fa68ffb57d43e2360486ef526b3d57d" + integrity sha1-tBrBwX+mj/tX1D4jYEhu9Saz1X0= + dependencies: + "@types/node" "*" + +ansi-styles@^4.1.0: + version "4.3.0" + resolved "https://registry.nlark.com/ansi-styles/download/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" + integrity sha1-7dgDYornHATIWuegkG7a00tkiTc= + dependencies: + color-convert "^2.0.1" + +chalk@^4.1.1: + version "4.1.1" + resolved "https://registry.nlark.com/chalk/download/chalk-4.1.1.tgz?cache=0&sync_timestamp=1618995367379&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fchalk%2Fdownload%2Fchalk-4.1.1.tgz#c80b3fab28bf6371e6863325eee67e618b77e6ad" + integrity sha1-yAs/qyi/Y3HmhjMl7uZ+YYt35q0= + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.npm.taobao.org/color-convert/download/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" + integrity sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM= + dependencies: + color-name "~1.1.4" + +color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.nlark.com/color-name/download/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" + integrity sha1-wqCah6y95pVD3m9j+jmVyCbFNqI= + +colorette@^1.2.2: + version "1.2.2" + resolved "https://registry.nlark.com/colorette/download/colorette-1.2.2.tgz#cbcc79d5e99caea2dbf10eb3a26fd8b3e6acfa94" + integrity sha1-y8x51emcrqLb8Q6zom/Ys+as+pQ= + +csscolorparser@~1.0.3: + version "1.0.3" + resolved "https://registry.npm.taobao.org/csscolorparser/download/csscolorparser-1.0.3.tgz#b34f391eea4da8f3e98231e2ccd8df9c041f171b" + integrity sha1-s085HupNqPPpgjHizNjfnAQfFxs= + +debug@^4.3.2: + version "4.3.2" + resolved "https://registry.nlark.com/debug/download/debug-4.3.2.tgz?cache=0&sync_timestamp=1618847042350&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fdebug%2Fdownload%2Fdebug-4.3.2.tgz#f0a49c18ac8779e31d4a0c6029dfb76873c7428b" + integrity sha1-8KScGKyHeeMdSgxgKd+3aHPHQos= + dependencies: + ms "2.1.2" + +detect-indent@^6.0.0: + version "6.0.0" + resolved "https://registry.nlark.com/detect-indent/download/detect-indent-6.0.0.tgz?cache=0&sync_timestamp=1618847118351&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fdetect-indent%2Fdownload%2Fdetect-indent-6.0.0.tgz#0abd0f549f69fc6659a254fe96786186b6f528fd" + integrity sha1-Cr0PVJ9p/GZZolT+lnhhhrb1KP0= + +earcut@^2.2.2: + version "2.2.2" + resolved "https://registry.npm.taobao.org/earcut/download/earcut-2.2.2.tgz#41b0bc35f63e0fe80da7cddff28511e7e2e80d11" + integrity sha1-QbC8NfY+D+gNp83f8oUR5+LoDRE= + +esbuild@^0.11.23: + version "0.11.23" + resolved "https://registry.nlark.com/esbuild/download/esbuild-0.11.23.tgz?cache=0&sync_timestamp=1622080632605&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fesbuild%2Fdownload%2Fesbuild-0.11.23.tgz#c42534f632e165120671d64db67883634333b4b8" + integrity sha1-xCU09jLhZRIGcdZNtniDY0MztLg= + +estree-walker@^2.0.1: + version "2.0.2" + resolved "https://registry.npm.taobao.org/estree-walker/download/estree-walker-2.0.2.tgz?cache=0&sync_timestamp=1611956983677&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Festree-walker%2Fdownload%2Festree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac" + integrity sha1-UvAQF4wqTBF6d1fP6UKtt9LaTKw= + +fsevents@~2.3.1: + version "2.3.2" + resolved "https://registry.npm.taobao.org/fsevents/download/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" + integrity sha1-ilJveLj99GI7cJ4Ll1xSwkwC/Ro= + +function-bind@^1.1.1: + version "1.1.1" + resolved "https://registry.npm.taobao.org/function-bind/download/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" + integrity sha1-pWiZ0+o8m6uHS7l3O3xe3pL0iV0= + +geojson-vt@^3.2.1: + version "3.2.1" + resolved "https://registry.npm.taobao.org/geojson-vt/download/geojson-vt-3.2.1.tgz#f8adb614d2c1d3f6ee7c4265cad4bbf3ad60c8b7" + integrity sha1-+K22FNLB0/bufEJlytS7861gyLc= + +get-stream@^6.0.1: + version "6.0.1" + resolved "https://registry.npm.taobao.org/get-stream/download/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" + integrity sha1-omLY7vZ6ztV8KFKtYWdSakPL97c= + +gl-matrix@^3.2.1: + version "3.3.0" + resolved "https://registry.npm.taobao.org/gl-matrix/download/gl-matrix-3.3.0.tgz#232eef60b1c8b30a28cbbe75b2caf6c48fd6358b" + integrity sha1-Iy7vYLHIswooy751ssr2xI/WNYs= + +grid-index@^1.1.0: + version "1.1.0" + resolved "https://registry.npm.taobao.org/grid-index/download/grid-index-1.1.0.tgz#97f8221edec1026c8377b86446a7c71e79522ea7" + integrity sha1-l/giHt7BAmyDd7hkRqfHHnlSLqc= + +has-flag@^4.0.0: + version "4.0.0" + resolved "https://registry.npm.taobao.org/has-flag/download/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" + integrity sha1-lEdx/ZyByBJlxNaUGGDaBrtZR5s= + +has@^1.0.3: + version "1.0.3" + resolved "https://registry.npm.taobao.org/has/download/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" + integrity sha1-ci18v8H2qoJB8W3YFOAR4fQeh5Y= + dependencies: + function-bind "^1.1.1" + +hash-sum@^2.0.0: + version "2.0.0" + resolved "https://registry.npm.taobao.org/hash-sum/download/hash-sum-2.0.0.tgz#81d01bb5de8ea4a214ad5d6ead1b523460b0b45a" + integrity sha1-gdAbtd6OpKIUrV1urRtSNGCwtFo= + +ieee754@^1.1.12: + version "1.2.1" + resolved "https://registry.nlark.com/ieee754/download/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" + integrity sha1-jrehCmP/8l0VpXsAFYbRd9Gw01I= + +is-core-module@^2.2.0: + version "2.4.0" + resolved "https://registry.nlark.com/is-core-module/download/is-core-module-2.4.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fis-core-module%2Fdownload%2Fis-core-module-2.4.0.tgz#8e9fc8e15027b011418026e98f0e6f4d86305cc1" + integrity sha1-jp/I4VAnsBFBgCbpjw5vTYYwXME= + dependencies: + has "^1.0.3" + +kdbush@^3.0.0: + version "3.0.0" + resolved "https://registry.npm.taobao.org/kdbush/download/kdbush-3.0.0.tgz#f8484794d47004cc2d85ed3a79353dbe0abc2bf0" + integrity sha1-+EhHlNRwBMwthe06eTU9vgq8K/A= + +mapbox-gl@1.13.1: + version "1.13.1" + resolved "https://registry.nlark.com/mapbox-gl/download/mapbox-gl-1.13.1.tgz#322efe75ab4c764fc4c776da1506aad58d5a5b9d" + integrity sha1-Mi7+datMdk/Ex3baFQaq1Y1aW50= + dependencies: + "@mapbox/geojson-rewind" "^0.5.0" + "@mapbox/geojson-types" "^1.0.2" + "@mapbox/jsonlint-lines-primitives" "^2.0.2" + "@mapbox/mapbox-gl-supported" "^1.5.0" + "@mapbox/point-geometry" "^0.1.0" + "@mapbox/tiny-sdf" "^1.1.1" + "@mapbox/unitbezier" "^0.0.0" + "@mapbox/vector-tile" "^1.3.1" + "@mapbox/whoots-js" "^3.1.0" + csscolorparser "~1.0.3" + earcut "^2.2.2" + geojson-vt "^3.2.1" + gl-matrix "^3.2.1" + grid-index "^1.1.0" + minimist "^1.2.5" + murmurhash-js "^1.0.0" + pbf "^3.2.1" + potpack "^1.0.1" + quickselect "^2.0.0" + rw "^1.3.3" + supercluster "^7.1.0" + tinyqueue "^2.0.3" + vt-pbf "^3.1.1" + +min-indent@^1.0.0: + version "1.0.1" + resolved "https://registry.npm.taobao.org/min-indent/download/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869" + integrity sha1-pj9oFnOzBXH76LwlaGrnRu76mGk= + +minimist@^1.2.5: + version "1.2.5" + resolved "https://registry.nlark.com/minimist/download/minimist-1.2.5.tgz?cache=0&sync_timestamp=1618847017774&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fminimist%2Fdownload%2Fminimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" + integrity sha1-Z9ZgFLZqaoqqDAg8X9WN9OTpdgI= + +ms@2.1.2: + version "2.1.2" + resolved "https://registry.nlark.com/ms/download/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" + integrity sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk= + +murmurhash-js@^1.0.0: + version "1.0.0" + resolved "https://registry.npm.taobao.org/murmurhash-js/download/murmurhash-js-1.0.0.tgz#b06278e21fc6c37fa5313732b0412bcb6ae15f51" + integrity sha1-sGJ44h/Gw3+lMTcysEEry2rhX1E= + +nanoid@^3.1.23: + version "3.1.23" + resolved "https://registry.nlark.com/nanoid/download/nanoid-3.1.23.tgz#f744086ce7c2bc47ee0a8472574d5c78e4183a81" + integrity sha1-90QIbOfCvEfuCoRyV01ceOQYOoE= + +path-parse@^1.0.6: + version "1.0.7" + resolved "https://registry.nlark.com/path-parse/download/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" + integrity sha1-+8EUtgykKzDZ2vWFjkvWi77bZzU= + +pbf@^3.2.1: + version "3.2.1" + resolved "https://registry.npm.taobao.org/pbf/download/pbf-3.2.1.tgz#b4c1b9e72af966cd82c6531691115cc0409ffe2a" + integrity sha1-tMG55yr5Zs2CxlMWkRFcwECf/io= + dependencies: + ieee754 "^1.1.12" + resolve-protobuf-schema "^2.1.0" + +picomatch@^2.2.2: + version "2.3.0" + resolved "https://registry.nlark.com/picomatch/download/picomatch-2.3.0.tgz?cache=0&sync_timestamp=1621648246651&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fpicomatch%2Fdownload%2Fpicomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972" + integrity sha1-8fBh3o9qS/AiiS4tEoI0+5gwKXI= + +postcss@^8.2.10: + version "8.3.0" + resolved "https://registry.nlark.com/postcss/download/postcss-8.3.0.tgz?cache=0&sync_timestamp=1621568644827&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fpostcss%2Fdownload%2Fpostcss-8.3.0.tgz#b1a713f6172ca427e3f05ef1303de8b65683325f" + integrity sha1-sacT9hcspCfj8F7xMD3otlaDMl8= + dependencies: + colorette "^1.2.2" + nanoid "^3.1.23" + source-map-js "^0.6.2" + +potpack@^1.0.1: + version "1.0.1" + resolved "https://registry.npm.taobao.org/potpack/download/potpack-1.0.1.tgz#d1b1afd89e4c8f7762865ec30bd112ab767e2ebf" + integrity sha1-0bGv2J5Mj3dihl7DC9ESq3Z+Lr8= + +protocol-buffers-schema@^3.3.1: + version "3.5.1" + resolved "https://registry.npm.taobao.org/protocol-buffers-schema/download/protocol-buffers-schema-3.5.1.tgz#8388e768d383ac8cbea23e1280dfadb79f4122ad" + integrity sha1-g4jnaNODrIy+oj4SgN+tt59BIq0= + +quickselect@^2.0.0: + version "2.0.0" + resolved "https://registry.npm.taobao.org/quickselect/download/quickselect-2.0.0.tgz#f19680a486a5eefb581303e023e98faaf25dd018" + integrity sha1-8ZaApIal7vtYEwPgI+mPqvJd0Bg= + +require-relative@^0.8.7: + version "0.8.7" + resolved "https://registry.npm.taobao.org/require-relative/download/require-relative-0.8.7.tgz#7999539fc9e047a37928fa196f8e1563dabd36de" + integrity sha1-eZlTn8ngR6N5KPoZb44VY9q9Nt4= + +resolve-protobuf-schema@^2.1.0: + version "2.1.0" + resolved "https://registry.npm.taobao.org/resolve-protobuf-schema/download/resolve-protobuf-schema-2.1.0.tgz#9ca9a9e69cf192bbdaf1006ec1973948aa4a3758" + integrity sha1-nKmp5pzxkrva8QBuwZc5SKpKN1g= + dependencies: + protocol-buffers-schema "^3.3.1" + +resolve@^1.19.0: + version "1.20.0" + resolved "https://registry.nlark.com/resolve/download/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975" + integrity sha1-YpoBP7P3B1XW8LeTXMHCxTeLGXU= + dependencies: + is-core-module "^2.2.0" + path-parse "^1.0.6" + +rollup@^2.38.5: + version "2.50.1" + resolved "https://registry.nlark.com/rollup/download/rollup-2.50.1.tgz?cache=0&sync_timestamp=1622014232980&other_urls=https%3A%2F%2Fregistry.nlark.com%2Frollup%2Fdownload%2Frollup-2.50.1.tgz#5d52d5c65ade19164d56efec98f16a461c6df38e" + integrity sha1-XVLVxlreGRZNVu/smPFqRhxt844= + optionalDependencies: + fsevents "~2.3.1" + +rw@^1.3.3: + version "1.3.3" + resolved "https://registry.nlark.com/rw/download/rw-1.3.3.tgz#3f862dfa91ab766b14885ef4d01124bfda074fb4" + integrity sha1-P4Yt+pGrdmsUiF700BEkv9oHT7Q= + +slash@^4.0.0: + version "4.0.0" + resolved "https://registry.nlark.com/slash/download/slash-4.0.0.tgz#2422372176c4c6c5addb5e2ada885af984b396a7" + integrity sha1-JCI3IXbExsWt214q2oha+YSzlqc= + +source-map-js@^0.6.2: + version "0.6.2" + resolved "https://registry.npm.taobao.org/source-map-js/download/source-map-js-0.6.2.tgz#0bb5de631b41cfbda6cfba8bd05a80efdfd2385e" + integrity sha1-C7XeYxtBz72mz7qL0FqA79/SOF4= + +source-map@^0.7.3: + version "0.7.3" + resolved "https://registry.nlark.com/source-map/download/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383" + integrity sha1-UwL4FpAxc1ImVECS5kmB91F1A4M= + +strip-indent@^3.0.0: + version "3.0.0" + resolved "https://registry.nlark.com/strip-indent/download/strip-indent-3.0.0.tgz?cache=0&sync_timestamp=1620053310624&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fstrip-indent%2Fdownload%2Fstrip-indent-3.0.0.tgz#c32e1cee940b6b3432c771bc2c54bcce73cd3001" + integrity sha1-wy4c7pQLazQyx3G8LFS8znPNMAE= + dependencies: + min-indent "^1.0.0" + +supercluster@^7.1.0: + version "7.1.3" + resolved "https://registry.npm.taobao.org/supercluster/download/supercluster-7.1.3.tgz#8c5412c7d7e53b010f7514e87f279544babc3425" + integrity sha1-jFQSx9flOwEPdRTofyeVRLq8NCU= + dependencies: + kdbush "^3.0.0" + +supports-color@^7.1.0: + version "7.2.0" + resolved "https://registry.npm.taobao.org/supports-color/download/supports-color-7.2.0.tgz?cache=0&sync_timestamp=1618560983872&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsupports-color%2Fdownload%2Fsupports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" + integrity sha1-G33NyzK4E4gBs+R4umpRyqiWSNo= + dependencies: + has-flag "^4.0.0" + +svelte-hmr@^0.14.2: + version "0.14.4" + resolved "https://registry.nlark.com/svelte-hmr/download/svelte-hmr-0.14.4.tgz#b7ef2bfeef23916e0e912828c50645ca572ac355" + integrity sha1-t+8r/u8jkW4OkSgoxQZFylcqw1U= + +svelte-preprocess@^4.7.2: + version "4.7.3" + resolved "https://registry.nlark.com/svelte-preprocess/download/svelte-preprocess-4.7.3.tgz#454fa059c2400b15e7a3caeca18993cff9df0e96" + integrity sha1-RU+gWcJACxXno8rsoYmTz/nfDpY= + dependencies: + "@types/pug" "^2.0.4" + "@types/sass" "^1.16.0" + detect-indent "^6.0.0" + strip-indent "^3.0.0" + +svelte@^3.37.0: + version "3.38.2" + resolved "https://registry.nlark.com/svelte/download/svelte-3.38.2.tgz#55e5c681f793ae349b5cc2fe58e5782af4275ef5" + integrity sha1-VeXGgfeTrjSbXML+WOV4KvQnXvU= + +tinyqueue@^2.0.3: + version "2.0.3" + resolved "https://registry.npm.taobao.org/tinyqueue/download/tinyqueue-2.0.3.tgz#64d8492ebf39e7801d7bd34062e29b45b2035f08" + integrity sha1-ZNhJLr8554Ade9NAYuKbRbIDXwg= + +typescript@^4.2.4: + version "4.3.2" + resolved "https://registry.nlark.com/typescript/download/typescript-4.3.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ftypescript%2Fdownload%2Ftypescript-4.3.2.tgz#399ab18aac45802d6f2498de5054fcbbe716a805" + integrity sha1-OZqxiqxFgC1vJJjeUFT8u+cWqAU= + +vite@^2.3.4: + version "2.3.4" + resolved "https://registry.nlark.com/vite/download/vite-2.3.4.tgz?cache=0&sync_timestamp=1621932554383&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fvite%2Fdownload%2Fvite-2.3.4.tgz#370118e0334725b898ff754ea43d5db4c5e120e3" + integrity sha1-NwEY4DNHJbiY/3VOpD1dtMXhIOM= + dependencies: + esbuild "^0.11.23" + postcss "^8.2.10" + resolve "^1.19.0" + rollup "^2.38.5" + optionalDependencies: + fsevents "~2.3.1" + +vt-pbf@^3.1.1: + version "3.1.2" + resolved "https://registry.nlark.com/vt-pbf/download/vt-pbf-3.1.2.tgz#0ba9c07b73d74024e56c6372837897f6630f040a" + integrity sha1-C6nAe3PXQCTlbGNyg3iX9mMPBAo= + dependencies: + "@mapbox/point-geometry" "0.1.0" + "@mapbox/vector-tile" "^1.3.1" + pbf "^3.2.1" diff --git a/svelte-ts-ol6/.gitignore b/svelte-ts-ol6/.gitignore new file mode 100644 index 0000000..126fe84 --- /dev/null +++ b/svelte-ts-ol6/.gitignore @@ -0,0 +1,4 @@ +/node_modules/ +/dist/ +/.vscode/ +.DS_Store diff --git a/svelte-ts-ol6/index.html b/svelte-ts-ol6/index.html new file mode 100644 index 0000000..9dda1ed --- /dev/null +++ b/svelte-ts-ol6/index.html @@ -0,0 +1,12 @@ + + + + + + OpenLayers 6 with Svelte Ts + + +
+ + + diff --git a/svelte-ts-ol6/package.json b/svelte-ts-ol6/package.json new file mode 100644 index 0000000..db0b182 --- /dev/null +++ b/svelte-ts-ol6/package.json @@ -0,0 +1,20 @@ +{ + "name": "svelte-ts-ol6", + "version": "0.0.0", + "scripts": { + "dev": "vite", + "build": "vite build", + "serve": "vite preview" + }, + "devDependencies": { + "@sveltejs/vite-plugin-svelte": "^1.0.0-next.7", + "@types/ol": "^6.5.0", + "svelte": "^3.37.0", + "svelte-preprocess": "^4.7.2", + "typescript": "^4.2.4", + "vite": "^2.3.4" + }, + "dependencies": { + "ol": "^6.5.0" + } +} diff --git a/svelte-ts-ol6/src/App.svelte b/svelte-ts-ol6/src/App.svelte new file mode 100644 index 0000000..b2e8253 --- /dev/null +++ b/svelte-ts-ol6/src/App.svelte @@ -0,0 +1,36 @@ + + +
+
+
+ + diff --git a/svelte-ts-ol6/src/main.css b/svelte-ts-ol6/src/main.css new file mode 100644 index 0000000..7e02ab5 --- /dev/null +++ b/svelte-ts-ol6/src/main.css @@ -0,0 +1,9 @@ +html, body { + margin: 0; + padding: 0; +} + +#app { + width: 100vw; + height: 100vh; +} \ No newline at end of file diff --git a/svelte-ts-ol6/src/main.ts b/svelte-ts-ol6/src/main.ts new file mode 100644 index 0000000..3bfce9c --- /dev/null +++ b/svelte-ts-ol6/src/main.ts @@ -0,0 +1,8 @@ +import App from './App.svelte' +import "./main.css" + +const app = new App({ + target: document.getElementById('app') +}) + +export default app diff --git a/svelte-ts-ol6/src/vite-env.d.ts b/svelte-ts-ol6/src/vite-env.d.ts new file mode 100644 index 0000000..4078e74 --- /dev/null +++ b/svelte-ts-ol6/src/vite-env.d.ts @@ -0,0 +1,2 @@ +/// +/// diff --git a/svelte-ts-ol6/svelte.config.cjs b/svelte-ts-ol6/svelte.config.cjs new file mode 100644 index 0000000..0b32783 --- /dev/null +++ b/svelte-ts-ol6/svelte.config.cjs @@ -0,0 +1,7 @@ +const sveltePreprocess = require('svelte-preprocess') + +module.exports = { + // Consult https://github.com/sveltejs/svelte-preprocess + // for more information about preprocessors + preprocess: sveltePreprocess() +} diff --git a/svelte-ts-ol6/tsconfig.json b/svelte-ts-ol6/tsconfig.json new file mode 100644 index 0000000..15d55f6 --- /dev/null +++ b/svelte-ts-ol6/tsconfig.json @@ -0,0 +1,37 @@ +{ + "compilerOptions": { + "moduleResolution": "node", + "target": "esnext", + "module": "esnext", + /** + * svelte-preprocess cannot figure out whether you have + * a value or a type, so tell TypeScript to enforce using + * `import type` instead of `import` for Types. + */ + "importsNotUsedAsValues": "error", + "isolatedModules": true, + "resolveJsonModule": true, + /** + * To have warnings / errors of the Svelte compiler at the + * correct position, enable source maps by default. + */ + "sourceMap": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "baseUrl": ".", + /** + * Typecheck JS in `.svelte` and `.js` files by default. + * Disable checkJs if you'd like to use dynamic types in JS. + * Note that setting allowJs false does not prevent the use + * of JS in `.svelte` files. + */ + "allowJs": true, + "checkJs": true + }, + /** + * Use global.d.ts instead of compilerOptions.types + * to avoid limiting type declarations. + */ + "include": ["src/**/*.d.ts", "src/**/*.ts", "src/**/*.js", "src/**/*.svelte"] +} diff --git a/svelte-ts-ol6/vite.config.js b/svelte-ts-ol6/vite.config.js new file mode 100644 index 0000000..d0fd69a --- /dev/null +++ b/svelte-ts-ol6/vite.config.js @@ -0,0 +1,7 @@ +import { defineConfig } from 'vite' +import svelte from '@sveltejs/vite-plugin-svelte' + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [svelte()] +}) diff --git a/svelte-ts-ol6/yarn.lock b/svelte-ts-ol6/yarn.lock new file mode 100644 index 0000000..678c68c --- /dev/null +++ b/svelte-ts-ol6/yarn.lock @@ -0,0 +1,414 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@mapbox/jsonlint-lines-primitives@~2.0.2": + version "2.0.2" + resolved "https://registry.npm.taobao.org/@mapbox/jsonlint-lines-primitives/download/@mapbox/jsonlint-lines-primitives-2.0.2.tgz#ce56e539f83552b58d10d672ea4d6fc9adc7b234" + integrity sha1-zlblOfg1UrWNENZy6k1vya3HsjQ= + +"@mapbox/mapbox-gl-style-spec@^13.14.0": + version "13.19.2" + resolved "https://registry.nlark.com/@mapbox/mapbox-gl-style-spec/download/@mapbox/mapbox-gl-style-spec-13.19.2.tgz#cb170060fd82ee3fe8964593f583da8aacafffd8" + integrity sha1-yxcAYP2C7j/olkWT9YPaiqyv/9g= + dependencies: + "@mapbox/jsonlint-lines-primitives" "~2.0.2" + "@mapbox/point-geometry" "^0.1.0" + "@mapbox/unitbezier" "^0.0.0" + csscolorparser "~1.0.2" + json-stringify-pretty-compact "^2.0.0" + minimist "^1.2.5" + rw "^1.3.3" + sort-object "^0.3.2" + +"@mapbox/point-geometry@^0.1.0": + version "0.1.0" + resolved "https://registry.npm.taobao.org/@mapbox/point-geometry/download/@mapbox/point-geometry-0.1.0.tgz#8a83f9335c7860effa2eeeca254332aa0aeed8f2" + integrity sha1-ioP5M1x4YO/6Lu7KJUMyqgru2PI= + +"@mapbox/unitbezier@^0.0.0": + version "0.0.0" + resolved "https://registry.npm.taobao.org/@mapbox/unitbezier/download/@mapbox/unitbezier-0.0.0.tgz#15651bd553a67b8581fb398810c98ad86a34524e" + integrity sha1-FWUb1VOme4WB+zmIEMmK2Go0Uk4= + +"@rollup/pluginutils@^4.1.0": + version "4.1.0" + resolved "https://registry.npm.taobao.org/@rollup/pluginutils/download/@rollup/pluginutils-4.1.0.tgz?cache=0&sync_timestamp=1603767889260&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40rollup%2Fpluginutils%2Fdownload%2F%40rollup%2Fpluginutils-4.1.0.tgz#0dcc61c780e39257554feb7f77207dceca13c838" + integrity sha1-Dcxhx4DjkldVT+t/dyB9zsoTyDg= + dependencies: + estree-walker "^2.0.1" + picomatch "^2.2.2" + +"@sveltejs/vite-plugin-svelte@^1.0.0-next.7": + version "1.0.0-next.10" + resolved "https://registry.nlark.com/@sveltejs/vite-plugin-svelte/download/@sveltejs/vite-plugin-svelte-1.0.0-next.10.tgz#15526067ea2edd334420b1e14602e29b370be25e" + integrity sha1-FVJgZ+ou3TNEILHhRgLimzcL4l4= + dependencies: + "@rollup/pluginutils" "^4.1.0" + chalk "^4.1.1" + debug "^4.3.2" + hash-sum "^2.0.0" + require-relative "^0.8.7" + slash "^4.0.0" + source-map "^0.7.3" + svelte-hmr "^0.14.2" + +"@types/arcgis-rest-api@*": + version "10.4.4" + resolved "https://registry.nlark.com/@types/arcgis-rest-api/download/@types/arcgis-rest-api-10.4.4.tgz?cache=0&sync_timestamp=1621240508145&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Farcgis-rest-api%2Fdownload%2F%40types%2Farcgis-rest-api-10.4.4.tgz#c84b26ac7f01deb2829bff10ebbe544c2310fbcd" + integrity sha1-yEsmrH8B3rKCm/8Q675UTCMQ+80= + +"@types/geojson@*": + version "7946.0.7" + resolved "https://registry.nlark.com/@types/geojson/download/@types/geojson-7946.0.7.tgz#c8fa532b60a0042219cdf173ca21a975ef0666ad" + integrity sha1-yPpTK2CgBCIZzfFzyiGpde8GZq0= + +"@types/node@*": + version "15.6.1" + resolved "https://registry.nlark.com/@types/node/download/@types/node-15.6.1.tgz?cache=0&sync_timestamp=1621901244878&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fnode%2Fdownload%2F%40types%2Fnode-15.6.1.tgz#32d43390d5c62c5b6ec486a9bc9c59544de39a08" + integrity sha1-MtQzkNXGLFtuxIapvJxZVE3jmgg= + +"@types/ol@^6.5.0": + version "6.5.0" + resolved "https://registry.nlark.com/@types/ol/download/@types/ol-6.5.0.tgz#8fdfd6624f14f4d5129ebe1d2ebc74abdf996b12" + integrity sha1-j9/WYk8U9NUSnr4dLrx0q9+ZaxI= + dependencies: + "@types/arcgis-rest-api" "*" + "@types/geojson" "*" + "@types/rbush" "*" + "@types/topojson-specification" "*" + +"@types/pug@^2.0.4": + version "2.0.4" + resolved "https://registry.nlark.com/@types/pug/download/@types/pug-2.0.4.tgz#8772fcd0418e3cd2cc171555d73007415051f4b2" + integrity sha1-h3L80EGOPNLMFxVV1zAHQVBR9LI= + +"@types/rbush@*": + version "3.0.0" + resolved "https://registry.nlark.com/@types/rbush/download/@types/rbush-3.0.0.tgz?cache=0&sync_timestamp=1621242287805&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Frbush%2Fdownload%2F%40types%2Frbush-3.0.0.tgz#b6887d99b159e87ae23cd14eceff34f139842aa6" + integrity sha1-toh9mbFZ6HriPNFOzv808TmEKqY= + +"@types/sass@^1.16.0": + version "1.16.0" + resolved "https://registry.nlark.com/@types/sass/download/@types/sass-1.16.0.tgz?cache=0&sync_timestamp=1621242658800&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fsass%2Fdownload%2F%40types%2Fsass-1.16.0.tgz#b41ac1c17fa68ffb57d43e2360486ef526b3d57d" + integrity sha1-tBrBwX+mj/tX1D4jYEhu9Saz1X0= + dependencies: + "@types/node" "*" + +"@types/topojson-specification@*": + version "1.0.1" + resolved "https://registry.nlark.com/@types/topojson-specification/download/@types/topojson-specification-1.0.1.tgz?cache=0&sync_timestamp=1621244011919&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Ftopojson-specification%2Fdownload%2F%40types%2Ftopojson-specification-1.0.1.tgz#a80cb294290b79f2d674d3f5938c544ed2bd9d80" + integrity sha1-qAyylCkLefLWdNP1k4xUTtK9nYA= + dependencies: + "@types/geojson" "*" + +ansi-styles@^4.1.0: + version "4.3.0" + resolved "https://registry.nlark.com/ansi-styles/download/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" + integrity sha1-7dgDYornHATIWuegkG7a00tkiTc= + dependencies: + color-convert "^2.0.1" + +chalk@^4.1.1: + version "4.1.1" + resolved "https://registry.nlark.com/chalk/download/chalk-4.1.1.tgz?cache=0&sync_timestamp=1618995367379&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fchalk%2Fdownload%2Fchalk-4.1.1.tgz#c80b3fab28bf6371e6863325eee67e618b77e6ad" + integrity sha1-yAs/qyi/Y3HmhjMl7uZ+YYt35q0= + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.npm.taobao.org/color-convert/download/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" + integrity sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM= + dependencies: + color-name "~1.1.4" + +color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.nlark.com/color-name/download/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" + integrity sha1-wqCah6y95pVD3m9j+jmVyCbFNqI= + +colorette@^1.2.2: + version "1.2.2" + resolved "https://registry.nlark.com/colorette/download/colorette-1.2.2.tgz#cbcc79d5e99caea2dbf10eb3a26fd8b3e6acfa94" + integrity sha1-y8x51emcrqLb8Q6zom/Ys+as+pQ= + +csscolorparser@~1.0.2: + version "1.0.3" + resolved "https://registry.npm.taobao.org/csscolorparser/download/csscolorparser-1.0.3.tgz#b34f391eea4da8f3e98231e2ccd8df9c041f171b" + integrity sha1-s085HupNqPPpgjHizNjfnAQfFxs= + +debug@^4.3.2: + version "4.3.2" + resolved "https://registry.nlark.com/debug/download/debug-4.3.2.tgz?cache=0&sync_timestamp=1618847042350&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fdebug%2Fdownload%2Fdebug-4.3.2.tgz#f0a49c18ac8779e31d4a0c6029dfb76873c7428b" + integrity sha1-8KScGKyHeeMdSgxgKd+3aHPHQos= + dependencies: + ms "2.1.2" + +detect-indent@^6.0.0: + version "6.0.0" + resolved "https://registry.nlark.com/detect-indent/download/detect-indent-6.0.0.tgz?cache=0&sync_timestamp=1618847118351&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fdetect-indent%2Fdownload%2Fdetect-indent-6.0.0.tgz#0abd0f549f69fc6659a254fe96786186b6f528fd" + integrity sha1-Cr0PVJ9p/GZZolT+lnhhhrb1KP0= + +esbuild@^0.11.23: + version "0.11.23" + resolved "https://registry.nlark.com/esbuild/download/esbuild-0.11.23.tgz?cache=0&sync_timestamp=1622080632605&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fesbuild%2Fdownload%2Fesbuild-0.11.23.tgz#c42534f632e165120671d64db67883634333b4b8" + integrity sha1-xCU09jLhZRIGcdZNtniDY0MztLg= + +estree-walker@^2.0.1: + version "2.0.2" + resolved "https://registry.npm.taobao.org/estree-walker/download/estree-walker-2.0.2.tgz?cache=0&sync_timestamp=1611956983677&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Festree-walker%2Fdownload%2Festree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac" + integrity sha1-UvAQF4wqTBF6d1fP6UKtt9LaTKw= + +fsevents@~2.3.1: + version "2.3.2" + resolved "https://registry.npm.taobao.org/fsevents/download/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" + integrity sha1-ilJveLj99GI7cJ4Ll1xSwkwC/Ro= + +function-bind@^1.1.1: + version "1.1.1" + resolved "https://registry.npm.taobao.org/function-bind/download/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" + integrity sha1-pWiZ0+o8m6uHS7l3O3xe3pL0iV0= + +has-flag@^4.0.0: + version "4.0.0" + resolved "https://registry.npm.taobao.org/has-flag/download/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" + integrity sha1-lEdx/ZyByBJlxNaUGGDaBrtZR5s= + +has@^1.0.3: + version "1.0.3" + resolved "https://registry.npm.taobao.org/has/download/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" + integrity sha1-ci18v8H2qoJB8W3YFOAR4fQeh5Y= + dependencies: + function-bind "^1.1.1" + +hash-sum@^2.0.0: + version "2.0.0" + resolved "https://registry.npm.taobao.org/hash-sum/download/hash-sum-2.0.0.tgz#81d01bb5de8ea4a214ad5d6ead1b523460b0b45a" + integrity sha1-gdAbtd6OpKIUrV1urRtSNGCwtFo= + +ieee754@^1.1.12: + version "1.2.1" + resolved "https://registry.nlark.com/ieee754/download/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" + integrity sha1-jrehCmP/8l0VpXsAFYbRd9Gw01I= + +is-core-module@^2.2.0: + version "2.4.0" + resolved "https://registry.nlark.com/is-core-module/download/is-core-module-2.4.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fis-core-module%2Fdownload%2Fis-core-module-2.4.0.tgz#8e9fc8e15027b011418026e98f0e6f4d86305cc1" + integrity sha1-jp/I4VAnsBFBgCbpjw5vTYYwXME= + dependencies: + has "^1.0.3" + +json-stringify-pretty-compact@^2.0.0: + version "2.0.0" + resolved "https://registry.npm.taobao.org/json-stringify-pretty-compact/download/json-stringify-pretty-compact-2.0.0.tgz#e77c419f52ff00c45a31f07f4c820c2433143885" + integrity sha1-53xBn1L/AMRaMfB/TIIMJDMUOIU= + +mapbox-to-css-font@^2.4.0: + version "2.4.0" + resolved "https://registry.npm.taobao.org/mapbox-to-css-font/download/mapbox-to-css-font-2.4.0.tgz#a23b51664a1ee839beaefade013f2655bee9a390" + integrity sha1-ojtRZkoe6Dm+rvreAT8mVb7po5A= + +min-indent@^1.0.0: + version "1.0.1" + resolved "https://registry.npm.taobao.org/min-indent/download/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869" + integrity sha1-pj9oFnOzBXH76LwlaGrnRu76mGk= + +minimist@^1.2.5: + version "1.2.5" + resolved "https://registry.nlark.com/minimist/download/minimist-1.2.5.tgz?cache=0&sync_timestamp=1618847017774&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fminimist%2Fdownload%2Fminimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" + integrity sha1-Z9ZgFLZqaoqqDAg8X9WN9OTpdgI= + +ms@2.1.2: + version "2.1.2" + resolved "https://registry.nlark.com/ms/download/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" + integrity sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk= + +nanoid@^3.1.23: + version "3.1.23" + resolved "https://registry.nlark.com/nanoid/download/nanoid-3.1.23.tgz#f744086ce7c2bc47ee0a8472574d5c78e4183a81" + integrity sha1-90QIbOfCvEfuCoRyV01ceOQYOoE= + +ol-mapbox-style@^6.1.1: + version "6.3.2" + resolved "https://registry.npm.taobao.org/ol-mapbox-style/download/ol-mapbox-style-6.3.2.tgz#5cd1cbb41ecd697d3488fd928976def108a41d3b" + integrity sha1-XNHLtB7NaX00iP2SiXbe8QikHTs= + dependencies: + "@mapbox/mapbox-gl-style-spec" "^13.14.0" + mapbox-to-css-font "^2.4.0" + webfont-matcher "^1.1.0" + +ol@^6.5.0: + version "6.5.0" + resolved "https://registry.nlark.com/ol/download/ol-6.5.0.tgz#d9cd59081ac34dc4caf0509c3f667748a8207a21" + integrity sha1-2c1ZCBrDTcTK8FCcP2Z3SKggeiE= + dependencies: + ol-mapbox-style "^6.1.1" + pbf "3.2.1" + rbush "^3.0.1" + +path-parse@^1.0.6: + version "1.0.7" + resolved "https://registry.nlark.com/path-parse/download/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" + integrity sha1-+8EUtgykKzDZ2vWFjkvWi77bZzU= + +pbf@3.2.1: + version "3.2.1" + resolved "https://registry.npm.taobao.org/pbf/download/pbf-3.2.1.tgz#b4c1b9e72af966cd82c6531691115cc0409ffe2a" + integrity sha1-tMG55yr5Zs2CxlMWkRFcwECf/io= + dependencies: + ieee754 "^1.1.12" + resolve-protobuf-schema "^2.1.0" + +picomatch@^2.2.2: + version "2.3.0" + resolved "https://registry.nlark.com/picomatch/download/picomatch-2.3.0.tgz?cache=0&sync_timestamp=1621648246651&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fpicomatch%2Fdownload%2Fpicomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972" + integrity sha1-8fBh3o9qS/AiiS4tEoI0+5gwKXI= + +postcss@^8.2.10: + version "8.3.0" + resolved "https://registry.nlark.com/postcss/download/postcss-8.3.0.tgz?cache=0&sync_timestamp=1621568644827&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fpostcss%2Fdownload%2Fpostcss-8.3.0.tgz#b1a713f6172ca427e3f05ef1303de8b65683325f" + integrity sha1-sacT9hcspCfj8F7xMD3otlaDMl8= + dependencies: + colorette "^1.2.2" + nanoid "^3.1.23" + source-map-js "^0.6.2" + +protocol-buffers-schema@^3.3.1: + version "3.5.1" + resolved "https://registry.npm.taobao.org/protocol-buffers-schema/download/protocol-buffers-schema-3.5.1.tgz#8388e768d383ac8cbea23e1280dfadb79f4122ad" + integrity sha1-g4jnaNODrIy+oj4SgN+tt59BIq0= + +quickselect@^2.0.0: + version "2.0.0" + resolved "https://registry.npm.taobao.org/quickselect/download/quickselect-2.0.0.tgz#f19680a486a5eefb581303e023e98faaf25dd018" + integrity sha1-8ZaApIal7vtYEwPgI+mPqvJd0Bg= + +rbush@^3.0.1: + version "3.0.1" + resolved "https://registry.npm.taobao.org/rbush/download/rbush-3.0.1.tgz#5fafa8a79b3b9afdfe5008403a720cc1de882ecf" + integrity sha1-X6+op5s7mv3+UAhAOnIMwd6ILs8= + dependencies: + quickselect "^2.0.0" + +require-relative@^0.8.7: + version "0.8.7" + resolved "https://registry.npm.taobao.org/require-relative/download/require-relative-0.8.7.tgz#7999539fc9e047a37928fa196f8e1563dabd36de" + integrity sha1-eZlTn8ngR6N5KPoZb44VY9q9Nt4= + +resolve-protobuf-schema@^2.1.0: + version "2.1.0" + resolved "https://registry.npm.taobao.org/resolve-protobuf-schema/download/resolve-protobuf-schema-2.1.0.tgz#9ca9a9e69cf192bbdaf1006ec1973948aa4a3758" + integrity sha1-nKmp5pzxkrva8QBuwZc5SKpKN1g= + dependencies: + protocol-buffers-schema "^3.3.1" + +resolve@^1.19.0: + version "1.20.0" + resolved "https://registry.nlark.com/resolve/download/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975" + integrity sha1-YpoBP7P3B1XW8LeTXMHCxTeLGXU= + dependencies: + is-core-module "^2.2.0" + path-parse "^1.0.6" + +rollup@^2.38.5: + version "2.50.1" + resolved "https://registry.nlark.com/rollup/download/rollup-2.50.1.tgz?cache=0&sync_timestamp=1622014232980&other_urls=https%3A%2F%2Fregistry.nlark.com%2Frollup%2Fdownload%2Frollup-2.50.1.tgz#5d52d5c65ade19164d56efec98f16a461c6df38e" + integrity sha1-XVLVxlreGRZNVu/smPFqRhxt844= + optionalDependencies: + fsevents "~2.3.1" + +rw@^1.3.3: + version "1.3.3" + resolved "https://registry.nlark.com/rw/download/rw-1.3.3.tgz#3f862dfa91ab766b14885ef4d01124bfda074fb4" + integrity sha1-P4Yt+pGrdmsUiF700BEkv9oHT7Q= + +slash@^4.0.0: + version "4.0.0" + resolved "https://registry.nlark.com/slash/download/slash-4.0.0.tgz#2422372176c4c6c5addb5e2ada885af984b396a7" + integrity sha1-JCI3IXbExsWt214q2oha+YSzlqc= + +sort-asc@^0.1.0: + version "0.1.0" + resolved "https://registry.npm.taobao.org/sort-asc/download/sort-asc-0.1.0.tgz#ab799df61fc73ea0956c79c4b531ed1e9e7727e9" + integrity sha1-q3md9h/HPqCVbHnEtTHtHp53J+k= + +sort-desc@^0.1.1: + version "0.1.1" + resolved "https://registry.npm.taobao.org/sort-desc/download/sort-desc-0.1.1.tgz#198b8c0cdeb095c463341861e3925d4ee359a9ee" + integrity sha1-GYuMDN6wlcRjNBhh45JdTuNZqe4= + +sort-object@^0.3.2: + version "0.3.2" + resolved "https://registry.npm.taobao.org/sort-object/download/sort-object-0.3.2.tgz#98e0d199ede40e07c61a84403c61d6c3b290f9e2" + integrity sha1-mODRme3kDgfGGoRAPGHWw7KQ+eI= + dependencies: + sort-asc "^0.1.0" + sort-desc "^0.1.1" + +source-map-js@^0.6.2: + version "0.6.2" + resolved "https://registry.npm.taobao.org/source-map-js/download/source-map-js-0.6.2.tgz#0bb5de631b41cfbda6cfba8bd05a80efdfd2385e" + integrity sha1-C7XeYxtBz72mz7qL0FqA79/SOF4= + +source-map@^0.7.3: + version "0.7.3" + resolved "https://registry.nlark.com/source-map/download/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383" + integrity sha1-UwL4FpAxc1ImVECS5kmB91F1A4M= + +strip-indent@^3.0.0: + version "3.0.0" + resolved "https://registry.nlark.com/strip-indent/download/strip-indent-3.0.0.tgz?cache=0&sync_timestamp=1620053310624&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fstrip-indent%2Fdownload%2Fstrip-indent-3.0.0.tgz#c32e1cee940b6b3432c771bc2c54bcce73cd3001" + integrity sha1-wy4c7pQLazQyx3G8LFS8znPNMAE= + dependencies: + min-indent "^1.0.0" + +supports-color@^7.1.0: + version "7.2.0" + resolved "https://registry.npm.taobao.org/supports-color/download/supports-color-7.2.0.tgz?cache=0&sync_timestamp=1618560983872&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsupports-color%2Fdownload%2Fsupports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" + integrity sha1-G33NyzK4E4gBs+R4umpRyqiWSNo= + dependencies: + has-flag "^4.0.0" + +svelte-hmr@^0.14.2: + version "0.14.4" + resolved "https://registry.nlark.com/svelte-hmr/download/svelte-hmr-0.14.4.tgz#b7ef2bfeef23916e0e912828c50645ca572ac355" + integrity sha1-t+8r/u8jkW4OkSgoxQZFylcqw1U= + +svelte-preprocess@^4.7.2: + version "4.7.3" + resolved "https://registry.nlark.com/svelte-preprocess/download/svelte-preprocess-4.7.3.tgz#454fa059c2400b15e7a3caeca18993cff9df0e96" + integrity sha1-RU+gWcJACxXno8rsoYmTz/nfDpY= + dependencies: + "@types/pug" "^2.0.4" + "@types/sass" "^1.16.0" + detect-indent "^6.0.0" + strip-indent "^3.0.0" + +svelte@^3.37.0: + version "3.38.2" + resolved "https://registry.nlark.com/svelte/download/svelte-3.38.2.tgz#55e5c681f793ae349b5cc2fe58e5782af4275ef5" + integrity sha1-VeXGgfeTrjSbXML+WOV4KvQnXvU= + +typescript@^4.2.4: + version "4.3.2" + resolved "https://registry.nlark.com/typescript/download/typescript-4.3.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ftypescript%2Fdownload%2Ftypescript-4.3.2.tgz#399ab18aac45802d6f2498de5054fcbbe716a805" + integrity sha1-OZqxiqxFgC1vJJjeUFT8u+cWqAU= + +vite@^2.3.4: + version "2.3.4" + resolved "https://registry.nlark.com/vite/download/vite-2.3.4.tgz?cache=0&sync_timestamp=1621932554383&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fvite%2Fdownload%2Fvite-2.3.4.tgz#370118e0334725b898ff754ea43d5db4c5e120e3" + integrity sha1-NwEY4DNHJbiY/3VOpD1dtMXhIOM= + dependencies: + esbuild "^0.11.23" + postcss "^8.2.10" + resolve "^1.19.0" + rollup "^2.38.5" + optionalDependencies: + fsevents "~2.3.1" + +webfont-matcher@^1.1.0: + version "1.1.0" + resolved "https://registry.npm.taobao.org/webfont-matcher/download/webfont-matcher-1.1.0.tgz#98ce95097b29e31fbe733053e10e571642d1c6c7" + integrity sha1-mM6VCXsp4x++czBT4Q5XFkLRxsc= diff --git a/vue3-ts-cesium181/package.json b/vue3-ts-cesium181/package.json index ba98117..b2e43ea 100644 --- a/vue3-ts-cesium181/package.json +++ b/vue3-ts-cesium181/package.json @@ -7,11 +7,11 @@ "serve": "vite preview" }, "dependencies": { - "@types/cesium": "^1.67.13", "cesium": "^1.81.0", "vue": "^3.0.5" }, "devDependencies": { + "@types/cesium": "^1.67.13", "@vitejs/plugin-vue": "^1.2.2", "@vue/compiler-sfc": "^3.0.5", "typescript": "^4.1.3", diff --git a/vue3-ts-leaflet/package.json b/vue3-ts-leaflet/package.json index 680a7fb..01e98f6 100644 --- a/vue3-ts-leaflet/package.json +++ b/vue3-ts-leaflet/package.json @@ -7,11 +7,11 @@ "serve": "vite preview" }, "dependencies": { - "@types/leaflet": "^1.7.0", "leaflet": "^1.7.1", "vue": "^3.0.5" }, "devDependencies": { + "@types/leaflet": "^1.7.0", "@vitejs/plugin-vue": "^1.2.2", "@vue/compiler-sfc": "^3.0.5", "typescript": "^4.1.3", diff --git a/vue3-ts-mapboxgl/package.json b/vue3-ts-mapboxgl/package.json index 39e94bb..fa7112f 100644 --- a/vue3-ts-mapboxgl/package.json +++ b/vue3-ts-mapboxgl/package.json @@ -7,11 +7,11 @@ "serve": "vite preview" }, "dependencies": { - "@types/mapbox-gl": "1.13.0", "mapbox-gl": "1.13.1", "vue": "^3.0.5" }, "devDependencies": { + "@types/mapbox-gl": "1.13", "@vitejs/plugin-vue": "^1.2.2", "@vue/compiler-sfc": "^3.0.5", "typescript": "^4.1.3", diff --git a/vue3-ts-mapboxgl/yarn.lock b/vue3-ts-mapboxgl/yarn.lock index 2a6a661..f05be07 100644 --- a/vue3-ts-mapboxgl/yarn.lock +++ b/vue3-ts-mapboxgl/yarn.lock @@ -75,10 +75,10 @@ resolved "https://registry.nlark.com/@types/geojson/download/@types/geojson-7946.0.7.tgz#c8fa532b60a0042219cdf173ca21a975ef0666ad" integrity sha1-yPpTK2CgBCIZzfFzyiGpde8GZq0= -"@types/mapbox-gl@1.13.0": - version "1.13.0" - resolved "https://registry.nlark.com/@types/mapbox-gl/download/@types/mapbox-gl-1.13.0.tgz?cache=0&sync_timestamp=1621241797834&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fmapbox-gl%2Fdownload%2F%40types%2Fmapbox-gl-1.13.0.tgz#914836d0ea5d1a433252c8debeef75d410c3d062" - integrity sha1-kUg20OpdGkMyUsjevu911BDD0GI= +"@types/mapbox-gl@1.13": + version "1.13.1" + resolved "https://registry.nlark.com/@types/mapbox-gl/download/@types/mapbox-gl-1.13.1.tgz?cache=0&sync_timestamp=1621241797834&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fmapbox-gl%2Fdownload%2F%40types%2Fmapbox-gl-1.13.1.tgz#bd8108f912f32c895117e2970b6d4fbbecbe42a1" + integrity sha1-vYEI+RLzLIlRF+KXC21Pu+y+QqE= dependencies: "@types/geojson" "*" diff --git a/vue3-ts-ol6/package.json b/vue3-ts-ol6/package.json index ed84460..10c0cf0 100644 --- a/vue3-ts-ol6/package.json +++ b/vue3-ts-ol6/package.json @@ -7,11 +7,11 @@ "serve": "vite preview" }, "dependencies": { - "@types/ol": "^6.5.0", "ol": "^6.5.0", "vue": "^3.0.5" }, "devDependencies": { + "@types/ol": "^6.5.0", "@vitejs/plugin-vue": "^1.2.2", "@vue/compiler-sfc": "^3.0.5", "typescript": "^4.1.3",