qrdx 0.0.50 → 0.0.52
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/README.md +212 -8
- package/dist/angular.js +252 -0
- package/dist/angular.js.map +1 -0
- package/dist/angular.mjs +226 -0
- package/dist/angular.mjs.map +1 -0
- package/dist/core.js +31 -0
- package/dist/core.js.map +1 -0
- package/dist/core.mjs +31 -0
- package/dist/core.mjs.map +1 -0
- package/dist/element-define.browser.mjs +2 -0
- package/dist/element-define.browser.mjs.map +1 -0
- package/dist/element-define.js +2 -0
- package/dist/element-define.js.map +1 -0
- package/dist/element-define.mjs +2 -0
- package/dist/element-define.mjs.map +1 -0
- package/dist/element.browser.mjs +91 -0
- package/dist/element.browser.mjs.map +1 -0
- package/dist/element.js +2 -0
- package/dist/element.js.map +1 -0
- package/dist/element.mjs +2 -0
- package/dist/element.mjs.map +1 -0
- package/dist/frames-index.js +1 -1
- package/dist/frames-index.js.map +1 -1
- package/dist/frames-index.mjs +1 -1
- package/dist/frames-index.mjs.map +1 -1
- package/dist/frames-official.js +1 -1
- package/dist/frames-official.js.map +1 -1
- package/dist/frames-official.mjs +1 -1
- package/dist/frames-official.mjs.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/dist/node.js +2 -5
- package/dist/node.js.map +1 -1
- package/dist/node.mjs +2 -5
- package/dist/node.mjs.map +1 -1
- package/dist/preact.js +2 -0
- package/dist/preact.js.map +1 -0
- package/dist/preact.mjs +2 -0
- package/dist/preact.mjs.map +1 -0
- package/dist/qr-code-canvas.js +1 -1
- package/dist/qr-code-canvas.js.map +1 -1
- package/dist/qr-code-canvas.mjs +1 -1
- package/dist/qr-code-canvas.mjs.map +1 -1
- package/dist/solid.js +2 -0
- package/dist/solid.js.map +1 -0
- package/dist/solid.mjs +2 -0
- package/dist/solid.mjs.map +1 -0
- package/dist/src/angular.d.ts +94 -0
- package/dist/src/api.d.ts +8 -2
- package/dist/src/api.d.ts.map +1 -1
- package/dist/src/art.d.ts +4 -3
- package/dist/src/art.d.ts.map +1 -1
- package/dist/src/body-patterns.d.ts +3 -2
- package/dist/src/body-patterns.d.ts.map +1 -1
- package/dist/src/core.d.ts +5 -0
- package/dist/src/core.d.ts.map +1 -0
- package/dist/src/corner-dot.d.ts +3 -2
- package/dist/src/corner-dot.d.ts.map +1 -1
- package/dist/src/element-define.d.ts +3 -0
- package/dist/src/element-define.d.ts.map +1 -0
- package/dist/src/element.d.ts +150 -0
- package/dist/src/element.d.ts.map +1 -0
- package/dist/src/engine.d.ts +44 -0
- package/dist/src/engine.d.ts.map +1 -0
- package/dist/src/export.d.ts +5 -0
- package/dist/src/export.d.ts.map +1 -0
- package/dist/src/frame-spec.d.ts +22 -4
- package/dist/src/frame-spec.d.ts.map +1 -1
- package/dist/src/frame-text.d.ts +19 -0
- package/dist/src/frame-text.d.ts.map +1 -0
- package/dist/src/frame.d.ts +18 -11
- package/dist/src/frame.d.ts.map +1 -1
- package/dist/src/frames/builtin.d.ts +53 -5
- package/dist/src/frames/builtin.d.ts.map +1 -1
- package/dist/src/frames/catalogue/all.d.ts.map +1 -1
- package/dist/src/frames/catalogue/automotive.d.ts +5 -0
- package/dist/src/frames/catalogue/automotive.d.ts.map +1 -0
- package/dist/src/frames/catalogue/beauty-wellness.d.ts +5 -0
- package/dist/src/frames/catalogue/beauty-wellness.d.ts.map +1 -0
- package/dist/src/frames/catalogue/business.d.ts.map +1 -1
- package/dist/src/frames/catalogue/call-to-action.d.ts.map +1 -1
- package/dist/src/frames/catalogue/counts.d.ts +15 -10
- package/dist/src/frames/catalogue/counts.d.ts.map +1 -1
- package/dist/src/frames/catalogue/events.d.ts.map +1 -1
- package/dist/src/frames/catalogue/food-drink.d.ts.map +1 -1
- package/dist/src/frames/catalogue/health-learning.d.ts.map +1 -1
- package/dist/src/frames/catalogue/holidays.d.ts.map +1 -1
- package/dist/src/frames/catalogue/index.d.ts.map +1 -1
- package/dist/src/frames/catalogue/nonprofit.d.ts +5 -0
- package/dist/src/frames/catalogue/nonprofit.d.ts.map +1 -0
- package/dist/src/frames/catalogue/places.d.ts.map +1 -1
- package/dist/src/frames/catalogue/real-estate.d.ts +5 -0
- package/dist/src/frames/catalogue/real-estate.d.ts.map +1 -0
- package/dist/src/frames/catalogue/seasons.d.ts.map +1 -1
- package/dist/src/frames/catalogue/shopping.d.ts.map +1 -1
- package/dist/src/frames/catalogue/sports-fitness.d.ts +5 -0
- package/dist/src/frames/catalogue/sports-fitness.d.ts.map +1 -0
- package/dist/src/frames/catalogue/tags.d.ts.map +1 -1
- package/dist/src/frames/collections.d.ts.map +1 -1
- package/dist/src/frames/official-types.d.ts +1 -1
- package/dist/src/frames/official-types.d.ts.map +1 -1
- package/dist/src/index.d.ts +3 -38
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/jsx/index.d.ts +2 -0
- package/dist/src/jsx/index.d.ts.map +1 -0
- package/dist/src/jsx/jsx-dev-runtime.d.ts +5 -0
- package/dist/src/jsx/jsx-dev-runtime.d.ts.map +1 -0
- package/dist/src/jsx/jsx-runtime.d.ts +30 -0
- package/dist/src/jsx/jsx-runtime.d.ts.map +1 -0
- package/dist/src/jsx/runtime.d.ts +73 -0
- package/dist/src/jsx/runtime.d.ts.map +1 -0
- package/dist/src/logo.d.ts +3 -2
- package/dist/src/logo.d.ts.map +1 -1
- package/dist/src/node.d.ts.map +1 -1
- package/dist/src/plain.d.ts +31 -0
- package/dist/src/plain.d.ts.map +1 -0
- package/dist/src/preact.d.ts +29 -0
- package/dist/src/preact.d.ts.map +1 -0
- package/dist/src/qr-code-canvas.d.ts +1 -1
- package/dist/src/qr-code-canvas.d.ts.map +1 -1
- package/dist/src/qr-code-props.d.ts +22 -0
- package/dist/src/qr-code-props.d.ts.map +1 -0
- package/dist/src/qr-code-svg.d.ts +10 -0
- package/dist/src/qr-code-svg.d.ts.map +1 -0
- package/dist/src/qr-code.d.ts +2 -10
- package/dist/src/qr-code.d.ts.map +1 -1
- package/dist/src/react-elements.d.ts +3 -0
- package/dist/src/react-elements.d.ts.map +1 -0
- package/dist/src/render/attributes.d.ts +33 -0
- package/dist/src/render/attributes.d.ts.map +1 -0
- package/dist/src/render/dom.d.ts +8 -0
- package/dist/src/render/dom.d.ts.map +1 -0
- package/dist/src/render/hyperscript.d.ts +10 -0
- package/dist/src/render/hyperscript.d.ts.map +1 -0
- package/dist/src/render/string.d.ts +8 -0
- package/dist/src/render/string.d.ts.map +1 -0
- package/dist/src/scan-score.d.ts +4 -3
- package/dist/src/scan-score.d.ts.map +1 -1
- package/dist/src/solid.d.ts +21 -0
- package/dist/src/solid.d.ts.map +1 -0
- package/dist/src/svg.d.ts +14 -0
- package/dist/src/svg.d.ts.map +1 -0
- package/dist/src/template/arrow.d.ts +1 -0
- package/dist/src/template/arrow.d.ts.map +1 -1
- package/dist/src/template/default.d.ts +1 -0
- package/dist/src/template/default.d.ts.map +1 -1
- package/dist/src/template/dot-ring-layout.d.ts +44 -0
- package/dist/src/template/dot-ring-layout.d.ts.map +1 -0
- package/dist/src/template/dot-ring.d.ts +41 -0
- package/dist/src/template/dot-ring.d.ts.map +1 -0
- package/dist/src/template/halloween.d.ts +1 -0
- package/dist/src/template/halloween.d.ts.map +1 -1
- package/dist/src/template/index.d.ts +1 -0
- package/dist/src/template/index.d.ts.map +1 -1
- package/dist/src/template/square-border.d.ts +1 -0
- package/dist/src/template/square-border.d.ts.map +1 -1
- package/dist/src/template/standard-box.d.ts +1 -0
- package/dist/src/template/standard-box.d.ts.map +1 -1
- package/dist/src/template/striked-box.d.ts +1 -0
- package/dist/src/template/striked-box.d.ts.map +1 -1
- package/dist/src/template-placement.d.ts +8 -0
- package/dist/src/template-placement.d.ts.map +1 -0
- package/dist/src/templates.d.ts.map +1 -1
- package/dist/src/utils.d.ts +9 -3
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/vanilla-api.d.ts +47 -0
- package/dist/src/vanilla-api.d.ts.map +1 -0
- package/dist/src/vanilla-browser.d.ts +4 -0
- package/dist/src/vanilla-browser.d.ts.map +1 -0
- package/dist/src/vanilla.d.ts +4 -0
- package/dist/src/vanilla.d.ts.map +1 -0
- package/dist/src/vue.d.ts +56 -0
- package/dist/src/vue.d.ts.map +1 -0
- package/dist/types/frame-spec.d.ts +149 -14
- package/dist/types/frame-spec.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +2 -2
- package/dist/types/index.js.map +1 -1
- package/dist/types/index.mjs +2 -2
- package/dist/types/index.mjs.map +1 -1
- package/dist/types/public.d.ts +3 -0
- package/dist/types/public.d.ts.map +1 -0
- package/dist/types/qr.d.ts +43 -7
- package/dist/types/qr.d.ts.map +1 -1
- package/dist/types/react.d.ts +5 -0
- package/dist/types/react.d.ts.map +1 -0
- package/dist/types/template.d.ts +7 -1
- package/dist/types/template.d.ts.map +1 -1
- package/dist/vanilla.browser.mjs +92 -0
- package/dist/vanilla.browser.mjs.map +1 -0
- package/dist/vanilla.js +2 -0
- package/dist/vanilla.js.map +1 -0
- package/dist/vanilla.mjs +2 -0
- package/dist/vanilla.mjs.map +1 -0
- package/dist/vue.js +2 -0
- package/dist/vue.js.map +1 -0
- package/dist/vue.mjs +2 -0
- package/dist/vue.mjs.map +1 -0
- package/package.json +130 -8
- package/src/angular.ts +218 -0
- package/src/api.tsx +16 -140
- package/src/art.tsx +18 -16
- package/src/body-patterns.tsx +5 -3
- package/src/core.ts +13 -0
- package/src/corner-dot.tsx +4 -2
- package/src/download.tsx +1 -1
- package/src/element-define.ts +9 -0
- package/src/element.ts +608 -0
- package/src/engine.ts +181 -0
- package/src/export.ts +212 -0
- package/src/frame-spec.ts +314 -54
- package/src/frame-text.ts +111 -0
- package/src/frame.tsx +24 -286
- package/src/frames/builtin/badge.json +108 -0
- package/src/frames/builtin/banner-bottom.json +2 -1
- package/src/frames/builtin/banner-top-bottom.json +72 -0
- package/src/frames/builtin/banner-top.json +59 -0
- package/src/frames/builtin/border.json +62 -0
- package/src/frames/builtin/chat-bubble.json +54 -0
- package/src/frames/builtin/circle.json +2 -1
- package/src/frames/builtin/envelope.json +81 -0
- package/src/frames/builtin/focus.json +88 -0
- package/src/frames/builtin/gradient-border.json +76 -0
- package/src/frames/builtin/menu-card.json +108 -0
- package/src/frames/builtin/phone.json +75 -0
- package/src/frames/builtin/polaroid.json +56 -0
- package/src/frames/builtin/rounded-border.json +8 -4
- package/src/frames/builtin/speech-bubble-top.json +76 -0
- package/src/frames/builtin/speech-bubble.json +76 -0
- package/src/frames/builtin/sticker.json +78 -0
- package/src/frames/builtin/tag.json +55 -0
- package/src/frames/builtin.ts +181 -12
- package/src/frames/catalogue/all.ts +1190 -0
- package/src/frames/catalogue/automotive.ts +63 -0
- package/src/frames/catalogue/beauty-wellness.ts +61 -0
- package/src/frames/catalogue/business.ts +68 -0
- package/src/frames/catalogue/call-to-action.ts +60 -0
- package/src/frames/catalogue/counts.ts +15 -10
- package/src/frames/catalogue/events.ts +90 -0
- package/src/frames/catalogue/food-drink.ts +78 -0
- package/src/frames/catalogue/health-learning.ts +62 -14
- package/src/frames/catalogue/holidays.ts +336 -0
- package/src/frames/catalogue/index.ts +5173 -16
- package/src/frames/catalogue/nonprofit.ts +65 -0
- package/src/frames/catalogue/places.ts +92 -18
- package/src/frames/catalogue/real-estate.ts +79 -0
- package/src/frames/catalogue/seasons.ts +64 -0
- package/src/frames/catalogue/shopping.ts +68 -0
- package/src/frames/catalogue/sports-fitness.ts +81 -0
- package/src/frames/catalogue/tags.ts +738 -0
- package/src/frames/collections.ts +5 -0
- package/src/frames/official/add-engraving.json +90 -0
- package/src/frames/official/add-to-calendar.json +98 -0
- package/src/frames/official/adopt-me.json +72 -0
- package/src/frames/official/africa-day.json +110 -0
- package/src/frames/official/aftercare-guide.json +98 -0
- package/src/frames/official/alterations.json +142 -0
- package/src/frames/official/annual-report.json +85 -0
- package/src/frames/official/aquarium-feeding.json +113 -0
- package/src/frames/official/archery-lesson.json +106 -0
- package/src/frames/official/arrival-guide.json +71 -0
- package/src/frames/official/art-class.json +137 -0
- package/src/frames/official/ask-a-stylist.json +112 -0
- package/src/frames/official/assembly-guide.json +93 -0
- package/src/frames/official/autumn-apple-picking.json +81 -0
- package/src/frames/official/autumn-mushroom.json +72 -0
- package/src/frames/official/autumn-pumpkin-patch.json +83 -0
- package/src/frames/official/avurudu-pot.json +87 -0
- package/src/frames/official/badminton-session.json +104 -0
- package/src/frames/official/bake-sale.json +158 -0
- package/src/frames/official/bakery-board.json +80 -0
- package/src/frames/official/barber-booking.json +64 -0
- package/src/frames/official/bath-ritual.json +70 -0
- package/src/frames/official/bathroom-showroom.json +113 -0
- package/src/frames/official/battery-check.json +95 -0
- package/src/frames/official/beach-conditions.json +113 -0
- package/src/frames/official/beach-info-sticker.json +81 -0
- package/src/frames/official/beach-lifeguard.json +71 -0
- package/src/frames/official/beauty-rewards.json +81 -0
- package/src/frames/official/become-a-member.json +79 -0
- package/src/frames/official/bike-service.json +113 -0
- package/src/frames/official/blood-donor-drop.json +87 -0
- package/src/frames/official/blood-donor-sticker.json +94 -0
- package/src/frames/official/book-a-call.json +105 -0
- package/src/frames/official/book-a-cleaning.json +92 -0
- package/src/frames/official/book-a-consultation.json +101 -0
- package/src/frames/official/book-a-court.json +74 -0
- package/src/frames/official/book-a-facial.json +108 -0
- package/src/frames/official/book-a-massage.json +80 -0
- package/src/frames/official/book-a-vaccine.json +88 -0
- package/src/frames/official/book-day-arch.json +71 -0
- package/src/frames/official/book-day-list.json +114 -0
- package/src/frames/official/book-this-room.json +80 -0
- package/src/frames/official/boxing-class.json +81 -0
- package/src/frames/official/brewery-tour.json +89 -0
- package/src/frames/official/bridal-beauty.json +80 -0
- package/src/frames/official/brunch-menu.json +79 -0
- package/src/frames/official/bubble-tea.json +81 -0
- package/src/frames/official/bulk-orders.json +108 -0
- package/src/frames/official/burger-order.json +80 -0
- package/src/frames/official/call-a-server.json +115 -0
- package/src/frames/official/camp-check-in.json +74 -0
- package/src/frames/official/camp-fire-rules.json +114 -0
- package/src/frames/official/camp-map.json +85 -0
- package/src/frames/official/car-detailing.json +102 -0
- package/src/frames/official/car-details.json +90 -0
- package/src/frames/official/car-for-sale.json +74 -0
- package/src/frames/official/car-service.json +92 -0
- package/src/frames/official/carnival-mask.json +76 -0
- package/src/frames/official/carnival-pass.json +85 -0
- package/src/frames/official/carnival-plume.json +71 -0
- package/src/frames/official/carpool.json +79 -0
- package/src/frames/official/catering-order.json +79 -0
- package/src/frames/official/charging-prices.json +105 -0
- package/src/frames/official/charity-shop.json +75 -0
- package/src/frames/official/check-symptoms.json +80 -0
- package/src/frames/official/cheese-pairing.json +91 -0
- package/src/frames/official/chess-club.json +64 -0
- package/src/frames/official/chess-lessons.json +83 -0
- package/src/frames/official/childrens-day-carp.json +114 -0
- package/src/frames/official/childrens-day-sticker.json +88 -0
- package/src/frames/official/choose-your-plan.json +113 -0
- package/src/frames/official/choose-your-wash.json +86 -0
- package/src/frames/official/chuseok-gift-tag.json +59 -0
- package/src/frames/official/chuseok-moon.json +99 -0
- package/src/frames/official/chuseok-songpyeon.json +114 -0
- package/src/frames/official/clean-beauty.json +94 -0
- package/src/frames/official/click-and-collect.json +85 -0
- package/src/frames/official/clock-in.json +101 -0
- package/src/frames/official/club-fees.json +94 -0
- package/src/frames/official/coach-sign-up.json +108 -0
- package/src/frames/official/community-notices.json +107 -0
- package/src/frames/official/compare-specs.json +112 -0
- package/src/frames/official/consultation-form.json +120 -0
- package/src/frames/official/continued-online.json +81 -0
- package/src/frames/official/cookie-box.json +88 -0
- package/src/frames/official/cooking-class.json +89 -0
- package/src/frames/official/cowork-desk.json +82 -0
- package/src/frames/official/cowork-meeting-room.json +107 -0
- package/src/frames/official/coworking-pass.json +89 -0
- package/src/frames/official/cricket-club.json +158 -0
- package/src/frames/official/cupcake-order.json +108 -0
- package/src/frames/official/damage-report.json +114 -0
- package/src/frames/official/dashboard-lights.json +106 -0
- package/src/frames/official/delivery-instructions.json +98 -0
- package/src/frames/official/diy-how-to.json +87 -0
- package/src/frames/official/donate-coats.json +74 -0
- package/src/frames/official/donate-food.json +80 -0
- package/src/frames/official/donation-jar.json +101 -0
- package/src/frames/official/donut-shop.json +94 -0
- package/src/frames/official/dragon-boat-race.json +83 -0
- package/src/frames/official/dragon-boat-ticket.json +98 -0
- package/src/frames/official/dragon-boat-zongzi.json +81 -0
- package/src/frames/official/dress-fitting.json +64 -0
- package/src/frames/official/driving-lessons.json +110 -0
- package/src/frames/official/dumpling-house.json +82 -0
- package/src/frames/official/durga-puja-lotus.json +114 -0
- package/src/frames/official/dussehra-seal.json +187 -0
- package/src/frames/official/earth-day-globe.json +77 -0
- package/src/frames/official/earth-day-pledge.json +66 -0
- package/src/frames/official/earth-day-recycle.json +109 -0
- package/src/frames/official/enkutatash-daisy.json +87 -0
- package/src/frames/official/enkutatash-seal.json +179 -0
- package/src/frames/official/environment-day.json +83 -0
- package/src/frames/official/event-anniversary.json +107 -0
- package/src/frames/official/event-awards.json +93 -0
- package/src/frames/official/event-baby-gifts.json +113 -0
- package/src/frames/official/event-baby-shower.json +70 -0
- package/src/frames/official/event-birth-announcement.json +71 -0
- package/src/frames/official/event-book-fair.json +142 -0
- package/src/frames/official/event-booth.json +98 -0
- package/src/frames/official/event-craft-fair.json +96 -0
- package/src/frames/official/event-cupcake.json +81 -0
- package/src/frames/official/event-engagement.json +116 -0
- package/src/frames/official/event-film-festival.json +92 -0
- package/src/frames/official/event-food-festival.json +108 -0
- package/src/frames/official/event-fun-run.json +107 -0
- package/src/frames/official/event-gala.json +121 -0
- package/src/frames/official/event-game-night.json +97 -0
- package/src/frames/official/event-grad-diploma.json +126 -0
- package/src/frames/official/event-grad-party.json +108 -0
- package/src/frames/official/event-grad-seal.json +186 -0
- package/src/frames/official/event-grad-stream.json +94 -0
- package/src/frames/official/event-guest-book.json +121 -0
- package/src/frames/official/event-hackathon.json +82 -0
- package/src/frames/official/event-keynote.json +74 -0
- package/src/frames/official/event-match-lineup.json +66 -0
- package/src/frames/official/event-meetup.json +86 -0
- package/src/frames/official/event-memorial.json +124 -0
- package/src/frames/official/event-milestone.json +168 -0
- package/src/frames/official/event-night-market.json +88 -0
- package/src/frames/official/event-open-mic.json +94 -0
- package/src/frames/official/event-party-hat.json +74 -0
- package/src/frames/official/event-prom.json +82 -0
- package/src/frames/official/event-quince.json +70 -0
- package/src/frames/official/event-retirement.json +92 -0
- package/src/frames/official/event-reunion.json +98 -0
- package/src/frames/official/event-runner-tracker.json +101 -0
- package/src/frames/official/event-season-ticket.json +89 -0
- package/src/frames/official/event-session-feedback.json +89 -0
- package/src/frames/official/event-setlist.json +70 -0
- package/src/frames/official/event-short-films.json +113 -0
- package/src/frames/official/event-slides.json +85 -0
- package/src/frames/official/event-speaker-qa.json +112 -0
- package/src/frames/official/event-talent-show.json +130 -0
- package/src/frames/official/event-tour-merch.json +63 -0
- package/src/frames/official/event-tournament.json +98 -0
- package/src/frames/official/event-trivia.json +79 -0
- package/src/frames/official/event-workshop.json +127 -0
- package/src/frames/official/eye-exam.json +70 -0
- package/src/frames/official/eyewear-try-on.json +99 -0
- package/src/frames/official/fan-club.json +152 -0
- package/src/frames/official/farm-stand.json +109 -0
- package/src/frames/official/farmers-market.json +74 -0
- package/src/frames/official/festa-della-repubblica.json +100 -0
- package/src/frames/official/festa-junina-bonfire.json +81 -0
- package/src/frames/official/festa-junina-corn.json +72 -0
- package/src/frames/official/festa-junina-flags.json +110 -0
- package/src/frames/official/fiestas-patrias-chile.json +76 -0
- package/src/frames/official/find-a-charger.json +107 -0
- package/src/frames/official/find-a-doctor.json +85 -0
- package/src/frames/official/find-it-in-store.json +101 -0
- package/src/frames/official/find-our-office.json +80 -0
- package/src/frames/official/first-aid-guide.json +109 -0
- package/src/frames/official/fish-market.json +113 -0
- package/src/frames/official/fitness-challenge.json +1 -1
- package/src/frames/official/fitness-equipment.json +1 -1
- package/src/frames/official/fitness-kettlebell.json +1 -1
- package/src/frames/official/fitness-schedule.json +1 -1
- package/src/frames/official/fitness-test.json +94 -0
- package/src/frames/official/fitness-timer.json +1 -1
- package/src/frames/official/fitness-trial.json +1 -1
- package/src/frames/official/fitness-yoga.json +1 -1
- package/src/frames/official/food-day-wheat.json +109 -0
- package/src/frames/official/food-support.json +102 -0
- package/src/frames/official/food-truck-location.json +80 -0
- package/src/frames/official/freedom-day-south-africa.json +109 -0
- package/src/frames/official/furnished-rental.json +101 -0
- package/src/frames/official/game-night.json +79 -0
- package/src/frames/official/ganesh-marigold.json +71 -0
- package/src/frames/official/ganesh-modak.json +81 -0
- package/src/frames/official/ganesh-pandal.json +109 -0
- package/src/frames/official/garden-design.json +70 -0
- package/src/frames/official/garden-plant-label.json +98 -0
- package/src/frames/official/garden-plot.json +74 -0
- package/src/frames/official/german-unity-day.json +100 -0
- package/src/frames/official/get-a-quote.json +113 -0
- package/src/frames/official/get-it-delivered.json +82 -0
- package/src/frames/official/get-started-rocket.json +80 -0
- package/src/frames/official/get-the-brochure.json +116 -0
- package/src/frames/official/gift-ideas.json +86 -0
- package/src/frames/official/gift-message.json +85 -0
- package/src/frames/official/give-blood.json +88 -0
- package/src/frames/official/giving-jar.json +89 -0
- package/src/frames/official/golf-scorecard.json +120 -0
- package/src/frames/official/grand-opening.json +158 -0
- package/src/frames/official/green-ribbon.json +123 -0
- package/src/frames/official/grill-menu.json +92 -0
- package/src/frames/official/gudi-padwa.json +81 -0
- package/src/frames/official/hanami-arch.json +71 -0
- package/src/frames/official/hanami-picnic.json +90 -0
- package/src/frames/official/hanami-sakura.json +81 -0
- package/src/frames/official/hand-washing.json +106 -0
- package/src/frames/official/handyman.json +130 -0
- package/src/frames/official/hari-raya-haji.json +122 -0
- package/src/frames/official/hari-raya-ketupat.json +81 -0
- package/src/frames/official/hari-raya-open-house.json +114 -0
- package/src/frames/official/hari-raya-pelita.json +77 -0
- package/src/frames/official/harvest-basket.json +87 -0
- package/src/frames/official/harvest-corn.json +115 -0
- package/src/frames/official/harvest-hay.json +89 -0
- package/src/frames/official/harvest-market.json +109 -0
- package/src/frames/official/hear-it-spoken.json +86 -0
- package/src/frames/official/hijri-new-year-stamp.json +77 -0
- package/src/frames/official/hijri-new-year.json +122 -0
- package/src/frames/official/historic-marker.json +176 -0
- package/src/frames/official/home-valuation.json +87 -0
- package/src/frames/official/homework-help.json +79 -0
- package/src/frames/official/hostel-check-in.json +113 -0
- package/src/frames/official/hostel-house-rules.json +136 -0
- package/src/frames/official/hostel-local-tips.json +86 -0
- package/src/frames/official/hot-shave.json +121 -0
- package/src/frames/official/house-rules.json +121 -0
- package/src/frames/official/how-it-works.json +98 -0
- package/src/frames/official/how-to-apply.json +93 -0
- package/src/frames/official/impact-report.json +90 -0
- package/src/frames/official/independence-argentina.json +105 -0
- package/src/frames/official/independence-bangladesh.json +64 -0
- package/src/frames/official/independence-colombia.json +108 -0
- package/src/frames/official/independence-ghana.json +105 -0
- package/src/frames/official/independence-indonesia.json +92 -0
- package/src/frames/official/independence-nigeria.json +100 -0
- package/src/frames/official/independence-pakistan.json +95 -0
- package/src/frames/official/independence-peru.json +100 -0
- package/src/frames/official/independence-poland.json +92 -0
- package/src/frames/official/independence-ukraine.json +92 -0
- package/src/frames/official/intake-forms.json +114 -0
- package/src/frames/official/inti-raymi-sun.json +183 -0
- package/src/frames/official/jamhuri-day.json +116 -0
- package/src/frames/official/janmashtami-feather.json +77 -0
- package/src/frames/official/janmashtami-flute.json +81 -0
- package/src/frames/official/join-a-league.json +94 -0
- package/src/frames/official/join-the-cleanup.json +110 -0
- package/src/frames/official/join-the-waitlist.json +102 -0
- package/src/frames/official/join-the-webinar.json +108 -0
- package/src/frames/official/juice-bar.json +70 -0
- package/src/frames/official/juneteenth-seal.json +187 -0
- package/src/frames/official/juneteenth-star.json +81 -0
- package/src/frames/official/kids-haircuts.json +75 -0
- package/src/frames/official/kids-menu.json +107 -0
- package/src/frames/official/kindness-day.json +109 -0
- package/src/frames/official/kings-day-crown.json +88 -0
- package/src/frames/official/kwanzaa-bands.json +100 -0
- package/src/frames/official/kwanzaa-harvest.json +77 -0
- package/src/frames/official/kwanzaa-kinara.json +81 -0
- package/src/frames/official/lantern-festival-riddles.json +77 -0
- package/src/frames/official/lantern-festival-tangyuan.json +122 -0
- package/src/frames/official/large-print.json +80 -0
- package/src/frames/official/lash-bar.json +86 -0
- package/src/frames/official/last-chance.json +94 -0
- package/src/frames/official/late-night-menu.json +77 -0
- package/src/frames/official/learn-the-signs.json +107 -0
- package/src/frames/official/library-card.json +90 -0
- package/src/frames/official/library-catalog.json +120 -0
- package/src/frames/official/library-ebooks.json +107 -0
- package/src/frames/official/library-hours.json +107 -0
- package/src/frames/official/live-scores.json +101 -0
- package/src/frames/official/lohri-bonfire.json +81 -0
- package/src/frames/official/lohri-dhol.json +114 -0
- package/src/frames/official/lost-and-found.json +85 -0
- package/src/frames/official/lost-pet-tag.json +84 -0
- package/src/frames/official/loy-krathong-float.json +88 -0
- package/src/frames/official/loy-krathong-moon.json +96 -0
- package/src/frames/official/loy-krathong-program.json +128 -0
- package/src/frames/official/make-a-claim.json +74 -0
- package/src/frames/official/makeup-artist.json +94 -0
- package/src/frames/official/mardi-gras-seal.json +183 -0
- package/src/frames/official/marina-welcome.json +172 -0
- package/src/frames/official/maslenitsa-pancakes.json +81 -0
- package/src/frames/official/maslenitsa-sun.json +183 -0
- package/src/frames/official/math-practice.json +136 -0
- package/src/frames/official/meal-plan.json +121 -0
- package/src/frames/official/meet-the-maker.json +91 -0
- package/src/frames/official/meet-the-team.json +82 -0
- package/src/frames/official/membership-card.json +108 -0
- package/src/frames/official/mid-autumn-gift.json +105 -0
- package/src/frames/official/mid-autumn-lantern-walk.json +96 -0
- package/src/frames/official/mid-autumn-mooncake.json +81 -0
- package/src/frames/official/mid-autumn-rabbit.json +77 -0
- package/src/frames/official/mid-autumn-seal.json +178 -0
- package/src/frames/official/monsoon-boots.json +88 -0
- package/src/frames/official/monsoon-chai.json +82 -0
- package/src/frames/official/monsoon-cloud.json +114 -0
- package/src/frames/official/monsoon-paper-boat.json +71 -0
- package/src/frames/official/monsoon-umbrella.json +81 -0
- package/src/frames/official/mortgage-calculator.json +94 -0
- package/src/frames/official/moving-checklist.json +108 -0
- package/src/frames/official/muertos-marigold.json +87 -0
- package/src/frames/official/muertos-ofrenda.json +129 -0
- package/src/frames/official/muertos-pan.json +78 -0
- package/src/frames/official/muertos-papel-picado.json +120 -0
- package/src/frames/official/muertos-seal.json +185 -0
- package/src/frames/official/museum-artist-note.json +124 -0
- package/src/frames/official/museum-exhibit-label.json +106 -0
- package/src/frames/official/museum-gallery-map.json +99 -0
- package/src/frames/official/museum-ticket.json +86 -0
- package/src/frames/official/music-lessons.json +64 -0
- package/src/frames/official/nail-studio.json +70 -0
- package/src/frames/official/national-day-belgium.json +100 -0
- package/src/frames/official/national-day-singapore.json +120 -0
- package/src/frames/official/navratri-dandiya.json +88 -0
- package/src/frames/official/navratri-garba-pass.json +90 -0
- package/src/frames/official/navratri-lamp.json +72 -0
- package/src/frames/official/neighborhood-guide.json +98 -0
- package/src/frames/official/nowruz-goldfish.json +71 -0
- package/src/frames/official/nowruz-party.json +90 -0
- package/src/frames/official/nowruz-sabzeh.json +81 -0
- package/src/frames/official/nowruz-seal.json +187 -0
- package/src/frames/official/nutrition-facts.json +98 -0
- package/src/frames/official/obon-lantern.json +81 -0
- package/src/frames/official/obon-sign.json +109 -0
- package/src/frames/official/ocean-day-waves.json +114 -0
- package/src/frames/official/onam-boat-race.json +83 -0
- package/src/frames/official/onam-kasavu.json +122 -0
- package/src/frames/official/onam-pookalam.json +175 -0
- package/src/frames/official/onam-sadya.json +114 -0
- package/src/frames/official/online-class.json +82 -0
- package/src/frames/official/open-an-account.json +88 -0
- package/src/frames/official/open-house-sign-in.json +104 -0
- package/src/frames/official/orthodox-christmas-candle.json +71 -0
- package/src/frames/official/orthodox-christmas-star.json +76 -0
- package/src/frames/official/orthodox-easter-arch.json +77 -0
- package/src/frames/official/orthodox-easter-pysanka.json +87 -0
- package/src/frames/official/orthodox-easter-seal.json +185 -0
- package/src/frames/official/pancake-day.json +114 -0
- package/src/frames/official/parcel-room.json +98 -0
- package/src/frames/official/parent-meeting.json +108 -0
- package/src/frames/official/park-bench-walks.json +121 -0
- package/src/frames/official/park-dog-rules.json +88 -0
- package/src/frames/official/park-map.json +92 -0
- package/src/frames/official/park-playground.json +64 -0
- package/src/frames/official/park-report.json +118 -0
- package/src/frames/official/parking-find-car.json +89 -0
- package/src/frames/official/parking-permit.json +74 -0
- package/src/frames/official/pay-at-the-pump.json +108 -0
- package/src/frames/official/pay-for-parking.json +89 -0
- package/src/frames/official/pay-it-forward.json +102 -0
- package/src/frames/official/pay-your-rent.json +105 -0
- package/src/frames/official/peace-day-dove.json +66 -0
- package/src/frames/official/permission-form.json +120 -0
- package/src/frames/official/personal-trainer.json +76 -0
- package/src/frames/official/physio-exercises.json +86 -0
- package/src/frames/official/pick-your-own.json +158 -0
- package/src/frames/official/pink-ribbon-seal.json +180 -0
- package/src/frames/official/pink-ribbon.json +82 -0
- package/src/frames/official/plant-a-tree.json +88 -0
- package/src/frames/official/plant-based-menu.json +103 -0
- package/src/frames/official/plant-care.json +84 -0
- package/src/frames/official/podcast.json +107 -0
- package/src/frames/official/pohela-boishakh-mela.json +116 -0
- package/src/frames/official/pohela-boishakh.json +120 -0
- package/src/frames/official/polling-place.json +109 -0
- package/src/frames/official/pongal-offers.json +120 -0
- package/src/frames/official/pongal-pot.json +81 -0
- package/src/frames/official/pongal-sun.json +183 -0
- package/src/frames/official/pool-timetable.json +113 -0
- package/src/frames/official/portfolio-card.json +110 -0
- package/src/frames/official/posadas-candle.json +71 -0
- package/src/frames/official/posadas-pinata.json +114 -0
- package/src/frames/official/pre-order-bread.json +110 -0
- package/src/frames/official/press-kit.json +136 -0
- package/src/frames/official/price-list.json +111 -0
- package/src/frames/official/pride-flag.json +124 -0
- package/src/frames/official/pride-heart.json +83 -0
- package/src/frames/official/pride-rainbow.json +81 -0
- package/src/frames/official/privacy-notice.json +115 -0
- package/src/frames/official/property-floor-plan.json +1 -1
- package/src/frames/official/property-for-sale.json +1 -1
- package/src/frames/official/property-house-light.json +1 -1
- package/src/frames/official/property-house.json +1 -1
- package/src/frames/official/property-key.json +1 -1
- package/src/frames/official/property-open-house.json +1 -1
- package/src/frames/official/property-rent.json +1 -1
- package/src/frames/official/property-virtual-tour.json +1 -1
- package/src/frames/official/purim-mask.json +109 -0
- package/src/frames/official/purim-pastry.json +71 -0
- package/src/frames/official/puthandu-sun.json +101 -0
- package/src/frames/official/questions-cloud.json +65 -0
- package/src/frames/official/race-entry.json +90 -0
- package/src/frames/official/race-photos.json +93 -0
- package/src/frames/official/rakhi-envelope.json +75 -0
- package/src/frames/official/rakhi-gift-tag.json +59 -0
- package/src/frames/official/rakhi-thread.json +114 -0
- package/src/frames/official/ramadan-dates.json +81 -0
- package/src/frames/official/ramadan-suhoor.json +94 -0
- package/src/frames/official/rate-your-ride.json +103 -0
- package/src/frames/official/read-a-sample.json +108 -0
- package/src/frames/official/read-the-ebook.json +116 -0
- package/src/frames/official/read-the-faq.json +88 -0
- package/src/frames/official/read-the-reviews.json +110 -0
- package/src/frames/official/read-the-story.json +90 -0
- package/src/frames/official/read-the-transcript.json +142 -0
- package/src/frames/official/reading-challenge.json +97 -0
- package/src/frames/official/rebook-visit.json +86 -0
- package/src/frames/official/recipe-card.json +120 -0
- package/src/frames/official/red-ribbon.json +66 -0
- package/src/frames/official/refill-reminder.json +104 -0
- package/src/frames/official/register-interest.json +82 -0
- package/src/frames/official/register-to-vote.json +80 -0
- package/src/frames/official/renovation-quote.json +80 -0
- package/src/frames/official/rent-a-bike.json +95 -0
- package/src/frames/official/rent-this-item.json +95 -0
- package/src/frames/official/rental-car-guide.json +115 -0
- package/src/frames/official/report-a-problem.json +114 -0
- package/src/frames/official/report-a-repair.json +79 -0
- package/src/frames/official/report-a-street-issue.json +113 -0
- package/src/frames/official/republic-day-india-bands.json +120 -0
- package/src/frames/official/republic-day-india.json +182 -0
- package/src/frames/official/request-maintenance.json +74 -0
- package/src/frames/official/resident-portal.json +98 -0
- package/src/frames/official/restaurant-gift-card.json +94 -0
- package/src/frames/official/restock-alert.json +98 -0
- package/src/frames/official/restroom-feedback.json +86 -0
- package/src/frames/official/return-your-cup.json +130 -0
- package/src/frames/official/return-your-rental.json +113 -0
- package/src/frames/official/reyes-crown.json +78 -0
- package/src/frames/official/reyes-rosca.json +89 -0
- package/src/frames/official/ring-size.json +107 -0
- package/src/frames/official/roadside-help.json +92 -0
- package/src/frames/official/rosh-hashanah-apple.json +81 -0
- package/src/frames/official/rosh-hashanah-honey.json +71 -0
- package/src/frames/official/rosh-hashanah-shofar.json +128 -0
- package/src/frames/official/run-club.json +79 -0
- package/src/frames/official/safety-information.json +92 -0
- package/src/frames/official/salon-prices.json +92 -0
- package/src/frames/official/sankranti-kite.json +114 -0
- package/src/frames/official/sankranti-sky.json +98 -0
- package/src/frames/official/sankranti-sticker.json +90 -0
- package/src/frames/official/save-for-later.json +79 -0
- package/src/frames/official/scan-for-the-answer.json +86 -0
- package/src/frames/official/scan-for-the-checklist.json +108 -0
- package/src/frames/official/scan-for-the-latest.json +74 -0
- package/src/frames/official/scan-for-translations.json +108 -0
- package/src/frames/official/scan-here-arrow.json +76 -0
- package/src/frames/official/scan-here-post.json +89 -0
- package/src/frames/official/scan-me-banner.json +147 -0
- package/src/frames/official/scan-me-cloud.json +73 -0
- package/src/frames/official/scan-me-folded.json +74 -0
- package/src/frames/official/scan-me-stack.json +93 -0
- package/src/frames/official/scan-to-unlock.json +107 -0
- package/src/frames/official/scent-finder.json +94 -0
- package/src/frames/official/scholarships.json +108 -0
- package/src/frames/official/school-backpack.json +81 -0
- package/src/frames/official/school-bus-routes.json +83 -0
- package/src/frames/official/school-lunch-menu.json +81 -0
- package/src/frames/official/school-supply-list.json +80 -0
- package/src/frames/official/school-uniform.json +109 -0
- package/src/frames/official/school-welcome-apple.json +71 -0
- package/src/frames/official/science-fair.json +89 -0
- package/src/frames/official/season-schedule.json +66 -0
- package/src/frames/official/see-more-stack.json +91 -0
- package/src/frames/official/see-our-pitch.json +85 -0
- package/src/frames/official/see-the-full-list.json +107 -0
- package/src/frames/official/see-the-map.json +79 -0
- package/src/frames/official/send-flowers.json +93 -0
- package/src/frames/official/seollal-knot.json +122 -0
- package/src/frames/official/service-times.json +115 -0
- package/src/frames/official/shade-finder.json +113 -0
- package/src/frames/official/sham-el-nessim.json +81 -0
- package/src/frames/official/shoe-size-check.json +95 -0
- package/src/frames/official/shogatsu-kadomatsu.json +81 -0
- package/src/frames/official/sign-rider.json +1 -1
- package/src/frames/official/sign-the-agreement.json +120 -0
- package/src/frames/official/sign-the-petition.json +120 -0
- package/src/frames/official/site-hoarding.json +158 -0
- package/src/frames/official/site-induction.json +120 -0
- package/src/frames/official/size-guide.json +80 -0
- package/src/frames/official/skate-park-rules.json +109 -0
- package/src/frames/official/skincare-routine.json +85 -0
- package/src/frames/official/sofa-fabric.json +84 -0
- package/src/frames/official/songkran-bands.json +123 -0
- package/src/frames/official/songkran-bowl.json +81 -0
- package/src/frames/official/songkran-drop.json +90 -0
- package/src/frames/official/songkran-waves.json +96 -0
- package/src/frames/official/spa-gift.json +90 -0
- package/src/frames/official/spa-menu.json +124 -0
- package/src/frames/official/split-the-bill.json +77 -0
- package/src/frames/official/sponsor-a-pet.json +102 -0
- package/src/frames/official/sponsor-my-run.json +136 -0
- package/src/frames/official/sports-camp.json +142 -0
- package/src/frames/official/spring-cleaning.json +107 -0
- package/src/frames/official/spring-showers.json +71 -0
- package/src/frames/official/spring-watering-can.json +114 -0
- package/src/frames/official/staff-handbook.json +121 -0
- package/src/frames/official/staff-rota.json +112 -0
- package/src/frames/official/start-a-return.json +92 -0
- package/src/frames/official/start-charging.json +104 -0
- package/src/frames/official/start-here-arrow.json +79 -0
- package/src/frames/official/start-saving.json +74 -0
- package/src/frames/official/storage-units.json +79 -0
- package/src/frames/official/student-portal.json +80 -0
- package/src/frames/official/style-gallery.json +111 -0
- package/src/frames/official/summer-camp.json +90 -0
- package/src/frames/official/summer-pool.json +95 -0
- package/src/frames/official/summer-reading.json +81 -0
- package/src/frames/official/summer-sunglasses.json +114 -0
- package/src/frames/official/summer-watermelon.json +89 -0
- package/src/frames/official/sushi-menu.json +115 -0
- package/src/frames/official/swim-lessons.json +70 -0
- package/src/frames/official/tabaski.json +114 -0
- package/src/frames/official/table-tennis.json +116 -0
- package/src/frames/official/take-a-closer-look.json +94 -0
- package/src/frames/official/takeout-order.json +98 -0
- package/src/frames/official/talk-to-someone.json +115 -0
- package/src/frames/official/talk-to-the-agent.json +115 -0
- package/src/frames/official/tanabata-stars.json +170 -0
- package/src/frames/official/tanabata-wishes.json +114 -0
- package/src/frames/official/tea-menu.json +70 -0
- package/src/frames/official/tea-time.json +124 -0
- package/src/frames/official/teachers-day-apple.json +81 -0
- package/src/frames/official/teachers-day-note.json +109 -0
- package/src/frames/official/team-jersey.json +77 -0
- package/src/frames/official/team-kit.json +85 -0
- package/src/frames/official/tee-time.json +85 -0
- package/src/frames/official/tennis-court.json +94 -0
- package/src/frames/official/test-drive.json +88 -0
- package/src/frames/official/test-results.json +85 -0
- package/src/frames/official/tet-apricot.json +114 -0
- package/src/frames/official/tet-banh-chung.json +81 -0
- package/src/frames/official/tire-change.json +74 -0
- package/src/frames/official/town-hall.json +158 -0
- package/src/frames/official/toy-finder.json +81 -0
- package/src/frames/official/trace-your-coffee.json +87 -0
- package/src/frames/official/trade-it-in.json +97 -0
- package/src/frames/official/transit-bike-share.json +94 -0
- package/src/frames/official/transit-bus-arrivals.json +113 -0
- package/src/frames/official/transit-fare.json +97 -0
- package/src/frames/official/transit-ferry.json +88 -0
- package/src/frames/official/transit-next-trains.json +119 -0
- package/src/frames/official/transit-report.json +99 -0
- package/src/frames/official/transit-train-timetable.json +98 -0
- package/src/frames/official/try-the-demo.json +106 -0
- package/src/frames/official/ugadi-leaves.json +66 -0
- package/src/frames/official/unlock-this-car.json +82 -0
- package/src/frames/official/upload-receipts.json +108 -0
- package/src/frames/official/vaisakhi-bands.json +120 -0
- package/src/frames/official/vaisakhi-dhol.json +81 -0
- package/src/frames/official/vaisakhi-wheat.json +73 -0
- package/src/frames/official/validate-parking.json +91 -0
- package/src/frames/official/vehicle-history.json +106 -0
- package/src/frames/official/vesak-candle.json +122 -0
- package/src/frames/official/vesak-lantern.json +114 -0
- package/src/frames/official/vesak-lotus.json +71 -0
- package/src/frames/official/vesak-seal.json +179 -0
- package/src/frames/official/virtual-try-on.json +93 -0
- package/src/frames/official/visiting-hours.json +90 -0
- package/src/frames/official/visitor-info.json +78 -0
- package/src/frames/official/visitor-map.json +92 -0
- package/src/frames/official/visitor-sign-in.json +98 -0
- package/src/frames/official/visitor-town-map.json +108 -0
- package/src/frames/official/visitor-wildlife.json +70 -0
- package/src/frames/official/volunteer.json +74 -0
- package/src/frames/official/vote-for-us.json +103 -0
- package/src/frames/official/walk-in-queue.json +102 -0
- package/src/frames/official/wash-club.json +81 -0
- package/src/frames/official/watch-repair.json +115 -0
- package/src/frames/official/watch-the-experiment.json +93 -0
- package/src/frames/official/water-day-drop.json +81 -0
- package/src/frames/official/water-refill.json +95 -0
- package/src/frames/official/weekly-deals.json +107 -0
- package/src/frames/official/wellness-retreat.json +85 -0
- package/src/frames/official/whats-inside.json +91 -0
- package/src/frames/official/wholesale.json +85 -0
- package/src/frames/official/wifi-cafe-cup.json +81 -0
- package/src/frames/official/wifi-cowork.json +63 -0
- package/src/frames/official/wifi-hostel-board.json +80 -0
- package/src/frames/official/wifi-library.json +96 -0
- package/src/frames/official/wifi-reception.json +118 -0
- package/src/frames/official/wifi-rental.json +91 -0
- package/src/frames/official/wifi-venue.json +80 -0
- package/src/frames/official/wifi-waiting-room.json +89 -0
- package/src/frames/official/window-quote.json +121 -0
- package/src/frames/official/wine-pairings.json +142 -0
- package/src/frames/official/wine-staff-pick.json +100 -0
- package/src/frames/official/winery-tasting.json +94 -0
- package/src/frames/official/winter-lift-pass.json +90 -0
- package/src/frames/official/winter-sale.json +120 -0
- package/src/frames/official/winter-skating.json +71 -0
- package/src/frames/official/winter-snowman.json +81 -0
- package/src/frames/official/womens-day-mimosa.json +81 -0
- package/src/frames/official/womens-day-seal.json +179 -0
- package/src/frames/official/yalda-poem.json +122 -0
- package/src/frames/official/yalda-pomegranate.json +81 -0
- package/src/frames/official/yalda-watermelon.json +72 -0
- package/src/frames/official/yard-sign-coming-soon.json +115 -0
- package/src/frames/official/yard-sign-for-sale.json +150 -0
- package/src/frames/official/yard-sign-sold.json +162 -0
- package/src/frames/official/yard-sign-viewing.json +121 -0
- package/src/frames/official/yoga-day-lotus.json +81 -0
- package/src/frames/official/your-prescription.json +107 -0
- package/src/frames/official/youth-club.json +104 -0
- package/src/frames/official/zoo-animal-facts.json +109 -0
- package/src/frames/official-types.ts +6 -1
- package/src/frames/official.ts +4 -4
- package/src/index.tsx +6 -361
- package/src/jsx/index.ts +3 -0
- package/src/jsx/jsx-dev-runtime.ts +14 -0
- package/src/jsx/jsx-runtime.ts +34 -0
- package/src/jsx/runtime.ts +209 -0
- package/src/logo.tsx +5 -3
- package/src/node.ts +3 -3
- package/src/plain.tsx +194 -0
- package/src/preact.ts +80 -0
- package/src/qr-code-canvas.tsx +1 -1
- package/src/qr-code-props.ts +115 -0
- package/src/qr-code-svg.tsx +17 -0
- package/src/qr-code.tsx +34 -114
- package/src/react-elements.ts +13 -0
- package/src/render/attributes.ts +404 -0
- package/src/render/dom.ts +90 -0
- package/src/render/hyperscript.ts +66 -0
- package/src/render/string.ts +70 -0
- package/src/scan-score.ts +15 -8
- package/src/solid.ts +75 -0
- package/src/svg.ts +27 -0
- package/src/template/arrow.tsx +1 -0
- package/src/template/default.tsx +1 -0
- package/src/template/dot-ring-layout.ts +230 -0
- package/src/template/dot-ring.tsx +165 -0
- package/src/template/halloween.tsx +1 -0
- package/src/template/index.ts +1 -0
- package/src/template/square-border.tsx +1 -0
- package/src/template/standard-box.tsx +1 -0
- package/src/template/striked-box.tsx +1 -0
- package/src/template-placement.ts +149 -0
- package/src/templates.tsx +16 -1
- package/src/utils/print-shared.ts +1 -1
- package/src/utils.tsx +24 -23
- package/src/vanilla-api.ts +146 -0
- package/src/vanilla-browser.ts +11 -0
- package/src/vanilla.ts +10 -0
- package/src/vue.ts +220 -0
- package/types/frame-spec.ts +214 -10
- package/types/index.ts +4 -2
- package/types/public.ts +4 -0
- package/types/qr.ts +20 -6
- package/types/react.ts +8 -0
- package/types/template.ts +10 -3
- package/dist/src/frame-styles.d.ts +0 -50
- package/dist/src/frame-styles.d.ts.map +0 -1
- package/src/frame-styles.ts +0 -1095
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { isFragment, isQRNode } from "../jsx/runtime";
|
|
2
|
+
import { toAttribute } from "./attributes";
|
|
3
|
+
|
|
4
|
+
/** A framework's element factory, called with DOM attribute names. */
|
|
5
|
+
export type CreateElement<T> = (
|
|
6
|
+
type: string,
|
|
7
|
+
attributes: Record<string, string>,
|
|
8
|
+
children: (T | string)[],
|
|
9
|
+
key: string | null
|
|
10
|
+
) => T;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* A tree as another framework's elements (Vue's `h`, Preact's `h`…):
|
|
14
|
+
* fragments flattened, components called, attributes named and valued as
|
|
15
|
+
* `renderToString` writes them (`fill-rule`, `class`, CSS text), so every
|
|
16
|
+
* framework draws the same SVG.
|
|
17
|
+
*/
|
|
18
|
+
export function toHyperscript<T>(
|
|
19
|
+
node: unknown,
|
|
20
|
+
create: CreateElement<T>
|
|
21
|
+
): (T | string)[] {
|
|
22
|
+
const out: (T | string)[] = [];
|
|
23
|
+
const visit = (child: unknown) => {
|
|
24
|
+
if (child === null || child === undefined || typeof child === "boolean") {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
if (
|
|
28
|
+
typeof child === "string" ||
|
|
29
|
+
typeof child === "number" ||
|
|
30
|
+
typeof child === "bigint"
|
|
31
|
+
) {
|
|
32
|
+
out.push(`${child}`);
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
if (Array.isArray(child)) {
|
|
36
|
+
for (const item of child) {
|
|
37
|
+
visit(item);
|
|
38
|
+
}
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
if (!isQRNode(child)) {
|
|
42
|
+
throw new TypeError("qrdx: can't render this value");
|
|
43
|
+
}
|
|
44
|
+
const { type, props, key } = child;
|
|
45
|
+
if (isFragment(type)) {
|
|
46
|
+
visit(props.children);
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
if (typeof type === "function") {
|
|
50
|
+
visit(type(props));
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const attributes: Record<string, string> = {};
|
|
54
|
+
for (const prop of Object.keys(props)) {
|
|
55
|
+
const attribute = toAttribute(prop, props[prop]);
|
|
56
|
+
if (attribute) {
|
|
57
|
+
attributes[attribute.name] = attribute.value;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
out.push(
|
|
61
|
+
create(type, attributes, toHyperscript(props.children, create), key)
|
|
62
|
+
);
|
|
63
|
+
};
|
|
64
|
+
visit(node);
|
|
65
|
+
return out;
|
|
66
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isFragment,
|
|
3
|
+
isQRNode,
|
|
4
|
+
type QRChild,
|
|
5
|
+
type QRNode,
|
|
6
|
+
} from "../jsx/runtime";
|
|
7
|
+
import {
|
|
8
|
+
escapeText,
|
|
9
|
+
toAttribute,
|
|
10
|
+
VALID_TAG,
|
|
11
|
+
VOID_ELEMENTS,
|
|
12
|
+
} from "./attributes";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Markup of a tree: byte for byte what React's `renderToStaticMarkup` writes
|
|
16
|
+
* for the same elements (see attributes.ts), with no React. React elements
|
|
17
|
+
* in the tree (a custom template written for React) are drawn the same way.
|
|
18
|
+
*/
|
|
19
|
+
export function renderToString(node: QRChild): string {
|
|
20
|
+
if (node === null || node === undefined || typeof node === "boolean") {
|
|
21
|
+
return "";
|
|
22
|
+
}
|
|
23
|
+
if (typeof node === "string") {
|
|
24
|
+
return escapeText(node);
|
|
25
|
+
}
|
|
26
|
+
if (typeof node === "number" || typeof node === "bigint") {
|
|
27
|
+
return `${node}`;
|
|
28
|
+
}
|
|
29
|
+
if (Array.isArray(node)) {
|
|
30
|
+
let out = "";
|
|
31
|
+
for (const child of node) {
|
|
32
|
+
out += renderToString(child);
|
|
33
|
+
}
|
|
34
|
+
return out;
|
|
35
|
+
}
|
|
36
|
+
if (!isQRNode(node)) {
|
|
37
|
+
throw new TypeError("qrdx: can't render this value as SVG markup");
|
|
38
|
+
}
|
|
39
|
+
return renderElement(node);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function renderElement(node: QRNode): string {
|
|
43
|
+
const { type, props } = node;
|
|
44
|
+
if (isFragment(type)) {
|
|
45
|
+
return renderToString(props.children);
|
|
46
|
+
}
|
|
47
|
+
if (typeof type === "function") {
|
|
48
|
+
return renderToString(type(props));
|
|
49
|
+
}
|
|
50
|
+
if (!VALID_TAG.test(type)) {
|
|
51
|
+
throw new TypeError(`qrdx: invalid element name: ${type}`);
|
|
52
|
+
}
|
|
53
|
+
let out = `<${type}`;
|
|
54
|
+
for (const prop of Object.keys(props)) {
|
|
55
|
+
const attribute = toAttribute(prop, props[prop]);
|
|
56
|
+
if (attribute) {
|
|
57
|
+
out += ` ${attribute.name}="${escapeText(attribute.value)}"`;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
if (VOID_ELEMENTS.has(type)) {
|
|
61
|
+
return `${out}/>`;
|
|
62
|
+
}
|
|
63
|
+
const html = (props.dangerouslySetInnerHTML as { __html?: unknown } | null)
|
|
64
|
+
?.__html;
|
|
65
|
+
const inner =
|
|
66
|
+
html === null || html === undefined
|
|
67
|
+
? renderToString(props.children)
|
|
68
|
+
: `${html}`;
|
|
69
|
+
return `${out}>${inner}</${type}>`;
|
|
70
|
+
}
|
package/src/scan-score.ts
CHANGED
|
@@ -14,11 +14,12 @@ import {
|
|
|
14
14
|
} from "./constants";
|
|
15
15
|
import { handleImageLoad } from "./detection";
|
|
16
16
|
import { withQRSize } from "./download";
|
|
17
|
+
import { getQRAsSVGDataUri } from "./export";
|
|
17
18
|
import { getFrameDimensions, getFrameGapRatio, isFrameActive } from "./frame";
|
|
18
|
-
import { getQRAsSVGDataUri } from "./index";
|
|
19
19
|
import { getLogoBlockDamage } from "./logo-budget";
|
|
20
20
|
import { circleQuietZone, getLayoutMargin, isShapedCode } from "./qr-shape";
|
|
21
21
|
import { getStylePairRisk } from "./scan-risk";
|
|
22
|
+
import { getTemplateCodeShare } from "./template-placement";
|
|
22
23
|
import { getImageSettings, getLuminance, resolveErrorLevel } from "./utils";
|
|
23
24
|
import { parseColor, type RGBAColor } from "./utils/parse-color";
|
|
24
25
|
|
|
@@ -1011,9 +1012,12 @@ export async function getScanScore(
|
|
|
1011
1012
|
const { signal } = options;
|
|
1012
1013
|
const sizes = testSizes(options);
|
|
1013
1014
|
|
|
1015
|
+
// A template draws the code smaller than its artwork: render the artwork
|
|
1016
|
+
// large enough for the code itself to be SOURCE_SIZE wide
|
|
1017
|
+
const artworkSize = SOURCE_SIZE / getTemplateCodeShare(props);
|
|
1014
1018
|
const sourceProps = await inlineImagePaints(
|
|
1015
1019
|
await inlineLogo(
|
|
1016
|
-
withQRSize({ ...props, size: props.size ?? DEFAULT_SIZE },
|
|
1020
|
+
withQRSize({ ...props, size: props.size ?? DEFAULT_SIZE }, artworkSize)
|
|
1017
1021
|
)
|
|
1018
1022
|
);
|
|
1019
1023
|
throwIfAborted(signal);
|
|
@@ -1033,7 +1037,7 @@ export async function getScanScore(
|
|
|
1033
1037
|
const img = await loadImage(svgUri);
|
|
1034
1038
|
throwIfAborted(signal);
|
|
1035
1039
|
|
|
1036
|
-
const artwork = getFrameDimensions(
|
|
1040
|
+
const artwork = getFrameDimensions(artworkSize, props.frame);
|
|
1037
1041
|
const drawArtwork = (codeWidth: number) => {
|
|
1038
1042
|
const scale = codeWidth / SOURCE_SIZE;
|
|
1039
1043
|
const width = artwork.width * scale;
|
|
@@ -1062,9 +1066,10 @@ export const PIXEL_SCORE_MIN_CODE_WIDTH = SOURCE_SIZE;
|
|
|
1062
1066
|
* `getScanScore` for servers and other places without a DOM: the same
|
|
1063
1067
|
* checks, weights and camera model, decoding `pixels` instead of drawing the
|
|
1064
1068
|
* SVG on a canvas. `pixels` is the whole artwork as `props` renders it (the
|
|
1065
|
-
* code plus its frame, if any), at any size with the code
|
|
1066
|
-
* `PIXEL_SCORE_MIN_CODE_WIDTH` px wide (rasterized with resvg, sharp
|
|
1067
|
-
* canvas
|
|
1069
|
+
* code plus its frame or template, if any), at any size with the code itself
|
|
1070
|
+
* at least `PIXEL_SCORE_MIN_CODE_WIDTH` px wide (rasterized with resvg, sharp
|
|
1071
|
+
* or a canvas; a template draws the code smaller than its artwork).
|
|
1072
|
+
* Transparent pixels count as white, like paper. Logos must already
|
|
1068
1073
|
* be painted into the pixels; an opaque placeholder of the same size scores
|
|
1069
1074
|
* the same.
|
|
1070
1075
|
*/
|
|
@@ -1080,8 +1085,10 @@ export async function getScanScoreFromPixels(
|
|
|
1080
1085
|
const sizes = testSizes(options);
|
|
1081
1086
|
const size = props.size ?? DEFAULT_SIZE;
|
|
1082
1087
|
const artwork = getFrameDimensions(size, props.frame);
|
|
1083
|
-
// Code width in the source pixels
|
|
1084
|
-
|
|
1088
|
+
// Code width in the source pixels (a template draws it smaller than its
|
|
1089
|
+
// artwork)
|
|
1090
|
+
const sourceCodeWidth =
|
|
1091
|
+
(width * size * getTemplateCodeShare(props)) / artwork.width;
|
|
1085
1092
|
const source = { data: onWhite(pixels), width, height };
|
|
1086
1093
|
|
|
1087
1094
|
const drawArtwork = (codeWidth: number) => {
|
package/src/solid.ts
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
// qrdx/solid: the code as Solid components, written without JSX, so the
|
|
2
|
+
// package needs no Solid compiler. On the client a component returns the
|
|
3
|
+
// `<svg>` element itself, built with `renderToDOM` (createElementNS, no HTML
|
|
4
|
+
// parsing), from a memo: Solid inserts it, swaps in a new one when a prop
|
|
5
|
+
// changes the markup, and removes it on unmount. On a server it returns
|
|
6
|
+
// `toSVGString`'s markup with a hydration key on the root element, and
|
|
7
|
+
// hydration adopts that element instead of drawing it again, the way Solid's
|
|
8
|
+
// own <Dynamic> claims server elements.
|
|
9
|
+
|
|
10
|
+
import { createMemo, type JSX, untrack } from "solid-js";
|
|
11
|
+
// A namespace import: solid-js 1.8's server build has no getNextElement, and
|
|
12
|
+
// a named import of it would fail to link there (only the browser calls it)
|
|
13
|
+
import * as web from "solid-js/web";
|
|
14
|
+
import {
|
|
15
|
+
createQRCodeTree,
|
|
16
|
+
type QRCodeProps,
|
|
17
|
+
type QRSVGOptions,
|
|
18
|
+
renderToDOM,
|
|
19
|
+
renderToString,
|
|
20
|
+
resolveQRCodeProps,
|
|
21
|
+
} from "./core";
|
|
22
|
+
|
|
23
|
+
export type { QRCodeProps, QRSVGOptions } from "./core";
|
|
24
|
+
|
|
25
|
+
const ROOT_TAG = /^<[^\s/>]+/;
|
|
26
|
+
|
|
27
|
+
function draw(options: () => QRSVGOptions): JSX.Element {
|
|
28
|
+
if (web.isServer) {
|
|
29
|
+
const markup = renderToString(createQRCodeTree(options()));
|
|
30
|
+
// ssr() output is written as is; the key lets hydration find the element
|
|
31
|
+
const key = web.ssrHydrationKey();
|
|
32
|
+
return web.ssr(
|
|
33
|
+
key ? markup.replace(ROOT_TAG, (tag) => tag + key) : markup
|
|
34
|
+
) as unknown as JSX.Element;
|
|
35
|
+
}
|
|
36
|
+
const tree = createMemo(() => createQRCodeTree(options()));
|
|
37
|
+
// Strings compare by value, so a change that draws the same markup stops here
|
|
38
|
+
const markup = createMemo(() => renderToString(tree()));
|
|
39
|
+
const fresh = () => {
|
|
40
|
+
const element = renderToDOM(untrack(tree), document).firstChild as Element;
|
|
41
|
+
// Out of its fragment: while hydrating, Solid takes a node that has a
|
|
42
|
+
// parent for one that's already on the page and wouldn't insert it
|
|
43
|
+
element.remove();
|
|
44
|
+
return element;
|
|
45
|
+
};
|
|
46
|
+
const svg = createMemo(() => {
|
|
47
|
+
markup();
|
|
48
|
+
// While hydrating, the server's element (found by its key); otherwise new
|
|
49
|
+
return web.getNextElement(fresh);
|
|
50
|
+
});
|
|
51
|
+
return svg as unknown as JSX.Element;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* The code as an `<svg>`, with every styling option `QRCodeSVG` takes in
|
|
56
|
+
* React. Attributes such as `class`, `style` or `aria-label` go on the
|
|
57
|
+
* `<svg>` (on the frame's outer `<svg>` with a frame).
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* <QRCodeSVG value="https://qrdx.dev" size={256} bodyPattern="rounded" />
|
|
61
|
+
*/
|
|
62
|
+
export function QRCodeSVG(props: QRSVGOptions): JSX.Element {
|
|
63
|
+
return draw(() => ({ ...props }));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* `QRCodeSVG` with React's `QRCode` logo API: `logo`, `logoOptions`,
|
|
68
|
+
* `hideLogo` and `scale`.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* <QRCode value="https://qrdx.dev" logo="/logo.png" level="H" />
|
|
72
|
+
*/
|
|
73
|
+
export function QRCode(props: QRCodeProps): JSX.Element {
|
|
74
|
+
return draw(() => resolveQRCodeProps({ ...props }));
|
|
75
|
+
}
|
package/src/svg.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// The code as SVG markup or a DOM element, drawn without a framework.
|
|
2
|
+
import type { QRSVGOptions } from "../types";
|
|
3
|
+
import { renderToDOM } from "./render/dom";
|
|
4
|
+
import { renderToString } from "./render/string";
|
|
5
|
+
import { createQRCodeTree } from "./utils";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The code's SVG markup: byte for byte what `<QRCodeSVG {...props} />`
|
|
9
|
+
* renders with React (attributes forwarded to the root `<svg>`, and to the
|
|
10
|
+
* frame's outer `<svg>` when there is a frame). Works anywhere, server or
|
|
11
|
+
* browser.
|
|
12
|
+
*/
|
|
13
|
+
export function toSVGString(props: QRSVGOptions): string {
|
|
14
|
+
return renderToString(createQRCodeTree(props));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The code as an `<svg>` element, built with `createElementNS` (no HTML is
|
|
19
|
+
* parsed). Pass `doc` to build it in another document.
|
|
20
|
+
*/
|
|
21
|
+
export function toSVGElement(
|
|
22
|
+
props: QRSVGOptions,
|
|
23
|
+
doc: Document = document
|
|
24
|
+
): SVGSVGElement {
|
|
25
|
+
const fragment = renderToDOM(createQRCodeTree(props), doc);
|
|
26
|
+
return fragment.firstChild as SVGSVGElement;
|
|
27
|
+
}
|
package/src/template/arrow.tsx
CHANGED
package/src/template/default.tsx
CHANGED
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
/** biome-ignore-all lint/style/noMagicNumbers: the artwork's own geometry */
|
|
2
|
+
// The drawing of the dot ring template (dot-ring.tsx): its geometry, the
|
|
3
|
+
// dots around the code and which of them a link draws, and the text along
|
|
4
|
+
// the ring. Kept out of template/index.ts, so none of it becomes public API.
|
|
5
|
+
// The dot layout and the way a link picks its dots come from the first
|
|
6
|
+
// round design built on qrdx's custom templates (2025), so designs made
|
|
7
|
+
// with it keep their rings.
|
|
8
|
+
import { sanitizeFrameText } from "../../types/frame-spec";
|
|
9
|
+
import { roundTo } from "../utils/fmt";
|
|
10
|
+
|
|
11
|
+
// ── Geometry (a 593 × 593 drawing) ────────────────────────────────────────
|
|
12
|
+
|
|
13
|
+
export const VIEW = 593;
|
|
14
|
+
export const CENTER = 296.5;
|
|
15
|
+
/** The code (300 × 300) sits in the middle. */
|
|
16
|
+
export const CODE_OFFSET = 146.5;
|
|
17
|
+
export const BACKGROUND_RADIUS = 294.5;
|
|
18
|
+
export const RING_INNER_RADIUS = 231.228;
|
|
19
|
+
/** The ring: the whole disc minus the inner one. */
|
|
20
|
+
export const RING_PATH =
|
|
21
|
+
"M296.5 0C460.252 -7.15782e-06 593 132.748 593 296.5C593 460.252 460.253 593 296.5 593C132.748 593 7.15782e-06 460.252 0 296.5C-7.15788e-06 132.748 132.748 7.15788e-06 296.5 0ZM296.5 527.728C424.204 527.728 527.728 424.204 527.728 296.5C527.728 168.796 424.204 65.2713 296.5 65.2713C168.796 65.2713 65.2714 168.796 65.2714 296.5C65.2714 424.204 168.796 527.728 296.5 527.728Z";
|
|
22
|
+
|
|
23
|
+
// ── Decorative dots ───────────────────────────────────────────────────────
|
|
24
|
+
|
|
25
|
+
// The 297 dot centers, in their original order (the order decides which
|
|
26
|
+
// dots a link gets). DOT_X and DOT_Y list the distinct x and y
|
|
27
|
+
// values in ten-thousandths of a unit, each as the base-36 step from the one
|
|
28
|
+
// before; DOT_CELLS gives each dot as three base-36 digits of
|
|
29
|
+
// xIndex × DOT_ROWS + yIndex. tests/dot-ring-template.test.ts checks them
|
|
30
|
+
// against the original table.
|
|
31
|
+
const DOT_X =
|
|
32
|
+
"iaa2 1z3g 1z0y 1z18 1z18 1we8 2mq 1uta 47y 1rx4 73u 1rx4 73u 1rxe 73u 1rx4 73u 1rxe 73u 1rx4 73u 1rxe 73u 1rx4 73u 1rzm 71m 1rzm 71m 1rzc 73u okq 13ce 744 1rx4 744 1rwu 744 1rx4 744 1rx4 73u 1rx4 744 1rx4 73u 1rx4 73u 1rx4 744 1rx4 73u 1rxe 73u 1rx4 73u 1rx4 744 1rzm 71c 1rzm 73u 1rxe 73u 1rx4 744 1rx4 73u 1rx4 73u 1rxe 73u 1rx4 618 12m 1rxe 73u 1z0y 1z18 1z0y 1z18 1z0y 1z18 1z18";
|
|
33
|
+
const DOT_Y =
|
|
34
|
+
"hqpr 5 1z36 1z0y 1z18 1z18 1z0y 1z0y 1a7w otc 1z0y 1z18 1z0y 1z18 1z0y 1z1i 1z0o 1z18 1z0y 1z3q 1z0y 1z18 1z0y 1z18 1z0y 1z18 1z0y 1z18 1z0y 1z18 1z0y 1lk8 dgq 1z18 1z18 1z3g 1z0y 1z0y 1z18 1z18 1z0y 1z0y 1z18 1yx2 3w 1z18 60o 1t0a 1z18 1z0y 1z18 1z0y";
|
|
35
|
+
const DOT_CELLS =
|
|
36
|
+
"3cf27f17c00j3ch21n1ek00l1el3cj1vv1kd00n3cl3cn1q31q500p3cp1vx00r1kb3cs3aw1ej21p00t3ax3ay17b27h00w3b02g20yq01w2d611m01x3b52aa14i01y24i1bq0203bd3be1q21q60253bf39e39f39h14e2ae02d39j11i2da02e39l0ym02f39n2lt0sz03a39p2ix0vv03b39r2d511n39t03d27d17f03f39x39y21l1en03h3a03a11vt1kf03j37w37x1q11q703l37z1k903n1vz3821eh03p21r38714d03t11h03u2db38a0vp2j303w2lz38g03x0st2rk0n804o38l2oo0q404p38n2iw0vw04r36f36h2a814k04u36k36l1vs1kg04z36o36p1n41t405236q36x36y0ss2m005d3720n02rs05f3742uf0kd0633763772on0q506537834y2fz0yt06834z2d311p06935235424f1bt06c35621j1ep06d3581yn1hl06e35a1sv1nd06g35b1pz1q906h35d35e35g1ef21t06l35h1bj24p06m35k35l11f2dd06q35n0vn2j506s35p35q0pv2ox06u35s0mz2rt06v35t33h0k32up06w2x90hi08y2ud0ke08z33r2lp0t20922fx0yu0942a514m09624d1bu0983441yl1hm09a1vp1ki09b1px1qa09d34e1n11t609e1h91yy09g1ed21u09h1a227m0831492ai09l0yh2ga09n0sp2m209p0pt2oy09q0k12uq09s2xo0h52z209t31k0en0bt2780c319z0az0e831z0cq";
|
|
37
|
+
const DOT_ROWS = 52;
|
|
38
|
+
/** How many of the dots a code draws. */
|
|
39
|
+
const DOTS_DRAWN = 240;
|
|
40
|
+
|
|
41
|
+
export interface Dot {
|
|
42
|
+
cx: number;
|
|
43
|
+
cy: number;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function decodeSteps(steps: string): number[] {
|
|
47
|
+
let value = 0;
|
|
48
|
+
return steps.split(" ").map((step) => {
|
|
49
|
+
value += Number.parseInt(step, 36);
|
|
50
|
+
return value / 10_000;
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
let ringDots: readonly Dot[] | undefined;
|
|
55
|
+
|
|
56
|
+
/** Every dot position, decoded on first use. */
|
|
57
|
+
export function dotRingPositions(): readonly Dot[] {
|
|
58
|
+
if (!ringDots) {
|
|
59
|
+
const xs = decodeSteps(DOT_X);
|
|
60
|
+
const ys = decodeSteps(DOT_Y);
|
|
61
|
+
const dots: Dot[] = [];
|
|
62
|
+
for (let i = 0; i < DOT_CELLS.length; i += 3) {
|
|
63
|
+
const cell = Number.parseInt(DOT_CELLS.slice(i, i + 3), 36);
|
|
64
|
+
dots.push({
|
|
65
|
+
cx: xs[Math.floor(cell / DOT_ROWS)] as number,
|
|
66
|
+
cy: ys[cell % DOT_ROWS] as number,
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
ringDots = dots;
|
|
70
|
+
}
|
|
71
|
+
return ringDots;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** A 31-bit hash of the code's content. */
|
|
75
|
+
function contentHash(text: string): number {
|
|
76
|
+
let hash = 0;
|
|
77
|
+
for (let i = 0; i < text.length; i++) {
|
|
78
|
+
hash = hash * 32 - hash + text.charCodeAt(i);
|
|
79
|
+
hash %= 2_147_483_647;
|
|
80
|
+
}
|
|
81
|
+
return Math.abs(hash);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* The dots `value` draws: a seeded shuffle (a linear congruential
|
|
86
|
+
* generator and a Fisher–Yates pass) picks DOTS_DRAWN of them, kept in
|
|
87
|
+
* their original order.
|
|
88
|
+
*/
|
|
89
|
+
export function dotRingDots(value: string): Dot[] {
|
|
90
|
+
const dots = dotRingPositions();
|
|
91
|
+
let state = contentHash(value);
|
|
92
|
+
const random = () => {
|
|
93
|
+
state = (state * 9301 + 49_297) % 233_280;
|
|
94
|
+
return state / 233_280;
|
|
95
|
+
};
|
|
96
|
+
const order = dots.map((_, index) => index);
|
|
97
|
+
for (let i = order.length - 1; i > 0; i--) {
|
|
98
|
+
const j = Math.floor(random() * (i + 1));
|
|
99
|
+
[order[i], order[j]] = [order[j] as number, order[i] as number];
|
|
100
|
+
}
|
|
101
|
+
return order
|
|
102
|
+
.slice(0, DOTS_DRAWN)
|
|
103
|
+
.sort((a, b) => a - b)
|
|
104
|
+
.map((index) => dots[index] as Dot);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/** The code's width in the drawing (its 300 × 300 drawing, unscaled). */
|
|
108
|
+
const CODE_SIZE = 300;
|
|
109
|
+
/**
|
|
110
|
+
* A code more than this many modules across (version 9 and up) has modules
|
|
111
|
+
* much smaller than the ring's dots are spaced, and dots right next to it
|
|
112
|
+
* stop decoders finding it at small sizes; up to here they read fine.
|
|
113
|
+
*/
|
|
114
|
+
const DENSE_MODULES = 49;
|
|
115
|
+
/** The light band a dense code keeps clear of dots, in modules. */
|
|
116
|
+
const DENSE_QUIET_MODULES = 6;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* `dots` as a code with modules `moduleSize` across draws them, each a disc
|
|
120
|
+
* half a module in radius: all of them, or for a dense code only those at
|
|
121
|
+
* least DENSE_QUIET_MODULES modules clear of it.
|
|
122
|
+
*/
|
|
123
|
+
export function dotsClearOfCode(
|
|
124
|
+
dots: readonly Dot[],
|
|
125
|
+
moduleSize: number
|
|
126
|
+
): readonly Dot[] {
|
|
127
|
+
if (CODE_SIZE / moduleSize <= DENSE_MODULES + 0.5) {
|
|
128
|
+
return dots;
|
|
129
|
+
}
|
|
130
|
+
const start = CODE_OFFSET;
|
|
131
|
+
const end = CODE_OFFSET + CODE_SIZE;
|
|
132
|
+
const band = DENSE_QUIET_MODULES * moduleSize + moduleSize / 2;
|
|
133
|
+
return dots.filter(({ cx, cy }) => {
|
|
134
|
+
const away = Math.max(start - cx, cx - end, start - cy, cy - end);
|
|
135
|
+
return away >= band;
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// ── Text on the ring ──────────────────────────────────────────────────────
|
|
140
|
+
|
|
141
|
+
/** Four times round, it closes the ring with an even gap at the bottom. */
|
|
142
|
+
export const DEFAULT_TEXT =
|
|
143
|
+
"Scan the QR code * Scan the QR code * Scan the QR code * Scan the QR code *";
|
|
144
|
+
export const DEFAULT_FONT_SIZE = 32;
|
|
145
|
+
export const DEFAULT_LETTER_SPACING = 3.5;
|
|
146
|
+
/** Letters are spaced along this circle. */
|
|
147
|
+
const TEXT_PATH_RADIUS = 246.5;
|
|
148
|
+
/** Half a cap height, in em: the letters' band is centered on TEXT_BAND_RADIUS. */
|
|
149
|
+
const HALF_CAP = 0.36;
|
|
150
|
+
const TEXT_BAND_RADIUS = TEXT_PATH_RADIUS + HALF_CAP * DEFAULT_FONT_SIZE;
|
|
151
|
+
/** Longest text read, in code points (more never fits around the ring). */
|
|
152
|
+
const TEXT_MAX_LENGTH = 400;
|
|
153
|
+
|
|
154
|
+
/** A rough letter width for a heavy sans-serif. */
|
|
155
|
+
function letterWidth(char: string, fontSize: number): number {
|
|
156
|
+
if (char === " " || /[il1|!']/.test(char)) {
|
|
157
|
+
return fontSize * 0.3;
|
|
158
|
+
}
|
|
159
|
+
if (/[mwMW@%&]/.test(char)) {
|
|
160
|
+
return fontSize * 0.8;
|
|
161
|
+
}
|
|
162
|
+
return fontSize * 0.6;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/** The text as drawn: no control or invisible characters, spaces kept. */
|
|
166
|
+
function cleanText(text: string): string[] {
|
|
167
|
+
const clean = text
|
|
168
|
+
.slice(0, TEXT_MAX_LENGTH)
|
|
169
|
+
.split(" ")
|
|
170
|
+
.map((word) => sanitizeFrameText(word, TEXT_MAX_LENGTH))
|
|
171
|
+
.join(" ");
|
|
172
|
+
return Array.from(clean).slice(0, TEXT_MAX_LENGTH);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export interface RingLetter {
|
|
176
|
+
char: string;
|
|
177
|
+
x: number;
|
|
178
|
+
y: number;
|
|
179
|
+
rotate: number;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/** Letters of `text` along the ring, centered at the top or the bottom. */
|
|
183
|
+
export function dotRingLetters(
|
|
184
|
+
text: string,
|
|
185
|
+
options: {
|
|
186
|
+
fontSize: number;
|
|
187
|
+
letterSpacing: number;
|
|
188
|
+
position: "top" | "bottom";
|
|
189
|
+
rotation: number;
|
|
190
|
+
}
|
|
191
|
+
): RingLetter[] {
|
|
192
|
+
const { fontSize, letterSpacing, position, rotation } = options;
|
|
193
|
+
const circumference = 2 * Math.PI * TEXT_PATH_RADIUS;
|
|
194
|
+
// Keep the letters that fit around the ring
|
|
195
|
+
const kept: { char: string; along: number }[] = [];
|
|
196
|
+
let offset = 0;
|
|
197
|
+
for (const char of cleanText(text)) {
|
|
198
|
+
const width = letterWidth(char, fontSize);
|
|
199
|
+
if (offset + width > circumference) {
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
202
|
+
kept.push({ char, along: offset + width / 2 });
|
|
203
|
+
offset += width + letterSpacing;
|
|
204
|
+
}
|
|
205
|
+
const total = offset - (kept.length > 0 ? letterSpacing : 0);
|
|
206
|
+
const top = position !== "bottom";
|
|
207
|
+
// Baseline: the letters' band centered on TEXT_BAND_RADIUS, rising
|
|
208
|
+
// outwards at the top and inwards at the bottom
|
|
209
|
+
const radius = top
|
|
210
|
+
? TEXT_BAND_RADIUS - HALF_CAP * fontSize
|
|
211
|
+
: TEXT_BAND_RADIUS + HALF_CAP * fontSize;
|
|
212
|
+
const half = (total / circumference) * 180;
|
|
213
|
+
const letters: RingLetter[] = [];
|
|
214
|
+
for (const { char, along } of kept) {
|
|
215
|
+
if (char.trim() === "") {
|
|
216
|
+
continue;
|
|
217
|
+
}
|
|
218
|
+
const step = (along / circumference) * 360;
|
|
219
|
+
// Degrees clockwise from twelve o'clock
|
|
220
|
+
const angle = top ? rotation - half + step : rotation + 180 + half - step;
|
|
221
|
+
const radians = (angle * Math.PI) / 180;
|
|
222
|
+
letters.push({
|
|
223
|
+
char,
|
|
224
|
+
x: roundTo(CENTER + radius * Math.sin(radians)),
|
|
225
|
+
y: roundTo(CENTER - radius * Math.cos(radians)),
|
|
226
|
+
rotate: roundTo(top ? angle : angle - 180),
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
return letters;
|
|
230
|
+
}
|