globe.gl 2.25.0 → 2.25.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.
@@ -28,8 +28,8 @@
28
28
 
29
29
  <script>
30
30
  const EARTH_RADIUS_KM = 6371; // km
31
- const SAT_SIZE = 100; // km
32
- const TIME_STEP = 4 * 1000; // per frame
31
+ const SAT_SIZE = 80; // km
32
+ const TIME_STEP = 3 * 1000; // per frame
33
33
 
34
34
  const timeLogger = document.getElementById('time-log');
35
35
 
@@ -48,10 +48,10 @@
48
48
  world.objectThreeObject(() => new THREE.Mesh(satGeometry, satMaterial));
49
49
 
50
50
  fetch('../datasets/space-track-leo.txt').then(r => r.text()).then(rawData => {
51
- const tleData = rawData.split('\n0').map(tle => tle.split('\n'));
51
+ const tleData = rawData.replace(/\r/g, '').split(/\n(?=[^12])/).map(tle => tle.split('\n'));
52
52
  const satData = tleData.map(([name, ...tle]) => ({
53
53
  satrec: satellite.twoline2satrec(...tle),
54
- name: name.split(' ').slice(1).join(' '),
54
+ name: name.trim().replace(/^0 /, '')
55
55
  }));
56
56
 
57
57
  // time ticker
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "globe.gl",
3
- "version": "2.25.0",
3
+ "version": "2.25.1",
4
4
  "description": "UI component for Globe Data Visualization using ThreeJS/WebGL",
5
5
  "unpkg": "dist/globe.gl.min.js",
6
6
  "jsdelivr": "dist/globe.gl.min.js",