qrdx 0.0.46 → 0.0.47

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.
Files changed (206) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +353 -300
  3. package/dist/index.js +27 -7
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +27 -7
  6. package/dist/index.mjs.map +1 -1
  7. package/dist/qr-code-canvas.js +12 -0
  8. package/dist/qr-code-canvas.js.map +1 -0
  9. package/dist/qr-code-canvas.mjs +12 -0
  10. package/dist/qr-code-canvas.mjs.map +1 -0
  11. package/dist/src/api.d.ts.map +1 -1
  12. package/dist/src/art-trace.d.ts +46 -0
  13. package/dist/src/art-trace.d.ts.map +1 -0
  14. package/dist/src/art.d.ts +138 -0
  15. package/dist/src/art.d.ts.map +1 -0
  16. package/dist/src/body-patterns.d.ts +34 -0
  17. package/dist/src/body-patterns.d.ts.map +1 -0
  18. package/dist/src/codegen.d.ts +5 -5
  19. package/dist/src/codegen.d.ts.map +1 -1
  20. package/dist/src/codeword-map.d.ts +40 -0
  21. package/dist/src/codeword-map.d.ts.map +1 -0
  22. package/dist/src/constants.d.ts +4 -7
  23. package/dist/src/constants.d.ts.map +1 -1
  24. package/dist/src/corner-dot.d.ts +3 -1
  25. package/dist/src/corner-dot.d.ts.map +1 -1
  26. package/dist/src/corner-eye.d.ts +5 -2
  27. package/dist/src/corner-eye.d.ts.map +1 -1
  28. package/dist/src/detection.d.ts.map +1 -1
  29. package/dist/src/download.d.ts +22 -5
  30. package/dist/src/download.d.ts.map +1 -1
  31. package/dist/src/eps.d.ts +62 -0
  32. package/dist/src/eps.d.ts.map +1 -0
  33. package/dist/src/frame-icons.d.ts +11 -0
  34. package/dist/src/frame-icons.d.ts.map +1 -0
  35. package/dist/src/frame-import.d.ts +61 -0
  36. package/dist/src/frame-import.d.ts.map +1 -0
  37. package/dist/src/frame-spec.d.ts +24 -0
  38. package/dist/src/frame-spec.d.ts.map +1 -0
  39. package/dist/src/frame-styles.d.ts +50 -0
  40. package/dist/src/frame-styles.d.ts.map +1 -0
  41. package/dist/src/frame.d.ts +126 -0
  42. package/dist/src/frame.d.ts.map +1 -0
  43. package/dist/src/frames/builtin.d.ts +8 -0
  44. package/dist/src/frames/builtin.d.ts.map +1 -0
  45. package/dist/src/frames/official.d.ts +18 -0
  46. package/dist/src/frames/official.d.ts.map +1 -0
  47. package/dist/src/helpers.d.ts +15 -2
  48. package/dist/src/helpers.d.ts.map +1 -1
  49. package/dist/src/index.d.ts +24 -13
  50. package/dist/src/index.d.ts.map +1 -1
  51. package/dist/src/logo-budget.d.ts +54 -0
  52. package/dist/src/logo-budget.d.ts.map +1 -0
  53. package/dist/src/logo-cleanup.d.ts +25 -0
  54. package/dist/src/logo-cleanup.d.ts.map +1 -0
  55. package/dist/src/logo.d.ts +28 -0
  56. package/dist/src/logo.d.ts.map +1 -0
  57. package/dist/src/print.d.ts +73 -0
  58. package/dist/src/print.d.ts.map +1 -0
  59. package/dist/src/qr-code-canvas.d.ts +13 -0
  60. package/dist/src/qr-code-canvas.d.ts.map +1 -0
  61. package/dist/src/qr-code.d.ts +4 -2
  62. package/dist/src/qr-code.d.ts.map +1 -1
  63. package/dist/src/qr-outline.d.ts +41 -0
  64. package/dist/src/qr-outline.d.ts.map +1 -0
  65. package/dist/src/qr-shape.d.ts +72 -0
  66. package/dist/src/qr-shape.d.ts.map +1 -0
  67. package/dist/src/scan-risk.d.ts +40 -0
  68. package/dist/src/scan-risk.d.ts.map +1 -0
  69. package/dist/src/scan-score.d.ts +154 -0
  70. package/dist/src/scan-score.d.ts.map +1 -0
  71. package/dist/src/shapes.d.ts +36 -0
  72. package/dist/src/shapes.d.ts.map +1 -0
  73. package/dist/src/silhouette.d.ts +28 -0
  74. package/dist/src/silhouette.d.ts.map +1 -0
  75. package/dist/src/utils/color.d.ts.map +1 -1
  76. package/dist/src/utils/fmt.d.ts +24 -0
  77. package/dist/src/utils/fmt.d.ts.map +1 -0
  78. package/dist/src/utils/paint.d.ts +80 -0
  79. package/dist/src/utils/paint.d.ts.map +1 -0
  80. package/dist/src/utils/parse-color.d.ts +21 -0
  81. package/dist/src/utils/parse-color.d.ts.map +1 -0
  82. package/dist/src/utils/path-data.d.ts +24 -0
  83. package/dist/src/utils/path-data.d.ts.map +1 -0
  84. package/dist/src/utils/png.d.ts +16 -0
  85. package/dist/src/utils/png.d.ts.map +1 -0
  86. package/dist/src/utils/polygon-clip.d.ts +26 -0
  87. package/dist/src/utils/polygon-clip.d.ts.map +1 -0
  88. package/dist/src/utils/print-shared.d.ts +20 -0
  89. package/dist/src/utils/print-shared.d.ts.map +1 -0
  90. package/dist/src/utils/svg-geometry.d.ts +49 -0
  91. package/dist/src/utils/svg-geometry.d.ts.map +1 -0
  92. package/dist/src/utils/svg-gradient.d.ts +59 -0
  93. package/dist/src/utils/svg-gradient.d.ts.map +1 -0
  94. package/dist/src/utils/svg-painter.d.ts +152 -0
  95. package/dist/src/utils/svg-painter.d.ts.map +1 -0
  96. package/dist/src/utils.d.ts +18 -2
  97. package/dist/src/utils.d.ts.map +1 -1
  98. package/dist/types/art.d.ts +64 -0
  99. package/dist/types/art.d.ts.map +1 -0
  100. package/dist/types/color.d.ts +125 -7
  101. package/dist/types/color.d.ts.map +1 -1
  102. package/dist/types/corner-dot.d.ts +52 -2
  103. package/dist/types/corner-dot.d.ts.map +1 -1
  104. package/dist/types/corner-eye.d.ts +43 -2
  105. package/dist/types/corner-eye.d.ts.map +1 -1
  106. package/dist/types/frame-spec.d.ts +3509 -0
  107. package/dist/types/frame-spec.d.ts.map +1 -0
  108. package/dist/types/frame.d.ts +68 -0
  109. package/dist/types/frame.d.ts.map +1 -0
  110. package/dist/types/image-pattern.d.ts +15 -1
  111. package/dist/types/image-pattern.d.ts.map +1 -1
  112. package/dist/types/index.d.ts +15 -9
  113. package/dist/types/index.d.ts.map +1 -1
  114. package/dist/types/index.js +6 -0
  115. package/dist/types/index.js.map +1 -0
  116. package/dist/types/index.mjs +6 -0
  117. package/dist/types/index.mjs.map +1 -0
  118. package/dist/types/qr.d.ts +1684 -4
  119. package/dist/types/qr.d.ts.map +1 -1
  120. package/dist/types/template.d.ts +2 -2
  121. package/dist/types/template.d.ts.map +1 -1
  122. package/package.json +68 -25
  123. package/src/api.tsx +67 -17
  124. package/src/art-trace.ts +554 -0
  125. package/src/art.tsx +2226 -0
  126. package/src/body-patterns.tsx +389 -0
  127. package/src/codegen.ts +10 -5
  128. package/src/codeword-map.ts +265 -0
  129. package/src/constants.ts +4 -8
  130. package/src/corner-dot.tsx +209 -33
  131. package/src/corner-eye.ts +328 -60
  132. package/src/detection.ts +5 -11
  133. package/src/download.tsx +123 -52
  134. package/src/eps.ts +701 -0
  135. package/src/frame-icons.ts +325 -0
  136. package/src/frame-import.ts +1198 -0
  137. package/src/frame-spec.ts +518 -0
  138. package/src/frame-styles.ts +1095 -0
  139. package/src/frame.tsx +630 -0
  140. package/src/frames/builtin/banner-bottom.json +58 -0
  141. package/src/frames/builtin/circle.json +81 -0
  142. package/src/frames/builtin/rounded-border.json +60 -0
  143. package/src/frames/builtin/ticket.json +51 -0
  144. package/src/frames/builtin.ts +20 -0
  145. package/src/frames/official/attendance.json +110 -0
  146. package/src/frames/official/audio-guide.json +95 -0
  147. package/src/frames/official/book-now.json +103 -0
  148. package/src/frames/official/check-in.json +110 -0
  149. package/src/frames/official/christmas.json +131 -0
  150. package/src/frames/official/donate.json +77 -0
  151. package/src/frames/official/event-ticket.json +77 -0
  152. package/src/frames/official/feedback-bubble.json +73 -0
  153. package/src/frames/official/follow-us.json +83 -0
  154. package/src/frames/official/get-the-app.json +107 -0
  155. package/src/frames/official/halloween.json +80 -0
  156. package/src/frames/official/new-year.json +94 -0
  157. package/src/frames/official/order-at-table.json +86 -0
  158. package/src/frames/official/product-info.json +119 -0
  159. package/src/frames/official/register-product.json +77 -0
  160. package/src/frames/official/review-us.json +127 -0
  161. package/src/frames/official/rsvp-card.json +112 -0
  162. package/src/frames/official/save-contact.json +117 -0
  163. package/src/frames/official/scan-to-pay.json +94 -0
  164. package/src/frames/official/shop-window.json +81 -0
  165. package/src/frames/official/sign-rider.json +81 -0
  166. package/src/frames/official/table-tent.json +75 -0
  167. package/src/frames/official/wifi-card.json +89 -0
  168. package/src/frames/official/winter.json +142 -0
  169. package/src/frames/official.ts +77 -0
  170. package/src/helpers.ts +168 -11
  171. package/src/index.tsx +141 -172
  172. package/src/logo-budget.ts +226 -0
  173. package/src/logo-cleanup.ts +146 -0
  174. package/src/logo.tsx +137 -0
  175. package/src/print.ts +794 -0
  176. package/src/qr-code-canvas.tsx +241 -0
  177. package/src/qr-code.tsx +51 -16
  178. package/src/qr-outline.ts +511 -0
  179. package/src/qr-shape.ts +255 -0
  180. package/src/scan-risk.ts +197 -0
  181. package/src/scan-score.ts +1629 -0
  182. package/src/shapes.ts +169 -0
  183. package/src/silhouette.ts +334 -0
  184. package/src/utils/color.ts +10 -1
  185. package/src/utils/fmt.ts +59 -0
  186. package/src/utils/paint.ts +317 -0
  187. package/src/utils/parse-color.ts +135 -0
  188. package/src/utils/path-data.ts +182 -0
  189. package/src/utils/png.ts +175 -0
  190. package/src/utils/polygon-clip.ts +163 -0
  191. package/src/utils/print-shared.ts +74 -0
  192. package/src/utils/svg-geometry.ts +838 -0
  193. package/src/utils/svg-gradient.ts +407 -0
  194. package/src/utils/svg-painter.ts +946 -0
  195. package/src/utils.tsx +794 -385
  196. package/types/art.ts +74 -0
  197. package/types/color.ts +132 -12
  198. package/types/corner-dot.ts +41 -4
  199. package/types/corner-eye.ts +31 -4
  200. package/types/frame-spec.ts +748 -0
  201. package/types/frame.ts +67 -0
  202. package/types/image-pattern.ts +15 -0
  203. package/types/index.ts +106 -4
  204. package/types/qr.ts +180 -2
  205. package/types/template.ts +2 -2
  206. package/dist/cli.js +0 -4319
