hyperframes 0.8.221 → 0.8.223
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/dist/{add-7CVO7K6M.js → add-PBLOPJHC.js} +16 -15
- package/dist/{agentPromptGenerator-YFC2SJLF.js → agentPromptGenerator-OD74HKYZ.js} +12 -11
- package/dist/{animatedGifPrep-YSMY5GU2.js → animatedGifPrep-QCG2BTDC.js} +12 -11
- package/dist/api.d.ts +5 -3
- package/dist/api.js +38 -26
- package/dist/{asset-ZVKHSO3M.js → asset-KHXCO4OR.js} +2 -2
- package/dist/{assetCataloger-6IBSEOK7.js → assetCataloger-ZX5WZTDQ.js} +13 -12
- package/dist/{audio-JUV3TVSW.js → audio-7AH2C6PB.js} +153 -1160
- package/dist/{auth-2J6FP462.js → auth-DJWMGXQB.js} +5 -5
- package/dist/{autoUpdate-ML6EZK6D.js → autoUpdate-KJMLYSHE.js} +2 -2
- package/dist/{backgroundChecks-MAWP2REX.js → backgroundChecks-XLVQMMXY.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-Z7MGNJZH.js → batchRender-UR67LI4H.js} +12 -9
- package/dist/{beats-LRZOZUUQ.js → beats-ISWSYNN6.js} +54 -22
- package/dist/{benchmark-XJWLDTIL.js → benchmark-7JUATINH.js} +12 -11
- package/dist/billing-VGKY3FMX.js +86 -0
- package/dist/{browser-STEVEWWA.js → browser-HNGQB47C.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-WH63ZWUT.js → bundleWithLocalizedFonts-4XWX2XPS.js} +2 -2
- package/dist/{capture-VB5ID7HT.js → capture-GFDP5THL.js} +3 -3
- package/dist/{capture-U3ZT3GNI.js → capture-LBEGVQTJ.js} +80 -38
- package/dist/{captureCompositionFrame-MXJ3WO2R.js → captureCompositionFrame-5L3J4MZ4.js} +18 -17
- package/dist/{catalog-ICGHSRPZ.js → catalog-SNUTPI57.js} +16 -15
- package/dist/{catch-up-DJPQKXQB.js → catch-up-FE3HDMLJ.js} +4 -4
- package/dist/{check-TL7AGWPO.js → check-MQCBMOKA.js} +47 -45
- package/dist/{checkAudio-GPTU6EGB.js → checkAudio-6VPMLIY6.js} +22 -21
- package/dist/{checkBrowser-FG5DAW2R.js → checkBrowser-SHUVFQ4S.js} +45 -39
- package/dist/{chunk-YKMFCE5B.js → chunk-2GMHYOV3.js} +1 -1
- package/dist/{chunk-TNQCXU37.js → chunk-2HBB5U52.js} +1 -1
- package/dist/{chunk-UNQ3CVKW.js → chunk-3FGEDDSA.js} +27 -28
- package/dist/{chunk-HSHKLYDI.js → chunk-44IPXXSK.js} +7 -5
- package/dist/{chunk-TVT465RJ.js → chunk-44YG42L5.js} +144 -41
- package/dist/{chunk-ZBLSSWSE.js → chunk-45UOXUUH.js} +16 -3
- package/dist/chunk-4JRFMRCQ.js +288 -0
- package/dist/{chunk-M2F6VGCP.js → chunk-4XQQQ4KN.js} +85 -50
- package/dist/{chunk-6MUI2H6P.js → chunk-54Q3H2UQ.js} +5 -2
- package/dist/{chunk-67CALYTU.js → chunk-664JAO7C.js} +1 -1
- package/dist/{chunk-H3HC6U4I.js → chunk-6LE7K3YM.js} +17 -14
- package/dist/{chunk-Z7YQEDA5.js → chunk-7LKEHM2R.js} +1 -1
- package/dist/{chunk-I45R2REQ.js → chunk-7XWCCFYW.js} +1 -1
- package/dist/{chunk-L63FJVSC.js → chunk-A2KNKY4Z.js} +1 -1
- package/dist/{chunk-MEB6HWBM.js → chunk-A5WWEW6U.js} +2 -2
- package/dist/{chunk-PBNWRWKA.js → chunk-AKMY4QVI.js} +2 -1
- package/dist/{chunk-OPKSVV4G.js → chunk-AKTI2SHL.js} +2 -2
- package/dist/{chunk-VZBJ5BQF.js → chunk-AW3XJY4S.js} +1 -1
- package/dist/chunk-AW7UW2Z7.js +312 -0
- package/dist/{chunk-DWTFLQ3P.js → chunk-B2ZZYISD.js} +4 -2
- package/dist/{chunk-625I5VBE.js → chunk-B5HFCGI7.js} +2 -2
- package/dist/{chunk-AZXDEC2G.js → chunk-B6F33PUK.js} +6 -8
- package/dist/{chunk-AW7A27JM.js → chunk-BDEBKAD2.js} +1 -1
- package/dist/{chunk-322M35EB.js → chunk-BN75GXZM.js} +3 -3
- package/dist/{chunk-KSC4O2RY.js → chunk-C2KEGBR3.js} +53 -4
- package/dist/{chunk-6YW3FEHC.js → chunk-C466I3DT.js} +9 -8
- package/dist/{chunk-M2BCU4Y5.js → chunk-CXEU6XNL.js} +6 -20
- package/dist/{chunk-KQPP4NIZ.js → chunk-CYE2NNFF.js} +2 -2
- package/dist/{chunk-U6WH572X.js → chunk-DFK4RMNE.js} +5 -5
- package/dist/chunk-DY7PQLIE.js +248 -0
- package/dist/chunk-EF735J3K.js +59 -0
- package/dist/{chunk-XFMO3BEN.js → chunk-EHZESMRB.js} +18 -6
- package/dist/chunk-EJOFIHX4.js +46 -0
- package/dist/{chunk-3422KMTD.js → chunk-EPQC3FGZ.js} +4 -0
- package/dist/{chunk-2ZNURTH5.js → chunk-EX75C5HT.js} +4459 -4312
- package/dist/{chunk-4ZM727AO.js → chunk-FKBWONRY.js} +5 -5
- package/dist/{chunk-YISDQ7YP.js → chunk-FORV75JT.js} +26 -14
- package/dist/{chunk-ZKPRJPWN.js → chunk-G5KX4X6W.js} +59 -59
- package/dist/{chunk-SGTEKMJW.js → chunk-HOTXWVVP.js} +93 -5
- package/dist/{chunk-LYZB5CJN.js → chunk-HT3D5AKG.js} +160 -19
- package/dist/{chunk-BIROA7JM.js → chunk-HYRPH6LL.js} +7 -6
- package/dist/{chunk-35JKCWYI.js → chunk-I6OY5MS6.js} +1 -1
- package/dist/{chunk-S5GOFDX5.js → chunk-IJI2JNN7.js} +1 -1
- package/dist/{chunk-SAKL7SZH.js → chunk-IQ7FABPU.js} +3 -3
- package/dist/{chunk-YV2QQUTL.js → chunk-JNQCM6CR.js} +2 -2
- package/dist/{chunk-TMK3MW7B.js → chunk-JO4LHFFP.js} +10 -10
- package/dist/chunk-JTZHDD63.js +70 -0
- package/dist/{chunk-YSZ4VMXI.js → chunk-K5GMPWMG.js} +1 -1
- package/dist/{chunk-ROVRC3CG.js → chunk-KCDWRMTC.js} +5 -5
- package/dist/{chunk-74E7EHVH.js → chunk-KJGYQVFD.js} +1 -1
- package/dist/{chunk-3STL4WJ6.js → chunk-KT2WLSX5.js} +19 -10
- package/dist/{chunk-OMLDAF44.js → chunk-KWYK65GR.js} +9 -8
- package/dist/{chunk-F6WHVEUS.js → chunk-LAIGIOEA.js} +5 -1
- package/dist/{chunk-3PJ3HVLG.js → chunk-LV5AVW6U.js} +1 -1
- package/dist/{chunk-XETZLYGW.js → chunk-M4UVOUWC.js} +2 -2
- package/dist/{chunk-DMCU2ELU.js → chunk-M7HNGAWN.js} +3 -3
- package/dist/chunk-MEJH7VEA.js +63 -0
- package/dist/{chunk-MYXFBIJO.js → chunk-MTVL7FWZ.js} +1 -1
- package/dist/{chunk-MYNBV7WG.js → chunk-MUHOFRGW.js} +1 -1
- package/dist/{chunk-7DVR3DL3.js → chunk-N6XKBBT5.js} +8 -8
- package/dist/{chunk-OOEOJPFY.js → chunk-NLWG5TU7.js} +2 -2
- package/dist/chunk-NZZQCWUC.js +205 -0
- package/dist/{chunk-ZOLKM3VZ.js → chunk-OL2C3ODS.js} +9 -9
- package/dist/{chunk-QLQVQQP6.js → chunk-OVINGNLQ.js} +3 -3
- package/dist/{chunk-MXVH6UW6.js → chunk-OWFSGDQS.js} +6 -57
- package/dist/chunk-OZM6VLD7.js +71 -0
- package/dist/{chunk-5YT2KHPO.js → chunk-P5QGZMGC.js} +2 -2
- package/dist/{chunk-NYOQP6DO.js → chunk-PBPHKD56.js} +1 -1
- package/dist/chunk-PHEPL7OX.js +1048 -0
- package/dist/{chunk-AZI2T2KO.js → chunk-PX7Y4HMM.js} +1 -1
- package/dist/{chunk-IDWJJ7PP.js → chunk-QNLHDYYO.js} +2 -2
- package/dist/{chunk-N4XNRHFM.js → chunk-QNW43LWB.js} +1 -1
- package/dist/{chunk-24F7TOW2.js → chunk-QU5OYMTB.js} +140 -54
- package/dist/chunk-QZGKKQ77.js +570 -0
- package/dist/{chunk-NQOCM4KQ.js → chunk-RKVKFXYB.js} +3 -3
- package/dist/{chunk-Y4GLFHO5.js → chunk-RORIFIUW.js} +1 -1
- package/dist/{chunk-MESSJFK3.js → chunk-RWSVSCOP.js} +38 -28
- package/dist/chunk-RZ6CXJ56.js +24 -0
- package/dist/chunk-SDBVVDBW.js +113 -0
- package/dist/{chunk-YBNF5ZOC.js → chunk-SFS5BTQ3.js} +1 -1
- package/dist/{chunk-BQNTY7J5.js → chunk-SNFVQDKE.js} +1 -1
- package/dist/{chunk-J74ZUXVU.js → chunk-SWC3QIEH.js} +1 -1
- package/dist/{chunk-D2RQVJLZ.js → chunk-SX7ESVCQ.js} +5 -29
- package/dist/{chunk-P6FGS4U6.js → chunk-UFYWGUUV.js} +6 -6
- package/dist/{chunk-GSCFMG4C.js → chunk-UGUWSAJT.js} +3 -3
- package/dist/chunk-UQECNXFA.js +5013 -0
- package/dist/{chunk-XDTCPMR3.js → chunk-UQVAAEPQ.js} +2 -2
- package/dist/{chunk-NHXGFQWQ.js → chunk-UVF4U3ZF.js} +1 -1
- package/dist/{chunk-YSTBSLWY.js → chunk-VBCBHDIW.js} +1 -1
- package/dist/chunk-VJM6NX54.js +250 -0
- package/dist/{chunk-5SKC4G26.js → chunk-VMRQDPFL.js} +1 -1
- package/dist/chunk-WGOIJN57.js +95 -0
- package/dist/{chunk-RVCWVOXM.js → chunk-WQLTKHPP.js} +3 -3
- package/dist/{chunk-RVIMLJXC.js → chunk-WUXDIF5D.js} +60 -23
- package/dist/{chunk-QYUXDFJY.js → chunk-WWOHLNFO.js} +12 -10
- package/dist/{chunk-JGZUG5V4.js → chunk-XZEHFUQF.js} +2 -2
- package/dist/{chunk-6HKUUBAV.js → chunk-Y4INSXS7.js} +2 -2
- package/dist/{chunk-O7WR4AHX.js → chunk-ZEKV5T3I.js} +14 -14
- package/dist/{clean-3NMJWZXK.js → clean-JZOPMJMV.js} +27 -26
- package/dist/cli.js +59 -56
- package/dist/{cloud-CB3NYNUR.js → cloud-VMPF2KMA.js} +4 -4
- package/dist/{cloudrun-2CTKCIXV.js → cloudrun-LA2FKS2F.js} +10 -9
- package/dist/commands/layout-audit.browser.js +19 -3
- package/dist/commands/motion-signature.browser.js +8 -4
- package/dist/{compare-FVY3AMTT.js → compare-IQCFSC5Z.js} +37 -36
- package/dist/{compiler-SEQRWEEN.js → compiler-J7OZQIPD.js} +8 -8
- package/dist/{component-AEMJRROX.js → component-TRGBVFCI.js} +3 -3
- package/dist/{compositions-NRBSIBGZ.js → compositions-FOC2CAZX.js} +18 -17
- package/dist/curve-ID3Z522S.js +329 -0
- package/dist/cuts-MWHQSE2Z.js +123 -0
- package/dist/{delete-T4E53ELR.js → delete-47KZ7PLI.js} +5 -5
- package/dist/{deploy-PUF2DW3H.js → deploy-NTNEO4TI.js} +8 -8
- package/dist/describeProject-WWREIVQV.js +56 -0
- package/dist/{deterministicFonts-2ISM3LMW.js → deterministicFonts-LV2JMOJL.js} +2 -2
- package/dist/diff-GH4KCQGQ.js +1825 -0
- package/dist/{dist-VARV35QH.js → dist-24QQO5IL.js} +6 -6
- package/dist/{dist-B6C3DU6I.js → dist-XW7FATO6.js} +7 -6
- package/dist/{doctor-FVBU575B.js → doctor-4ZH7WFU6.js} +16 -15
- package/dist/{dotEnv-BGFXSQOA.js → dotEnv-33RDHX7P.js} +1 -1
- package/dist/energy-2C65KXBH.js +134 -0
- package/dist/{events-RSPDI7FX.js → events-FUFFA55P.js} +3 -3
- package/dist/{events-DZ5PRR6F.js → events-Q3EBOW2Y.js} +2 -2
- package/dist/events-QO5G2VCC.js +221 -0
- package/dist/extract-Z6TLBM5B.js +309 -0
- package/dist/face-WI6BPPUG.js +171 -0
- package/dist/{feedback-AALA3OA7.js → feedback-M5GZWDXP.js} +16 -15
- package/dist/{ffmpeg-YXKE5CUE.js → ffmpeg-27H6P7ZU.js} +13 -12
- package/dist/{figma-37R727XZ.js → figma-AI6TSWVO.js} +3 -3
- package/dist/fontLocalizeCli.js +16 -15
- package/dist/frames-WUTLVZIR.js +352 -0
- package/dist/generate-3CJREF5U.js +74 -0
- package/dist/{get-L3VKJ6JF.js → get-KTDRE33B.js} +5 -5
- package/dist/{gpuPolicy-6QIFFWAI.js → gpuPolicy-Z4MM64HY.js} +12 -11
- package/dist/{grade-compare-7IN5QDJD.js → grade-compare-IM7Z7HWI.js} +41 -37
- package/dist/{heifImagePrep-AWII25PM.js → heifImagePrep-CXI2ZMUX.js} +13 -12
- package/dist/{help-B4MB7MWW.js → help-5FR6BRLR.js} +7 -1
- package/dist/{history-TQO6AWEQ.js → history-5P5YVP5H.js} +17 -8
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +72 -72
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/hyperframes-slideshow.global.js +8 -8
- package/dist/index-gen-OPMQ5WSN.js +61 -0
- package/dist/{info-7CBHVXSG.js → info-5ZGNJJVA.js} +11 -10
- package/dist/{init-D7HKPQ5A.js → init-NWIAEYSX.js} +35 -33
- package/dist/{inspect-VHDQL55M.js → inspect-HBLAVW5C.js} +38 -36
- package/dist/{installer-EJNLL6SV.js → installer-KVFTBZZ5.js} +8 -7
- package/dist/{keyframes-IFLBMAJP.js → keyframes-LFCLUY2R.js} +7 -7
- package/dist/{lambda-I7EQULHC.js → lambda-RFWTTMLU.js} +19 -18
- package/dist/{layout-MOCEANRO.js → layout-WOG2Y5ND.js} +38 -36
- package/dist/{lint-HFXGSQKN.js → lint-7MALXMMF.js} +12 -12
- package/dist/{lintProject-VCDI6A2W.js → lintProject-6H64SX3V.js} +6 -6
- package/dist/{list-OFYIXVON.js → list-XRYAT24W.js} +5 -5
- package/dist/{localPage-QOOQ5YA2.js → localPage-IN36JVJU.js} +12 -11
- package/dist/{login-WAG7B4PM.js → login-32WGVGTM.js} +15 -9
- package/dist/{logout-6VFJ7WMW.js → logout-SLI6YTHI.js} +2 -2
- package/dist/look-ZWVE6JO3.js +180 -0
- package/dist/{manager-34U5CEFB.js → manager-SFL6GLYX.js} +14 -12
- package/dist/manifest-QSJYVERU.js +49 -0
- package/dist/measure-Q74BJTRQ.js +46 -0
- package/dist/{media-treatment-2TLX6NKS.js → media-treatment-3R6DYEAZ.js} +24 -23
- package/dist/{media-use-ZNTB7W6N.js → media-use-ZM2WCRQC.js} +9 -5
- package/dist/{models-M2F4WTAR.js → models-NNC53UPU.js} +16 -15
- package/dist/{motionShot-6WCTCV4W.js → motionShot-5BI5JFUP.js} +21 -20
- package/dist/{normalize-QJVXFMWO.js → normalize-MBNGRVQA.js} +2 -1
- package/dist/{normalize-audio-T6PIPWOT.js → normalize-audio-6Z2WN56Q.js} +15 -14
- package/dist/{open-BC5METIY.js → open-5NCEN6RC.js} +15 -14
- package/dist/{parakeetRunner-UXVY7PV2.js → parakeetRunner-DH3XKR3C.js} +19 -17
- package/dist/{pipeline-GJAJPWPB.js → pipeline-CGEGQAPH.js} +15 -14
- package/dist/{play-UCIRUHCU.js → play-K37BN736.js} +28 -27
- package/dist/{policies-J5BWAZHM.js → policies-U4PFXF5E.js} +4 -2
- package/dist/{preflight-GVRYYIH5.js → preflight-CG7H3D5B.js} +13 -12
- package/dist/{present-46QLZOK4.js → present-KQ53DOHA.js} +24 -23
- package/dist/{preview-HWXMP7WL.js → preview-V7CYHL6U.js} +26 -25
- package/dist/probe-JVW2MPY3.js +178 -0
- package/dist/{producer-2PBHUE5O.js → producer-UD32S7PX.js} +1 -1
- package/dist/{projectConfig-C4S3LBBX.js → projectConfig-WXCB5AZE.js} +10 -9
- package/dist/{publication-GESNVVMS.js → publication-KG4UDZRM.js} +6 -5
- package/dist/{publish-IBY26S3T.js → publish-MEQB543T.js} +22 -21
- package/dist/{refresh-I6ITGHKL.js → refresh-2LU4XDL7.js} +2 -2
- package/dist/{remove-background-3OBWOHVZ.js → remove-background-FSV5KQK3.js} +16 -15
- package/dist/{render-LSI5WXS7.js → render-O4S4SURS.js} +10 -9
- package/dist/{render-SR5RISLU.js → render-SQXZAGPQ.js} +160 -46
- package/dist/{render-3F6GQ5WW.js → render-SY4AXKXC.js} +40 -39
- package/dist/{render-batch-HV4W3PZM.js → render-batch-GTZQUB3H.js} +10 -9
- package/dist/renderSetupWorker.js +6 -6
- package/dist/{resolver-R5X3HAPE.js → resolver-BQZNCVJS.js} +8 -7
- package/dist/run-67OPNJGD.js +31 -0
- package/dist/{screenshotCapture-U3IYWTDB.js → screenshotCapture-4THETOMD.js} +2 -1
- package/dist/{sherpa-2Q6U4ZFY.js → sherpa-KH3PJAUG.js} +18 -16
- package/dist/skills/hyperframes-cli/references/beats.md +1 -1
- package/dist/skills/media-use/SKILL.md +20 -21
- package/dist/skills/media-use/audio/scripts/lib/gemini-tts.mjs +13 -1
- package/dist/skills/media-use/audio/scripts/lib/gemini-tts.test.mjs +10 -0
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +26 -1
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +33 -0
- package/dist/skills/media-use/references/heygen.md +58 -0
- package/dist/skills/media-use/references/operations.md +9 -6
- package/dist/skills/media-use/references/setup-providers.md +11 -12
- package/dist/skills/media-use/scripts/lib/index-gen.d.mts +1 -0
- package/dist/skills/media-use/scripts/lib/manifest.d.mts +21 -0
- package/dist/{skills-FSGXQSHA.js → skills-FTZZJGAB.js} +5 -5
- package/dist/{skillsUpdateCheck-UW6643XX.js → skillsUpdateCheck-LZPD2CZI.js} +3 -3
- package/dist/{slideshow-SJGK4RQS.js → slideshow-ARJR22W4.js} +1 -1
- package/dist/{snapshot-HFPB34Y7.js → snapshot-4BORZ3ED.js} +60 -47
- package/dist/{src-VMTQQUUP.js → src-6ZOFAM3F.js} +21 -14
- package/dist/{src-ROWFWCEN.js → src-D7AO7PGH.js} +12 -11
- package/dist/{staticProjectServer-4TGZJIWN.js → staticProjectServer-Q23A6XU2.js} +25 -24
- package/dist/{status-4AAPTTRW.js → status-VIJRZ4ZK.js} +34 -9
- package/dist/studio/assets/hyperframes-player-D0W1SNqK.js +478 -0
- package/dist/studio/assets/{index-BDE7dwov.js → index-DD9KJoEr.js} +119 -119
- package/dist/studio/assets/{index-D0jGq2dS.js → index-mbwAH5iR.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-TSHXVZ6R.js → studio-api-XVVJZ7YT.js} +24 -19
- package/dist/{studioServer-74ZBLNP2.js → studioServer-6HG3AMTW.js} +77 -114
- package/dist/sync-Q5SRIL7V.js +115 -0
- package/dist/{telemetry-3NDLZOPR.js → telemetry-VXPSJ3X3.js} +3 -3
- package/dist/templates/blank/index.html +1 -1
- package/dist/templates/from-file/index.html +1 -1
- package/dist/{timeline-5IFZJU7M.js → timeline-6477OWFA.js} +31 -26
- package/dist/{tokens-UFNPQVLS.js → tokens-ZUUNEDKT.js} +2 -2
- package/dist/{transcribe-7KQAUHEN.js → transcribe-HA4UGLKO.js} +17 -15
- package/dist/{transcribe-NAXKBIPW.js → transcribe-ITVANIDK.js} +41 -23
- package/dist/{tts-BVTJEP72.js → tts-KMZPHG3K.js} +1 -1
- package/dist/{updateCheck-KDSFL3XX.js → updateCheck-SVADAQ43.js} +2 -2
- package/dist/{upgrade-EXX4C35N.js → upgrade-WKW4FDNF.js} +2 -2
- package/dist/{urlDownloader-4UFCIAPH.js → urlDownloader-VWHCESDD.js} +11 -10
- package/dist/{validate-QYOHY3N6.js → validate-7VG2RLP2.js} +31 -30
- package/dist/{video-HRL3V2R5.js → video-LM3FYHGG.js} +13 -12
- package/dist/warmCheck.js +47 -45
- package/package.json +1 -1
- package/dist/chunk-Q3PPGPEA.js +0 -5061
- package/dist/studio/assets/hyperframes-player-B_wvwarc.js +0 -478
- package/dist/{chunk-NOH32H42.js → chunk-HBAUU3IK.js} +124 -124
- package/dist/{chunk-NHA4NRBE.js → chunk-T5ELONXY.js} +0 -0
- package/dist/{destroy-BQ5R7LUF.js → destroy-6NWJMQX2.js} +4 -4
- package/dist/{synthesize-4JC74JW5.js → synthesize-DIT2SR3D.js} +5 -5
|
@@ -7,58 +7,58 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
createContactSheet
|
|
9
9
|
} from "./chunk-ZFVNYA3M.js";
|
|
10
|
+
import "./chunk-EQBDKYXR.js";
|
|
10
11
|
import {
|
|
11
12
|
displayPathFromInput,
|
|
12
13
|
readOptionalString,
|
|
13
14
|
resolveFromBase
|
|
14
15
|
} from "./chunk-ZKDMAOFU.js";
|
|
15
|
-
import "./chunk-EQBDKYXR.js";
|
|
16
16
|
import "./chunk-Y65ZU7XY.js";
|
|
17
17
|
import "./chunk-6BEFEWFB.js";
|
|
18
18
|
import {
|
|
19
19
|
serveStaticProjectHtml
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-QLQVQQP6.js";
|
|
20
|
+
} from "./chunk-N6XKBBT5.js";
|
|
22
21
|
import "./chunk-X7MTZ4T2.js";
|
|
22
|
+
import "./chunk-OVINGNLQ.js";
|
|
23
23
|
import "./chunk-XUHOIDKG.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-G5KX4X6W.js";
|
|
25
|
+
import "./chunk-C466I3DT.js";
|
|
26
|
+
import "./chunk-KCDWRMTC.js";
|
|
27
|
+
import "./chunk-AW3XJY4S.js";
|
|
28
|
+
import "./chunk-UFYWGUUV.js";
|
|
29
|
+
import "./chunk-UQVAAEPQ.js";
|
|
30
|
+
import "./chunk-QU5OYMTB.js";
|
|
31
31
|
import "./chunk-ALVXFXUG.js";
|
|
32
32
|
import {
|
|
33
33
|
SCREENSHOT_IMAGE_WAIT_MS,
|
|
34
34
|
openSettledCompositionPage,
|
|
35
35
|
seekCompositionTimeline
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-JO4LHFFP.js";
|
|
37
|
+
import "./chunk-HOTXWVVP.js";
|
|
38
|
+
import "./chunk-BN75GXZM.js";
|
|
39
|
+
import "./chunk-7LKEHM2R.js";
|
|
40
40
|
import "./chunk-5ZBMHUY2.js";
|
|
41
41
|
import "./chunk-EHSBBBR2.js";
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-PBPHKD56.js";
|
|
43
|
+
import "./chunk-2GMHYOV3.js";
|
|
44
44
|
import "./chunk-XT7X6QCP.js";
|
|
45
45
|
import "./chunk-5YPMCCCA.js";
|
|
46
46
|
import "./chunk-HVW7ABXD.js";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-MUHOFRGW.js";
|
|
48
48
|
import "./chunk-JHOCK3DG.js";
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-IQ7FABPU.js";
|
|
50
|
+
import "./chunk-IJI2JNN7.js";
|
|
51
51
|
import "./chunk-AWDFDFI3.js";
|
|
52
52
|
import "./chunk-P6LJ4Y32.js";
|
|
53
53
|
import "./chunk-T2WJO4XM.js";
|
|
54
54
|
import "./chunk-W4DMQZL5.js";
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-XZEHFUQF.js";
|
|
56
|
+
import "./chunk-B5HFCGI7.js";
|
|
57
57
|
import "./chunk-A4ZTSQLW.js";
|
|
58
58
|
import {
|
|
59
59
|
trackCompareSheet
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import "./chunk-
|
|
60
|
+
} from "./chunk-LAIGIOEA.js";
|
|
61
|
+
import "./chunk-45UOXUUH.js";
|
|
62
62
|
import "./chunk-PXVQOMKL.js";
|
|
63
63
|
import "./chunk-EQGKUPBJ.js";
|
|
64
64
|
import "./chunk-VLA6UJGH.js";
|
|
@@ -74,14 +74,15 @@ import {
|
|
|
74
74
|
import "./chunk-G6OKQMJI.js";
|
|
75
75
|
import "./chunk-EVMY7IPL.js";
|
|
76
76
|
import "./chunk-7FMUTGOH.js";
|
|
77
|
-
import "./chunk-
|
|
77
|
+
import "./chunk-4XQQQ4KN.js";
|
|
78
78
|
import "./chunk-Z5J67X44.js";
|
|
79
79
|
import "./chunk-5S7W3TUO.js";
|
|
80
80
|
import "./chunk-D3MUHMFG.js";
|
|
81
|
-
import "./chunk-
|
|
81
|
+
import "./chunk-FKBWONRY.js";
|
|
82
82
|
import "./chunk-YWRUQ7XZ.js";
|
|
83
|
-
import "./chunk-
|
|
84
|
-
import "./chunk-
|
|
83
|
+
import "./chunk-OWFSGDQS.js";
|
|
84
|
+
import "./chunk-MEJH7VEA.js";
|
|
85
|
+
import "./chunk-UQECNXFA.js";
|
|
85
86
|
import "./chunk-VC76R6W2.js";
|
|
86
87
|
import "./chunk-OFQWTKPW.js";
|
|
87
88
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -92,24 +93,24 @@ import "./chunk-KGPLIH7B.js";
|
|
|
92
93
|
import "./chunk-LAGZGKKN.js";
|
|
93
94
|
import "./chunk-K4MJX7SR.js";
|
|
94
95
|
import "./chunk-WE42NVH7.js";
|
|
95
|
-
import "./chunk-
|
|
96
|
+
import "./chunk-HT3D5AKG.js";
|
|
97
|
+
import "./chunk-HYRPH6LL.js";
|
|
98
|
+
import "./chunk-AKMY4QVI.js";
|
|
96
99
|
import "./chunk-CZGHFATT.js";
|
|
97
|
-
import "./chunk-BIROA7JM.js";
|
|
98
|
-
import "./chunk-PBNWRWKA.js";
|
|
99
100
|
import {
|
|
100
101
|
isPathInside
|
|
101
|
-
} from "./chunk-
|
|
102
|
-
import "./chunk-
|
|
102
|
+
} from "./chunk-C2KEGBR3.js";
|
|
103
|
+
import "./chunk-T5ELONXY.js";
|
|
103
104
|
import "./chunk-FR7YBU3H.js";
|
|
104
105
|
import "./chunk-DPVXBVLL.js";
|
|
105
106
|
import "./chunk-GWTIFRF5.js";
|
|
106
107
|
import "./chunk-2RY2LWAA.js";
|
|
107
|
-
import "./chunk-
|
|
108
|
+
import "./chunk-EPQC3FGZ.js";
|
|
108
109
|
import "./chunk-WC4MTXGN.js";
|
|
109
110
|
import "./chunk-FBN2M2HK.js";
|
|
110
111
|
import {
|
|
111
112
|
withMeta
|
|
112
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-K5GMPWMG.js";
|
|
113
114
|
import "./chunk-BR2JQQC5.js";
|
|
114
115
|
import "./chunk-BLBMPEBX.js";
|
|
115
116
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -121,7 +122,7 @@ import {
|
|
|
121
122
|
} from "./chunk-DP5LF7GF.js";
|
|
122
123
|
import "./chunk-J3RXEDR2.js";
|
|
123
124
|
import "./chunk-QBXDU24O.js";
|
|
124
|
-
import "./chunk-
|
|
125
|
+
import "./chunk-P5QGZMGC.js";
|
|
125
126
|
import {
|
|
126
127
|
normalizeErrorMessage
|
|
127
128
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -336,7 +337,7 @@ function cleanupPreparedCompareVariants(variants) {
|
|
|
336
337
|
}
|
|
337
338
|
async function renderCompareVariant(variant, opts) {
|
|
338
339
|
try {
|
|
339
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
340
|
+
const { bundleToSingleHtml } = await import("./compiler-J7OZQIPD.js");
|
|
340
341
|
const html = await bundleToSingleHtml(variant.projectDir);
|
|
341
342
|
const server = await serveStaticProjectHtml(variant.projectDir, html);
|
|
342
343
|
try {
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
parsesAsScript,
|
|
21
21
|
prepareFlattenedInnerRoot,
|
|
22
22
|
validateHyperframeHtmlContract
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-FKBWONRY.js";
|
|
24
24
|
import {
|
|
25
25
|
AFTER_FONTS_SCRIPT_TYPE,
|
|
26
26
|
AUDIO_GROUP_RENDER_ID_ATTR,
|
|
@@ -58,26 +58,26 @@ import {
|
|
|
58
58
|
stripEmbeddedRuntimeScripts,
|
|
59
59
|
styleElementsFor,
|
|
60
60
|
wrapScopedCompositionScript
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-UQECNXFA.js";
|
|
62
62
|
import "./chunk-VC76R6W2.js";
|
|
63
63
|
import "./chunk-OFQWTKPW.js";
|
|
64
|
-
import "./chunk-
|
|
64
|
+
import "./chunk-HT3D5AKG.js";
|
|
65
|
+
import "./chunk-HYRPH6LL.js";
|
|
66
|
+
import "./chunk-AKMY4QVI.js";
|
|
65
67
|
import "./chunk-CZGHFATT.js";
|
|
66
|
-
import "./chunk-BIROA7JM.js";
|
|
67
|
-
import "./chunk-PBNWRWKA.js";
|
|
68
68
|
import {
|
|
69
69
|
CSS_URL_RE,
|
|
70
70
|
PATH_ATTRS,
|
|
71
71
|
checkSubCompositionUsability,
|
|
72
72
|
isNonRelativeUrl,
|
|
73
73
|
isPathInside
|
|
74
|
-
} from "./chunk-
|
|
75
|
-
import "./chunk-
|
|
74
|
+
} from "./chunk-C2KEGBR3.js";
|
|
75
|
+
import "./chunk-T5ELONXY.js";
|
|
76
76
|
import "./chunk-FR7YBU3H.js";
|
|
77
77
|
import "./chunk-DPVXBVLL.js";
|
|
78
78
|
import "./chunk-GWTIFRF5.js";
|
|
79
79
|
import "./chunk-2RY2LWAA.js";
|
|
80
|
-
import "./chunk-
|
|
80
|
+
import "./chunk-EPQC3FGZ.js";
|
|
81
81
|
import "./chunk-WC4MTXGN.js";
|
|
82
82
|
import "./chunk-M2WBOQ2Q.js";
|
|
83
83
|
export {
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
downloadRender,
|
|
9
9
|
runAssetImport
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CYE2NNFF.js";
|
|
11
11
|
import {
|
|
12
12
|
FigmaClientError,
|
|
13
13
|
createFigmaClient,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
readBindings,
|
|
17
17
|
resolveBindings,
|
|
18
18
|
withFigmaErrors
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-2HBB5U52.js";
|
|
20
20
|
import "./chunk-5ZBMHUY2.js";
|
|
21
21
|
import {
|
|
22
22
|
defineCommand
|
|
@@ -166,7 +166,7 @@ var component_default = defineCommand({
|
|
|
166
166
|
`${result.unresolved.length} binding(s) reference tokens not yet imported \u2014 colors baked as literals (flagged data-figma-unresolved). Run \`hyperframes figma tokens\` on the source/library file, then re-import to link them.`
|
|
167
167
|
);
|
|
168
168
|
}
|
|
169
|
-
const { trackFigmaImport } = await import("./telemetry-
|
|
169
|
+
const { trackFigmaImport } = await import("./telemetry-VXPSJ3X3.js");
|
|
170
170
|
trackFigmaImport({
|
|
171
171
|
phase: "component",
|
|
172
172
|
unresolvedBindings: result.unresolved.length,
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
} from "./chunk-ZBAF6L74.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProject
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SNFVQDKE.js";
|
|
13
13
|
import "./chunk-5ZBMHUY2.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-LAIGIOEA.js";
|
|
15
|
+
import "./chunk-45UOXUUH.js";
|
|
16
16
|
import "./chunk-PXVQOMKL.js";
|
|
17
17
|
import "./chunk-EQGKUPBJ.js";
|
|
18
18
|
import "./chunk-VLA6UJGH.js";
|
|
@@ -24,14 +24,15 @@ import "./chunk-54HJ63Q2.js";
|
|
|
24
24
|
import {
|
|
25
25
|
c
|
|
26
26
|
} from "./chunk-2GICKZ3I.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-4XQQQ4KN.js";
|
|
28
28
|
import "./chunk-Z5J67X44.js";
|
|
29
29
|
import "./chunk-5S7W3TUO.js";
|
|
30
30
|
import "./chunk-D3MUHMFG.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-FKBWONRY.js";
|
|
32
32
|
import "./chunk-YWRUQ7XZ.js";
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-OWFSGDQS.js";
|
|
34
|
+
import "./chunk-MEJH7VEA.js";
|
|
35
|
+
import "./chunk-UQECNXFA.js";
|
|
35
36
|
import "./chunk-VC76R6W2.js";
|
|
36
37
|
import "./chunk-OFQWTKPW.js";
|
|
37
38
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -43,28 +44,28 @@ import "./chunk-K4MJX7SR.js";
|
|
|
43
44
|
import "./chunk-WE42NVH7.js";
|
|
44
45
|
import {
|
|
45
46
|
resolveReferencedStart
|
|
46
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-HT3D5AKG.js";
|
|
48
|
+
import "./chunk-HYRPH6LL.js";
|
|
49
|
+
import {
|
|
50
|
+
readProjectFile
|
|
51
|
+
} from "./chunk-AKMY4QVI.js";
|
|
47
52
|
import {
|
|
48
53
|
resolveCompositionDuration
|
|
49
54
|
} from "./chunk-CZGHFATT.js";
|
|
50
|
-
import "./chunk-BIROA7JM.js";
|
|
51
|
-
import {
|
|
52
|
-
readProjectFile
|
|
53
|
-
} from "./chunk-PBNWRWKA.js";
|
|
54
55
|
import {
|
|
55
56
|
readDataDurationSeconds
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import "./chunk-
|
|
57
|
+
} from "./chunk-C2KEGBR3.js";
|
|
58
|
+
import "./chunk-T5ELONXY.js";
|
|
58
59
|
import "./chunk-FR7YBU3H.js";
|
|
59
60
|
import "./chunk-DPVXBVLL.js";
|
|
60
61
|
import "./chunk-GWTIFRF5.js";
|
|
61
62
|
import "./chunk-2RY2LWAA.js";
|
|
62
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-EPQC3FGZ.js";
|
|
63
64
|
import "./chunk-WC4MTXGN.js";
|
|
64
65
|
import "./chunk-FBN2M2HK.js";
|
|
65
66
|
import {
|
|
66
67
|
withMeta
|
|
67
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-K5GMPWMG.js";
|
|
68
69
|
import "./chunk-BR2JQQC5.js";
|
|
69
70
|
import "./chunk-BLBMPEBX.js";
|
|
70
71
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -72,7 +73,7 @@ import "./chunk-SJGE5I5F.js";
|
|
|
72
73
|
import "./chunk-DP5LF7GF.js";
|
|
73
74
|
import "./chunk-J3RXEDR2.js";
|
|
74
75
|
import "./chunk-QBXDU24O.js";
|
|
75
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-P5QGZMGC.js";
|
|
76
77
|
import "./chunk-E63BDV4Z.js";
|
|
77
78
|
import "./chunk-G7VEYUZ2.js";
|
|
78
79
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
compareWindowArgs,
|
|
9
|
+
jsonArg,
|
|
10
|
+
num,
|
|
11
|
+
roiArg,
|
|
12
|
+
runMeasure,
|
|
13
|
+
videoAndRoi,
|
|
14
|
+
videoArg,
|
|
15
|
+
window
|
|
16
|
+
} from "./chunk-WGOIJN57.js";
|
|
17
|
+
import {
|
|
18
|
+
Fix,
|
|
19
|
+
parseRoi,
|
|
20
|
+
probeVideo,
|
|
21
|
+
readFrames,
|
|
22
|
+
round
|
|
23
|
+
} from "./chunk-VJM6NX54.js";
|
|
24
|
+
import "./chunk-WWOHLNFO.js";
|
|
25
|
+
import {
|
|
26
|
+
defineCommand
|
|
27
|
+
} from "./chunk-DL4OD7IA.js";
|
|
28
|
+
import "./chunk-S3S4TGEH.js";
|
|
29
|
+
import "./chunk-2GICKZ3I.js";
|
|
30
|
+
import "./chunk-4XQQQ4KN.js";
|
|
31
|
+
import "./chunk-Z5J67X44.js";
|
|
32
|
+
import "./chunk-5S7W3TUO.js";
|
|
33
|
+
import "./chunk-D3MUHMFG.js";
|
|
34
|
+
import "./chunk-FKBWONRY.js";
|
|
35
|
+
import "./chunk-YWRUQ7XZ.js";
|
|
36
|
+
import "./chunk-OWFSGDQS.js";
|
|
37
|
+
import "./chunk-MEJH7VEA.js";
|
|
38
|
+
import "./chunk-UQECNXFA.js";
|
|
39
|
+
import "./chunk-VC76R6W2.js";
|
|
40
|
+
import "./chunk-OFQWTKPW.js";
|
|
41
|
+
import "./chunk-RQVDTPGD.js";
|
|
42
|
+
import "./chunk-3GXQPCJC.js";
|
|
43
|
+
import "./chunk-TK7THLRO.js";
|
|
44
|
+
import "./chunk-FXMKHHPO.js";
|
|
45
|
+
import "./chunk-X6JUUQCM.js";
|
|
46
|
+
import "./chunk-KGPLIH7B.js";
|
|
47
|
+
import "./chunk-K4MJX7SR.js";
|
|
48
|
+
import "./chunk-WE42NVH7.js";
|
|
49
|
+
import "./chunk-HT3D5AKG.js";
|
|
50
|
+
import "./chunk-HYRPH6LL.js";
|
|
51
|
+
import "./chunk-AKMY4QVI.js";
|
|
52
|
+
import "./chunk-CZGHFATT.js";
|
|
53
|
+
import "./chunk-C2KEGBR3.js";
|
|
54
|
+
import "./chunk-T5ELONXY.js";
|
|
55
|
+
import "./chunk-FR7YBU3H.js";
|
|
56
|
+
import "./chunk-DPVXBVLL.js";
|
|
57
|
+
import "./chunk-GWTIFRF5.js";
|
|
58
|
+
import "./chunk-2RY2LWAA.js";
|
|
59
|
+
import "./chunk-EPQC3FGZ.js";
|
|
60
|
+
import "./chunk-WC4MTXGN.js";
|
|
61
|
+
import "./chunk-FBN2M2HK.js";
|
|
62
|
+
import "./chunk-K5GMPWMG.js";
|
|
63
|
+
import "./chunk-BR2JQQC5.js";
|
|
64
|
+
import "./chunk-BLBMPEBX.js";
|
|
65
|
+
import "./chunk-ISN5GRYI.js";
|
|
66
|
+
import "./chunk-SJGE5I5F.js";
|
|
67
|
+
import "./chunk-DP5LF7GF.js";
|
|
68
|
+
import "./chunk-J3RXEDR2.js";
|
|
69
|
+
import "./chunk-QBXDU24O.js";
|
|
70
|
+
import "./chunk-P5QGZMGC.js";
|
|
71
|
+
import "./chunk-E63BDV4Z.js";
|
|
72
|
+
import "./chunk-G7VEYUZ2.js";
|
|
73
|
+
import "./chunk-XT6MXC7A.js";
|
|
74
|
+
import "./chunk-7KDQAD2W.js";
|
|
75
|
+
import "./chunk-M2WBOQ2Q.js";
|
|
76
|
+
|
|
77
|
+
// src/measure/curve.ts
|
|
78
|
+
var W = 240;
|
|
79
|
+
var PROPS = ["x", "y", "w", "h", "ink"];
|
|
80
|
+
var pw = (k) => [`power${k}.in`, (u) => u ** (k + 1)];
|
|
81
|
+
var pwo = (k) => [`power${k}.out`, (u) => 1 - (1 - u) ** (k + 1)];
|
|
82
|
+
var pwio = (k) => [
|
|
83
|
+
`power${k}.inOut`,
|
|
84
|
+
(u) => u < 0.5 ? 2 ** k * u ** (k + 1) : 1 - (-2 * u + 2) ** (k + 1) / 2
|
|
85
|
+
];
|
|
86
|
+
var back = (s) => [
|
|
87
|
+
`back.out(${s.toFixed(1)})`,
|
|
88
|
+
(u) => 1 + (s + 1) * (u - 1) ** 3 + s * (u - 1) ** 2
|
|
89
|
+
];
|
|
90
|
+
var elastic = (p) => [
|
|
91
|
+
`elastic.out(1,${p})`,
|
|
92
|
+
(u) => u <= 0 ? 0 : u >= 1 ? 1 : 2 ** (-10 * u) * Math.sin((u - p / 4) * 2 * Math.PI / p) + 1
|
|
93
|
+
];
|
|
94
|
+
var EASES = [
|
|
95
|
+
["none", (u) => u],
|
|
96
|
+
...[1, 2, 3, 4].flatMap((k) => [pw(k), pwo(k), pwio(k)]),
|
|
97
|
+
["sine.out", (u) => Math.sin(u * Math.PI / 2)],
|
|
98
|
+
["sine.inOut", (u) => -(Math.cos(Math.PI * u) - 1) / 2],
|
|
99
|
+
["expo.out", (u) => u >= 1 ? 1 : 1 - 2 ** (-10 * u)],
|
|
100
|
+
["circ.out", (u) => Math.sqrt(1 - (u - 1) ** 2)],
|
|
101
|
+
...Array.from({ length: 26 }, (_, i) => back(0.5 + i * 0.1)),
|
|
102
|
+
...[0.2, 0.25, 0.3, 0.4, 0.5].map(elastic)
|
|
103
|
+
];
|
|
104
|
+
function track(path, start, seconds, roi, { bg = null, thr = 24 } = {}) {
|
|
105
|
+
const fps = probeVideo(path).fps;
|
|
106
|
+
const width = Math.min(W, roi[2]);
|
|
107
|
+
const { frames: fs, h } = readFrames(path, { start, seconds, roi, width });
|
|
108
|
+
const first = fs[0];
|
|
109
|
+
if (!first)
|
|
110
|
+
throw new Fix(
|
|
111
|
+
`no frames between ${start}s and ${start + seconds}s`,
|
|
112
|
+
"pick a window inside the video"
|
|
113
|
+
);
|
|
114
|
+
const k = roi[2] / width;
|
|
115
|
+
let ref = bg;
|
|
116
|
+
if (!ref) {
|
|
117
|
+
const border = [[], [], []];
|
|
118
|
+
for (let y = 0; y < h; y++)
|
|
119
|
+
for (let x = 0; x < width; x++)
|
|
120
|
+
if (x < 2 || y < 2 || x >= width - 2 || y >= h - 2)
|
|
121
|
+
for (let c = 0; c < 3; c++) border[c].push(first[(y * width + x) * 3 + c]);
|
|
122
|
+
ref = border.map((v) => v.sort((a, b) => a - b)[v.length >> 1]);
|
|
123
|
+
}
|
|
124
|
+
const [r0, g0, b0] = [ref[0], ref[1], ref[2]];
|
|
125
|
+
const rows = fs.map((f, i) => {
|
|
126
|
+
const xs = [];
|
|
127
|
+
const ys = [];
|
|
128
|
+
let ink = 0;
|
|
129
|
+
for (let y = 0; y < h; y++)
|
|
130
|
+
for (let x = 0; x < width; x++) {
|
|
131
|
+
const j = (y * width + x) * 3;
|
|
132
|
+
const d = Math.max(
|
|
133
|
+
Math.abs(f[j] - r0),
|
|
134
|
+
Math.abs(f[j + 1] - g0),
|
|
135
|
+
Math.abs(f[j + 2] - b0)
|
|
136
|
+
);
|
|
137
|
+
ink += d;
|
|
138
|
+
if (d > thr) {
|
|
139
|
+
xs.push(x);
|
|
140
|
+
ys.push(y);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
const t = round(start + i / fps, 3);
|
|
144
|
+
if (xs.length < 4) return { t, x: null, y: null, w: 0, h: 0, ink: round(ink / (width * h), 2) };
|
|
145
|
+
xs.sort((a, b) => a - b);
|
|
146
|
+
ys.sort((a, b) => a - b);
|
|
147
|
+
const q = (v, p) => v[Math.min(v.length - 1, Math.floor(v.length * p))];
|
|
148
|
+
const [x0, x1, y0, y1] = [q(xs, 0.01), q(xs, 0.99), q(ys, 0.01), q(ys, 0.99)];
|
|
149
|
+
return {
|
|
150
|
+
t,
|
|
151
|
+
x: round(roi[0] + (x0 + x1 + 1) / 2 * k, 1),
|
|
152
|
+
y: round(roi[1] + (y0 + y1 + 1) / 2 * k, 1),
|
|
153
|
+
w: round((x1 - x0 + 1) * k, 1),
|
|
154
|
+
h: round((y1 - y0 + 1) * k, 1),
|
|
155
|
+
ink: round(ink / (width * h), 2)
|
|
156
|
+
};
|
|
157
|
+
});
|
|
158
|
+
return { fps, bg: ref, rows };
|
|
159
|
+
}
|
|
160
|
+
function fit(rows, idx, v, prop, fps, a, b) {
|
|
161
|
+
const [v0, v1] = [v[a], v[b]];
|
|
162
|
+
const span = v1 - v0;
|
|
163
|
+
const p = v.slice(a, b + 1).map((x) => (x - v0) / span);
|
|
164
|
+
const u = p.map((_, i) => i / Math.max(1, p.length - 1));
|
|
165
|
+
const fits = EASES.map(([name, f]) => ({
|
|
166
|
+
name,
|
|
167
|
+
rmse: Math.sqrt(p.reduce((s, x, i) => s + (x - f(u[i])) ** 2, 0) / p.length)
|
|
168
|
+
})).sort((m, n) => m.rmse - n.rmse);
|
|
169
|
+
return {
|
|
170
|
+
prop,
|
|
171
|
+
from: round(v0, 1),
|
|
172
|
+
to: round(v1, 1),
|
|
173
|
+
start_s: rows[idx[a]].t,
|
|
174
|
+
duration_s: round((idx[b] - idx[a]) / fps, 3),
|
|
175
|
+
frames: idx[b] - idx[a],
|
|
176
|
+
overshoot_pct: round(Math.max(0, Math.max(...p) - 1) * 100, 1),
|
|
177
|
+
anticipation_pct: round(Math.max(0, -Math.min(...p)) * 100, 1),
|
|
178
|
+
ease: fits[0].name,
|
|
179
|
+
rmse: round(fits[0].rmse, 3),
|
|
180
|
+
next: fits.slice(1, 3).map((f) => `${f.name} ${round(f.rmse, 3)}`),
|
|
181
|
+
curve: Array.from(
|
|
182
|
+
{ length: 21 },
|
|
183
|
+
(_, i) => round(p[Math.round(i / 20 * (p.length - 1))], 3)
|
|
184
|
+
)
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
function fitMoves(rows, prop, fps, minChange, quant) {
|
|
188
|
+
const idx = rows.flatMap((r, i) => r[prop] == null ? [] : [i]);
|
|
189
|
+
const v = idx.map((i) => rows[i][prop] ?? 0);
|
|
190
|
+
const out = [];
|
|
191
|
+
for (let i = 0; i < v.length - 1; ) {
|
|
192
|
+
if (Math.abs(v[i + 1] - v[i]) <= quant) {
|
|
193
|
+
i++;
|
|
194
|
+
continue;
|
|
195
|
+
}
|
|
196
|
+
const hold = Math.max(3, Math.round(0.15 * fps));
|
|
197
|
+
let [b, still] = [i + 1, 0];
|
|
198
|
+
for (let j = i + 1; j < v.length - 1 && still < hold; j++)
|
|
199
|
+
if (Math.abs(v[j + 1] - v[j]) <= quant) still++;
|
|
200
|
+
else [still, b] = [0, j + 1];
|
|
201
|
+
const span = v[b] - v[i];
|
|
202
|
+
const peak = v.slice(i, b + 1).reduce((m, x) => Math.abs(x - v[i]) > Math.abs(m - v[i]) ? x : m, v[i]);
|
|
203
|
+
let a = i;
|
|
204
|
+
while (a < b - 2 && Math.abs(v[a + 1] - v[a]) < 0.03 * Math.abs(span)) a++;
|
|
205
|
+
if (Math.abs(span) >= minChange) out.push(fit(rows, idx, v, prop, fps, a, b));
|
|
206
|
+
else if (Math.abs(peak - v[i]) >= minChange)
|
|
207
|
+
out.push({
|
|
208
|
+
prop,
|
|
209
|
+
pulse: true,
|
|
210
|
+
from: round(v[i], 1),
|
|
211
|
+
peak: round(peak, 1),
|
|
212
|
+
start_s: rows[idx[i]].t,
|
|
213
|
+
duration_s: round((idx[b] - idx[i]) / fps, 3),
|
|
214
|
+
frames: idx[b] - idx[i]
|
|
215
|
+
});
|
|
216
|
+
i = b;
|
|
217
|
+
}
|
|
218
|
+
return out;
|
|
219
|
+
}
|
|
220
|
+
function curves(path, start, seconds, roi, opts = {}) {
|
|
221
|
+
const { fps, bg, rows } = track(path, start, seconds, roi, opts);
|
|
222
|
+
const minPx = 0.02 * Math.max(roi[2], roi[3]);
|
|
223
|
+
const step = roi[2] / Math.min(W, roi[2]);
|
|
224
|
+
const moves = PROPS.flatMap(
|
|
225
|
+
(k) => k === "ink" ? fitMoves(rows, k, fps, 2, 0.5) : fitMoves(rows, k, fps, minPx, step)
|
|
226
|
+
).sort((m, n) => m.start_s - n.start_s);
|
|
227
|
+
return { start, seconds, roi, fps: round(fps, 2), bg, moves };
|
|
228
|
+
}
|
|
229
|
+
function compareCurves(ref, yours) {
|
|
230
|
+
const family = (s) => s.replace(/\(.*\)/, "").replace(/\d/, "");
|
|
231
|
+
return ref.moves.map((m) => {
|
|
232
|
+
const rel = m.start_s - ref.start;
|
|
233
|
+
const d = yours.moves.filter((x) => x.prop === m.prop && !!x.pulse === !!m.pulse).sort(
|
|
234
|
+
(x, y) => Math.abs(x.start_s - yours.start - rel) - Math.abs(y.start_s - yours.start - rel)
|
|
235
|
+
)[0];
|
|
236
|
+
const head = { prop: m.prop, at_s: round(rel, 2) };
|
|
237
|
+
if (!d) return { ...head, yours: "no matching move" };
|
|
238
|
+
const common = {
|
|
239
|
+
...head,
|
|
240
|
+
start_offset_s: round(d.start_s - yours.start - rel, 3),
|
|
241
|
+
duration_frames: `${m.frames} \u2192 ${d.frames}`
|
|
242
|
+
};
|
|
243
|
+
if (m.pulse || d.pulse)
|
|
244
|
+
return {
|
|
245
|
+
...common,
|
|
246
|
+
pulse: true,
|
|
247
|
+
peak: `${m.pulse ? m.peak : m.to} \u2192 ${d.pulse ? d.peak : d.to}`
|
|
248
|
+
};
|
|
249
|
+
return {
|
|
250
|
+
...common,
|
|
251
|
+
ease: `${m.ease} \u2192 ${d.ease}`,
|
|
252
|
+
same_family: family(m.ease) === family(d.ease),
|
|
253
|
+
overshoot_pct: `${m.overshoot_pct} \u2192 ${d.overshoot_pct}`,
|
|
254
|
+
curve_rmse: round(
|
|
255
|
+
Math.sqrt(m.curve.reduce((s, x, i) => s + (x - d.curve[i]) ** 2, 0) / m.curve.length),
|
|
256
|
+
3
|
|
257
|
+
)
|
|
258
|
+
};
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
var printable = (moves) => moves.map((m) => m.pulse ? m : { ...m, curve: void 0 });
|
|
262
|
+
|
|
263
|
+
// src/commands/measure/curve.ts
|
|
264
|
+
var examples = [
|
|
265
|
+
[
|
|
266
|
+
"The ease, duration and overshoot of one element's move",
|
|
267
|
+
"hyperframes measure curve original.mp4 --start 2.1 --end 3 --roi 240,280,600,540"
|
|
268
|
+
],
|
|
269
|
+
[
|
|
270
|
+
"The same move in your render, paired with the original's",
|
|
271
|
+
"hyperframes measure curve original.mp4 --start 2.1 --end 3 --roi 240,280,600,540 --compare renders/final.mp4 --compare-start 2.1"
|
|
272
|
+
]
|
|
273
|
+
];
|
|
274
|
+
function hex(text) {
|
|
275
|
+
const m = /^#?([0-9a-f]{6})$/i.exec(text);
|
|
276
|
+
if (!m) throw new Fix(`--bg must be #rrggbb, got "${text}"`, "--bg #101820");
|
|
277
|
+
return [0, 2, 4].map((i) => parseInt(m[1].slice(i, i + 2), 16));
|
|
278
|
+
}
|
|
279
|
+
var curve_default = defineCommand({
|
|
280
|
+
meta: {
|
|
281
|
+
name: "curve",
|
|
282
|
+
description: "Each move of one element on a flat background: start, duration, overshoot and the closest GSAP ease"
|
|
283
|
+
},
|
|
284
|
+
args: {
|
|
285
|
+
video: videoArg,
|
|
286
|
+
start: { type: "string", description: "Window start in seconds (default 0)" },
|
|
287
|
+
end: { type: "string", description: "Window end in seconds (default: the end)" },
|
|
288
|
+
roi: {
|
|
289
|
+
...roiArg,
|
|
290
|
+
description: "Region holding the whole move, overshoot included, and nothing else that moves"
|
|
291
|
+
},
|
|
292
|
+
bg: { type: "string", description: "Background #rrggbb (default: the ROI border's median)" },
|
|
293
|
+
thr: {
|
|
294
|
+
type: "string",
|
|
295
|
+
description: "Pixel distance from the background that counts as the element (24)"
|
|
296
|
+
},
|
|
297
|
+
compare: {
|
|
298
|
+
type: "string",
|
|
299
|
+
description: "A second video (your render) to measure the same way"
|
|
300
|
+
},
|
|
301
|
+
...compareWindowArgs,
|
|
302
|
+
json: jsonArg
|
|
303
|
+
},
|
|
304
|
+
run: ({ args }) => runMeasure(() => {
|
|
305
|
+
const { info, roi } = videoAndRoi(args.video, args.roi);
|
|
306
|
+
const [start, end] = window(info, args.start, args.end);
|
|
307
|
+
const opts = { bg: args.bg ? hex(args.bg) : null, thr: num(args.thr, "--thr", 24) };
|
|
308
|
+
const ref = curves(info.path, start, end - start, roi, opts);
|
|
309
|
+
if (!args.compare) return { video: info.path, ...ref, moves: printable(ref.moves) };
|
|
310
|
+
const other = probeVideo(args.compare);
|
|
311
|
+
const yoursRoi = args["compare-roi"] ? parseRoi(args["compare-roi"], other.width, other.height) : roi;
|
|
312
|
+
const yours = curves(
|
|
313
|
+
other.path,
|
|
314
|
+
num(args["compare-start"], "--compare-start", start),
|
|
315
|
+
end - start,
|
|
316
|
+
yoursRoi,
|
|
317
|
+
opts
|
|
318
|
+
);
|
|
319
|
+
return {
|
|
320
|
+
compare: compareCurves(ref, yours),
|
|
321
|
+
reference: printable(ref.moves),
|
|
322
|
+
yours: printable(yours.moves)
|
|
323
|
+
};
|
|
324
|
+
})
|
|
325
|
+
});
|
|
326
|
+
export {
|
|
327
|
+
curve_default as default,
|
|
328
|
+
examples
|
|
329
|
+
};
|