ootk 1.0.4 → 1.0.8

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 (49) hide show
  1. package/CHANGELOG.md +19 -33
  2. package/LICENSE.MD +21 -21
  3. package/README.md +128 -128
  4. package/asc/asconfig.json +22 -0
  5. package/asc/assembly/index.ts +1143 -0
  6. package/asc/ex/asconfig.json +22 -0
  7. package/asc/ex/assembly/index.ts +5 -0
  8. package/asc/ex/index.html +10 -0
  9. package/asc/ex/package.json +19 -0
  10. package/asc/ex/tests/index.js +4 -0
  11. package/asc/package.json +19 -0
  12. package/asc/tests/index.js +4 -0
  13. package/{lib/ootk-utils.d.ts → dist/ootk.d.ts} +6 -11
  14. package/dist/ootk.js +1 -3850
  15. package/{lib/ootk-sgp4.d.ts → dist/sgp4.d.ts} +6 -140
  16. package/dist/transforms.d.ts +58 -0
  17. package/dist/types.d.ts +164 -0
  18. package/dist/utils.d.ts +34 -0
  19. package/lib/ootk.d.ts +4 -4
  20. package/lib/ootk.js +4 -4
  21. package/lib/ootk.js.map +1 -1
  22. package/lib/sgp4.d.ts +89 -0
  23. package/lib/{ootk-sgp4.js → sgp4.js} +545 -529
  24. package/lib/sgp4.js.map +1 -0
  25. package/lib/transforms.d.ts +58 -0
  26. package/lib/{ootk-transforms.js → transforms.js} +3 -4
  27. package/lib/transforms.js.map +1 -0
  28. package/lib/types.d.ts +164 -0
  29. package/lib/types.js +2 -0
  30. package/lib/types.js.map +1 -0
  31. package/lib/utils/constants.d.ts +30 -0
  32. package/lib/utils/constants.js +31 -0
  33. package/lib/utils/constants.js.map +1 -0
  34. package/lib/utils.d.ts +34 -0
  35. package/lib/{ootk-utils.js → utils.js} +14 -6
  36. package/lib/utils.js.map +1 -0
  37. package/package.json +17 -17
  38. package/sandbox.html +8 -0
  39. package/dist/ootk-sgp4.js +0 -3471
  40. package/dist/ootk-sgp4.min.js +0 -34
  41. package/dist/ootk-transforms.js +0 -340
  42. package/dist/ootk-transforms.min.js +0 -1
  43. package/dist/ootk-utils.js +0 -149
  44. package/dist/ootk-utils.min.js +0 -1
  45. package/dist/ootk.min.js +0 -60
  46. package/lib/ootk-sgp4.js.map +0 -1
  47. package/lib/ootk-transforms.d.ts +0 -141
  48. package/lib/ootk-transforms.js.map +0 -1
  49. package/lib/ootk-utils.js.map +0 -1
@@ -0,0 +1,22 @@
1
+ {
2
+ "targets": {
3
+ "debug": {
4
+ "outFile": "build/debug.wasm",
5
+ "textFile": "build/debug.wat",
6
+ "sourceMap": true,
7
+ "debug": true
8
+ },
9
+ "release": {
10
+ "outFile": "build/release.wasm",
11
+ "textFile": "build/release.wat",
12
+ "sourceMap": true,
13
+ "optimizeLevel": 3,
14
+ "shrinkLevel": 0,
15
+ "converge": false,
16
+ "noAssert": false
17
+ }
18
+ },
19
+ "options": {
20
+ "bindings": "esm"
21
+ }
22
+ }
@@ -0,0 +1,5 @@
1
+ // The entry file of your WebAssembly module.
2
+
3
+ export function add(a: i32, b: i32): i32 {
4
+ return a + b;
5
+ }
@@ -0,0 +1,10 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <script type="module">
5
+ import { add } from "./build/release.js";
6
+ document.body.innerText = add(1, 2);
7
+ </script>
8
+ </head>
9
+ <body></body>
10
+ </html>
@@ -0,0 +1,19 @@
1
+ {
2
+ "type": "module",
3
+ "exports": {
4
+ ".": {
5
+ "import": "./build/release.js",
6
+ "types": "./build/release.d.ts"
7
+ }
8
+ },
9
+ "scripts": {
10
+ "asbuild:debug": "asc assembly/index.ts --target debug",
11
+ "asbuild:release": "asc assembly/index.ts --target release",
12
+ "asbuild": "npm run asbuild:debug && npm run asbuild:release",
13
+ "test": "node tests",
14
+ "start": "npx serve ."
15
+ },
16
+ "devDependencies": {
17
+ "assemblyscript": "^0.20.13"
18
+ }
19
+ }
@@ -0,0 +1,4 @@
1
+ import assert from "assert";
2
+ import { add } from "../build/debug.js";
3
+ assert.strictEqual(add(1, 2), 3);
4
+ console.log("ok");
@@ -0,0 +1,19 @@
1
+ {
2
+ "type": "module",
3
+ "exports": {
4
+ ".": {
5
+ "import": "./build/release.js",
6
+ "types": "./build/release.d.ts"
7
+ }
8
+ },
9
+ "scripts": {
10
+ "asbuild:debug": "asc --bindings esm assembly/index.ts --target debug",
11
+ "asbuild:release": "asc --bindings esm assembly/index.ts --target release",
12
+ "asbuild": "npm run asbuild:debug && npm run asbuild:release",
13
+ "test": "node tests",
14
+ "start": "npx serve ."
15
+ },
16
+ "devDependencies": {
17
+ "assemblyscript": "^0.20.13"
18
+ }
19
+ }
@@ -0,0 +1,4 @@
1
+ import assert from "assert";
2
+ import { add } from "../build/debug.js";
3
+ assert.strictEqual(add(1, 2), 3);
4
+ console.log("ok");
@@ -3,7 +3,8 @@
3
3
  * @description Orbital Object ToolKit (OOTK) is a collection of tools for working
4
4
  * with satellites and other orbital objects.
5
5
  *
6
- * @file The Utils module.
6
+ * @copyright MIT License.
7
+ * Copyright (c) 2020-2021 Theodore Kruczek
7
8
  *
8
9
  * Permission is hereby granted, free of charge, to any person obtaining a copy
9
10
  * of this software and associated documentation files (the "Software"), to deal
@@ -23,13 +24,7 @@
23
24
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
25
  * SOFTWARE.
25
26
  */
26
- declare type vec3K = {
27
- x: number;
28
- y: number;
29
- z: number;
30
- };
31
- declare class Utils {
32
- static distance(pos1: vec3K, pos2: vec3K): number;
33
- static dopplerFactor(location: vec3K, position: vec3K, velocity: vec3K): number;
34
- }
35
- export { Utils };
27
+ export { Sgp4 } from './sgp4';
28
+ export { Transforms } from './transforms';
29
+ export { Utils } from './utils';
30
+ export * from './types';