react-hook-visible-satellites
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -370,3 +370,6 @@ 'use strict'; | ||
if (isFastMoving) { | ||
ctx.fillText(name, textX, textY); | ||
if (elevation > 30) { | ||
ctx.fillText(name, textX, textY); | ||
} | ||
ctx.fillRect(x, y, 5, 5); | ||
@@ -433,3 +436,3 @@ satTextPositions.push({ | ||
const uniq = ramda.uniqBy(sat => sat.tleArr[0], visibleSatellites); | ||
const uniq = ramda.uniqBy(sat => sat.tleArr[1].substr(0, 7), visibleSatellites); | ||
const forDisplay = uniq.filter(satellite => satellite.info.elevation > 10); | ||
@@ -436,0 +439,0 @@ return React__default.createElement("div", { |
@@ -363,3 +363,6 @@ import React, { useState, useEffect, useRef } from 'react'; | ||
if (isFastMoving) { | ||
ctx.fillText(name, textX, textY); | ||
if (elevation > 30) { | ||
ctx.fillText(name, textX, textY); | ||
} | ||
ctx.fillRect(x, y, 5, 5); | ||
@@ -426,3 +429,3 @@ satTextPositions.push({ | ||
const uniq = uniqBy(sat => sat.tleArr[0], visibleSatellites); | ||
const uniq = uniqBy(sat => sat.tleArr[1].substr(0, 7), visibleSatellites); | ||
const forDisplay = uniq.filter(satellite => satellite.info.elevation > 10); | ||
@@ -429,0 +432,0 @@ return React.createElement("div", { |
{ | ||
"name": "react-hook-visible-satellites", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Computes and displays satellites currently visible overhead.", | ||
@@ -5,0 +5,0 @@ "main": "dist/react-hook-visible-satellites.cjs.js", |
@@ -118,3 +118,6 @@ import React, { useEffect, useRef } from "react"; | ||
if (isFastMoving) { | ||
ctx.fillText(name, textX, textY); | ||
if (elevation > 30) { | ||
ctx.fillText(name, textX, textY); | ||
} | ||
ctx.fillRect(x, y, 5, 5); | ||
@@ -195,3 +198,3 @@ | ||
const uniq = uniqBy(sat => sat.tleArr[0], visibleSatellites); | ||
const uniq = uniqBy(sat => sat.tleArr[1].substr(0, 7), visibleSatellites); | ||
@@ -198,0 +201,0 @@ const forDisplay = uniq.filter(satellite => satellite.info.elevation > 10); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1414796
1503