New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@planet/react-globe

Package Overview
Dependencies
Maintainers
5
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@planet/react-globe - npm Package Compare versions

Comparing version 1.7.0-beta.1 to 1.7.0

12

lib/globe.js

@@ -19,3 +19,3 @@ var React = require('react');

componentDidMount: function componentDidMount() {
componentDidMount: function() {
var diameter = this.props.diameter || 80;

@@ -42,7 +42,7 @@ var data = worldData;

componentWillUpdate: function componentWillUpdate(nextProps, nextState) {
componentWillUpdate: function(nextProps, nextState) {
this._recenter(nextProps.center);
},
_renderCanvas: function _renderCanvas(circle) {
_renderCanvas: function(circle) {
if (!this.refs.canvas) {

@@ -92,3 +92,3 @@ // It would be nice to cancel the d3 transition on componentWillUnmount.

_recenter: function _recenter(center) {
_recenter: function(center) {
var circle = d3.geo.circle().origin([center[1], center[0]]).angle(6)();

@@ -106,7 +106,7 @@ var rotate = d3.interpolate(this.projection.rotate(), [-center[1], -center[0]]);

_getSize: function _getSize() {
_getSize: function() {
return this.props.diameter;
},
render: function render() {
render: function() {
var size = this._getSize();

@@ -113,0 +113,0 @@ return React.createElement('div', {className: 'pl-globe'},

{
"name": "@planet/react-globe",
"version": "1.7.0-beta.1",
"version": "1.7.0",
"description": "A React Globe Component",

@@ -5,0 +5,0 @@ "main": "lib/globe.js",

@@ -15,3 +15,3 @@ # React-globe

- shaded: Whether the globe is shaded, for a 3d look, or flat.
- shadingOpacity: Opacity of the shading, if eneabled. Defaults to 1.
- shadingOpacity: Opacity of the shading, if enabled. Defaults to 1.

@@ -18,0 +18,0 @@ ## Animation

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc