Browse Source

Add min values to operation args

j433866 6 years ago
parent
commit
3e428c044a
1 changed files with 4 additions and 2 deletions
  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",