Browse Source

Add min values to operation args

j433866 6 năm trước cách đây
mục cha
commit
3e428c044a
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      src/core/operations/GenerateQRCode.mjs

+ 4 - 2
src/core/operations/GenerateQRCode.mjs

@@ -38,12 +38,14 @@ class GenerateQRCode extends Operation {
             {
                 "name": "Module size (px)",
                 "type": "number",
-                "value": 5
+                "value": 5,
+                "min": 1
             },
             {
                 "name": "Margin (num modules)",
                 "type": "number",
-                "value": 2
+                "value": 2,
+                "min": 0
             },
             {
                 "name": "Error correction",