hyperframes 0.8.205 → 0.8.207
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/bin/hyperframes.mjs +1 -0
- package/dist/{add-BA4AU262.js → add-LXFWHBE3.js} +19 -18
- package/dist/{agentPromptGenerator-KYO5MKTW.js → agentPromptGenerator-D2E62ZP5.js} +1 -1
- package/dist/{animatedGifPrep-UNUCFGLQ.js → animatedGifPrep-VBPJZKFT.js} +21 -15
- package/dist/api.js +31 -31
- package/dist/{appHistory-QVCSAOI4.js → appHistory-HIBH6XZW.js} +3 -1
- package/dist/{asset-KCDVTNC3.js → asset-JX4RW3GO.js} +2 -2
- package/dist/{assetCataloger-5FCVQ3N6.js → assetCataloger-JKKOPBCF.js} +15 -14
- package/dist/{audio-KDBPEHRS.js → audio-OXQ3L6DW.js} +24 -24
- package/dist/{auth-IMPBZZXJ.js → auth-JAL7P7ZA.js} +1 -1
- package/dist/{autoUpdate-YE2RKCAG.js → autoUpdate-MRI2AICE.js} +2 -2
- package/dist/{backgroundChecks-OWY2UFSR.js → backgroundChecks-ORR46PBY.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-AN4HWKET.js → batchRender-IFZYPGIW.js} +9 -9
- package/dist/{beats-VTQJ4JH6.js → beats-UDLOEW6U.js} +21 -21
- package/dist/{benchmark-PBEWHJ5K.js → benchmark-VTVDNKSO.js} +14 -14
- package/dist/{browser-E7ANEHNU.js → browser-QJC4BL2Y.js} +6 -6
- package/dist/{bundleWithLocalizedFonts-I3BWMRSP.js → bundleWithLocalizedFonts-Z2JTBNDS.js} +2 -2
- package/dist/{capture-MP7R72WU.js → capture-2P4JERSX.js} +14 -3
- package/dist/{capture-XODFC4S4.js → capture-GLM2ACPM.js} +81 -41
- package/dist/{captureCompositionFrame-2OYGVDI3.js → captureCompositionFrame-A2A5MGQB.js} +19 -19
- package/dist/{captureFile-LYOJOUIE.js → captureFile-RPUEOZO6.js} +1 -1
- package/dist/{catalog-ORVCCEQR.js → catalog-5ZLVUQVJ.js} +25 -24
- package/dist/{catch-up-SYAQOXTT.js → catch-up-FRMVYJHZ.js} +5 -5
- package/dist/{check-6SQR6SSA.js → check-WVY7SM7C.js} +50 -48
- package/dist/checkAudio-PLEQY3SZ.js +201 -0
- package/dist/{checkBrowser-HOTD3CDE.js → checkBrowser-XSZUA2DQ.js} +42 -41
- package/dist/{chunk-JFNB4CMI.js → chunk-526VSRZ4.js} +20 -8
- package/dist/{chunk-DQBY7FRR.js → chunk-543U46OR.js} +4 -1
- package/dist/{chunk-CUGADCIV.js → chunk-5KBMYSF2.js} +54 -15
- package/dist/{chunk-2ST4WAFY.js → chunk-5PCALX6G.js} +13 -1
- package/dist/{chunk-TZ7MTRVJ.js → chunk-5PYRU5DT.js} +13 -13
- package/dist/{chunk-AYH5ANVS.js → chunk-5YHQBCWH.js} +52 -3
- package/dist/{chunk-KBZSMKKD.js → chunk-63DP5CB2.js} +29 -3
- package/dist/{chunk-GLBEBBS2.js → chunk-6IYIS2U7.js} +2 -2
- package/dist/{chunk-GSTFETKE.js → chunk-6KCFVLO6.js} +5 -5
- package/dist/{chunk-EXRHI43B.js → chunk-6KOHY5EP.js} +10 -9
- package/dist/{chunk-CU76YDPX.js → chunk-6Z7XDUUJ.js} +1 -1
- package/dist/{chunk-XNAIYEKD.js → chunk-7PJ3AJB2.js} +1 -1
- package/dist/{chunk-6GAYBX5C.js → chunk-7RWUY3BJ.js} +64 -62
- package/dist/{chunk-3CISA3OS.js → chunk-AF3L5JJX.js} +1 -1
- package/dist/chunk-BDJIQZN2.js +4830 -0
- package/dist/{chunk-75WNFDRU.js → chunk-C53ZNJDZ.js} +4 -4
- package/dist/{chunk-GBQCTZON.js → chunk-CVZO6TFE.js} +13 -43
- package/dist/{chunk-RQDVTUVD.js → chunk-DJQZ7DEH.js} +15 -15
- package/dist/{chunk-KAIQPYCM.js → chunk-DML6BD4K.js} +2 -2
- package/dist/{chunk-BTYT3RT3.js → chunk-EG3B2VWK.js} +2 -2
- package/dist/{chunk-OB7QARSN.js → chunk-EGRIVMCQ.js} +1 -1
- package/dist/{chunk-V4K4BSCM.js → chunk-EHFZEKQM.js} +57 -5
- package/dist/{chunk-H4MSJ2NZ.js → chunk-FEO7YW7V.js} +8 -8
- package/dist/{chunk-FNBEYIZH.js → chunk-FVAI7AHF.js} +13 -12
- package/dist/{chunk-PLGGKTCB.js → chunk-GXUONASF.js} +13 -20
- package/dist/{chunk-L6N2TLXR.js → chunk-H3LQ5X6Q.js} +84 -79
- package/dist/{chunk-MVXOY5RC.js → chunk-HA3V4XAF.js} +6 -6
- package/dist/{chunk-WB55EQNJ.js → chunk-HM7SUIQD.js} +38 -9
- package/dist/{chunk-G445Y3YG.js → chunk-HVOTYAS4.js} +15 -7
- package/dist/{chunk-IKYXXIMP.js → chunk-I2TDHVFV.js} +3 -3
- package/dist/{chunk-3N4T6I3O.js → chunk-I3TYUQLB.js} +1 -1
- package/dist/{chunk-AECL3B23.js → chunk-IBZHSU2J.js} +1 -1
- package/dist/{chunk-2FEOM3ZT.js → chunk-ID766OZB.js} +12 -12
- package/dist/{chunk-4UIEQIF4.js → chunk-IK4JY2LI.js} +2 -2
- package/dist/{chunk-C4LV6L4Q.js → chunk-IW5P4KK7.js} +3 -3
- package/dist/{chunk-N7VQD4WB.js → chunk-IYZT62UR.js} +1 -1
- package/dist/chunk-JKE24AG7.js +62 -0
- package/dist/chunk-JLCAHJUO.js +91 -0
- package/dist/{chunk-EUFBE5BW.js → chunk-JLGVBK5M.js} +1 -1
- package/dist/{chunk-6NC4KBS2.js → chunk-JQ32262N.js} +1 -1
- package/dist/{chunk-J2E3VVOS.js → chunk-KDHHPJOG.js} +4 -4
- package/dist/{chunk-A42PDANH.js → chunk-LCCYYTEK.js} +1 -1
- package/dist/{chunk-T2UR3T4L.js → chunk-LK6KPVX2.js} +263 -74
- package/dist/{chunk-RWOWD3PW.js → chunk-LPI7HX4G.js} +2 -2
- package/dist/{chunk-UR6BAPOD.js → chunk-LXP6XWJL.js} +2 -2
- package/dist/{chunk-4RPCYGZG.js → chunk-MAUGXKSI.js} +4 -4
- package/dist/{chunk-AII6P2TC.js → chunk-MMJAHBH2.js} +1 -1
- package/dist/{chunk-LFGJWOVA.js → chunk-MNNK7RV5.js} +11 -8
- package/dist/{chunk-26OI2B2X.js → chunk-MSHL6CF2.js} +1 -1
- package/dist/{chunk-SVVAUJPL.js → chunk-NHA4NRBE.js} +136 -25
- package/dist/{chunk-5F6B6KMK.js → chunk-NHL5CMO2.js} +18 -3
- package/dist/{chunk-NF6KI46X.js → chunk-NJNC2DQV.js} +31 -28
- package/dist/{chunk-I7IXUCKL.js → chunk-NSC5A4IR.js} +1 -1
- package/dist/{chunk-MRF4AMKD.js → chunk-NWGXTUYS.js} +32 -10
- package/dist/{chunk-57I5KNTL.js → chunk-PL36HK3U.js} +3 -3
- package/dist/{chunk-TOEIJ4WF.js → chunk-PUIG6DHT.js} +5 -5
- package/dist/{chunk-BA7MQJXG.js → chunk-QE4WRS3N.js} +3 -3
- package/dist/{chunk-7V7OUKTU.js → chunk-QTWXVOZI.js} +1 -1
- package/dist/{chunk-V2XXV2EH.js → chunk-QZ2JQ6O4.js} +6 -6
- package/dist/{chunk-BHOGXIBO.js → chunk-RPZNQV6D.js} +58 -826
- package/dist/{chunk-2BGOB2QK.js → chunk-SE2MXV2N.js} +136 -25
- package/dist/{chunk-HADQPG7O.js → chunk-SXOD5J7T.js} +2 -2
- package/dist/{chunk-32R2AFZ3.js → chunk-T4JGFCXU.js} +3 -3
- package/dist/chunk-TQBQYO4L.js +55 -0
- package/dist/{chunk-ZSUWGNIT.js → chunk-TSTONNOD.js} +2 -2
- package/dist/chunk-TSYRN646.js +84 -0
- package/dist/{chunk-BZ727KLT.js → chunk-U32PA6DI.js} +1 -1
- package/dist/{chunk-5PVPGWMH.js → chunk-UAT2UMTP.js} +1 -1
- package/dist/{chunk-TGS33LDU.js → chunk-UKM3JYNB.js} +5 -71
- package/dist/{chunk-UEOGIZ3Q.js → chunk-UUOIH4RW.js} +3 -3
- package/dist/{chunk-MASFRPCB.js → chunk-UYPWH7PH.js} +10 -10
- package/dist/{chunk-LSQM3NBR.js → chunk-VAVDAOUA.js} +1 -1
- package/dist/chunk-VBPNCOD7.js +355 -0
- package/dist/{chunk-HQ3CFNHL.js → chunk-VH4PNYOS.js} +1 -1
- package/dist/{chunk-IXXVS2Z4.js → chunk-VQB7G5BM.js} +1 -1
- package/dist/{chunk-FLREUEHW.js → chunk-W4DMQZL5.js} +1 -1
- package/dist/{chunk-RXATE6FZ.js → chunk-WC4MTXGN.js} +22 -0
- package/dist/{chunk-F2ASNL2K.js → chunk-WL263XM2.js} +1 -1
- package/dist/{chunk-ZB6SCA4J.js → chunk-XAGBSYIQ.js} +9 -2
- package/dist/{chunk-LQUMMPGK.js → chunk-XKW4Z7BU.js} +1 -1
- package/dist/chunk-XMRA7CQG.js +22 -0
- package/dist/{chunk-6YYFNGCS.js → chunk-XULJBZ7K.js} +7 -4
- package/dist/chunk-YJK6HOL5.js +29 -0
- package/dist/{chunk-KVNXEAVT.js → chunk-ZCJ5EGLU.js} +30 -10
- package/dist/{chunk-ERUINDRT.js → chunk-ZF3R2IPC.js} +184 -183
- package/dist/{chunk-AECSY5LT.js → chunk-ZYGIDXAK.js} +569 -378
- package/dist/{clean-BW7NHQS5.js → clean-TL3IPJDN.js} +28 -28
- package/dist/cli.js +55 -55
- package/dist/{cloud-TZVXTWZO.js → cloud-EYMRPJNY.js} +4 -4
- package/dist/{cloudrun-KRIETALO.js → cloudrun-TOJ36NLX.js} +11 -11
- package/dist/commands/layout-audit.browser.js +3 -15
- package/dist/{compare-WYWHJ4CR.js → compare-MP5EOW4D.js} +40 -40
- package/dist/{compiler-ANIPXLJ7.js → compiler-NOPVLJ2S.js} +15 -15
- package/dist/{component-CY7DCX56.js → component-ASACDCZK.js} +3 -3
- package/dist/{compositions-5YEB24E3.js → compositions-WKNZJY34.js} +19 -19
- package/dist/{contactSheet-5APX35L3.js → contactSheet-YOBPATEM.js} +2 -2
- package/dist/{delete-6642PDON.js → delete-DQTFHP3G.js} +2 -2
- package/dist/{deploy-NZP6TZLS.js → deploy-HHCFOUFM.js} +4 -4
- package/dist/{deterministicFonts-HQYCUUAL.js → deterministicFonts-LKAGUNE5.js} +3 -3
- package/dist/{dist-V2BGP46S.js → dist-L4Z4ZEYW.js} +7 -4
- package/dist/{dist-DGFC75NC.js → dist-NQEYA4ZX.js} +44 -36
- package/dist/docs/rendering.md +3 -0
- package/dist/{doctor-ZW4A2FS3.js → doctor-JDM65CP7.js} +20 -20
- package/dist/{events-NJU4VFDA.js → events-MBRNA3UF.js} +3 -3
- package/dist/{events-XRCHY2F6.js → events-RKRHRLJD.js} +2 -2
- package/dist/{feedback-NQLSZMES.js → feedback-LZWIWV5J.js} +17 -17
- package/dist/{ffmpeg-RYDQLG3G.js → ffmpeg-4PZKSIGE.js} +15 -15
- package/dist/{figma-TJAMP2CI.js → figma-QFNYUT3F.js} +3 -3
- package/dist/fontLocalizeCli.js +20 -18
- package/dist/{get-RRZ3O26X.js → get-2B5ENJOH.js} +2 -2
- package/dist/{gpuPolicy-4WLHUUS3.js → gpuPolicy-E5FB2GFR.js} +13 -13
- package/dist/{grade-compare-P7PE3NAA.js → grade-compare-4GUAPJHE.js} +40 -40
- package/dist/{gsapParser-IEUSLYDJ.js → gsapParser-3H7ON3DO.js} +1 -1
- package/dist/{gsapParserAcorn-LZJKCFQI.js → gsapParserAcorn-5YD4N6HQ.js} +2 -2
- package/dist/hangReport.js +47 -0
- package/dist/heifImagePrep-C2RYIEER.js +53 -0
- package/dist/{help-6RELRVIW.js → help-XGDAXV67.js} +1 -1
- package/dist/{history-GIIDYND3.js → history-WNFF6HGU.js} +108 -60
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +75 -68
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/hyperframes-slideshow.global.js +16 -16
- package/dist/{info-LBUA2DXE.js → info-BR2LKGJD.js} +16 -16
- package/dist/{init-QUPXBONY.js → init-P6UWPUY3.js} +59 -58
- package/dist/{inspect-CL42DJZ4.js → inspect-MSRPF7ZO.js} +40 -39
- package/dist/inspection.js +4 -4
- package/dist/{installer-VR7XDLR3.js → installer-MPUQS3ZX.js} +10 -10
- package/dist/{keyframes-LELLROMA.js → keyframes-J6K66QTO.js} +11 -11
- package/dist/{lambda-I6KFXWOO.js → lambda-LJ2OSWFJ.js} +32 -13
- package/dist/{layout-NR6SNRZE.js → layout-CDY65XGA.js} +40 -39
- package/dist/{lint-DYEMSEQR.js → lint-CAUNBGPX.js} +13 -10
- package/dist/{lintProject-EA4NPL2X.js → lintProject-ZTSX3AWT.js} +7 -4
- package/dist/{list-RDURYO5U.js → list-33BYQNRZ.js} +2 -2
- package/dist/{login-VKLET5OL.js → login-5QMRKOHK.js} +4 -4
- package/dist/{manager-IYT3THJN.js → manager-3JOHHPVR.js} +17 -17
- package/dist/{manager-7TSUZKXU.js → manager-RMYSZ3KI.js} +7 -3
- package/dist/{media-treatment-I4AFEQZ3.js → media-treatment-4WP22CFN.js} +23 -23
- package/dist/{models-LLPVGC2E.js → models-HPWCHAZX.js} +28 -28
- package/dist/{motionShot-6A6HH6IK.js → motionShot-I7GDIROQ.js} +23 -23
- package/dist/{normalize-audio-KVQJBYLT.js → normalize-audio-VTMXPSC7.js} +14 -14
- package/dist/{open-J4ZT4X3C.js → open-SAO7OQTT.js} +19 -19
- package/dist/{parakeetRunner-FLUCIDIZ.js → parakeetRunner-ZYPBIA73.js} +25 -25
- package/dist/{pipeline-RRVLGALQ.js → pipeline-VNBMR6QU.js} +16 -16
- package/dist/{play-QGJSXUVM.js → play-7VI6A7KN.js} +42 -32
- package/dist/{preflight-SP2ZERBE.js → preflight-VWV7L45J.js} +17 -17
- package/dist/{present-UR4YBHMX.js → present-CSJGYOFF.js} +37 -27
- package/dist/{preview-6ENCRU4C.js → preview-B246ZTVO.js} +60 -45
- package/dist/{producer-OMHZRY6A.js → producer-WJLFDVQJ.js} +1 -1
- package/dist/{projectConfig-NGS7GJ47.js → projectConfig-OMR46ZWQ.js} +14 -13
- package/dist/{publication-6NYQA22Y.js → publication-AA7NNYET.js} +8 -8
- package/dist/{publish-E6RE5VHB.js → publish-TJ4QVVSP.js} +18 -17
- package/dist/{remove-background-66PQRA7R.js → remove-background-LQ2V7W7N.js} +20 -20
- package/dist/{render-ZLRJUFMX.js → render-AWEEPG3F.js} +39 -37
- package/dist/{render-SBAZWXPO.js → render-E5QJG74D.js} +14 -11
- package/dist/{render-IMSGS6BD.js → render-JLTNZ36U.js} +83 -51
- package/dist/{render-batch-MO7LYZSP.js → render-batch-U4T4VSCM.js} +14 -11
- package/dist/renderSetupWorker.js +11 -8
- package/dist/{resolver-QMBVTAKT.js → resolver-GXCTUKPV.js} +10 -10
- package/dist/{screenshotCapture-I5EDCITF.js → screenshotCapture-X6OKIXCB.js} +1 -1
- package/dist/{sherpa-JZRDL3OE.js → sherpa-4VZWVHWZ.js} +24 -24
- package/dist/skills/hyperframes-cli/references/init-and-scaffold.md +1 -0
- package/dist/skills/hyperframes-cli/references/lambda.md +3 -0
- package/dist/skills/hyperframes-cli/references/preview-render.md +3 -0
- package/dist/{skills-YBTEWFYS.js → skills-WUKR7SUE.js} +8 -8
- package/dist/{skillsUpdateCheck-Z4HTDZJN.js → skillsUpdateCheck-YXRBY3JC.js} +3 -3
- package/dist/{snapshot-5F5UV6H5.js → snapshot-Q7S2FTNG.js} +143 -77
- package/dist/{src-WWXYV2TS.js → src-CLAALR5W.js} +26 -19
- package/dist/{src-UTW3F2PM.js → src-ZOXUSGAP.js} +24 -12
- package/dist/{staticProjectServer-UHZ63C5O.js → staticProjectServer-DQ7PIDPA.js} +26 -26
- package/dist/studio/assets/hyperframes-player-Cm5aBiKq.js +478 -0
- package/dist/studio/assets/{index-dy6GQJn4.js → index-BF9YeBnC.js} +142 -142
- package/dist/studio/assets/{index-C8hp9Y7c.js → index-BrqAmMRt.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-BHZ3PHL2.js → studio-api-NUE227JM.js} +18 -18
- package/dist/{studioSelectionClient-IUUPKUHZ.js → studioSelectionClient-D6VMGTKQ.js} +1 -1
- package/dist/{studioServer-AFUXWRB5.js → studioServer-HVOKP4VI.js} +81 -70
- package/dist/{synthesize-PKTB5ATG.js → synthesize-QZHRXGRY.js} +30 -8
- package/dist/{telemetry-UYKOT4OJ.js → telemetry-2Y5JXLDB.js} +3 -3
- package/dist/{timeline-K5NLEMH4.js → timeline-WOQGXFRV.js} +28 -28
- package/dist/{tokens-FCOSWE2O.js → tokens-T3OHTWUC.js} +2 -2
- package/dist/{transcribe-SIFMTW5W.js → transcribe-4U74P5TG.js} +22 -22
- package/dist/{transcribe-K2QTXDQR.js → transcribe-JZ3BO546.js} +32 -32
- package/dist/{tts-5I2AJNLM.js → tts-AY4JO5NQ.js} +2 -2
- package/dist/{updateCheck-JZ6TBZVE.js → updateCheck-6EUAGAM4.js} +2 -2
- package/dist/{upgrade-TUPAJXQQ.js → upgrade-55K6F4MP.js} +2 -2
- package/dist/upstreamProxy-W5FWAT5Z.js +17 -0
- package/dist/{urlDownloader-L4775QID.js → urlDownloader-47JMOLNN.js} +12 -12
- package/dist/{validate-4HVVMEBV.js → validate-QBJ3SBS4.js} +32 -32
- package/dist/{video-4OGPF3IE.js → video-3ZAUNAR3.js} +17 -15
- package/dist/warmCheck.js +50 -48
- package/package.json +2 -1
- package/dist/chunk-4YYJOFKS.js +0 -28
- package/dist/chunk-ZUQZP6QD.js +0 -3986
- package/dist/studio/assets/hyperframes-player-DzdSmJdB.js +0 -478
|
@@ -9,15 +9,7 @@ import {
|
|
|
9
9
|
parseStrictFiniteTimingNumber,
|
|
10
10
|
resolveNaturalMediaTimelineDuration,
|
|
11
11
|
resolveTimedImageDurationSeconds
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import {
|
|
14
|
-
CANVAS_DIMENSIONS,
|
|
15
|
-
isCompositionElement,
|
|
16
|
-
isMediaElement,
|
|
17
|
-
isTextElement,
|
|
18
|
-
keyframesToGsapAnimations,
|
|
19
|
-
serializeGsapAnimations
|
|
20
|
-
} from "./chunk-SVVAUJPL.js";
|
|
12
|
+
} from "./chunk-BDJIQZN2.js";
|
|
21
13
|
import {
|
|
22
14
|
COMPOSITION_ATTRIBUTES,
|
|
23
15
|
MEDIA_START_BASIS_ATTR,
|
|
@@ -29,7 +21,15 @@ import {
|
|
|
29
21
|
parseStartExpression,
|
|
30
22
|
resolveMediaStartSeconds,
|
|
31
23
|
sameInstant
|
|
32
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-SE2MXV2N.js";
|
|
25
|
+
import {
|
|
26
|
+
CANVAS_DIMENSIONS,
|
|
27
|
+
isCompositionElement,
|
|
28
|
+
isMediaElement,
|
|
29
|
+
isTextElement,
|
|
30
|
+
keyframesToGsapAnimations,
|
|
31
|
+
serializeGsapAnimations
|
|
32
|
+
} from "./chunk-NHA4NRBE.js";
|
|
33
33
|
import {
|
|
34
34
|
parseHTML
|
|
35
35
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -59,7 +59,7 @@ function resolveAuthoredTimingWindow(values) {
|
|
|
59
59
|
return { start, duration: end == null ? null : end - start, end };
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
// ../core/dist/
|
|
62
|
+
// ../core/dist/fps.js
|
|
63
63
|
function toFps(input) {
|
|
64
64
|
if (typeof input === "number") {
|
|
65
65
|
return { num: input, den: 1 };
|
|
@@ -72,53 +72,45 @@ function fpsToNumber(fps) {
|
|
|
72
72
|
function fpsToFfmpegArg(fps) {
|
|
73
73
|
return fps.den === 1 ? String(fps.num) : `${fps.num}/${fps.den}`;
|
|
74
74
|
}
|
|
75
|
+
var fail = (reason) => ({ ok: false, reason });
|
|
76
|
+
function rangedFps(num, den) {
|
|
77
|
+
if (num <= 0)
|
|
78
|
+
return fail("non-positive");
|
|
79
|
+
const decimal = num / den;
|
|
80
|
+
if (decimal < 1 || decimal > 240)
|
|
81
|
+
return fail("out-of-range");
|
|
82
|
+
return { ok: true, value: { num, den } };
|
|
83
|
+
}
|
|
84
|
+
function numericFps(input) {
|
|
85
|
+
if (!Number.isFinite(input))
|
|
86
|
+
return fail("not-a-number");
|
|
87
|
+
if (!Number.isInteger(input))
|
|
88
|
+
return fail("ambiguous-decimal");
|
|
89
|
+
return rangedFps(input, 1);
|
|
90
|
+
}
|
|
91
|
+
function fractionFps(raw) {
|
|
92
|
+
const parts = raw.split("/");
|
|
93
|
+
if (parts.length !== 2)
|
|
94
|
+
return fail("invalid-fraction");
|
|
95
|
+
const num = Number(parts[0]);
|
|
96
|
+
const den = Number(parts[1]);
|
|
97
|
+
if (!Number.isFinite(num) || !Number.isFinite(den))
|
|
98
|
+
return fail("not-a-number");
|
|
99
|
+
if (!Number.isInteger(num) || !Number.isInteger(den) || den <= 0)
|
|
100
|
+
return fail("invalid-fraction");
|
|
101
|
+
return rangedFps(num, den);
|
|
102
|
+
}
|
|
75
103
|
function parseFps(input) {
|
|
76
|
-
if (typeof input === "number")
|
|
77
|
-
|
|
78
|
-
return { ok: false, reason: "not-a-number" };
|
|
79
|
-
if (!Number.isInteger(input))
|
|
80
|
-
return { ok: false, reason: "ambiguous-decimal" };
|
|
81
|
-
if (input <= 0)
|
|
82
|
-
return { ok: false, reason: "non-positive" };
|
|
83
|
-
if (input > 240)
|
|
84
|
-
return { ok: false, reason: "out-of-range" };
|
|
85
|
-
return { ok: true, value: { num: input, den: 1 } };
|
|
86
|
-
}
|
|
104
|
+
if (typeof input === "number")
|
|
105
|
+
return numericFps(input);
|
|
87
106
|
const raw = input.trim();
|
|
88
107
|
if (raw === "")
|
|
89
|
-
return
|
|
90
|
-
if (raw.includes("/"))
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
const den = Number(parts[1]);
|
|
96
|
-
if (!Number.isFinite(num) || !Number.isFinite(den)) {
|
|
97
|
-
return { ok: false, reason: "not-a-number" };
|
|
98
|
-
}
|
|
99
|
-
if (!Number.isInteger(num) || !Number.isInteger(den)) {
|
|
100
|
-
return { ok: false, reason: "invalid-fraction" };
|
|
101
|
-
}
|
|
102
|
-
if (den <= 0)
|
|
103
|
-
return { ok: false, reason: "invalid-fraction" };
|
|
104
|
-
if (num <= 0)
|
|
105
|
-
return { ok: false, reason: "non-positive" };
|
|
106
|
-
const decimal = num / den;
|
|
107
|
-
if (decimal < 1 || decimal > 240)
|
|
108
|
-
return { ok: false, reason: "out-of-range" };
|
|
109
|
-
return { ok: true, value: { num, den } };
|
|
110
|
-
}
|
|
111
|
-
if (!/^-?\d+$/.test(raw)) {
|
|
112
|
-
if (/^-?\d*\.\d+$/.test(raw))
|
|
113
|
-
return { ok: false, reason: "ambiguous-decimal" };
|
|
114
|
-
return { ok: false, reason: "not-a-number" };
|
|
115
|
-
}
|
|
116
|
-
const n = Number(raw);
|
|
117
|
-
if (n <= 0)
|
|
118
|
-
return { ok: false, reason: "non-positive" };
|
|
119
|
-
if (n > 240)
|
|
120
|
-
return { ok: false, reason: "out-of-range" };
|
|
121
|
-
return { ok: true, value: { num: n, den: 1 } };
|
|
108
|
+
return fail("empty");
|
|
109
|
+
if (raw.includes("/"))
|
|
110
|
+
return fractionFps(raw);
|
|
111
|
+
if (/^-?\d+$/.test(raw))
|
|
112
|
+
return rangedFps(Number(raw), 1);
|
|
113
|
+
return fail(/^-?\d*\.\d+$/.test(raw) ? "ambiguous-decimal" : "not-a-number");
|
|
122
114
|
}
|
|
123
115
|
function parseFpsWithDefault(input) {
|
|
124
116
|
if (input === void 0 || input === "")
|
|
@@ -479,6 +471,12 @@ function richTextHtml(content) {
|
|
|
479
471
|
return result.join("");
|
|
480
472
|
}
|
|
481
473
|
|
|
474
|
+
// ../core/dist/runtime/mediaClock.js
|
|
475
|
+
var MEDIA_ELEMENT_LEAD_SECONDS = 1e-5;
|
|
476
|
+
function mediaElementTime(sourceSeconds) {
|
|
477
|
+
return sourceSeconds + MEDIA_ELEMENT_LEAD_SECONDS;
|
|
478
|
+
}
|
|
479
|
+
|
|
482
480
|
// ../core/dist/generators/hyperframes.js
|
|
483
481
|
function escapeHtmlAttributeValue(value) {
|
|
484
482
|
return value.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
@@ -619,7 +617,8 @@ function generateGsapTimelineScript(elements, totalDuration, options = {}) {
|
|
|
619
617
|
if (animations && animations.length > 0) {
|
|
620
618
|
const allAnimations = [...animations, ...keyframeAnimations];
|
|
621
619
|
gsapScript = serializeGsapAnimations(allAnimations, "tl", {
|
|
622
|
-
includeMediaSync: hasMedia
|
|
620
|
+
includeMediaSync: hasMedia,
|
|
621
|
+
mediaElementLeadSeconds: MEDIA_ELEMENT_LEAD_SECONDS
|
|
623
622
|
});
|
|
624
623
|
const prependAnimations = [initialPositionSets, visibilityAnimations].filter(Boolean).join("\n");
|
|
625
624
|
if (prependAnimations) {
|
|
@@ -631,7 +630,8 @@ ${prependAnimations}`);
|
|
|
631
630
|
}
|
|
632
631
|
} else if (keyframeAnimations.length > 0) {
|
|
633
632
|
gsapScript = serializeGsapAnimations(keyframeAnimations, "tl", {
|
|
634
|
-
includeMediaSync: hasMedia
|
|
633
|
+
includeMediaSync: hasMedia,
|
|
634
|
+
mediaElementLeadSeconds: MEDIA_ELEMENT_LEAD_SECONDS
|
|
635
635
|
});
|
|
636
636
|
const prependAnimations = [initialPositionSets, visibilityAnimations].filter(Boolean).join("\n");
|
|
637
637
|
if (prependAnimations) {
|
|
@@ -954,7 +954,7 @@ function generateDefaultGsapAnimations(elements, totalDuration, stageZoomKeyfram
|
|
|
954
954
|
const mediaTime = time - start;
|
|
955
955
|
if (time >= start && time < end) {
|
|
956
956
|
if (Math.abs(media.currentTime - mediaTime) > 0.1) {
|
|
957
|
-
media.currentTime = mediaTime;
|
|
957
|
+
media.currentTime = mediaTime + ${MEDIA_ELEMENT_LEAD_SECONDS};
|
|
958
958
|
}
|
|
959
959
|
if (media.paused && !tl.paused()) {
|
|
960
960
|
media.play().catch(function() {});
|
|
@@ -4560,14 +4560,14 @@ function createRuntimeStartTimeResolver(params) {
|
|
|
4560
4560
|
durationCache.set(element, resolved);
|
|
4561
4561
|
return resolved;
|
|
4562
4562
|
};
|
|
4563
|
-
const
|
|
4563
|
+
const COMPOSITION_HOST_SELECTOR = "[data-composition-src], [data-composition-id], [data-composition-file]";
|
|
4564
|
+
const isCompositionHost = (element) => element.matches(COMPOSITION_HOST_SELECTOR);
|
|
4564
4565
|
const inheritedTimingHost = (element) => {
|
|
4565
|
-
|
|
4566
|
-
if (!parent || !element.hasAttribute("data-composition-id"))
|
|
4566
|
+
if (!element.hasAttribute("data-composition-id"))
|
|
4567
4567
|
return null;
|
|
4568
4568
|
if (parseStartExpression(element.getAttribute("data-start")))
|
|
4569
4569
|
return null;
|
|
4570
|
-
return
|
|
4570
|
+
return element.parentElement?.closest(`[data-start], ${COMPOSITION_HOST_SELECTOR}`) ?? null;
|
|
4571
4571
|
};
|
|
4572
4572
|
const resolveCompositionOrigin = (compositionRoot, fallback) => compositionOriginSeconds(resolveStartForElementInternal(compositionRoot, fallback), inheritedTimingHost(compositionRoot) ?? compositionRoot);
|
|
4573
4573
|
const resolveHostOffsetForElement = (element, fallback) => {
|
|
@@ -5632,6 +5632,8 @@ export {
|
|
|
5632
5632
|
isAllowedHtmlAttribute,
|
|
5633
5633
|
isSafeAttributeValue,
|
|
5634
5634
|
sanitizeRichTextChildren,
|
|
5635
|
+
MEDIA_ELEMENT_LEAD_SECONDS,
|
|
5636
|
+
mediaElementTime,
|
|
5635
5637
|
generateHyperframesStyles,
|
|
5636
5638
|
generateGsapTimelineScript,
|
|
5637
5639
|
generateHyperframesHtml,
|