Socket
Socket
Sign inDemoInstall

react-leaflet-semicircle

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-leaflet-semicircle - npm Package Compare versions

Comparing version 2.0.8 to 2.0.9

8

CHANGELOG.md

@@ -7,2 +7,10 @@ ### Changelog

#### [v2.0.9](https://github.com/clementallen/react-leaflet-semicircle/compare/vv2.0.8...vv2.0.9)
> 17 June 2020
- Update position and radius when props change to fix #51 [`#52`](https://github.com/clementallen/react-leaflet-semicircle/pull/52)
- Merge pull request #52 from clementallen/position [`#51`](https://github.com/clementallen/react-leaflet-semicircle/issues/51)
- Update position and radius when props change to fix #51 [`#51`](https://github.com/clementallen/react-leaflet-semicircle/issues/51)
#### [v2.0.8](https://github.com/clementallen/react-leaflet-semicircle/compare/vv2.0.7...vv2.0.8)

@@ -9,0 +17,0 @@

14

dist/AbstractComponent.js

@@ -28,3 +28,3 @@ "use strict";

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

@@ -65,3 +65,5 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

var startAngle = _ref2.startAngle,
stopAngle = _ref2.stopAngle;
stopAngle = _ref2.stopAngle,
position = _ref2.position,
radius = _ref2.radius;

@@ -75,2 +77,10 @@ if (fromProps.startAngle !== startAngle) {

}
if (fromProps.radius !== radius) {
this.leafletElement.setRadius(radius);
}
if (fromProps.position !== position) {
this.leafletElement.setLatLng(position);
}
}

@@ -77,0 +87,0 @@ }, {

2

dist/SemiCircle.js

@@ -26,3 +26,3 @@ "use strict";

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

@@ -29,0 +29,0 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

@@ -26,3 +26,3 @@ "use strict";

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

@@ -29,0 +29,0 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

{
"name": "react-leaflet-semicircle",
"version": "2.0.8",
"version": "2.0.9",
"description": "React wrapper of leaflet-semicircle",

@@ -38,7 +38,7 @@ "main": "dist/index.js",

"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.9.6",
"@babel/preset-env": "^7.9.6",
"@babel/preset-react": "^7.9.4",
"auto-changelog": "^2.0.0",
"@babel/cli": "^7.10.1",
"@babel/core": "^7.10.2",
"@babel/preset-env": "^7.10.2",
"@babel/preset-react": "^7.10.1",
"auto-changelog": "^2.1.0",
"babel-core": "^7.0.0-bridge.0",

@@ -49,8 +49,8 @@ "babel-eslint": "^10.1.0",

"enzyme-adapter-react-16": "^1.15.2",
"eslint": "^7.0.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint": "^7.2.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.20.0",
"jest": "^26.0.1",
"leaflet": "^1.6.0",
"np": "^6.2.3",
"np": "^6.2.4",
"prettier": "^2.0.5",

@@ -57,0 +57,0 @@ "react": "^16.13.1",

@@ -11,3 +11,6 @@ import { Path } from 'react-leaflet';

updateLeafletElement(fromProps, { startAngle, stopAngle }) {
updateLeafletElement(
fromProps,
{ startAngle, stopAngle, position, radius }
) {
if (fromProps.startAngle !== startAngle) {

@@ -19,2 +22,8 @@ this.leafletElement.setStartAngle(startAngle);

}
if (fromProps.radius !== radius) {
this.leafletElement.setRadius(radius);
}
if (fromProps.position !== position) {
this.leafletElement.setLatLng(position);
}
}

@@ -21,0 +30,0 @@

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