svelte-qrcode-image
Advanced tools
Comparing version 0.0.3 to 0.1.0
{ | ||
"name": "svelte-qrcode-image", | ||
"version": "0.0.3", | ||
"version": "0.1.0", | ||
"devDependencies": { | ||
@@ -5,0 +5,0 @@ "@sveltejs/adapter-auto": "next", |
import { SvelteComponentTyped } from "svelte"; | ||
declare const __propDef: { | ||
props: { | ||
content?: string | undefined; | ||
text?: string | undefined; | ||
margin: number | undefined; | ||
scale: number | undefined; | ||
width: number | undefined; | ||
getImageURL?: (() => string) | undefined; | ||
}; | ||
@@ -15,3 +19,4 @@ events: { | ||
export default class QrCodeImage extends SvelteComponentTyped<QrCodeImageProps, QrCodeImageEvents, QrCodeImageSlots> { | ||
get getImageURL(): () => string; | ||
} | ||
export {}; |
@@ -1,17 +0,7 @@ | ||
# create-svelte | ||
# Svelte-QRCode-Image | ||
**Under development, please come back later** | ||
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte). | ||
QR-Code generated using [qrcode](https://www.npmjs.com/package/qrcode) ([node-qrcode](https://github.com/soldair/node-qrcode)) and display via `<img>` element, with TypeScript support. | ||
## Creating a project | ||
If you're seeing this, you've probably already done this step. Congrats! | ||
```bash | ||
# create a new project in the current directory | ||
npm create svelte@latest | ||
# create a new project in my-app | ||
npm create svelte@latest my-app | ||
``` | ||
## Developing | ||
@@ -23,5 +13,2 @@ | ||
npm run dev | ||
# or start the server and open the app in a new browser tab | ||
npm run dev -- --open | ||
``` | ||
@@ -43,3 +30,3 @@ | ||
Then you can publish it to npm | ||
Then you can publish it to npm (remember to login first) | ||
```bash | ||
@@ -49,1 +36,12 @@ cd package | ||
``` | ||
or | ||
```bash | ||
npm publish ./package | ||
``` | ||
## TODO | ||
- [ ] Documentation | ||
- [ ] Expose more options | ||
- [ ] Reactivity | ||
- [ ] Display the QR-Code as background image or canvas | ||
- [ ] Website for demo |
Sorry, the diff of this file is not supported yet
3145
24
45