
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
three-geojson-geometry
Advanced tools
A ThreeJS geometry class for stroking GeoJSON objects on a sphere.
import GeoJsonGeometry from 'three-geojson-geometry';
or using a script tag
<script src="//unpkg.com/three-geojson-geometry"></script>
then
const myLine = new THREE.Line(
new GeoJsonGeometry(geoJson),
new THREE.LineBasicMaterial({ color: 'blue' })
);
GeoJsonGeometry(geoJson: GeoJson object, radius: Float, resolution: Float)
geometry
object. It's recommended to split the geometries at the anti-meridian. Each coordinates
point is expected to include longitude and latitude in that order. Altitude may be included as a third optional element, interpreted as elevation above the surface in regular cartesian units.1
.5
..parameters: Object
An object with a property for each of the constructor parameters. Any modification after instantiation does not change the geometry.
When generating Polygon
or MultiPolygon
geometries, two groups are provided to which different materials can be applied.
Different geoJson types should be represented using different ThreeJS object types:
Point
and MultiPoints
- Use THREE.Points
LineString
and Polygon
- Use THREE.Line
MultiLineString
and MultiPolygon
- Use THREE.LineSegments
FAQs
ThreeJS geometry for stroking GeoJSON objects on a sphere
The npm package three-geojson-geometry receives a total of 53,305 weekly downloads. As such, three-geojson-geometry popularity was classified as popular.
We found that three-geojson-geometry demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.