Skip to content

Commit

Permalink
feat: create SwissQRCode class
Browse files Browse the repository at this point in the history
  • Loading branch information
schoero committed Oct 28, 2023
1 parent 8f7f183 commit eb3f6ae
Show file tree
Hide file tree
Showing 26 changed files with 70,471 additions and 1,183 deletions.
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"SCOR",
"swiss",
"swissqrbill",
"swissqrcode",
"twint",
"Twint",
"TWINT",
Expand Down
408 changes: 408 additions & 0 deletions docs/pdf/index.md

Large diffs are not rendered by default.

129 changes: 0 additions & 129 deletions docs/pdf/swissqrbill.md

This file was deleted.

41 changes: 36 additions & 5 deletions docs/svg/swissqrbill.md → docs/svg/index.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

# Swissqrbill
# Index

- Class
- Classes

- [SwissQRBill](#swissqrbill-1)
- [SwissQRBill](#swissqrbill)

- Constructor

Expand All @@ -22,7 +22,13 @@
- [outerHTML()](#outerhtml)
- [element()](#element)

## Class
- [SwissQRCode](#swissqrcode)

- Constructor

- [constructor(data, size)](#constructordata-size)

## Classes

### SwissQRBill

Expand All @@ -43,7 +49,7 @@ Defined in: [src/svg/swissqrbill.ts](../../src/svg/swissqrbill.ts#L20C2)

##### Return Type

[`SwissQRBill`](#swissqrbill-1)
[`SwissQRBill`](#swissqrbill)

### Property

Expand Down Expand Up @@ -104,3 +110,28 @@ Defined in: [src/svg/swissqrbill.ts](../../src/svg/swissqrbill.ts#L66C2)
##### Description

Returns the SVG element.

## SwissQRCode

Defined in: [src/svg/swissqrcode.ts](../../src/svg/swissqrcode.ts#L8C0)

### Construct Signature

---

#### constructor(data, size)

Defined in: [src/svg/swissqrcode.ts](../../src/svg/swissqrcode.ts#L15C2)

##### Parameters

- **data** [`Data`](./types.md#data) The data to be encoded in the QR code.
- **size** [`number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) The size of the QR code in mm. Default: `46`

##### Return Type

[`SwissQRCode`](#swissqrcode)

##### Description

Creates a Swiss QR Code.
Loading

0 comments on commit eb3f6ae

Please sign in to comment.