@@ -0,0 +1,94 @@
1
+ {
2
+ "id": "new-year",
3
+ "name": "New Year",
4
+ "description": "A card shaded from the frame color, with sparkles. Uses a gradient fill.",
5
+ "category": "seasonal",
6
+ "contentTypes": [],
7
+ "tags": ["seasonal", "new year", "celebration"],
8
+ "license": "CC0-1.0",
9
+ "spec": {
10
+ "kind": "qrdx.frame",
11
+ "version": 1,
12
+ "artboard": {
13
+ "width": 1240,
14
+ "height": 1720
15
+ },
16
+ "qr": {
17
+ "size": 1000,
18
+ "padding": 80,
19
+ "radius": 24,
20
+ "x": 120,
21
+ "y": 320
22
+ },
23
+ "colors": {
24
+ "frame": "#111111",
25
+ "text": "#ffffff"
26
+ },
27
+ "shapes": [
28
+ {
29
+ "type": "rect",
30
+ "x": 0,
31
+ "y": 0,
32
+ "width": 1240,
33
+ "height": 1720,
34
+ "radius": 64,
35
+ "fill": {
36
+ "gradient": {
37
+ "from": "frame",
38
+ "to": {
39
+ "mix": ["frame", "#ffffff"],
40
+ "amount": 0.28
41
+ },
42
+ "direction": "vertical",
43
+ "steps": 32
44
+ }
45
+ }
46
+ },
47
+ {
48
+ "type": "icon",
49
+ "icon": "sparkle",
50
+ "x": 150,
51
+ "y": 60,
52
+ "size": 140,
53
+ "fill": "text"
54
+ },
55
+ {
56
+ "type": "icon",
57
+ "icon": "sparkle",
58
+ "x": 970,
59
+ "y": 80,
60
+ "size": 110,
61
+ "fill": "text"
62
+ }
63
+ ],
64
+ "labels": [
65
+ {
66
+ "type": "text",
67
+ "id": "note",
68
+ "slot": "secondary",
69
+ "text": "Happy New Year",
70
+ "color": "text",
71
+ "box": {
72
+ "x": 320,
73
+ "y": 90,
74
+ "width": 600,
75
+ "height": 120
76
+ },
77
+ "weight": "regular"
78
+ },
79
+ {
80
+ "type": "text",
81
+ "id": "cta",
82
+ "slot": "primary",
83
+ "text": "Scan me",
84
+ "color": "text",
85
+ "box": {
86
+ "x": 120,
87
+ "y": 1440,
88
+ "width": 1000,
89
+ "height": 220
90
+ }
91
+ }
92
+ ]
93
+ }
94
+ }
@@ -0,0 +1,86 @@
1
+ {
2
+ "id": "order-at-table",
3
+ "name": "Order at table",
4
+ "description": "Order prompt with a service bell and a pill for the table number.",
5
+ "category": "use-case",
6
+ "contentTypes": ["url"],
7
+ "tags": ["restaurant", "ordering", "table"],
8
+ "license": "CC0-1.0",
9
+ "spec": {
10
+ "kind": "qrdx.frame",
11
+ "version": 1,
12
+ "artboard": {
13
+ "width": 1240,
14
+ "height": 1680
15
+ },
16
+ "qr": {
17
+ "size": 1000,
18
+ "padding": 80,
19
+ "radius": 24,
20
+ "x": 120,
21
+ "y": 360
22
+ },
23
+ "colors": {
24
+ "frame": "#111111",
25
+ "text": "#ffffff"
26
+ },
27
+ "shapes": [
28
+ {
29
+ "type": "rect",
30
+ "x": 0,
31
+ "y": 0,
32
+ "width": 1240,
33
+ "height": 1680,
34
+ "radius": 64,
35
+ "fill": "frame"
36
+ },
37
+ {
38
+ "type": "icon",
39
+ "icon": "bell",
40
+ "x": 100,
41
+ "y": 70,
42
+ "size": 130,
43
+ "fill": "text"
44
+ },
45
+ {
46
+ "type": "rect",
47
+ "x": 370,
48
+ "y": 1480,
49
+ "width": 500,
50
+ "height": 140,
51
+ "radius": 70,
52
+ "fill": "background"
53
+ }
54
+ ],
55
+ "labels": [
56
+ {
57
+ "type": "text",
58
+ "id": "cta",
59
+ "slot": "primary",
60
+ "text": "Scan to order",
61
+ "color": "text",
62
+ "box": {
63
+ "x": 270,
64
+ "y": 70,
65
+ "width": 870,
66
+ "height": 130
67
+ },
68
+ "fontSize": 93.6,
69
+ "align": "start"
70
+ },
71
+ {
72
+ "type": "text",
73
+ "id": "table",
74
+ "slot": "secondary",
75
+ "text": "Table 12",
76
+ "color": "frame",
77
+ "box": {
78
+ "x": 390,
79
+ "y": 1480,
80
+ "width": 460,
81
+ "height": 140
82
+ }
83
+ }
84
+ ]
85
+ }
86
+ }
@@ -0,0 +1,119 @@
1
+ {
2
+ "id": "product-info",
3
+ "name": "Product info",
4
+ "description": "A packaging label with an info glyph, for instructions and manuals.",
5
+ "category": "use-case",
6
+ "contentTypes": ["url", "google-drive"],
7
+ "tags": ["packaging", "instructions", "manual", "retail"],
8
+ "license": "CC0-1.0",
9
+ "spec": {
10
+ "kind": "qrdx.frame",
11
+ "version": 1,
12
+ "artboard": {
13
+ "width": 1240,
14
+ "height": 1720
15
+ },
16
+ "qr": {
17
+ "size": 1000,
18
+ "padding": 80,
19
+ "radius": 24,
20
+ "x": 120,
21
+ "y": 330
22
+ },
23
+ "colors": {
24
+ "frame": "#111111",
25
+ "text": "#ffffff"
26
+ },
27
+ "shapes": [
28
+ {
29
+ "type": "rect",
30
+ "x": 0,
31
+ "y": 0,
32
+ "width": 1240,
33
+ "height": 1720,
34
+ "radius": 20,
35
+ "fill": "background"
36
+ },
37
+ {
38
+ "type": "rect",
39
+ "x": 0,
40
+ "y": 0,
41
+ "width": 1240,
42
+ "height": 1720,
43
+ "radius": 20,
44
+ "fill": "frame",
45
+ "hole": {
46
+ "x": 24,
47
+ "y": 24,
48
+ "width": 1192,
49
+ "height": 1672,
50
+ "radius": 6
51
+ }
52
+ },
53
+ {
54
+ "type": "rect",
55
+ "x": 0,
56
+ "y": 0,
57
+ "width": 1240,
58
+ "height": 250,
59
+ "radius": 20,
60
+ "fill": "frame"
61
+ },
62
+ {
63
+ "type": "rect",
64
+ "x": 0,
65
+ "y": 226,
66
+ "width": 1240,
67
+ "height": 24,
68
+ "fill": "frame"
69
+ },
70
+ {
71
+ "type": "icon",
72
+ "icon": "info",
73
+ "x": 100,
74
+ "y": 65,
75
+ "size": 120,
76
+ "fill": "text"
77
+ },
78
+ {
79
+ "type": "rect",
80
+ "x": 120,
81
+ "y": 1438,
82
+ "width": 1000,
83
+ "height": 4,
84
+ "fill": "frame"
85
+ }
86
+ ],
87
+ "labels": [
88
+ {
89
+ "type": "text",
90
+ "id": "cta",
91
+ "slot": "primary",
92
+ "text": "Scan for instructions",
93
+ "color": "text",
94
+ "box": {
95
+ "x": 260,
96
+ "y": 60,
97
+ "width": 900,
98
+ "height": 130
99
+ },
100
+ "fontSize": 93.6,
101
+ "align": "start"
102
+ },
103
+ {
104
+ "type": "text",
105
+ "id": "note",
106
+ "slot": "secondary",
107
+ "text": "Manuals and support",
108
+ "color": "frame",
109
+ "box": {
110
+ "x": 120,
111
+ "y": 1470,
112
+ "width": 1000,
113
+ "height": 150
114
+ },
115
+ "weight": "regular"
116
+ }
117
+ ]
118
+ }
119
+ }
@@ -0,0 +1,77 @@
1
+ {
2
+ "id": "register-product",
3
+ "name": "Register product",
4
+ "description": "A card with a check badge on its top edge, for product registration.",
5
+ "category": "use-case",
6
+ "contentTypes": ["url"],
7
+ "tags": ["warranty", "registration", "packaging"],
8
+ "license": "CC0-1.0",
9
+ "spec": {
10
+ "kind": "qrdx.frame",
11
+ "version": 1,
12
+ "artboard": {
13
+ "width": 1240,
14
+ "height": 1720
15
+ },
16
+ "qr": {
17
+ "size": 1000,
18
+ "padding": 80,
19
+ "radius": 24,
20
+ "x": 120,
21
+ "y": 420
22
+ },
23
+ "colors": {
24
+ "frame": "#111111",
25
+ "text": "#ffffff"
26
+ },
27
+ "shapes": [
28
+ {
29
+ "type": "rect",
30
+ "x": 0,
31
+ "y": 140,
32
+ "width": 1240,
33
+ "height": 1580,
34
+ "radius": 56,
35
+ "fill": "frame"
36
+ },
37
+ {
38
+ "type": "circle",
39
+ "cx": 620,
40
+ "cy": 150,
41
+ "r": 140,
42
+ "fill": "background"
43
+ },
44
+ {
45
+ "type": "circle",
46
+ "cx": 620,
47
+ "cy": 150,
48
+ "r": 118,
49
+ "fill": "frame"
50
+ },
51
+ {
52
+ "type": "icon",
53
+ "icon": "check",
54
+ "x": 530,
55
+ "y": 60,
56
+ "size": 180,
57
+ "fill": "background"
58
+ }
59
+ ],
60
+ "labels": [
61
+ {
62
+ "type": "text",
63
+ "id": "cta",
64
+ "slot": "primary",
65
+ "text": "Register your product",
66
+ "color": "text",
67
+ "box": {
68
+ "x": 120,
69
+ "y": 1530,
70
+ "width": 1000,
71
+ "height": 150
72
+ },
73
+ "fontSize": 108
74
+ }
75
+ ]
76
+ }
77
+ }
@@ -0,0 +1,127 @@
1
+ {
2
+ "id": "review-us",
3
+ "name": "Review us",
4
+ "description": "Five stars over the code and a review prompt on a band.",
5
+ "category": "use-case",
6
+ "contentTypes": ["google-review", "url"],
7
+ "tags": ["reviews", "feedback", "restaurant", "retail"],
8
+ "license": "CC0-1.0",
9
+ "spec": {
10
+ "kind": "qrdx.frame",
11
+ "version": 1,
12
+ "artboard": {
13
+ "width": 1240,
14
+ "height": 1720
15
+ },
16
+ "qr": {
17
+ "size": 1000,
18
+ "padding": 80,
19
+ "radius": 24,
20
+ "x": 120,
21
+ "y": 310
22
+ },
23
+ "colors": {
24
+ "frame": "#111111",
25
+ "text": "#ffffff"
26
+ },
27
+ "shapes": [
28
+ {
29
+ "type": "rect",
30
+ "x": 0,
31
+ "y": 0,
32
+ "width": 1240,
33
+ "height": 1720,
34
+ "radius": 56,
35
+ "fill": "background"
36
+ },
37
+ {
38
+ "type": "rect",
39
+ "x": 0,
40
+ "y": 0,
41
+ "width": 1240,
42
+ "height": 1720,
43
+ "radius": 56,
44
+ "fill": "frame",
45
+ "hole": {
46
+ "x": 28,
47
+ "y": 28,
48
+ "width": 1184,
49
+ "height": 1664,
50
+ "radius": 30
51
+ }
52
+ },
53
+ {
54
+ "type": "icon",
55
+ "icon": "star",
56
+ "x": 240,
57
+ "y": 74,
58
+ "size": 120,
59
+ "fill": "frame"
60
+ },
61
+ {
62
+ "type": "icon",
63
+ "icon": "star",
64
+ "x": 400,
65
+ "y": 74,
66
+ "size": 120,
67
+ "fill": "frame"
68
+ },
69
+ {
70
+ "type": "icon",
71
+ "icon": "star",
72
+ "x": 560,
73
+ "y": 74,
74
+ "size": 120,
75
+ "fill": "frame"
76
+ },
77
+ {
78
+ "type": "icon",
79
+ "icon": "star",
80
+ "x": 720,
81
+ "y": 74,
82
+ "size": 120,
83
+ "fill": "frame"
84
+ },
85
+ {
86
+ "type": "icon",
87
+ "icon": "star",
88
+ "x": 880,
89
+ "y": 74,
90
+ "size": 120,
91
+ "fill": "frame"
92
+ },
93
+ {
94
+ "type": "rect",
95
+ "x": 0,
96
+ "y": 1430,
97
+ "width": 1240,
98
+ "height": 290,
99
+ "radius": 56,
100
+ "fill": "frame"
101
+ },
102
+ {
103
+ "type": "rect",
104
+ "x": 0,
105
+ "y": 1430,
106
+ "width": 1240,
107
+ "height": 60,
108
+ "fill": "frame"
109
+ }
110
+ ],
111
+ "labels": [
112
+ {
113
+ "type": "text",
114
+ "id": "cta",
115
+ "slot": "primary",
116
+ "text": "Loved it? Leave a review",
117
+ "color": "text",
118
+ "box": {
119
+ "x": 100,
120
+ "y": 1450,
121
+ "width": 1040,
122
+ "height": 240
123
+ }
124
+ }
125
+ ]
126
+ }
127
+ }
@@ -0,0 +1,112 @@
1
+ {
2
+ "id": "rsvp-card",
3
+ "name": "RSVP card",
4
+ "description": "An invitation card with a double rule border and a diamond ornament.",
5
+ "category": "use-case",
6
+ "contentTypes": ["url"],
7
+ "tags": ["events", "wedding", "party", "invitation"],
8
+ "license": "CC0-1.0",
9
+ "spec": {
10
+ "kind": "qrdx.frame",
11
+ "version": 1,
12
+ "artboard": {
13
+ "width": 1320,
14
+ "height": 1760
15
+ },
16
+ "qr": {
17
+ "size": 1000,
18
+ "padding": 80,
19
+ "radius": 24,
20
+ "x": 160,
21
+ "y": 420
22
+ },
23
+ "colors": {
24
+ "frame": "#111111",
25
+ "text": "#111111"
26
+ },
27
+ "shapes": [
28
+ {
29
+ "type": "rect",
30
+ "x": 0,
31
+ "y": 0,
32
+ "width": 1320,
33
+ "height": 1760,
34
+ "radius": 24,
35
+ "fill": "background"
36
+ },
37
+ {
38
+ "type": "rect",
39
+ "x": 0,
40
+ "y": 0,
41
+ "width": 1320,
42
+ "height": 1760,
43
+ "radius": 24,
44
+ "fill": "frame",
45
+ "hole": {
46
+ "x": 22,
47
+ "y": 22,
48
+ "width": 1276,
49
+ "height": 1716,
50
+ "radius": 4
51
+ }
52
+ },
53
+ {
54
+ "type": "rect",
55
+ "x": 50,
56
+ "y": 50,
57
+ "width": 1220,
58
+ "height": 1660,
59
+ "fill": "frame",
60
+ "hole": {
61
+ "x": 58,
62
+ "y": 58,
63
+ "width": 1204,
64
+ "height": 1644
65
+ }
66
+ },
67
+ {
68
+ "type": "rect",
69
+ "x": 440,
70
+ "y": 297,
71
+ "width": 440,
72
+ "height": 6,
73
+ "fill": "frame"
74
+ },
75
+ {
76
+ "type": "polygon",
77
+ "points": [[660, 278], [682, 300], [660, 322], [638, 300]],
78
+ "fill": "frame"
79
+ }
80
+ ],
81
+ "labels": [
82
+ {
83
+ "type": "text",
84
+ "id": "cta",
85
+ "slot": "primary",
86
+ "text": "Scan to RSVP",
87
+ "color": "text",
88
+ "box": {
89
+ "x": 160,
90
+ "y": 110,
91
+ "width": 1000,
92
+ "height": 160
93
+ },
94
+ "fontSize": 115.2
95
+ },
96
+ {
97
+ "type": "text",
98
+ "id": "note",
99
+ "slot": "secondary",
100
+ "text": "We hope you can make it",
101
+ "color": "text",
102
+ "box": {
103
+ "x": 160,
104
+ "y": 1530,
105
+ "width": 1000,
106
+ "height": 130
107
+ },
108
+ "weight": "regular"
109
+ }
110
+ ]
111
+ }
112
+ }