qrdx 0.0.51 → 0.0.53

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 (467) hide show
  1. package/README.md +102 -6
  2. package/dist/angular.js +252 -0
  3. package/dist/angular.js.map +1 -0
  4. package/dist/angular.mjs +226 -0
  5. package/dist/angular.mjs.map +1 -0
  6. package/dist/core.js +7 -7
  7. package/dist/core.js.map +1 -1
  8. package/dist/core.mjs +7 -7
  9. package/dist/core.mjs.map +1 -1
  10. package/dist/element-define.browser.mjs +2 -0
  11. package/dist/element-define.browser.mjs.map +1 -0
  12. package/dist/element-define.js +2 -0
  13. package/dist/element-define.js.map +1 -0
  14. package/dist/element-define.mjs +2 -0
  15. package/dist/element-define.mjs.map +1 -0
  16. package/dist/element.browser.mjs +91 -0
  17. package/dist/element.browser.mjs.map +1 -0
  18. package/dist/element.js +2 -0
  19. package/dist/element.js.map +1 -0
  20. package/dist/element.mjs +2 -0
  21. package/dist/element.mjs.map +1 -0
  22. package/dist/frames-index.js +1 -1
  23. package/dist/frames-index.js.map +1 -1
  24. package/dist/frames-index.mjs +1 -1
  25. package/dist/frames-index.mjs.map +1 -1
  26. package/dist/frames-official.js +1 -1
  27. package/dist/frames-official.js.map +1 -1
  28. package/dist/frames-official.mjs +1 -1
  29. package/dist/frames-official.mjs.map +1 -1
  30. package/dist/index.js +7 -7
  31. package/dist/index.js.map +1 -1
  32. package/dist/index.mjs +7 -7
  33. package/dist/index.mjs.map +1 -1
  34. package/dist/preact.js +2 -0
  35. package/dist/preact.js.map +1 -0
  36. package/dist/preact.mjs +2 -0
  37. package/dist/preact.mjs.map +1 -0
  38. package/dist/qr-code-canvas.js +1 -1
  39. package/dist/qr-code-canvas.js.map +1 -1
  40. package/dist/qr-code-canvas.mjs +1 -1
  41. package/dist/qr-code-canvas.mjs.map +1 -1
  42. package/dist/solid.js +2 -0
  43. package/dist/solid.js.map +1 -0
  44. package/dist/solid.mjs +2 -0
  45. package/dist/solid.mjs.map +1 -0
  46. package/dist/src/angular.d.ts +94 -0
  47. package/dist/src/element-define.d.ts +3 -0
  48. package/dist/src/element-define.d.ts.map +1 -0
  49. package/dist/src/element.d.ts +150 -0
  50. package/dist/src/element.d.ts.map +1 -0
  51. package/dist/src/engine.d.ts +3 -3
  52. package/dist/src/engine.d.ts.map +1 -1
  53. package/dist/src/frame-spec.d.ts +22 -4
  54. package/dist/src/frame-spec.d.ts.map +1 -1
  55. package/dist/src/frame-text.d.ts +19 -0
  56. package/dist/src/frame-text.d.ts.map +1 -0
  57. package/dist/src/frame.d.ts +25 -10
  58. package/dist/src/frame.d.ts.map +1 -1
  59. package/dist/src/frames/builtin.d.ts +53 -5
  60. package/dist/src/frames/builtin.d.ts.map +1 -1
  61. package/dist/src/frames/catalogue/all.d.ts.map +1 -1
  62. package/dist/src/frames/catalogue/automotive.d.ts.map +1 -1
  63. package/dist/src/frames/catalogue/counts.d.ts +6 -6
  64. package/dist/src/frames/catalogue/counts.d.ts.map +1 -1
  65. package/dist/src/frames/catalogue/events.d.ts.map +1 -1
  66. package/dist/src/frames/catalogue/holidays.d.ts.map +1 -1
  67. package/dist/src/frames/catalogue/index.d.ts.map +1 -1
  68. package/dist/src/frames/catalogue/places.d.ts.map +1 -1
  69. package/dist/src/frames/catalogue/seasons.d.ts.map +1 -1
  70. package/dist/src/frames/catalogue/tags.d.ts.map +1 -1
  71. package/dist/src/preact.d.ts +29 -0
  72. package/dist/src/preact.d.ts.map +1 -0
  73. package/dist/src/scan-score.d.ts +4 -3
  74. package/dist/src/scan-score.d.ts.map +1 -1
  75. package/dist/src/solid.d.ts +21 -0
  76. package/dist/src/solid.d.ts.map +1 -0
  77. package/dist/src/template/arrow.d.ts +0 -1
  78. package/dist/src/template/arrow.d.ts.map +1 -1
  79. package/dist/src/template/dot-ring-layout.d.ts +44 -0
  80. package/dist/src/template/dot-ring-layout.d.ts.map +1 -0
  81. package/dist/src/template/dot-ring.d.ts +41 -0
  82. package/dist/src/template/dot-ring.d.ts.map +1 -0
  83. package/dist/src/template/frame-template.d.ts +19 -0
  84. package/dist/src/template/frame-template.d.ts.map +1 -0
  85. package/dist/src/template/halloween.d.ts +0 -1
  86. package/dist/src/template/halloween.d.ts.map +1 -1
  87. package/dist/src/template/index.d.ts +1 -0
  88. package/dist/src/template/index.d.ts.map +1 -1
  89. package/dist/src/template/square-border.d.ts +0 -1
  90. package/dist/src/template/square-border.d.ts.map +1 -1
  91. package/dist/src/template/standard-box.d.ts +0 -1
  92. package/dist/src/template/standard-box.d.ts.map +1 -1
  93. package/dist/src/template/striked-box.d.ts +0 -1
  94. package/dist/src/template/striked-box.d.ts.map +1 -1
  95. package/dist/src/template-placement.d.ts +8 -0
  96. package/dist/src/template-placement.d.ts.map +1 -0
  97. package/dist/src/templates.d.ts.map +1 -1
  98. package/dist/types/frame-spec.d.ts +703 -14
  99. package/dist/types/frame-spec.d.ts.map +1 -1
  100. package/dist/types/index.js +2 -2
  101. package/dist/types/index.js.map +1 -1
  102. package/dist/types/index.mjs +2 -2
  103. package/dist/types/index.mjs.map +1 -1
  104. package/dist/types/qr.d.ts +137 -3
  105. package/dist/types/qr.d.ts.map +1 -1
  106. package/dist/types/template.d.ts +7 -0
  107. package/dist/types/template.d.ts.map +1 -1
  108. package/dist/vanilla.browser.mjs +32 -32
  109. package/dist/vanilla.browser.mjs.map +1 -1
  110. package/package.json +81 -5
  111. package/src/angular.ts +218 -0
  112. package/src/element-define.ts +9 -0
  113. package/src/element.ts +608 -0
  114. package/src/engine.ts +13 -2
  115. package/src/frame-spec.ts +331 -56
  116. package/src/frame-text.ts +111 -0
  117. package/src/frame.tsx +74 -287
  118. package/src/frames/builtin/badge.json +108 -0
  119. package/src/frames/builtin/banner-bottom.json +2 -1
  120. package/src/frames/builtin/banner-top-bottom.json +72 -0
  121. package/src/frames/builtin/banner-top.json +59 -0
  122. package/src/frames/builtin/border.json +62 -0
  123. package/src/frames/builtin/chat-bubble.json +54 -0
  124. package/src/frames/builtin/circle.json +2 -1
  125. package/src/frames/builtin/envelope.json +81 -0
  126. package/src/frames/builtin/focus.json +88 -0
  127. package/src/frames/builtin/gradient-border.json +76 -0
  128. package/src/frames/builtin/menu-card.json +108 -0
  129. package/src/frames/builtin/phone.json +75 -0
  130. package/src/frames/builtin/polaroid.json +56 -0
  131. package/src/frames/builtin/rounded-border.json +8 -4
  132. package/src/frames/builtin/speech-bubble-top.json +76 -0
  133. package/src/frames/builtin/speech-bubble.json +76 -0
  134. package/src/frames/builtin/sticker.json +78 -0
  135. package/src/frames/builtin/tag.json +55 -0
  136. package/src/frames/builtin.ts +181 -12
  137. package/src/frames/catalogue/all.ts +584 -0
  138. package/src/frames/catalogue/automotive.ts +2 -0
  139. package/src/frames/catalogue/counts.ts +6 -6
  140. package/src/frames/catalogue/events.ts +90 -0
  141. package/src/frames/catalogue/holidays.ts +336 -0
  142. package/src/frames/catalogue/index.ts +2733 -0
  143. package/src/frames/catalogue/places.ts +92 -0
  144. package/src/frames/catalogue/seasons.ts +64 -0
  145. package/src/frames/catalogue/tags.ts +384 -0
  146. package/src/frames/official/africa-day.json +110 -0
  147. package/src/frames/official/aquarium-feeding.json +113 -0
  148. package/src/frames/official/autumn-apple-picking.json +81 -0
  149. package/src/frames/official/autumn-mushroom.json +72 -0
  150. package/src/frames/official/autumn-pumpkin-patch.json +83 -0
  151. package/src/frames/official/avurudu-pot.json +87 -0
  152. package/src/frames/official/beach-conditions.json +113 -0
  153. package/src/frames/official/beach-info-sticker.json +81 -0
  154. package/src/frames/official/beach-lifeguard.json +71 -0
  155. package/src/frames/official/blood-donor-drop.json +87 -0
  156. package/src/frames/official/blood-donor-sticker.json +94 -0
  157. package/src/frames/official/book-day-arch.json +71 -0
  158. package/src/frames/official/book-day-list.json +114 -0
  159. package/src/frames/official/camp-check-in.json +74 -0
  160. package/src/frames/official/camp-fire-rules.json +114 -0
  161. package/src/frames/official/camp-map.json +85 -0
  162. package/src/frames/official/carnival-mask.json +76 -0
  163. package/src/frames/official/carnival-pass.json +85 -0
  164. package/src/frames/official/carnival-plume.json +71 -0
  165. package/src/frames/official/childrens-day-carp.json +114 -0
  166. package/src/frames/official/childrens-day-sticker.json +88 -0
  167. package/src/frames/official/chuseok-gift-tag.json +59 -0
  168. package/src/frames/official/chuseok-moon.json +99 -0
  169. package/src/frames/official/chuseok-songpyeon.json +114 -0
  170. package/src/frames/official/cowork-desk.json +82 -0
  171. package/src/frames/official/cowork-meeting-room.json +107 -0
  172. package/src/frames/official/dragon-boat-race.json +83 -0
  173. package/src/frames/official/dragon-boat-ticket.json +98 -0
  174. package/src/frames/official/dragon-boat-zongzi.json +81 -0
  175. package/src/frames/official/durga-puja-lotus.json +114 -0
  176. package/src/frames/official/dussehra-seal.json +187 -0
  177. package/src/frames/official/earth-day-globe.json +77 -0
  178. package/src/frames/official/earth-day-pledge.json +66 -0
  179. package/src/frames/official/earth-day-recycle.json +109 -0
  180. package/src/frames/official/enkutatash-daisy.json +87 -0
  181. package/src/frames/official/enkutatash-seal.json +179 -0
  182. package/src/frames/official/environment-day.json +83 -0
  183. package/src/frames/official/event-anniversary.json +107 -0
  184. package/src/frames/official/event-awards.json +93 -0
  185. package/src/frames/official/event-baby-gifts.json +113 -0
  186. package/src/frames/official/event-baby-shower.json +70 -0
  187. package/src/frames/official/event-birth-announcement.json +71 -0
  188. package/src/frames/official/event-book-fair.json +142 -0
  189. package/src/frames/official/event-booth.json +98 -0
  190. package/src/frames/official/event-craft-fair.json +96 -0
  191. package/src/frames/official/event-cupcake.json +81 -0
  192. package/src/frames/official/event-engagement.json +116 -0
  193. package/src/frames/official/event-film-festival.json +92 -0
  194. package/src/frames/official/event-food-festival.json +108 -0
  195. package/src/frames/official/event-fun-run.json +107 -0
  196. package/src/frames/official/event-gala.json +121 -0
  197. package/src/frames/official/event-game-night.json +97 -0
  198. package/src/frames/official/event-grad-diploma.json +126 -0
  199. package/src/frames/official/event-grad-party.json +108 -0
  200. package/src/frames/official/event-grad-seal.json +186 -0
  201. package/src/frames/official/event-grad-stream.json +94 -0
  202. package/src/frames/official/event-guest-book.json +121 -0
  203. package/src/frames/official/event-hackathon.json +82 -0
  204. package/src/frames/official/event-keynote.json +74 -0
  205. package/src/frames/official/event-match-lineup.json +66 -0
  206. package/src/frames/official/event-meetup.json +86 -0
  207. package/src/frames/official/event-memorial.json +124 -0
  208. package/src/frames/official/event-milestone.json +168 -0
  209. package/src/frames/official/event-night-market.json +88 -0
  210. package/src/frames/official/event-open-mic.json +94 -0
  211. package/src/frames/official/event-party-hat.json +74 -0
  212. package/src/frames/official/event-prom.json +82 -0
  213. package/src/frames/official/event-quince.json +70 -0
  214. package/src/frames/official/event-retirement.json +92 -0
  215. package/src/frames/official/event-reunion.json +98 -0
  216. package/src/frames/official/event-runner-tracker.json +101 -0
  217. package/src/frames/official/event-season-ticket.json +89 -0
  218. package/src/frames/official/event-session-feedback.json +89 -0
  219. package/src/frames/official/event-setlist.json +70 -0
  220. package/src/frames/official/event-short-films.json +113 -0
  221. package/src/frames/official/event-slides.json +85 -0
  222. package/src/frames/official/event-speaker-qa.json +112 -0
  223. package/src/frames/official/event-talent-show.json +130 -0
  224. package/src/frames/official/event-tour-merch.json +63 -0
  225. package/src/frames/official/event-tournament.json +98 -0
  226. package/src/frames/official/event-trivia.json +79 -0
  227. package/src/frames/official/event-workshop.json +127 -0
  228. package/src/frames/official/festa-della-repubblica.json +100 -0
  229. package/src/frames/official/festa-junina-bonfire.json +81 -0
  230. package/src/frames/official/festa-junina-corn.json +72 -0
  231. package/src/frames/official/festa-junina-flags.json +110 -0
  232. package/src/frames/official/fiestas-patrias-chile.json +76 -0
  233. package/src/frames/official/food-day-wheat.json +109 -0
  234. package/src/frames/official/freedom-day-south-africa.json +109 -0
  235. package/src/frames/official/ganesh-marigold.json +71 -0
  236. package/src/frames/official/ganesh-modak.json +81 -0
  237. package/src/frames/official/ganesh-pandal.json +109 -0
  238. package/src/frames/official/garden-plant-label.json +98 -0
  239. package/src/frames/official/german-unity-day.json +100 -0
  240. package/src/frames/official/green-ribbon.json +123 -0
  241. package/src/frames/official/gudi-padwa.json +81 -0
  242. package/src/frames/official/hanami-arch.json +71 -0
  243. package/src/frames/official/hanami-picnic.json +90 -0
  244. package/src/frames/official/hanami-sakura.json +81 -0
  245. package/src/frames/official/hari-raya-haji.json +122 -0
  246. package/src/frames/official/hari-raya-ketupat.json +81 -0
  247. package/src/frames/official/hari-raya-open-house.json +114 -0
  248. package/src/frames/official/hari-raya-pelita.json +77 -0
  249. package/src/frames/official/harvest-basket.json +87 -0
  250. package/src/frames/official/harvest-corn.json +115 -0
  251. package/src/frames/official/harvest-hay.json +89 -0
  252. package/src/frames/official/harvest-market.json +109 -0
  253. package/src/frames/official/hijri-new-year-stamp.json +77 -0
  254. package/src/frames/official/hijri-new-year.json +122 -0
  255. package/src/frames/official/historic-marker.json +176 -0
  256. package/src/frames/official/hostel-check-in.json +113 -0
  257. package/src/frames/official/hostel-house-rules.json +136 -0
  258. package/src/frames/official/hostel-local-tips.json +86 -0
  259. package/src/frames/official/independence-argentina.json +105 -0
  260. package/src/frames/official/independence-bangladesh.json +64 -0
  261. package/src/frames/official/independence-colombia.json +108 -0
  262. package/src/frames/official/independence-ghana.json +105 -0
  263. package/src/frames/official/independence-indonesia.json +92 -0
  264. package/src/frames/official/independence-nigeria.json +100 -0
  265. package/src/frames/official/independence-pakistan.json +95 -0
  266. package/src/frames/official/independence-peru.json +100 -0
  267. package/src/frames/official/independence-poland.json +92 -0
  268. package/src/frames/official/independence-ukraine.json +92 -0
  269. package/src/frames/official/inti-raymi-sun.json +183 -0
  270. package/src/frames/official/jamhuri-day.json +116 -0
  271. package/src/frames/official/janmashtami-feather.json +77 -0
  272. package/src/frames/official/janmashtami-flute.json +81 -0
  273. package/src/frames/official/juneteenth-seal.json +187 -0
  274. package/src/frames/official/juneteenth-star.json +81 -0
  275. package/src/frames/official/kindness-day.json +109 -0
  276. package/src/frames/official/kings-day-crown.json +88 -0
  277. package/src/frames/official/kwanzaa-bands.json +100 -0
  278. package/src/frames/official/kwanzaa-harvest.json +77 -0
  279. package/src/frames/official/kwanzaa-kinara.json +81 -0
  280. package/src/frames/official/lantern-festival-riddles.json +77 -0
  281. package/src/frames/official/lantern-festival-tangyuan.json +122 -0
  282. package/src/frames/official/library-catalog.json +120 -0
  283. package/src/frames/official/library-ebooks.json +107 -0
  284. package/src/frames/official/library-hours.json +107 -0
  285. package/src/frames/official/lohri-bonfire.json +81 -0
  286. package/src/frames/official/lohri-dhol.json +114 -0
  287. package/src/frames/official/loy-krathong-float.json +88 -0
  288. package/src/frames/official/loy-krathong-moon.json +96 -0
  289. package/src/frames/official/loy-krathong-program.json +128 -0
  290. package/src/frames/official/mardi-gras-seal.json +183 -0
  291. package/src/frames/official/marina-welcome.json +172 -0
  292. package/src/frames/official/maslenitsa-pancakes.json +81 -0
  293. package/src/frames/official/maslenitsa-sun.json +183 -0
  294. package/src/frames/official/mid-autumn-gift.json +105 -0
  295. package/src/frames/official/mid-autumn-lantern-walk.json +96 -0
  296. package/src/frames/official/mid-autumn-mooncake.json +81 -0
  297. package/src/frames/official/mid-autumn-rabbit.json +77 -0
  298. package/src/frames/official/mid-autumn-seal.json +178 -0
  299. package/src/frames/official/monsoon-boots.json +88 -0
  300. package/src/frames/official/monsoon-chai.json +82 -0
  301. package/src/frames/official/monsoon-cloud.json +114 -0
  302. package/src/frames/official/monsoon-paper-boat.json +71 -0
  303. package/src/frames/official/monsoon-umbrella.json +81 -0
  304. package/src/frames/official/muertos-marigold.json +87 -0
  305. package/src/frames/official/muertos-ofrenda.json +129 -0
  306. package/src/frames/official/muertos-pan.json +78 -0
  307. package/src/frames/official/muertos-papel-picado.json +120 -0
  308. package/src/frames/official/muertos-seal.json +185 -0
  309. package/src/frames/official/museum-artist-note.json +124 -0
  310. package/src/frames/official/museum-exhibit-label.json +106 -0
  311. package/src/frames/official/museum-gallery-map.json +99 -0
  312. package/src/frames/official/museum-ticket.json +86 -0
  313. package/src/frames/official/national-day-belgium.json +100 -0
  314. package/src/frames/official/national-day-singapore.json +120 -0
  315. package/src/frames/official/navratri-dandiya.json +88 -0
  316. package/src/frames/official/navratri-garba-pass.json +90 -0
  317. package/src/frames/official/navratri-lamp.json +72 -0
  318. package/src/frames/official/nowruz-goldfish.json +71 -0
  319. package/src/frames/official/nowruz-party.json +90 -0
  320. package/src/frames/official/nowruz-sabzeh.json +81 -0
  321. package/src/frames/official/nowruz-seal.json +187 -0
  322. package/src/frames/official/obon-lantern.json +81 -0
  323. package/src/frames/official/obon-sign.json +109 -0
  324. package/src/frames/official/ocean-day-waves.json +114 -0
  325. package/src/frames/official/onam-boat-race.json +83 -0
  326. package/src/frames/official/onam-kasavu.json +122 -0
  327. package/src/frames/official/onam-pookalam.json +175 -0
  328. package/src/frames/official/onam-sadya.json +114 -0
  329. package/src/frames/official/orthodox-christmas-candle.json +71 -0
  330. package/src/frames/official/orthodox-christmas-star.json +76 -0
  331. package/src/frames/official/orthodox-easter-arch.json +77 -0
  332. package/src/frames/official/orthodox-easter-pysanka.json +87 -0
  333. package/src/frames/official/orthodox-easter-seal.json +185 -0
  334. package/src/frames/official/pancake-day.json +114 -0
  335. package/src/frames/official/park-bench-walks.json +121 -0
  336. package/src/frames/official/park-dog-rules.json +88 -0
  337. package/src/frames/official/park-map.json +92 -0
  338. package/src/frames/official/park-playground.json +64 -0
  339. package/src/frames/official/park-report.json +118 -0
  340. package/src/frames/official/parking-find-car.json +89 -0
  341. package/src/frames/official/peace-day-dove.json +66 -0
  342. package/src/frames/official/pink-ribbon-seal.json +180 -0
  343. package/src/frames/official/pink-ribbon.json +82 -0
  344. package/src/frames/official/pohela-boishakh-mela.json +116 -0
  345. package/src/frames/official/pohela-boishakh.json +120 -0
  346. package/src/frames/official/pongal-offers.json +120 -0
  347. package/src/frames/official/pongal-pot.json +81 -0
  348. package/src/frames/official/pongal-sun.json +183 -0
  349. package/src/frames/official/posadas-candle.json +71 -0
  350. package/src/frames/official/posadas-pinata.json +114 -0
  351. package/src/frames/official/pride-flag.json +124 -0
  352. package/src/frames/official/pride-heart.json +83 -0
  353. package/src/frames/official/pride-rainbow.json +81 -0
  354. package/src/frames/official/purim-mask.json +109 -0
  355. package/src/frames/official/purim-pastry.json +71 -0
  356. package/src/frames/official/puthandu-sun.json +101 -0
  357. package/src/frames/official/rakhi-envelope.json +75 -0
  358. package/src/frames/official/rakhi-gift-tag.json +59 -0
  359. package/src/frames/official/rakhi-thread.json +114 -0
  360. package/src/frames/official/ramadan-dates.json +81 -0
  361. package/src/frames/official/ramadan-suhoor.json +94 -0
  362. package/src/frames/official/red-ribbon.json +66 -0
  363. package/src/frames/official/republic-day-india-bands.json +120 -0
  364. package/src/frames/official/republic-day-india.json +182 -0
  365. package/src/frames/official/reyes-crown.json +78 -0
  366. package/src/frames/official/reyes-rosca.json +89 -0
  367. package/src/frames/official/rosh-hashanah-apple.json +81 -0
  368. package/src/frames/official/rosh-hashanah-honey.json +71 -0
  369. package/src/frames/official/rosh-hashanah-shofar.json +128 -0
  370. package/src/frames/official/sankranti-kite.json +114 -0
  371. package/src/frames/official/sankranti-sky.json +98 -0
  372. package/src/frames/official/sankranti-sticker.json +90 -0
  373. package/src/frames/official/school-backpack.json +81 -0
  374. package/src/frames/official/school-bus-routes.json +83 -0
  375. package/src/frames/official/school-lunch-menu.json +81 -0
  376. package/src/frames/official/school-uniform.json +109 -0
  377. package/src/frames/official/school-welcome-apple.json +71 -0
  378. package/src/frames/official/seollal-knot.json +122 -0
  379. package/src/frames/official/sham-el-nessim.json +81 -0
  380. package/src/frames/official/shogatsu-kadomatsu.json +81 -0
  381. package/src/frames/official/songkran-bands.json +123 -0
  382. package/src/frames/official/songkran-bowl.json +81 -0
  383. package/src/frames/official/songkran-drop.json +90 -0
  384. package/src/frames/official/songkran-waves.json +96 -0
  385. package/src/frames/official/spring-cleaning.json +107 -0
  386. package/src/frames/official/spring-showers.json +71 -0
  387. package/src/frames/official/spring-watering-can.json +114 -0
  388. package/src/frames/official/summer-camp.json +90 -0
  389. package/src/frames/official/summer-pool.json +95 -0
  390. package/src/frames/official/summer-reading.json +81 -0
  391. package/src/frames/official/summer-sunglasses.json +114 -0
  392. package/src/frames/official/summer-watermelon.json +89 -0
  393. package/src/frames/official/tabaski.json +114 -0
  394. package/src/frames/official/tanabata-stars.json +170 -0
  395. package/src/frames/official/tanabata-wishes.json +114 -0
  396. package/src/frames/official/teachers-day-apple.json +81 -0
  397. package/src/frames/official/teachers-day-note.json +109 -0
  398. package/src/frames/official/tet-apricot.json +114 -0
  399. package/src/frames/official/tet-banh-chung.json +81 -0
  400. package/src/frames/official/transit-bike-share.json +94 -0
  401. package/src/frames/official/transit-bus-arrivals.json +113 -0
  402. package/src/frames/official/transit-fare.json +97 -0
  403. package/src/frames/official/transit-ferry.json +88 -0
  404. package/src/frames/official/transit-next-trains.json +119 -0
  405. package/src/frames/official/transit-report.json +99 -0
  406. package/src/frames/official/transit-train-timetable.json +98 -0
  407. package/src/frames/official/ugadi-leaves.json +66 -0
  408. package/src/frames/official/vaisakhi-bands.json +120 -0
  409. package/src/frames/official/vaisakhi-dhol.json +81 -0
  410. package/src/frames/official/vaisakhi-wheat.json +73 -0
  411. package/src/frames/official/vesak-candle.json +122 -0
  412. package/src/frames/official/vesak-lantern.json +114 -0
  413. package/src/frames/official/vesak-lotus.json +71 -0
  414. package/src/frames/official/vesak-seal.json +179 -0
  415. package/src/frames/official/visitor-info.json +78 -0
  416. package/src/frames/official/visitor-town-map.json +108 -0
  417. package/src/frames/official/visitor-wildlife.json +70 -0
  418. package/src/frames/official/water-day-drop.json +81 -0
  419. package/src/frames/official/wifi-cafe-cup.json +81 -0
  420. package/src/frames/official/wifi-cowork.json +63 -0
  421. package/src/frames/official/wifi-hostel-board.json +80 -0
  422. package/src/frames/official/wifi-library.json +96 -0
  423. package/src/frames/official/wifi-reception.json +118 -0
  424. package/src/frames/official/wifi-rental.json +91 -0
  425. package/src/frames/official/wifi-venue.json +80 -0
  426. package/src/frames/official/wifi-waiting-room.json +89 -0
  427. package/src/frames/official/winter-lift-pass.json +90 -0
  428. package/src/frames/official/winter-sale.json +120 -0
  429. package/src/frames/official/winter-skating.json +71 -0
  430. package/src/frames/official/winter-snowman.json +81 -0
  431. package/src/frames/official/womens-day-mimosa.json +81 -0
  432. package/src/frames/official/womens-day-seal.json +179 -0
  433. package/src/frames/official/yalda-poem.json +122 -0
  434. package/src/frames/official/yalda-pomegranate.json +81 -0
  435. package/src/frames/official/yalda-watermelon.json +72 -0
  436. package/src/frames/official/yoga-day-lotus.json +81 -0
  437. package/src/frames/official/zoo-animal-facts.json +109 -0
  438. package/src/preact.ts +80 -0
  439. package/src/scan-score.ts +14 -7
  440. package/src/solid.ts +75 -0
  441. package/src/template/arrow.ts +14 -0
  442. package/src/template/dot-ring-layout.ts +230 -0
  443. package/src/template/dot-ring.tsx +165 -0
  444. package/src/template/frame-template.tsx +70 -0
  445. package/src/template/halloween.ts +14 -0
  446. package/src/template/index.ts +1 -0
  447. package/src/template/specs/arrow.json +26 -0
  448. package/src/template/specs/halloween.json +144 -0
  449. package/src/template/specs/square-border.json +27 -0
  450. package/src/template/specs/standard-box.json +31 -0
  451. package/src/template/specs/striked-box.json +56 -0
  452. package/src/template/square-border.ts +14 -0
  453. package/src/template/standard-box.ts +14 -0
  454. package/src/template/striked-box.ts +14 -0
  455. package/src/template-placement.ts +149 -0
  456. package/src/templates.tsx +16 -1
  457. package/types/frame-spec.ts +278 -11
  458. package/types/qr.ts +1 -1
  459. package/types/template.ts +7 -0
  460. package/dist/src/frame-styles.d.ts +0 -50
  461. package/dist/src/frame-styles.d.ts.map +0 -1
  462. package/src/frame-styles.ts +0 -1095
  463. package/src/template/arrow.tsx +0 -40
  464. package/src/template/halloween.tsx +0 -147
  465. package/src/template/square-border.tsx +0 -43
  466. package/src/template/standard-box.tsx +0 -43
  467. package/src/template/striked-box.tsx +0 -42
