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.
- package/LICENSE +21 -0
- package/README.md +353 -300
- package/dist/index.js +27 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -7
- package/dist/index.mjs.map +1 -1
- package/dist/qr-code-canvas.js +12 -0
- package/dist/qr-code-canvas.js.map +1 -0
- package/dist/qr-code-canvas.mjs +12 -0
- package/dist/qr-code-canvas.mjs.map +1 -0
- package/dist/src/api.d.ts.map +1 -1
- package/dist/src/art-trace.d.ts +46 -0
- package/dist/src/art-trace.d.ts.map +1 -0
- package/dist/src/art.d.ts +138 -0
- package/dist/src/art.d.ts.map +1 -0
- package/dist/src/body-patterns.d.ts +34 -0
- package/dist/src/body-patterns.d.ts.map +1 -0
- package/dist/src/codegen.d.ts +5 -5
- package/dist/src/codegen.d.ts.map +1 -1
- package/dist/src/codeword-map.d.ts +40 -0
- package/dist/src/codeword-map.d.ts.map +1 -0
- package/dist/src/constants.d.ts +4 -7
- package/dist/src/constants.d.ts.map +1 -1
- package/dist/src/corner-dot.d.ts +3 -1
- package/dist/src/corner-dot.d.ts.map +1 -1
- package/dist/src/corner-eye.d.ts +5 -2
- package/dist/src/corner-eye.d.ts.map +1 -1
- package/dist/src/detection.d.ts.map +1 -1
- package/dist/src/download.d.ts +22 -5
- package/dist/src/download.d.ts.map +1 -1
- package/dist/src/eps.d.ts +62 -0
- package/dist/src/eps.d.ts.map +1 -0
- package/dist/src/frame-icons.d.ts +11 -0
- package/dist/src/frame-icons.d.ts.map +1 -0
- package/dist/src/frame-import.d.ts +61 -0
- package/dist/src/frame-import.d.ts.map +1 -0
- package/dist/src/frame-spec.d.ts +24 -0
- package/dist/src/frame-spec.d.ts.map +1 -0
- package/dist/src/frame-styles.d.ts +50 -0
- package/dist/src/frame-styles.d.ts.map +1 -0
- package/dist/src/frame.d.ts +126 -0
- package/dist/src/frame.d.ts.map +1 -0
- package/dist/src/frames/builtin.d.ts +8 -0
- package/dist/src/frames/builtin.d.ts.map +1 -0
- package/dist/src/frames/official.d.ts +18 -0
- package/dist/src/frames/official.d.ts.map +1 -0
- package/dist/src/helpers.d.ts +15 -2
- package/dist/src/helpers.d.ts.map +1 -1
- package/dist/src/index.d.ts +24 -13
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/logo-budget.d.ts +54 -0
- package/dist/src/logo-budget.d.ts.map +1 -0
- package/dist/src/logo-cleanup.d.ts +25 -0
- package/dist/src/logo-cleanup.d.ts.map +1 -0
- package/dist/src/logo.d.ts +28 -0
- package/dist/src/logo.d.ts.map +1 -0
- package/dist/src/print.d.ts +73 -0
- package/dist/src/print.d.ts.map +1 -0
- package/dist/src/qr-code-canvas.d.ts +13 -0
- package/dist/src/qr-code-canvas.d.ts.map +1 -0
- package/dist/src/qr-code.d.ts +4 -2
- package/dist/src/qr-code.d.ts.map +1 -1
- package/dist/src/qr-outline.d.ts +41 -0
- package/dist/src/qr-outline.d.ts.map +1 -0
- package/dist/src/qr-shape.d.ts +72 -0
- package/dist/src/qr-shape.d.ts.map +1 -0
- package/dist/src/scan-risk.d.ts +40 -0
- package/dist/src/scan-risk.d.ts.map +1 -0
- package/dist/src/scan-score.d.ts +154 -0
- package/dist/src/scan-score.d.ts.map +1 -0
- package/dist/src/shapes.d.ts +36 -0
- package/dist/src/shapes.d.ts.map +1 -0
- package/dist/src/silhouette.d.ts +28 -0
- package/dist/src/silhouette.d.ts.map +1 -0
- package/dist/src/utils/color.d.ts.map +1 -1
- package/dist/src/utils/fmt.d.ts +24 -0
- package/dist/src/utils/fmt.d.ts.map +1 -0
- package/dist/src/utils/paint.d.ts +80 -0
- package/dist/src/utils/paint.d.ts.map +1 -0
- package/dist/src/utils/parse-color.d.ts +21 -0
- package/dist/src/utils/parse-color.d.ts.map +1 -0
- package/dist/src/utils/path-data.d.ts +24 -0
- package/dist/src/utils/path-data.d.ts.map +1 -0
- package/dist/src/utils/png.d.ts +16 -0
- package/dist/src/utils/png.d.ts.map +1 -0
- package/dist/src/utils/polygon-clip.d.ts +26 -0
- package/dist/src/utils/polygon-clip.d.ts.map +1 -0
- package/dist/src/utils/print-shared.d.ts +20 -0
- package/dist/src/utils/print-shared.d.ts.map +1 -0
- package/dist/src/utils/svg-geometry.d.ts +49 -0
- package/dist/src/utils/svg-geometry.d.ts.map +1 -0
- package/dist/src/utils/svg-gradient.d.ts +59 -0
- package/dist/src/utils/svg-gradient.d.ts.map +1 -0
- package/dist/src/utils/svg-painter.d.ts +152 -0
- package/dist/src/utils/svg-painter.d.ts.map +1 -0
- package/dist/src/utils.d.ts +18 -2
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/types/art.d.ts +64 -0
- package/dist/types/art.d.ts.map +1 -0
- package/dist/types/color.d.ts +125 -7
- package/dist/types/color.d.ts.map +1 -1
- package/dist/types/corner-dot.d.ts +52 -2
- package/dist/types/corner-dot.d.ts.map +1 -1
- package/dist/types/corner-eye.d.ts +43 -2
- package/dist/types/corner-eye.d.ts.map +1 -1
- package/dist/types/frame-spec.d.ts +3509 -0
- package/dist/types/frame-spec.d.ts.map +1 -0
- package/dist/types/frame.d.ts +68 -0
- package/dist/types/frame.d.ts.map +1 -0
- package/dist/types/image-pattern.d.ts +15 -1
- package/dist/types/image-pattern.d.ts.map +1 -1
- package/dist/types/index.d.ts +15 -9
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +6 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/index.mjs +6 -0
- package/dist/types/index.mjs.map +1 -0
- package/dist/types/qr.d.ts +1684 -4
- package/dist/types/qr.d.ts.map +1 -1
- package/dist/types/template.d.ts +2 -2
- package/dist/types/template.d.ts.map +1 -1
- package/package.json +68 -25
- package/src/api.tsx +67 -17
- package/src/art-trace.ts +554 -0
- package/src/art.tsx +2226 -0
- package/src/body-patterns.tsx +389 -0
- package/src/codegen.ts +10 -5
- package/src/codeword-map.ts +265 -0
- package/src/constants.ts +4 -8
- package/src/corner-dot.tsx +209 -33
- package/src/corner-eye.ts +328 -60
- package/src/detection.ts +5 -11
- package/src/download.tsx +123 -52
- package/src/eps.ts +701 -0
- package/src/frame-icons.ts +325 -0
- package/src/frame-import.ts +1198 -0
- package/src/frame-spec.ts +518 -0
- package/src/frame-styles.ts +1095 -0
- package/src/frame.tsx +630 -0
- package/src/frames/builtin/banner-bottom.json +58 -0
- package/src/frames/builtin/circle.json +81 -0
- package/src/frames/builtin/rounded-border.json +60 -0
- package/src/frames/builtin/ticket.json +51 -0
- package/src/frames/builtin.ts +20 -0
- package/src/frames/official/attendance.json +110 -0
- package/src/frames/official/audio-guide.json +95 -0
- package/src/frames/official/book-now.json +103 -0
- package/src/frames/official/check-in.json +110 -0
- package/src/frames/official/christmas.json +131 -0
- package/src/frames/official/donate.json +77 -0
- package/src/frames/official/event-ticket.json +77 -0
- package/src/frames/official/feedback-bubble.json +73 -0
- package/src/frames/official/follow-us.json +83 -0
- package/src/frames/official/get-the-app.json +107 -0
- package/src/frames/official/halloween.json +80 -0
- package/src/frames/official/new-year.json +94 -0
- package/src/frames/official/order-at-table.json +86 -0
- package/src/frames/official/product-info.json +119 -0
- package/src/frames/official/register-product.json +77 -0
- package/src/frames/official/review-us.json +127 -0
- package/src/frames/official/rsvp-card.json +112 -0
- package/src/frames/official/save-contact.json +117 -0
- package/src/frames/official/scan-to-pay.json +94 -0
- package/src/frames/official/shop-window.json +81 -0
- package/src/frames/official/sign-rider.json +81 -0
- package/src/frames/official/table-tent.json +75 -0
- package/src/frames/official/wifi-card.json +89 -0
- package/src/frames/official/winter.json +142 -0
- package/src/frames/official.ts +77 -0
- package/src/helpers.ts +168 -11
- package/src/index.tsx +141 -172
- package/src/logo-budget.ts +226 -0
- package/src/logo-cleanup.ts +146 -0
- package/src/logo.tsx +137 -0
- package/src/print.ts +794 -0
- package/src/qr-code-canvas.tsx +241 -0
- package/src/qr-code.tsx +51 -16
- package/src/qr-outline.ts +511 -0
- package/src/qr-shape.ts +255 -0
- package/src/scan-risk.ts +197 -0
- package/src/scan-score.ts +1629 -0
- package/src/shapes.ts +169 -0
- package/src/silhouette.ts +334 -0
- package/src/utils/color.ts +10 -1
- package/src/utils/fmt.ts +59 -0
- package/src/utils/paint.ts +317 -0
- package/src/utils/parse-color.ts +135 -0
- package/src/utils/path-data.ts +182 -0
- package/src/utils/png.ts +175 -0
- package/src/utils/polygon-clip.ts +163 -0
- package/src/utils/print-shared.ts +74 -0
- package/src/utils/svg-geometry.ts +838 -0
- package/src/utils/svg-gradient.ts +407 -0
- package/src/utils/svg-painter.ts +946 -0
- package/src/utils.tsx +794 -385
- package/types/art.ts +74 -0
- package/types/color.ts +132 -12
- package/types/corner-dot.ts +41 -4
- package/types/corner-eye.ts +31 -4
- package/types/frame-spec.ts +748 -0
- package/types/frame.ts +67 -0
- package/types/image-pattern.ts +15 -0
- package/types/index.ts +106 -4
- package/types/qr.ts +180 -2
- package/types/template.ts +2 -2
- package/dist/cli.js +0 -4319
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"kind": "qrdx.frame",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"artboard": {
|
|
5
|
+
"width": 1978.214,
|
|
6
|
+
"height": 1978.214
|
|
7
|
+
},
|
|
8
|
+
"qr": {
|
|
9
|
+
"x": 489.107,
|
|
10
|
+
"y": 489.107,
|
|
11
|
+
"size": 1000,
|
|
12
|
+
"padding": 50
|
|
13
|
+
},
|
|
14
|
+
"colors": {
|
|
15
|
+
"frame": "#000000",
|
|
16
|
+
"text": "#FFFFFF"
|
|
17
|
+
},
|
|
18
|
+
"shapes": [
|
|
19
|
+
{
|
|
20
|
+
"type": "circle",
|
|
21
|
+
"cx": 989.107,
|
|
22
|
+
"cy": 989.107,
|
|
23
|
+
"r": 779.107,
|
|
24
|
+
"fill": "background"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"type": "circle",
|
|
28
|
+
"cx": 989.107,
|
|
29
|
+
"cy": 989.107,
|
|
30
|
+
"r": 989.107,
|
|
31
|
+
"hole": 779.107,
|
|
32
|
+
"fill": "frame"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"type": "circle",
|
|
36
|
+
"cx": 105,
|
|
37
|
+
"cy": 989.107,
|
|
38
|
+
"r": 14.7,
|
|
39
|
+
"fill": "text"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"type": "circle",
|
|
43
|
+
"cx": 1873.214,
|
|
44
|
+
"cy": 989.107,
|
|
45
|
+
"r": 14.7,
|
|
46
|
+
"fill": "text"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"labels": [
|
|
50
|
+
{
|
|
51
|
+
"type": "curved",
|
|
52
|
+
"id": "top",
|
|
53
|
+
"slot": "primary",
|
|
54
|
+
"text": "Scan me",
|
|
55
|
+
"color": "text",
|
|
56
|
+
"curve": {
|
|
57
|
+
"cx": 989.107,
|
|
58
|
+
"cy": 989.107,
|
|
59
|
+
"radius": 884.107,
|
|
60
|
+
"side": "top",
|
|
61
|
+
"spread": 140
|
|
62
|
+
},
|
|
63
|
+
"fontSize": 105
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"type": "curved",
|
|
67
|
+
"id": "bottom",
|
|
68
|
+
"slot": "secondary",
|
|
69
|
+
"text": "",
|
|
70
|
+
"color": "text",
|
|
71
|
+
"curve": {
|
|
72
|
+
"cx": 989.107,
|
|
73
|
+
"cy": 989.107,
|
|
74
|
+
"radius": 884.107,
|
|
75
|
+
"side": "bottom",
|
|
76
|
+
"spread": 140
|
|
77
|
+
},
|
|
78
|
+
"fontSize": 105
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"kind": "qrdx.frame",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"artboard": {
|
|
5
|
+
"width": 1240,
|
|
6
|
+
"height": 1340
|
|
7
|
+
},
|
|
8
|
+
"qr": {
|
|
9
|
+
"x": 120,
|
|
10
|
+
"y": 120,
|
|
11
|
+
"size": 1000,
|
|
12
|
+
"padding": 40
|
|
13
|
+
},
|
|
14
|
+
"colors": {
|
|
15
|
+
"frame": "#000000"
|
|
16
|
+
},
|
|
17
|
+
"shapes": [
|
|
18
|
+
{
|
|
19
|
+
"type": "rect",
|
|
20
|
+
"x": 40,
|
|
21
|
+
"y": 40,
|
|
22
|
+
"width": 1160,
|
|
23
|
+
"height": 1260,
|
|
24
|
+
"radius": 60,
|
|
25
|
+
"fill": "background"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"type": "rect",
|
|
29
|
+
"x": 0,
|
|
30
|
+
"y": 0,
|
|
31
|
+
"width": 1240,
|
|
32
|
+
"height": 1340,
|
|
33
|
+
"radius": 100,
|
|
34
|
+
"fill": "frame",
|
|
35
|
+
"hole": {
|
|
36
|
+
"x": 40,
|
|
37
|
+
"y": 40,
|
|
38
|
+
"width": 1160,
|
|
39
|
+
"height": 1260,
|
|
40
|
+
"radius": 60
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"labels": [
|
|
45
|
+
{
|
|
46
|
+
"type": "text",
|
|
47
|
+
"id": "cta",
|
|
48
|
+
"slot": "primary",
|
|
49
|
+
"text": "Scan me",
|
|
50
|
+
"color": "text",
|
|
51
|
+
"box": {
|
|
52
|
+
"x": 120,
|
|
53
|
+
"y": 1160,
|
|
54
|
+
"width": 1000,
|
|
55
|
+
"height": 100
|
|
56
|
+
},
|
|
57
|
+
"fontSize": 93.6
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"kind": "qrdx.frame",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"artboard": {
|
|
5
|
+
"width": 1260,
|
|
6
|
+
"height": 1490
|
|
7
|
+
},
|
|
8
|
+
"qr": {
|
|
9
|
+
"x": 130,
|
|
10
|
+
"y": 130,
|
|
11
|
+
"size": 1000,
|
|
12
|
+
"padding": 80,
|
|
13
|
+
"radius": 20
|
|
14
|
+
},
|
|
15
|
+
"colors": {
|
|
16
|
+
"frame": "#000000",
|
|
17
|
+
"text": "#FFFFFF"
|
|
18
|
+
},
|
|
19
|
+
"shapes": [
|
|
20
|
+
{
|
|
21
|
+
"type": "path",
|
|
22
|
+
"d": "M40 0H1220A40 40 0 0 1 1260 40V1215A55 55 0 0 0 1260 1325V1450A40 40 0 0 1 1220 1490H40A40 40 0 0 1 0 1450V1325A55 55 0 0 0 0 1215V40A40 40 0 0 1 40 0Z",
|
|
23
|
+
"fill": "frame"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "line",
|
|
27
|
+
"x1": 77,
|
|
28
|
+
"y1": 1270,
|
|
29
|
+
"x2": 1147,
|
|
30
|
+
"y2": 1270,
|
|
31
|
+
"width": 12,
|
|
32
|
+
"dash": [30, 22],
|
|
33
|
+
"fill": "background"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"labels": [
|
|
37
|
+
{
|
|
38
|
+
"type": "text",
|
|
39
|
+
"id": "cta",
|
|
40
|
+
"slot": "primary",
|
|
41
|
+
"text": "Scan me",
|
|
42
|
+
"color": "text",
|
|
43
|
+
"box": {
|
|
44
|
+
"x": 130,
|
|
45
|
+
"y": 1270,
|
|
46
|
+
"width": 1000,
|
|
47
|
+
"height": 220
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Built-in frames written as frame specs: the proof that the spec format
|
|
2
|
+
// covers what the engine's own frames draw (tests/frame-spec-parity.test.ts
|
|
3
|
+
// renders each against its built-in twin), and starting points for editors.
|
|
4
|
+
import type { FrameStyle } from "../../types/frame";
|
|
5
|
+
import type { FrameSpec } from "../../types/frame-spec";
|
|
6
|
+
import bannerBottom from "./builtin/banner-bottom.json";
|
|
7
|
+
import circle from "./builtin/circle.json";
|
|
8
|
+
import roundedBorder from "./builtin/rounded-border.json";
|
|
9
|
+
import ticket from "./builtin/ticket.json";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Specs that draw the same artwork as these built-in styles (with a label
|
|
13
|
+
* set; the built-ins shrink when the label is empty, a spec doesn't).
|
|
14
|
+
*/
|
|
15
|
+
export const BUILT_IN_FRAME_SPECS: Partial<Record<FrameStyle, FrameSpec>> = {
|
|
16
|
+
"banner-bottom": bannerBottom as unknown as FrameSpec,
|
|
17
|
+
"rounded-border": roundedBorder as unknown as FrameSpec,
|
|
18
|
+
circle: circle as unknown as FrameSpec,
|
|
19
|
+
ticket: ticket as unknown as FrameSpec,
|
|
20
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "attendance",
|
|
3
|
+
"name": "Attendance",
|
|
4
|
+
"description": "A poster with a check glyph, for classes, shifts and events.",
|
|
5
|
+
"category": "use-case",
|
|
6
|
+
"contentTypes": ["attendance"],
|
|
7
|
+
"tags": ["attendance", "school", "workplace", "events"],
|
|
8
|
+
"license": "CC0-1.0",
|
|
9
|
+
"spec": {
|
|
10
|
+
"kind": "qrdx.frame",
|
|
11
|
+
"version": 1,
|
|
12
|
+
"artboard": {
|
|
13
|
+
"width": 1240,
|
|
14
|
+
"height": 1760
|
|
15
|
+
},
|
|
16
|
+
"qr": {
|
|
17
|
+
"size": 1000,
|
|
18
|
+
"padding": 80,
|
|
19
|
+
"radius": 24,
|
|
20
|
+
"x": 120,
|
|
21
|
+
"y": 440
|
|
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": 1760,
|
|
34
|
+
"radius": 32,
|
|
35
|
+
"fill": "background"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"type": "rect",
|
|
39
|
+
"x": 0,
|
|
40
|
+
"y": 0,
|
|
41
|
+
"width": 1240,
|
|
42
|
+
"height": 1760,
|
|
43
|
+
"radius": 32,
|
|
44
|
+
"fill": "frame",
|
|
45
|
+
"hole": {
|
|
46
|
+
"x": 22,
|
|
47
|
+
"y": 22,
|
|
48
|
+
"width": 1196,
|
|
49
|
+
"height": 1716,
|
|
50
|
+
"radius": 12
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"type": "rect",
|
|
55
|
+
"x": 0,
|
|
56
|
+
"y": 0,
|
|
57
|
+
"width": 1240,
|
|
58
|
+
"height": 360,
|
|
59
|
+
"radius": 32,
|
|
60
|
+
"fill": "frame"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"type": "rect",
|
|
64
|
+
"x": 0,
|
|
65
|
+
"y": 324,
|
|
66
|
+
"width": 1240,
|
|
67
|
+
"height": 36,
|
|
68
|
+
"fill": "frame"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"type": "icon",
|
|
72
|
+
"icon": "check",
|
|
73
|
+
"x": 550,
|
|
74
|
+
"y": 50,
|
|
75
|
+
"size": 140,
|
|
76
|
+
"fill": "text"
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"labels": [
|
|
80
|
+
{
|
|
81
|
+
"type": "text",
|
|
82
|
+
"id": "cta",
|
|
83
|
+
"slot": "primary",
|
|
84
|
+
"text": "Scan to mark attendance",
|
|
85
|
+
"color": "text",
|
|
86
|
+
"box": {
|
|
87
|
+
"x": 80,
|
|
88
|
+
"y": 210,
|
|
89
|
+
"width": 1080,
|
|
90
|
+
"height": 120
|
|
91
|
+
},
|
|
92
|
+
"fontSize": 86.4
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"type": "text",
|
|
96
|
+
"id": "note",
|
|
97
|
+
"slot": "secondary",
|
|
98
|
+
"text": "One scan per person",
|
|
99
|
+
"color": "frame",
|
|
100
|
+
"box": {
|
|
101
|
+
"x": 120,
|
|
102
|
+
"y": 1560,
|
|
103
|
+
"width": 1000,
|
|
104
|
+
"height": 130
|
|
105
|
+
},
|
|
106
|
+
"weight": "regular"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "audio-guide",
|
|
3
|
+
"name": "Audio guide",
|
|
4
|
+
"description": "Headphones around the code, for museum and tour audio guides.",
|
|
5
|
+
"category": "use-case",
|
|
6
|
+
"contentTypes": ["url"],
|
|
7
|
+
"tags": ["museum", "tour", "audio", "gallery"],
|
|
8
|
+
"license": "CC0-1.0",
|
|
9
|
+
"spec": {
|
|
10
|
+
"kind": "qrdx.frame",
|
|
11
|
+
"version": 1,
|
|
12
|
+
"artboard": {
|
|
13
|
+
"width": 1560,
|
|
14
|
+
"height": 1960
|
|
15
|
+
},
|
|
16
|
+
"qr": {
|
|
17
|
+
"size": 1000,
|
|
18
|
+
"padding": 80,
|
|
19
|
+
"radius": 24,
|
|
20
|
+
"x": 280,
|
|
21
|
+
"y": 420
|
|
22
|
+
},
|
|
23
|
+
"colors": {
|
|
24
|
+
"frame": "#111111",
|
|
25
|
+
"text": "#ffffff"
|
|
26
|
+
},
|
|
27
|
+
"shapes": [
|
|
28
|
+
{
|
|
29
|
+
"type": "path",
|
|
30
|
+
"d": "M90 780A690 690 0 0 1 1470 780L1410 780A630 630 0 0 0 150 780Z",
|
|
31
|
+
"fill": "frame"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "rect",
|
|
35
|
+
"x": 20,
|
|
36
|
+
"y": 700,
|
|
37
|
+
"width": 140,
|
|
38
|
+
"height": 400,
|
|
39
|
+
"radius": 60,
|
|
40
|
+
"fill": "frame"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"type": "rect",
|
|
44
|
+
"x": 1400,
|
|
45
|
+
"y": 700,
|
|
46
|
+
"width": 140,
|
|
47
|
+
"height": 400,
|
|
48
|
+
"radius": 60,
|
|
49
|
+
"fill": "frame"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "rect",
|
|
53
|
+
"x": 170,
|
|
54
|
+
"y": 300,
|
|
55
|
+
"width": 1220,
|
|
56
|
+
"height": 1620,
|
|
57
|
+
"radius": 48,
|
|
58
|
+
"fill": "frame"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"labels": [
|
|
62
|
+
{
|
|
63
|
+
"type": "text",
|
|
64
|
+
"id": "cta",
|
|
65
|
+
"slot": "primary",
|
|
66
|
+
"text": "Scan for the audio guide",
|
|
67
|
+
"color": "text",
|
|
68
|
+
"box": {
|
|
69
|
+
"x": 280,
|
|
70
|
+
"y": 1540,
|
|
71
|
+
"width": 1000,
|
|
72
|
+
"height": 150
|
|
73
|
+
},
|
|
74
|
+
"fontSize": 108
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"type": "text",
|
|
78
|
+
"id": "note",
|
|
79
|
+
"slot": "secondary",
|
|
80
|
+
"text": "Listen as you walk",
|
|
81
|
+
"color": {
|
|
82
|
+
"mix": ["text", "frame"],
|
|
83
|
+
"amount": 0.3
|
|
84
|
+
},
|
|
85
|
+
"box": {
|
|
86
|
+
"x": 280,
|
|
87
|
+
"y": 1690,
|
|
88
|
+
"width": 1000,
|
|
89
|
+
"height": 110
|
|
90
|
+
},
|
|
91
|
+
"weight": "regular"
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "book-now",
|
|
3
|
+
"name": "Book now",
|
|
4
|
+
"description": "A calendar page with binding tabs, for salons, clinics and classes.",
|
|
5
|
+
"category": "use-case",
|
|
6
|
+
"contentTypes": ["calcom", "url"],
|
|
7
|
+
"tags": ["booking", "appointments", "salon", "clinic"],
|
|
8
|
+
"license": "CC0-1.0",
|
|
9
|
+
"spec": {
|
|
10
|
+
"kind": "qrdx.frame",
|
|
11
|
+
"version": 1,
|
|
12
|
+
"artboard": {
|
|
13
|
+
"width": 1240,
|
|
14
|
+
"height": 1760
|
|
15
|
+
},
|
|
16
|
+
"qr": {
|
|
17
|
+
"size": 1000,
|
|
18
|
+
"padding": 80,
|
|
19
|
+
"radius": 24,
|
|
20
|
+
"x": 120,
|
|
21
|
+
"y": 400
|
|
22
|
+
},
|
|
23
|
+
"colors": {
|
|
24
|
+
"frame": "#111111",
|
|
25
|
+
"text": "#ffffff"
|
|
26
|
+
},
|
|
27
|
+
"shapes": [
|
|
28
|
+
{
|
|
29
|
+
"type": "rect",
|
|
30
|
+
"x": 26,
|
|
31
|
+
"y": 300,
|
|
32
|
+
"width": 1188,
|
|
33
|
+
"height": 1434,
|
|
34
|
+
"radius": 24,
|
|
35
|
+
"fill": "background"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"type": "rect",
|
|
39
|
+
"x": 0,
|
|
40
|
+
"y": 40,
|
|
41
|
+
"width": 1240,
|
|
42
|
+
"height": 1720,
|
|
43
|
+
"radius": 48,
|
|
44
|
+
"fill": "frame",
|
|
45
|
+
"hole": {
|
|
46
|
+
"x": 26,
|
|
47
|
+
"y": 300,
|
|
48
|
+
"width": 1188,
|
|
49
|
+
"height": 1434,
|
|
50
|
+
"radius": 24
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"type": "rect",
|
|
55
|
+
"x": 300,
|
|
56
|
+
"y": 0,
|
|
57
|
+
"width": 64,
|
|
58
|
+
"height": 140,
|
|
59
|
+
"radius": 32,
|
|
60
|
+
"fill": "frame"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"type": "rect",
|
|
64
|
+
"x": 876,
|
|
65
|
+
"y": 0,
|
|
66
|
+
"width": 64,
|
|
67
|
+
"height": 140,
|
|
68
|
+
"radius": 32,
|
|
69
|
+
"fill": "frame"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"labels": [
|
|
73
|
+
{
|
|
74
|
+
"type": "text",
|
|
75
|
+
"id": "cta",
|
|
76
|
+
"slot": "primary",
|
|
77
|
+
"text": "Scan to book",
|
|
78
|
+
"color": "text",
|
|
79
|
+
"box": {
|
|
80
|
+
"x": 120,
|
|
81
|
+
"y": 140,
|
|
82
|
+
"width": 1000,
|
|
83
|
+
"height": 140
|
|
84
|
+
},
|
|
85
|
+
"fontSize": 100.8
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"type": "text",
|
|
89
|
+
"id": "note",
|
|
90
|
+
"slot": "secondary",
|
|
91
|
+
"text": "Appointments online",
|
|
92
|
+
"color": "frame",
|
|
93
|
+
"box": {
|
|
94
|
+
"x": 120,
|
|
95
|
+
"y": 1520,
|
|
96
|
+
"width": 1000,
|
|
97
|
+
"height": 140
|
|
98
|
+
},
|
|
99
|
+
"weight": "regular"
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "check-in",
|
|
3
|
+
"name": "Check in",
|
|
4
|
+
"description": "A sign with a location pin, for check-in desks and front doors.",
|
|
5
|
+
"category": "use-case",
|
|
6
|
+
"contentTypes": ["attendance", "url"],
|
|
7
|
+
"tags": ["check-in", "reception", "events", "visitors"],
|
|
8
|
+
"license": "CC0-1.0",
|
|
9
|
+
"spec": {
|
|
10
|
+
"kind": "qrdx.frame",
|
|
11
|
+
"version": 1,
|
|
12
|
+
"artboard": {
|
|
13
|
+
"width": 1240,
|
|
14
|
+
"height": 1700
|
|
15
|
+
},
|
|
16
|
+
"qr": {
|
|
17
|
+
"size": 1000,
|
|
18
|
+
"padding": 80,
|
|
19
|
+
"radius": 24,
|
|
20
|
+
"x": 120,
|
|
21
|
+
"y": 300
|
|
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": 1700,
|
|
34
|
+
"radius": 40,
|
|
35
|
+
"fill": "background"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"type": "rect",
|
|
39
|
+
"x": 0,
|
|
40
|
+
"y": 0,
|
|
41
|
+
"width": 1240,
|
|
42
|
+
"height": 1700,
|
|
43
|
+
"radius": 40,
|
|
44
|
+
"fill": "frame",
|
|
45
|
+
"hole": {
|
|
46
|
+
"x": 30,
|
|
47
|
+
"y": 30,
|
|
48
|
+
"width": 1180,
|
|
49
|
+
"height": 1640,
|
|
50
|
+
"radius": 16
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"type": "icon",
|
|
55
|
+
"icon": "pin",
|
|
56
|
+
"x": 100,
|
|
57
|
+
"y": 60,
|
|
58
|
+
"size": 140,
|
|
59
|
+
"fill": "frame"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"type": "rect",
|
|
63
|
+
"x": 0,
|
|
64
|
+
"y": 1430,
|
|
65
|
+
"width": 1240,
|
|
66
|
+
"height": 270,
|
|
67
|
+
"radius": 40,
|
|
68
|
+
"fill": "frame"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"type": "rect",
|
|
72
|
+
"x": 0,
|
|
73
|
+
"y": 1430,
|
|
74
|
+
"width": 1240,
|
|
75
|
+
"height": 44,
|
|
76
|
+
"fill": "frame"
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"labels": [
|
|
80
|
+
{
|
|
81
|
+
"type": "text",
|
|
82
|
+
"id": "cta",
|
|
83
|
+
"slot": "primary",
|
|
84
|
+
"text": "Check in here",
|
|
85
|
+
"color": "frame",
|
|
86
|
+
"box": {
|
|
87
|
+
"x": 270,
|
|
88
|
+
"y": 70,
|
|
89
|
+
"width": 870,
|
|
90
|
+
"height": 130
|
|
91
|
+
},
|
|
92
|
+
"fontSize": 93.6,
|
|
93
|
+
"align": "start"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"type": "text",
|
|
97
|
+
"id": "note",
|
|
98
|
+
"slot": "secondary",
|
|
99
|
+
"text": "Welcome",
|
|
100
|
+
"color": "text",
|
|
101
|
+
"box": {
|
|
102
|
+
"x": 120,
|
|
103
|
+
"y": 1460,
|
|
104
|
+
"width": 1000,
|
|
105
|
+
"height": 200
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
}
|