@cosmicds/vue-toolkit 0.1.3 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/README.md +24 -0
  2. package/dist/index.common.js +11331 -10679
  3. package/dist/index.umd.js +11346 -10686
  4. package/dist/index.umd.min.js +6 -4
  5. package/dist/src/components/CreditLogos.vue.d.ts +22 -2
  6. package/dist/src/components/FundingAcknowledgement.vue.d.ts +21 -0
  7. package/dist/src/components/Gallery.vue.d.ts +79 -2
  8. package/dist/src/components/GeolocationButton.vue.d.ts +148 -0
  9. package/dist/src/components/IconButton.vue.d.ts +132 -2
  10. package/dist/src/components/LocationSelector.vue.d.ts +139 -2
  11. package/dist/src/components/WwtHud.vue.d.ts +69 -0
  12. package/dist/src/composables.d.ts +17 -0
  13. package/dist/src/geolocation.d.ts +25 -0
  14. package/dist/src/index.d.ts +10 -7
  15. package/dist/src/keyboard.d.ts +1 -1
  16. package/dist/src/mapbox.d.ts +46 -0
  17. package/dist/src/types.d.ts +122 -0
  18. package/dist/src/utils.d.ts +4 -0
  19. package/dist/src/wwt-utils.d.ts +5 -0
  20. package/dist/tsconfig.tsbuildinfo +1 -1
  21. package/package.json +5 -3
  22. package/src/composables.ts +56 -0
  23. package/src/geolocation.ts +110 -0
  24. package/src/index.ts +21 -14
  25. package/src/keyboard.ts +3 -3
  26. package/src/mapbox.ts +161 -0
  27. package/src/types.ts +149 -0
  28. package/src/utils.ts +33 -0
  29. package/src/wwt-utils.ts +51 -0
  30. package/dist/index.common.js.map +0 -1
  31. package/dist/index.umd.js.map +0 -1
  32. package/dist/index.umd.min.js.map +0 -1
  33. package/dist/src/components/DefaultMiniCredits.vue.d.ts +0 -3
  34. package/dist/src/components/FundingAcknowledgment.vue.d.ts +0 -3
  35. package/dist/src/components/MiniDSBase.d.ts +0 -373
  36. package/dist/src/components/wwtHUD.vue.d.ts +0 -3
package/README.md ADDED
@@ -0,0 +1,24 @@
1
+ # Cosmic Data Stories Vue toolkit
2
+
3
+ This repository contains the basic components for constructing a Vue-based Cosmic Data Story using WorldWide Telescope. Included are a base data story component that integrates WorldWide Telescope, as well as several other general-purpose components that can be easily added to a data story.
4
+
5
+ ## Installation
6
+
7
+ To install, simply run one of the following commands:
8
+ ```
9
+ # If you're using NPM
10
+ npm i @cosmicds/vue-toolkit
11
+
12
+ # or if you're using Yarn
13
+ yarn add @cosmicds/vue-toolkit
14
+ ```
15
+
16
+ ## Development
17
+
18
+ If you're doing development work on these components, it will likely be useful to have an external sample project that imports a development version of this one. The easiest way to do this is probably to use [`npm-link`](https://docs.npmjs.com/cli/v10/commands/npm-link). For example:
19
+ ```
20
+ cd <path-where-you-keep-this-repo>
21
+ npm link
22
+ cd <path-to-your-sample-repo>
23
+ npm link @cosmicds/vue-toolkit
24
+ ```