Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blegay/qr_component
qrCode generator component for 4D
https://github.com/blegay/qr_component
Last synced: 2 months ago
JSON representation
qrCode generator component for 4D
- Host: GitHub
- URL: https://github.com/blegay/qr_component
- Owner: blegay
- Created: 2024-01-25T00:06:50.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-25T04:54:08.000Z (about 1 year ago)
- Last Synced: 2024-08-03T20:03:00.702Z (6 months ago)
- Language: JavaScript
- Size: 46.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-4d - QR Code
README
# qr_component
This component uses Javascript libraries and Offscreen web areas to generate QR Codes.
This component works with 4D v19+ (requires Offscreen web areas).
Two libraries are used (and packaged in the component)
https://github.com/davidshimjs/qrcodejs
```4d
// Before 4D v19R5
var $vt_text : Text
$vt_text:="Hello"var $qrCode : Object
$qrCode:=qr_qrCodeShimNew($vt_text)
var $picture : Picture
$picture:=$qrCode.generate()// in 4D v19R5+
var $vt_text : Text
$vt_text:="Hello"var $qrCode : cs.qrcode.qrCodeShim
$qrCode:=cs.qrcode.qrCodeShim.new($vt_text)
var $picture : Picture
$picture:=$qrCode.generate()
```https://github.com/kozakdenys/qr-code-styling
```4d
// Before 4D v19R5
var $vt_text; $vt_logo : Text
$vt_text:="Hello"
$vt_logo:="" // e.g. "data:image/svg+xml;base64,PD94b...z4K"var $qrCode : Object
$qrCode:=qr_qrCodeStylingNew($vt_text;$vt_logo)
var $picture : Picture
$picture:=$qrCode.generate()// in 4D v19R5+
var $vt_text; $vt_logo : Text
$vt_text:="Hello"
$vt_logo:="" // e.g. "data:image/svg+xml;base64,PD94b...z4K"var $qrCode : cs.qrcode.qrCodeStyling
$qrCode:=cs.qrcode.qrCodeStyling.new($vt_text;$vt_logo)
var $picture : Picture
$picture:=$qrCode.generate()
```