qrcode.js

WebJar for qrcode.js

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.bower
Идентификатор

Идентификатор

qrcode
Последняя версия

Последняя версия

1.0.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

qrcode.js
WebJar for qrcode.js
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/janantala/qrcode.js

Скачать qrcode

Имя Файла Размер
qrcode-1.0.2.pom
qrcode-1.0.2.jar 17 KB
qrcode-1.0.2-sources.jar 22 bytes
Обзор

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.bower/qrcode/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>qrcode</artifactId>
    <version>1.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/qrcode/
implementation 'org.webjars.bower:qrcode:1.0.2'
// https://jarcasting.com/artifacts/org.webjars.bower/qrcode/
implementation ("org.webjars.bower:qrcode:1.0.2")
'org.webjars.bower:qrcode:jar:1.0.2'
<dependency org="org.webjars.bower" name="qrcode" rev="1.0.2">
  <artifact name="qrcode" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='qrcode', version='1.0.2')
)
libraryDependencies += "org.webjars.bower" % "qrcode" % "1.0.2"
[org.webjars.bower/qrcode "1.0.2"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

Build Status Coverage Status

qrcode.js v1.0.2

QR code generator, supports Numeric, Alphanumeric and Binary inputMode up to lvl 40.

Installation

Bower

We use bower for dependency management. Add

dependencies: {
    "qrcode": "latest"
}

To your bower.json file. Then run

bower install

Usage

Create QR code

var qr = new QRCode(typeNumber, correction, inputMode);
qr.addData(text);
qr.make();

Get module count

var modules = qr.getModuleCount();

Get tile color

for (var row = 0; row < modules; row++) {
  for (var col = 0; col < modules; col++) {
    var color = qr.isDark(row, col) ? '#000' : '#fff';
    //...
  }
}

type number

  • supported are all levels 1-40
  • use 0 for the lowest complexity

correction

  • Integer 1 - Level L (Low)
  • Integer 0 - Level M (Medium)
  • Integer 3 - Level Q (Quartile)
  • Integer 2 - Level H (High)

input mode

  • NUMBER: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
  • ALPHA_NUM: *0–9, A–Z (upper-case only), space, $, %, , +, -, ., /, :
  • 8bit (default): ISO 8859-1

Reference

Kazuhiko Arase, http://www.d-project.com/

License

The MIT License

Copyright (c) 2013 Jan Antala

Версии библиотеки

Версия
1.0.2