package/src/frame.tsx CHANGED
@@ -1,34 +1,24 @@
1
1
  /** @jsxImportSource ./jsx */
2
2
  /** biome-ignore-all lint/style/noMagicNumbers: frame proportions */
3
3
  import type { ColorConfig } from "../types";
4
- import {
5
- DEFAULT_FRAME_TEXT,
6
- FRAME_FONT_SCALE_MAX,
7
- FRAME_FONT_SCALE_MIN,
8
- FRAME_TEXT_MAX_LENGTH,
9
- } from "../types/frame";
4
+ import { DEFAULT_FRAME_TEXT, FRAME_TEXT_MAX_LENGTH } from "../types/frame";
10
5
  import { type AnyQRFrame, CUSTOM_FRAME_STYLE } from "../types/frame-spec";
11
- import { DEFAULT_BGCOLOR } from "./constants";
12
6
  import { getCustomFrameLayout, getFrameSpecGapRatio } from "./frame-spec";
13
- import {
14
- estimateTextEm,
15
- isShapedFrameStyle,
16
- SHAPED_FRAMES,
17
- } from "./frame-styles";
7
+ import { frameSpecOf, getBuiltInFrameLayout } from "./frames/builtin";
18
8
  import { cloneElement, type QRNode } from "./jsx/runtime";
