@vinena/knobs 0.0.0-stage → 0.5.1
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/CHANGELOG.md +228 -0
- package/LICENSE +21 -0
- package/README.md +110 -2
- package/THIRD_PARTY_NOTICES.md +429 -0
- package/dist/bezels/duo-fold/fold-000.webp +0 -0
- package/dist/bezels/duo-fold/fold-001.webp +0 -0
- package/dist/bezels/duo-fold/fold-002.webp +0 -0
- package/dist/bezels/duo-fold/fold-003.webp +0 -0
- package/dist/bezels/duo-fold/fold-004.webp +0 -0
- package/dist/bezels/duo-fold/fold-005.webp +0 -0
- package/dist/bezels/duo-fold/fold-006.webp +0 -0
- package/dist/bezels/duo-fold/fold-007.webp +0 -0
- package/dist/bezels/duo-fold/fold-008.webp +0 -0
- package/dist/bezels/duo-fold/fold-009.webp +0 -0
- package/dist/bezels/duo-fold/fold-010.webp +0 -0
- package/dist/bezels/duo-fold/fold-011.webp +0 -0
- package/dist/bezels/duo-fold/fold-012.webp +0 -0
- package/dist/bezels/duo-fold/fold-013.webp +0 -0
- package/dist/bezels/duo-fold/fold-014.webp +0 -0
- package/dist/bezels/duo-fold/fold-015.webp +0 -0
- package/dist/bezels/duo-fold/fold-016.webp +0 -0
- package/dist/bezels/duo-fold/fold-017.webp +0 -0
- package/dist/bezels/duo-fold/fold-018.webp +0 -0
- package/dist/bezels/duo-fold/fold-019.webp +0 -0
- package/dist/bezels/duo-fold/fold-020.webp +0 -0
- package/dist/bezels/duo-fold/fold-021.webp +0 -0
- package/dist/bezels/duo-fold/fold-022.webp +0 -0
- package/dist/bezels/duo-fold/fold-023.webp +0 -0
- package/dist/bezels/duo-fold/fold-024.webp +0 -0
- package/dist/bezels/duo-fold/fold-025.webp +0 -0
- package/dist/bezels/duo-fold/fold-026.webp +0 -0
- package/dist/bezels/duo-fold/fold-027.webp +0 -0
- package/dist/bezels/duo-fold/fold-028.webp +0 -0
- package/dist/bezels/duo-fold/fold-029.webp +0 -0
- package/dist/bezels/duo-fold/fold-030.webp +0 -0
- package/dist/bezels/duo-fold/fold-031.webp +0 -0
- package/dist/bezels/duo-fold/fold-032.webp +0 -0
- package/dist/bezels/duo-fold/fold-033.webp +0 -0
- package/dist/bezels/duo-fold/fold-034.webp +0 -0
- package/dist/bezels/duo-fold/fold-035.webp +0 -0
- package/dist/bezels/duo-fold/fold-036.webp +0 -0
- package/dist/bezels/duo-fold/fold-037.webp +0 -0
- package/dist/bezels/duo-fold/fold-038.webp +0 -0
- package/dist/bezels/duo-fold/fold-039.webp +0 -0
- package/dist/bezels/duo-fold/fold-040.webp +0 -0
- package/dist/bezels/duo-fold/fold-041.webp +0 -0
- package/dist/bezels/duo-fold/fold-042.webp +0 -0
- package/dist/bezels/duo-fold/fold-043.webp +0 -0
- package/dist/bezels/duo-fold/fold-044.webp +0 -0
- package/dist/bezels/duo-fold/fold-045.webp +0 -0
- package/dist/bezels/duo-fold/fold-046.webp +0 -0
- package/dist/bezels/duo-fold/fold-047.webp +0 -0
- package/dist/bezels/duo-fold/fold-048.webp +0 -0
- package/dist/bezels/duo-fold/fold-049.webp +0 -0
- package/dist/bezels/duo-fold/fold-050.webp +0 -0
- package/dist/bezels/duo-fold/fold-051.webp +0 -0
- package/dist/bezels/duo-fold/fold-052.webp +0 -0
- package/dist/bezels/duo-fold/fold-053.webp +0 -0
- package/dist/bezels/duo-fold/fold-054.webp +0 -0
- package/dist/bezels/duo-fold/fold-055.webp +0 -0
- package/dist/bezels/duo-fold/fold-056.webp +0 -0
- package/dist/bezels/duo-fold/fold-057.webp +0 -0
- package/dist/bezels/duo-fold/fold-058.webp +0 -0
- package/dist/bezels/duo-fold/fold-059.webp +0 -0
- package/dist/bezels/duo-fold/fold-060.webp +0 -0
- package/dist/bezels/duo-fold/fold-061.webp +0 -0
- package/dist/bezels/duo-fold/fold-062.webp +0 -0
- package/dist/bezels/duo-fold/fold-063.webp +0 -0
- package/dist/bezels/duo-fold/fold-064.webp +0 -0
- package/dist/bezels/duo-fold/fold-065.webp +0 -0
- package/dist/bezels/duo-fold/fold-066.webp +0 -0
- package/dist/bezels/duo-fold/fold-067.webp +0 -0
- package/dist/bezels/duo-fold/fold-068.webp +0 -0
- package/dist/bezels/duo-fold/fold-069.webp +0 -0
- package/dist/bezels/duo-fold/fold-070.webp +0 -0
- package/dist/bezels/duo-fold/fold-071.webp +0 -0
- package/dist/bezels/duo-fold/fold-072.webp +0 -0
- package/dist/bezels/duo-fold/fold-073.webp +0 -0
- package/dist/bezels/duo-fold/fold-074.webp +0 -0
- package/dist/bezels/duo-fold/fold-075.webp +0 -0
- package/dist/bezels/duo-fold/fold-076.webp +0 -0
- package/dist/bezels/duo-fold/fold-077.webp +0 -0
- package/dist/bezels/duo-fold/fold-078.webp +0 -0
- package/dist/bezels/duo-fold/fold-079.webp +0 -0
- package/dist/bezels/duo-fold/fold-080.webp +0 -0
- package/dist/bezels/duo-fold/fold-081.webp +0 -0
- package/dist/bezels/duo-fold/fold-082.webp +0 -0
- package/dist/bezels/duo-fold/fold-083.webp +0 -0
- package/dist/bezels/duo-fold/fold-084.webp +0 -0
- package/dist/bezels/duo-fold/fold-085.webp +0 -0
- package/dist/bezels/duo-fold/fold-086.webp +0 -0
- package/dist/bezels/duo-fold/fold-087.webp +0 -0
- package/dist/bezels/duo-fold/fold-088.webp +0 -0
- package/dist/bezels/duo-fold/fold-089.webp +0 -0
- package/dist/bezels/duo-fold/fold-090.webp +0 -0
- package/dist/bezels/duo-fold/fold-091.webp +0 -0
- package/dist/bezels/duo-fold/fold-092.webp +0 -0
- package/dist/bezels/duo-fold/fold-093.webp +0 -0
- package/dist/bezels/duo-fold/fold-094.webp +0 -0
- package/dist/bezels/duo-fold/fold-095.webp +0 -0
- package/dist/bezels/duo-fold/fold-096.webp +0 -0
- package/dist/bezels/duo-fold/fold-097.webp +0 -0
- package/dist/bezels/duo-fold/fold-098.webp +0 -0
- package/dist/bezels/duo-fold/fold-099.webp +0 -0
- package/dist/bezels/duo-fold/fold-100.webp +0 -0
- package/dist/bezels/duo-fold/fold-101.webp +0 -0
- package/dist/bezels/duo-fold/fold-102.webp +0 -0
- package/dist/bezels/duo-fold/fold-103.webp +0 -0
- package/dist/bezels/duo-fold/fold-104.webp +0 -0
- package/dist/bezels/duo-fold/fold-105.webp +0 -0
- package/dist/bezels/duo-fold/fold-106.webp +0 -0
- package/dist/bezels/duo-fold/fold-107.webp +0 -0
- package/dist/bezels/duo-fold/fold-108.webp +0 -0
- package/dist/bezels/duo-fold/fold-109.webp +0 -0
- package/dist/bezels/duo-fold/fold-110.webp +0 -0
- package/dist/bezels/duo-fold/fold-111.webp +0 -0
- package/dist/bezels/duo-fold/fold-112.webp +0 -0
- package/dist/bezels/duo-fold/fold-113.webp +0 -0
- package/dist/bezels/duo-fold/fold-114.webp +0 -0
- package/dist/bezels/duo-fold/fold-115.webp +0 -0
- package/dist/bezels/duo-fold/fold-116.webp +0 -0
- package/dist/bezels/duo-fold/fold-117.webp +0 -0
- package/dist/bezels/duo-fold/fold-118.webp +0 -0
- package/dist/bezels/duo-fold/fold-119.webp +0 -0
- package/dist/bezels/duo-fold/fold-120.webp +0 -0
- package/dist/bezels/duo-fold/fold-121.webp +0 -0
- package/dist/bezels/duo-fold/fold-122.webp +0 -0
- package/dist/bezels/duo-fold/fold-123.webp +0 -0
- package/dist/bezels/duo-fold/fold-124.webp +0 -0
- package/dist/bezels/duo-fold/fold-125.webp +0 -0
- package/dist/bezels/duo-fold/fold-126.webp +0 -0
- package/dist/bezels/duo-fold/fold-127.webp +0 -0
- package/dist/bezels/duo-fold/fold-128.webp +0 -0
- package/dist/bezels/duo-fold/fold-129.webp +0 -0
- package/dist/bezels/duo-fold/fold-130.webp +0 -0
- package/dist/bezels/duo-fold/fold-131.webp +0 -0
- package/dist/bezels/duo-fold/fold-132.webp +0 -0
- package/dist/bezels/duo-fold/fold-133.webp +0 -0
- package/dist/bezels/duo-fold/fold-134.webp +0 -0
- package/dist/bezels/duo-fold/fold-135.webp +0 -0
- package/dist/bezels/duo-fold/fold-136.webp +0 -0
- package/dist/bezels/duo-fold/fold-137.webp +0 -0
- package/dist/bezels/duo-fold/fold-138.webp +0 -0
- package/dist/bezels/duo-fold/fold-139.webp +0 -0
- package/dist/bezels/duo-fold/fold-140.webp +0 -0
- package/dist/bezels/duo-fold/fold-141.webp +0 -0
- package/dist/bezels/duo-fold/fold-142.webp +0 -0
- package/dist/bezels/duo-fold/fold-143.webp +0 -0
- package/dist/bezels/duo-fold/fold-144.webp +0 -0
- package/dist/bezels/duo-fold/fold-145.webp +0 -0
- package/dist/bezels/duo-fold/fold-146.webp +0 -0
- package/dist/bezels/duo-fold/fold-147.webp +0 -0
- package/dist/bezels/duo-fold/fold-148.webp +0 -0
- package/dist/bezels/duo-fold/fold-149.webp +0 -0
- package/dist/bezels/duo-fold/fold-150.webp +0 -0
- package/dist/bezels/duo-fold/fold-151.webp +0 -0
- package/dist/bezels/duo-fold/fold-152.webp +0 -0
- package/dist/bezels/duo-fold/fold-153.webp +0 -0
- package/dist/bezels/duo-fold/fold-154.webp +0 -0
- package/dist/bezels/duo-fold/fold-155.webp +0 -0
- package/dist/bezels/duo-fold/fold-156.webp +0 -0
- package/dist/bezels/duo-fold/fold-157.webp +0 -0
- package/dist/bezels/duo-fold/fold-158.webp +0 -0
- package/dist/bezels/duo-fold/fold-159.webp +0 -0
- package/dist/bezels/duo-fold/fold-160.webp +0 -0
- package/dist/bezels/duo-fold/fold-161.webp +0 -0
- package/dist/bezels/duo-fold/fold-162.webp +0 -0
- package/dist/bezels/duo-fold/fold-163.webp +0 -0
- package/dist/bezels/duo-fold/fold-164.webp +0 -0
- package/dist/bezels/duo-fold/fold-165.webp +0 -0
- package/dist/bezels/duo-fold/fold-166.webp +0 -0
- package/dist/bezels/duo-fold/fold-167.webp +0 -0
- package/dist/bezels/duo-fold/fold-168.webp +0 -0
- package/dist/bezels/duo-fold/fold-169.webp +0 -0
- package/dist/bezels/duo-fold/fold-170.webp +0 -0
- package/dist/bezels/duo-fold/fold-171.webp +0 -0
- package/dist/bezels/duo-fold/fold-172.webp +0 -0
- package/dist/bezels/duo-fold/fold-173.webp +0 -0
- package/dist/bezels/duo-fold/fold-174.webp +0 -0
- package/dist/bezels/duo-fold/fold-175.webp +0 -0
- package/dist/bezels/duo-fold/fold-176.webp +0 -0
- package/dist/bezels/duo-fold/fold-177.webp +0 -0
- package/dist/bezels/duo-fold/fold-178.webp +0 -0
- package/dist/bezels/duo-fold/fold-179.webp +0 -0
- package/dist/bezels/duo-fold/fold-180.webp +0 -0
- package/dist/bezels/duo-fold/still-000.webp +0 -0
- package/dist/bezels/duo-fold/still-161.webp +0 -0
- package/dist/bezels/duo-fold/still-162.webp +0 -0
- package/dist/bezels/duo-fold/still-163.webp +0 -0
- package/dist/bezels/duo-fold/still-164.webp +0 -0
- package/dist/bezels/duo-fold/still-165.webp +0 -0
- package/dist/bezels/duo-fold/still-166.webp +0 -0
- package/dist/bezels/duo-fold/still-167.webp +0 -0
- package/dist/bezels/duo-fold/still-168.webp +0 -0
- package/dist/bezels/duo-fold/still-169.webp +0 -0
- package/dist/bezels/duo-fold/still-170.webp +0 -0
- package/dist/bezels/duo-fold/still-171.webp +0 -0
- package/dist/bezels/duo-fold/still-172.webp +0 -0
- package/dist/bezels/duo-fold/still-173.webp +0 -0
- package/dist/bezels/duo-fold/still-174.webp +0 -0
- package/dist/bezels/duo-fold/still-175.webp +0 -0
- package/dist/bezels/duo-fold/still-176.webp +0 -0
- package/dist/bezels/duo-fold/still-177.webp +0 -0
- package/dist/bezels/duo-fold/still-178.webp +0 -0
- package/dist/bezels/duo-fold/still-179.webp +0 -0
- package/dist/bezels/duo-fold/still-180.webp +0 -0
- package/dist/bezels/iphone-16-plus.webp +0 -0
- package/dist/bezels/iphone-16-pro-max.webp +0 -0
- package/dist/bezels/iphone-16-pro.webp +0 -0
- package/dist/bezels/iphone-16.webp +0 -0
- package/dist/bezels/iphone-17-pro-max.webp +0 -0
- package/dist/bezels/iphone-17-pro.webp +0 -0
- package/dist/bezels/iphone-17.webp +0 -0
- package/dist/bezels/iphone-18-pro-max.webp +0 -0
- package/dist/bezels/iphone-18-pro.webp +0 -0
- package/dist/bezels/iphone-air.webp +0 -0
- package/dist/bezels/iphone-duo-inner-open-landscape.webp +0 -0
- package/dist/bezels/iphone-duo-inner-open-portrait.webp +0 -0
- package/dist/bezels/iphone-duo-outer-closed.webp +0 -0
- package/dist/bezels/iphone-se.webp +0 -0
- package/dist/bezels/pixel-10-pro-xl.webp +0 -0
- package/dist/bezels/pixel-10-pro.webp +0 -0
- package/dist/bezels/pixel-10.webp +0 -0
- package/dist/bezels/pixel-10a.webp +0 -0
- package/dist/bezels/pixel-9-pro-xl.webp +0 -0
- package/dist/bezels/pixel-9-pro.webp +0 -0
- package/dist/bezels/pixel-9.webp +0 -0
- package/dist/early.d.ts +1 -0
- package/dist/early.global.js +8 -0
- package/dist/elementsview-jnkbhzkj.js +2873 -0
- package/dist/elementsview-tf4qzmtw.js +2874 -0
- package/dist/engine/address.d.ts +31 -0
- package/dist/engine/animations.d.ts +13 -0
- package/dist/engine/barshot.d.ts +48 -0
- package/dist/engine/bezels.d.ts +140 -0
- package/dist/engine/bezelurls.d.ts +5 -0
- package/dist/engine/browserdraw.d.ts +57 -0
- package/dist/engine/browserkit.d.ts +59 -0
- package/dist/engine/browserui.d.ts +177 -0
- package/dist/engine/check.d.ts +8 -0
- package/dist/engine/chromedraw.d.ts +17 -0
- package/dist/engine/clock.d.ts +91 -0
- package/dist/engine/color.d.ts +37 -0
- package/dist/engine/describe.d.ts +49 -0
- package/dist/engine/devices.d.ts +96 -0
- package/dist/engine/dock.d.ts +53 -0
- package/dist/engine/endroom.d.ts +21 -0
- package/dist/engine/fit.d.ts +75 -0
- package/dist/engine/fold.d.ts +562 -0
- package/dist/engine/foldframes.d.ts +98 -0
- package/dist/engine/foldgl.d.ts +151 -0
- package/dist/engine/foldhand.d.ts +23 -0
- package/dist/engine/foldlook.d.ts +49 -0
- package/dist/engine/foldpage.d.ts +167 -0
- package/dist/engine/foldrun.d.ts +98 -0
- package/dist/engine/frame.d.ts +142 -0
- package/dist/engine/frameglide.d.ts +71 -0
- package/dist/engine/framekit.d.ts +7 -0
- package/dist/engine/frames.d.ts +42 -0
- package/dist/engine/fresh.d.ts +59 -0
- package/dist/engine/geo.d.ts +58 -0
- package/dist/engine/header.d.ts +16 -0
- package/dist/engine/identity.d.ts +27 -0
- package/dist/engine/index.d.ts +58 -0
- package/dist/engine/intl.d.ts +23 -0
- package/dist/engine/locale.d.ts +86 -0
- package/dist/engine/mat.d.ts +64 -0
- package/dist/engine/matchmedia.d.ts +25 -0
- package/dist/engine/matcolors.d.ts +45 -0
- package/dist/engine/matsplash.d.ts +81 -0
- package/dist/engine/media.d.ts +55 -0
- package/dist/engine/mock.d.ts +65 -0
- package/dist/engine/mockdata.d.ts +42 -0
- package/dist/engine/mockdraw.d.ts +21 -0
- package/dist/engine/morph.d.ts +214 -0
- package/dist/engine/morphrun.d.ts +49 -0
- package/dist/engine/native.d.ts +129 -0
- package/dist/engine/network.d.ts +8 -0
- package/dist/engine/notice.d.ts +15 -0
- package/dist/engine/objectfit.d.ts +35 -0
- package/dist/engine/outlines.d.ts +2 -0
- package/dist/engine/overflow.d.ts +11 -0
- package/dist/engine/owninline.d.ts +16 -0
- package/dist/engine/pagefonts.d.ts +21 -0
- package/dist/engine/pageshot.d.ts +127 -0
- package/dist/engine/placeholder.d.ts +89 -0
- package/dist/engine/pseudo.d.ts +15 -0
- package/dist/engine/ready.d.ts +9 -0
- package/dist/engine/reload.d.ts +35 -0
- package/dist/engine/remount.d.ts +30 -0
- package/dist/engine/replay.d.ts +7 -0
- package/dist/engine/safaridraw.d.ts +22 -0
- package/dist/engine/scrollbars.d.ts +17 -0
- package/dist/engine/scrollkeep.d.ts +124 -0
- package/dist/engine/spacing.d.ts +2 -0
- package/dist/engine/speed.d.ts +11 -0
- package/dist/engine/store.d.ts +68 -0
- package/dist/engine/stored.d.ts +17 -0
- package/dist/engine/style.d.ts +27 -0
- package/dist/engine/system.d.ts +15 -0
- package/dist/engine/text.d.ts +53 -0
- package/dist/engine/time.d.ts +32 -0
- package/dist/engine/touch.d.ts +20 -0
- package/dist/engine/touchdot.d.ts +71 -0
- package/dist/engine/touchmark.d.ts +27 -0
- package/dist/engine/touchpointer.d.ts +113 -0
- package/dist/engine/tree.d.ts +9 -0
- package/dist/engine/turnrun.d.ts +74 -0
- package/dist/engine/ua.d.ts +55 -0
- package/dist/engine/underneath.d.ts +7 -0
- package/dist/engine/viewportcss.d.ts +7 -0
- package/dist/engine/vision.d.ts +3 -0
- package/dist/engine/width.d.ts +56 -0
- package/dist/engine/zoom.d.ts +33 -0
- package/dist/framekit-3n7p79ht.js +8839 -0
- package/dist/framekit-g96t6nmq.js +8838 -0
- package/dist/global.d.ts +1 -0
- package/dist/grab/boxmodel.d.ts +109 -0
- package/dist/grab/boxtext.d.ts +17 -0
- package/dist/grab/card.d.ts +45 -0
- package/dist/grab/cardread.d.ts +22 -0
- package/dist/grab/cardview.d.ts +18 -0
- package/dist/grab/clipboard.d.ts +8 -0
- package/dist/grab/colors.d.ts +31 -0
- package/dist/grab/colorvalue.d.ts +40 -0
- package/dist/grab/context.d.ts +25 -0
- package/dist/grab/control.d.ts +37 -0
- package/dist/grab/copy.d.ts +7 -0
- package/dist/grab/dwell.d.ts +29 -0
- package/dist/grab/fiber.d.ts +17 -0
- package/dist/grab/fontused.d.ts +23 -0
- package/dist/grab/hit.d.ts +19 -0
- package/dist/grab/hook.d.ts +7 -0
- package/dist/grab/index.d.ts +9 -0
- package/dist/grab/inspect.d.ts +31 -0
- package/dist/grab/keys.d.ts +84 -0
- package/dist/grab/locate.d.ts +63 -0
- package/dist/grab/mode.d.ts +56 -0
- package/dist/grab/navigate.d.ts +21 -0
- package/dist/grab/outline.d.ts +16 -0
- package/dist/grab/overlay.d.ts +135 -0
- package/dist/grab/paint.d.ts +7 -0
- package/dist/grab/paths.d.ts +27 -0
- package/dist/grab/picks.d.ts +9 -0
- package/dist/grab/place.d.ts +25 -0
- package/dist/grab/preview.d.ts +12 -0
- package/dist/grab/selector.d.ts +15 -0
- package/dist/grab/source.d.ts +68 -0
- package/dist/grab/stack.d.ts +49 -0
- package/dist/grab/theme.d.ts +85 -0
- package/dist/grab/types.d.ts +52 -0
- package/dist/host.d.ts +7 -0
- package/dist/index-0casarhy.js +324 -0
- package/dist/index-2d6wvs8h.js +528 -0
- package/dist/index-33x9hxe3.js +4563 -0
- package/dist/index-5baxvd3v.js +4424 -0
- package/dist/index-78r0f8pw.js +27 -0
- package/dist/index-d0cjxjsm.js +21 -0
- package/dist/index-dvr4x91q.js +4800 -0
- package/dist/index-k015tb6c.js +357 -0
- package/dist/index-ke6v7919.js +4801 -0
- package/dist/index-peh33xjv.js +346 -0
- package/dist/index-ztnjefrh.js +23 -0
- package/dist/index-zvze25nf.js +686 -0
- package/dist/index.d.ts +116 -0
- package/dist/index.global.js +2655 -0
- package/dist/index.js +9262 -0
- package/dist/instance.d.ts +29 -0
- package/dist/react-65tgdbs8.js +22 -0
- package/dist/react-71a9ypex.js +529 -0
- package/dist/react-adky72h9.js +29 -0
- package/dist/react-carf84xv.js +4420 -0
- package/dist/react-eygws6cx.js +358 -0
- package/dist/react-h9w04skh.js +25 -0
- package/dist/react-pdvseef0.js +325 -0
- package/dist/react-qv0nykcv.js +4564 -0
- package/dist/react-sq9pkw4k.js +687 -0
- package/dist/react-xxfpfddf.js +347 -0
- package/dist/react.d.ts +6 -0
- package/dist/react.js +9255 -0
- package/dist/requests/body.d.ts +44 -0
- package/dist/requests/eventsource.d.ts +14 -0
- package/dist/requests/fetch.d.ts +14 -0
- package/dist/requests/index.d.ts +35 -0
- package/dist/requests/patch.d.ts +17 -0
- package/dist/requests/quiet.d.ts +12 -0
- package/dist/requests/record.d.ts +40 -0
- package/dist/requests/resource.d.ts +28 -0
- package/dist/requests/shared.d.ts +34 -0
- package/dist/requests/stack.d.ts +7 -0
- package/dist/requests/store.d.ts +37 -0
- package/dist/requests/types.d.ts +140 -0
- package/dist/requests/xhr.d.ts +16 -0
- package/dist/storage/cache.d.ts +32 -0
- package/dist/storage/clear.d.ts +35 -0
- package/dist/storage/cookies.d.ts +71 -0
- package/dist/storage/format.d.ts +53 -0
- package/dist/storage/idb.d.ts +62 -0
- package/dist/storage/onload.d.ts +47 -0
- package/dist/storage/presets.d.ts +79 -0
- package/dist/storage/site.d.ts +51 -0
- package/dist/storage/web.d.ts +57 -0
- package/dist/storageview-sb23henh.js +2729 -0
- package/dist/storageview-vf8v8q8j.js +2728 -0
- package/dist/styles/cascade.d.ts +59 -0
- package/dist/styles/collect.d.ts +73 -0
- package/dist/styles/declarations.d.ts +30 -0
- package/dist/styles/index.d.ts +20 -0
- package/dist/styles/inherited.d.ts +5 -0
- package/dist/styles/match.d.ts +41 -0
- package/dist/styles/selector.d.ts +36 -0
- package/dist/styles/tree.d.ts +14 -0
- package/dist/styles/types.d.ts +117 -0
- package/dist/styles/varrefs.d.ts +35 -0
- package/dist/types.d.ts +221 -0
- package/dist/ui/actions.d.ts +26 -0
- package/dist/ui/bindings.d.ts +89 -0
- package/dist/ui/boxdiagram.d.ts +50 -0
- package/dist/ui/catalog.d.ts +195 -0
- package/dist/ui/colors.d.ts +51 -0
- package/dist/ui/column.d.ts +22 -0
- package/dist/ui/copytext.d.ts +6 -0
- package/dist/ui/deviceknobs.d.ts +20 -0
- package/dist/ui/dockslide.d.ts +100 -0
- package/dist/ui/dom.d.ts +68 -0
- package/dist/ui/domtree.d.ts +143 -0
- package/dist/ui/drag.d.ts +34 -0
- package/dist/ui/editors.d.ts +30 -0
- package/dist/ui/elementsview.d.ts +32 -0
- package/dist/ui/foldslider.d.ts +48 -0
- package/dist/ui/footer.d.ts +51 -0
- package/dist/ui/hold.d.ts +20 -0
- package/dist/ui/icons.d.ts +145 -0
- package/dist/ui/inspector.d.ts +59 -0
- package/dist/ui/keys.d.ts +180 -0
- package/dist/ui/kit.d.ts +336 -0
- package/dist/ui/knobs.d.ts +41 -0
- package/dist/ui/list.d.ts +68 -0
- package/dist/ui/palette.d.ts +59 -0
- package/dist/ui/pane.d.ts +151 -0
- package/dist/ui/panel.d.ts +56 -0
- package/dist/ui/pin.d.ts +28 -0
- package/dist/ui/place.d.ts +136 -0
- package/dist/ui/prefs.d.ts +53 -0
- package/dist/ui/radio.d.ts +37 -0
- package/dist/ui/requestdetail.d.ts +56 -0
- package/dist/ui/requestformat.d.ts +142 -0
- package/dist/ui/requestparts.d.ts +312 -0
- package/dist/ui/requests.d.ts +48 -0
- package/dist/ui/rows.d.ts +72 -0
- package/dist/ui/search.d.ts +29 -0
- package/dist/ui/settings.d.ts +69 -0
- package/dist/ui/size.d.ts +105 -0
- package/dist/ui/slide.d.ts +46 -0
- package/dist/ui/stage.d.ts +24 -0
- package/dist/ui/storageaction.d.ts +22 -0
- package/dist/ui/storagecookies.d.ts +5 -0
- package/dist/ui/storagedeep.d.ts +18 -0
- package/dist/ui/storageparts.d.ts +131 -0
- package/dist/ui/storagepresets.d.ts +19 -0
- package/dist/ui/storageview.d.ts +45 -0
- package/dist/ui/storageweb.d.ts +11 -0
- package/dist/ui/styles.d.ts +1 -0
- package/dist/ui/stylesapplied.d.ts +46 -0
- package/dist/ui/stylesformat.d.ts +78 -0
- package/dist/ui/stylesview.d.ts +118 -0
- package/dist/ui/swatches.d.ts +26 -0
- package/dist/ui/syntax.d.ts +34 -0
- package/dist/ui/tooltip.d.ts +64 -0
- package/package.json +60 -4
- package/skills/devknobs/SKILL.md +214 -0
|
@@ -0,0 +1,562 @@
|
|
|
1
|
+
import type { PostureValue } from "../types";
|
|
2
|
+
import { openOf } from "./devices";
|
|
3
|
+
import type { Rect, Sides } from "./mock";
|
|
4
|
+
import { type Corners } from "./morph";
|
|
5
|
+
export { openOf };
|
|
6
|
+
/**
|
|
7
|
+
* A foldable folding open or shut in view, as a book does: the half of the
|
|
8
|
+
* open body on the far side of the hinge from the folded one turns about the
|
|
9
|
+
* hinge toward the viewer, the open screen on its inside and the folded body
|
|
10
|
+
* on its outside, while the other half stays. Measured from Apple's own fold
|
|
11
|
+
* of the iPhone Duo, which drives everything from how far open the hinge is,
|
|
12
|
+
* 0 shut to 1 open: the turn, and the light and blur of the screens, which
|
|
13
|
+
* are Apple's own "Wipe" shader's, written out below. The fold is drawn in the open screen's css px, from the
|
|
14
|
+
* open body's top left, and the whole of it moves from where the folded body
|
|
15
|
+
* is drawn to where the open one is as it opens. Everything here is pure: the
|
|
16
|
+
* frame draws it.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* The hinge a hand holds is a spring, stepped 60 times a second: Apple's of
|
|
20
|
+
* 0.75 s with a bounce of 0.15, whose stiffness and damping follow from
|
|
21
|
+
* those, of mass 1. Within `reach` of shut or open a magnet takes over,
|
|
22
|
+
* `pull` strong, and snaps it there, so it never goes past. Between them,
|
|
23
|
+
* where the hand holds it, it rests once it is within `rest` of there and all
|
|
24
|
+
* but still. One no hand holds does not spring: it goes at one speed, in
|
|
25
|
+
* `FOLD_TIME`.
|
|
26
|
+
*/
|
|
27
|
+
export declare const HINGE: {
|
|
28
|
+
readonly stiffness: number;
|
|
29
|
+
readonly damping: number;
|
|
30
|
+
readonly step: number;
|
|
31
|
+
readonly reach: 0.08;
|
|
32
|
+
readonly pull: {
|
|
33
|
+
readonly shut: 30;
|
|
34
|
+
readonly open: 20;
|
|
35
|
+
};
|
|
36
|
+
readonly rest: 0.0001;
|
|
37
|
+
};
|
|
38
|
+
/** How long one step of the hinge is, in ms. */
|
|
39
|
+
export declare const HINGE_STEP: number;
|
|
40
|
+
/** How many steps the hinge takes in one draw at most, so a draw that comes late slows the fold and skips none of it. */
|
|
41
|
+
export declare const HINGE_CATCH_UP = 3;
|
|
42
|
+
/**
|
|
43
|
+
* How long a whole fold takes, shut to open, in ms, where no hand holds the
|
|
44
|
+
* hinge: it goes at one speed from start to end, never faster or slower, and
|
|
45
|
+
* a part of the way takes its share of that.
|
|
46
|
+
*/
|
|
47
|
+
export declare const FOLD_TIME = 500;
|
|
48
|
+
/** How far open the hinge is, 0 shut to 1 open, and how fast it moves, in openings a second. */
|
|
49
|
+
export interface Hinge {
|
|
50
|
+
position: number;
|
|
51
|
+
velocity: number;
|
|
52
|
+
}
|
|
53
|
+
/** The hinge a hand holds a step on toward `target`: shut, open, or anywhere between, where the hand puts it. */
|
|
54
|
+
export declare function hingeStep(hinge: Hinge, target: number): Hinge;
|
|
55
|
+
/**
|
|
56
|
+
* The hinge no hand holds a step on toward `target`, or the `share` of one
|
|
57
|
+
* a frame between two steps draws it at, at a fold's one speed whichever way
|
|
58
|
+
* and however fast it went, and there exactly, stopped, once it is that far
|
|
59
|
+
* away or less, so it never goes past.
|
|
60
|
+
*/
|
|
61
|
+
export declare function hingeLinear(hinge: Hinge, target: number, share?: number): Hinge;
|
|
62
|
+
/** The hinge `steps` steps on toward `target`, each as `step` takes it: a hand's spring, unless told. */
|
|
63
|
+
export declare function hingeAfter(hinge: Hinge, target: number, steps: number, step?: typeof hingeStep): Hinge;
|
|
64
|
+
/**
|
|
65
|
+
* The steps the hinge takes in a draw `elapsed` ms into its fold, `taken` of
|
|
66
|
+
* them behind it, and the ms dropped from the fold's time where more were due
|
|
67
|
+
* than one draw takes: it began that much later. It is `lead` steps ahead of
|
|
68
|
+
* its time: a hand's spring one, its first step taken in its first draw,
|
|
69
|
+
* unless told.
|
|
70
|
+
*/
|
|
71
|
+
export declare function hingeDue(elapsed: number, taken: number, lead?: number): {
|
|
72
|
+
steps: number;
|
|
73
|
+
dropped: number;
|
|
74
|
+
};
|
|
75
|
+
/** Has the hinge got to `target` and stopped there? */
|
|
76
|
+
export declare function hingeStill(hinge: Hinge, target: number): boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Over how much of the way the half that turns, a picture of the page, hands
|
|
79
|
+
* the screen over to the page itself, laid out as it ends up.
|
|
80
|
+
*/
|
|
81
|
+
export declare const HAND_OVER = 0.08;
|
|
82
|
+
/**
|
|
83
|
+
* How long, in ms, the Duo's fold frames, rendered from its model, hand over
|
|
84
|
+
* to the device's own bezel picture once the hinge is still at an end, both
|
|
85
|
+
* lying flat in the same place: the whole device fades from the one to the
|
|
86
|
+
* other, as their shades differ. As long, the still half's rendered case
|
|
87
|
+
* fades in over the picture as the hinge leaves an end.
|
|
88
|
+
*/
|
|
89
|
+
export declare const SHOTS_FADE = 150;
|
|
90
|
+
/**
|
|
91
|
+
* How long, in ms, a fold the knobs start waits at most, at rest where it
|
|
92
|
+
* starts, for the pictures of the page as the browser draws it and for the
|
|
93
|
+
* Duo's frames: then it starts with what it has.
|
|
94
|
+
*/
|
|
95
|
+
export declare const FOLD_WAIT = 150;
|
|
96
|
+
/**
|
|
97
|
+
* Does a fold the knobs start have what it turns, `waited` ms into its wait:
|
|
98
|
+
* the pictures of the page `painted`, and its `frames` in where it draws any,
|
|
99
|
+
* or has it waited long enough?
|
|
100
|
+
*/
|
|
101
|
+
export declare function foldWarm(painted: boolean, frames: boolean, waited: number): boolean;
|
|
102
|
+
/** A point, in css px. */
|
|
103
|
+
export interface Point {
|
|
104
|
+
x: number;
|
|
105
|
+
y: number;
|
|
106
|
+
}
|
|
107
|
+
/** One posture's side of a fold. */
|
|
108
|
+
export interface FoldSide {
|
|
109
|
+
/** The room the body takes around the screen and its size, or null where none is drawn. */
|
|
110
|
+
body: {
|
|
111
|
+
width: number;
|
|
112
|
+
height: number;
|
|
113
|
+
inset: Sides;
|
|
114
|
+
} | null;
|
|
115
|
+
/** The screen's css size. */
|
|
116
|
+
size: {
|
|
117
|
+
width: number;
|
|
118
|
+
height: number;
|
|
119
|
+
};
|
|
120
|
+
/** Where the screen is drawn in the letterbox. */
|
|
121
|
+
screen: Rect;
|
|
122
|
+
}
|
|
123
|
+
/** Where the fold is drawn in the letterbox: its top left, and its scale. */
|
|
124
|
+
export interface Place {
|
|
125
|
+
x: number;
|
|
126
|
+
y: number;
|
|
127
|
+
scale: number;
|
|
128
|
+
}
|
|
129
|
+
/** A fold laid out, in the open screen's css px from the open body's top left. */
|
|
130
|
+
export interface FoldLayout {
|
|
131
|
+
/** The hinge runs up and down the open screen, held across, else along it. */
|
|
132
|
+
across: boolean;
|
|
133
|
+
/** The open body's size. */
|
|
134
|
+
open: {
|
|
135
|
+
width: number;
|
|
136
|
+
height: number;
|
|
137
|
+
};
|
|
138
|
+
/** Where the folded body lies on the open one once shut. */
|
|
139
|
+
shut: Rect;
|
|
140
|
+
/** The hinge's line: x held across, else y. */
|
|
141
|
+
hinge: number;
|
|
142
|
+
/** What the half that turns keeps of the open body, a px past the hinge. */
|
|
143
|
+
clip: string;
|
|
144
|
+
/** The point each side of the turning half turns about: the hinge, in the middle of the screens. */
|
|
145
|
+
origins: {
|
|
146
|
+
inner: string;
|
|
147
|
+
outer: string;
|
|
148
|
+
};
|
|
149
|
+
/** The same points, in each side's own css px. */
|
|
150
|
+
pivots: {
|
|
151
|
+
inner: Point;
|
|
152
|
+
outer: Point;
|
|
153
|
+
};
|
|
154
|
+
/** The fold shut, and open. */
|
|
155
|
+
folded: Place;
|
|
156
|
+
unfolded: Place;
|
|
157
|
+
/** The perspective, in px. */
|
|
158
|
+
depth: number;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Lay a fold out between a foldable's folded and open sides. The hinge runs
|
|
162
|
+
* through the middle of the open screen. Folded upright, the hinge is on the
|
|
163
|
+
* body's left, so held across open, the folded body lies right of it, and
|
|
164
|
+
* held upright open, as it is turned a quarter anticlockwise, above it. The
|
|
165
|
+
* screens' middles line up along the hinge.
|
|
166
|
+
*/
|
|
167
|
+
export declare function foldLayout(closed: FoldSide, open: FoldSide, across: boolean): FoldLayout;
|
|
168
|
+
/** How a fold is drawn with its hinge `open` of the way open. */
|
|
169
|
+
export interface FoldFrame {
|
|
170
|
+
/** Where the fold is in the letterbox, on its way from where it is drawn shut to where open. */
|
|
171
|
+
place: Place;
|
|
172
|
+
/** The turning half's inside, the open screen's, while it faces the viewer, as a transform. */
|
|
173
|
+
inner: string | null;
|
|
174
|
+
/** Its outside, the folded body, while that faces the viewer. */
|
|
175
|
+
outer: string | null;
|
|
176
|
+
/** How far the turning half stands off the screen, 0 flat to 1 square to it. */
|
|
177
|
+
lift: number;
|
|
178
|
+
/** How far the side that faces the viewer is turned, in degrees. */
|
|
179
|
+
degrees: number;
|
|
180
|
+
}
|
|
181
|
+
/** How a fold laid out as `layout` is drawn with its hinge `open` of the way open. */
|
|
182
|
+
export declare function foldFrame(layout: FoldLayout, open: number): FoldFrame;
|
|
183
|
+
/**
|
|
184
|
+
* Where a point of the turning half, in its own css px, is seen with it
|
|
185
|
+
* turned `degrees` about `pivot` as `foldFrame` turns it: about the hinge
|
|
186
|
+
* running up and down, held `across`, else along, from `depth` px away.
|
|
187
|
+
*/
|
|
188
|
+
export declare function seenAt(point: Point, pivot: Point, degrees: number, across: boolean, depth: number): Point;
|
|
189
|
+
/**
|
|
190
|
+
* How far out from the hinge the turned half `rect` is seen turned `degrees`
|
|
191
|
+
* about `pivot` as `seenAt` sees it, as a share of the way to its free edge.
|
|
192
|
+
*/
|
|
193
|
+
export declare function seenShare(rect: Rect, pivot: Point, degrees: number, across: boolean, depth: number): number;
|
|
194
|
+
/** A point as two numbers, x and y. */
|
|
195
|
+
export type Pair = readonly [x: number, y: number];
|
|
196
|
+
/** The corners of a four sided shape, from the top left round by the right. */
|
|
197
|
+
export type Quad = readonly [Pair, Pair, Pair, Pair];
|
|
198
|
+
/**
|
|
199
|
+
* A piece of a frame: where it lies in the frame, left, top, width and
|
|
200
|
+
* height, and its left and top in the frame's file, all in the file's px.
|
|
201
|
+
*/
|
|
202
|
+
export type Piece = readonly [x: number, y: number, width: number, height: number, fileX: number, fileY: number];
|
|
203
|
+
/**
|
|
204
|
+
* A picture of the iPhone Duo's case rendered offline from Apple's model by
|
|
205
|
+
* scripts/render-duo-fold, its screens see-through, as seen from the fold's
|
|
206
|
+
* own distance: where it lies in the render, in the render's px, and the
|
|
207
|
+
* pieces of it its file holds.
|
|
208
|
+
*/
|
|
209
|
+
export interface FoldStill {
|
|
210
|
+
file: string;
|
|
211
|
+
/** Where it lies in the render: left, top, right, bottom. */
|
|
212
|
+
box: readonly [number, number, number, number];
|
|
213
|
+
/** The pieces of it its file holds: all of it but its clear middle. */
|
|
214
|
+
pieces: readonly Piece[];
|
|
215
|
+
}
|
|
216
|
+
/** One frame of the Duo's turning half. Everything but its pieces is in the render's px. */
|
|
217
|
+
export interface FoldShot extends FoldStill {
|
|
218
|
+
/** How far the half has turned, 0 open to 180 shut. */
|
|
219
|
+
deg: number;
|
|
220
|
+
/** Where the open screen's turning half is seen, and the folded body's screen, each as it faces the viewer. */
|
|
221
|
+
inner: Quad;
|
|
222
|
+
cover: Quad;
|
|
223
|
+
/** The half that stays at this angle, by its place among the fold's `stills`. */
|
|
224
|
+
still: number;
|
|
225
|
+
}
|
|
226
|
+
/** The frames of a fold, from open to shut, where the open screen lies in them, and the half that stays. */
|
|
227
|
+
export interface FoldShots {
|
|
228
|
+
/** The open screen: left, top, width, height. */
|
|
229
|
+
open: readonly [number, number, number, number];
|
|
230
|
+
/** The files' px per px of the render. */
|
|
231
|
+
scale: number;
|
|
232
|
+
frames: readonly FoldShot[];
|
|
233
|
+
/**
|
|
234
|
+
* The half that stays, from the same render as each frame, so both halves
|
|
235
|
+
* meet at the hinge: one for each render of it that differs, which the
|
|
236
|
+
* frames name.
|
|
237
|
+
*/
|
|
238
|
+
stills: readonly FoldStill[];
|
|
239
|
+
}
|
|
240
|
+
/** How far open a frame shows the hinge, 0 shut to 1 open. */
|
|
241
|
+
export declare function shotOpen(shot: FoldShot): number;
|
|
242
|
+
/**
|
|
243
|
+
* The frame shown with the hinge `open` of the way open, the nearest to it
|
|
244
|
+
* of those `ready` has, by its place among the frames, and how far open every
|
|
245
|
+
* layer is drawn under it: at that frame's own angle, so nothing moves
|
|
246
|
+
* between two frames and all of it moves at one. Where none is ready, no
|
|
247
|
+
* frame, and the hinge's own angle.
|
|
248
|
+
*/
|
|
249
|
+
export declare function shownAt(shots: FoldShots, ready: readonly unknown[], open: number): {
|
|
250
|
+
at: number | null;
|
|
251
|
+
open: number;
|
|
252
|
+
};
|
|
253
|
+
/** The frame nearest how far the hinge is open, by its place among the frames: the more open of two as near. */
|
|
254
|
+
export declare function shotAt(shots: FoldShots, open: number): number;
|
|
255
|
+
/** The frame nearest `at` whose picture `ready` has, by its place among the frames, or null where none is ready. */
|
|
256
|
+
export declare function nearestReady(ready: readonly unknown[], at: number): number | null;
|
|
257
|
+
/**
|
|
258
|
+
* How many frames either side of the hinge's are decoded, and how many more
|
|
259
|
+
* ahead of it as it goes, with the halves that stay they name: a degree each,
|
|
260
|
+
* about 55 MB decoded at most.
|
|
261
|
+
*/
|
|
262
|
+
export declare const SHOTS_AROUND = 10;
|
|
263
|
+
export declare const SHOTS_AHEAD = 10;
|
|
264
|
+
/**
|
|
265
|
+
* The frames decoded with the hinge at frame `at` of `count`, going `toward`
|
|
266
|
+
* the shut end, 1, the open one, -1, or neither, 0: from `SHOTS_AROUND`
|
|
267
|
+
* before it to as many past it and `SHOTS_AHEAD` more ahead, first and last.
|
|
268
|
+
*/
|
|
269
|
+
export declare function shotsWindow(count: number, at: number, toward: number): [number, number];
|
|
270
|
+
/** Which way a fold from the end the hinge rests at, 0 shut or 1 open, goes along the frames: toward shut, 1, or toward open, -1. */
|
|
271
|
+
export declare function towardFrom(rest: number): number;
|
|
272
|
+
/**
|
|
273
|
+
* Which screen of the half that turns faces the viewer in a frame: the one
|
|
274
|
+
* whose corners go round as they do lying flat. One does in each of the
|
|
275
|
+
* Duo's frames, the inside up to a right angle and the outside past it.
|
|
276
|
+
*/
|
|
277
|
+
export declare function shotPane(shots: FoldShots, shot: FoldShot): Pane | null;
|
|
278
|
+
/**
|
|
279
|
+
* Where a frame sees a screen of the half that turns. Lying flat, open or
|
|
280
|
+
* shut, it is the rect its corners bound, as the device draws its screen,
|
|
281
|
+
* so the fold ends exactly where the device lies.
|
|
282
|
+
*/
|
|
283
|
+
export declare function shotQuad(shot: FoldShot, pane: Pane): Quad;
|
|
284
|
+
/** A quad's area, above 0 where its corners go round clockwise as the page is drawn, y down. */
|
|
285
|
+
export declare function quadArea(quad: Quad): number;
|
|
286
|
+
/**
|
|
287
|
+
* Where the frames are drawn on a fold laid out as `layout`, as a css
|
|
288
|
+
* transform from the render's px to the open body's css px, with the hinge
|
|
289
|
+
* `open` of the way open. The open screen lies on `inside`, the open
|
|
290
|
+
* screen's place in the layout, open, and the last frame's folded screen on
|
|
291
|
+
* `outside`, the folded screen's, shut, so each end lies exactly where the
|
|
292
|
+
* device is drawn; between, the one goes over to the other.
|
|
293
|
+
*/
|
|
294
|
+
export declare function shotsTransform(shots: FoldShots, layout: FoldLayout, inside: Rect, outside: Rect, open: number): string;
|
|
295
|
+
/** A point of the layout scaled by `wide` and `tall` and then moved by `x` and `y`. */
|
|
296
|
+
export interface Drift {
|
|
297
|
+
wide: number;
|
|
298
|
+
tall: number;
|
|
299
|
+
x: number;
|
|
300
|
+
y: number;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* How the device drawn in `posture` moves on the layout with the hinge `open`
|
|
304
|
+
* of the way open, so it stays on the frames: the frames lie on it exactly at
|
|
305
|
+
* that posture's end, and between the ends they shrink a little toward the
|
|
306
|
+
* folded screen's size in the render, which is about 1% smaller than the
|
|
307
|
+
* device's. None at that end.
|
|
308
|
+
*/
|
|
309
|
+
export declare function shotsDrift(shots: FoldShots, layout: FoldLayout, inside: Rect, outside: Rect, open: number, posture: PostureValue): Drift;
|
|
310
|
+
/**
|
|
311
|
+
* A frame's quad of a screen, from the corner that is its own top left as
|
|
312
|
+
* the layout shows it: held upright, its top left was the render's top right.
|
|
313
|
+
*/
|
|
314
|
+
export declare function quadFacing(quad: Quad, across: boolean): Quad;
|
|
315
|
+
/**
|
|
316
|
+
* Where a point of the rect `from` is seen with the rect laid onto the quad
|
|
317
|
+
* `to`, corner on corner, each straight line staying straight, as a flat
|
|
318
|
+
* screen is seen in perspective. Null where the quad has no room, seen edge on.
|
|
319
|
+
*/
|
|
320
|
+
export declare function quadMap(from: Rect, to: Quad): ((point: Point) => Point) | null;
|
|
321
|
+
/**
|
|
322
|
+
* Where the page on a screen of the half that turns lies in a frame, in the
|
|
323
|
+
* render's px, as Apple projects it and jadon7/iphone-duo after it: flat, as
|
|
324
|
+
* seen from the front, so it stays still as the half turns and the turned
|
|
325
|
+
* screen, `quad`, is a window onto it. The open screen's lies where its half
|
|
326
|
+
* past the hinge lies open. The folded screen's is as big as that screen
|
|
327
|
+
* lies shut, slid along so its hinge side stays on the turned screen's.
|
|
328
|
+
*/
|
|
329
|
+
export declare function shotPicture(shots: FoldShots, pane: Pane, quad: Quad): Rect;
|
|
330
|
+
/**
|
|
331
|
+
* A frame's turned screen, `quad`, as the window onto its `picture`. The open
|
|
332
|
+
* screen's hinge side is put on the picture's, as the frames have it a px or
|
|
333
|
+
* two off the hinge, which would leave a dark line down it.
|
|
334
|
+
*/
|
|
335
|
+
export declare function shotWindow(quad: Quad, pane: Pane, picture: Rect): Quad;
|
|
336
|
+
/**
|
|
337
|
+
* How far the window, `quad`, reaches past its `picture` at the turned
|
|
338
|
+
* screen's free edge, above and below, in the render's px: the dark there,
|
|
339
|
+
* which grows as the free edge comes nearer, and is none lying flat.
|
|
340
|
+
*/
|
|
341
|
+
export declare function darkAt(quad: Quad, pane: Pane, picture: Rect): {
|
|
342
|
+
top: number;
|
|
343
|
+
bottom: number;
|
|
344
|
+
};
|
|
345
|
+
/**
|
|
346
|
+
* The css `matrix` that lays a screen `size` css px, from its top left at
|
|
347
|
+
* 0 0, flat onto `picture`, turned a quarter held upright as `quadFacing`
|
|
348
|
+
* turns a frame's screen: no perspective, so the page never turns.
|
|
349
|
+
*/
|
|
350
|
+
export declare function flatMatrix(size: {
|
|
351
|
+
width: number;
|
|
352
|
+
height: number;
|
|
353
|
+
}, picture: Rect, across: boolean): string;
|
|
354
|
+
/**
|
|
355
|
+
* The outline of a rect with its corners rounded by `radii`, from the top left
|
|
356
|
+
* round by the right, as css path data, each point put where `seen` puts it:
|
|
357
|
+
* its sides as lines, and each corner as a quarter circle's cubic through its
|
|
358
|
+
* handles, so it stays as round as a border radius in perspective.
|
|
359
|
+
*/
|
|
360
|
+
export declare function roundedPath(rect: Rect, radii: Corners, seen: (point: Point) => Point): string;
|
|
361
|
+
/**
|
|
362
|
+
* Apple's "Wipe" shader lights each screen of the fold, as the hinge sets it.
|
|
363
|
+
* Across the screen, from 0 to 1 the way its texture runs, light falls off
|
|
364
|
+
* with the distance from the wipe's line, `at`: from the open screen's far
|
|
365
|
+
* side, so the half that stays is lit all over and the half that turns
|
|
366
|
+
* darkens toward its free edge, and from the folded screen's hinge, so it
|
|
367
|
+
* darkens toward its free edge too. Before the screen is drawn its picture is
|
|
368
|
+
* blurred twice, each time the more the further it is from the line past
|
|
369
|
+
* `blur`, out to a mip level 8 times `blurArea`, and darkened where it is
|
|
370
|
+
* blurred most. The picture itself lies flat behind the glass, so a half that
|
|
371
|
+
* turns is a window onto it: what it shows does not turn with it, and past
|
|
372
|
+
* the picture's edge, where the half comes nearer than the screen it stood
|
|
373
|
+
* in, it is dark, a wedge at each end that grows toward the free edge.
|
|
374
|
+
*/
|
|
375
|
+
export declare const WIPE: {
|
|
376
|
+
/** The open screen: Apple's inner texture, 2853 px across, the wipe's line on the side that stays. */
|
|
377
|
+
readonly inner: {
|
|
378
|
+
readonly at: 1;
|
|
379
|
+
readonly shade: readonly [0.5, 1];
|
|
380
|
+
readonly blur: readonly [0.45, 1];
|
|
381
|
+
readonly texture: 2853;
|
|
382
|
+
};
|
|
383
|
+
/** The folded body's screen: its texture as wide as its opening in Apple's picture of it. */
|
|
384
|
+
readonly cover: {
|
|
385
|
+
readonly at: 0;
|
|
386
|
+
readonly shade: readonly [0, 1];
|
|
387
|
+
readonly blur: readonly [0, 0.9];
|
|
388
|
+
readonly texture: 1398;
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
/** Which of the turning half's screens: the open screen's half, or the folded body's whole. */
|
|
392
|
+
export type Pane = keyof typeof WIPE;
|
|
393
|
+
/** Apple shows the middle of each texture, 1.12 times smaller than the whole. */
|
|
394
|
+
export declare const FRAMING = 1.12;
|
|
395
|
+
/** How strong the wipe is on a screen, 0 to 1, with the hinge `open` of the way open, as Apple's uniforms record it. */
|
|
396
|
+
export declare function wipeAmount(pane: Pane, open: number): number;
|
|
397
|
+
/**
|
|
398
|
+
* How bright the open screen is set, 0 to 1: 0.15 shut, a quarter a third of
|
|
399
|
+
* the way open, then evenly up to all of it, as recorded. The folded screen's
|
|
400
|
+
* stays 1.
|
|
401
|
+
*/
|
|
402
|
+
export declare function brightness(pane: Pane, open: number): number;
|
|
403
|
+
/** Where a point `t` of the way from the hinge to the free edge of the half that turns is, across its texture. */
|
|
404
|
+
export declare function uvOf(pane: Pane, t: number): number;
|
|
405
|
+
/** How much light the wipe leaves at `uv`, 0 to 1. */
|
|
406
|
+
export declare function wipeLight(pane: Pane, uv: number, amount: number): number;
|
|
407
|
+
/** Apple's `blurArea` at `uv` before it is held to its range, which runs evenly along the half. */
|
|
408
|
+
export declare function rawArea(pane: Pane, uv: number, amount: number): number;
|
|
409
|
+
/** How blurred the picture is at `uv`: Apple's `blurArea`, 0 to 4/3, a mip level 8 times it. */
|
|
410
|
+
export declare function blurArea(pane: Pane, uv: number, amount: number): number;
|
|
411
|
+
/** How much light each of the two blurs leaves where it blurs `area`, both of them together. */
|
|
412
|
+
export declare function blurLight(area: number): number;
|
|
413
|
+
/**
|
|
414
|
+
* The extra shadow of the open screen's far side, which deepens as the wipe
|
|
415
|
+
* does, over the outer half of the half that turns. The folded screen has none.
|
|
416
|
+
*/
|
|
417
|
+
export declare function edgeLight(pane: Pane, uv: number, amount: number): number;
|
|
418
|
+
/**
|
|
419
|
+
* The dark at the free edge of the half that turns, on top of the wipe,
|
|
420
|
+
* measured from Apple's frames of the Duo's fold against those lying flat:
|
|
421
|
+
* Apple's camera swings round as the hinge turns, so its turned screen shows
|
|
422
|
+
* the picture's dark far side out to its own free edge, which a fold seen
|
|
423
|
+
* from the front does not. It is deepest with the half square to the
|
|
424
|
+
* screen, `darkMost` of the light there, and falls off as how far the hinge
|
|
425
|
+
* is from that to the `darkPower`, so it is none open and shut. Across the
|
|
426
|
+
* turned screen, `darkBroad` of it comes on evenly from `darkFrom` of the way
|
|
427
|
+
* out, the rest over its last `darkBand`. Neither the hinge's side nor the
|
|
428
|
+
* half that stays darkens. Its numbers are `tune`'s.
|
|
429
|
+
*/
|
|
430
|
+
export declare function freeDepth(open: number): number;
|
|
431
|
+
/** How much of the free edge's dark there is `t` of the way across the turned screen from the hinge to its free edge, 0 to 1. */
|
|
432
|
+
export declare function freeBand(t: number): number;
|
|
433
|
+
/** The share of dark at the free edge, `t` of the way across the turned screen, with the hinge `open` of the way open. */
|
|
434
|
+
export declare function freeDark(t: number, open: number): number;
|
|
435
|
+
/**
|
|
436
|
+
* The free edge's dark as gradient stops over the picture lying flat, from
|
|
437
|
+
* the hinge to its free edge: where each is, as a share of the way, and how
|
|
438
|
+
* dark. The turned screen is seen out to `free` of the way, so its free edge,
|
|
439
|
+
* and its dark, is there. None where there is no dark, or the shades are off.
|
|
440
|
+
*/
|
|
441
|
+
export declare function freeShades(open: number, free: number): Shades;
|
|
442
|
+
/**
|
|
443
|
+
* The blur of the half that turns, by hand: least at the hinge, where the
|
|
444
|
+
* picture meets the page itself on the half that stays, and most at the free
|
|
445
|
+
* edge with the half standing at `blurAngle`, a right angle as it ships. None
|
|
446
|
+
* lying flat, open or shut. Its numbers are `tune`'s.
|
|
447
|
+
*
|
|
448
|
+
* `blurHold` keeps it at the peak past that angle, on the side away from
|
|
449
|
+
* where the screen of `pane` lies flat in sight: the open screen's rests
|
|
450
|
+
* open, so its far side is toward shut, the hinge less open than the peak,
|
|
451
|
+
* and the folded body's rests shut, so its is toward open. At 1 it stays
|
|
452
|
+
* all of the peak there, as jadon7/iphone-duo's does, and between it is
|
|
453
|
+
* that share of the way from the fall to the peak. A screen has turned its
|
|
454
|
+
* back by the end of its far side, the other one facing the viewer from a
|
|
455
|
+
* right angle on, so a blur held there is never seen at rest. Without a
|
|
456
|
+
* hold both screens blur the same, so the pane changes nothing.
|
|
457
|
+
*/
|
|
458
|
+
export declare function turnBlur(open: number, pane?: Pane): number;
|
|
459
|
+
/** How much of the free edge's blur there is `across` of the way over the turned screen from the hinge to its free edge. */
|
|
460
|
+
export declare function blurShare(across: number): number;
|
|
461
|
+
/** How far over the turned screen from the hinge the blur is `share` of the free edge's: `blurShare` the other way round. */
|
|
462
|
+
export declare function blurReach(share: number): number;
|
|
463
|
+
/** How light a shown screen is, 0 to 1, for a light of `light` as Apple's shader works it out. */
|
|
464
|
+
export declare function shown(light: number): number;
|
|
465
|
+
/**
|
|
466
|
+
* How much of the screen, at each end along the hinge, the picture darkens
|
|
467
|
+
* toward its edge over as the half stands, so the dark past it comes on
|
|
468
|
+
* softly: as much as Apple's texture goes past what the screen shows of it.
|
|
469
|
+
*/
|
|
470
|
+
export declare const RIM: number;
|
|
471
|
+
/** How dim the screen the frame draws is, 0 to 1, with the hinge `open` of the way open: the half that stays, or the folded screen. */
|
|
472
|
+
export declare function screenDim(pane: Pane, open: number): number;
|
|
473
|
+
/**
|
|
474
|
+
* A shade from the hinge to the free edge as gradient stops: where each is,
|
|
475
|
+
* as a share of the way, and how dark. One stop where it is as dark all the
|
|
476
|
+
* way.
|
|
477
|
+
*/
|
|
478
|
+
export type Shades = [at: number, dark: number][];
|
|
479
|
+
/**
|
|
480
|
+
* A gradient through stops bends at each, and the eye sees a line where it
|
|
481
|
+
* bends sharply. How sharply one may: the change in the dark's slope there,
|
|
482
|
+
* per whole way from the hinge to the free edge, as a share of the light
|
|
483
|
+
* left there.
|
|
484
|
+
*/
|
|
485
|
+
export declare const SMOOTH = 0.1;
|
|
486
|
+
/** The sharpest bend of the gradient through `stops`, as `SMOOTH` measures it. */
|
|
487
|
+
export declare function sharpest(stops: Shades): number;
|
|
488
|
+
/**
|
|
489
|
+
* The shade `dark` has at each share of the way, as stops from the hinge out
|
|
490
|
+
* to `to` of the way: evenly spaced, then closer together wherever the
|
|
491
|
+
* gradient through them would bend more sharply than `SMOOTH`.
|
|
492
|
+
*/
|
|
493
|
+
export declare function shadeStops(dark: (t: number) => number, to?: number): Shades;
|
|
494
|
+
/**
|
|
495
|
+
* A blurrier picture fading in over the ones under it, from the hinge to the
|
|
496
|
+
* free edge: how much of it shows at each of `stops`, a share of the way
|
|
497
|
+
* there. Nearer the hinge than the first it shows as much as at it, and past
|
|
498
|
+
* the last as much as at that.
|
|
499
|
+
*/
|
|
500
|
+
export interface BlurFade {
|
|
501
|
+
stops: [at: number, share: number][];
|
|
502
|
+
}
|
|
503
|
+
/** How the half that turns is lit. */
|
|
504
|
+
export interface PaneShades {
|
|
505
|
+
/** How dark the half is as it turns, from the hinge to the free edge: the screen's light, as dark all the way, and the wipe where it is on. */
|
|
506
|
+
turned: Shades;
|
|
507
|
+
/** How dark the picture is as it lies flat, out to where it is seen: its blurs' dark and the far side's shadow. */
|
|
508
|
+
flat: Shades;
|
|
509
|
+
}
|
|
510
|
+
/** How the half that turns is lit and blurred. */
|
|
511
|
+
export interface PaneLook extends PaneShades {
|
|
512
|
+
/** Where each blurrier picture fades in, or null where it does not show. */
|
|
513
|
+
blurs: (BlurFade | null)[];
|
|
514
|
+
}
|
|
515
|
+
/** At most this many pictures, the sharp one with them, however wide a blur a hand sets. */
|
|
516
|
+
export declare const BLUR_LAYERS = 8;
|
|
517
|
+
/**
|
|
518
|
+
* The pictures of the page laid over each other where WebGL2 does not draw
|
|
519
|
+
* it, by how wide their blur is in css px: the sharp one first, then each
|
|
520
|
+
* twice as wide as the one under it, and the last as wide as the blur gets,
|
|
521
|
+
* `most`. Each fades in over the one under it as the blur goes from that
|
|
522
|
+
* one's width to its own, so two that differ no more than WebGL2's own
|
|
523
|
+
* mipmaps do are ever mixed. Where that takes more than `limit` pictures,
|
|
524
|
+
* they are spread evenly further apart instead.
|
|
525
|
+
*/
|
|
526
|
+
export declare function blurWidths(most?: number, limit?: number): number[];
|
|
527
|
+
/** Are the shades over the half that turns drawn, and is it blurred: both, but where a hand looks for what draws a line. */
|
|
528
|
+
export declare function shadesOn(): boolean;
|
|
529
|
+
export declare function blurOn(): boolean;
|
|
530
|
+
/**
|
|
531
|
+
* The numbers the half that turns, of `pane`, is lit by with the hinge
|
|
532
|
+
* `open` of the way open, seen out to `free` of the way: the screen's light,
|
|
533
|
+
* how strong the wipe is, how fast Apple's blur area rises, and how deep the
|
|
534
|
+
* far side's shadow is. Each of the last three is 0 where it darkens nothing
|
|
535
|
+
* in sight, so none of its work is done.
|
|
536
|
+
*/
|
|
537
|
+
export declare function shadeOf(pane: Pane, open: number, free?: number): [light: number, wipe: number, area: number, far: number];
|
|
538
|
+
/**
|
|
539
|
+
* How the half that turns, of `pane`, is lit with the hinge `open` of the
|
|
540
|
+
* way open, seen out to `free` of the way from the hinge to the picture's
|
|
541
|
+
* free edge. A shade that darkens nothing is one stop, and none of it is
|
|
542
|
+
* worked out.
|
|
543
|
+
*/
|
|
544
|
+
export declare function paneShades(pane: Pane, open: number, free?: number): PaneShades;
|
|
545
|
+
/**
|
|
546
|
+
* Where each blurrier picture fades in on the screen of `pane` with the
|
|
547
|
+
* hinge `open` of the way open, the turned screen seen out to `free` of the
|
|
548
|
+
* way, or null where it does not show: none does with the blur off.
|
|
549
|
+
*/
|
|
550
|
+
export declare function paneBlurs(open: number, free?: number, pane?: Pane): (BlurFade | null)[];
|
|
551
|
+
/**
|
|
552
|
+
* How the half that turns, of `pane`, looks with the hinge `open` of the way
|
|
553
|
+
* open, seen out to `free` of the way from the hinge to the picture's free
|
|
554
|
+
* edge.
|
|
555
|
+
*/
|
|
556
|
+
export declare function paneLook(pane: Pane, open: number, free?: number): PaneLook;
|
|
557
|
+
/**
|
|
558
|
+
* How far the page itself has taken over from the picture of it on the half
|
|
559
|
+
* that turns, 0 to 1, with the frame laid out `drawn`: in the last `span`
|
|
560
|
+
* of the way to that posture, where the half lies all but flat.
|
|
561
|
+
*/
|
|
562
|
+
export declare function handOver(open: number, drawn: PostureValue, span?: number): number;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { type FoldPictures } from "./bezels";
|
|
2
|
+
import { type FoldLayout, type FoldShot, type FoldShots, type FoldStill, type Pane, type Point } from "./fold";
|
|
3
|
+
import { type Face, type Glued, type Pictures } from "./foldpage";
|
|
4
|
+
import type { Rect } from "./mock";
|
|
5
|
+
/**
|
|
6
|
+
* The half of the Duo that turns as its fold's frames, rendered from Apple's
|
|
7
|
+
* model: a canvas the frame nearest the hinge's angle is drawn on, the half
|
|
8
|
+
* that stays from the same render under it, and the screens glued on, each a
|
|
9
|
+
* window onto the page lying flat. All of it is drawn at the angle of the
|
|
10
|
+
* frame shown, so it changes as one picture, a frame at a time.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* A canvas pictures are drawn on, at the files' scale, over where all of
|
|
14
|
+
* them lie in the render, from `corner` in it, and the one drawn on it, if any.
|
|
15
|
+
*/
|
|
16
|
+
interface Plane<Drawn extends FoldStill> {
|
|
17
|
+
canvas: HTMLCanvasElement;
|
|
18
|
+
pen: CanvasRenderingContext2D;
|
|
19
|
+
corner: Point;
|
|
20
|
+
shot: Drawn | null;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The half that turns as the Duo's fold frames: the render's px laid on the
|
|
24
|
+
* fold by `model`, the canvas in it the frame nearest the hinge's angle is
|
|
25
|
+
* drawn on, the case of the half that stays from the same render under it,
|
|
26
|
+
* and the two screens glued on. The open screen and the folded one, where the
|
|
27
|
+
* layout lays them. `lit` is the frame the screens were last laid and lit
|
|
28
|
+
* for, and what drew them then, so they are not again till either changes.
|
|
29
|
+
*/
|
|
30
|
+
export interface Shots {
|
|
31
|
+
shots: FoldShots;
|
|
32
|
+
model: HTMLElement;
|
|
33
|
+
plane: Plane<FoldShot>;
|
|
34
|
+
still: Plane<FoldStill>;
|
|
35
|
+
inner: Glued;
|
|
36
|
+
outer: Glued;
|
|
37
|
+
inside: Rect;
|
|
38
|
+
outside: Rect;
|
|
39
|
+
lit: {
|
|
40
|
+
shot: FoldShot;
|
|
41
|
+
by: unknown[];
|
|
42
|
+
} | null;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* How far the dark under the window reaches past the turned screen, in its
|
|
46
|
+
* css px, under the case all round, but for the open screen's hinge side,
|
|
47
|
+
* where the page goes on past it and the dark stops short, as `bled` has it:
|
|
48
|
+
* so where the window's edge and the case's hole each fade out over a px,
|
|
49
|
+
* the mat never shows between them.
|
|
50
|
+
*/
|
|
51
|
+
export declare const BLEED = 2;
|
|
52
|
+
/**
|
|
53
|
+
* The half that turns as the fold's frames, `found`, laid on the fold: a
|
|
54
|
+
* canvas over where every frame lies in the render, under it the screens
|
|
55
|
+
* with the page glued on, nothing over them at the hinge, and under them a
|
|
56
|
+
* canvas over where every half that stays lies. Null where there is no
|
|
57
|
+
* canvas to draw on.
|
|
58
|
+
*/
|
|
59
|
+
export declare function shotsOf(layout: FoldLayout, open: Face, closed: Face, pictures: Pictures, found: FoldPictures): Shots | null;
|
|
60
|
+
/**
|
|
61
|
+
* Draw the frame nearest the hinge's angle, `open` of the way open, as it was
|
|
62
|
+
* rendered, or the nearest to it decoded where it is not yet, and the half
|
|
63
|
+
* that stays from the same render. How far open the hinge is drawn: at the
|
|
64
|
+
* angle of the frame shown, or `open` where none is yet.
|
|
65
|
+
*/
|
|
66
|
+
export declare function pick(turning: Shots, open: number): number;
|
|
67
|
+
/**
|
|
68
|
+
* Lay the frame `pick` drew on the fold, with the hinge drawn `open` of the
|
|
69
|
+
* way open, and the screen that faces the viewer in it a window onto the page
|
|
70
|
+
* lying flat, by that frame's own corners, so the window fills the frame's
|
|
71
|
+
* hole exactly. The whole of it `shown` of the way over the frame's own
|
|
72
|
+
* device, and the case of the half that stays `still` of the way over it.
|
|
73
|
+
*/
|
|
74
|
+
export declare function pose(turning: Shots, layout: FoldLayout, open: number, shown: number, still: number): void;
|
|
75
|
+
/**
|
|
76
|
+
* The dark under a window as a css background, `color` all over, or, where
|
|
77
|
+
* the window stops `short` px of the render short of the hinge, at `hinge`
|
|
78
|
+
* in the node, the picture's right, only up to twice as far short of it. The
|
|
79
|
+
* browser cuts the dark and the page's canvas over it each by itself where
|
|
80
|
+
* the window is cut: on that edge, where each covers a part of a px, the
|
|
81
|
+
* dark shows through the page, a fifth of it black, as a line down the
|
|
82
|
+
* hinge. So the dark ends before that edge, on one of its own under the
|
|
83
|
+
* page, and only the page is cut there, over the half that stays.
|
|
84
|
+
*/
|
|
85
|
+
export declare function backOf(color: string, hinge: number, short: number): string;
|
|
86
|
+
/**
|
|
87
|
+
* A screen's rect, seen as `seen` has it, bigger by `BLEED` px along the
|
|
88
|
+
* hinge and by as much as `SEEN_BLEED` takes across it, but at the open
|
|
89
|
+
* screen's hinge, its right held across, else its top: there it is smaller,
|
|
90
|
+
* by as much as it takes to be seen `short` px of the render short of the
|
|
91
|
+
* hinge, and by no more than `most` of its own px. So the window
|
|
92
|
+
* and its dark end on one edge there, short of the hinge, with the half that
|
|
93
|
+
* stays under it: the dark never has an edge of its own beside the page's,
|
|
94
|
+
* for a px of the display to show it through. With no `short`, it ends at
|
|
95
|
+
* the hinge.
|
|
96
|
+
*/
|
|
97
|
+
export declare function bled(rect: Rect, pane: Pane, across: boolean, seen: (point: Point) => Point, short?: number, most?: number): Rect;
|
|
98
|
+
export {};
|