globe.gl 2.25.1 → 2.25.2

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.
@@ -48,11 +48,16 @@
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.replace(/\r/g, '').split(/\n(?=[^12])/).map(tle => tle.split('\n'));
51
+ const tleData = rawData.replace(/\r/g, '')
52
+ .split(/\n(?=[^12])/)
53
+ .filter(d => d)
54
+ .map(tle => tle.split('\n'));
52
55
  const satData = tleData.map(([name, ...tle]) => ({
53
56
  satrec: satellite.twoline2satrec(...tle),
54
57
  name: name.trim().replace(/^0 /, '')
55
- }));
58
+ }))
59
+ // exclude those that can't be propagated
60
+ .filter(d => !!satellite.propagate(d.satrec, new Date()).position);
56
61
 
57
62
  // time ticker
58
63
  let time = new Date();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "globe.gl",
3
- "version": "2.25.1",
3
+ "version": "2.25.2",
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",
@@ -51,10 +51,10 @@
51
51
  "@babel/plugin-proposal-class-properties": "^7.16.7",
52
52
  "@babel/plugin-proposal-object-rest-spread": "^7.17.3",
53
53
  "@babel/preset-env": "^7.16.11",
54
- "@rollup/plugin-babel": "^5.3.0",
55
- "@rollup/plugin-commonjs": "^21.0.1",
54
+ "@rollup/plugin-babel": "^5.3.1",
55
+ "@rollup/plugin-commonjs": "^21.0.2",
56
56
  "@rollup/plugin-node-resolve": "^13.1.3",
57
- "postcss": "^8.4.6",
57
+ "postcss": "^8.4.7",
58
58
  "rimraf": "^3.0.2",
59
59
  "rollup": "^2.68.0",
60
60
  "rollup-plugin-dts": "^4.1.0",