fastqr 1.0.2 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fcec6f8e2ad38aed5ba26c3c5546d56b862926ae66c13695f9f435214fbbf291
4
- data.tar.gz: 57b79df20dbd852544bfbff0a0ebaac7eb28aa7c2ba98e507067c9a3c8391061
3
+ metadata.gz: b5bc87ad4009f758f9aff46c0d5917d86569ff4a33c8fe7214eebf5afe18e67d
4
+ data.tar.gz: 7e20c35c5f4c3bddd0f0ab692f48e35c9d91c4a32e21687b6e149fa24921220a
5
5
  SHA512:
6
- metadata.gz: 7400f2b6f9f3eb3cb26903d46d8057bb26ef907e9afcef5d5676c3e0adf33aee7abea4ff467c77a94a02528afc21a9839080817c5ac263dc64faf73435df47f6
7
- data.tar.gz: bfdbf0b17aab3dd58f03bc18e51684d78233aa1eae8f2491f4ff47d0964839026b8d3cc4826ab91106f28934e778b975f246a4c2785355d3900f00900f7305c6
6
+ metadata.gz: 568507f82d04f70a416aedc03e5ec403149b2902f5d1a5d0a0a50c6b6738cc62462ad9120ca3b0979138fd9d1b3ae9b7fa44b944a2a995a32f5ee1023dc6fc6a
7
+ data.tar.gz: d50ce130bcf016a74045de7ef7a441edb36f7f76a1a9b21a61bab01ee0f7b2aeeb831c9f404167351ca7ea81a0f71677233d3846a510936610c777d08fce3583
data/CMakeLists.txt CHANGED
@@ -1,5 +1,5 @@
1
1
  cmake_minimum_required(VERSION 3.15)
2
- project(fastqr VERSION 1.0.0 LANGUAGES CXX C)
2
+ project(fastqr VERSION 1.0.5 LANGUAGES CXX C)
3
3
 
4
4
  set(CMAKE_CXX_STANDARD 14)
5
5
  set(CMAKE_CXX_STANDARD_REQUIRED ON)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.0.5
@@ -1,6 +1,6 @@
1
1
  {
2
- "name": "fastqr",
3
- "version": "1.0.2",
2
+ "name": "@tranhuucanh/fastqr",
3
+ "version": "1.0.5",
4
4
  "description": "Fast QR code generator with UTF-8 support, custom colors, logo embedding, and precise size control",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -30,6 +30,13 @@
30
30
  "url": "https://github.com/tranhuucanh/fastqr/issues"
31
31
  },
32
32
  "homepage": "https://github.com/tranhuucanh/fastqr#readme",
33
+ "files": [
34
+ "index.js",
35
+ "index.d.ts",
36
+ "lib/",
37
+ "prebuilt/",
38
+ "README.md"
39
+ ],
33
40
  "dependencies": {},
34
41
  "devDependencies": {},
35
42
  "engines": {
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FastQR
4
- VERSION = "1.0.2"
4
+ VERSION = "1.0.5"
5
5
  end
6
6
 
@@ -35,9 +35,11 @@ enum class ErrorCorrectionLevel {
35
35
  * Options for QR code generation
36
36
  */
37
37
  struct QROptions {
38
- // Output image dimensions
39
- int width = 300;
40
- int height = 300;
38
+ // Output image size (QR codes are square)
39
+ int size = 300;
40
+
41
+ // Optimize size - round up to nearest integer multiple for best performance
42
+ bool optimize_size = false;
41
43
 
42
44
  // QR code colors (RGB)
43
45
  struct Color {