reacthub-pixitweenjs 0.2.109-alpha.7 → 0.3.0-alpha.4
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/LICENSE +8 -16
- package/LICENSE.md +79 -239
- package/README.md +253 -106
- package/dist/components/AepComposition/Aep3DPostFx.d.ts +7 -0
- package/dist/components/AepComposition/Aep3DPrecompPlane.d.ts +9 -0
- package/dist/components/AepComposition/Aep3DScene.d.ts +14 -0
- package/dist/components/AepComposition/Aep3DShapeMesh.d.ts +13 -0
- package/dist/components/AepComposition/Aep3DTextMesh.d.ts +17 -0
- package/dist/components/AepComposition/AepAssetResolver.d.ts +13 -0
- package/dist/components/AepComposition/AepAudioLayer.d.ts +34 -0
- package/dist/components/AepComposition/AepComposition.d.ts +18 -0
- package/dist/components/AepComposition/AepLayerProvider.d.ts +30 -0
- package/dist/components/AepComposition/AepLayerRouter.d.ts +5 -0
- package/dist/components/AepComposition/AepMsdfTextMesh.d.ts +17 -0
- package/dist/components/AepComposition/AepPrecompRenderContext.d.ts +23 -0
- package/dist/components/AepComposition/AepPrecompRenderer.d.ts +8 -0
- package/dist/components/AepComposition/AepTextOverrideContext.d.ts +8 -0
- package/dist/components/AepComposition/AepThemeContext.d.ts +8 -0
- package/dist/components/AepComposition/AudioPlaybackManager.d.ts +38 -0
- package/dist/components/AepComposition/composeTransform3D.d.ts +27 -0
- package/dist/components/AepComposition/index.d.ts +42 -0
- package/dist/components/AepComposition/matteSourceIds.d.ts +2 -0
- package/dist/components/AepComposition/model3d/Pixi3DModelLayer.d.ts +9 -0
- package/dist/components/AepComposition/model3d/ThreeOffscreenRenderer.d.ts +49 -0
- package/dist/components/AepComposition/model3d/framing.d.ts +30 -0
- package/dist/components/AepComposition/model3d/geometry.d.ts +27 -0
- package/dist/components/AepComposition/model3d/index.d.ts +14 -0
- package/dist/components/AepComposition/model3d/lighting.d.ts +40 -0
- package/dist/components/AepComposition/model3d/readiness.d.ts +17 -0
- package/dist/components/AepComposition/model3d/sampleModel3D.d.ts +40 -0
- package/dist/components/AepComposition/msdfAtlasRegistry.d.ts +16 -0
- package/dist/components/AepComposition/pathToThreeShape.d.ts +4 -0
- package/dist/components/AepComposition/resolveParentChain.d.ts +3 -0
- package/dist/components/AepComposition/resolvePostFxList.d.ts +2 -0
- package/dist/components/AepComposition/shouldSplitText.d.ts +26 -0
- package/dist/components/AepComposition/threeTextureFromPixi.d.ts +8 -0
- package/dist/components/AepComposition/useAepLayerTransform.d.ts +18 -0
- package/dist/components/AepComposition/useAepLayerTransform3D.d.ts +8 -0
- package/dist/components/AepComposition/useMsdfAtlasRegistry.d.ts +6 -0
- package/dist/components/AepComposition/usePixiRenderTexture.d.ts +14 -0
- package/dist/components/AepComposition/useResolveAsset.d.ts +8 -0
- package/dist/components/AepMask/AepMaskContainer.d.ts +9 -0
- package/dist/components/AepMask/PixiTrackMatte.d.ts +10 -0
- package/dist/components/AepMask/drawAepMask.d.ts +3 -0
- package/dist/components/AepMask/index.d.ts +5 -0
- package/dist/components/PixiAudioSprite/HowlerAudioSprite.d.ts +12 -8
- package/dist/components/PixiAudioSprite/PixiAudioSprite.d.ts +43 -3
- package/dist/components/PixiAudioSprite/index.d.ts +3 -0
- package/dist/components/PixiAudioSprite/useAudioVisualizer.d.ts +30 -15
- package/dist/components/PixiAudioSprite/wave-config.d.ts +0 -1
- package/dist/components/PixiCaptionsTrack/PixiCaptionsTrack.d.ts +86 -0
- package/dist/components/PixiCaptionsTrack/index.d.ts +5 -0
- package/dist/components/PixiCaptionsTrack/useCaptionPlayhead.d.ts +31 -0
- package/dist/components/PixiCaptionsTrack/useCaptionStyles.d.ts +45 -0
- package/dist/components/PixiCaptionsTrack/useEmojiTextures.d.ts +8 -0
- package/dist/components/PixiGifSprite/PixiGifGsapSync.d.ts +11 -10
- package/dist/components/PixiImageSprite/PixiImageSprite.d.ts +28 -2
- package/dist/components/PixiLottieSprite/PixiLottieSprite.d.ts +5 -2
- package/dist/components/PixiNullObject/PixiNullObject.d.ts +25 -0
- package/dist/components/PixiNullObject/index.d.ts +2 -0
- package/dist/components/PixiPreComp/PixiPreComp.d.ts +29 -0
- package/dist/components/PixiPreComp/index.d.ts +3 -0
- package/dist/components/PixiPreComp/validatePrecompDepth.d.ts +2 -0
- package/dist/components/PixiRemotionSprite/PixiRemotionGifSprite.d.ts +24 -0
- package/dist/components/PixiRemotionSprite/PixiRemotionImageSprite.d.ts +18 -0
- package/dist/components/PixiRemotionSprite/PixiRemotionSprite.d.ts +5 -2
- package/dist/components/PixiRemotionSprite/PixiRemotionVideoCanvaSprite.d.ts +20 -0
- package/dist/components/PixiRemotionSprite/index.d.ts +4 -0
- package/dist/components/PixiSVGSprite/PixiMorphSvgSprite.d.ts +35 -0
- package/dist/components/PixiSVGSprite/PixiSvgImageSprite.d.ts +35 -0
- package/dist/components/PixiSVGSprite/PixiSvgPathSprite.d.ts +21 -4
- package/dist/components/PixiSVGSprite/PixiSvgRawSprite.d.ts +30 -0
- package/dist/components/PixiSVGSprite/index.d.ts +5 -0
- package/dist/components/PixiSequence/PixiSequence.d.ts +29 -5
- package/dist/components/PixiShapeLayer/PixiShapeLayer.d.ts +43 -0
- package/dist/components/PixiShapeLayer/drawShape.d.ts +20 -0
- package/dist/components/PixiShapeLayer/index.d.ts +4 -0
- package/dist/components/PixiShapeLayer/samplePath.d.ts +5 -0
- package/dist/components/PixiTextSprite/PixiTextSplit.d.ts +26 -0
- package/dist/components/PixiTextSprite/PixiTextSprite.d.ts +42 -5
- package/dist/components/PixiTextSprite/index.d.ts +3 -0
- package/dist/components/PixiTextSprite/resolveTextSplitFills.d.ts +27 -0
- package/dist/components/PixiTextSprite/textAnimator.d.ts +22 -0
- package/dist/components/PixiThreeSprite/PixiThreeModelSprite.d.ts +23 -0
- package/dist/components/PixiThreeSprite/PixiThreeSprite.d.ts +14 -0
- package/dist/components/PixiThreeSprite/index.d.ts +4 -0
- package/dist/components/PixiUnifiedTransformer/PixiUnifiedTransformer.d.ts +20 -8
- package/dist/components/PixiVideoSprite/PixiVideoCanvasSync.d.ts +3 -1
- package/dist/components/PixiVideoSprite/PixiVideoSprite.d.ts +31 -2
- package/dist/components/index.d.ts +7 -0
- package/dist/constants/animation.d.ts +232 -0
- package/dist/constants/animationConstants.d.ts +90 -0
- package/dist/constants/elementNames.d.ts +4 -0
- package/dist/events/Events.d.ts +0 -1
- package/dist/filters/animated-vfx/AnimatedVfxFilter.d.ts +19 -0
- package/dist/filters/animated-vfx/composeShader.d.ts +2 -0
- package/dist/filters/animated-vfx/index.d.ts +14 -0
- package/dist/filters/animated-vfx/registry/animatedVfxRegistry.d.ts +65 -0
- package/dist/filters/animated-vfx/registry/waveTearVariants.d.ts +14 -0
- package/dist/filters/animated-vfx/toStrength.d.ts +1 -0
- package/dist/filters/animated-vfx/types.d.ts +18 -0
- package/dist/filters/animatedVfxFilters.d.ts +1 -0
- package/dist/filters/blend-mode/createBlendCompositeFilter.d.ts +26 -0
- package/dist/filters/edge-feather/EdgeFeatherFilter.d.ts +19 -0
- package/dist/filters/plate-key/PlateKeyFilter.d.ts +29 -0
- package/dist/hocs/AbstractContainer.d.ts +8 -1
- package/dist/hocs/BorderMaskContainer.d.ts +43 -0
- package/dist/hocs/OverlayTilingSprite.d.ts +3 -3
- package/dist/hocs/drawMaskShape.d.ts +7 -0
- package/dist/hocs/index.d.ts +5 -0
- package/dist/hooks/aep/buildAudioLevelTimeline.d.ts +7 -0
- package/dist/hooks/aep/buildBezierPathTimeline.d.ts +13 -0
- package/dist/hooks/aep/buildColorValueTimeline.d.ts +24 -0
- package/dist/hooks/aep/buildLayerTimeline.d.ts +20 -0
- package/dist/hooks/aep/buildScalarValueTimeline.d.ts +6 -0
- package/dist/hooks/aep/buildVec2ValueTimeline.d.ts +17 -0
- package/dist/hooks/aep/easeCache.d.ts +3 -0
- package/dist/hooks/aep/effectRegistry.d.ts +5 -0
- package/dist/hooks/aep/effects/brightnessContrast.d.ts +2 -0
- package/dist/hooks/aep/effects/dropShadow.d.ts +2 -0
- package/dist/hooks/aep/effects/fastBoxBlur.d.ts +2 -0
- package/dist/hooks/aep/effects/gaussianBlur.d.ts +2 -0
- package/dist/hooks/aep/effects/glow.d.ts +2 -0
- package/dist/hooks/aep/effects/hueSaturation.d.ts +2 -0
- package/dist/hooks/aep/effects/index.d.ts +9 -0
- package/dist/hooks/aep/effects/levels.d.ts +2 -0
- package/dist/hooks/aep/effects/tint.d.ts +2 -0
- package/dist/hooks/aep/effects/types.d.ts +8 -0
- package/dist/hooks/aep/index.d.ts +22 -0
- package/dist/hooks/aep/interpolateBezierPath.d.ts +3 -0
- package/dist/hooks/aep/sampleAnimatable.d.ts +13 -0
- package/dist/hooks/aep/useAepBezierPathAnimator.d.ts +12 -0
- package/dist/hooks/aep/useAepColorAnimator.d.ts +11 -0
- package/dist/hooks/aep/useAepCurrentFrame.d.ts +1 -0
- package/dist/hooks/aep/useAepEffectKeyframes.d.ts +4 -0
- package/dist/hooks/aep/useAepEffects.d.ts +3 -0
- package/dist/hooks/aep/useAepKeyframes.d.ts +15 -0
- package/dist/hooks/aep/useAepTextLayout.d.ts +12 -0
- package/dist/hooks/aep/useAepValueAnimator.d.ts +2 -0
- package/dist/hooks/aep/useAepVec2Animator.d.ts +10 -0
- package/dist/hooks/aep/useTypefaceMetrics.d.ts +2 -0
- package/dist/hooks/index.d.ts +12 -0
- package/dist/hooks/useBlendFilter.d.ts +17 -0
- package/dist/hooks/useDebouncedValue.d.ts +11 -0
- package/dist/hooks/useFontEpoch.d.ts +10 -0
- package/dist/hooks/usePixiAnimation.d.ts +24 -0
- package/dist/hooks/useSpriteFilters.d.ts +81 -0
- package/dist/hooks/useSvgTexture.d.ts +29 -0
- package/dist/hooks/video/useVideoLifecycle.d.ts +23 -0
- package/dist/hooks/video/useVideoTexture.d.ts +34 -0
- package/dist/hooks/video/useVideoTimelineSync.d.ts +24 -0
- package/dist/hooks/withEffectsHook.d.ts +325 -4
- package/dist/hooks/withFiltersHook.d.ts +104 -38
- package/dist/importers/aep/bodymovin-color-controls.d.ts +23 -0
- package/dist/importers/aep/bodymovin-color.d.ts +1 -0
- package/dist/importers/aep/bodymovin-keyframe.d.ts +42 -0
- package/dist/importers/aep/bodymovin-layer.d.ts +84 -0
- package/dist/importers/aep/bodymovin-transform.d.ts +12 -0
- package/dist/importers/aep/bodymovin.d.ts +7 -0
- package/dist/importers/aep/bodymovinCameras.d.ts +34 -0
- package/dist/importers/aep/bodymovinExtensions.d.ts +3 -0
- package/dist/importers/aep/bodymovinTextRuns.d.ts +13 -0
- package/dist/importers/aep/index.d.ts +7 -0
- package/dist/importers/aep/lottieLint.d.ts +23 -0
- package/dist/importers/aep/lottieLint.rules.d.ts +6 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.es.js +76991 -30787
- package/dist/index.umd.js +5621 -1699
- package/dist/lib/pixi-essentials/bounds/AxisAlignedBounds.d.ts +121 -0
- package/dist/lib/pixi-essentials/bounds/OrientedBounds.d.ts +103 -0
- package/dist/lib/pixi-essentials/bounds/index.d.ts +2 -0
- package/dist/lib/pixi-essentials/index.d.ts +6 -0
- package/dist/lib/pixi-essentials/object-pool/AverageProvider.d.ts +28 -0
- package/dist/lib/pixi-essentials/object-pool/ObjectPool.d.ts +103 -0
- package/dist/lib/pixi-essentials/object-pool/ObjectPoolFactory.d.ts +40 -0
- package/dist/lib/pixi-essentials/object-pool/index.d.ts +2 -0
- package/dist/lib/pixi-essentials/react-bindings/Transformer.d.ts +74 -0
- package/dist/lib/pixi-essentials/react-bindings/index.d.ts +3 -0
- package/dist/lib/pixi-essentials/react-bindings/utils/applyEventProps.d.ts +13 -0
- package/dist/lib/pixi-essentials/transformer/Transformer.d.ts +728 -0
- package/dist/lib/pixi-essentials/transformer/TransformerHandle.d.ts +142 -0
- package/dist/lib/pixi-essentials/transformer/TransformerWireframe.d.ts +54 -0
- package/dist/lib/pixi-essentials/transformer/index.d.ts +5 -0
- package/dist/lib/pixi-essentials/transformer/utils/decomposeTransform.d.ts +11 -0
- package/dist/lib/pixi-essentials/transformer/utils/distanceToLine.d.ts +7 -0
- package/dist/lib/pixi-essentials/transformer/utils/multiplyTransform.d.ts +17 -0
- package/dist/lib/pixi-essentials/transformer/utils/skewTransform.d.ts +13 -0
- package/dist/providers/GsapPixieContextProvider.d.ts +7 -0
- package/dist/types/BaseProps.d.ts +51 -16
- package/dist/types/CropTypes.d.ts +12 -0
- package/dist/types/Effects.d.ts +674 -13
- package/dist/types/MaskTypes.d.ts +10 -0
- package/dist/types/OverlayTypes.d.ts +9 -0
- package/dist/types/aep/asset.d.ts +43 -0
- package/dist/types/aep/camera.d.ts +778 -0
- package/dist/types/aep/composition.d.ts +82 -0
- package/dist/types/aep/effect.d.ts +137 -0
- package/dist/types/aep/index.d.ts +14 -0
- package/dist/types/aep/layer.d.ts +26546 -0
- package/dist/types/aep/light.d.ts +781 -0
- package/dist/types/aep/mask.d.ts +193 -0
- package/dist/types/aep/parse.d.ts +11 -0
- package/dist/types/aep/postFx.d.ts +107 -0
- package/dist/types/aep/text-animator.d.ts +687 -0
- package/dist/types/aep/text-runs.d.ts +234 -0
- package/dist/types/aep/theme.d.ts +72 -0
- package/dist/types/aep/transform.d.ts +285 -0
- package/dist/types/aep/transform3D.d.ts +171 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/utils/AppStateProvider.d.ts +1 -0
- package/dist/utils/AppWrapper.d.ts +3 -0
- package/dist/utils/ContextBridge.d.ts +1 -1
- package/dist/utils/GsapAnims.d.ts +0 -1
- package/dist/utils/InteractionManager.d.ts +1 -10
- package/dist/utils/PixiSelector.d.ts +17 -0
- package/dist/utils/aeMath/zoomToFov.d.ts +1 -0
- package/dist/utils/areSpritePropsEqual.d.ts +8 -0
- package/dist/utils/assetRefCount.d.ts +20 -0
- package/dist/utils/audio/audioRegistry.d.ts +51 -0
- package/dist/utils/audio/audioSync.d.ts +98 -0
- package/dist/utils/audio/gainEnvelope.d.ts +162 -0
- package/dist/utils/audio/useAudioRegistry.d.ts +10 -0
- package/dist/utils/blendMode.d.ts +21 -0
- package/dist/utils/captions/captionClock.d.ts +17 -0
- package/dist/utils/captions/captionDisplay.d.ts +57 -0
- package/dist/utils/captions/captionPose.d.ts +107 -0
- package/dist/utils/captions/captionVisual.d.ts +32 -0
- package/dist/utils/captions/captionWordLayout.d.ts +67 -0
- package/dist/utils/captions/groupSegments.d.ts +20 -0
- package/dist/utils/captions/index.d.ts +10 -0
- package/dist/utils/captions/parseSubtitles.d.ts +25 -0
- package/dist/utils/captions/sampleCaption.d.ts +25 -0
- package/dist/utils/captions/timeBase.d.ts +34 -0
- package/dist/utils/captions/types.d.ts +279 -0
- package/dist/utils/entranceOverlap.d.ts +37 -0
- package/dist/utils/fonts/fontLoader.d.ts +33 -0
- package/dist/utils/fonts/fontSpec.d.ts +16 -0
- package/dist/utils/fonts/googleFonts.d.ts +9 -0
- package/dist/utils/gifTiming.d.ts +22 -0
- package/dist/utils/gsapEffects/animationConfigs.d.ts +3802 -0
- package/dist/utils/gsapEffects/backEffects.d.ts +1 -0
- package/dist/utils/gsapEffects/bounceEffects.d.ts +1 -0
- package/dist/utils/gsapEffects/effectGenerator.d.ts +3 -0
- package/dist/utils/gsapEffects/effectTarget.d.ts +11 -0
- package/dist/utils/gsapEffects/fadeEffects.d.ts +1 -0
- package/dist/utils/gsapEffects/flipEffects.d.ts +1 -0
- package/dist/utils/gsapEffects/generalEffects.d.ts +1 -0
- package/dist/utils/gsapEffects/lightSpeedEffect.d.ts +1 -0
- package/dist/utils/gsapEffects/logoRevealEffects.d.ts +1 -0
- package/dist/utils/gsapEffects/registerEffects.d.ts +1 -0
- package/dist/utils/gsapEffects/riseEffect.d.ts +1 -0
- package/dist/utils/gsapEffects/rollEffects.d.ts +1 -0
- package/dist/utils/gsapEffects/rotateEffects.d.ts +1 -0
- package/dist/utils/gsapEffects/slideEffects.d.ts +1 -0
- package/dist/utils/gsapEffects/staggerTextEffects.d.ts +1 -0
- package/dist/utils/gsapEffects/textUnitEffects.d.ts +1 -0
- package/dist/utils/gsapEffects/textUnitMask.d.ts +1 -0
- package/dist/utils/gsapEffects/textUnits.d.ts +172 -0
- package/dist/utils/gsapEffects/typewriterEffect.d.ts +1 -0
- package/dist/utils/gsapEffects/wipeEffect.d.ts +1 -0
- package/dist/utils/gsapEffects/zoomEffects.d.ts +1 -0
- package/dist/utils/index.d.ts +31 -0
- package/dist/utils/isExternalUrl.d.ts +1 -0
- package/dist/utils/loadSpriteTexture.d.ts +39 -0
- package/dist/utils/msdf/computeInstanceMatrix.d.ts +18 -0
- package/dist/utils/msdf/index.d.ts +4 -0
- package/dist/utils/msdf/loadMsdfAtlas.d.ts +9 -0
- package/dist/utils/msdf/msdfShader.d.ts +2 -0
- package/dist/utils/msdf/types.d.ts +49 -0
- package/dist/utils/pixiExtend.d.ts +0 -0
- package/dist/utils/sanitizeCanvasText.d.ts +12 -0
- package/dist/utils/sanitizeImageSrc.d.ts +7 -0
- package/dist/utils/svgRaster.d.ts +47 -0
- package/dist/utils/text/resolveTextRuns.d.ts +8 -0
- package/dist/utils/textLayout/alignLines.d.ts +15 -0
- package/dist/utils/textLayout/applyVerticals.d.ts +14 -0
- package/dist/utils/textLayout/breakLines.d.ts +14 -0
- package/dist/utils/textLayout/canvasMetricsProvider.d.ts +6 -0
- package/dist/utils/textLayout/index.d.ts +7 -0
- package/dist/utils/textLayout/layoutText.d.ts +7 -0
- package/dist/utils/textLayout/metricsCache.d.ts +9 -0
- package/dist/utils/textLayout/pixiCanvasMetricsProvider.d.ts +6 -0
- package/dist/utils/textLayout/shapeRuns.d.ts +18 -0
- package/dist/utils/textLayout/typefaceMetricsProvider.d.ts +19 -0
- package/dist/utils/textLayout/types.d.ts +61 -0
- package/dist/utils/textLayout/unicode.d.ts +2 -0
- package/dist/utils/textStyle.d.ts +81 -0
- package/dist/utils/textStyleV8.d.ts +62 -0
- package/dist/utils/threeModel.d.ts +55 -0
- package/dist/utils/videoAssetCache.d.ts +4 -0
- package/dist/utils/videoReadiness.d.ts +13 -0
- package/package.json +74 -54
- package/dist/assets/icon/transformericons/icons.d.ts +0 -8
- package/dist/components/PixiAudioSprite/PixiAudioSprite.stories.d.ts +0 -12
- package/dist/components/PixiGifSprite/PixiGifSprite.stories.d.ts +0 -163
- package/dist/components/PixiImageSprite/PixiImageSprite.stories.d.ts +0 -150
- package/dist/components/PixiLottieSprite/PixiLottieSprite.stories.d.ts +0 -159
- package/dist/components/PixiSVGSprite/PixiSvgPathSprite.stories.d.ts +0 -131
- package/dist/components/PixiSequence/PixiSequence.stories.d.ts +0 -33
- package/dist/components/PixiTextSprite/PixiTextSprite.stories.d.ts +0 -140
- package/dist/components/PixiVideoSprite/PixiVideoSprite.stories.d.ts +0 -146
- package/dist/favicon.svg +0 -41
- package/dist/pixitweenjs-logo-dark.svg +0 -98
- package/dist/pixitweenjs-logo.svg +0 -97
- package/dist/stories/Features/TestHowlerAudioFiles.d.ts +0 -2
- package/dist/stories/Features/TimelineAnimations.d.ts +0 -15
- package/dist/stories/Features/TimelineTest.d.ts +0 -15
- package/dist/stories/Features/TimelineTest.stories.d.ts +0 -23
- package/dist/stories/Features/TimelineTestAudios.d.ts +0 -15
- package/dist/stories/Features/TimelineTestWithVideos.d.ts +0 -15
- package/dist/stories/Features/TimelineWithGif.d.ts +0 -21
- package/dist/stories/Features/common.tests.d.ts +0 -411
- /package/dist/{.gitkeep → utils/gsapEffects/index.d.ts} +0 -0
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Animation System Constants
|
|
3
|
+
*
|
|
4
|
+
* UPPER_SNAKE_CASE names match GSAP effect names in utils/gsapEffects.
|
|
5
|
+
* Use these values for transformation.animationIn.name / animationOut.name.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ANIMATION_TIMING: {
|
|
8
|
+
/** Default animation duration in milliseconds */
|
|
9
|
+
DEFAULT_DURATION_MS: number;
|
|
10
|
+
/** Default animation duration in seconds */
|
|
11
|
+
DEFAULT_DURATION_SEC: number;
|
|
12
|
+
/** Minimum animation duration in seconds */
|
|
13
|
+
MIN_DURATION_SEC: number;
|
|
14
|
+
/** Maximum animation duration in seconds */
|
|
15
|
+
MAX_DURATION_SEC: number;
|
|
16
|
+
/**
|
|
17
|
+
* Entrance overlap at hard cuts (seconds). When element B starts exactly
|
|
18
|
+
* where element A ends AND A has an animationOut AND B has an animationIn,
|
|
19
|
+
* B's entrance begins this long BEFORE B.start so the cut crossfades
|
|
20
|
+
* instead of blinking through a near-black frame (A faded to 0 + B still
|
|
21
|
+
* at scale 0). Clamped per element to its animationIn duration and length.
|
|
22
|
+
* Must match the nodejs renderer (ENTRANCE_OVERLAP_SEC) frame-exactly.
|
|
23
|
+
*/
|
|
24
|
+
ENTRANCE_OVERLAP_SEC: number;
|
|
25
|
+
/** Default speed for loop animations (e.g. SPIN_360), in full rotations per second.
|
|
26
|
+
* 0.25 = one full turn every 4s — a slow, product-turntable-style spin. */
|
|
27
|
+
DEFAULT_LOOP_ROTATIONS_PER_SEC: number; /** Loop animation speed bounds, in rotations per second. */
|
|
28
|
+
MIN_LOOP_ROTATIONS_PER_SEC: number;
|
|
29
|
+
MAX_LOOP_ROTATIONS_PER_SEC: number;
|
|
30
|
+
};
|
|
31
|
+
export declare const CANVAS_DEFAULTS: {
|
|
32
|
+
WIDTH: number;
|
|
33
|
+
HEIGHT: number;
|
|
34
|
+
};
|
|
35
|
+
export declare const ANIMATIONS_WITHOUT_ALPHA: Set<string>;
|
|
36
|
+
export declare const SPECIAL_ANIMATIONS: Set<string>;
|
|
37
|
+
export declare const LOOP_ANIMATIONS: Set<string>;
|
|
38
|
+
/**
|
|
39
|
+
* Check if an animation name is a continuous loop animation (as opposed to
|
|
40
|
+
* an entrance/exit gsap.effects animation).
|
|
41
|
+
* @param {string} animationName
|
|
42
|
+
* @returns {boolean}
|
|
43
|
+
*/
|
|
44
|
+
export declare function isLoopAnimation(animationName: any): boolean;
|
|
45
|
+
export declare const ANIMATION: {
|
|
46
|
+
NONE: string;
|
|
47
|
+
BOUNCE: string;
|
|
48
|
+
FLASH: string;
|
|
49
|
+
PULSE: string;
|
|
50
|
+
RUBBER_BAND: string;
|
|
51
|
+
SHAKE_X: string;
|
|
52
|
+
SHAKE_Y: string;
|
|
53
|
+
HEAD_SHAKE: string;
|
|
54
|
+
SWING: string;
|
|
55
|
+
TADA: string;
|
|
56
|
+
WOBBLE: string;
|
|
57
|
+
JELLO: string;
|
|
58
|
+
HEART_BEAT: string;
|
|
59
|
+
BACK_IN_DOWN: string;
|
|
60
|
+
BACK_IN_LEFT: string;
|
|
61
|
+
BACK_IN_RIGHT: string;
|
|
62
|
+
BACK_IN_UP: string;
|
|
63
|
+
BACK_OUT_DOWN: string;
|
|
64
|
+
BACK_OUT_LEFT: string;
|
|
65
|
+
BACK_OUT_RIGHT: string;
|
|
66
|
+
BACK_OUT_UP: string;
|
|
67
|
+
BOUNCE_IN: string;
|
|
68
|
+
BOUNCE_IN_DOWN: string;
|
|
69
|
+
BOUNCE_IN_LEFT: string;
|
|
70
|
+
BOUNCE_IN_RIGHT: string;
|
|
71
|
+
BOUNCE_IN_UP: string;
|
|
72
|
+
BOUNCE_OUT: string;
|
|
73
|
+
BOUNCE_OUT_DOWN: string;
|
|
74
|
+
BOUNCE_OUT_LEFT: string;
|
|
75
|
+
BOUNCE_OUT_RIGHT: string;
|
|
76
|
+
BOUNCE_OUT_UP: string;
|
|
77
|
+
FADE_IN: string;
|
|
78
|
+
FADE_IN_DOWN: string;
|
|
79
|
+
FADE_IN_DOWN_BIG: string;
|
|
80
|
+
FADE_IN_LEFT: string;
|
|
81
|
+
FADE_IN_LEFT_BIG: string;
|
|
82
|
+
FADE_IN_RIGHT: string;
|
|
83
|
+
FADE_IN_RIGHT_BIG: string;
|
|
84
|
+
FADE_IN_UP: string;
|
|
85
|
+
FADE_IN_UP_BIG: string;
|
|
86
|
+
FADE_IN_TOP_LEFT: string;
|
|
87
|
+
FADE_IN_TOP_RIGHT: string;
|
|
88
|
+
FADE_IN_BOTTOM_LEFT: string;
|
|
89
|
+
FADE_IN_BOTTOM_RIGHT: string;
|
|
90
|
+
FADE_OUT: string;
|
|
91
|
+
FADE_OUT_DOWN: string;
|
|
92
|
+
FADE_OUT_DOWN_BIG: string;
|
|
93
|
+
FADE_OUT_LEFT: string;
|
|
94
|
+
FADE_OUT_LEFT_BIG: string;
|
|
95
|
+
FADE_OUT_RIGHT: string;
|
|
96
|
+
FADE_OUT_RIGHT_BIG: string;
|
|
97
|
+
FADE_OUT_UP: string;
|
|
98
|
+
FADE_OUT_UP_BIG: string;
|
|
99
|
+
FADE_OUT_TOP_LEFT: string;
|
|
100
|
+
FADE_OUT_TOP_RIGHT: string;
|
|
101
|
+
FADE_OUT_BOTTOM_RIGHT: string;
|
|
102
|
+
FADE_OUT_BOTTOM_LEFT: string;
|
|
103
|
+
FLIP: string;
|
|
104
|
+
FLIP_IN_X: string;
|
|
105
|
+
FLIP_IN_Y: string;
|
|
106
|
+
FLIP_OUT_X: string;
|
|
107
|
+
FLIP_OUT_Y: string;
|
|
108
|
+
LIGHT_SPEED_IN_RIGHT: string;
|
|
109
|
+
LIGHT_SPEED_IN_LEFT: string;
|
|
110
|
+
LIGHT_SPEED_OUT_RIGHT: string;
|
|
111
|
+
LIGHT_SPEED_OUT_LEFT: string;
|
|
112
|
+
ROTATE_IN: string;
|
|
113
|
+
ROTATE_IN_DOWN_LEFT: string;
|
|
114
|
+
ROTATE_IN_DOWN_RIGHT: string;
|
|
115
|
+
ROTATE_IN_UP_LEFT: string;
|
|
116
|
+
ROTATE_IN_UP_RIGHT: string;
|
|
117
|
+
ROTATE_OUT: string;
|
|
118
|
+
ROTATE_OUT_DOWN_LEFT: string;
|
|
119
|
+
ROTATE_OUT_DOWN_RIGHT: string;
|
|
120
|
+
ROTATE_OUT_UP_LEFT: string;
|
|
121
|
+
ROTATE_OUT_UP_RIGHT: string;
|
|
122
|
+
HINGE: string;
|
|
123
|
+
JACK_IN_THE_BOX: string;
|
|
124
|
+
ROLL_IN: string;
|
|
125
|
+
ROLL_OUT: string;
|
|
126
|
+
ZOOM_IN: string;
|
|
127
|
+
ZOOM_IN_DOWN: string;
|
|
128
|
+
ZOOM_IN_LEFT: string;
|
|
129
|
+
ZOOM_IN_RIGHT: string;
|
|
130
|
+
ZOOM_IN_UP: string;
|
|
131
|
+
ZOOM_OUT: string;
|
|
132
|
+
ZOOM_OUT_DOWN: string;
|
|
133
|
+
ZOOM_OUT_LEFT: string;
|
|
134
|
+
ZOOM_OUT_RIGHT: string;
|
|
135
|
+
ZOOM_OUT_UP: string;
|
|
136
|
+
SLIDE_IN_DOWN: string;
|
|
137
|
+
SLIDE_IN_LEFT: string;
|
|
138
|
+
SLIDE_IN_RIGHT: string;
|
|
139
|
+
SLIDE_IN_UP: string;
|
|
140
|
+
SLIDE_OUT_DOWN: string;
|
|
141
|
+
SLIDE_OUT_LEFT: string;
|
|
142
|
+
SLIDE_OUT_RIGHT: string;
|
|
143
|
+
SLIDE_OUT_UP: string;
|
|
144
|
+
SPIN_360: string;
|
|
145
|
+
SCALE_POP: string;
|
|
146
|
+
WIPE_LEFT_RIGHT: string;
|
|
147
|
+
WIPE_RADIAL: string;
|
|
148
|
+
MASK_PAINT_ON: string;
|
|
149
|
+
TYPEWRITER: string;
|
|
150
|
+
RISE: string;
|
|
151
|
+
STAGGER_FADE_UP_TEXT: string;
|
|
152
|
+
STAGGER_FADE_TEXT: string;
|
|
153
|
+
STAGGER_FADE_UP: string;
|
|
154
|
+
STAGGER_FADE: string;
|
|
155
|
+
TEXT_CASCADE: string;
|
|
156
|
+
TEXT_SPOTLIGHT: string;
|
|
157
|
+
TEXT_BLINDS: string;
|
|
158
|
+
TEXT_POPCORN: string;
|
|
159
|
+
TEXT_RIPPLE: string;
|
|
160
|
+
TEXT_SHUFFLE: string;
|
|
161
|
+
TEXT_DOMINO: string;
|
|
162
|
+
TEXT_PENDULUM: string;
|
|
163
|
+
TEXT_SLIDE_REVEAL: string;
|
|
164
|
+
TEXT_SLOT: string;
|
|
165
|
+
TEXT_CURTAIN: string;
|
|
166
|
+
LIGHT_SPEED_IN: string;
|
|
167
|
+
LIGHT_SPEED_OUT: string;
|
|
168
|
+
ROATATE_IN_DOWN_LEFT: string;
|
|
169
|
+
ROATATE_IN_DOWN_RIGHT: string;
|
|
170
|
+
ROATATE_IN_UP_LEFT: string;
|
|
171
|
+
ROATATE_IN_UP_RIGHT: string;
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* Convert a camelCase animation name to UPPER_SNAKE_CASE.
|
|
175
|
+
* Uses explicit map first, then regex fallback.
|
|
176
|
+
* Already-UPPER_SNAKE_CASE names pass through unchanged.
|
|
177
|
+
*
|
|
178
|
+
* @param {string} name - Animation name in any format
|
|
179
|
+
* @returns {string} UPPER_SNAKE_CASE animation name
|
|
180
|
+
*/
|
|
181
|
+
export declare function camelToUpperSnake(name: any): any;
|
|
182
|
+
/**
|
|
183
|
+
* Normalize animation config from various input formats.
|
|
184
|
+
* @param {string|object|null} anim - Animation name or config object
|
|
185
|
+
* @returns {{ name: string, durationSec: number }}
|
|
186
|
+
*/
|
|
187
|
+
interface AnimationConfig {
|
|
188
|
+
name?: string;
|
|
189
|
+
duration?: number;
|
|
190
|
+
}
|
|
191
|
+
interface NormalizedAnimation {
|
|
192
|
+
name: string;
|
|
193
|
+
durationSec: number;
|
|
194
|
+
}
|
|
195
|
+
export declare function normalizeAnimation(anim: string | AnimationConfig | null | undefined): NormalizedAnimation;
|
|
196
|
+
interface LoopAnimationConfig {
|
|
197
|
+
name?: string;
|
|
198
|
+
rotationsPerSecond?: number;
|
|
199
|
+
direction?: 1 | -1;
|
|
200
|
+
}
|
|
201
|
+
interface NormalizedLoopAnimation {
|
|
202
|
+
name: string;
|
|
203
|
+
rotationsPerSecond: number;
|
|
204
|
+
direction: 1 | -1;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Normalize a loop-animation config from various input formats.
|
|
208
|
+
* Mirrors normalizeAnimation() but for `transformation.animationLoop`
|
|
209
|
+
* (continuous animations — see LOOP_ANIMATIONS).
|
|
210
|
+
* @param {string|object|null} anim - Loop animation name or config object
|
|
211
|
+
* @returns {{ name: string, rotationsPerSecond: number, direction: 1|-1 }}
|
|
212
|
+
*/
|
|
213
|
+
export declare function normalizeLoopAnimation(anim: string | LoopAnimationConfig | null | undefined): NormalizedLoopAnimation;
|
|
214
|
+
/**
|
|
215
|
+
* Check if an animation affects the alpha/opacity of the target.
|
|
216
|
+
* @param {string} animationName - The animation name
|
|
217
|
+
* @returns {boolean}
|
|
218
|
+
*/
|
|
219
|
+
export declare function animationAffectsAlpha(animationName: string): boolean;
|
|
220
|
+
/**
|
|
221
|
+
* Check if an animation requires special handling.
|
|
222
|
+
* @param {string} animationName - The animation name
|
|
223
|
+
* @returns {boolean}
|
|
224
|
+
*/
|
|
225
|
+
export declare function isSpecialAnimation(animationName: string): boolean;
|
|
226
|
+
/**
|
|
227
|
+
* Check if an animation name is valid (exists as GSAP effect).
|
|
228
|
+
* @param {string} animationName - The animation name
|
|
229
|
+
* @returns {boolean}
|
|
230
|
+
*/
|
|
231
|
+
export declare function isValidAnimation(animationName: string): boolean;
|
|
232
|
+
export {};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export declare const ANIMATION_DIRECTION: {
|
|
2
|
+
IN: string;
|
|
3
|
+
OUT: string;
|
|
4
|
+
ATTENTION: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const ANIMATION_CATEGORY: {
|
|
7
|
+
NONE: string;
|
|
8
|
+
FADE: string;
|
|
9
|
+
SLIDE: string;
|
|
10
|
+
ZOOM: string;
|
|
11
|
+
BOUNCE: string;
|
|
12
|
+
BACK: string;
|
|
13
|
+
FLIP: string;
|
|
14
|
+
ROTATE: string;
|
|
15
|
+
ROLL: string;
|
|
16
|
+
LIGHT_SPEED: string;
|
|
17
|
+
WIPE: string;
|
|
18
|
+
SHAKE: string;
|
|
19
|
+
SPECIAL: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const ANIMATION_DEFAULTS: {
|
|
22
|
+
OFFSET_SMALL: number;
|
|
23
|
+
OFFSET_MEDIUM: number;
|
|
24
|
+
OFFSET_LARGE: number;
|
|
25
|
+
DEFAULT_DURATION: number;
|
|
26
|
+
MIN_DURATION: number;
|
|
27
|
+
MAX_DURATION: number;
|
|
28
|
+
OPACITY_HIDDEN: number;
|
|
29
|
+
OPACITY_PARTIAL: number;
|
|
30
|
+
OPACITY_VISIBLE: number;
|
|
31
|
+
SCALE_HIDDEN: number;
|
|
32
|
+
SCALE_SMALL: number;
|
|
33
|
+
SCALE_NORMAL: number;
|
|
34
|
+
SCALE_LARGE: number;
|
|
35
|
+
ROTATION_NONE: number;
|
|
36
|
+
ROTATION_SMALL: number;
|
|
37
|
+
ROTATION_MEDIUM: number;
|
|
38
|
+
ROTATION_LARGE: number;
|
|
39
|
+
ROTATION_FULL: number;
|
|
40
|
+
};
|
|
41
|
+
export declare const EASING_PRESETS: {
|
|
42
|
+
EASE_IN_OUT: string;
|
|
43
|
+
EASE_OUT: string;
|
|
44
|
+
EASE_IN: string;
|
|
45
|
+
EASE_OUT_STRONG: string;
|
|
46
|
+
EASE_IN_STRONG: string;
|
|
47
|
+
BOUNCE_OUT: string;
|
|
48
|
+
BOUNCE_IN: string;
|
|
49
|
+
ELASTIC_OUT: string;
|
|
50
|
+
BACK_OUT: string;
|
|
51
|
+
BACK_IN: string;
|
|
52
|
+
};
|
|
53
|
+
export declare const BEZIER_CURVES: {
|
|
54
|
+
EASE_IN_OUT: number[];
|
|
55
|
+
EASE_OUT: number[];
|
|
56
|
+
EASE_IN: number[];
|
|
57
|
+
BOUNCE: number[];
|
|
58
|
+
SMOOTH: number[];
|
|
59
|
+
ZOOM_OUT: number[];
|
|
60
|
+
ZOOM_IN: number[];
|
|
61
|
+
};
|
|
62
|
+
export declare const SPRING_CONFIG: {
|
|
63
|
+
DEFAULT: {
|
|
64
|
+
damping: number;
|
|
65
|
+
stiffness: number;
|
|
66
|
+
mass: number;
|
|
67
|
+
};
|
|
68
|
+
BOUNCY: {
|
|
69
|
+
damping: number;
|
|
70
|
+
stiffness: number;
|
|
71
|
+
mass: number;
|
|
72
|
+
};
|
|
73
|
+
SMOOTH: {
|
|
74
|
+
damping: number;
|
|
75
|
+
stiffness: number;
|
|
76
|
+
mass: number;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
export declare const KEYFRAME_PRESETS: {
|
|
80
|
+
BOUNCE_IN: number[];
|
|
81
|
+
BOUNCE_IN_VALUES: number[];
|
|
82
|
+
SHAKE: number[];
|
|
83
|
+
SHAKE_VALUES: number[];
|
|
84
|
+
HEARTBEAT: number[];
|
|
85
|
+
HEARTBEAT_VALUES: number[];
|
|
86
|
+
PULSE: number[];
|
|
87
|
+
PULSE_VALUES: number[];
|
|
88
|
+
};
|
|
89
|
+
export declare function getAnimationDirection(animationName: string): string | null;
|
|
90
|
+
export declare function getAnimationCategory(animationName: string): string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const PIXITEXT_HITAREA_PREFIX = "pixitext-hitarea";
|
|
2
|
+
export declare const getPixiTextHitAreaName: (uniqueId: string) => string;
|
|
3
|
+
/** Label of the PIXI.Text node inside PixiTextSprite, for `getChildByLabel(label, true)`. */
|
|
4
|
+
export declare const PIXITEXT_TEXT_LABEL = "pixitext-text";
|
package/dist/events/Events.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DependencyList } from 'react';
|
|
2
|
-
|
|
3
2
|
export declare function useCustomEventListener<T>(eventName: string, eventHandler: (data: T) => void, deps?: DependencyList): (el: HTMLElement | null) => void;
|
|
4
3
|
export declare function emitCustomEvent<T>(eventName: string, data?: T): void;
|
|
5
4
|
export declare function newCustomEventEmitter(): {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Filter } from 'pixi.js';
|
|
2
|
+
import { CreateAnimatedVfxFilterOptions } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Generic time-driven VFX filter.
|
|
5
|
+
*
|
|
6
|
+
* `useSpriteFilters` advances `.time` for every filter with `__vfxAnimated`.
|
|
7
|
+
* Keep this contract stable so editor preview, scrubbing, and Remotion export
|
|
8
|
+
* all use the same deterministic timeline clock.
|
|
9
|
+
*/
|
|
10
|
+
export declare class AnimatedVfxFilter extends Filter {
|
|
11
|
+
readonly __vfxAnimated = true;
|
|
12
|
+
private vfx;
|
|
13
|
+
constructor({ fragment, name, intensity, uniforms }: CreateAnimatedVfxFilterOptions);
|
|
14
|
+
apply(filterManager: any, input: any, output: any, clearMode: any): void;
|
|
15
|
+
get time(): number;
|
|
16
|
+
set time(value: number);
|
|
17
|
+
get intensity(): number;
|
|
18
|
+
set intensity(value: number);
|
|
19
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { AnimatedVfxFilter } from './AnimatedVfxFilter';
|
|
2
|
+
export { animatedVfxRegistry, isAnimatedVfxEffectName, type AnimatedVfxEffectName, } from './registry/animatedVfxRegistry';
|
|
3
|
+
export declare const createVhsFilter: (intensity?: number) => import('./AnimatedVfxFilter').AnimatedVfxFilter;
|
|
4
|
+
export declare const createGlitchWaveFilter: (intensity?: number) => import('./AnimatedVfxFilter').AnimatedVfxFilter;
|
|
5
|
+
export declare const createLightLeakFilter: (intensity?: number) => import('./AnimatedVfxFilter').AnimatedVfxFilter;
|
|
6
|
+
export declare const createFilmGrainFilter: (intensity?: number) => import('./AnimatedVfxFilter').AnimatedVfxFilter;
|
|
7
|
+
export declare const createChromaticWaveFilter: (intensity?: number) => import('./AnimatedVfxFilter').AnimatedVfxFilter;
|
|
8
|
+
export declare const createLiquidGlassFilter: (intensity?: number) => import('./AnimatedVfxFilter').AnimatedVfxFilter;
|
|
9
|
+
export declare const createBrokenGlassFilter: (intensity?: number) => import('./AnimatedVfxFilter').AnimatedVfxFilter;
|
|
10
|
+
export declare const createComicFilter: (intensity?: number) => import('./AnimatedVfxFilter').AnimatedVfxFilter;
|
|
11
|
+
export declare const createWaveTearDownFilter: (intensity?: number) => import('./AnimatedVfxFilter').AnimatedVfxFilter;
|
|
12
|
+
export declare const createWaveTearUpFilter: (intensity?: number) => import('./AnimatedVfxFilter').AnimatedVfxFilter;
|
|
13
|
+
export declare const createWaveTearAcrossFilter: (intensity?: number) => import('./AnimatedVfxFilter').AnimatedVfxFilter;
|
|
14
|
+
export declare const createWaveBrushFilter: (intensity?: number) => import('./AnimatedVfxFilter').AnimatedVfxFilter;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { AnimatedVfxFilter } from '../AnimatedVfxFilter';
|
|
2
|
+
export declare const animatedVfxRegistry: {
|
|
3
|
+
VHS: {
|
|
4
|
+
shaderName: string;
|
|
5
|
+
defaultIntensity: number;
|
|
6
|
+
create: (intensity?: number | undefined) => AnimatedVfxFilter;
|
|
7
|
+
};
|
|
8
|
+
GlitchWave: {
|
|
9
|
+
shaderName: string;
|
|
10
|
+
defaultIntensity: number;
|
|
11
|
+
create: (intensity?: number | undefined) => AnimatedVfxFilter;
|
|
12
|
+
};
|
|
13
|
+
LightLeak: {
|
|
14
|
+
shaderName: string;
|
|
15
|
+
defaultIntensity: number;
|
|
16
|
+
create: (intensity?: number | undefined) => AnimatedVfxFilter;
|
|
17
|
+
};
|
|
18
|
+
FilmGrain: {
|
|
19
|
+
shaderName: string;
|
|
20
|
+
defaultIntensity: number;
|
|
21
|
+
create: (intensity?: number | undefined) => AnimatedVfxFilter;
|
|
22
|
+
};
|
|
23
|
+
ChromaticWave: {
|
|
24
|
+
shaderName: string;
|
|
25
|
+
defaultIntensity: number;
|
|
26
|
+
create: (intensity?: number | undefined) => AnimatedVfxFilter;
|
|
27
|
+
};
|
|
28
|
+
LiquidGlass: {
|
|
29
|
+
shaderName: string;
|
|
30
|
+
defaultIntensity: number;
|
|
31
|
+
create: (intensity?: number | undefined) => AnimatedVfxFilter;
|
|
32
|
+
};
|
|
33
|
+
BrokenGlass: {
|
|
34
|
+
shaderName: string;
|
|
35
|
+
defaultIntensity: number;
|
|
36
|
+
create: (intensity?: number | undefined) => AnimatedVfxFilter;
|
|
37
|
+
};
|
|
38
|
+
Comic: {
|
|
39
|
+
shaderName: string;
|
|
40
|
+
defaultIntensity: number;
|
|
41
|
+
create: (intensity?: number | undefined) => AnimatedVfxFilter;
|
|
42
|
+
};
|
|
43
|
+
WaveTearDown: {
|
|
44
|
+
shaderName: "vfx-wave-tear-down";
|
|
45
|
+
defaultIntensity: number;
|
|
46
|
+
create: (intensity?: number | undefined) => AnimatedVfxFilter;
|
|
47
|
+
};
|
|
48
|
+
WaveTearUp: {
|
|
49
|
+
shaderName: "vfx-wave-tear-up";
|
|
50
|
+
defaultIntensity: number;
|
|
51
|
+
create: (intensity?: number | undefined) => AnimatedVfxFilter;
|
|
52
|
+
};
|
|
53
|
+
WaveTearAcross: {
|
|
54
|
+
shaderName: "vfx-wave-tear-across";
|
|
55
|
+
defaultIntensity: number;
|
|
56
|
+
create: (intensity?: number | undefined) => AnimatedVfxFilter;
|
|
57
|
+
};
|
|
58
|
+
WaveBrush: {
|
|
59
|
+
shaderName: string;
|
|
60
|
+
defaultIntensity: number;
|
|
61
|
+
create: (intensity?: number | undefined) => AnimatedVfxFilter;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export type AnimatedVfxEffectName = keyof typeof animatedVfxRegistry;
|
|
65
|
+
export declare const isAnimatedVfxEffectName: (effect: string) => effect is AnimatedVfxEffectName;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const WAVE_TEAR_VARIANTS: {
|
|
2
|
+
readonly WaveTearDown: {
|
|
3
|
+
readonly shaderName: "vfx-wave-tear-down";
|
|
4
|
+
readonly direction: Float32Array<ArrayBuffer>;
|
|
5
|
+
};
|
|
6
|
+
readonly WaveTearUp: {
|
|
7
|
+
readonly shaderName: "vfx-wave-tear-up";
|
|
8
|
+
readonly direction: Float32Array<ArrayBuffer>;
|
|
9
|
+
};
|
|
10
|
+
readonly WaveTearAcross: {
|
|
11
|
+
readonly shaderName: "vfx-wave-tear-across";
|
|
12
|
+
readonly direction: Float32Array<ArrayBuffer>;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const toStrength: (intensity: number, max?: number) => number;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AnimatedVfxFilter } from './AnimatedVfxFilter';
|
|
2
|
+
export type AnimatedVfxUniformValue = number | Float32Array;
|
|
3
|
+
export interface AnimatedVfxUniformDefinition {
|
|
4
|
+
value: AnimatedVfxUniformValue;
|
|
5
|
+
type: string;
|
|
6
|
+
}
|
|
7
|
+
export type AnimatedVfxUniformDefinitions = Record<string, AnimatedVfxUniformDefinition>;
|
|
8
|
+
export interface CreateAnimatedVfxFilterOptions {
|
|
9
|
+
name: string;
|
|
10
|
+
fragment: string;
|
|
11
|
+
intensity: number;
|
|
12
|
+
uniforms?: AnimatedVfxUniformDefinitions;
|
|
13
|
+
}
|
|
14
|
+
export interface AnimatedVfxDefinition {
|
|
15
|
+
shaderName: string;
|
|
16
|
+
defaultIntensity: number;
|
|
17
|
+
create: (intensity?: number) => AnimatedVfxFilter;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './animated-vfx';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Filter } from 'pixi.js';
|
|
2
|
+
/**
|
|
3
|
+
* Builds a PIXI Filter that composites its input using the given blend mode,
|
|
4
|
+
* meant to be appended as the LAST entry of an element's own `filters` array
|
|
5
|
+
* — NOT applied via `Container.blendMode`.
|
|
6
|
+
*
|
|
7
|
+
* WHY: in PIXI v8, once an object has its own `filters` array, the object's
|
|
8
|
+
* effective blend mode against its backdrop is decided entirely by the LAST
|
|
9
|
+
* filter's own `Filter.blendMode` / shader (each filter carries its own
|
|
10
|
+
* compositing state). A `blendMode` set on the object or an ancestor
|
|
11
|
+
* Container is silently ignored the moment that object also has `filters` —
|
|
12
|
+
* PixiJS's BlendModePipe pushes the blend as a nested filter *inside* the
|
|
13
|
+
* object's own filter push, so its backdrop capture reads the object's own
|
|
14
|
+
* (still-empty) offscreen filter texture instead of the real scene, and the
|
|
15
|
+
* blend collapses to "just show the foreground normally".
|
|
16
|
+
*
|
|
17
|
+
* Appending the correct blend filter as the last item of the SAME `filters`
|
|
18
|
+
* array avoids this: the whole chain is one filter push, so the backdrop is
|
|
19
|
+
* captured once, correctly, and this filter's blend state is what finally
|
|
20
|
+
* composites the (fully color-adjusted) result back onto the real scene.
|
|
21
|
+
*
|
|
22
|
+
* Only call this when the element already has >0 other filters — with zero
|
|
23
|
+
* filters, `Container.blendMode` on `AbstractContainer`'s outer wrapper
|
|
24
|
+
* already works correctly (no offscreen filter pass to interfere with it).
|
|
25
|
+
*/
|
|
26
|
+
export declare const createBlendCompositeFilter: (blendModeCode: number | undefined | null) => Filter | null;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Filter } from 'pixi.js';
|
|
2
|
+
/**
|
|
3
|
+
* EdgeFeatherFilter
|
|
4
|
+
*
|
|
5
|
+
* Fades an element's alpha to 0 near its own rectangular edges so that blend
|
|
6
|
+
* modes / composites melt smoothly into whatever is behind them, instead of
|
|
7
|
+
* showing the element's hard rectangle cutoff.
|
|
8
|
+
*
|
|
9
|
+
* `featherAmount` is 0 (no feather, sharp edge) to 1 (fully faded from the
|
|
10
|
+
* element's center outward — feather radius equals half of its shorter
|
|
11
|
+
* dimension).
|
|
12
|
+
*/
|
|
13
|
+
export declare class EdgeFeatherFilter extends Filter {
|
|
14
|
+
private edge;
|
|
15
|
+
constructor(featherAmount: number);
|
|
16
|
+
apply(filterManager: any, input: any, output: any, clearMode: any): void;
|
|
17
|
+
get featherAmount(): number;
|
|
18
|
+
set featherAmount(value: number);
|
|
19
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Filter } from 'pixi.js';
|
|
2
|
+
/**
|
|
3
|
+
* PlateKeyFilter
|
|
4
|
+
*
|
|
5
|
+
* Knocks a flat background plate out of a logo/wordmark image at draw time.
|
|
6
|
+
*
|
|
7
|
+
* Why this exists: uploaded brand assets frequently carry a baked-in solid
|
|
8
|
+
* background. The CoffeeCo brand-kit logo is a 512x512 RGBA PNG that is 100%
|
|
9
|
+
* opaque, with every corner at rgb(236,234,218) — so the end card composited it
|
|
10
|
+
* as a hard cream rectangle floating over the plate. Measured on that asset,
|
|
11
|
+
* the border ring has a standard deviation of 3.2, i.e. it is genuinely flat and
|
|
12
|
+
* safe to key; a tolerance of ~0.16 (40/255) lifts it cleanly while leaving the
|
|
13
|
+
* dark brown lettering and the fine gold filigree untouched.
|
|
14
|
+
*
|
|
15
|
+
* This is a render-time repair, not a replacement for storing a transparent
|
|
16
|
+
* asset. It exists because the assets already sitting in customer workspaces
|
|
17
|
+
* cannot be re-uploaded retroactively.
|
|
18
|
+
*/
|
|
19
|
+
export declare class PlateKeyFilter extends Filter {
|
|
20
|
+
private plate;
|
|
21
|
+
constructor(keyColor: [number, number, number], tolerance?: number, softness?: number);
|
|
22
|
+
get tolerance(): number;
|
|
23
|
+
set tolerance(value: number);
|
|
24
|
+
set keyColor(rgb: [number, number, number]);
|
|
25
|
+
}
|
|
26
|
+
/** Parse `#RRGGBB` / `0xRRGGBB` / `rgb(r,g,b)` into normalised 0..1 RGB. */
|
|
27
|
+
export declare function parsePlateKeyColor(input: string | number | null | undefined): [number, number, number] | null;
|
|
28
|
+
/** The cream/near-white plate that uploaded logos ship with most often. */
|
|
29
|
+
export declare const DEFAULT_PLATE_KEY_COLOR: [number, number, number];
|
|
@@ -2,6 +2,11 @@ import { PixiBaseSpriteProps, ForwardedRefResponse, containerScale } from '../ty
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import * as PIXI from "pixi.js";
|
|
4
4
|
interface AbstractContainerProps extends PixiBaseSpriteProps {
|
|
5
|
+
/** Container label/id override. Defaults to `getElementName(uniqueId)`. */
|
|
6
|
+
id?: string;
|
|
7
|
+
sortableChildren?: boolean;
|
|
8
|
+
/** Text handed to text-unit / typewriter effects (see usePixiAnimation). */
|
|
9
|
+
animationText?: string;
|
|
5
10
|
ignoreTlForVideo?: boolean;
|
|
6
11
|
isText?: boolean;
|
|
7
12
|
isDragging?: boolean;
|
|
@@ -26,5 +31,7 @@ interface AbstractContainerProps extends PixiBaseSpriteProps {
|
|
|
26
31
|
*/
|
|
27
32
|
onSpriteRefReady?: (uniqueId: string, ref: React.MutableRefObject<PIXI.Container | null>) => void;
|
|
28
33
|
}
|
|
29
|
-
declare const AbstractContainer:
|
|
34
|
+
declare const AbstractContainer: ({ ref, ...props }: AbstractContainerProps & {
|
|
35
|
+
ref?: React.Ref<ForwardedRefResponse | null>;
|
|
36
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
30
37
|
export default AbstractContainer;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Container } from 'pixi.js';
|
|
2
|
+
import { CropRect } from '../types/CropTypes';
|
|
3
|
+
import { MaskShapeInput } from './drawMaskShape';
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
export interface BorderConfig {
|
|
6
|
+
width: number;
|
|
7
|
+
color: number | string | null;
|
|
8
|
+
}
|
|
9
|
+
export interface BorderMaskContainerProps {
|
|
10
|
+
x?: number;
|
|
11
|
+
y?: number;
|
|
12
|
+
width?: number;
|
|
13
|
+
height?: number;
|
|
14
|
+
border?: BorderConfig;
|
|
15
|
+
/** `true` = radius 10% of the shorter side; a number = radius in px. */
|
|
16
|
+
roundedCorners?: boolean | number;
|
|
17
|
+
maskShape?: MaskShapeInput;
|
|
18
|
+
/**
|
|
19
|
+
* Sprite-local crop rect (top-left origin). The mask, border and named shape
|
|
20
|
+
* are all drawn inside this sub-rect.
|
|
21
|
+
*/
|
|
22
|
+
crop?: CropRect;
|
|
23
|
+
spriteRef?: React.RefObject<Container | null>;
|
|
24
|
+
children?: React.ReactNode;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* BorderMaskContainer — wraps a sprite child with an optional stroke border
|
|
28
|
+
* and/or a Graphics mask (rounded rect, named shape, or crop rect).
|
|
29
|
+
*
|
|
30
|
+
* Ported from the Clippy editor:
|
|
31
|
+
* - declarative `draw` callbacks (redraw when their deps change)
|
|
32
|
+
* - `useLayoutEffect` attaches the mask before paint (no unmasked flash)
|
|
33
|
+
* - the wrapper container is ALWAYS rendered, so toggling a border/mask never
|
|
34
|
+
* changes the tree shape and remounts the sprite child (texture/ref reset)
|
|
35
|
+
* - mask/border Graphics mount only when needed: an empty Graphics still adds
|
|
36
|
+
* its (0,0) origin to the parent's getBounds() and inflates transformer boxes
|
|
37
|
+
*/
|
|
38
|
+
declare const BorderMaskContainer: {
|
|
39
|
+
({ x, y, width, height, border, roundedCorners, maskShape, crop, spriteRef, children, }: BorderMaskContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
displayName: string;
|
|
41
|
+
};
|
|
42
|
+
export default BorderMaskContainer;
|
|
43
|
+
export { BorderMaskContainer };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare enum
|
|
1
|
+
export declare enum OverlayTilingSpriteTypes {
|
|
2
2
|
NONE = "none",
|
|
3
3
|
NORMAL = "normal",
|
|
4
4
|
LENSFLARE = "lensflare",
|
|
@@ -20,11 +20,11 @@ export interface Overlays {
|
|
|
20
20
|
}
|
|
21
21
|
export declare const overlays: Overlays;
|
|
22
22
|
interface PixiOverlayProps {
|
|
23
|
-
overlay:
|
|
23
|
+
overlay: OverlayTilingSpriteTypes;
|
|
24
24
|
width: number;
|
|
25
25
|
height: number;
|
|
26
26
|
x: number;
|
|
27
27
|
y: number;
|
|
28
28
|
}
|
|
29
|
-
export declare const PixiOverlayTilingSprite: (props: PixiOverlayProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare const PixiOverlayTilingSprite: (props: PixiOverlayProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
30
30
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Graphics } from 'pixi.js';
|
|
2
|
+
import { MaskTypes } from '../types/MaskTypes';
|
|
3
|
+
import { CropRect } from '../types/CropTypes';
|
|
4
|
+
/** Accepts the enum or its plain string value (e.g. 'circle' from JSON). */
|
|
5
|
+
export type MaskShapeInput = MaskTypes | `${MaskTypes}`;
|
|
6
|
+
export declare function drawMaskShape(g: Graphics, shape: MaskShapeInput, cx: number, cy: number, w: number, h: number, crop?: CropRect): void;
|
|
7
|
+
export declare function applyMaskClipPath(ctx: CanvasRenderingContext2D, shape: MaskShapeInput, w: number, h: number, crop?: CropRect): void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as AbstractContainer } from './AbstractContainer';
|
|
2
|
+
export { default as BorderMaskContainer } from './BorderMaskContainer';
|
|
3
|
+
export type { BorderMaskContainerProps, BorderConfig } from './BorderMaskContainer';
|
|
4
|
+
export { drawMaskShape } from './drawMaskShape';
|
|
5
|
+
export * from './OverlayTilingSprite';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AepAnimatable } from '../../types/aep';
|
|
2
|
+
import { AepScalarTimelineBuild } from './buildScalarValueTimeline';
|
|
3
|
+
export type AepAudioLevelBuild = AepScalarTimelineBuild;
|
|
4
|
+
export interface AudioLevelTarget {
|
|
5
|
+
level: number;
|
|
6
|
+
}
|
|
7
|
+
export declare function buildAudioLevelTimeline(level: AepAnimatable<number> | undefined, fps: number, inPointFrames: number, target: AudioLevelTarget): AepAudioLevelBuild;
|