Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "jsqr", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "QR code detection, extraction, decoding and parsing written as pure JS port of the ZXing library.", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/cozmo/jsQR", |
# jsQR | ||
[![Build Status](https://travis-ci.org/cozmo/jsQR.svg?branch=master)](https://travis-ci.org/cozmo/jsQR) | ||
A pure javascript port of the [ZXing](https://github.com/zxing/zxing) QR parsing library. | ||
@@ -4,0 +6,0 @@ This library takes in raw images and will locate, extract and parse any QR codes found within. |
@@ -29,3 +29,2 @@ export class BitMatrix { | ||
copyBit(x: number, y: number, versionBits: number): number { | ||
/// bool bit = mirrored ? bitMatrix[j, i] : bitMatrix[i, j]; | ||
return this.get(x, y) ? (versionBits << 1) | 0x1 : versionBits << 1; | ||
@@ -43,2 +42,13 @@ } | ||
} | ||
mirror(){ | ||
for (var x = 0; x < this.width; x++) { | ||
for (var y = x + 1; y < this.height; y++) { | ||
if (this.get(x, y) != this.get(y, x)) { | ||
this.set(x, y, !this.get(x, y)); | ||
this.set(y, x, !this.get(y, x)); | ||
} | ||
} | ||
} | ||
} | ||
} |
/// <reference path="./mocha.d.ts" /> | ||
/// <reference path="./node.d.ts" /> | ||
import assert = require("assert") | ||
import qrJS = require("../src/Main"); | ||
import qrJS = require("../src/main"); | ||
@@ -6,0 +6,0 @@ describe('main', () => { |
Sorry, the diff of this file is too big to display
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
472418
46
11028
194