19
- import { getSolidColor } from "./utils/color";
20
9
  import { compact, roundTo } from "./utils/fmt";
21
10
 
22
11
  /** System font stack for frame labels, so rendering never fetches a font. */
23
12
  export const FRAME_FONT_FAMILY =
24
13
  "system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif";
25
14
 
26
- /** Light gap between the code and the frame, as a share of the code width */
15
+ /**
16
+ * Light gap the classic frames keep between the code and the frame, as a
17
+ * share of the code width. Kept for compatibility: each frame's own gap is
18
+ * its spec's plate padding (getFrameGapRatio).
19
+ */
27
20
  export const FRAME_GAP_RATIO = 0.08;
28
21
 
29
- const DEFAULT_FRAME_COLOR = "#000000";
30
- const DEFAULT_BANNER_TEXT_COLOR = "#FFFFFF";
31
-
32
22
  export interface FrameBox {
33
23
  x: number;
34
24
  y: number;
@@ -37,21 +27,30 @@ export interface FrameBox {
37
27
  radius: number;
38
28
  }
39
29
 
40
- export interface FrameRect extends FrameBox {
30
+ /**
31
+ * An outline along a shape's edge (centered on it, mitered corners), drawn
32
+ * after its fill. `fill` may be "none" for an outline alone.
33
+ */
34
+ export interface FrameStroke {
35
+ stroke?: string;
36
+ strokeWidth?: number;
37
+ }
38
+
39
+ export interface FrameRect extends FrameBox, FrameStroke {
41
40
  type: "rect";
42
41
  fill: string;
43
42
  /** Area cut out of the rect (where the QR code shows through) */
44
43
  hole?: FrameBox;
45
44
  }
46
45
 
47
- export interface FramePolygon {
46
+ export interface FramePolygon extends FrameStroke {
48
47
  type: "polygon";
49
48
  points: [number, number][];
50
49
  fill: string;
51
50
  }
52
51
 
53
52
  /** Any outline, as SVG path data in artwork coordinates. */
54
- export interface FramePath {
53
+ export interface FramePath extends FrameStroke {
55
54
  type: "path";
56
55
  d: string;
57
56
  fill: string;
@@ -120,13 +119,12 @@ export function isFrameActive(
120
119
  }
121
120
 
122
121
  /**
123
- * Light gap the frame keeps around the code, as a share of the code width
124
- * (FRAME_GAP_RATIO for the built-in frames, the plate padding for custom).
122
+ * Light gap the frame keeps around the code, as a share of the code width:
123
+ * the plate padding of the spec it draws (a built-in style's or its own).
125
124
  */
126
125
  export function getFrameGapRatio(frame: AnyQRFrame): number {
127
- return frame.style === CUSTOM_FRAME_STYLE
128
- ? getFrameSpecGapRatio(frame.spec)
129
- : FRAME_GAP_RATIO;
126
+ const spec = frameSpecOf(frame);
127
+ return spec ? getFrameSpecGapRatio(spec) : FRAME_GAP_RATIO;
130
128
  }
131
129
 
132
130
  /** The label a frame renders: trimmed and capped at 24 characters. */
@@ -141,47 +139,12 @@ export function getFrameSecondaryText(frame: AnyQRFrame): string {
141
139
  return (frame.secondaryText ?? "").trim().slice(0, FRAME_TEXT_MAX_LENGTH);
142
140
  }
143
141
 
144
- function clampFontScale(scale: number | undefined): number {
145
- if (scale === undefined || !Number.isFinite(scale)) {
146
- return 1;
147
- }
148
- return Math.min(FRAME_FONT_SCALE_MAX, Math.max(FRAME_FONT_SCALE_MIN, scale));
149
- }
150
-
151
- function makeLabel(
152
- text: string,
153
- centerX: number,
154
- centerY: number,
155
- rowHeight: number,
156
- maxWidth: number,
157
- color: string,
158
- fontScale: number,
159
- field: string
160
- ): FrameLabel | null {
161
- if (!text) {
162
- return null;
163
- }
164
- const fontSize = Math.min(
165
- rowHeight * 0.52 * fontScale,
166
- maxWidth / estimateTextEm(text)
167
- );
168
- return {
169
- text,
170
- x: centerX,
171
- // Cap height of a sans-serif is ~0.7em, so this centers capitals.
172
- y: centerY + fontSize * 0.35,
173
- fontSize,
174
- maxWidth,
175
- color,
176
- field,
177
- };
178
- }
179
-
180
142
  /**
181
- * Computes where the frame shapes, label and QR code go for a code of `size`
182
- * pixels. The QR code keeps its full size; the frame is added around it.
183
- * A "custom" frame is drawn from its spec (throws a FrameSpecError when the
184
- * spec is invalid).
143
+ * Computes where the frame shapes, labels and QR code go for a code of
144
+ * `size` pixels. The QR code keeps its full size; the frame is added around
145
+ * it. Every frame is drawn from a frame spec: a "custom" frame's own (throws
146
+ * a FrameSpecError when it is invalid), or the built-in style's
147
+ * (src/frames/builtin).
185
148
  */
186
149
  export function getFrameLayout(
187
150
  size: number,
@@ -191,224 +154,7 @@ export function getFrameLayout(
191
154
  if (frame.style === CUSTOM_FRAME_STYLE) {
192
155
  return getCustomFrameLayout(size, frame, bgColor);
193
156
  }
194
- const color = frame.color || DEFAULT_FRAME_COLOR;
195
- const background = getSolidColor(bgColor, DEFAULT_BGCOLOR);
196
- const text = getFrameText(frame);
197
-
198
- const gap = size * FRAME_GAP_RATIO;
199
- const border = size * 0.04;
200
- const band = size * 0.22;
201
- const width = size + 2 * (border + gap);
202
- const innerWidth = width - 2 * border;
203
- const labelWidth = innerWidth - 2 * gap;
204
- const qrX = border + gap;
205
- const fontScale = clampFontScale(frame.fontScale);
206
- const fitLabel = (
207
- label: string,
208
- centerX: number,
209
- centerY: number,
210
- rowHeight: number,
211
- maxWidth: number,
212
- labelColor: string,
213
- field = "text"
214
- ) =>
215
- makeLabel(
216
- label,
217
- centerX,
218
- centerY,
219
- rowHeight,
220
- maxWidth,
221
- labelColor,
222
- fontScale,
223
- field
224
- );
225
-
226
- if (isShapedFrameStyle(frame.style)) {
227
- return SHAPED_FRAMES[frame.style]({
228
- size,
229
- frame,
230
- color,
231
- background,
232
- text,
233
- secondaryText: getFrameSecondaryText(frame),
234
- gap,
235
- border,
236
- band,
237
- fontScale,
238
- fitLabel,
239
- });
240
- }
241
-
242
- switch (frame.style) {
243
- case "banner-top": {
244
- const innerHeight = size + 2 * gap;
245
- return {
246
- width,
247
- height: band + innerHeight + border,
248
- qrX,
249
- qrY: band + gap,
250
- qrSize: size,
251
- shapes: [
252
- rect(border, band, innerWidth, innerHeight, 0, background),
253
- ring(
254
- box(0, 0, width, band + innerHeight + border, 0),
255
- box(border, band, innerWidth, innerHeight, 0),
256
- color
257
- ),
258
- ],
259
- label: fitLabel(
260
- text,
261
- width / 2,
262
- band / 2,
263
- band,
264
- labelWidth,
265
- frame.textColor || DEFAULT_BANNER_TEXT_COLOR
266
- ),
267
- squareEdges: true,
268
- color,
269
- };
270
- }
271
-
272
- case "border":
273
- case "rounded-border": {
274
- const rowHeight = text ? size * 0.18 : 0;
275
- const innerHeight = size + (text ? gap + rowHeight : 2 * gap);
276
- const height = innerHeight + 2 * border;
277
- const radius = frame.style === "rounded-border" ? size * 0.1 : 0;
278
- const innerRadius = Math.max(radius - border, 0);
279
- return {
280
- width,
281
- height,
282
- qrX,
283
- qrY: border + gap,
284
- qrSize: size,
285
- shapes: [
286
- rect(
287
- border,
288
- border,
289
- innerWidth,
290
- innerHeight,
291
- innerRadius,
292
- background
293
- ),
294
- ring(
295
- box(0, 0, width, height, radius),
296
- box(border, border, innerWidth, innerHeight, innerRadius),
297
- color
298
- ),
299
- ],
300
- label: fitLabel(
301
- text,
302
- width / 2,
303
- border + gap + size + rowHeight / 2,
304
- rowHeight,
305
- labelWidth,
306
- frame.textColor || color
307
- ),
308
- squareEdges: radius === 0,
309
- color,
310
- };
311
- }
312
-
313
- case "speech-bubble": {
314
- const radius = size * 0.07;
315
- const innerRadius = Math.max(radius - border, 0);
316
- const spacing = size * 0.025;
317
- const pointer = size * 0.08;
318
- const bubbleY = width + spacing + pointer;
319
- return {
320
- width,
321
- height: bubbleY + band,
322
- qrX,
323
- qrY: border + gap,
324
- qrSize: size,
325
- shapes: [
326
- rect(border, border, innerWidth, innerWidth, innerRadius, background),
327
- ring(
328
- box(0, 0, width, width, radius),
329
- box(border, border, innerWidth, innerWidth, innerRadius),
330
- color
331
- ),
332
- {
333
- type: "polygon",
334
- points: [
335
- // Base dips into the bubble so no hairline shows between them
336
- [width / 2 - pointer, bubbleY + pointer / 2],
337
- [width / 2, width + spacing],
338
- [width / 2 + pointer, bubbleY + pointer / 2],
339
- ],
340
- fill: color,
341
- },
342
- rect(0, bubbleY, width, band, band / 2, color),
343
- ],
344
- label: fitLabel(
345
- text,
346
- width / 2,
347
- bubbleY + band / 2,
348
- band,
349
- labelWidth,
350
- frame.textColor || DEFAULT_BANNER_TEXT_COLOR
351
- ),
352
- squareEdges: false,
353
- color,
354
- };
355
- }
356
-
357
- default: {
358
- // banner-bottom
359
- const innerHeight = size + 2 * gap;
360
- return {
361
- width,
362
- height: border + innerHeight + band,
363
- qrX,
364
- qrY: border + gap,
365
- qrSize: size,
366
- shapes: [
367
- rect(border, border, innerWidth, innerHeight, 0, background),
368
- ring(
369
- box(0, 0, width, border + innerHeight + band, 0),
370
- box(border, border, innerWidth, innerHeight, 0),
371
- color
372
- ),
373
- ],
374
- label: fitLabel(
375
- text,
376
- width / 2,
377
- border + innerHeight + band / 2,
378
- band,
379
- labelWidth,
380
- frame.textColor || DEFAULT_BANNER_TEXT_COLOR
381
- ),
382
- squareEdges: true,
383
- color,
384
- };
385
- }
386
- }
387
- }
388
-
389
- function box(
390
- x: number,
391
- y: number,
392
- width: number,
393
- height: number,
394
- radius: number
395
- ): FrameBox {
396
- return { x, y, width, height, radius };
397
- }
398
-
399
- function rect(
400
- x: number,
401
- y: number,
402
- width: number,
403
- height: number,
404
- radius: number,
405
- fill: string
406
- ): FrameRect {
407
- return { type: "rect", ...box(x, y, width, height, radius), fill };
408
- }
409
-
410
- function ring(outer: FrameBox, hole: FrameBox, fill: string): FrameRect {
411
- return { type: "rect", ...outer, fill, hole };
157
+ return getBuiltInFrameLayout(size, frame, bgColor);
412
158
  }
413
159
 
414
160
  /**
@@ -443,6 +189,13 @@ function boxPath({ x, y, width, height, radius }: FrameBox): string {
443
189
  );
444
190
  }
445
191
 
192
+ /** SVG attributes of a shape's outline, if it has one. */
193
+ function strokeProps(shape: FrameStroke) {
194
+ return shape.stroke && shape.strokeWidth
195
+ ? { stroke: shape.stroke, strokeWidth: round(shape.strokeWidth) }
196
+ : {};
197
+ }
198
+
446
199
  function renderShape(shape: FrameShape, key: number) {
447
200
  if (shape.type === "rect" && shape.hole) {
448
201
  return (
@@ -451,6 +204,7 @@ function renderShape(shape: FrameShape, key: number) {
451
204
  fill={shape.fill}
452
205
  fillRule="evenodd"
453
206
  key={key}
207
+ {...strokeProps(shape)}
454
208
  />
455
209
  );
456
210
  }
@@ -462,6 +216,7 @@ function renderShape(shape: FrameShape, key: number) {
462
216
  points={shape.points
463
217
  .map(([x, y]) => `${round(x)},${round(y)}`)
464
218
  .join(" ")}
219
+ {...strokeProps(shape)}
465
220
  />
466
221
  );
467
222
  }
@@ -472,11 +227,13 @@ function renderShape(shape: FrameShape, key: number) {
472
227
  fill={shape.fill}
473
228
  key={key}
474
229
  {...(shape.fillRule === "evenodd" && { fillRule: "evenodd" })}
230
+ {...strokeProps(shape)}
475
231
  />
476
232
  );
477
233
  }
478
234
  return (
479
235
  <rect
236
+ {...strokeProps(shape)}
480
237
  fill={shape.fill}
481
238
  height={round(shape.height)}
482
239
  key={key}
@@ -491,6 +248,11 @@ function renderShape(shape: FrameShape, key: number) {
491
248
  );
492
249
  }
493
250
 
251
+ /** A layout's shapes as SVG elements, in paint order (the frame's artwork). */
252
+ export function frameShapeElements(layout: FrameLayout): QRNode[] {
253
+ return layout.shapes.map((shape, index) => renderShape(shape, index));
254
+ }
255
+
494
256
  /**
495
257
  * Wraps a rendered QR `<svg>` (sized `size × size`) in a frame. The QR element
496
258
  * is nested as-is at its offset, so its modules are untouched.
@@ -577,14 +339,34 @@ export function drawFrameOnCanvas(
577
339
  ctx.closePath();
578
340
  };
579
341
 
342
+ const strokeShape = (shape: FrameShape, path?: Path2D) => {
343
+ if (!(shape.stroke && shape.strokeWidth)) {
344
+ return;
345
+ }
346
+ ctx.strokeStyle = shape.stroke;
347
+ ctx.lineWidth = shape.strokeWidth;
348
+ ctx.lineJoin = "miter";
349
+ ctx.miterLimit = 4;
350
+ if (path) {
351
+ ctx.stroke(path);
352
+ } else {
353
+ ctx.stroke();
354
+ }
355
+ };
356
+
580
357
  for (const shape of layout.shapes) {
581
- if (shape.fill === "transparent" || shape.fill === "none") {
358
+ const filled = !(shape.fill === "transparent" || shape.fill === "none");
359
+ if (!(filled || shape.stroke)) {
582
360
  continue;
583
361
  }
584
362
  ctx.fillStyle = shape.fill;
585
363
  if (shape.type === "path") {
586
364
  if (typeof Path2D !== "undefined") {
587
- ctx.fill(new Path2D(shape.d), shape.fillRule ?? "nonzero");
365
+ const path = new Path2D(shape.d);
366
+ if (filled) {
367
+ ctx.fill(path, shape.fillRule ?? "nonzero");
368
+ }
369
+ strokeShape(shape, path);
588
370
  }
589
371
  continue;
590
372
  }
@@ -598,14 +380,19 @@ export function drawFrameOnCanvas(
598
380
  }
599
381
  });
600
382
  ctx.closePath();
601
- ctx.fill();
383
+ if (filled) {
384
+ ctx.fill();
385
+ }
602
386
  } else {
603
387
  traceBox(shape);
604
388
  if (shape.hole) {
605
389
  traceBox(shape.hole);
606
390
  }
607
- ctx.fill("evenodd");
391
+ if (filled) {
392
+ ctx.fill("evenodd");
393
+ }
608
394
  }
395
+ strokeShape(shape);
609
396
  }
610
397
 
611
398
  for (const label of frameLabels(layout)) {
@@ -0,0 +1,108 @@
1
+ {
2
+ "kind": "qrdx.frame",
3
+ "version": 1,
4
+ "artboard": {
5
+ "width": 1600,
6
+ "height": 1470
7
+ },
8
+ "qr": {
9
+ "x": 300,
10
+ "y": 120,
11
+ "size": 1000,
12
+ "padding": 70,
13
+ "radius": 10,
14
+ "plate": "background"
15
+ },
16
+ "colors": {
17
+ "frame": "#000000",
18
+ "text": "#FFFFFF"
19
+ },
20
+ "shapes": [
21
+ {
22
+ "type": "polygon",
23
+ "points": [[0, 1250], [190, 1250], [190, 1470], [0, 1470], [50.4, 1360]],
24
+ "fill": {
25
+ "mix": ["frame", "#000000"],
26
+ "amount": 0.28
27
+ }
28
+ },
29
+ {
30
+ "type": "polygon",
31
+ "points": [
32
+ [1600, 1250],
33
+ [1549.6, 1360],
34
+ [1600, 1470],
35
+ [1410, 1470],
36
+ [1410, 1250]
37
+ ],
38
+ "fill": {
39
+ "mix": ["frame", "#000000"],
40
+ "amount": 0.28
41
+ }
42
+ },
43
+ {
44
+ "type": "polygon",
45
+ "points": [[90, 1420], [170, 1470], [90, 1470]],
46
+ "fill": {
47
+ "mix": ["frame", "#000000"],
48
+ "amount": 0.5
49
+ }
50
+ },
51
+ {
52
+ "type": "polygon",
53
+ "points": [[1510, 1420], [1510, 1470], [1430, 1470]],
54
+ "fill": {
55
+ "mix": ["frame", "#000000"],
56
+ "amount": 0.5
57
+ }
58
+ },
59
+ {
60
+ "type": "rect",
61
+ "x": 220,
62
+ "y": 40,
63
+ "width": 1160,
64
+ "height": 1160,
65
+ "radius": 20,
66
+ "fill": "background"
67
+ },
68
+ {
69
+ "type": "rect",
70
+ "x": 180,
71
+ "y": 0,
72
+ "width": 1240,
73
+ "height": 1240,
74
+ "radius": 60,
75
+ "fill": "frame",
76
+ "hole": {
77
+ "x": 220,
78
+ "y": 40,
79
+ "width": 1160,
80
+ "height": 1160,
81
+ "radius": 20
82
+ }
83
+ },
84
+ {
85
+ "type": "rect",
86
+ "x": 90,
87
+ "y": 1200,
88
+ "width": 1420,
89
+ "height": 220,
90
+ "fill": "frame"
91
+ }
92
+ ],
93
+ "labels": [
94
+ {
95
+ "type": "text",
96
+ "id": "cta",
97
+ "slot": "primary",
98
+ "text": "Scan me",
99
+ "color": "text",
100
+ "box": {
101
+ "x": 170,
102
+ "y": 1200,
103
+ "width": 1260,
104
+ "height": 220
105
+ }
106
+ }
107
+ ]
108
+ }
@@ -9,7 +9,8 @@
9
9
  "x": 120,
10
10
  "y": 120,
11
11
  "size": 1000,
12
- "padding": 60
12
+ "padding": 70,
13
+ "plate": "background"
13
14
  },
14
15
  "colors": {
15
16
  "frame": "#000000",
@@ -0,0 +1,72 @@
1
+ {
2
+ "kind": "qrdx.frame",
3
+ "version": 1,
4
+ "artboard": {
5
+ "width": 1240,
6
+ "height": 1600
7
+ },
8
+ "qr": {
9
+ "x": 120,
10
+ "y": 300,
11
+ "size": 1000,
12
+ "padding": 70,
13
+ "plate": "background"
14
+ },
15
+ "colors": {
16
+ "frame": "#000000",
17
+ "text": "#FFFFFF"
18
+ },
19
+ "shapes": [
20
+ {
21
+ "type": "rect",
22
+ "x": 40,
23
+ "y": 220,
24
+ "width": 1160,
25
+ "height": 1160,
26
+ "fill": "background"
27
+ },
28
+ {
29
+ "type": "rect",
30
+ "x": 0,
31
+ "y": 0,
32
+ "width": 1240,
33
+ "height": 1600,
34
+ "fill": "frame",
35
+ "hole": {
36
+ "x": 40,
37
+ "y": 220,
38
+ "width": 1160,
39
+ "height": 1160
40
+ }
41
+ }
42
+ ],
43
+ "labels": [
44
+ {
45
+ "type": "text",
46
+ "id": "top",
47
+ "slot": "primary",
48
+ "text": "Scan me",
49
+ "color": "text",
50
+ "box": {
51
+ "x": 120,
52
+ "y": 0,
53
+ "width": 1000,
54
+ "height": 220
55
+ }
56
+ },
57
+ {
58
+ "type": "text",
59
+ "id": "bottom",
60
+ "slot": "secondary",
61
+ "text": "",
62
+ "color": "text",
63
+ "box": {
64
+ "x": 120,
65
+ "y": 1380,
66
+ "width": 1000,
67
+ "height": 220
68
+ }
69
+ }
70
+ ],
71
+ "bleed": "frame"
72
+ }