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.
- package/CHANGELOG.md +19 -33
- package/LICENSE.MD +21 -21
- package/README.md +128 -128
- package/asc/asconfig.json +22 -0
- package/asc/assembly/index.ts +1143 -0
- package/asc/ex/asconfig.json +22 -0
- package/asc/ex/assembly/index.ts +5 -0
- package/asc/ex/index.html +10 -0
- package/asc/ex/package.json +19 -0
- package/asc/ex/tests/index.js +4 -0
- package/asc/package.json +19 -0
- package/asc/tests/index.js +4 -0
- package/{lib/ootk-utils.d.ts → dist/ootk.d.ts} +6 -11
- package/dist/ootk.js +1 -3850
- package/{lib/ootk-sgp4.d.ts → dist/sgp4.d.ts} +6 -140
- package/dist/transforms.d.ts +58 -0
- package/dist/types.d.ts +164 -0
- package/dist/utils.d.ts +34 -0
- package/lib/ootk.d.ts +4 -4
- package/lib/ootk.js +4 -4
- package/lib/ootk.js.map +1 -1
- package/lib/sgp4.d.ts +89 -0
- package/lib/{ootk-sgp4.js → sgp4.js} +545 -529
- package/lib/sgp4.js.map +1 -0
- package/lib/transforms.d.ts +58 -0
- package/lib/{ootk-transforms.js → transforms.js} +3 -4
- package/lib/transforms.js.map +1 -0
- package/lib/types.d.ts +164 -0
- package/lib/types.js +2 -0
- package/lib/types.js.map +1 -0
- package/lib/utils/constants.d.ts +30 -0
- package/lib/utils/constants.js +31 -0
- package/lib/utils/constants.js.map +1 -0
- package/lib/utils.d.ts +34 -0
- package/lib/{ootk-utils.js → utils.js} +14 -6
- package/lib/utils.js.map +1 -0
- package/package.json +17 -17
- package/sandbox.html +8 -0
- package/dist/ootk-sgp4.js +0 -3471
- package/dist/ootk-sgp4.min.js +0 -34
- package/dist/ootk-transforms.js +0 -340
- package/dist/ootk-transforms.min.js +0 -1
- package/dist/ootk-utils.js +0 -149
- package/dist/ootk-utils.min.js +0 -1
- package/dist/ootk.min.js +0 -60
- package/lib/ootk-sgp4.js.map +0 -1
- package/lib/ootk-transforms.d.ts +0 -141
- package/lib/ootk-transforms.js.map +0 -1
- 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,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
|
+
}
|
package/asc/package.json
ADDED
|
@@ -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
|
+
}
|
|
@@ -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
|
-
* @
|
|
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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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';
|