svelte-qrcode-image
Advanced tools
Comparing version 1.0.0-beta to 1.0.0-rc.1
# Svelte-QRCode-Image changelog | ||
## 1.0.0-rc.1 | ||
Remove the `<div>` wrapping the `<img>` tag since it shouldn't be necessary. | ||
## 1.0.0-beta | ||
@@ -4,0 +7,0 @@ Update README.md |
{ | ||
"name": "svelte-qrcode-image", | ||
"version": "1.0.0-beta", | ||
"version": "1.0.0-rc.1", | ||
"devDependencies": { | ||
@@ -5,0 +5,0 @@ "@sveltejs/adapter-auto": "next", |
@@ -30,2 +30,3 @@ # Svelte-QRCode-Image | ||
``` | ||
And that's all you need to put inside the `<script>` tag. | ||
```html | ||
@@ -44,17 +45,17 @@ <QRCodeImage text="hi" /> | ||
| prop | type | description | default value | | ||
|----------------------|--------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------| | ||
| text | string | what you want the QR Code to show; the QR Code will changed automatically if any changes in the variable binding to it | "Hello World" | | ||
| displayType | "img", "canvas" | display the image in `<canvas>` or `<img>` | "img" | | ||
| displayWidth | number | pass to the `width` attribute of `<img>` or `<canvas> tag | null - the final `<img>` element will not have this property | | ||
| displayHeight | number | pass to the `height` attribute of `<img>` or `<canvas> tag | null - the final `<img>` element will not have this property | | ||
| displayStyle | string | pass to the `style` attribute of `<img>` or `<canvas>` tag | null - the final `<img>` element will not have this property | | ||
| altText | string | pass to the `alt` attribute of `<img>` tag | "QR Code" | | ||
| displayID | string | pass to the `id` attribute of `<img>` or `<canvas> tag | null - the final element will not have this property | | ||
| displayClass | string | pass to the `class` attribute of `<img>` or `<canvas> tag | null - the final element will not have this property | | ||
| margin | number | pass to `margin` to the options of [qrcode](https://www.npmjs.com/package/qrcode): Define how much wide the quiet zone should be | 4 | | ||
| scale | number | pass to `scale` to the options of [qrcode](https://www.npmjs.com/package/qrcode): A value of `1` means 1px per modules (black dots) | 4 | | ||
| width | number | pass to `width` to the options of [qrcode](https://www.npmjs.com/package/qrcode): Forces a specific width for the output image and takes precedence over `scale`. | undefined - will be calculated | | ||
| errorCorrectionLevel | "L", "M", "Q", "H" | pass to `errorCorrectionLevel` to the options of [qrcode](https://www.npmjs.com/package/qrcode): Error correction level. | "M" | | ||
| version | number | pass to `version` to the options of [qrcode](https://www.npmjs.com/package/qrcode): QR Code version. | undefined - will be calculated | | ||
| prop | type | description | default value | | ||
|----------------------|--------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------| | ||
| text | string | what you want the QR Code to show; the QR Code will changed automatically if any changes in the variable binding to it | "Hello World" | | ||
| displayType | "img" | "canvas" | display the image in `<canvas>` or `<img>` | "img" | | ||
| displayWidth | number | pass to the `width` attribute of `<img>` or `<canvas> tag | null - the final `<img>` element will not have this property | | ||
| displayHeight | number | pass to the `height` attribute of `<img>` or `<canvas> tag | null - the final `<img>` element will not have this property | | ||
| displayStyle | string | pass to the `style` attribute of `<img>` or `<canvas>` tag | null - the final `<img>` element will not have this property | | ||
| altText | string | pass to the `alt` attribute of `<img>` tag | "QR Code" | | ||
| displayID | string | pass to the `id` attribute of `<img>` or `<canvas> tag | null - the final element will not have this property | | ||
| displayClass | string | pass to the `class` attribute of `<img>` or `<canvas> tag | null - the final element will not have this property | | ||
| margin | number | pass to `margin` to the options of [qrcode](https://www.npmjs.com/package/qrcode): Define how much wide the quiet zone should be | 4 | | ||
| scale | number | pass to `scale` to the options of [qrcode](https://www.npmjs.com/package/qrcode): A value of `1` means 1px per modules (black dots) | 4 | | ||
| width | number | pass to `width` to the options of [qrcode](https://www.npmjs.com/package/qrcode): Forces a specific width for the output image and takes precedence over `scale`. | undefined - will be calculated | | ||
| errorCorrectionLevel | "L" | "M" | "Q" | "H" | pass to `errorCorrectionLevel` to the options of [qrcode](https://www.npmjs.com/package/qrcode): Error correction level. | "M" | | ||
| version | number | pass to `version` to the options of [qrcode](https://www.npmjs.com/package/qrcode): QR Code version. | undefined - will be calculated | | ||
@@ -84,2 +85,3 @@ | ||
- [ ] Automatic Testing | ||
- [ ] Reactivity on other options change | ||
@@ -95,2 +97,6 @@ | ||
## Change Log | ||
See [CHANGELOG.md](https://github.com/1toldyou/svelte-qrcode-image/blob/main/CHANGELOG.md) | ||
## Developing | ||
@@ -138,6 +144,2 @@ | ||
``` | ||
Which will npt create the `public` directory, which is needed for the website to work. | ||
## Change Log | ||
I decided not to write the change log until 1.0.0, but the commit history should be enough to track the changes. | ||
Which will npt create the `public` directory, which is needed for the website to work. |
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
17098
140