worldorbit 2.5.2 → 2.5.5

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.
@@ -1 +1,34 @@
1
- <!DOCTYPE html><html><head><script src='worldorbit.min.js'></script></head><body><div id='view'></div><script>const src = 'system Iyath\\nstar Iyath'; const parsed = WorldOrbit.loadWorldOrbitSource(src); const scene = WorldOrbit.renderDocumentToScene(parsed.document); WorldOrbit.createInteractiveViewer(document.getElementById('view'), { document: parsed.document }); console.log('success');</script></body></html>
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <script src="https://unpkg.com/worldorbit@2.5.2/dist/unpkg/worldorbit.min.js"></script>
6
+ <style>
7
+ html, body {
8
+ margin: 0;
9
+ width: 100%;
10
+ height: 100%;
11
+ }
12
+
13
+ #view {
14
+ width: 100vw;
15
+ height: 100vh;
16
+ }
17
+ </style>
18
+ </head>
19
+ <body>
20
+ <div id="view"></div>
21
+ <script>
22
+ const src = `system Iyath
23
+ star Iyath`;
24
+
25
+ const loaded = WorldOrbit.loadWorldOrbitSource(src);
26
+
27
+ WorldOrbit.createInteractiveViewer(document.getElementById('view'), {
28
+ document: loaded.document
29
+ });
30
+
31
+ console.log('success', loaded);
32
+ </script>
33
+ </body>
34
+ </html>
@@ -0,0 +1,2 @@
1
+ export * from "../../packages/core/dist/index.js";
2
+ export * from "../../packages/viewer/dist/index.js";