@galihru/orbinexsim 0.1.0 → 0.1.1

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 (3) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +46 -46
  3. package/package.json +55 -55
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Galih Ridho Utomo
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Galih Ridho Utomo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,46 +1,46 @@
1
- # @galihru/orbinexsim
2
-
3
- OrbinexSim adalah wrapper tingkat tinggi agar kamu bisa pakai Orbinex desktop + AR tanpa menulis ribuan baris kode.
4
-
5
- ## Install
6
-
7
- ```bash
8
- npm i @galihru/orbinexsim
9
- ```
10
-
11
- ## Pemakaian Paling Ringkas
12
-
13
- ```ts
14
- import { createOrbinexSim } from "@galihru/orbinexsim";
15
-
16
- const sim = createOrbinexSim("#app", {
17
- mode: "desktop",
18
- model: "Bumi",
19
- autoRequestAccess: true,
20
- });
21
-
22
- // pindah ke AR kapan saja
23
- await sim.launchAr({ camera: true, motionSensors: true });
24
- ```
25
-
26
- ## API Inti
27
-
28
- - `createOrbinexSim(target, options)`
29
- - `sim.setMode("desktop" | "ar")`
30
- - `sim.setModel("Bumi")`
31
- - `sim.launchAr({ camera: true })`
32
- - `sim.requestAccess({ camera: true, geolocation: true })`
33
- - `sim.buildQuickReport(radiusMeters)`
34
-
35
- ## Catatan
36
-
37
- - Module ini menggunakan `@galihru/orbinex` untuk kalkulasi dasar orbit.
38
- - Untuk mode AR, browser/user tetap bisa menolak permission kamera/sensor.
39
- - Default host viewer: `https://galihru.github.io/OrbinexSimulation/`
40
-
41
- ## Publish
42
-
43
- ```bash
44
- npm run build
45
- npm publish --access public
46
- ```
1
+ # @galihru/orbinexsim
2
+
3
+ OrbinexSim adalah wrapper tingkat tinggi agar kamu bisa pakai Orbinex desktop + AR tanpa menulis ribuan baris kode.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm i @galihru/orbinexsim
9
+ ```
10
+
11
+ ## Pemakaian Paling Ringkas
12
+
13
+ ```ts
14
+ import { createOrbinexSim } from "@galihru/orbinexsim";
15
+
16
+ const sim = createOrbinexSim("#app", {
17
+ mode: "desktop",
18
+ model: "Bumi",
19
+ autoRequestAccess: true,
20
+ });
21
+
22
+ // pindah ke AR kapan saja
23
+ await sim.launchAr({ camera: true, motionSensors: true });
24
+ ```
25
+
26
+ ## API Inti
27
+
28
+ - `createOrbinexSim(target, options)`
29
+ - `sim.setMode("desktop" | "ar")`
30
+ - `sim.setModel("Bumi")`
31
+ - `sim.launchAr({ camera: true })`
32
+ - `sim.requestAccess({ camera: true, geolocation: true })`
33
+ - `sim.buildQuickReport(radiusMeters)`
34
+
35
+ ## Catatan
36
+
37
+ - Module ini menggunakan `@galihru/orbinex` untuk kalkulasi dasar orbit.
38
+ - Untuk mode AR, browser/user tetap bisa menolak permission kamera/sensor.
39
+ - Default host viewer: `https://galihru.github.io/OrbinexSimulation/`
40
+
41
+ ## Publish
42
+
43
+ ```bash
44
+ npm run build
45
+ npm publish --access public
46
+ ```
package/package.json CHANGED
@@ -1,55 +1,55 @@
1
- {
2
- "name": "@galihru/orbinexsim",
3
- "version": "0.1.0",
4
- "description": "High-level Orbinex simulation + AR wrapper with one-call setup.",
5
- "type": "module",
6
- "license": "MIT",
7
- "author": "Galih Ridho Utomo",
8
- "homepage": "https://github.com/galihru/OrbinexSimulation/tree/main/orbinexsim-npm#readme",
9
- "repository": {
10
- "type": "git",
11
- "url": "git+https://github.com/galihru/OrbinexSimulation.git",
12
- "directory": "orbinexsim-npm"
13
- },
14
- "bugs": {
15
- "url": "https://github.com/galihru/OrbinexSimulation/issues"
16
- },
17
- "keywords": [
18
- "orbinex",
19
- "ar",
20
- "threejs",
21
- "simulation",
22
- "astronomy",
23
- "webxr"
24
- ],
25
- "main": "./dist/index.cjs",
26
- "module": "./dist/index.js",
27
- "types": "./dist/index.d.ts",
28
- "exports": {
29
- ".": {
30
- "types": "./dist/index.d.ts",
31
- "import": "./dist/index.js",
32
- "require": "./dist/index.cjs"
33
- }
34
- },
35
- "files": [
36
- "dist",
37
- "README.md",
38
- "LICENSE"
39
- ],
40
- "scripts": {
41
- "build": "tsup src/index.ts --dts --format esm,cjs --clean",
42
- "lint": "tsc --noEmit",
43
- "prepublishOnly": "npm run build"
44
- },
45
- "dependencies": {
46
- "@galihru/orbinex": "^0.1.0"
47
- },
48
- "devDependencies": {
49
- "tsup": "^8.5.0",
50
- "typescript": "^5.9.3"
51
- },
52
- "publishConfig": {
53
- "access": "public"
54
- }
55
- }
1
+ {
2
+ "name": "@galihru/orbinexsim",
3
+ "version": "0.1.1",
4
+ "description": "High-level Orbinex simulation + AR wrapper with one-call setup.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": "Galih Ridho Utomo",
8
+ "homepage": "https://github.com/galihru/OrbinexSimulation/tree/main/orbinexsim-npm#readme",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/galihru/OrbinexSimulation.git",
12
+ "directory": "orbinexsim-npm"
13
+ },
14
+ "bugs": {
15
+ "url": "https://github.com/galihru/OrbinexSimulation/issues"
16
+ },
17
+ "keywords": [
18
+ "orbinex",
19
+ "ar",
20
+ "threejs",
21
+ "simulation",
22
+ "astronomy",
23
+ "webxr"
24
+ ],
25
+ "main": "./dist/index.cjs",
26
+ "module": "./dist/index.js",
27
+ "types": "./dist/index.d.ts",
28
+ "exports": {
29
+ ".": {
30
+ "types": "./dist/index.d.ts",
31
+ "import": "./dist/index.js",
32
+ "require": "./dist/index.cjs"
33
+ }
34
+ },
35
+ "files": [
36
+ "dist",
37
+ "README.md",
38
+ "LICENSE"
39
+ ],
40
+ "scripts": {
41
+ "build": "tsup src/index.ts --dts --format esm,cjs --clean",
42
+ "lint": "tsc --noEmit",
43
+ "prepublishOnly": "npm run build"
44
+ },
45
+ "dependencies": {
46
+ "@galihru/orbinex": "^0.1.0"
47
+ },
48
+ "devDependencies": {
49
+ "tsup": "^8.5.0",
50
+ "typescript": "^5.9.3"
51
+ },
52
+ "publishConfig": {
53
+ "access": "public"
54
+ }
55
+ }