@nodetool-ai/timeline 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +55 -0
- package/dist/.nodetool-build-stamp +1 -0
- package/dist/animation/bakedAnimation.d.ts +84 -0
- package/dist/animation/bakedAnimation.d.ts.map +1 -0
- package/dist/animation/bakedAnimation.js +95 -0
- package/dist/animation/bakedAnimation.js.map +1 -0
- package/dist/animation/beat.d.ts +7 -0
- package/dist/animation/beat.d.ts.map +1 -0
- package/dist/animation/beat.js +36 -0
- package/dist/animation/beat.js.map +1 -0
- package/dist/animation/compile.d.ts +184 -0
- package/dist/animation/compile.d.ts.map +1 -0
- package/dist/animation/compile.js +312 -0
- package/dist/animation/compile.js.map +1 -0
- package/dist/animation/custom.d.ts +183 -0
- package/dist/animation/custom.d.ts.map +1 -0
- package/dist/animation/custom.js +583 -0
- package/dist/animation/custom.js.map +1 -0
- package/dist/animation/easing.d.ts +34 -0
- package/dist/animation/easing.d.ts.map +1 -0
- package/dist/animation/easing.js +332 -0
- package/dist/animation/easing.js.map +1 -0
- package/dist/animation/index.d.ts +20 -0
- package/dist/animation/index.d.ts.map +1 -0
- package/dist/animation/index.js +20 -0
- package/dist/animation/index.js.map +1 -0
- package/dist/animation/links.d.ts +33 -0
- package/dist/animation/links.d.ts.map +1 -0
- package/dist/animation/links.js +126 -0
- package/dist/animation/links.js.map +1 -0
- package/dist/animation/presets.d.ts +86 -0
- package/dist/animation/presets.d.ts.map +1 -0
- package/dist/animation/presets.js +642 -0
- package/dist/animation/presets.js.map +1 -0
- package/dist/animation/sample.d.ts +145 -0
- package/dist/animation/sample.d.ts.map +1 -0
- package/dist/animation/sample.js +390 -0
- package/dist/animation/sample.js.map +1 -0
- package/dist/animation/simplify.d.ts +70 -0
- package/dist/animation/simplify.d.ts.map +1 -0
- package/dist/animation/simplify.js +278 -0
- package/dist/animation/simplify.js.map +1 -0
- package/dist/animation/sourceCurves.d.ts +45 -0
- package/dist/animation/sourceCurves.d.ts.map +1 -0
- package/dist/animation/sourceCurves.js +168 -0
- package/dist/animation/sourceCurves.js.map +1 -0
- package/dist/animation/styleTracks.d.ts +23 -0
- package/dist/animation/styleTracks.d.ts.map +1 -0
- package/dist/animation/styleTracks.js +341 -0
- package/dist/animation/styleTracks.js.map +1 -0
- package/dist/animation/types.d.ts +269 -0
- package/dist/animation/types.d.ts.map +1 -0
- package/dist/animation/types.js +173 -0
- package/dist/animation/types.js.map +1 -0
- package/dist/animation/typewriter.d.ts +8 -0
- package/dist/animation/typewriter.d.ts.map +1 -0
- package/dist/animation/typewriter.js +32 -0
- package/dist/animation/typewriter.js.map +1 -0
- package/dist/audioFade.d.ts +73 -0
- package/dist/audioFade.d.ts.map +1 -0
- package/dist/audioFade.js +134 -0
- package/dist/audioFade.js.map +1 -0
- package/dist/authoredStyles.d.ts +61 -0
- package/dist/authoredStyles.d.ts.map +1 -0
- package/dist/authoredStyles.js +90 -0
- package/dist/authoredStyles.js.map +1 -0
- package/dist/authoring.d.ts +50 -0
- package/dist/authoring.d.ts.map +1 -0
- package/dist/authoring.js +207 -0
- package/dist/authoring.js.map +1 -0
- package/dist/beats.d.ts +103 -0
- package/dist/beats.d.ts.map +1 -0
- package/dist/beats.js +228 -0
- package/dist/beats.js.map +1 -0
- package/dist/clone.d.ts +32 -0
- package/dist/clone.d.ts.map +1 -0
- package/dist/clone.js +53 -0
- package/dist/clone.js.map +1 -0
- package/dist/composition.d.ts +87 -0
- package/dist/composition.d.ts.map +1 -0
- package/dist/composition.js +253 -0
- package/dist/composition.js.map +1 -0
- package/dist/crop.d.ts +48 -0
- package/dist/crop.d.ts.map +1 -0
- package/dist/crop.js +75 -0
- package/dist/crop.js.map +1 -0
- package/dist/defaults.d.ts +142 -0
- package/dist/defaults.d.ts.map +1 -0
- package/dist/defaults.js +335 -0
- package/dist/defaults.js.map +1 -0
- package/dist/dependencyHash.d.ts +14 -0
- package/dist/dependencyHash.d.ts.map +1 -0
- package/dist/dependencyHash.js +19 -0
- package/dist/dependencyHash.js.map +1 -0
- package/dist/dropResolve.d.ts +40 -0
- package/dist/dropResolve.d.ts.map +1 -0
- package/dist/dropResolve.js +137 -0
- package/dist/dropResolve.js.map +1 -0
- package/dist/examples/node.d.ts +11 -0
- package/dist/examples/node.d.ts.map +1 -0
- package/dist/examples/node.js +87 -0
- package/dist/examples/node.js.map +1 -0
- package/dist/extension.d.ts +52 -0
- package/dist/extension.d.ts.map +1 -0
- package/dist/extension.js +269 -0
- package/dist/extension.js.map +1 -0
- package/dist/extensionRequest.d.ts +40 -0
- package/dist/extensionRequest.d.ts.map +1 -0
- package/dist/extensionRequest.js +135 -0
- package/dist/extensionRequest.js.map +1 -0
- package/dist/fill-text.d.ts +30 -0
- package/dist/fill-text.d.ts.map +1 -0
- package/dist/fill-text.js +73 -0
- package/dist/fill-text.js.map +1 -0
- package/dist/fonts/catalog.d.ts +97 -0
- package/dist/fonts/catalog.d.ts.map +1 -0
- package/dist/fonts/catalog.js +276 -0
- package/dist/fonts/catalog.js.map +1 -0
- package/dist/fonts/css.d.ts +24 -0
- package/dist/fonts/css.d.ts.map +1 -0
- package/dist/fonts/css.js +50 -0
- package/dist/fonts/css.js.map +1 -0
- package/dist/fonts/index.d.ts +10 -0
- package/dist/fonts/index.d.ts.map +1 -0
- package/dist/fonts/index.js +10 -0
- package/dist/fonts/index.js.map +1 -0
- package/dist/fonts/register-node.d.ts +45 -0
- package/dist/fonts/register-node.d.ts.map +1 -0
- package/dist/fonts/register-node.js +71 -0
- package/dist/fonts/register-node.js.map +1 -0
- package/dist/generatedMatte.d.ts +86 -0
- package/dist/generatedMatte.d.ts.map +1 -0
- package/dist/generatedMatte.js +152 -0
- package/dist/generatedMatte.js.map +1 -0
- package/dist/generative.d.ts +145 -0
- package/dist/generative.d.ts.map +1 -0
- package/dist/generative.js +396 -0
- package/dist/generative.js.map +1 -0
- package/dist/group.d.ts +47 -0
- package/dist/group.d.ts.map +1 -0
- package/dist/group.js +131 -0
- package/dist/group.js.map +1 -0
- package/dist/index.d.ts +55 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +58 -0
- package/dist/index.js.map +1 -0
- package/dist/interchange.d.ts +47 -0
- package/dist/interchange.d.ts.map +1 -0
- package/dist/interchange.js +158 -0
- package/dist/interchange.js.map +1 -0
- package/dist/keyframes.d.ts +44 -0
- package/dist/keyframes.d.ts.map +1 -0
- package/dist/keyframes.js +148 -0
- package/dist/keyframes.js.map +1 -0
- package/dist/lineDelivery.d.ts +108 -0
- package/dist/lineDelivery.d.ts.map +1 -0
- package/dist/lineDelivery.js +154 -0
- package/dist/lineDelivery.js.map +1 -0
- package/dist/linked.d.ts +41 -0
- package/dist/linked.d.ts.map +1 -0
- package/dist/linked.js +166 -0
- package/dist/linked.js.map +1 -0
- package/dist/lipSyncRequest.d.ts +65 -0
- package/dist/lipSyncRequest.d.ts.map +1 -0
- package/dist/lipSyncRequest.js +73 -0
- package/dist/lipSyncRequest.js.map +1 -0
- package/dist/measureClipDurations.d.ts +7 -0
- package/dist/measureClipDurations.d.ts.map +1 -0
- package/dist/measureClipDurations.js +17 -0
- package/dist/measureClipDurations.js.map +1 -0
- package/dist/mediaTrack.d.ts +120 -0
- package/dist/mediaTrack.d.ts.map +1 -0
- package/dist/mediaTrack.js +269 -0
- package/dist/mediaTrack.js.map +1 -0
- package/dist/midi/cacheKey.d.ts +25 -0
- package/dist/midi/cacheKey.d.ts.map +1 -0
- package/dist/midi/cacheKey.js +54 -0
- package/dist/midi/cacheKey.js.map +1 -0
- package/dist/midi/edit.d.ts +48 -0
- package/dist/midi/edit.d.ts.map +1 -0
- package/dist/midi/edit.js +93 -0
- package/dist/midi/edit.js.map +1 -0
- package/dist/midi/engines/bl1.d.ts +29 -0
- package/dist/midi/engines/bl1.d.ts.map +1 -0
- package/dist/midi/engines/bl1.js +128 -0
- package/dist/midi/engines/bl1.js.map +1 -0
- package/dist/midi/engines/dr1.d.ts +28 -0
- package/dist/midi/engines/dr1.d.ts.map +1 -0
- package/dist/midi/engines/dr1.js +101 -0
- package/dist/midi/engines/dr1.js.map +1 -0
- package/dist/midi/engines/dsp.d.ts +126 -0
- package/dist/midi/engines/dsp.d.ts.map +1 -0
- package/dist/midi/engines/dsp.js +371 -0
- package/dist/midi/engines/dsp.js.map +1 -0
- package/dist/midi/engines/index.d.ts +13 -0
- package/dist/midi/engines/index.d.ts.map +1 -0
- package/dist/midi/engines/index.js +13 -0
- package/dist/midi/engines/index.js.map +1 -0
- package/dist/midi/engines/kits.d.ts +12 -0
- package/dist/midi/engines/kits.d.ts.map +1 -0
- package/dist/midi/engines/kits.js +121 -0
- package/dist/midi/engines/kits.js.map +1 -0
- package/dist/midi/engines/wavetables.d.ts +45 -0
- package/dist/midi/engines/wavetables.d.ts.map +1 -0
- package/dist/midi/engines/wavetables.js +334 -0
- package/dist/midi/engines/wavetables.js.map +1 -0
- package/dist/midi/engines/wt1.d.ts +30 -0
- package/dist/midi/engines/wt1.d.ts.map +1 -0
- package/dist/midi/engines/wt1.js +91 -0
- package/dist/midi/engines/wt1.js.map +1 -0
- package/dist/midi/grid.d.ts +51 -0
- package/dist/midi/grid.d.ts.map +1 -0
- package/dist/midi/grid.js +104 -0
- package/dist/midi/grid.js.map +1 -0
- package/dist/midi/index.d.ts +20 -0
- package/dist/midi/index.d.ts.map +1 -0
- package/dist/midi/index.js +20 -0
- package/dist/midi/index.js.map +1 -0
- package/dist/midi/instrument.d.ts +32 -0
- package/dist/midi/instrument.d.ts.map +1 -0
- package/dist/midi/instrument.js +73 -0
- package/dist/midi/instrument.js.map +1 -0
- package/dist/midi/notes.d.ts +46 -0
- package/dist/midi/notes.d.ts.map +1 -0
- package/dist/midi/notes.js +121 -0
- package/dist/midi/notes.js.map +1 -0
- package/dist/midi/notesEdit.d.ts +94 -0
- package/dist/midi/notesEdit.d.ts.map +1 -0
- package/dist/midi/notesEdit.js +159 -0
- package/dist/midi/notesEdit.js.map +1 -0
- package/dist/midi/presets.d.ts +29 -0
- package/dist/midi/presets.d.ts.map +1 -0
- package/dist/midi/presets.js +281 -0
- package/dist/midi/presets.js.map +1 -0
- package/dist/midi/tempo.d.ts +27 -0
- package/dist/midi/tempo.d.ts.map +1 -0
- package/dist/midi/tempo.js +57 -0
- package/dist/midi/tempo.js.map +1 -0
- package/dist/midi/ticks.d.ts +25 -0
- package/dist/midi/ticks.d.ts.map +1 -0
- package/dist/midi/ticks.js +35 -0
- package/dist/midi/ticks.js.map +1 -0
- package/dist/midi/voice.d.ts +148 -0
- package/dist/midi/voice.d.ts.map +1 -0
- package/dist/midi/voice.js +348 -0
- package/dist/midi/voice.js.map +1 -0
- package/dist/midi/wav.d.ts +14 -0
- package/dist/midi/wav.d.ts.map +1 -0
- package/dist/midi/wav.js +51 -0
- package/dist/midi/wav.js.map +1 -0
- package/dist/model3d.d.ts +41 -0
- package/dist/model3d.d.ts.map +1 -0
- package/dist/model3d.js +39 -0
- package/dist/model3d.js.map +1 -0
- package/dist/model3dBake.d.ts +80 -0
- package/dist/model3dBake.d.ts.map +1 -0
- package/dist/model3dBake.js +127 -0
- package/dist/model3dBake.js.map +1 -0
- package/dist/ops/apply.d.ts +32 -0
- package/dist/ops/apply.d.ts.map +1 -0
- package/dist/ops/apply.js +1595 -0
- package/dist/ops/apply.js.map +1 -0
- package/dist/ops/index.d.ts +13 -0
- package/dist/ops/index.d.ts.map +1 -0
- package/dist/ops/index.js +13 -0
- package/dist/ops/index.js.map +1 -0
- package/dist/ops/op.d.ts +407 -0
- package/dist/ops/op.d.ts.map +1 -0
- package/dist/ops/op.js +61 -0
- package/dist/ops/op.js.map +1 -0
- package/dist/ops/serialize.d.ts +77 -0
- package/dist/ops/serialize.d.ts.map +1 -0
- package/dist/ops/serialize.js +81 -0
- package/dist/ops/serialize.js.map +1 -0
- package/dist/ops/types.d.ts +150 -0
- package/dist/ops/types.d.ts.map +1 -0
- package/dist/ops/types.js +12 -0
- package/dist/ops/types.js.map +1 -0
- package/dist/pathSampling.d.ts +51 -0
- package/dist/pathSampling.d.ts.map +1 -0
- package/dist/pathSampling.js +111 -0
- package/dist/pathSampling.js.map +1 -0
- package/dist/placement/index.d.ts +2 -0
- package/dist/placement/index.d.ts.map +1 -0
- package/dist/placement/index.js +2 -0
- package/dist/placement/index.js.map +1 -0
- package/dist/placement/resolveTrackPlacement.d.ts +40 -0
- package/dist/placement/resolveTrackPlacement.d.ts.map +1 -0
- package/dist/placement/resolveTrackPlacement.js +71 -0
- package/dist/placement/resolveTrackPlacement.js.map +1 -0
- package/dist/production.d.ts +99 -0
- package/dist/production.d.ts.map +1 -0
- package/dist/production.js +328 -0
- package/dist/production.js.map +1 -0
- package/dist/reassemble.d.ts +68 -0
- package/dist/reassemble.d.ts.map +1 -0
- package/dist/reassemble.js +187 -0
- package/dist/reassemble.js.map +1 -0
- package/dist/recipe.d.ts +24 -0
- package/dist/recipe.d.ts.map +1 -0
- package/dist/recipe.js +89 -0
- package/dist/recipe.js.map +1 -0
- package/dist/recordedVoiceReplacement.d.ts +70 -0
- package/dist/recordedVoiceReplacement.d.ts.map +1 -0
- package/dist/recordedVoiceReplacement.js +82 -0
- package/dist/recordedVoiceReplacement.js.map +1 -0
- package/dist/reframe.d.ts +31 -0
- package/dist/reframe.d.ts.map +1 -0
- package/dist/reframe.js +227 -0
- package/dist/reframe.js.map +1 -0
- package/dist/render/canvas2d.d.ts +419 -0
- package/dist/render/canvas2d.d.ts.map +1 -0
- package/dist/render/canvas2d.js +1392 -0
- package/dist/render/canvas2d.js.map +1 -0
- package/dist/render/color.d.ts +26 -0
- package/dist/render/color.d.ts.map +1 -0
- package/dist/render/color.js +305 -0
- package/dist/render/color.js.map +1 -0
- package/dist/render/cpuLegacyEffects.d.ts +17 -0
- package/dist/render/cpuLegacyEffects.d.ts.map +1 -0
- package/dist/render/cpuLegacyEffects.js +347 -0
- package/dist/render/cpuLegacyEffects.js.map +1 -0
- package/dist/render/cpuVisualEffects.d.ts +13 -0
- package/dist/render/cpuVisualEffects.d.ts.map +1 -0
- package/dist/render/cpuVisualEffects.js +388 -0
- package/dist/render/cpuVisualEffects.js.map +1 -0
- package/dist/render/cubeLut.d.ts +12 -0
- package/dist/render/cubeLut.d.ts.map +1 -0
- package/dist/render/cubeLut.js +81 -0
- package/dist/render/cubeLut.js.map +1 -0
- package/dist/render/curveFitting.d.ts +28 -0
- package/dist/render/curveFitting.d.ts.map +1 -0
- package/dist/render/curveFitting.js +94 -0
- package/dist/render/curveFitting.js.map +1 -0
- package/dist/render/draw.d.ts +265 -0
- package/dist/render/draw.d.ts.map +1 -0
- package/dist/render/draw.js +929 -0
- package/dist/render/draw.js.map +1 -0
- package/dist/render/effects.d.ts +120 -0
- package/dist/render/effects.d.ts.map +1 -0
- package/dist/render/effects.js +804 -0
- package/dist/render/effects.js.map +1 -0
- package/dist/render/frameCompositor.d.ts +502 -0
- package/dist/render/frameCompositor.d.ts.map +1 -0
- package/dist/render/frameCompositor.js +1331 -0
- package/dist/render/frameCompositor.js.map +1 -0
- package/dist/render/index.d.ts +27 -0
- package/dist/render/index.d.ts.map +1 -0
- package/dist/render/index.js +27 -0
- package/dist/render/index.js.map +1 -0
- package/dist/render/layout.d.ts +17 -0
- package/dist/render/layout.d.ts.map +1 -0
- package/dist/render/layout.js +197 -0
- package/dist/render/layout.js.map +1 -0
- package/dist/render/model3dBakeSamples.d.ts +45 -0
- package/dist/render/model3dBakeSamples.d.ts.map +1 -0
- package/dist/render/model3dBakeSamples.js +68 -0
- package/dist/render/model3dBakeSamples.js.map +1 -0
- package/dist/render/motionBlur.d.ts +170 -0
- package/dist/render/motionBlur.d.ts.map +1 -0
- package/dist/render/motionBlur.js +193 -0
- package/dist/render/motionBlur.js.map +1 -0
- package/dist/render/sceneModel.d.ts +577 -0
- package/dist/render/sceneModel.d.ts.map +1 -0
- package/dist/render/sceneModel.js +1460 -0
- package/dist/render/sceneModel.js.map +1 -0
- package/dist/render/shapeGeometry.d.ts +81 -0
- package/dist/render/shapeGeometry.d.ts.map +1 -0
- package/dist/render/shapeGeometry.js +460 -0
- package/dist/render/shapeGeometry.js.map +1 -0
- package/dist/render/spatial.d.ts +9 -0
- package/dist/render/spatial.d.ts.map +1 -0
- package/dist/render/spatial.js +58 -0
- package/dist/render/spatial.js.map +1 -0
- package/dist/render/svgPath.d.ts +80 -0
- package/dist/render/svgPath.d.ts.map +1 -0
- package/dist/render/svgPath.js +199 -0
- package/dist/render/svgPath.js.map +1 -0
- package/dist/render/temporal.d.ts +6 -0
- package/dist/render/temporal.d.ts.map +1 -0
- package/dist/render/temporal.js +74 -0
- package/dist/render/temporal.js.map +1 -0
- package/dist/render/textLayout.d.ts +159 -0
- package/dist/render/textLayout.d.ts.map +1 -0
- package/dist/render/textLayout.js +301 -0
- package/dist/render/textLayout.js.map +1 -0
- package/dist/render/trackEffects.d.ts +23 -0
- package/dist/render/trackEffects.d.ts.map +1 -0
- package/dist/render/trackEffects.js +93 -0
- package/dist/render/trackEffects.js.map +1 -0
- package/dist/render/transform.d.ts +54 -0
- package/dist/render/transform.d.ts.map +1 -0
- package/dist/render/transform.js +222 -0
- package/dist/render/transform.js.map +1 -0
- package/dist/render/transition.d.ts +109 -0
- package/dist/render/transition.d.ts.map +1 -0
- package/dist/render/transition.js +351 -0
- package/dist/render/transition.js.map +1 -0
- package/dist/retarget.d.ts +73 -0
- package/dist/retarget.d.ts.map +1 -0
- package/dist/retarget.js +305 -0
- package/dist/retarget.js.map +1 -0
- package/dist/rippleEdit.d.ts +83 -0
- package/dist/rippleEdit.d.ts.map +1 -0
- package/dist/rippleEdit.js +184 -0
- package/dist/rippleEdit.js.map +1 -0
- package/dist/scene.d.ts +28 -0
- package/dist/scene.d.ts.map +1 -0
- package/dist/scene.js +28 -0
- package/dist/scene.js.map +1 -0
- package/dist/script-link.d.ts +52 -0
- package/dist/script-link.d.ts.map +1 -0
- package/dist/script-link.js +78 -0
- package/dist/script-link.js.map +1 -0
- package/dist/script.d.ts +52 -0
- package/dist/script.d.ts.map +1 -0
- package/dist/script.js +93 -0
- package/dist/script.js.map +1 -0
- package/dist/snap.d.ts +2 -0
- package/dist/snap.d.ts.map +1 -0
- package/dist/snap.js +21 -0
- package/dist/snap.js.map +1 -0
- package/dist/snapping/buildSnapPoints.d.ts +16 -0
- package/dist/snapping/buildSnapPoints.d.ts.map +1 -0
- package/dist/snapping/buildSnapPoints.js +39 -0
- package/dist/snapping/buildSnapPoints.js.map +1 -0
- package/dist/snapping/index.d.ts +3 -0
- package/dist/snapping/index.d.ts.map +1 -0
- package/dist/snapping/index.js +3 -0
- package/dist/snapping/index.js.map +1 -0
- package/dist/snapping/resolveSnap.d.ts +19 -0
- package/dist/snapping/resolveSnap.d.ts.map +1 -0
- package/dist/snapping/resolveSnap.js +39 -0
- package/dist/snapping/resolveSnap.js.map +1 -0
- package/dist/sourceRate.d.ts +12 -0
- package/dist/sourceRate.d.ts.map +1 -0
- package/dist/sourceRate.js +13 -0
- package/dist/sourceRate.js.map +1 -0
- package/dist/spatialVideoRequest.d.ts +91 -0
- package/dist/spatialVideoRequest.d.ts.map +1 -0
- package/dist/spatialVideoRequest.js +175 -0
- package/dist/spatialVideoRequest.js.map +1 -0
- package/dist/splitClip.d.ts +3 -0
- package/dist/splitClip.d.ts.map +1 -0
- package/dist/splitClip.js +190 -0
- package/dist/splitClip.js.map +1 -0
- package/dist/stableSerialize.d.ts +11 -0
- package/dist/stableSerialize.d.ts.map +1 -0
- package/dist/stableSerialize.js +31 -0
- package/dist/stableSerialize.js.map +1 -0
- package/dist/staleSet.d.ts +41 -0
- package/dist/staleSet.d.ts.map +1 -0
- package/dist/staleSet.js +106 -0
- package/dist/staleSet.js.map +1 -0
- package/dist/storyboard.d.ts +221 -0
- package/dist/storyboard.d.ts.map +1 -0
- package/dist/storyboard.js +417 -0
- package/dist/storyboard.js.map +1 -0
- package/dist/subtitles.d.ts +61 -0
- package/dist/subtitles.d.ts.map +1 -0
- package/dist/subtitles.js +92 -0
- package/dist/subtitles.js.map +1 -0
- package/dist/takes.d.ts +76 -0
- package/dist/takes.d.ts.map +1 -0
- package/dist/takes.js +238 -0
- package/dist/takes.js.map +1 -0
- package/dist/timeRemap.d.ts +101 -0
- package/dist/timeRemap.d.ts.map +1 -0
- package/dist/timeRemap.js +183 -0
- package/dist/timeRemap.js.map +1 -0
- package/dist/trackOrder.d.ts +38 -0
- package/dist/trackOrder.d.ts.map +1 -0
- package/dist/trackOrder.js +54 -0
- package/dist/trackOrder.js.map +1 -0
- package/dist/transitionAtCut.d.ts +89 -0
- package/dist/transitionAtCut.d.ts.map +1 -0
- package/dist/transitionAtCut.js +217 -0
- package/dist/transitionAtCut.js.map +1 -0
- package/dist/trimClip.d.ts +13 -0
- package/dist/trimClip.d.ts.map +1 -0
- package/dist/trimClip.js +60 -0
- package/dist/trimClip.js.map +1 -0
- package/dist/types.d.ts +1772 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +84 -0
- package/dist/types.js.map +1 -0
- package/fonts/BebasNeue-Regular.ttf +0 -0
- package/fonts/Inter-ExtraBold.ttf +0 -0
- package/fonts/Inter-Italic-Variable.ttf +0 -0
- package/fonts/Inter-SemiBold.ttf +0 -0
- package/fonts/Inter-Variable.ttf +0 -0
- package/fonts/JetBrainsMono-Italic-Variable.ttf +0 -0
- package/fonts/JetBrainsMono-Variable.ttf +0 -0
- package/fonts/Lora-Italic-Variable.ttf +0 -0
- package/fonts/Lora-Variable.ttf +0 -0
- package/fonts/OFL-BebasNeue.txt +93 -0
- package/fonts/OFL-Inter.txt +93 -0
- package/fonts/OFL-JetBrainsMono.txt +93 -0
- package/fonts/OFL-Lora.txt +93 -0
- package/fonts/OFL-PlayfairDisplay.txt +93 -0
- package/fonts/OFL-SpaceGrotesk.txt +93 -0
- package/fonts/PlayfairDisplay-Italic-Variable.ttf +0 -0
- package/fonts/PlayfairDisplay-Variable.ttf +0 -0
- package/fonts/SpaceGrotesk-Variable.ttf +0 -0
- package/package.json +108 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":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S,GACT,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,OAAO,GACP,YAAY,CAAC;AAEjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,mBAAmB,YAC9B,SAAS,EACT,SAAS,EACT,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,WAAW,EACX,WAAW,EACX,SAAS,EACT,cAAc,EACd,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,KAAK,EACL,aAAa,EACb,MAAM,EACN,WAAW,EACX,WAAW,EACX,SAAS,EACT,SAAS,EACT,WAAW,EACX,SAAS,EACT,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,WAAW,CACH,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CACzC,gBAAgB,EAChB,KAAK,GAAG,UAAU,GAAG,SAAS,GAAG,KAAK,CA6BvC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CACzC,gBAAgB,EAChB,QAAQ,GAAG,SAAS,CA+BrB,CAAC"}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Motion-design animation types (pure, no DOM/GPU/store access).
|
|
3
|
+
*
|
|
4
|
+
* A `ClipAnimation` is a named preset attached to a clip. Presets never render
|
|
5
|
+
* directly; they compile to keyframe curves (see `compile.ts`) sampled by one
|
|
6
|
+
* sampler (`sample.ts`). This keeps the authoring surface small (preset + a few
|
|
7
|
+
* params) while leaving room for a curve editor later without a schema break.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* What a staggered animation splits a text clip into. `"word"` is the
|
|
11
|
+
* whitespace-separated word, `"character"` the grapheme cluster (an emoji or a
|
|
12
|
+
* base letter plus its combining marks counts once, and the whitespace between
|
|
13
|
+
* words is a unit that is timed but draws nothing), `"line"` the wrapped line.
|
|
14
|
+
*/
|
|
15
|
+
export const STAGGER_UNITS = ["word", "character", "line"];
|
|
16
|
+
/**
|
|
17
|
+
* Narrow a document's `stagger.unit` string to a unit this build implements,
|
|
18
|
+
* or `null` for one it does not — which compiles un-staggered rather than
|
|
19
|
+
* failing the document (I2).
|
|
20
|
+
*/
|
|
21
|
+
export function parseStaggerUnit(unit) {
|
|
22
|
+
return STAGGER_UNITS.includes(unit)
|
|
23
|
+
? unit
|
|
24
|
+
: null;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Every property a curve can drive, as a runtime list so a custom animation's
|
|
28
|
+
* curves can be checked against it (see `custom.ts`).
|
|
29
|
+
*
|
|
30
|
+
* - `offsetX` / `offsetY` — canvas px, added to `transform.position`
|
|
31
|
+
* - `scale` — uniform multiplier on `ClipTransform.scale`
|
|
32
|
+
* - `rotation` — radians, added to `ClipTransform.rotation`
|
|
33
|
+
* - `opacity` — multiplier on the layer's resolved opacity
|
|
34
|
+
* - `wipeProgress` — 0 = fully hidden, 1 = fully revealed (needs a mask)
|
|
35
|
+
*
|
|
36
|
+
* The last three are effect params applied through the compositor's per-layer
|
|
37
|
+
* effect pre-pass. The engine stays pure: they compose into synthesized
|
|
38
|
+
* `ClipEffect`s at the render site (see `resolveAnimatedLayerProps`), matching
|
|
39
|
+
* what the `color.grade` / Gaussian-blur pipeline already applies.
|
|
40
|
+
*
|
|
41
|
+
* - `blur` — added to the layer's blur radius, in source px (identity 0)
|
|
42
|
+
* - `brightness` — added to the grade shader's brightness term, -1..1 (identity 0)
|
|
43
|
+
* - `saturation` — multiplies the grade shader's saturation, 0..4 (identity 1)
|
|
44
|
+
* - `contrast` — multiplies the grade shader's contrast, 0..4 (identity 1)
|
|
45
|
+
* - `hue` — added to the grade shader's hue rotation, degrees (identity 0)
|
|
46
|
+
* - `temperature` — added to the grade's cool→warm term, -1..1 (identity 0)
|
|
47
|
+
* - `tint` — added to the grade's green→magenta term, -1..1 (identity 0)
|
|
48
|
+
*
|
|
49
|
+
* Four channels set an absolute value rather than composing with the clip's:
|
|
50
|
+
*
|
|
51
|
+
* - `positionX` / `positionY` — replace `transform.position`, canvas px
|
|
52
|
+
* - `anchorX` / `anchorY` — replace `transform.anchor`, normalized 0..1
|
|
53
|
+
* - `trimStart` / `trimEnd` — replace the shape's stroked sub-range, 0..1
|
|
54
|
+
*
|
|
55
|
+
* Four drive a `model3d` clip's camera, composing with `model3dStyle.camera`
|
|
56
|
+
* the way the grade channels compose with the clip's effects (D4). They are
|
|
57
|
+
* ignored on every other kind of layer, the way `wipeProgress` is ignored
|
|
58
|
+
* without a mask:
|
|
59
|
+
*
|
|
60
|
+
* - `cameraAzimuth` — added to the orbit azimuth, degrees (identity 0)
|
|
61
|
+
* - `cameraElevation` — added to the orbit elevation, degrees (identity 0)
|
|
62
|
+
* - `cameraZoom` — multiplies the framing distance multiplier (identity 1)
|
|
63
|
+
* - `cameraFov` — added to the camera's field of view, degrees (identity 0)
|
|
64
|
+
*/
|
|
65
|
+
export const ANIMATED_PROPERTIES = [
|
|
66
|
+
"offsetX",
|
|
67
|
+
"offsetY",
|
|
68
|
+
"scale",
|
|
69
|
+
"scaleX",
|
|
70
|
+
"scaleY",
|
|
71
|
+
"rotation",
|
|
72
|
+
"rotationX",
|
|
73
|
+
"rotationY",
|
|
74
|
+
"opacity",
|
|
75
|
+
"wipeProgress",
|
|
76
|
+
"blur",
|
|
77
|
+
"brightness",
|
|
78
|
+
"saturation",
|
|
79
|
+
"contrast",
|
|
80
|
+
"hue",
|
|
81
|
+
"temperature",
|
|
82
|
+
"tint",
|
|
83
|
+
"positionX",
|
|
84
|
+
"positionY",
|
|
85
|
+
"anchorX",
|
|
86
|
+
"anchorY",
|
|
87
|
+
"trimStart",
|
|
88
|
+
"trimEnd",
|
|
89
|
+
"cameraAzimuth",
|
|
90
|
+
"cameraElevation",
|
|
91
|
+
"cameraZoom",
|
|
92
|
+
"cameraFov"
|
|
93
|
+
];
|
|
94
|
+
/**
|
|
95
|
+
* How several animations driving one channel combine. The sampler folds by
|
|
96
|
+
* this table rather than by a switch, so a new channel declares its fold here
|
|
97
|
+
* and nowhere else (I3).
|
|
98
|
+
*
|
|
99
|
+
* - `add` — offsets and additive grade terms sum
|
|
100
|
+
* - `multiply` — scale, opacity and multiplicative grade terms multiply
|
|
101
|
+
* - `min` — overlapping wipes keep the smaller progress: more hidden wins
|
|
102
|
+
* - `replace` — the last enabled animation in document order wins; the
|
|
103
|
+
* validator warns when two replace curves overlap in time
|
|
104
|
+
*/
|
|
105
|
+
export const ANIMATED_PROPERTY_FOLD = {
|
|
106
|
+
offsetX: "add",
|
|
107
|
+
offsetY: "add",
|
|
108
|
+
scale: "multiply",
|
|
109
|
+
scaleX: "multiply",
|
|
110
|
+
scaleY: "multiply",
|
|
111
|
+
rotation: "add",
|
|
112
|
+
rotationX: "add",
|
|
113
|
+
rotationY: "add",
|
|
114
|
+
opacity: "multiply",
|
|
115
|
+
wipeProgress: "min",
|
|
116
|
+
blur: "add",
|
|
117
|
+
brightness: "add",
|
|
118
|
+
saturation: "multiply",
|
|
119
|
+
contrast: "multiply",
|
|
120
|
+
hue: "add",
|
|
121
|
+
temperature: "add",
|
|
122
|
+
tint: "add",
|
|
123
|
+
positionX: "replace",
|
|
124
|
+
positionY: "replace",
|
|
125
|
+
anchorX: "replace",
|
|
126
|
+
anchorY: "replace",
|
|
127
|
+
trimStart: "replace",
|
|
128
|
+
trimEnd: "replace",
|
|
129
|
+
cameraAzimuth: "add",
|
|
130
|
+
cameraElevation: "add",
|
|
131
|
+
cameraZoom: "multiply",
|
|
132
|
+
cameraFov: "add"
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Which fold pass a channel belongs to when its animation is staggered. A
|
|
136
|
+
* staggered animation's transform and opacity channels run once per unit at
|
|
137
|
+
* that unit's own time; the effect, mask and shape channels stay
|
|
138
|
+
* block-level over the full stagger span, because the compositor applies them
|
|
139
|
+
* to the whole layer. The sampler classifies by this table rather than by a
|
|
140
|
+
* list of its own, so a new channel picks its pass here.
|
|
141
|
+
*/
|
|
142
|
+
export const ANIMATED_PROPERTY_PASS = {
|
|
143
|
+
offsetX: "motion",
|
|
144
|
+
offsetY: "motion",
|
|
145
|
+
scale: "motion",
|
|
146
|
+
scaleX: "motion",
|
|
147
|
+
scaleY: "motion",
|
|
148
|
+
rotation: "motion",
|
|
149
|
+
rotationX: "motion",
|
|
150
|
+
rotationY: "motion",
|
|
151
|
+
opacity: "motion",
|
|
152
|
+
wipeProgress: "effects",
|
|
153
|
+
blur: "effects",
|
|
154
|
+
brightness: "effects",
|
|
155
|
+
saturation: "effects",
|
|
156
|
+
contrast: "effects",
|
|
157
|
+
hue: "effects",
|
|
158
|
+
temperature: "effects",
|
|
159
|
+
tint: "effects",
|
|
160
|
+
positionX: "motion",
|
|
161
|
+
positionY: "motion",
|
|
162
|
+
anchorX: "motion",
|
|
163
|
+
anchorY: "motion",
|
|
164
|
+
trimStart: "effects",
|
|
165
|
+
trimEnd: "effects",
|
|
166
|
+
// A camera move applies to the whole 3D layer, never per word, so it folds
|
|
167
|
+
// in the block-level pass with the effect channels.
|
|
168
|
+
cameraAzimuth: "effects",
|
|
169
|
+
cameraElevation: "effects",
|
|
170
|
+
cameraZoom: "effects",
|
|
171
|
+
cameraFov: "effects"
|
|
172
|
+
};
|
|
173
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/animation/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AA2BH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,CAAU,CAAC;AAIpE;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,IAAY;IAC3C,OAAQ,aAAmC,CAAC,QAAQ,CAAC,IAAI,C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C,MAAM,sBAAsB,GAG/B;IACF,OAAO,EAAE,QAAQ;IACjB,OAAO,EAAE,QAAQ;IACjB,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,QAAQ;IAClB,SAAS,EAAE,QAAQ;IACnB,SAAS,EAAE,QAAQ;IACnB,OAAO,EAAE,QAAQ;IACjB,YAAY,EAAE,SAAS;IACvB,IAAI,EAAE,SAAS;IACf,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,QAAQ,EAAE,SAAS;IACnB,GAAG,EAAE,SAAS;IACd,WAAW,EAAE,SAAS;IACtB,IAAI,EAAE,SAAS;IACf,SAAS,EAAE,QAAQ;IACnB,SAAS,EAAE,QAAQ;IACnB,OAAO,EAAE,QAAQ;IACjB,OAAO,EAAE,QAAQ;IACjB,SAAS,EAAE,SAAS;IACpB,OAAO,EAAE,SAAS;IAClB,2EAA2E;IAC3E,oDAAoD;IACpD,aAAa,EAAE,SAAS;IACxB,eAAe,EAAE,SAAS;IAC1B,UAAU,EAAE,SAAS;IACrB,SAAS,EAAE,SAAS;CACrB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AnimationStagger } from "./types.js";
|
|
2
|
+
export declare function countTypewriterUnits(text: string): number;
|
|
3
|
+
/** Resolve the author-facing total duration to one-character reveal windows. */
|
|
4
|
+
export declare function typewriterTiming(text: string, clipDurationMs: number, requestedDurationMs?: number, stagger?: AnimationStagger): {
|
|
5
|
+
durationMs: number;
|
|
6
|
+
stagger: AnimationStagger;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=typewriter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typewriter.d.ts","sourceRoot":"","sources":["../../src/animation/typewriter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAkBnD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CASzD;AAED,gFAAgF;AAChF,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EACZ,cAAc,EAAE,MAAM,EACtB,mBAAmB,CAAC,EAAE,MAAM,EAC5B,OAAO,CAAC,EAAE,gBAAgB,GACzB;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,gBAAgB,CAAA;CAAE,CAiBnD"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const Segmenter = typeof Intl !== "undefined"
|
|
2
|
+
? Intl.Segmenter
|
|
3
|
+
: undefined;
|
|
4
|
+
const segmenter = Segmenter
|
|
5
|
+
? new Segmenter(undefined, { granularity: "grapheme" })
|
|
6
|
+
: null;
|
|
7
|
+
export function countTypewriterUnits(text) {
|
|
8
|
+
const words = text.split(/\s+/).filter(Boolean);
|
|
9
|
+
if (words.length === 0)
|
|
10
|
+
return 0;
|
|
11
|
+
return words.length - 1 + words.reduce((count, word) => count + (segmenter
|
|
12
|
+
? Array.from(segmenter.segment(word)).length
|
|
13
|
+
: Array.from(word).length), 0);
|
|
14
|
+
}
|
|
15
|
+
/** Resolve the author-facing total duration to one-character reveal windows. */
|
|
16
|
+
export function typewriterTiming(text, clipDurationMs, requestedDurationMs, stagger) {
|
|
17
|
+
const count = countTypewriterUnits(text);
|
|
18
|
+
const availableMs = Math.max(1, clipDurationMs);
|
|
19
|
+
const totalMs = Math.min(availableMs, requestedDurationMs ?? (1 + Math.max(0, count - 1) * (stagger?.offsetMs ?? 65)));
|
|
20
|
+
const fittedOffset = count > 1 ? Math.max(0.001, (totalMs - 1) / (count - 1)) : 0.001;
|
|
21
|
+
const resolvedStagger = {
|
|
22
|
+
unit: stagger?.unit ?? "character",
|
|
23
|
+
offsetMs: stagger ? Math.min(stagger.offsetMs, fittedOffset) : fittedOffset
|
|
24
|
+
};
|
|
25
|
+
if (stagger?.from)
|
|
26
|
+
resolvedStagger.from = stagger.from;
|
|
27
|
+
return {
|
|
28
|
+
durationMs: 1,
|
|
29
|
+
stagger: resolvedStagger
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=typewriter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typewriter.js","sourceRoot":"","sources":["../../src/animation/typewriter.ts"],"names":[],"mappings":"AAMA,MAAM,SAAS,GAAG,OAAO,IAAI,KAAK,WAAW;IAC3C,CAAC,CAAE,IAKC,CAAC,SAAS;IACd,CAAC,CAAC,SAAS,CAAC;AACd,MAAM,SAAS,GAAG,SAAS;IACzB,CAAC,CAAC,IAAI,SAAS,CAAC,SAAS,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;IACvD,CAAC,CAAC,IAAI,CAAC;AAET,MAAM,UAAU,oBAAoB,CAAC,IAAY;IAC/C,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAChD,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,CAAC,CAAC;IACjC,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM,CACpC,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,KAAK,GAAG,CAAC,SAAS;QACjC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM;QAC5C,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,EAC5B,CAAC,CACF,CAAC;AACJ,CAAC;AAED,gFAAgF;AAChF,MAAM,UAAU,gBAAgB,CAC9B,IAAY,EACZ,cAAsB,EACtB,mBAA4B,EAC5B,OAA0B;IAE1B,MAAM,KAAK,GAAG,oBAAoB,CAAC,IAAI,CAAC,CAAC;IACzC,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC;IAChD,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CACtB,WAAW,EACX,mBAAmB,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,GAAG,CAAC,OAAO,EAAE,QAAQ,IAAI,EAAE,CAAC,CAAC,CAChF,CAAC;IACF,MAAM,YAAY,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,OAAO,GAAG,CAAC,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IACtF,MAAM,eAAe,GAAqB;QACxC,IAAI,EAAE,OAAO,EAAE,IAAI,IAAI,WAAW;QAClC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY;KAC5E,CAAC;IACF,IAAI,OAAO,EAAE,IAAI;QAAE,eAAe,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IACvD,OAAO;QACL,UAAU,EAAE,CAAC;QACb,OAAO,EAAE,eAAe;KACzB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clip fade envelopes.
|
|
3
|
+
*
|
|
4
|
+
* A clip's `fadeInMs`/`fadeOutMs` ramp its audio up from silence and back down
|
|
5
|
+
* again, and `fadeInShape`/`fadeOutShape` say along which curve. The four
|
|
6
|
+
* shapes are Final Cut's, and each one is exactly an ffmpeg `afade` curve, so
|
|
7
|
+
* the browser preview and the rendered export hold the same gain at the same
|
|
8
|
+
* millisecond rather than agreeing only in spirit.
|
|
9
|
+
*
|
|
10
|
+
* Progress `t` runs 0 (silence) to 1 (full clip volume) for both edges: a
|
|
11
|
+
* fade-out reads the same curve backwards, which is what ffmpeg does too.
|
|
12
|
+
*/
|
|
13
|
+
export declare const CLIP_FADE_SHAPES: readonly ["linear", "sCurve", "plus3dB", "minus3dB"];
|
|
14
|
+
export type ClipFadeShape = (typeof CLIP_FADE_SHAPES)[number];
|
|
15
|
+
/** The shape a clip with no authored one fades along. */
|
|
16
|
+
export declare const DEFAULT_CLIP_FADE_SHAPE: ClipFadeShape;
|
|
17
|
+
/** Fade length the "apply fades" command and a fresh handle drag author. */
|
|
18
|
+
export declare const DEFAULT_CLIP_FADE_MS = 500;
|
|
19
|
+
export declare function isClipFadeShape(value: unknown): value is ClipFadeShape;
|
|
20
|
+
export declare function parseClipFadeShape(value: unknown): ClipFadeShape;
|
|
21
|
+
/**
|
|
22
|
+
* Media whose clip has sound for a fade to ramp. A fade is an audio envelope:
|
|
23
|
+
* the compositor draws nothing from it, so a clip with no audible signal
|
|
24
|
+
* carries no fade.
|
|
25
|
+
*/
|
|
26
|
+
export declare const FADEABLE_MEDIA_TYPES: readonly ["audio", "video", "midi"];
|
|
27
|
+
export declare function canClipFade(mediaType: string): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Gain multiplier at progress `t` through a fade, in [0, 1].
|
|
30
|
+
*
|
|
31
|
+
* - `linear` holds the midpoint 6 dB down, the straight ramp.
|
|
32
|
+
* - `sCurve` eases both ends and crosses the midpoint where linear does.
|
|
33
|
+
* - `plus3dB` is the equal-power quarter sine: 3 dB above linear at the
|
|
34
|
+
* midpoint, so a fade against a crossing one keeps a constant level.
|
|
35
|
+
* - `minus3dB` is that curve's inverse, holding the midpoint below linear, so
|
|
36
|
+
* the quiet part of a fade lasts longer.
|
|
37
|
+
*/
|
|
38
|
+
export declare function fadeShapeGain(shape: ClipFadeShape, t: number): number;
|
|
39
|
+
/**
|
|
40
|
+
* `steps + 1` gain values across `[from, to]` of the curve, for WebAudio's
|
|
41
|
+
* `setValueCurveAtTime`. A fade resumed mid-way passes the progress it has
|
|
42
|
+
* already covered as `from`, so the ramp continues the curve instead of
|
|
43
|
+
* restarting it.
|
|
44
|
+
*/
|
|
45
|
+
export declare function sampleFadeShape(shape: ClipFadeShape, from: number, to: number, steps: number): Float32Array;
|
|
46
|
+
/** The `afade` curve whose gain function matches `shape` exactly. */
|
|
47
|
+
export declare function ffmpegFadeCurve(shape: ClipFadeShape): string;
|
|
48
|
+
export interface ResolvedClipFades {
|
|
49
|
+
fadeInMs: number;
|
|
50
|
+
fadeOutMs: number;
|
|
51
|
+
fadeInShape: ClipFadeShape;
|
|
52
|
+
fadeOutShape: ClipFadeShape;
|
|
53
|
+
}
|
|
54
|
+
interface FadeFields {
|
|
55
|
+
fadeInMs?: number;
|
|
56
|
+
fadeOutMs?: number;
|
|
57
|
+
fadeInShape?: string;
|
|
58
|
+
fadeOutShape?: string;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* A clip's two fades as lengths that fit inside it: each is capped at the
|
|
62
|
+
* clip, and two that would cross are each capped at half so they meet in the
|
|
63
|
+
* middle instead. Every surface that draws or sounds a fade resolves it here,
|
|
64
|
+
* so the overlay, the preview and the export clamp identically.
|
|
65
|
+
*/
|
|
66
|
+
export declare function resolveClipFades(clip: FadeFields, durationMs: number): ResolvedClipFades;
|
|
67
|
+
/**
|
|
68
|
+
* Envelope gain `msIntoClip` into a clip, in [0, 1]: the fade-in ramp, the
|
|
69
|
+
* fade-out ramp, or 1 in the sustain between them. Outside the clip it is 0.
|
|
70
|
+
*/
|
|
71
|
+
export declare function clipFadeGain(clip: FadeFields, durationMs: number, msIntoClip: number): number;
|
|
72
|
+
export {};
|
|
73
|
+
//# sourceMappingURL=audioFade.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audioFade.d.ts","sourceRoot":"","sources":["../src/audioFade.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,gBAAgB,YAC3B,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,UAAU,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AE,MAAM,GACjB,iBAAiB,CAmBnB;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,UAAU,EAChB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,GACjB,MAAM,CAqBR"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clip fade envelopes.
|
|
3
|
+
*
|
|
4
|
+
* A clip's `fadeInMs`/`fadeOutMs` ramp its audio up from silence and back down
|
|
5
|
+
* again, and `fadeInShape`/`fadeOutShape` say along which curve. The four
|
|
6
|
+
* shapes are Final Cut's, and each one is exactly an ffmpeg `afade` curve, so
|
|
7
|
+
* the browser preview and the rendered export hold the same gain at the same
|
|
8
|
+
* millisecond rather than agreeing only in spirit.
|
|
9
|
+
*
|
|
10
|
+
* Progress `t` runs 0 (silence) to 1 (full clip volume) for both edges: a
|
|
11
|
+
* fade-out reads the same curve backwards, which is what ffmpeg does too.
|
|
12
|
+
*/
|
|
13
|
+
export const CLIP_FADE_SHAPES = [
|
|
14
|
+
"linear",
|
|
15
|
+
"sCurve",
|
|
16
|
+
"plus3dB",
|
|
17
|
+
"minus3dB"
|
|
18
|
+
];
|
|
19
|
+
/** The shape a clip with no authored one fades along. */
|
|
20
|
+
export const DEFAULT_CLIP_FADE_SHAPE = "linear";
|
|
21
|
+
/** Fade length the "apply fades" command and a fresh handle drag author. */
|
|
22
|
+
export const DEFAULT_CLIP_FADE_MS = 500;
|
|
23
|
+
export function isClipFadeShape(value) {
|
|
24
|
+
return CLIP_FADE_SHAPES.includes(value);
|
|
25
|
+
}
|
|
26
|
+
export function parseClipFadeShape(value) {
|
|
27
|
+
return isClipFadeShape(value) ? value : DEFAULT_CLIP_FADE_SHAPE;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Media whose clip has sound for a fade to ramp. A fade is an audio envelope:
|
|
31
|
+
* the compositor draws nothing from it, so a clip with no audible signal
|
|
32
|
+
* carries no fade.
|
|
33
|
+
*/
|
|
34
|
+
export const FADEABLE_MEDIA_TYPES = ["audio", "video", "midi"];
|
|
35
|
+
export function canClipFade(mediaType) {
|
|
36
|
+
return FADEABLE_MEDIA_TYPES.includes(mediaType);
|
|
37
|
+
}
|
|
38
|
+
const clamp01 = (t) => t <= 0 || Number.isNaN(t) ? 0 : t >= 1 ? 1 : t;
|
|
39
|
+
/**
|
|
40
|
+
* Gain multiplier at progress `t` through a fade, in [0, 1].
|
|
41
|
+
*
|
|
42
|
+
* - `linear` holds the midpoint 6 dB down, the straight ramp.
|
|
43
|
+
* - `sCurve` eases both ends and crosses the midpoint where linear does.
|
|
44
|
+
* - `plus3dB` is the equal-power quarter sine: 3 dB above linear at the
|
|
45
|
+
* midpoint, so a fade against a crossing one keeps a constant level.
|
|
46
|
+
* - `minus3dB` is that curve's inverse, holding the midpoint below linear, so
|
|
47
|
+
* the quiet part of a fade lasts longer.
|
|
48
|
+
*/
|
|
49
|
+
export function fadeShapeGain(shape, t) {
|
|
50
|
+
const x = clamp01(t);
|
|
51
|
+
switch (shape) {
|
|
52
|
+
case "sCurve":
|
|
53
|
+
return (1 - Math.cos(x * Math.PI)) / 2;
|
|
54
|
+
case "plus3dB":
|
|
55
|
+
return Math.sin((x * Math.PI) / 2);
|
|
56
|
+
case "minus3dB":
|
|
57
|
+
return (2 / Math.PI) * Math.asin(x);
|
|
58
|
+
case "linear":
|
|
59
|
+
default:
|
|
60
|
+
return x;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* `steps + 1` gain values across `[from, to]` of the curve, for WebAudio's
|
|
65
|
+
* `setValueCurveAtTime`. A fade resumed mid-way passes the progress it has
|
|
66
|
+
* already covered as `from`, so the ramp continues the curve instead of
|
|
67
|
+
* restarting it.
|
|
68
|
+
*/
|
|
69
|
+
export function sampleFadeShape(shape, from, to, steps) {
|
|
70
|
+
const count = Math.max(1, Math.floor(steps)) + 1;
|
|
71
|
+
const start = clamp01(from);
|
|
72
|
+
const end = clamp01(to);
|
|
73
|
+
const curve = new Float32Array(count);
|
|
74
|
+
for (let i = 0; i < count; i += 1) {
|
|
75
|
+
curve[i] = fadeShapeGain(shape, start + ((end - start) * i) / (count - 1));
|
|
76
|
+
}
|
|
77
|
+
return curve;
|
|
78
|
+
}
|
|
79
|
+
/** The `afade` curve whose gain function matches `shape` exactly. */
|
|
80
|
+
export function ffmpegFadeCurve(shape) {
|
|
81
|
+
switch (shape) {
|
|
82
|
+
case "sCurve":
|
|
83
|
+
return "hsin";
|
|
84
|
+
case "plus3dB":
|
|
85
|
+
return "qsin";
|
|
86
|
+
case "minus3dB":
|
|
87
|
+
return "iqsin";
|
|
88
|
+
case "linear":
|
|
89
|
+
default:
|
|
90
|
+
return "tri";
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* A clip's two fades as lengths that fit inside it: each is capped at the
|
|
95
|
+
* clip, and two that would cross are each capped at half so they meet in the
|
|
96
|
+
* middle instead. Every surface that draws or sounds a fade resolves it here,
|
|
97
|
+
* so the overlay, the preview and the export clamp identically.
|
|
98
|
+
*/
|
|
99
|
+
export function resolveClipFades(clip, durationMs) {
|
|
100
|
+
const span = Math.max(0, durationMs);
|
|
101
|
+
const cap = (ms) => Math.min(span, Math.max(0, Number.isFinite(ms) ? ms : 0));
|
|
102
|
+
let fadeInMs = cap(clip.fadeInMs);
|
|
103
|
+
let fadeOutMs = cap(clip.fadeOutMs);
|
|
104
|
+
if (fadeInMs + fadeOutMs > span) {
|
|
105
|
+
const half = span / 2;
|
|
106
|
+
fadeInMs = Math.min(fadeInMs, half);
|
|
107
|
+
fadeOutMs = Math.min(fadeOutMs, half);
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
fadeInMs,
|
|
111
|
+
fadeOutMs,
|
|
112
|
+
fadeInShape: parseClipFadeShape(clip.fadeInShape),
|
|
113
|
+
fadeOutShape: parseClipFadeShape(clip.fadeOutShape)
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Envelope gain `msIntoClip` into a clip, in [0, 1]: the fade-in ramp, the
|
|
118
|
+
* fade-out ramp, or 1 in the sustain between them. Outside the clip it is 0.
|
|
119
|
+
*/
|
|
120
|
+
export function clipFadeGain(clip, durationMs, msIntoClip) {
|
|
121
|
+
if (msIntoClip < 0 || msIntoClip > durationMs)
|
|
122
|
+
return 0;
|
|
123
|
+
const fades = resolveClipFades(clip, durationMs);
|
|
124
|
+
let gain = 1;
|
|
125
|
+
if (fades.fadeInMs > 0 && msIntoClip < fades.fadeInMs) {
|
|
126
|
+
gain = Math.min(gain, fadeShapeGain(fades.fadeInShape, msIntoClip / fades.fadeInMs));
|
|
127
|
+
}
|
|
128
|
+
const fadeOutStartMs = durationMs - fades.fadeOutMs;
|
|
129
|
+
if (fades.fadeOutMs > 0 && msIntoClip > fadeOutStartMs) {
|
|
130
|
+
gain = Math.min(gain, fadeShapeGain(fades.fadeOutShape, (durationMs - msIntoClip) / fades.fadeOutMs));
|
|
131
|
+
}
|
|
132
|
+
return gain;
|
|
133
|
+
}
|
|
134
|
+
//# sourceMappingURL=audioFade.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audioFade.js","sourceRoot":"","sources":["../src/audioFade.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,UAAU;CACF,CAAC;AAIX,yDAAyD;AACzD,MAAM,CAAC,MAAM,uBAAuB,GAAkB,QAAQ,CAAC;AAE/D,4EAA4E;AAC5E,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAC;AAExC,MAAM,UAAU,eAAe,CAAC,KAAc;IAC5C,OAAQ,gBAAuC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAClE,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,KAAc;IAC/C,OAAO,eAAe,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IAAI,GAAG,IAAI,CAAC,GAAG,CACb,IAAI,EACJ,aAAa,CACX,KAAK,CAAC,YAAY,EAClB,CAAC,UAAU,GAAG,UAAU,CAAC,GAAG,KAAK,CAAC,SAAS,CAC5C,CACF,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The defaults an authored text or shape clip gets when the caller leaves a
|
|
3
|
+
* field out.
|
|
4
|
+
*
|
|
5
|
+
* Both surfaces that place these clips — the live editor's agent bridge in
|
|
6
|
+
* `web/` and the headless bridge `edit_timeline` dispatches to — used to carry
|
|
7
|
+
* their own copy, and the copies disagreed: the headless one stroked *every*
|
|
8
|
+
* shape white 8px, so a translucent scrim authored as a gradient rectangle
|
|
9
|
+
* came back with a hard white outline around it, while the same call in the
|
|
10
|
+
* browser drew the scrim alone. One implementation, so a shape placed by an
|
|
11
|
+
* agent looks like the same shape placed by hand.
|
|
12
|
+
*
|
|
13
|
+
* The rule is "make an under-specified clip visible, and change nothing the
|
|
14
|
+
* caller said". A rect or ellipse with no colours at all gets a white fill; a
|
|
15
|
+
* line gets a white stroke, since a line has no interior to fill. A caller who
|
|
16
|
+
* named a fill (or a `fillStyle` gradient) and no stroke gets no stroke — a
|
|
17
|
+
* stroke is a second decision, and defaulting one onto a scrim is a visible
|
|
18
|
+
* mark nobody asked for.
|
|
19
|
+
*/
|
|
20
|
+
import type { ClipModel3DAnimation, ClipModel3DCamera, ClipModel3DStyle, ClipShapeStyle, ClipTextStyle } from "./types.js";
|
|
21
|
+
/**
|
|
22
|
+
* A text clip's stored style: the caller's own fields, the words, and a
|
|
23
|
+
* readable size and colour when those were left out.
|
|
24
|
+
*
|
|
25
|
+
* Spread rather than field-by-field: the style bag is the document schema, so
|
|
26
|
+
* a stroke, a shadow or a gradient the caller asked for is authored the day
|
|
27
|
+
* the schema gains it instead of being silently dropped.
|
|
28
|
+
*/
|
|
29
|
+
export declare function textStyleWithDefaults(text: string, style?: Partial<Omit<ClipTextStyle, "text">>): ClipTextStyle;
|
|
30
|
+
/**
|
|
31
|
+
* A shape clip's stored style. See the module note for why a filled shape gets
|
|
32
|
+
* no stroke of its own.
|
|
33
|
+
*/
|
|
34
|
+
export declare function shapeStyleWithDefaults(shape: ClipShapeStyle): ClipShapeStyle;
|
|
35
|
+
/**
|
|
36
|
+
* A `model3d` style patch: every block optional, and the nested camera and
|
|
37
|
+
* animation blocks partial too.
|
|
38
|
+
*
|
|
39
|
+
* `background` is a discriminated union — a transparent background has no
|
|
40
|
+
* colour and an opaque one must carry it — so it is replaced whole rather than
|
|
41
|
+
* merged; half of it is not a background. `bake` is absent on purpose: it is a
|
|
42
|
+
* render plus the hash it was rendered at, which only the bake op can pair
|
|
43
|
+
* correctly.
|
|
44
|
+
*/
|
|
45
|
+
export interface ClipModel3DStylePatch {
|
|
46
|
+
camera?: Partial<ClipModel3DCamera>;
|
|
47
|
+
animation?: Partial<ClipModel3DAnimation>;
|
|
48
|
+
lighting?: ClipModel3DStyle["lighting"];
|
|
49
|
+
lightIntensity?: number;
|
|
50
|
+
background?: ClipModel3DStyle["background"];
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* A 3D clip's stored style: the patch merged over the clip's own style, or
|
|
54
|
+
* over {@link DEFAULT_MODEL3D_STYLE} for a clip that has none yet.
|
|
55
|
+
*
|
|
56
|
+
* Merged one level down so `{camera: {azimuthDeg: 90}}` turns the model and
|
|
57
|
+
* keeps the elevation, fov and zoom it was framed at. Sending the camera whole
|
|
58
|
+
* to change one term is how a caller resets the other four without meaning to.
|
|
59
|
+
*/
|
|
60
|
+
export declare function model3dStyleWithPatch(base: ClipModel3DStyle | undefined, patch: ClipModel3DStylePatch | undefined): ClipModel3DStyle;
|
|
61
|
+
//# sourceMappingURL=authoredStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authoredStyles.d.ts","sourceRoot":"","sources":["../src/authoredStyles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAWH,OAAO,KAAK,EACV,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACd,MAAM,YAAY,CAAC;AAEpB;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,EACZ,KAAK,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,GAC3C,aAAa,CAWf;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,cAAc,GAAG,cAAc,CAmB5E;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,qBAAqB;IACpC,MAAM,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAC1C,QAAQ,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACxC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAC;CAC7C;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,gBAAgB,GAAG,SAAS,EAClC,KAAK,EAAE,qBAAqB,GAAG,SAAS,GACvC,gBAAgB,CAalB"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The defaults an authored text or shape clip gets when the caller leaves a
|
|
3
|
+
* field out.
|
|
4
|
+
*
|
|
5
|
+
* Both surfaces that place these clips — the live editor's agent bridge in
|
|
6
|
+
* `web/` and the headless bridge `edit_timeline` dispatches to — used to carry
|
|
7
|
+
* their own copy, and the copies disagreed: the headless one stroked *every*
|
|
8
|
+
* shape white 8px, so a translucent scrim authored as a gradient rectangle
|
|
9
|
+
* came back with a hard white outline around it, while the same call in the
|
|
10
|
+
* browser drew the scrim alone. One implementation, so a shape placed by an
|
|
11
|
+
* agent looks like the same shape placed by hand.
|
|
12
|
+
*
|
|
13
|
+
* The rule is "make an under-specified clip visible, and change nothing the
|
|
14
|
+
* caller said". A rect or ellipse with no colours at all gets a white fill; a
|
|
15
|
+
* line gets a white stroke, since a line has no interior to fill. A caller who
|
|
16
|
+
* named a fill (or a `fillStyle` gradient) and no stroke gets no stroke — a
|
|
17
|
+
* stroke is a second decision, and defaulting one onto a scrim is a visible
|
|
18
|
+
* mark nobody asked for.
|
|
19
|
+
*/
|
|
20
|
+
import { DEFAULT_MODEL3D_STYLE, DEFAULT_SHAPE_FILL_COLOR, DEFAULT_SHAPE_STROKE_COLOR, DEFAULT_SHAPE_STROKE_WIDTH_PX, DEFAULT_TEXT_CLIP_COLOR, DEFAULT_TEXT_CLIP_FONT_SIZE_PX } from "./defaults.js";
|
|
21
|
+
import { assertAuthorableFontFamily } from "./fonts/catalog.js";
|
|
22
|
+
/**
|
|
23
|
+
* A text clip's stored style: the caller's own fields, the words, and a
|
|
24
|
+
* readable size and colour when those were left out.
|
|
25
|
+
*
|
|
26
|
+
* Spread rather than field-by-field: the style bag is the document schema, so
|
|
27
|
+
* a stroke, a shadow or a gradient the caller asked for is authored the day
|
|
28
|
+
* the schema gains it instead of being silently dropped.
|
|
29
|
+
*/
|
|
30
|
+
export function textStyleWithDefaults(text, style) {
|
|
31
|
+
// A generic CSS family is refused here rather than stored and reported by
|
|
32
|
+
// the validator afterwards: it names no face, so there is no version of it
|
|
33
|
+
// that renders the same twice.
|
|
34
|
+
assertAuthorableFontFamily(style?.fontFamily);
|
|
35
|
+
return {
|
|
36
|
+
...style,
|
|
37
|
+
text,
|
|
38
|
+
fontSizePx: style?.fontSizePx ?? DEFAULT_TEXT_CLIP_FONT_SIZE_PX,
|
|
39
|
+
color: style?.color ?? DEFAULT_TEXT_CLIP_COLOR
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* A shape clip's stored style. See the module note for why a filled shape gets
|
|
44
|
+
* no stroke of its own.
|
|
45
|
+
*/
|
|
46
|
+
export function shapeStyleWithDefaults(shape) {
|
|
47
|
+
if (shape.kind === "line") {
|
|
48
|
+
return {
|
|
49
|
+
...shape,
|
|
50
|
+
stroke: shape.stroke ?? DEFAULT_SHAPE_STROKE_COLOR,
|
|
51
|
+
strokeWidthPx: shape.strokeWidthPx ?? DEFAULT_SHAPE_STROKE_WIDTH_PX
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
const hasFill = shape.fill !== undefined || shape.fillStyle !== undefined;
|
|
55
|
+
const hasStroke = shape.stroke !== undefined;
|
|
56
|
+
if (hasFill || hasStroke) {
|
|
57
|
+
// The caller decided how this shape is coloured. Only a stroke width is
|
|
58
|
+
// filled in, and only for a stroke they asked for: a colour with no width
|
|
59
|
+
// draws nothing, which reads as the tool ignoring the argument.
|
|
60
|
+
return hasStroke && shape.strokeWidthPx === undefined
|
|
61
|
+
? { ...shape, strokeWidthPx: DEFAULT_SHAPE_STROKE_WIDTH_PX }
|
|
62
|
+
: { ...shape };
|
|
63
|
+
}
|
|
64
|
+
return { ...shape, fill: DEFAULT_SHAPE_FILL_COLOR };
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* A 3D clip's stored style: the patch merged over the clip's own style, or
|
|
68
|
+
* over {@link DEFAULT_MODEL3D_STYLE} for a clip that has none yet.
|
|
69
|
+
*
|
|
70
|
+
* Merged one level down so `{camera: {azimuthDeg: 90}}` turns the model and
|
|
71
|
+
* keeps the elevation, fov and zoom it was framed at. Sending the camera whole
|
|
72
|
+
* to change one term is how a caller resets the other four without meaning to.
|
|
73
|
+
*/
|
|
74
|
+
export function model3dStyleWithPatch(base, patch) {
|
|
75
|
+
const from = base ?? DEFAULT_MODEL3D_STYLE;
|
|
76
|
+
const next = {
|
|
77
|
+
...from,
|
|
78
|
+
camera: { ...from.camera, ...patch?.camera },
|
|
79
|
+
animation: { ...from.animation, ...patch?.animation }
|
|
80
|
+
};
|
|
81
|
+
if (patch?.lighting !== undefined)
|
|
82
|
+
next.lighting = patch.lighting;
|
|
83
|
+
if (patch?.lightIntensity !== undefined) {
|
|
84
|
+
next.lightIntensity = patch.lightIntensity;
|
|
85
|
+
}
|
|
86
|
+
if (patch?.background !== undefined)
|
|
87
|
+
next.background = patch.background;
|
|
88
|
+
return next;
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=authoredStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authoredStyles.js","sourceRoot":"","sources":["../src/authoredStyles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,0BAA0B,EAC1B,6BAA6B,EAC7B,uBAAuB,EACvB,8BAA8B,EAC/B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAShE;;;;;;;GAOG;AACH,MAAM,UAAU,qBAAqB,CACnC,IAAY,EACZ,KAA4C;IAE5C,0EAA0E;IAC1E,2EAA2E;IAC3E,+BAA+B;IAC/B,0BAA0B,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;IAC9C,OAAO;QACL,GAAG,KAAK;QACR,IAAI;QACJ,UAAU,EAAE,KAAK,EAAE,UAAU,IAAI,8BAA8B;QAC/D,KAAK,EAAE,KAAK,EAAE,KAAK,IAAI,uBAAuB;KAC/C,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,sBAAsB,CAAC,KAAqB;IAC1D,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;QAC1B,OAAO;YACL,GAAG,KAAK;YACR,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,0BAA0B;YAClD,aAAa,EAAE,KAAK,CAAC,aAAa,IAAI,6BAA6B;SACpE,CAAC;IACJ,CAAC;IACD,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,KAAK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