hyperframes 0.9.19 → 0.9.21
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-YT7BMWZB.js → add-VQVP3JPZ.js} +14 -15
- package/dist/{agentPromptGenerator-VKOL4XCD.js → agentPromptGenerator-PAFWQGHU.js} +10 -11
- package/dist/{animatedGifPrep-MD4BNSPH.js → animatedGifPrep-AK26JDVM.js} +10 -11
- package/dist/api.js +36 -37
- package/dist/{appHistory-WXJ4STHX.js → appHistory-FVDSCS64.js} +1 -1
- package/dist/{asset-J42DGWPQ.js → asset-N6RZSN44.js} +2 -2
- package/dist/{assetCataloger-XDZB53RE.js → assetCataloger-GWF6II54.js} +11 -12
- package/dist/{audio-6EV56WMQ.js → audio-ZHVBBQRA.js} +70 -26
- package/dist/{auth-ECYU3HT4.js → auth-AJM3YSN6.js} +4 -4
- package/dist/{autoUpdate-HIKCPXQA.js → autoUpdate-GV4LPAJX.js} +2 -2
- package/dist/{avatars-X7DEU57Y.js → avatars-5EKOR2DW.js} +16 -17
- package/dist/{backgroundChecks-IYWWBPTC.js → backgroundChecks-J4XJD4ET.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-3TAV6XQQ.js → batchRender-UKQ36JT2.js} +5 -6
- package/dist/{beats-IFJBCISA.js → beats-LXYHFVPP.js} +11 -12
- package/dist/{benchmark-OS6LVCAY.js → benchmark-KXR56MIT.js} +11 -12
- package/dist/{billing-4NRHG5FO.js → billing-3XQYSAKP.js} +15 -16
- package/dist/{browser-CFI3GKFB.js → browser-P52FDITF.js} +16 -4
- package/dist/{bundleWithLocalizedFonts-6YHKES5G.js → bundleWithLocalizedFonts-I3KWYN6X.js} +1 -1
- package/dist/{capture-SNHDWW7W.js → capture-2PSBIAL2.js} +3 -3
- package/dist/{capture-4H3W3FNF.js → capture-SMWSGGMG.js} +22 -23
- package/dist/{captureCompositionFrame-BH4UMGJP.js → captureCompositionFrame-WRY5ATM7.js} +16 -17
- package/dist/{catalog-RZOQ54KZ.js → catalog-JIO6RXSR.js} +14 -15
- package/dist/{catch-up-PA4QGVNL.js → catch-up-A73H7VGC.js} +18 -7
- package/dist/{check-J2TCCJL5.js → check-FI7SUTK7.js} +43 -42
- package/dist/{checkAudio-RIFMEOQI.js → checkAudio-73DDBXXJ.js} +13 -14
- package/dist/{checkBrowser-M4YCLLDJ.js → checkBrowser-X5VVYQES.js} +35 -36
- package/dist/{chunk-E3GBPA37.js → chunk-2HRKRRQH.js} +2 -2
- package/dist/{chunk-OR2FAQFS.js → chunk-3FG3YAHZ.js} +1 -1
- package/dist/{chunk-BJUPV6I3.js → chunk-3OIUJOIR.js} +1 -1
- package/dist/{chunk-FSTINYWN.js → chunk-3TLAQU62.js} +1 -1
- package/dist/{chunk-DTJV7ST5.js → chunk-3ZXKEGKV.js} +1 -1
- package/dist/{chunk-ABT7WBZZ.js → chunk-4EL5RKLS.js} +1 -1
- package/dist/{chunk-TOD5PQJF.js → chunk-4EMQHF3T.js} +2 -2
- package/dist/{chunk-6OBCXHIF.js → chunk-4FNJ2QNP.js} +4 -4
- package/dist/{chunk-3QIHS5V3.js → chunk-4NLG5TO6.js} +3 -3
- package/dist/{chunk-63LNVITK.js → chunk-4UXCWPHU.js} +1 -1
- package/dist/{chunk-UPURJC4I.js → chunk-4ZLMVX3O.js} +1 -1
- package/dist/{chunk-IV2R3NET.js → chunk-5PY66UGZ.js} +3 -3
- package/dist/{chunk-ZPJYWAAS.js → chunk-7ETNIXIN.js} +1 -1
- package/dist/{chunk-HNGHIX26.js → chunk-7EUZAQD6.js} +35 -2
- package/dist/{chunk-BEAEO4OV.js → chunk-A2NL7HGF.js} +1 -1
- package/dist/{chunk-JWQHGM3V.js → chunk-A4JU6QUG.js} +1 -1
- package/dist/{chunk-WMRHEI4N.js → chunk-ADJCNH7M.js} +1 -1
- package/dist/{chunk-ENVFGBRD.js → chunk-AXFYCH7S.js} +12 -0
- package/dist/{chunk-RRGH76QX.js → chunk-BABCRBAO.js} +38 -4
- package/dist/{chunk-SVT6FCQX.js → chunk-BUCJXB6D.js} +1 -1
- package/dist/{chunk-3UYQMVJS.js → chunk-C4KYJSSF.js} +9 -9
- package/dist/{chunk-N7D6YUGR.js → chunk-CFOJE3VR.js} +2 -2
- package/dist/{chunk-GKLZMLX3.js → chunk-CXUT4XVT.js} +22 -1
- package/dist/{chunk-2DPQ347C.js → chunk-CZK7A5IB.js} +4 -4
- package/dist/{chunk-3XJM7XZN.js → chunk-D3NWGOXW.js} +30 -0
- package/dist/{chunk-PTIOZJMF.js → chunk-D7C6NOOO.js} +2 -2
- package/dist/{chunk-H3YZRS32.js → chunk-DXIGIMRP.js} +2 -2
- package/dist/{chunk-T655WZ4R.js → chunk-DYPAXBNK.js} +1 -1
- package/dist/{chunk-4FFKOLNM.js → chunk-DZQEPGNY.js} +3 -3
- package/dist/{chunk-RKRJAQFI.js → chunk-F4XUCHQQ.js} +1 -1
- package/dist/{chunk-URGLY5QV.js → chunk-FASKJUYU.js} +98 -35
- package/dist/{chunk-7EN7RIPV.js → chunk-FET6WMTX.js} +2 -2
- package/dist/{chunk-WRBUQRJJ.js → chunk-FOX7LXZ2.js} +1 -1
- package/dist/chunk-FRBQYFUV.js +481 -0
- package/dist/{chunk-XPIP5ZV3.js → chunk-G5UZHDEZ.js} +2 -2
- package/dist/{chunk-AKEZ2BEE.js → chunk-G77Z4GWC.js} +1 -1
- package/dist/{chunk-6AYTP32B.js → chunk-GG7RYSIU.js} +1 -1
- package/dist/{chunk-KXZD37E5.js → chunk-GH6GWAID.js} +1 -1
- package/dist/{chunk-2LZO4FX3.js → chunk-GKOSN3Q6.js} +3 -3
- package/dist/chunk-GREVQ2SM.js +5035 -0
- package/dist/{chunk-J3QW55W5.js → chunk-H6676SHA.js} +1 -1
- package/dist/{chunk-SJUFAZV5.js → chunk-H7N3J7Y3.js} +2 -2
- package/dist/{chunk-RWJFNJUE.js → chunk-HCFBCEJT.js} +1 -1
- package/dist/{chunk-NKK2FRY7.js → chunk-I7WVS7WN.js} +1 -1
- package/dist/{chunk-UIUILBMB.js → chunk-IFY5ACTF.js} +13 -13
- package/dist/{chunk-M3EGX3ID.js → chunk-IQR26ZJD.js} +5 -5
- package/dist/{chunk-XYHAXHOH.js → chunk-IRWQMKV7.js} +1 -1
- package/dist/{chunk-HY5KQ4KT.js → chunk-ITO3VCCW.js} +10 -10
- package/dist/{chunk-XKYXENEP.js → chunk-JNN2CTGU.js} +2 -2
- package/dist/{chunk-6KBDQAZC.js → chunk-JT6LFFYK.js} +1 -1
- package/dist/{chunk-L24NAUBS.js → chunk-KBHBSWEE.js} +64 -19
- package/dist/{chunk-XQD6XWE3.js → chunk-L2SQTHMP.js} +1 -1
- package/dist/{chunk-ZVDYDMQA.js → chunk-L4C4F4O3.js} +3 -3
- package/dist/{chunk-RLXUABCX.js → chunk-LDO7SB4J.js} +12 -5
- package/dist/{chunk-IPXNWK7O.js → chunk-LGSSYJS2.js} +2 -2
- package/dist/{chunk-ATUCYH5L.js → chunk-LIFQONFJ.js} +1 -1
- package/dist/{chunk-NTMMUK6Q.js → chunk-LLUKDUVS.js} +38 -20
- package/dist/{chunk-IDNKBZNX.js → chunk-LMUF3BGR.js} +1 -1
- package/dist/{chunk-5PC5FMF4.js → chunk-LQBZCXMR.js} +3 -3
- package/dist/{chunk-L6YCPDRH.js → chunk-M32FE7JZ.js} +3 -3
- package/dist/{chunk-BYVDFTG6.js → chunk-M7Z2SEQG.js} +2 -2
- package/dist/{chunk-RL3CNZAX.js → chunk-MERPHIUD.js} +2 -2
- package/dist/{chunk-JWORQ5WQ.js → chunk-MFDNMTOP.js} +1 -1
- package/dist/{chunk-CBHNARFI.js → chunk-MNMIIDOX.js} +1 -1
- package/dist/{chunk-PMAGFCRB.js → chunk-NBHVLN5J.js} +7 -7
- package/dist/{chunk-Z2BBCW57.js → chunk-NTNNGWKO.js} +3 -3
- package/dist/{chunk-VXZOWF6M.js → chunk-ONBYVA2L.js} +62 -25
- package/dist/{chunk-G2HKE5CX.js → chunk-OQ6VGBQV.js} +1 -1
- package/dist/{chunk-GNING3UV.js → chunk-OXMEC34G.js} +1 -1
- package/dist/{chunk-VGAKHIDG.js → chunk-OXUX73RX.js} +10 -10
- package/dist/{chunk-A5MTIN4M.js → chunk-P7WDQTQZ.js} +1 -1
- package/dist/chunk-PJNDSYJV.js +525 -0
- package/dist/{chunk-X2TDLUIK.js → chunk-PPOJMJR5.js} +51 -16
- package/dist/{chunk-67JLV22D.js → chunk-Q2LO2ZF6.js} +3 -3
- package/dist/{chunk-CPFG5QSQ.js → chunk-QAES6F2D.js} +7 -7
- package/dist/{chunk-FJXBDFH6.js → chunk-QXVJ33BP.js} +362 -190
- package/dist/{chunk-WAY7TXDD.js → chunk-RLY4LECT.js} +2 -2
- package/dist/{chunk-JDAYOJGJ.js → chunk-RQIR2BOG.js} +1 -1
- package/dist/{chunk-YCXW65RT.js → chunk-RYRSI623.js} +5 -5
- package/dist/{chunk-BUIZAY4L.js → chunk-TERSCNBN.js} +19 -8
- package/dist/{chunk-I4G55F5J.js → chunk-TLNKHH52.js} +1 -1
- package/dist/{chunk-I2L7KR3N.js → chunk-UFMWWEL3.js} +7 -7
- package/dist/{chunk-GZK32KOL.js → chunk-W62DJ5ZK.js} +5 -5
- package/dist/{chunk-TLZCUWHQ.js → chunk-WFEKL42K.js} +266 -61
- package/dist/{chunk-LDFI55LW.js → chunk-WZCSU7ZP.js} +1 -1
- package/dist/{chunk-7HROKMNQ.js → chunk-XC5PF4T4.js} +4 -4
- package/dist/{chunk-2752JKE6.js → chunk-XQUO3BOS.js} +65 -21
- package/dist/{chunk-2AL2DME3.js → chunk-XRNXGF7I.js} +2 -2
- package/dist/{chunk-QEFMUD5U.js → chunk-YALKIB2K.js} +1 -1
- package/dist/{chunk-W6Q7Q7BS.js → chunk-YQV44DRO.js} +77 -2
- package/dist/{chunk-WBXUGXZP.js → chunk-YZKRMBYH.js} +1 -1
- package/dist/{chunk-D33DCBBM.js → chunk-ZEQOP7XA.js} +2 -2
- package/dist/{chunk-YBUZQGMX.js → chunk-ZFYCYUVY.js} +2 -2
- package/dist/{chunk-LFSSI7W3.js → chunk-ZH3SXWCV.js} +42 -15
- package/dist/{chunk-TJUJJYJC.js → chunk-ZNFYQMFN.js} +2 -2
- package/dist/{clean-PMM6YUQ3.js → clean-PILJFGU2.js} +20 -21
- package/dist/cli.js +62 -62
- package/dist/{cloud-D3WTNTF2.js → cloud-D7DFYONW.js} +4 -4
- package/dist/{cloud-OIPASJZZ.js → cloud-HBMQH4EU.js} +4 -4
- package/dist/{cloudrun-3TXJ2QOV.js → cloudrun-JZQMF5DS.js} +6 -7
- package/dist/commands/layout-audit.browser.js +287 -23
- package/dist/{compare-NC7JQXZH.js → compare-5RSAPYJI.js} +32 -33
- package/dist/{compiler-C2HCN5CA.js → compiler-T4BPLRFY.js} +4 -4
- package/dist/{component-M2VJD3QI.js → component-DMHFV7BD.js} +3 -3
- package/dist/{compositions-3QMQV5OS.js → compositions-OW776OLK.js} +14 -15
- package/dist/{curve-S3VZXTYX.js → curve-4GNM7DWM.js} +14 -15
- package/dist/{cuts-O3OKZGPU.js → cuts-M5R2LKDZ.js} +15 -16
- package/dist/{delete-RFDRT4K6.js → delete-MYG77L66.js} +7 -7
- package/dist/{deploy-LIQXICPP.js → deploy-FGHE4FID.js} +1 -1
- package/dist/{describeProject-IUAV4C55.js → describeProject-SLAKVOOS.js} +11 -12
- package/dist/{deterministicFonts-DQDB47K3.js → deterministicFonts-IXXU76SA.js} +1 -1
- package/dist/{diff-F434Y7GL.js → diff-TNHEXG72.js} +35 -36
- package/dist/{dist-KA45Z5SZ.js → dist-23VTYBIX.js} +11 -12
- package/dist/{dist-URQMS2HM.js → dist-5ITUK4AA.js} +6 -4
- package/dist/{dist-6N5S5326.js → dist-PEDQQRFU.js} +17 -17
- package/dist/docs/motion-blur.md +3 -5
- package/dist/{doctor-VAEAFW3N.js → doctor-ILCPSC6S.js} +14 -15
- package/dist/{energy-HQG367CH.js → energy-SCJII6HC.js} +15 -16
- package/dist/{events-R55FOR6B.js → events-D2QORX35.js} +2 -2
- package/dist/{events-M457QJCL.js → events-OHIGKF4W.js} +16 -4
- package/dist/{events-3HQKXGJN.js → events-ZMK5VRA2.js} +17 -18
- package/dist/{extract-KSYOILWX.js → extract-OD3LI3YL.js} +15 -16
- package/dist/{face-IOYVA3KO.js → face-SFQDTQXC.js} +15 -16
- package/dist/{feedback-OLY2Y2HB.js → feedback-N3JK4ULK.js} +18 -19
- package/dist/{ffmpeg-POWBUKIU.js → ffmpeg-E55HQX7V.js} +10 -11
- package/dist/{figma-PYAOGAQ7.js → figma-JYVZPN5L.js} +3 -3
- package/dist/fontLocalizeCli.js +14 -15
- package/dist/{frames-RIUU6JZF.js → frames-BLCIN32Q.js} +16 -17
- package/dist/{generate-TVFTFEHB.js → generate-B7MUYYON.js} +27 -28
- package/dist/{get-ASVUBVPU.js → get-VQWG2NY4.js} +7 -7
- package/dist/{gpuPolicy-QDYHFIDS.js → gpuPolicy-3TMFL6TM.js} +10 -11
- package/dist/{grade-compare-2TVGR2WJ.js → grade-compare-LCS5CBNW.js} +33 -34
- package/dist/{heifImagePrep-ZDQ6FE6L.js → heifImagePrep-VHAJEZGL.js} +11 -12
- package/dist/{help-MZHLMNGB.js → help-GSE5DFSB.js} +1 -1
- package/dist/{history-CCPMGESN.js → history-RSB65UN3.js} +19 -8
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +65 -65
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-5CRW7PXR.js → info-FLLONVY5.js} +16 -17
- package/dist/{init-6U5JDVOC.js → init-EAKY3LFR.js} +30 -31
- package/dist/{ink-BVK6K2CB.js → ink-ZDZVD5CD.js} +15 -16
- package/dist/{inspect-NUGGYSLQ.js → inspect-LFEK6HOL.js} +33 -34
- package/dist/{installer-TBUJ66L6.js → installer-5NJVGV6X.js} +6 -7
- package/dist/{keyframes-N5637YSK.js → keyframes-TZBDB442.js} +16 -8
- package/dist/{lambda-VPSI7MTF.js → lambda-RYX5NXX5.js} +14 -15
- package/dist/{layout-FHJ2SQTW.js → layout-VATFBERH.js} +33 -34
- package/dist/{lint-XPRHASUK.js → lint-QAGBHUXZ.js} +27 -13
- package/dist/{lintProject-6TML32JZ.js → lintProject-BC5ISNKQ.js} +2 -2
- package/dist/{list-TST4Z4GR.js → list-VQZOLGEO.js} +7 -7
- package/dist/{localPage-NR4NBUTZ.js → localPage-ZEJ7ZKIE.js} +10 -11
- package/dist/{login-64KOPWVK.js → login-7BL2N6JG.js} +6 -6
- package/dist/{logout-EQ2HJDL4.js → logout-EKDVIU6Y.js} +2 -2
- package/dist/{look-VBHITYXG.js → look-OKDV2W4W.js} +15 -16
- package/dist/{manager-OAK67I5F.js → manager-QPEMMSLW.js} +11 -12
- package/dist/{measure-NNQ6XXH2.js → measure-WJ6TR545.js} +11 -11
- package/dist/{media-treatment-M2X3Q5NV.js → media-treatment-QYQVLCYP.js} +16 -17
- package/dist/{media-use-ZGJJL6KV.js → media-use-OWKQQSPJ.js} +4 -4
- package/dist/{models-Y24YJJ6P.js → models-FZ4HL5BX.js} +14 -15
- package/dist/{motionShot-KMU2SMX6.js → motionShot-IHZ544WM.js} +19 -20
- package/dist/{normalize-audio-27XH53UL.js → normalize-audio-77ZTAPPL.js} +11 -12
- package/dist/{open-6MLQR2BC.js → open-Q7AAAYVN.js} +70 -20
- package/dist/{parakeetRunner-BMK7KY7W.js → parakeetRunner-TAMKXXNN.js} +15 -16
- package/dist/{pipeline-AILSBZUB.js → pipeline-MK7LCHQD.js} +13 -14
- package/dist/{play-VTM2B4CS.js → play-WBLWBDBS.js} +22 -23
- package/dist/{preflight-IRQCF5ZW.js → preflight-O2EH2LOC.js} +11 -12
- package/dist/{present-JQH4CETR.js → present-3GW46ZYF.js} +18 -19
- package/dist/{preview-KGMCKLBI.js → preview-MPAHNXEJ.js} +57 -504
- package/dist/{probe-IP6W7U4A.js → probe-4F2PK26B.js} +15 -16
- package/dist/{producer-PRYLGX6W.js → producer-T462QJC7.js} +1 -1
- package/dist/{projectConfig-6WPGQGI3.js → projectConfig-T3WVF6H4.js} +8 -9
- package/dist/{publication-25E6ZMLB.js → publication-DX3VDYCI.js} +4 -5
- package/dist/{publish-6QT26AMU.js → publish-VNMKJMAK.js} +15 -16
- package/dist/{refresh-ARZZRKMP.js → refresh-ZHLUUENK.js} +2 -2
- package/dist/{remove-background-CVQQZNQQ.js → remove-background-7LE4IIOE.js} +14 -15
- package/dist/{render-3VHULZTP.js → render-5PTZ5VLW.js} +7 -8
- package/dist/{render-PUXPIIGJ.js → render-JKUR7OI2.js} +76 -39
- package/dist/{render-VMHF2RVD.js → render-RPHNBD4F.js} +42 -39
- package/dist/{render-batch-UKWKZUJM.js → render-batch-X2QMZUYH.js} +7 -8
- package/dist/renderSetupWorker.js +11 -8
- package/dist/{resolver-KEMGGVU7.js → resolver-AXDCEJ77.js} +6 -7
- package/dist/{reverse-4BCCUHPA.js → reverse-DQSOSC5W.js} +1 -1
- package/dist/{run-WZP6HXIH.js → run-IQLZHH6D.js} +5 -5
- package/dist/{screenshotCapture-VGOH65YU.js → screenshotCapture-EAATIOT3.js} +11 -12
- package/dist/{sherpa-AQJGVMWJ.js → sherpa-NPPB3DTN.js} +14 -15
- package/dist/skills/hyperframes/references/motion.md +1 -1
- package/dist/skills/hyperframes/references/storyboard.md +1 -1
- package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +1 -1
- package/dist/skills/hyperframes-cli/references/preview-render.md +1 -1
- package/dist/skills/media-use/audio/scripts/audio.mjs +56 -26
- package/dist/skills/media-use/audio/scripts/lib/media-record.mjs +3 -3
- package/dist/skills/media-use/audio/scripts/lib/media-record.test.mjs +16 -1
- package/dist/skills/media-use/audio/scripts/lib/recording.mjs +53 -0
- package/dist/skills/media-use/audio/scripts/lib/voice-credit.mjs +17 -0
- package/dist/skills/media-use/audio/scripts/lib/voice-credit.test.mjs +21 -0
- package/dist/skills/media-use/audio/scripts/recording.test.mjs +139 -0
- package/dist/skills/media-use/references/audio.md +2 -1
- package/dist/skills/media-use/references/heygen.md +9 -9
- package/dist/{skills-VB4OXS7B.js → skills-S2ODBBMC.js} +19 -7
- package/dist/{skillsUpdateCheck-HMGBIR2Z.js → skillsUpdateCheck-AOCZDRXM.js} +3 -3
- package/dist/{snapshot-SXWIDOD3.js → snapshot-SS6WDSZ5.js} +40 -41
- package/dist/{src-IEVHZX7S.js → src-HHRR3UTF.js} +13 -14
- package/dist/{src-RETKK67M.js → src-MYVZPRHS.js} +20 -19
- package/dist/{start-PDD5527T.js → start-OYIXMJKF.js} +24 -25
- package/dist/{staticProjectServer-GJQCWV7Y.js → staticProjectServer-65X4MWEN.js} +21 -22
- package/dist/{status-N6FGW6E2.js → status-JEYVWANY.js} +16 -17
- package/dist/studio/assets/{hyperframes-player-Dszy0WKm.js → hyperframes-player-DqxUNa9H.js} +1 -1
- package/dist/studio/assets/index-Bgfyny02.css +1 -0
- package/dist/studio/assets/{index-CWYuXWlI.js → index-CFUJyYA1.js} +1 -1
- package/dist/studio/assets/{index-BeR5xCi5.js → index-Cq43Ovkf.js} +196 -196
- package/dist/studio/index.html +2 -2
- package/dist/{studio-api-IAELPUY4.js → studio-api-GJGFGQQW.js} +11 -12
- package/dist/{studioServer-XTVVJA3E.js → studioServer-IS27DJNF.js} +66 -59
- package/dist/{sync-SDUSYR4M.js → sync-NLK2RFSR.js} +15 -16
- package/dist/{telemetry-IXOTZW4E.js → telemetry-BMPRZBBX.js} +22 -2
- package/dist/{telemetry-U4VJBESU.js → telemetry-BPPPHER2.js} +16 -4
- package/dist/templates/_shared/AGENTS.md +3 -1
- package/dist/templates/_shared/CLAUDE.md +3 -1
- package/dist/{templates-VFKKDFCR.js → templates-YWBAFFI4.js} +25 -26
- package/dist/{timeline-62HYU4LF.js → timeline-FAFHG2G4.js} +21 -22
- package/dist/{tokens-XJUQMDBP.js → tokens-QCZBFNMS.js} +2 -2
- package/dist/{transcribe-7IPTYLH2.js → transcribe-2P6GMYWR.js} +29 -30
- package/dist/{transcribe-RRGMCQBP.js → transcribe-VL3YKFMY.js} +13 -14
- package/dist/{update-EAL42IMG.js → update-NWDCG6JG.js} +20 -8
- package/dist/{updateCheck-CCDI422O.js → updateCheck-PX4XSKDO.js} +2 -2
- package/dist/{upgrade-A73PJHPY.js → upgrade-VWETDZDT.js} +3 -3
- package/dist/{upload-YQMBLKH5.js → upload-PEY7EYFV.js} +7 -2
- package/dist/{urlDownloader-JZIEE3AD.js → urlDownloader-7TVBPNBG.js} +9 -10
- package/dist/{validate-N6F4N34T.js → validate-HCJAHDTZ.js} +27 -28
- package/dist/{video-6LPKR7VA.js → video-JDUB5IFM.js} +11 -12
- package/dist/{voices-LFPLTLKV.js → voices-YBKCBC6K.js} +30 -29
- package/dist/warmCheck.js +41 -42
- package/package.json +1 -1
- package/dist/chunk-GDQQ4U3L.js +0 -226
- package/dist/chunk-TK7THLRO.js +0 -65
- package/dist/chunk-X7SYA4OP.js +0 -5035
- package/dist/studio/assets/index-CNZk2EFC.css +0 -1
package/dist/cli.js
CHANGED
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
import "./chunk-FYZFURBN.js";
|
|
62
62
|
import {
|
|
63
63
|
VERSION
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-XRNXGF7I.js";
|
|
65
65
|
import "./chunk-G7VEYUZ2.js";
|
|
66
66
|
import "./chunk-XT6MXC7A.js";
|
|
67
67
|
import "./chunk-7KDQAD2W.js";
|
|
@@ -115,7 +115,7 @@ function guardLeafFlags(cmd, path, ctx, rawArgs) {
|
|
|
115
115
|
}
|
|
116
116
|
async function reportCommandFailure(command2, err) {
|
|
117
117
|
try {
|
|
118
|
-
const { trackCommandFailure } = await import("./events-
|
|
118
|
+
const { trackCommandFailure } = await import("./events-OHIGKF4W.js");
|
|
119
119
|
trackCommandFailure(command2, err);
|
|
120
120
|
} catch {
|
|
121
121
|
}
|
|
@@ -215,61 +215,61 @@ async function assertStudioWorkspaceBuilt() {
|
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
var commandLoaders = {
|
|
218
|
-
init: () => import("./init-
|
|
219
|
-
add: () => import("./add-
|
|
220
|
-
catalog: () => import("./catalog-
|
|
221
|
-
"media-use": () => import("./media-use-
|
|
222
|
-
play: () => import("./play-
|
|
223
|
-
present: () => import("./present-
|
|
224
|
-
preview: () => assertStudioWorkspaceBuilt().then(() => import("./preview-
|
|
225
|
-
publish: () => import("./publish-
|
|
226
|
-
open: () => import("./open-
|
|
227
|
-
"catch-up": () => import("./catch-up-
|
|
228
|
-
render: () => import("./render-
|
|
229
|
-
lint: () => import("./lint-
|
|
230
|
-
check: () => import("./check-
|
|
231
|
-
beats: () => import("./beats-
|
|
232
|
-
audio: () => import("./audio-
|
|
233
|
-
"normalize-audio": () => import("./normalize-audio-
|
|
234
|
-
inspect: () => import("./inspect-
|
|
235
|
-
keyframes: () => import("./keyframes-
|
|
236
|
-
layout: () => import("./layout-
|
|
237
|
-
info: () => import("./info-
|
|
238
|
-
compositions: () => import("./compositions-
|
|
239
|
-
timeline: () => import("./timeline-
|
|
240
|
-
history: () => import("./history-
|
|
241
|
-
benchmark: () => import("./benchmark-
|
|
242
|
-
browser: () => import("./browser-
|
|
243
|
-
"remove-background": () => import("./remove-background-
|
|
244
|
-
transcribe: () => import("./transcribe-
|
|
218
|
+
init: () => import("./init-EAKY3LFR.js").then((m) => m.default),
|
|
219
|
+
add: () => import("./add-VQVP3JPZ.js").then((m) => m.default),
|
|
220
|
+
catalog: () => import("./catalog-JIO6RXSR.js").then((m) => m.default),
|
|
221
|
+
"media-use": () => import("./media-use-OWKQQSPJ.js").then((m) => m.default),
|
|
222
|
+
play: () => import("./play-WBLWBDBS.js").then((m) => m.default),
|
|
223
|
+
present: () => import("./present-3GW46ZYF.js").then((m) => m.default),
|
|
224
|
+
preview: () => assertStudioWorkspaceBuilt().then(() => import("./preview-MPAHNXEJ.js").then((m) => m.default)),
|
|
225
|
+
publish: () => import("./publish-VNMKJMAK.js").then((m) => m.default),
|
|
226
|
+
open: () => import("./open-Q7AAAYVN.js").then((m) => m.default),
|
|
227
|
+
"catch-up": () => import("./catch-up-A73H7VGC.js").then((m) => m.default),
|
|
228
|
+
render: () => import("./render-RPHNBD4F.js").then((m) => m.default),
|
|
229
|
+
lint: () => import("./lint-QAGBHUXZ.js").then((m) => m.default),
|
|
230
|
+
check: () => import("./check-FI7SUTK7.js").then((m) => m.default),
|
|
231
|
+
beats: () => import("./beats-LXYHFVPP.js").then((m) => m.default),
|
|
232
|
+
audio: () => import("./audio-ZHVBBQRA.js").then((m) => m.default),
|
|
233
|
+
"normalize-audio": () => import("./normalize-audio-77ZTAPPL.js").then((m) => m.default),
|
|
234
|
+
inspect: () => import("./inspect-LFEK6HOL.js").then((m) => m.default),
|
|
235
|
+
keyframes: () => import("./keyframes-TZBDB442.js").then((m) => m.default),
|
|
236
|
+
layout: () => import("./layout-VATFBERH.js").then((m) => m.default),
|
|
237
|
+
info: () => import("./info-FLLONVY5.js").then((m) => m.default),
|
|
238
|
+
compositions: () => import("./compositions-OW776OLK.js").then((m) => m.default),
|
|
239
|
+
timeline: () => import("./timeline-FAFHG2G4.js").then((m) => m.default),
|
|
240
|
+
history: () => import("./history-RSB65UN3.js").then((m) => m.default),
|
|
241
|
+
benchmark: () => import("./benchmark-KXR56MIT.js").then((m) => m.default),
|
|
242
|
+
browser: () => import("./browser-P52FDITF.js").then((m) => m.default),
|
|
243
|
+
"remove-background": () => import("./remove-background-7LE4IIOE.js").then((m) => m.default),
|
|
244
|
+
transcribe: () => import("./transcribe-2P6GMYWR.js").then((m) => m.default),
|
|
245
245
|
usage: () => import("./usage-772JV45U.js").then((m) => m.default),
|
|
246
|
-
models: () => import("./models-
|
|
246
|
+
models: () => import("./models-FZ4HL5BX.js").then((m) => m.default),
|
|
247
247
|
tts: () => import("./tts-QW53FBKW.js").then((m) => m.default),
|
|
248
248
|
docs: () => import("./docs-WYJSJGSF.js").then((m) => m.default),
|
|
249
|
-
doctor: () => import("./doctor-
|
|
250
|
-
clean: () => import("./clean-
|
|
251
|
-
upgrade: () => import("./upgrade-
|
|
252
|
-
update: () => import("./update-
|
|
253
|
-
skills: () => import("./skills-
|
|
254
|
-
feedback: () => import("./feedback-
|
|
255
|
-
telemetry: () => import("./telemetry-
|
|
256
|
-
events: () => import("./events-
|
|
257
|
-
validate: () => import("./validate-
|
|
258
|
-
snapshot: () => import("./snapshot-
|
|
259
|
-
"media-treatment": () => import("./media-treatment-
|
|
260
|
-
"grade-compare": () => import("./grade-compare-
|
|
261
|
-
compare: () => import("./compare-
|
|
262
|
-
diff: () => import("./diff-
|
|
263
|
-
measure: () => import("./measure-
|
|
264
|
-
reverse: () => import("./reverse-
|
|
265
|
-
billing: () => import("./billing-
|
|
266
|
-
templates: () => import("./templates-
|
|
267
|
-
capture: () => import("./capture-
|
|
268
|
-
lambda: () => import("./lambda-
|
|
269
|
-
cloudrun: () => import("./cloudrun-
|
|
270
|
-
cloud: () => import("./cloud-
|
|
271
|
-
auth: () => import("./auth-
|
|
272
|
-
figma: () => import("./figma-
|
|
249
|
+
doctor: () => import("./doctor-ILCPSC6S.js").then((m) => m.default),
|
|
250
|
+
clean: () => import("./clean-PILJFGU2.js").then((m) => m.default),
|
|
251
|
+
upgrade: () => import("./upgrade-VWETDZDT.js").then((m) => m.default),
|
|
252
|
+
update: () => import("./update-NWDCG6JG.js").then((m) => m.default),
|
|
253
|
+
skills: () => import("./skills-S2ODBBMC.js").then((m) => m.default),
|
|
254
|
+
feedback: () => import("./feedback-N3JK4ULK.js").then((m) => m.default),
|
|
255
|
+
telemetry: () => import("./telemetry-BMPRZBBX.js").then((m) => m.default),
|
|
256
|
+
events: () => import("./events-D2QORX35.js").then((m) => m.default),
|
|
257
|
+
validate: () => import("./validate-HCJAHDTZ.js").then((m) => m.default),
|
|
258
|
+
snapshot: () => import("./snapshot-SS6WDSZ5.js").then((m) => m.default),
|
|
259
|
+
"media-treatment": () => import("./media-treatment-QYQVLCYP.js").then((m) => m.mediaTreatmentCommand),
|
|
260
|
+
"grade-compare": () => import("./grade-compare-LCS5CBNW.js").then((m) => m.default),
|
|
261
|
+
compare: () => import("./compare-5RSAPYJI.js").then((m) => m.default),
|
|
262
|
+
diff: () => import("./diff-TNHEXG72.js").then((m) => m.default),
|
|
263
|
+
measure: () => import("./measure-WJ6TR545.js").then((m) => m.default),
|
|
264
|
+
reverse: () => import("./reverse-DQSOSC5W.js").then((m) => m.default),
|
|
265
|
+
billing: () => import("./billing-3XQYSAKP.js").then((m) => m.default),
|
|
266
|
+
templates: () => import("./templates-YWBAFFI4.js").then((m) => m.default),
|
|
267
|
+
capture: () => import("./capture-2PSBIAL2.js").then((m) => m.default),
|
|
268
|
+
lambda: () => import("./lambda-RYX5NXX5.js").then((m) => m.default),
|
|
269
|
+
cloudrun: () => import("./cloudrun-JZQMF5DS.js").then((m) => m.default),
|
|
270
|
+
cloud: () => import("./cloud-HBMQH4EU.js").then((m) => m.default),
|
|
271
|
+
auth: () => import("./auth-AJM3YSN6.js").then((m) => m.default),
|
|
272
|
+
figma: () => import("./figma-JYVZPN5L.js").then((m) => m.default)
|
|
273
273
|
};
|
|
274
274
|
process.argv = [
|
|
275
275
|
...process.argv.slice(0, 2),
|
|
@@ -299,7 +299,7 @@ var _printStalePinNotice;
|
|
|
299
299
|
var _printSkillsUpdateNotice;
|
|
300
300
|
var telemetryReady = Promise.resolve();
|
|
301
301
|
if (!isHelp && command !== "telemetry" && command !== "events" && command !== "usage" && command !== "unknown") {
|
|
302
|
-
telemetryReady = import("./telemetry-
|
|
302
|
+
telemetryReady = import("./telemetry-BPPPHER2.js").then((mod) => {
|
|
303
303
|
_flushSync = mod.flushSync;
|
|
304
304
|
_trackCliError = mod.trackCliError;
|
|
305
305
|
_trackCommandResult = mod.trackCommandResult;
|
|
@@ -310,29 +310,29 @@ if (!isHelp && command !== "telemetry" && command !== "events" && command !== "u
|
|
|
310
310
|
}
|
|
311
311
|
if (!isHelp && command !== "upgrade" && command !== "update" && command !== "events" && command !== "telemetry" && command !== "skills" && command !== "usage") {
|
|
312
312
|
if (!hasJsonFlag) {
|
|
313
|
-
import("./autoUpdate-
|
|
313
|
+
import("./autoUpdate-GV4LPAJX.js").then((mod) => mod.reportCompletedUpdate()).catch(() => {
|
|
314
314
|
});
|
|
315
|
-
import("./updateCheck-
|
|
315
|
+
import("./updateCheck-PX4XSKDO.js").then(async (mod) => {
|
|
316
316
|
_printUpdateNotice = mod.printUpdateNotice;
|
|
317
317
|
_printStalePinNotice = mod.printStalePinNotice;
|
|
318
318
|
const result = mod.cachedUpdateCheck();
|
|
319
319
|
if (result.updateAvailable) {
|
|
320
|
-
const auto = await import("./autoUpdate-
|
|
320
|
+
const auto = await import("./autoUpdate-GV4LPAJX.js").catch(() => null);
|
|
321
321
|
auto?.scheduleBackgroundInstall(result.latest, result.current);
|
|
322
322
|
}
|
|
323
323
|
}).catch(() => {
|
|
324
324
|
});
|
|
325
325
|
}
|
|
326
|
-
import("./skillsUpdateCheck-
|
|
326
|
+
import("./skillsUpdateCheck-AOCZDRXM.js").then((mod) => {
|
|
327
327
|
_printSkillsUpdateNotice = mod.printSkillsUpdateNotice;
|
|
328
328
|
}).catch(() => {
|
|
329
329
|
});
|
|
330
|
-
import("./backgroundChecks-
|
|
330
|
+
import("./backgroundChecks-J4XJD4ET.js").then((mod) => mod.launchBackgroundChecks()).catch(() => {
|
|
331
331
|
});
|
|
332
332
|
}
|
|
333
333
|
var _appHistoryNotice = null;
|
|
334
334
|
if (!isHelp && !["unknown", "catch-up", "events", "telemetry"].includes(command)) {
|
|
335
|
-
import("./appHistory-
|
|
335
|
+
import("./appHistory-FVDSCS64.js").then((mod) => {
|
|
336
336
|
_appHistoryNotice = mod.appHistoryNotice(process.cwd(), process.argv.slice(3));
|
|
337
337
|
}).catch(() => {
|
|
338
338
|
});
|
|
@@ -459,7 +459,7 @@ process.on("unhandledRejection", (reason) => {
|
|
|
459
459
|
emitCliErrorEvent("unhandled_rejection", error);
|
|
460
460
|
});
|
|
461
461
|
async function showUsage(cmd, parent, print) {
|
|
462
|
-
const { showUsage: impl } = await import("./help-
|
|
462
|
+
const { showUsage: impl } = await import("./help-GSE5DFSB.js");
|
|
463
463
|
return impl(cmd, parent, print);
|
|
464
464
|
}
|
|
465
465
|
async function unknownCommandError(requested) {
|
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
PollTimeoutError,
|
|
11
11
|
createCloudClient,
|
|
12
12
|
pollUntilTerminal
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZNFYQMFN.js";
|
|
14
14
|
import {
|
|
15
15
|
downloadToFile
|
|
16
16
|
} from "./chunk-Z4GE5BXC.js";
|
|
17
17
|
import "./chunk-3S27CPV7.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-H6676SHA.js";
|
|
19
|
+
import "./chunk-KBHBSWEE.js";
|
|
20
|
+
import "./chunk-D3NWGOXW.js";
|
|
21
21
|
import "./chunk-A4ZTSQLW.js";
|
|
22
22
|
import "./chunk-D3UCUI7G.js";
|
|
23
23
|
import "./chunk-LP7B3JLC.js";
|
|
@@ -60,10 +60,10 @@ ${c.bold("AUTH:")}
|
|
|
60
60
|
var cloud_default = defineCommand({
|
|
61
61
|
meta: { name: "cloud", description: "Render HyperFrames compositions on the HeyGen cloud" },
|
|
62
62
|
subCommands: {
|
|
63
|
-
render: () => import("./render-
|
|
64
|
-
list: () => import("./list-
|
|
65
|
-
get: () => import("./get-
|
|
66
|
-
delete: () => import("./delete-
|
|
63
|
+
render: () => import("./render-JKUR7OI2.js").then((m) => m.default),
|
|
64
|
+
list: () => import("./list-VQZOLGEO.js").then((m) => m.default),
|
|
65
|
+
get: () => import("./get-VQWG2NY4.js").then((m) => m.default),
|
|
66
|
+
delete: () => import("./delete-MYG77L66.js").then((m) => m.default)
|
|
67
67
|
},
|
|
68
68
|
async run({ args }) {
|
|
69
69
|
if (!args._?.[0]) console.log(HELP);
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
reportVariableIssues,
|
|
16
16
|
resolveVariablesArg,
|
|
17
17
|
validateVariablesAgainstProject
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-OXMEC34G.js";
|
|
19
19
|
import "./chunk-ZBAF6L74.js";
|
|
20
20
|
import {
|
|
21
21
|
defaultCloudFps
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-GH6GWAID.js";
|
|
23
23
|
import "./chunk-M3JU24AI.js";
|
|
24
24
|
import "./chunk-EHZESMRB.js";
|
|
25
25
|
import {
|
|
@@ -32,21 +32,20 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
DISTRIBUTED_FPS,
|
|
34
34
|
isDistributedFps
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-YQV44DRO.js";
|
|
36
|
+
import "./chunk-FXMKHHPO.js";
|
|
37
|
+
import "./chunk-GREVQ2SM.js";
|
|
37
38
|
import "./chunk-VC76R6W2.js";
|
|
38
39
|
import "./chunk-OFQWTKPW.js";
|
|
39
40
|
import "./chunk-RQVDTPGD.js";
|
|
40
|
-
import "./chunk-TK7THLRO.js";
|
|
41
|
-
import "./chunk-FXMKHHPO.js";
|
|
42
41
|
import "./chunk-OHQRQE7F.js";
|
|
43
42
|
import "./chunk-CUCP7FKH.js";
|
|
44
43
|
import "./chunk-FR7YBU3H.js";
|
|
45
44
|
import "./chunk-DPVXBVLL.js";
|
|
46
45
|
import "./chunk-GWTIFRF5.js";
|
|
47
46
|
import "./chunk-2RY2LWAA.js";
|
|
48
|
-
import "./chunk-EPQC3FGZ.js";
|
|
49
47
|
import "./chunk-WC4MTXGN.js";
|
|
48
|
+
import "./chunk-EPQC3FGZ.js";
|
|
50
49
|
import {
|
|
51
50
|
hyperframesConfigDir,
|
|
52
51
|
seededConfigFile
|
|
@@ -284,34 +284,298 @@
|
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
+
function cropRect(rect, region) {
|
|
288
|
+
const left = Math.max(rect.left, region.left);
|
|
289
|
+
const right = Math.min(rect.right, region.right);
|
|
290
|
+
const top = Math.max(rect.top, region.top);
|
|
291
|
+
const bottom = Math.min(rect.bottom, region.bottom);
|
|
292
|
+
if (right - left <= 0.5 || bottom - top <= 0.5) return null;
|
|
293
|
+
return toRect({ left, right, top, bottom, width: right - left, height: bottom - top });
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
function overflowRegion(ancestor, style) {
|
|
297
|
+
const clipX = clipsOverflowValue(style.overflowX || style.overflow);
|
|
298
|
+
const clipY = clipsOverflowValue(style.overflowY || style.overflow);
|
|
299
|
+
if (!clipX && !clipY) return null;
|
|
300
|
+
const box = ancestor.getBoundingClientRect();
|
|
301
|
+
return {
|
|
302
|
+
left: clipX ? box.left : -Infinity,
|
|
303
|
+
right: clipX ? box.right : Infinity,
|
|
304
|
+
top: clipY ? box.top : -Infinity,
|
|
305
|
+
bottom: clipY ? box.bottom : Infinity,
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
|
|
287
309
|
function visibleTextClientRects(element, directOnly) {
|
|
288
|
-
// Range rects stay geometrically present outside an overflow clip.
|
|
289
|
-
// them in viewport coordinates so overlap measures only paintable text.
|
|
310
|
+
// Range rects stay geometrically present outside an overflow clip, a clip-path or a mask.
|
|
311
|
+
// Reduce them in viewport coordinates so overlap measures only paintable text.
|
|
290
312
|
let rects = textClientRects(element, directOnly).map(toRect);
|
|
291
|
-
for (
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
const
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
rects = rects
|
|
302
|
-
.map((rect) => {
|
|
303
|
-
const left = clipX ? Math.max(rect.left, clip.left) : rect.left;
|
|
304
|
-
const right = clipX ? Math.min(rect.right, clip.right) : rect.right;
|
|
305
|
-
const top = clipY ? Math.max(rect.top, clip.top) : rect.top;
|
|
306
|
-
const bottom = clipY ? Math.min(rect.bottom, clip.bottom) : rect.bottom;
|
|
307
|
-
if (right - left <= 0.5 || bottom - top <= 0.5) return null;
|
|
308
|
-
return toRect({ left, right, top, bottom, width: right - left, height: bottom - top });
|
|
309
|
-
})
|
|
310
|
-
.filter(Boolean);
|
|
313
|
+
for (let node = element; node && rects.length > 0; node = node.parentElement) {
|
|
314
|
+
const style = getComputedStyle(node);
|
|
315
|
+
const regions = [
|
|
316
|
+
node === element ? null : overflowRegion(node, style),
|
|
317
|
+
clipPathRegion(node, style),
|
|
318
|
+
maskRegion(node, style),
|
|
319
|
+
].filter(Boolean);
|
|
320
|
+
for (const region of regions) {
|
|
321
|
+
rects = rects.map((rect) => cropRect(rect, region)).filter(Boolean);
|
|
322
|
+
}
|
|
311
323
|
}
|
|
312
324
|
return rects;
|
|
313
325
|
}
|
|
314
326
|
|
|
327
|
+
// Lengths in a clip-path or a gradient resolve against the border box; a scale transform scales them.
|
|
328
|
+
function lengthIn(value, size, scale) {
|
|
329
|
+
const text = String(value).trim();
|
|
330
|
+
const number = Number.parseFloat(text);
|
|
331
|
+
if (!Number.isFinite(number)) return Number.NaN;
|
|
332
|
+
if (text.endsWith("%")) return (size * number) / 100;
|
|
333
|
+
return text.endsWith("px") || number === 0 ? number * scale : Number.NaN;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
function boxFrame(node) {
|
|
337
|
+
const box = node.getBoundingClientRect();
|
|
338
|
+
const scale = node.offsetWidth > 0 ? box.width / node.offsetWidth : 1;
|
|
339
|
+
return { box, scale };
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
function insideParens(value, name) {
|
|
343
|
+
const match = new RegExp(`^${name}\\((.*)\\)$`).exec(value.trim());
|
|
344
|
+
return match ? match[1] : null;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
function topLevelSplit(text, separator) {
|
|
348
|
+
const parts = [];
|
|
349
|
+
let depth = 0;
|
|
350
|
+
let start = 0;
|
|
351
|
+
for (let index = 0; index < text.length; index++) {
|
|
352
|
+
const char = text[index];
|
|
353
|
+
if (char === "(") depth++;
|
|
354
|
+
else if (char === ")") depth--;
|
|
355
|
+
else if (depth === 0 && char === separator) {
|
|
356
|
+
parts.push(text.slice(start, index).trim());
|
|
357
|
+
start = index + 1;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
parts.push(text.slice(start).trim());
|
|
361
|
+
return parts.filter((part) => part.length > 0);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
function ellipseRegion(center, radii) {
|
|
365
|
+
return {
|
|
366
|
+
left: center.x - radii.x,
|
|
367
|
+
right: center.x + radii.x,
|
|
368
|
+
top: center.y - radii.y,
|
|
369
|
+
bottom: center.y + radii.y,
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
function centerAt(position, frame) {
|
|
374
|
+
const [x = "50%", y = "50%"] = position ? position.trim().split(/\s+/) : [];
|
|
375
|
+
const { box, scale } = frame;
|
|
376
|
+
return {
|
|
377
|
+
x: box.left + lengthIn(x === "center" ? "50%" : x, box.width, scale),
|
|
378
|
+
y: box.top + lengthIn(y === "center" ? "50%" : y, box.height, scale),
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
// The bounds a clip-path lets paint, or null when its shape is not one read here (painting is then assumed).
|
|
383
|
+
function clipPathRegion(node, style) {
|
|
384
|
+
const value = style.clipPath;
|
|
385
|
+
if (!value || value === "none") return null;
|
|
386
|
+
const frame = boxFrame(node);
|
|
387
|
+
const { box, scale } = frame;
|
|
388
|
+
const inset = insideParens(value, "inset");
|
|
389
|
+
if (inset !== null) {
|
|
390
|
+
const sides = inset
|
|
391
|
+
.split(/\s+round\s+/)[0]
|
|
392
|
+
.trim()
|
|
393
|
+
.split(/\s+/);
|
|
394
|
+
const [top, right = top, bottom = top, left = right] = sides;
|
|
395
|
+
const region = {
|
|
396
|
+
top: box.top + lengthIn(top, box.height, scale),
|
|
397
|
+
right: box.right - lengthIn(right, box.width, scale),
|
|
398
|
+
bottom: box.bottom - lengthIn(bottom, box.height, scale),
|
|
399
|
+
left: box.left + lengthIn(left, box.width, scale),
|
|
400
|
+
};
|
|
401
|
+
return Object.values(region).every(Number.isFinite) ? region : null;
|
|
402
|
+
}
|
|
403
|
+
const polygon = insideParens(value, "polygon");
|
|
404
|
+
if (polygon !== null) {
|
|
405
|
+
const points = topLevelSplit(polygon, ",")
|
|
406
|
+
.filter((point) => !/^(nonzero|evenodd)$/.test(point))
|
|
407
|
+
.map((point) => {
|
|
408
|
+
const [x, y] = point.split(/\s+/);
|
|
409
|
+
return {
|
|
410
|
+
x: box.left + lengthIn(x, box.width, scale),
|
|
411
|
+
y: box.top + lengthIn(y, box.height, scale),
|
|
412
|
+
};
|
|
413
|
+
});
|
|
414
|
+
if (points.length === 0 || !points.every((p) => Number.isFinite(p.x) && Number.isFinite(p.y)))
|
|
415
|
+
return null;
|
|
416
|
+
const xs = points.map((p) => p.x);
|
|
417
|
+
const ys = points.map((p) => p.y);
|
|
418
|
+
return {
|
|
419
|
+
left: Math.min(...xs),
|
|
420
|
+
right: Math.max(...xs),
|
|
421
|
+
top: Math.min(...ys),
|
|
422
|
+
bottom: Math.max(...ys),
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
for (const shape of ["circle", "ellipse"]) {
|
|
426
|
+
const args = insideParens(value, shape);
|
|
427
|
+
if (args === null) continue;
|
|
428
|
+
const [size, position] = args.split(/\s+at\s+/);
|
|
429
|
+
const lengths = size.trim().split(/\s+/);
|
|
430
|
+
const rx = lengthIn(lengths[0], box.width, scale);
|
|
431
|
+
const ry =
|
|
432
|
+
shape === "circle"
|
|
433
|
+
? lengthIn(lengths[0], box.width, scale)
|
|
434
|
+
: lengthIn(lengths[1], box.height, scale);
|
|
435
|
+
const center = centerAt(position, frame);
|
|
436
|
+
return [rx, ry, center.x, center.y].every(Number.isFinite)
|
|
437
|
+
? ellipseRegion(center, { x: rx, y: ry })
|
|
438
|
+
: null;
|
|
439
|
+
}
|
|
440
|
+
return null;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
const MASK_PAINT_ALPHA = 0.35;
|
|
444
|
+
let colorProbe;
|
|
445
|
+
|
|
446
|
+
function colorAlphaOf(color) {
|
|
447
|
+
colorProbe = colorProbe || document.createElement("canvas").getContext("2d");
|
|
448
|
+
colorProbe.fillStyle = "#000";
|
|
449
|
+
colorProbe.fillStyle = color;
|
|
450
|
+
const match = /rgba?\([^)]*,\s*([\d.]+)\)$/.exec(colorProbe.fillStyle);
|
|
451
|
+
return match ? Number.parseFloat(match[1]) : 1;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
// Gradient stops as [offset 0-1, alpha]; missing offsets are spread evenly, as the browser does.
|
|
455
|
+
function gradientStops(parts, length, scale) {
|
|
456
|
+
const stops = [];
|
|
457
|
+
for (const part of parts) {
|
|
458
|
+
const match = /^((?:[a-z-]+\([^)]*\))|#[0-9a-f]+|[a-z]+)\s*(.*)$/i.exec(part);
|
|
459
|
+
if (!match) return null;
|
|
460
|
+
const alpha = colorAlphaOf(match[1]);
|
|
461
|
+
const offsets = match[2].trim() ? match[2].trim().split(/\s+/) : [null];
|
|
462
|
+
for (const offset of offsets) {
|
|
463
|
+
const at = offset === null ? null : lengthIn(offset, length, scale) / length;
|
|
464
|
+
if (at !== null && !Number.isFinite(at)) return null;
|
|
465
|
+
stops.push({ at, alpha });
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
if (stops.length === 0) return null;
|
|
469
|
+
if (stops[0].at === null) stops[0].at = 0;
|
|
470
|
+
if (stops.at(-1).at === null) stops.at(-1).at = 1;
|
|
471
|
+
for (let index = 1; index < stops.length; index++) {
|
|
472
|
+
if (stops[index].at === null) {
|
|
473
|
+
let next = index;
|
|
474
|
+
while (stops[next].at === null) next++;
|
|
475
|
+
const from = stops[index - 1].at;
|
|
476
|
+
const step = (stops[next].at - from) / (next - index + 1);
|
|
477
|
+
for (let fill = index; fill < next; fill++)
|
|
478
|
+
stops[fill].at = from + step * (fill - index + 1);
|
|
479
|
+
}
|
|
480
|
+
stops[index].at = Math.max(stops[index].at, stops[index - 1].at);
|
|
481
|
+
}
|
|
482
|
+
return stops;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
// The first and last offsets (0-1) at which the gradient paints at least MASK_PAINT_ALPHA.
|
|
486
|
+
function paintedSpan(stops) {
|
|
487
|
+
let first = Number.POSITIVE_INFINITY;
|
|
488
|
+
let last = Number.NEGATIVE_INFINITY;
|
|
489
|
+
const mark = (at) => {
|
|
490
|
+
first = Math.min(first, at);
|
|
491
|
+
last = Math.max(last, at);
|
|
492
|
+
};
|
|
493
|
+
if (stops[0].alpha >= MASK_PAINT_ALPHA) mark(Math.min(0, stops[0].at));
|
|
494
|
+
if (stops.at(-1).alpha >= MASK_PAINT_ALPHA) mark(Math.max(1, stops.at(-1).at));
|
|
495
|
+
for (let index = 0; index < stops.length; index++) {
|
|
496
|
+
const stop = stops[index];
|
|
497
|
+
if (stop.alpha >= MASK_PAINT_ALPHA) mark(stop.at);
|
|
498
|
+
const next = stops[index + 1];
|
|
499
|
+
if (!next || stop.alpha >= MASK_PAINT_ALPHA === next.alpha >= MASK_PAINT_ALPHA) continue;
|
|
500
|
+
const share = (MASK_PAINT_ALPHA - stop.alpha) / (next.alpha - stop.alpha);
|
|
501
|
+
mark(stop.at + (next.at - stop.at) * share);
|
|
502
|
+
}
|
|
503
|
+
return first <= last ? { first, last } : { first: 0, last: 0 };
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
const LINEAR_AXES = {
|
|
507
|
+
"to bottom": "down",
|
|
508
|
+
"180deg": "down",
|
|
509
|
+
"to top": "up",
|
|
510
|
+
"0deg": "up",
|
|
511
|
+
"to right": "right",
|
|
512
|
+
"90deg": "right",
|
|
513
|
+
"to left": "left",
|
|
514
|
+
"270deg": "left",
|
|
515
|
+
};
|
|
516
|
+
|
|
517
|
+
function linearMaskRegion(args, frame) {
|
|
518
|
+
const parts = topLevelSplit(args, ",");
|
|
519
|
+
const lead = parts[0];
|
|
520
|
+
const named = /^(to |-?[\d.]+(deg|turn|rad|grad))/.test(lead);
|
|
521
|
+
const axis = named ? LINEAR_AXES[lead.replace(/\s+/g, " ")] : "down";
|
|
522
|
+
if (!axis) return null;
|
|
523
|
+
const { box, scale } = frame;
|
|
524
|
+
const vertical = axis === "down" || axis === "up";
|
|
525
|
+
const length = vertical ? box.height : box.width;
|
|
526
|
+
const stops = gradientStops(named ? parts.slice(1) : parts, length / scale, 1);
|
|
527
|
+
if (!stops) return null;
|
|
528
|
+
const { first, last } = paintedSpan(stops);
|
|
529
|
+
const [from, to] = axis === "up" || axis === "left" ? [1 - last, 1 - first] : [first, last];
|
|
530
|
+
return vertical
|
|
531
|
+
? {
|
|
532
|
+
left: -Infinity,
|
|
533
|
+
right: Infinity,
|
|
534
|
+
top: box.top + from * length,
|
|
535
|
+
bottom: box.top + to * length,
|
|
536
|
+
}
|
|
537
|
+
: {
|
|
538
|
+
top: -Infinity,
|
|
539
|
+
bottom: Infinity,
|
|
540
|
+
left: box.left + from * length,
|
|
541
|
+
right: box.left + to * length,
|
|
542
|
+
};
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
function radialMaskRegion(args, frame) {
|
|
546
|
+
const parts = topLevelSplit(args, ",");
|
|
547
|
+
const [size, position] = parts[0].split(/\s+at\s+/);
|
|
548
|
+
const lengths = size
|
|
549
|
+
.replace(/\b(ellipse|circle)\b/g, "")
|
|
550
|
+
.trim()
|
|
551
|
+
.split(/\s+/);
|
|
552
|
+
const { box, scale } = frame;
|
|
553
|
+
const rx = lengthIn(lengths[0], box.width, scale);
|
|
554
|
+
const ry = lengths.length > 1 ? lengthIn(lengths[1], box.height, scale) : rx;
|
|
555
|
+
const center = centerAt(position, frame);
|
|
556
|
+
if (![rx, ry, center.x, center.y].every(Number.isFinite) || rx <= 0 || ry <= 0) return null;
|
|
557
|
+
const stops = gradientStops(parts.slice(1), rx / scale, 1);
|
|
558
|
+
if (!stops || stops.at(-1).alpha >= MASK_PAINT_ALPHA) return null;
|
|
559
|
+
const { last } = paintedSpan(stops);
|
|
560
|
+
return ellipseRegion(center, { x: rx * last, y: ry * last });
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
// The bounds a single-layer gradient mask paints, or null when the mask is not read here (painting is then assumed).
|
|
564
|
+
function maskRegion(node, style) {
|
|
565
|
+
const value = style.maskImage || style.webkitMaskImage;
|
|
566
|
+
if (!value || value === "none" || topLevelSplit(value, ",").length !== 1) return null;
|
|
567
|
+
const size = style.maskSize || style.webkitMaskSize || "auto";
|
|
568
|
+
if (size !== "auto" && size !== "auto auto") return null;
|
|
569
|
+
const position = (style.maskPosition || style.webkitMaskPosition || "0% 0%").trim();
|
|
570
|
+
if (!/^0(%|px)? 0(%|px)?$/.test(position)) return null;
|
|
571
|
+
if ((style.maskOrigin || style.webkitMaskOrigin || "border-box") !== "border-box") return null;
|
|
572
|
+
const frame = boxFrame(node);
|
|
573
|
+
const linear = insideParens(value, "linear-gradient");
|
|
574
|
+
if (linear !== null) return linearMaskRegion(linear, frame);
|
|
575
|
+
const radial = insideParens(value, "radial-gradient");
|
|
576
|
+
return radial !== null ? radialMaskRegion(radial, frame) : null;
|
|
577
|
+
}
|
|
578
|
+
|
|
315
579
|
function textRectFor(element, directOnly) {
|
|
316
580
|
return unionRects(textClientRects(element, directOnly));
|
|
317
581
|
}
|
|
@@ -813,7 +1077,7 @@
|
|
|
813
1077
|
message: "Two text blocks overlap and may render unreadable.",
|
|
814
1078
|
rect: a.rect,
|
|
815
1079
|
fixHint:
|
|
816
|
-
"Give each block its own zone, or put data-layout-allow-overlap on the text or on a container inside the scene. A marker on the scene root does not apply.",
|
|
1080
|
+
"Give each block its own zone, or put data-layout-allow-overlap on the text or on a container inside the scene. A marker on the scene root does not apply. Decoration nobody needs to read can take data-layout-ignore.",
|
|
817
1081
|
};
|
|
818
1082
|
}
|
|
819
1083
|
|