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,142 @@
|
|
|
1
|
+
import { Graphics, Point, FederatedPointerEvent } from 'pixi.js';
|
|
2
|
+
import { Handle, Transformer } from './Transformer';
|
|
3
|
+
/** @see TransformerHandle#style */
|
|
4
|
+
export interface ITransformerHandleStyle {
|
|
5
|
+
/** Fill color of the handle */
|
|
6
|
+
color: number;
|
|
7
|
+
/** Outline color of the handle */
|
|
8
|
+
outlineColor: number;
|
|
9
|
+
/** Outline thickness around the handle */
|
|
10
|
+
outlineThickness: number;
|
|
11
|
+
/** Radius (or size for non-circular handles) of the handle */
|
|
12
|
+
radius: number;
|
|
13
|
+
/** {@link TransformerHandle} provides three types of handle shapes - 'circle', 'square', 'tooth'. */
|
|
14
|
+
shape: string;
|
|
15
|
+
/** Glow color for the handle */
|
|
16
|
+
glowColor?: number;
|
|
17
|
+
/** Glow intensity for the handle */
|
|
18
|
+
glowIntensity?: number;
|
|
19
|
+
/** Optional explicit color for the rotator SVG icon (overrides outlineColor) */
|
|
20
|
+
rotatorIconColor?: number;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The transformer handle base implementation.
|
|
24
|
+
*
|
|
25
|
+
* @extends Graphics (Pixi v8)
|
|
26
|
+
*/
|
|
27
|
+
export declare class TransformerHandle extends Graphics {
|
|
28
|
+
protected readonly transformer: Transformer;
|
|
29
|
+
onHandleDelta: (pointerPosition: Point) => void;
|
|
30
|
+
onHandleCommit: () => void;
|
|
31
|
+
protected _handle: Handle;
|
|
32
|
+
protected _style: ITransformerHandleStyle;
|
|
33
|
+
protected _dirty: boolean;
|
|
34
|
+
private _pointerDown;
|
|
35
|
+
private _pointerDragging;
|
|
36
|
+
private _pointerPosition;
|
|
37
|
+
private _pointerMoveTarget;
|
|
38
|
+
/** SVG-backed rotator sprite (loaded asynchronously via `Assets.load`). */
|
|
39
|
+
private _rotatorSprite;
|
|
40
|
+
private _rotatorKey;
|
|
41
|
+
/**
|
|
42
|
+
* Texture cache for rotator SVGs, keyed by `bgColor:arrowColor:size`.
|
|
43
|
+
* Promise entries are in-flight loads; resolved entries are ready Textures.
|
|
44
|
+
*/
|
|
45
|
+
private static _rotatorTextureCache;
|
|
46
|
+
/**
|
|
47
|
+
* Pre-load the rotator SVG textures for the supplied color combos. Mirrors
|
|
48
|
+
* the upstream `PIXI.TransformerHandle.loadTextures()` helper the
|
|
49
|
+
* `pixi-essentials` demos call before mounting. Safe to call multiple
|
|
50
|
+
* times — entries are cached by `bgColor:arrowColor:size`.
|
|
51
|
+
*
|
|
52
|
+
* Pixi v8's `Texture.from(dataUrl)` returns a Texture whose underlying
|
|
53
|
+
* source decodes asynchronously. The first paint can race the decode and
|
|
54
|
+
* render an empty texture (which `Sprite.width = N` then mis-scales).
|
|
55
|
+
* `Assets.load` awaits the decode, so the returned Texture is paint-ready.
|
|
56
|
+
*/
|
|
57
|
+
static loadTextures(combos?: Array<{
|
|
58
|
+
bgColor?: string;
|
|
59
|
+
arrowColor?: string;
|
|
60
|
+
size?: number;
|
|
61
|
+
}>): Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* @param transformer
|
|
64
|
+
* @param handle - the type of handle being drawn
|
|
65
|
+
* @param styleOpts - styling options passed by the user
|
|
66
|
+
* @param handler - handler for drag events, it receives the pointer position; used by {@code onDrag}.
|
|
67
|
+
* @param commit - handler for drag-end events.
|
|
68
|
+
* @param cursor - a custom cursor to be applied on this handle (defaults to 'move')
|
|
69
|
+
*/
|
|
70
|
+
constructor(transformer: Transformer, handle: Handle, styleOpts: Partial<ITransformerHandleStyle> | undefined, handler: (pointerPosition: Point) => void, commit: () => void, cursor?: string);
|
|
71
|
+
get handle(): Handle;
|
|
72
|
+
set handle(handle: Handle);
|
|
73
|
+
/**
|
|
74
|
+
* The currently applied handle style.
|
|
75
|
+
*/
|
|
76
|
+
get style(): Partial<ITransformerHandleStyle>;
|
|
77
|
+
set style(value: Partial<ITransformerHandleStyle>);
|
|
78
|
+
/**
|
|
79
|
+
* Redraws the handle's geometry.
|
|
80
|
+
*/
|
|
81
|
+
protected draw(): void;
|
|
82
|
+
/**
|
|
83
|
+
* Draws glow effect for handles
|
|
84
|
+
*/
|
|
85
|
+
private drawGlowEffect;
|
|
86
|
+
/**
|
|
87
|
+
* Draws corner handle (circle)
|
|
88
|
+
*/
|
|
89
|
+
private drawCornerHandle;
|
|
90
|
+
/**
|
|
91
|
+
* Draws pill-shaped handle for middle handles
|
|
92
|
+
*/
|
|
93
|
+
private drawPillHandle;
|
|
94
|
+
/**
|
|
95
|
+
* Draws the rotator handle as an SVG-backed sprite (the cyan disk + two
|
|
96
|
+
* curved refresh arrows shipped by the upstream `pixi-essentials` demo).
|
|
97
|
+
*
|
|
98
|
+
* Pixi v8's `Texture.from(dataUrl)` is synchronous but the underlying
|
|
99
|
+
* `HTMLImageElement` decodes asynchronously, so the very first paint can
|
|
100
|
+
* land before the SVG is ready. We hedge with two things:
|
|
101
|
+
* 1. `Assets.load(dataUrl)` (proper async loader) populates the cache;
|
|
102
|
+
* subsequent paints use the resolved Texture.
|
|
103
|
+
* 2. While the load is in flight, we draw a Graphics fallback (disk +
|
|
104
|
+
* arc-arrows) so the rotator is always visible, then redraw once the
|
|
105
|
+
* texture lands.
|
|
106
|
+
*/
|
|
107
|
+
private drawRotatorHandle;
|
|
108
|
+
/**
|
|
109
|
+
* Handles the `pointerdown` event. You must call the super implementation.
|
|
110
|
+
*
|
|
111
|
+
* @param e
|
|
112
|
+
*/
|
|
113
|
+
protected onPointerDown(e: FederatedPointerEvent): void;
|
|
114
|
+
/**
|
|
115
|
+
* Handles the `pointermove` event. You must call the super implementation.
|
|
116
|
+
*
|
|
117
|
+
* @param e
|
|
118
|
+
*/
|
|
119
|
+
protected onPointerMove(e: FederatedPointerEvent): void;
|
|
120
|
+
/**
|
|
121
|
+
* Handles the `pointerup` and `pointerupoutside` events. You must call the super implementation.
|
|
122
|
+
*
|
|
123
|
+
* @param e
|
|
124
|
+
*/
|
|
125
|
+
protected onPointerUp(e: FederatedPointerEvent): void;
|
|
126
|
+
/**
|
|
127
|
+
* Called on the first `pointermove` when {@code this._pointerDown} is true.
|
|
128
|
+
*
|
|
129
|
+
* @param e
|
|
130
|
+
*/
|
|
131
|
+
protected onDragStart(e: FederatedPointerEvent): void;
|
|
132
|
+
/**
|
|
133
|
+
* Called on a `pointermove` when {@code this._pointerDown} & {@code this._pointerDragging}.
|
|
134
|
+
*
|
|
135
|
+
* @param e
|
|
136
|
+
*/
|
|
137
|
+
protected onDrag(e: FederatedPointerEvent): void;
|
|
138
|
+
/**
|
|
139
|
+
* Called on a `pointerup` or `pointerupoutside` & {@code this._pointerDragging} was true.
|
|
140
|
+
*/
|
|
141
|
+
protected onDragEnd(_: FederatedPointerEvent): void;
|
|
142
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Graphics, Matrix, Point } from 'pixi.js';
|
|
2
|
+
import { AxisAlignedBounds, OrientedBounds } from '../bounds';
|
|
3
|
+
import { Handle, Transformer } from './Transformer';
|
|
4
|
+
/**
|
|
5
|
+
* The transformer's wireframe is drawn using this class.
|
|
6
|
+
*
|
|
7
|
+
* @ignore
|
|
8
|
+
* @public
|
|
9
|
+
* @extends Graphics (Pixi v8)
|
|
10
|
+
*/
|
|
11
|
+
export declare class TransformerWireframe extends Graphics {
|
|
12
|
+
protected transformer: Transformer;
|
|
13
|
+
/**
|
|
14
|
+
* The four scaling "edges" (or wide handles) for box-scaling. {@link TransformerWireframe#drawBoxScalingTolerance}
|
|
15
|
+
* should draw into these.
|
|
16
|
+
*/
|
|
17
|
+
protected boxScalingHandles: [Graphics, Graphics, Graphics, Graphics];
|
|
18
|
+
constructor(transformer: Transformer);
|
|
19
|
+
/**
|
|
20
|
+
* Detects which type of box-handle, if any, the pointer clicked on in the wireframe.
|
|
21
|
+
*
|
|
22
|
+
* @param groupBounds
|
|
23
|
+
* @param projectionTransform
|
|
24
|
+
* @param pointerPosition
|
|
25
|
+
*/
|
|
26
|
+
hitHandleType(groupBounds: OrientedBounds, projectionTransform: Matrix, pointerPosition: Point): Handle | null;
|
|
27
|
+
/**
|
|
28
|
+
* Draws the bounding box into the wireframe.
|
|
29
|
+
*
|
|
30
|
+
* @param bounds
|
|
31
|
+
*/
|
|
32
|
+
drawBounds(bounds: OrientedBounds | AxisAlignedBounds): void;
|
|
33
|
+
/**
|
|
34
|
+
* Draws around edges of the bounding box to capture pointer events within
|
|
35
|
+
* {@link Transformer#boxScalingTolerance}.
|
|
36
|
+
*
|
|
37
|
+
* @param bounds
|
|
38
|
+
* @param boxScalingTolerance
|
|
39
|
+
*/
|
|
40
|
+
drawBoxScalingTolerance(bounds: OrientedBounds, boxScalingTolerance?: number): void;
|
|
41
|
+
/**
|
|
42
|
+
* Draws square-shaped tolerance regions for capturing pointer events within {@link Transformer#boxRotationTolernace}
|
|
43
|
+
* of the four corners of the group bounding box. The square are cut in the interior region of the group bounds.
|
|
44
|
+
*/
|
|
45
|
+
drawBoxRotationTolerance(): void;
|
|
46
|
+
/**
|
|
47
|
+
* Alias for {@link Transformer#projectToLocal}. The transform of the wireframe should equal that
|
|
48
|
+
* of the transformer itself.
|
|
49
|
+
*
|
|
50
|
+
* @param input
|
|
51
|
+
* @param output
|
|
52
|
+
*/
|
|
53
|
+
protected projectToLocal(input: Point, output: Point): Point;
|
|
54
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Transformer } from './Transformer';
|
|
2
|
+
export { TransformerHandle } from './TransformerHandle';
|
|
3
|
+
export { TransformerWireframe } from './TransformerWireframe';
|
|
4
|
+
export type { Handle, RotateHandle, ScaleHandle, SkewHandle, ITransformerOptions, ITransformerStyle, ITransformerCursors, ITransformerColorTheme, IRotatorAnchorConfig, ITransformCommitPayload, ITransformerElementDims, ITransformerGroupBoundsSnapshot, } from './Transformer';
|
|
5
|
+
export type { ITransformerHandleStyle } from './TransformerHandle';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Matrix, Point, Transform } from 'pixi.js';
|
|
2
|
+
/**
|
|
3
|
+
* Decomposes the matrix into transform, while preserving rotation & the pivot.
|
|
4
|
+
*
|
|
5
|
+
* @ignore
|
|
6
|
+
* @param transform
|
|
7
|
+
* @param matrix
|
|
8
|
+
* @param rotation
|
|
9
|
+
* @param pivot
|
|
10
|
+
*/
|
|
11
|
+
export declare function decomposeTransform(transform: Transform, matrix: Matrix, rotation?: number, pivot?: Point): Transform;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Matrix, Container } from 'pixi.js';
|
|
2
|
+
/**
|
|
3
|
+
* Multiplies the transformation matrix {@code transform} to the container's
|
|
4
|
+
* local transform and writes the decomposed result back to the container's
|
|
5
|
+
* position / scale / rotation / pivot / skew.
|
|
6
|
+
*
|
|
7
|
+
* Pixi v8 removed `DisplayObject`, `enableTempParent`, `disableTempParent`,
|
|
8
|
+
* and the `Transform` instance on `Container`. The new flow is:
|
|
9
|
+
* - read `worldTransform` (auto-updated after `updateLocalTransform()`)
|
|
10
|
+
* - re-express as a local-space matrix using `parent.worldTransform.invert()`
|
|
11
|
+
* - decompose onto a throwaway `Transform`, then copy the components onto the
|
|
12
|
+
* container directly (Container exposes `position`/`scale`/etc. as
|
|
13
|
+
* `ObservablePoint`s and `rotation` as a number).
|
|
14
|
+
*
|
|
15
|
+
* @ignore
|
|
16
|
+
*/
|
|
17
|
+
export declare function multiplyTransform(container: Container, transform: Matrix, skipUpdate?: boolean): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Matrix } from 'pixi.js';
|
|
2
|
+
/**
|
|
3
|
+
* @ignore
|
|
4
|
+
* @param angle
|
|
5
|
+
* @returns a horizontal skew matrix
|
|
6
|
+
*/
|
|
7
|
+
export declare function createHorizontalSkew(angle: number): Matrix;
|
|
8
|
+
/**
|
|
9
|
+
* @ignore
|
|
10
|
+
* @param angle
|
|
11
|
+
* @returns a vertical skew matrix
|
|
12
|
+
*/
|
|
13
|
+
export declare function createVerticalSkew(angle: number): Matrix;
|
|
@@ -17,6 +17,13 @@ interface GsapPixieContextProps {
|
|
|
17
17
|
dragModeRef: React.MutableRefObject<boolean>;
|
|
18
18
|
isRemotion: boolean;
|
|
19
19
|
setIsRemotion: React.Dispatch<React.SetStateAction<boolean>>;
|
|
20
|
+
/** Subscribe to master-timeline time updates (seconds). Fired from onUpdate and handleSeek. */
|
|
21
|
+
registerTimeUpdateListener: (fn: (time: number) => void) => void;
|
|
22
|
+
unregisterTimeUpdateListener: (fn: (time: number) => void) => void;
|
|
23
|
+
/** true = playing, false = paused. Single source of truth for play state. */
|
|
24
|
+
playStateRef: React.MutableRefObject<boolean>;
|
|
25
|
+
/** true while the user is seeking / dragging the scrubber. */
|
|
26
|
+
isSeekingRef: React.MutableRefObject<boolean>;
|
|
20
27
|
}
|
|
21
28
|
declare const GsapPixieContext: React.Context<GsapPixieContextProps>;
|
|
22
29
|
declare const Events: {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Effects, Waveforms } from './Effects';
|
|
2
|
-
import { OverlayTypes } from '
|
|
2
|
+
import { OverlayTypes } from './OverlayTypes';
|
|
3
3
|
import { Animations } from './Animations';
|
|
4
|
-
|
|
5
4
|
export interface PixiBaseSpriteProps {
|
|
6
5
|
children?: React.ReactNode;
|
|
7
6
|
uniqueId: string;
|
|
@@ -16,43 +15,79 @@ export interface PixiBaseSpriteProps {
|
|
|
16
15
|
y: number;
|
|
17
16
|
width: number;
|
|
18
17
|
height: number;
|
|
19
|
-
anchor: number
|
|
18
|
+
anchor: number | {
|
|
19
|
+
x: number;
|
|
20
|
+
y: number;
|
|
21
|
+
};
|
|
20
22
|
rotation?: number;
|
|
21
23
|
alpha?: number;
|
|
22
24
|
scale?: number | [number, number];
|
|
23
25
|
tint?: number;
|
|
24
26
|
blendMode?: number;
|
|
25
27
|
animation?: Animations;
|
|
28
|
+
/**
|
|
29
|
+
* Slider units (neutral = 0), same as the Clippy editor:
|
|
30
|
+
* brightness/contrast/saturation/red/green/blue/temperature/tint/highlights/shadows/
|
|
31
|
+
* exposure/vibrance -100..100, hue -180..180, sharpness/blurRadius/vignette/noise/
|
|
32
|
+
* edgeFeather 0..100, gamma/alpha 1 = none. Use `fromMultiplierColorCorrection` for old data.
|
|
33
|
+
*/
|
|
26
34
|
colorCorrection?: {
|
|
27
35
|
enabled?: boolean;
|
|
28
|
-
|
|
29
|
-
hue?: number;
|
|
36
|
+
brightness?: number;
|
|
30
37
|
contrast?: number;
|
|
31
38
|
saturation?: number;
|
|
32
|
-
|
|
39
|
+
red?: number;
|
|
40
|
+
green?: number;
|
|
41
|
+
blue?: number;
|
|
42
|
+
gamma?: number;
|
|
43
|
+
alpha?: number;
|
|
44
|
+
temperature?: number;
|
|
45
|
+
tint?: number;
|
|
46
|
+
hue?: number;
|
|
47
|
+
highlights?: number;
|
|
48
|
+
shadows?: number;
|
|
33
49
|
exposure?: number;
|
|
34
|
-
|
|
50
|
+
vibrance?: number;
|
|
35
51
|
sharpness?: number;
|
|
52
|
+
blurRadius?: number;
|
|
53
|
+
vignette?: number;
|
|
54
|
+
noise?: number;
|
|
55
|
+
edgeFeather?: number;
|
|
56
|
+
reset?: boolean;
|
|
36
57
|
value?: number;
|
|
37
58
|
levels?: number;
|
|
38
59
|
luminance?: number;
|
|
39
60
|
enhance?: number;
|
|
40
|
-
blurRadius?: number;
|
|
41
|
-
red?: number;
|
|
42
|
-
green?: number;
|
|
43
|
-
blue?: number;
|
|
44
|
-
alpha?: number;
|
|
45
|
-
gamma?: number;
|
|
46
61
|
scaleInput?: number;
|
|
47
|
-
vignette?: number;
|
|
48
|
-
noise?: number;
|
|
49
62
|
outline?: number;
|
|
50
63
|
outlineColor?: number;
|
|
51
64
|
};
|
|
52
|
-
|
|
65
|
+
/** Legacy preset name. Prefer `effects`. */
|
|
66
|
+
effect?: Effects | string;
|
|
67
|
+
/** Preset effect with strength (0-100, default 100) and per-effect `params`. */
|
|
68
|
+
effects?: {
|
|
69
|
+
name?: Effects | string;
|
|
70
|
+
intensity?: number;
|
|
71
|
+
params?: Record<string, unknown>;
|
|
72
|
+
};
|
|
73
|
+
/** Neon glow colour: number, `#hex`, `0xhex` or any CSS colour. */
|
|
74
|
+
neonColor?: number | string | null;
|
|
75
|
+
/** Key a flat background plate out of the image. `true` = default cream plate. */
|
|
76
|
+
plateKey?: boolean | string | {
|
|
77
|
+
color?: string;
|
|
78
|
+
tolerance?: number;
|
|
79
|
+
} | null;
|
|
53
80
|
overlay?: OverlayTypes;
|
|
54
81
|
waveform?: Waveforms;
|
|
55
82
|
fontSize?: number;
|
|
83
|
+
border?: {
|
|
84
|
+
width: number;
|
|
85
|
+
color: number | string | null;
|
|
86
|
+
};
|
|
87
|
+
roundedCorners?: boolean | number;
|
|
88
|
+
maskShape?: import('./MaskTypes').MaskTypes | `${import('./MaskTypes').MaskTypes}`;
|
|
89
|
+
/** Sprite-local crop rect; mask/border are drawn inside it. */
|
|
90
|
+
crop?: import('./CropTypes').CropRect;
|
|
56
91
|
};
|
|
57
92
|
pointerdown?: () => void;
|
|
58
93
|
pointerup?: () => void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface CropRect {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
w: number;
|
|
5
|
+
h: number;
|
|
6
|
+
}
|
|
7
|
+
export interface AspectRatioPreset {
|
|
8
|
+
label: string;
|
|
9
|
+
ratio: number | null;
|
|
10
|
+
}
|
|
11
|
+
export declare const ASPECT_RATIOS: AspectRatioPreset[];
|
|
12
|
+
export declare const MIN_CROP_SIZE = 20;
|