react-qrcode-logo
Advanced tools
Comparing version 2.5.0 to 2.6.0
@@ -0,0 +0,0 @@ # Changelog |
@@ -22,2 +22,3 @@ import * as React from 'react'; | ||
style?: object; | ||
id?: string; | ||
} | ||
@@ -24,0 +25,0 @@ export declare class QRCode extends React.Component<IProps, {}> { |
@@ -214,5 +214,6 @@ "use strict"; | ||
QRCode.prototype.render = function () { | ||
var _a; | ||
var size = +this.props.size + (2 * +this.props.quietZone); | ||
return React.createElement('canvas', { | ||
id: 'react-qrcode-logo', | ||
id: (_a = this.props.id) !== null && _a !== void 0 ? _a : 'react-qrcode-logo', | ||
height: size, | ||
@@ -219,0 +220,0 @@ width: size, |
{ | ||
"name": "react-qrcode-logo", | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"description": "React component to generate a QR Code customizable with logo and more properties", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -43,2 +43,3 @@ # react-qrcode-logo | ||
| `eyeRadius` | `number` | `number[]` | `number[][]` | | The corner radius for the positional patterns (the three "eyes" around the QR code). See more details below | | ||
| `id` | `string` | `react-qrcode-logo` | Optional custom id for the QRCode canvas. You can use this prop if you have multiple QRCodes and need to differentiate them | | ||
@@ -45,0 +46,0 @@ ### About eyeRadius |
@@ -0,0 +0,0 @@ { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
559
130
161753